multica/server/cmd/multica
LinYushen 606930725a
feat(daemon): support direct download update for non-Homebrew installs (#334)
* feat(daemon): support direct download update for non-Homebrew installs

Previously, CLI auto-update only worked for Homebrew installations. Non-brew
binaries would fail with "not installed via Homebrew". Now the daemon and
`multica update` fall back to downloading the release binary directly from
GitHub Releases when Homebrew is not detected.

Also fixes:
- Daemon restart now uses the current executable's absolute path instead of
  searching PATH, ensuring the updated binary is used
- Brew installs preserve the symlink path so the new Cellar version is picked up
- Daemon startup logs now include the CLI version
- Update UI auto-clears "restarting" status after 5s to show the new version

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(cli): remove dead DetectNewBinaryPath and guard against nil latest version

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:38:06 +08:00
..
cmd_agent.go feat(cli): default to production URLs (api.multica.ai, multica.ai) 2026-04-01 13:27:58 +08:00
cmd_auth.go feat(cli): default to production URLs (api.multica.ai, multica.ai) 2026-04-01 13:27:58 +08:00
cmd_auth_test.go feat(cli): default to production URLs (api.multica.ai, multica.ai) 2026-04-01 13:27:58 +08:00
cmd_compat_test.go feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
cmd_config.go feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
cmd_daemon.go feat(daemon): support direct download update for non-Homebrew installs (#334) 2026-04-02 15:38:06 +08:00
cmd_issue.go feat(cli): add issue runs and run-messages commands 2026-04-02 03:30:33 +08:00
cmd_issue_test.go fix: address PR #149 review findings 2026-03-27 16:15:58 +08:00
cmd_login.go feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
cmd_repo.go feat(daemon): agent-driven repo checkout with bare clone cache 2026-03-29 19:37:48 +08:00
cmd_update.go feat(daemon): support direct download update for non-Homebrew installs (#334) 2026-04-02 15:38:06 +08:00
cmd_version.go refactor(release): rename multica-cli to multica 2026-03-25 17:34:29 +08:00
cmd_workspace.go feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
main.go feat(cli): add multica update command (#218) 2026-03-31 15:24:05 +08:00