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:
Chris Scott committed 2026-11-06 09:26:56 -05:00
1 parent dc0220843e
commit 807c7cb896
20 files changed
+583 -562

No files matched your search

@@ -449,7 +449,7 @@ describe('OpenCodeServerRegistry', () => {
describe('test', () => {
it('reports a supported version', async () => {
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.1' }))
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.5' }))
const result = await registry.test({
baseUrl: 'https://studio.example.com/',
@@ -457,7 +457,7 @@ describe('OpenCodeServerRegistry', () => {
password: 'super-secret',
})
expect(result).toEqual({ ok: true, version: '2.2.1', versionSupported: true, error: null })
expect(result).toEqual({ ok: true, version: '2.2.5', versionSupported: true, error: null })
expect(fetchFn.mock.calls[0]?.[0]).toBe('https://studio.example.com/api/info')
const headers = new Headers(fetchFn.mock.calls[0]?.[1]?.headers)
expect(headers.get('authorization')).toBe(`Basic ${btoa('alice:super-secret')}`)
@@ -478,7 +478,7 @@ describe('OpenCodeServerRegistry', () => {
username: 'alice',
password: 'super-secret',
})
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.1' }))
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.5' }))
const result = await registry.test({ serverId: server.id })
@@ -493,7 +493,7 @@ describe('OpenCodeServerRegistry', () => {
baseUrl: 'https://studio.example.com',
password: 'super-secret',
})
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.1' }))
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.5' }))
const result = await registry.test({
baseUrl: 'https://studio.example.com/opencode',
@@ -513,7 +513,7 @@ describe('OpenCodeServerRegistry', () => {
baseUrl: 'https://studio.example.com',
password: 'super-secret',
})
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.1' }))
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.5' }))
const result = await registry.test({
baseUrl: 'https://relocated.example.com',
@@ -533,7 +533,7 @@ describe('OpenCodeServerRegistry', () => {
baseUrl: 'https://studio.example.com',
password: 'super-secret',
})
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.1' }))
fetchFn.mockResolvedValueOnce(jsonResponse({ version: '2.2.5' }))
await registry.test({
baseUrl: 'https://studio.example.com',