mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
* 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.
61 lines
1.9 KiB
JSON
61 lines
1.9 KiB
JSON
{
|
|
"name": "opencode-router",
|
|
"version": "0.11.207",
|
|
"description": "opencode-router: Slack + Telegram bridge + directory routing for a running opencode server",
|
|
"private": false,
|
|
"type": "module",
|
|
"bin": {
|
|
"opencode-router": "bin/opencode-router.mjs"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/different-ai/openwork.git",
|
|
"directory": "apps/opencode-router"
|
|
},
|
|
"keywords": [
|
|
"opencode",
|
|
"router",
|
|
"slack",
|
|
"telegram",
|
|
"bridge",
|
|
"bot"
|
|
],
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"README.md",
|
|
".env.example",
|
|
"install.sh"
|
|
],
|
|
"scripts": {
|
|
"dev": "OPENWORK_DEV_MODE=1 bun src/cli.ts",
|
|
"build": "tsc -p tsconfig.json",
|
|
"prepack": "node -e \"const fs=require('fs'); fs.rmSync('dist', { recursive: true, force: true });\" && tsc -p tsconfig.json",
|
|
"build:bin": "bun ./script/build.ts --outdir dist/bin --filename opencode-router",
|
|
"build:bin:all": "bun ./script/build.ts --outdir dist/bin --filename opencode-router --target bun-darwin-arm64 --target bun-darwin-x64 --target bun-linux-x64 --target bun-linux-arm64 --target bun-windows-x64",
|
|
"build:binary": "bun ./script/build.ts --outdir dist/bin --filename opencode-router",
|
|
"start": "bun dist/cli.js start",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"setup": "bun scripts/setup.mjs",
|
|
"test:unit": "pnpm build && bun test test/*.test.js",
|
|
"test:smoke": "bun scripts/smoke.mjs",
|
|
"test:cli": "pnpm build && bun scripts/test-cli.mjs",
|
|
"test:npx": "bun scripts/test-npx.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@opencode-ai/sdk": "^1.4.9",
|
|
"@slack/socket-mode": "^2.0.5",
|
|
"@slack/web-api": "^7.13.0",
|
|
"commander": "^12.1.0",
|
|
"dotenv": "^16.4.7",
|
|
"grammy": "^1.39.3",
|
|
"pino": "^9.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.2",
|
|
"bun-types": "^1.3.6",
|
|
"typescript": "^5.6.3"
|
|
}
|
|
}
|