Skip to content

fix(cli): use Kilo packages for upgrades - #11264

Merged
catrielmuller merged 2 commits into
mainfrom
wind-wind
Jun 15, 2026
Merged

fix(cli): use Kilo packages for upgrades#11264
catrielmuller merged 2 commits into
mainfrom
wind-wind

Conversation

@catrielmuller

Copy link
Copy Markdown
Contributor

Summary

  • Route CLI upgrade detection, latest-version lookup, and package-manager commands through Kilo package/release names instead of OpenCode names.
  • Cover npm, yarn, pnpm, bun, brew, choco, scoop, curl, and GitHub release fallback upgrade paths with regression tests.
  • Update CLI docs, source links, uninstall brew naming, and add a patch changeset.

Validation

  • bun test test/installation/installation.test.ts test/kilocode/installation/upgrade.test.ts
  • bun run typecheck
  • bun run script/extract-source-links.ts
  • bun run script/check-opencode-annotations.ts --base main
  • git diff --check
  • git push pre-push hook: bun turbo typecheck

@vkeerthivikram

Copy link
Copy Markdown
Contributor

I already made a similar pul lrequest #11253 😅

@vkeerthivikram

Copy link
Copy Markdown
Contributor

if u feel yours adresses this problem better, feel free to close mine

@kilo-code-bot

kilo-code-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Review notes:

  • Kilo-specific constants properly extracted into src/kilocode/installation/index.ts following fork isolation strategy
  • All shared-file changes carry appropriate kilocode_change markers
  • Yarn support is consistently added across all relevant code paths (upgrade, uninstall, method detection, latest lookup, auto-upgrade)
  • Brew formula URL and KiloBrew.formula config are self-consistent across detection and upgrade paths
  • Tests cover all package managers and the GitHub release fallback path
  • Changeset present with user-facing description
Files Reviewed (10 files)
  • .changeset/fix-kilo-npm-upgrade.md
  • packages/kilo-docs/pages/code-with-ai/platforms/cli-reference.md
  • packages/kilo-docs/source-links.md
  • packages/opencode/src/cli/cmd/uninstall.ts
  • packages/opencode/src/cli/cmd/upgrade.ts
  • packages/opencode/src/cli/upgrade.ts
  • packages/opencode/src/installation/index.ts
  • packages/opencode/src/kilocode/installation/index.ts
  • packages/opencode/test/installation/installation.test.ts
  • packages/opencode/test/kilocode/installation/upgrade.test.ts

Reviewed by deepseek-v4-pro-20260423 · 299,731 tokens

Review guidance: REVIEW.md from base branch main

@catrielmuller

Copy link
Copy Markdown
Contributor Author

I already made a similar pul lrequest #11253 😅

Hey @vkeerthivikram, I'm really sorry I completely missed your PR. I will merge this PR because it unifies the packages into one file to simplify maintenance and adds some tests to prevent this regression from happening again.

@catrielmuller
catrielmuller merged commit c7c9588 into main Jun 15, 2026
23 checks passed
@catrielmuller
catrielmuller deleted the wind-wind branch June 15, 2026 16:32
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(cli): use Kilo packages for upgrades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants