[PR #158] [MERGED] Improve upgrade command with installation method detection #9553

Closed
opened 2026-02-16 18:13:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/158
Author: @thdxr
Created: 6/17/2025
Status: Merged
Merged: 6/17/2025
Merged by: @thdxr

Base: devHead: upgrade


📝 Commits (4)

📊 Changes

6 files changed (+153 additions, -122 deletions)

View changed files

📝 opencode.json (+2 -13)
📝 packages/opencode/src/cli/cmd/upgrade.ts (+25 -108)
packages/opencode/src/global/config.ts (+1 -0)
packages/opencode/src/installation/index.ts (+104 -0)
📝 packages/opencode/src/server/server.ts (+20 -0)
📝 packages/web/src/components/Share.tsx (+1 -1)

📄 Description

Summary

  • Refactor upgrade command to use new Installation namespace for better maintainability
  • Add automatic detection of installation method (npm, yarn, pnpm, bun, curl) for more reliable upgrades
  • Fix Share.tsx bug where result() function wasn't being called properly

Test plan

  • Test upgrade command with different installation methods
  • Verify installation info endpoint returns correct data
  • Test Share component renders command results correctly

🤖 Generated with opencode


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/158 **Author:** [@thdxr](https://github.com/thdxr) **Created:** 6/17/2025 **Status:** ✅ Merged **Merged:** 6/17/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `upgrade` --- ### 📝 Commits (4) - [`b9d0c76`](https://github.com/anomalyco/opencode/commit/b9d0c768ae5f93ebea9c638f44b45f81ff238f67) upgrade progress - [`507159c`](https://github.com/anomalyco/opencode/commit/507159c7daca7a27dab8ec24de2cf66040614463) fix bash tool in share - [`4324fd4`](https://github.com/anomalyco/opencode/commit/4324fd48d2c8759118521260524cf0c1cab662d1) add sst upgrade command - [`b981396`](https://github.com/anomalyco/opencode/commit/b981396a8d6ee15f801d5c09219c04d49d5a06ee) opencode upgrade command ### 📊 Changes **6 files changed** (+153 additions, -122 deletions) <details> <summary>View changed files</summary> 📝 `opencode.json` (+2 -13) 📝 `packages/opencode/src/cli/cmd/upgrade.ts` (+25 -108) ➕ `packages/opencode/src/global/config.ts` (+1 -0) ➕ `packages/opencode/src/installation/index.ts` (+104 -0) 📝 `packages/opencode/src/server/server.ts` (+20 -0) 📝 `packages/web/src/components/Share.tsx` (+1 -1) </details> ### 📄 Description ## Summary - Refactor upgrade command to use new Installation namespace for better maintainability - Add automatic detection of installation method (npm, yarn, pnpm, bun, curl) for more reliable upgrades - Fix Share.tsx bug where result() function wasn't being called properly ## Test plan - [ ] Test upgrade command with different installation methods - [ ] Verify installation info endpoint returns correct data - [ ] Test Share component renders command results correctly 🤖 Generated with [opencode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:45 -05:00
yindo closed this issue 2026-02-16 18:13:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9553