chore(deps): pin opencode CLI + SDK to v1.4.9#1471
Merged
Conversation
- Bump constants.json opencodeVersion v1.2.27 -> v1.4.9 (CI source of truth consumed by ci-tests, build-desktop, alpha/prerelease/release workflows, and opencode-agents). - Bump @opencode-ai/sdk across app, story-book, orchestrator, opencode-router, server-v2, and refresh the lockfile so all workspaces resolve to 1.4.9.
- Move Model.reasoning reads to Model.capabilities.reasoning in
model-config.ts and model-behavior.ts (SDK flattened capabilities).
- Simplify utils/providers.ts to a pass-through; Provider now carries
source/options and Model.cost reshapes to {input, output, cache,
experimentalOver200K}, which the mapper no longer needs to translate.
- Cast session.todo() result to TodoItem[] (SDK Todo has no id).
- Update server-v2 test fixtures from 1.2.27 to 1.4.9.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
benjaminshafii
added a commit
that referenced
this pull request
May 15, 2026
* chore(deps): pin opencode CLI and SDK to v1.4.9
- Bump constants.json opencodeVersion v1.2.27 -> v1.4.9 (CI source of
truth consumed by ci-tests, build-desktop, alpha/prerelease/release
workflows, and opencode-agents).
- Bump @opencode-ai/sdk across app, story-book, orchestrator,
opencode-router, server-v2, and refresh the lockfile so all workspaces
resolve to 1.4.9.
* refactor(app): adapt to @opencode-ai/sdk 1.4.9 type changes
- Move Model.reasoning reads to Model.capabilities.reasoning in
model-config.ts and model-behavior.ts (SDK flattened capabilities).
- Simplify utils/providers.ts to a pass-through; Provider now carries
source/options and Model.cost reshapes to {input, output, cache,
experimentalOver200K}, which the mapper no longer needs to translate.
- Cast session.todo() result to TodoItem[] (SDK Todo has no id).
- Update server-v2 test fixtures from 1.2.27 to 1.4.9.
benjaminshafii
added a commit
that referenced
this pull request
May 15, 2026
* chore(deps): pin opencode CLI and SDK to v1.4.9
- Bump constants.json opencodeVersion v1.2.27 -> v1.4.9 (CI source of
truth consumed by ci-tests, build-desktop, alpha/prerelease/release
workflows, and opencode-agents).
- Bump @opencode-ai/sdk across app, story-book, orchestrator,
opencode-router, server-v2, and refresh the lockfile so all workspaces
resolve to 1.4.9.
* refactor(app): adapt to @opencode-ai/sdk 1.4.9 type changes
- Move Model.reasoning reads to Model.capabilities.reasoning in
model-config.ts and model-behavior.ts (SDK flattened capabilities).
- Simplify utils/providers.ts to a pass-through; Provider now carries
source/options and Model.cost reshapes to {input, output, cache,
experimentalOver200K}, which the mapper no longer needs to translate.
- Cast session.todo() result to TodoItem[] (SDK Todo has no id).
- Update server-v2 test fixtures from 1.2.27 to 1.4.9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v1.2.27→v1.4.9inconstants.json(single source of truth consumed byci-tests.yml,build-desktop.yml,alpha-macos-aarch64.yml,prerelease.yml,release-macos-aarch64.yml,opencode-agents.yml).@opencode-ai/sdkto1.4.9acrossapps/app,apps/story-book,apps/orchestrator,apps/opencode-router,apps/server-v2, and refresh the lockfile so every workspace resolves to a single version.SDK type adaptations (commit 2)
Model.reasoningModelModel.capabilities.reasoningModel.cost{input, output, cache_read, cache_write, context_over_200k}{input, output, cache: {read, write}, experimentalOver200K}Providersource: "env" | "config" | "custom" | "api"andoptions: {[key: string]: unknown}Model.status"alpha" | "beta" | "deprecated" | undefined"alpha" | "beta" | "deprecated" | "active"(no undefined)ProviderListResponse.allArray<Provider>, identical to the config responseConcrete code edits:
apps/app/src/app/context/model-config.ts,apps/app/src/app/lib/model-behavior.ts: readmodel.capabilities?.reasoning.apps/app/src/app/utils/providers.ts:mapConfigProvidersToListcollapses to a pass-through (input and output share the newProvidershape); kept for call-site stability and optional-field normalization.apps/app/src/app/context/session.ts: castc.session.todo()result toTodoItem[](SDKTodohas noid, matching the existing cast at line 1850 for thetodo.updatedevent).apps/server-v2/src/runtime/assets.test.tsandapps/server-v2/src/services/runtime-service.test.ts: bump fixture strings from1.2.27to1.4.9.Verification
pnpm --filter @openwork/app typecheckpnpm --filter openwork-server-v2 typecheckpnpm --filter opencode-router typecheckpnpm --filter openwork-orchestrator typecheckbun testinapps/server-v2Story-book typecheck still fails, but all remaining errors are pre-existing on
origin/dev(props drift innew-layout.tsx/story-book.tsxforimportingWorkspaceConfig,AutomationsViewProps,DenSettingsPanelProps, etc., plus an unrelatedComposerNoticenarrowing issue). Confirmed by running typecheck on a freshorigin/devworktree before making any changes.Not run
Reviewer, to repro end-to-end: