multica/server/internal/cli
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
..
client.go feat(cli): add --attachment flag to issue comment add (#260) 2026-04-01 15:57:23 +08:00
client_test.go test(cli): add unit tests for PostJSON API client method 2026-03-26 15:04:50 +08:00
config.go feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
flags.go refactor(cli): unify daemon into multica-cli binary with cobra subcommands 2026-03-24 15:44:49 +08:00
output.go refactor(cli): unify daemon into multica-cli binary with cobra subcommands 2026-03-24 15:44:49 +08:00
update.go feat(daemon): support direct download update for non-Homebrew installs (#334) 2026-04-02 15:38:06 +08:00