docs: add Homebrew installation - #531
Conversation
Add Homebrew as an installation option for macOS/Linux users in both English and Chinese READMEs. Closes MoonshotAI#130
🦋 Changeset detectedLatest commit: e9a6545 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
When kimi-code is installed via Homebrew, the update system now detects the installation source and uses 'brew upgrade kimi-code' instead of falling back to 'npm install -g'. This prevents duplicate installations when Homebrew users receive update prompts.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 487e653e34
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Only match /cellar/ path segment (not /homebrew/) to avoid false positives on Apple Silicon where npm global installs live under /opt/homebrew/lib/node_modules/ - Disable background auto-update for Homebrew: brew upgrade may mutate dependents silently and the formula can lag behind CDN releases
|
Detection logic looks great — /cellar/ over /homebrew/ correctly avoids the Apple Silicon npm false positive, and disabling auto-install in favor of a manual brew upgrade prompt is the right call. One miss: InstallSource gained 'homebrew', but the Zod enum in apps/kimi-code/src/cli/update/install-state.ts wasn't updated to match (the z.ZodType annotation won't flag it — Zod output types Otherwise LGTM 👍 |
commit: |
Keeps the persistence schema in sync with the TypeScript type. Currently harmless since Homebrew auto-install is disabled, but prevents a silent state reset if it is ever enabled later.
Thanks for reviewing, added. |
Add Homebrew as an installation option for macOS/Linux users in both English and Chinese READMEs.
Homebrew formula is now available in homebrew-core:
brew install kimi-codeCloses #130