Repository navigation
feat(install): one-command install.sh, magnolia doctor, OpenCode memory backend, and portable tools daemon - #36
Merged
Merged
Conversation
…ixes #35) - compchem-tools-daemon.sh: fall back to Python os.setsid() when setsid(1) is absent (macOS), fix port_up() false-positive on ECONNREFUSED ('000000' != '000'), require live supervisor (is_up) alongside port_up and fail fast non-zero without leaving a stale pidfile, use portable UTC date timestamps, resolve PY with MAGNOLIA_PYTHON/VIRTUAL_ENV/PATH fallback, run from opencode_cc_mem, and set +x. - magnolia: detect OpenCode v2 on PATH when ~/.local/share/magnolia-v2/bin/opencode is absent, create opencode_cc_mem/.magnolia before writing .active-project, and use a portable timeout helper in setup. - compchem-tools/pyproject.toml: declare starlette and uvicorn explicitly. - tests: add softwares/bin/tests/compchem_tools_daemon_test.sh (17 assertions).
…nd macOS daemon fallback
…nfig/magnolia/env - install.sh: checks Python 3.11+, git, curl, OpenCode (with macOS/Linux hints), creates .venv, installs compchem-tools + compchem-memory, verifies imports against a temp dir, creates opencode_cc_mem/.magnolia, and optionally symlinks ~/.local/bin/magnolia. - magnolia: add 'magnolia doctor [project]' health check, auto-load ~/.config/magnolia/env (caller env takes precedence), and offer to save a missing memory API key (chmod 600) during 'magnolia setup'. - docs: simplify README.md Installation & First session to a 3-step quick start and lead docs/getting-started.md with ./install.sh + magnolia doctor. - tests: add softwares/bin/tests/install_and_doctor_test.sh (12 assertions).
…background cost guidance - compchem_memory/llm.py: add 'opencode' provider (auto-inferred for opencode-go/* models, default opencode-go/deepseek-v4.1-flash) invoking opencode run --format json --standalone inside an isolated temp dir with MCP servers and tools disabled (no separate Python API key needed). - magnolia: add numbered OpenCode model picker in setup Step 1, background-frequency cost warning recommending opencode-go/deepseek-v4.1-flash in Step 2, 3-option memory menu (OpenCode login / numbered direct API provider / skip), and pass MAGNOLIA_OPENCODE_BIN to compchem-memory. - docs & tests: update README.md and add 4 unit tests in test_llm_providers.py (79 passed).
…not steal MCP stdio
…e install progress
…OpenCode model listing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings together the fresh-install portability fixes (#35) and a guided onboarding flow so new users can clone, install, authenticate, and run Magnolia cleanly on both Linux and macOS.
Portability & MCP daemon fixes (Fixes #35)
compchem-tools-daemon.sh:setsid(1)to Pythonos.setsid()+os.execvp()on macOS, uses portable UTC timestamps (date -u +%Y-%m-%dT%H:%M:%SZ), and falls back across.venv/$VIRTUAL_ENV/PATHfor Python.port_up()returning"000000" != "000"onECONNREFUSED, requires both live supervisor and open MCP port, and cleans up stale$PIDFILE+ returns non-zero on failure.compchem-toolsdependencies: Explicitly declaresstarlette>=0.27anduvicorn>=0.27inpyproject.toml.magnoliafresh-install compatibility: Auto-detects OpenCode v2 onPATHwhen~/.local/share/magnolia-v2/bin/opencodeis absent, ensures.magnolia/directories exist before marker writes, and adds a Python timeout fallback when GNUtimeoutis missing.Guided install & setup
./install.sh: Checks prerequisites (Python 3.11+, Git, curl, OpenCode), creates.venv, installscompchem-toolsandcompchem-memory(usinguv pipwhen available orpipwith live output), verifies server imports, initializesopencode_cc_mem/.magnolia/, and optionally links~/.local/bin/magnolia.magnolia doctor [project]&~/.config/magnolia/env: Health-checks Python/imports, OpenCode v2, saved credentials (chmod 600loader respecting caller env precedence), model config (fixing boolean parsing insetup_get), andcompchem-toolsdaemon status.compchem_memory/llm.py): AddsPROVIDER_OPENCODEforopencode-go/*andopencode/*models (defaultopencode-go/deepseek-v4.1-flash), runningopencode run --format json --standaloneinside an isolated temp dir with MCP/tools disabled andstdin=subprocess.DEVNULLso the child CLI never steals stdio MCP traffic.magnolia setuppicker: Lists OpenCode providers first (opencode-go,opencode,anthropicwith on-demandopencode auth login, then others) with keyword filtering,0/bback-to-providers navigation, cheap-model guidance for background memory calls, and optional direct-API key saving.README.mdanddocs/getting-started.md.Verification
compchem-memoryfull suite (pytest tests/ -q): 1148 passed, 14 skippedcompchem-memoryprovider tests (pytest tests/test_llm_providers.py -q): 80 passedcompchem-toolsauth & resilience (pytest tests/test_server_auth.py tests/test_server_resilience.py -q): 22 passedinstall_and_doctor_test.sh: 18 passed, 0 failedcompchem_tools_daemon_test.sh: 17 passed, 0 failedhpc_tunnel_test.sh: 6 passed, 0 failed