mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
chore(opencode): move the OpenCode pin to 2.2.5 from a workspace catalog
Manager builds against and requires OpenCode 2.2.5. Every @opencode package, plus effect and the OpenTUI/solid dependencies they share, resolves from one pnpm workspace catalog instead of separate pins. The built-against version and the supported floor are now separate settings, so a future OpenCode release can move the pin before raising the floor. Docker and the dev setup script read the floor from its own argument. ocm-cli moves to 0.6.0 on the same 2.2.5 and OpenTUI 0.8 baseline. A linked server on a different version is still connectable and now shows a neutral version notice instead of an unsupported badge.
This commit is contained in:
1 parent
dc0220843e
commit
807c7cb896
20 files changed
+583
-562
No files matched your search
@@ -240,6 +240,7 @@ const runOpenCodeSection = (snippet: string, env: Record<string, string> = {}) =
|
||||
OCM_STUB_RUNUSER_EXEC: '1',
|
||||
HOME: homeDir,
|
||||
OPENCODE_BUNDLED_VERSION: '2.0.15',
|
||||
OPENCODE_MIN_VERSION: '2.0.15',
|
||||
...env,
|
||||
},
|
||||
})
|
||||
@@ -459,11 +460,11 @@ exit 1`)
|
||||
expect(curlLog()).toHaveLength(0)
|
||||
})
|
||||
|
||||
it('treats every persisted binary as unsupported when the bundled version is unknown', () => {
|
||||
it('treats every persisted binary as unsupported when the minimum version is unknown', () => {
|
||||
mkdirSync(join(stubDir, 'home/.opencode/bin'), { recursive: true })
|
||||
writeBinary(join(stubDir, 'home/.opencode/bin'), '2.0.15')
|
||||
const res = runOpenCodeSection(`${installPrelude()}\nreconcile_persisted_opencode`, {
|
||||
OPENCODE_BUNDLED_VERSION: '',
|
||||
OPENCODE_MIN_VERSION: '',
|
||||
})
|
||||
expect(res.status).toBe(0)
|
||||
expect(existsSync(homeBinPath())).toBe(false)
|
||||
|
||||
Reference in new issue
Block a user