Files
openwork/apps/server-v2/package.json
ben 7bb7e5241d chore(deps): pin opencode CLI + SDK to v1.4.9 (#1471)
* 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.
2026-04-17 11:35:09 -07:00

44 lines
1.8 KiB
JSON

{
"name": "openwork-server-v2",
"version": "0.11.206",
"private": true,
"type": "module",
"bin": {
"openwork-server-v2": "bin/openwork-server-v2.mjs"
},
"scripts": {
"dev": "OPENWORK_DEV_MODE=1 bun --watch src/cli.ts",
"start": "bun src/cli.ts",
"openapi:generate": "bun ./scripts/generate-openapi.ts",
"openapi:watch": "node ./scripts/watch-openapi.mjs",
"test": "bun test",
"typecheck": "tsc -p tsconfig.json --noEmit",
"build:bin": "bun ./script/build.ts --outdir dist/bin --filename openwork-server-v2",
"build:bin:windows": "bun ./script/build.ts --outdir dist/bin --filename openwork-server-v2 --target bun-windows-x64",
"build:bin:embedded": "bun ./script/build.ts --outdir dist/bin --filename openwork-server-v2 --embed-runtime",
"build:bin:embedded:windows": "bun ./script/build.ts --outdir dist/bin --filename openwork-server-v2 --embed-runtime --target bun-windows-x64",
"build:bin:all": "bun ./script/build.ts --outdir dist/bin --filename openwork-server-v2 --target bun-darwin-arm64 --target bun-darwin-x64-baseline --target bun-linux-x64-baseline --target bun-linux-arm64 --target bun-windows-x64",
"build:bin:embedded:all": "bun ./script/build.ts --outdir dist/bin --filename openwork-server-v2 --embed-runtime --target bun-darwin-arm64 --target bun-darwin-x64-baseline --target bun-linux-x64-baseline --target bun-linux-arm64 --target bun-windows-x64",
"prepublishOnly": "pnpm openapi:generate && pnpm build:bin"
},
"files": [
"bin",
"openapi",
"src"
],
"dependencies": {
"@opencode-ai/sdk": "1.4.9",
"hono": "4.12.12",
"hono-openapi": "1.3.0",
"jsonc-parser": "^3.3.1",
"yaml": "^2.8.1",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^22.10.2",
"bun-types": "^1.3.6",
"typescript": "^5.6.3"
},
"packageManager": "pnpm@10.27.0"
}