Move all hand-synced cross-app wire contracts into one built workspace package, @boocode/contracts, consumed by server/web/coder/coder-web via workspace:* + a per-subpath exports map. The ws-frames and provider-config Zod schemas are schema-first (z.infer); MessageMetadata, ErrorReason, AgentSessionConfig, the provider snapshot types, and WorktreeRiskReport are each single-sourced. Deletes the byte-identical copies and their parity tests, fixes a live AgentSessionConfig drift (coder dead copy removed, unified to the web required/nullable shape), removes the dead pending_change WS arms in the fallback SPA, and inverts the build order (contracts builds first) across root build, Dockerfile, and the coder deploy docs. Reverses the shared-package decision declined in v2.5.12. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
101 lines
2.7 KiB
JSON
101 lines
2.7 KiB
JSON
{
|
|
"name": "@boocode/server",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./inference": {
|
|
"types": "./dist/services/inference/index.d.ts",
|
|
"default": "./dist/services/inference/index.js"
|
|
},
|
|
"./tools": {
|
|
"types": "./dist/services/tools.d.ts",
|
|
"default": "./dist/services/tools.js"
|
|
},
|
|
"./broker": {
|
|
"types": "./dist/services/broker.d.ts",
|
|
"default": "./dist/services/broker.js"
|
|
},
|
|
"./compaction": {
|
|
"types": "./dist/services/compaction.d.ts",
|
|
"default": "./dist/services/compaction.js"
|
|
},
|
|
"./model-context": {
|
|
"types": "./dist/services/model-context.d.ts",
|
|
"default": "./dist/services/model-context.js"
|
|
},
|
|
"./system-prompt": {
|
|
"types": "./dist/services/system-prompt.d.ts",
|
|
"default": "./dist/services/system-prompt.js"
|
|
},
|
|
"./agents": {
|
|
"types": "./dist/services/agents.d.ts",
|
|
"default": "./dist/services/agents.js"
|
|
},
|
|
"./truncate": {
|
|
"types": "./dist/services/truncate.d.ts",
|
|
"default": "./dist/services/truncate.js"
|
|
},
|
|
"./path-guard": {
|
|
"types": "./dist/services/path_guard.d.ts",
|
|
"default": "./dist/services/path_guard.js"
|
|
},
|
|
"./file-ops": {
|
|
"types": "./dist/services/file_ops.d.ts",
|
|
"default": "./dist/services/file_ops.js"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types/api.d.ts",
|
|
"default": "./dist/types/api.js"
|
|
},
|
|
"./db": {
|
|
"types": "./dist/db.d.ts",
|
|
"default": "./dist/db.js"
|
|
},
|
|
"./config": {
|
|
"types": "./dist/config.d.ts",
|
|
"default": "./dist/config.js"
|
|
},
|
|
"./skills": {
|
|
"types": "./dist/services/skills.d.ts",
|
|
"default": "./dist/services/skills.js"
|
|
},
|
|
"./skill-invoke": {
|
|
"types": "./dist/services/skill-invoke.d.ts",
|
|
"default": "./dist/services/skill-invoke.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc && node -e \"import('node:fs').then(fs=>fs.copyFileSync('src/schema.sql','dist/schema.sql'))\"",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@boocode/contracts": "workspace:*",
|
|
"@ai-sdk/openai-compatible": "^2.0.47",
|
|
"@fastify/static": "^7.0.4",
|
|
"@fastify/websocket": "^10.0.1",
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"ai": "^6.0.190",
|
|
"fastify": "^4.28.1",
|
|
"node-html-markdown": "^1.3.0",
|
|
"postgres": "^3.4.4",
|
|
"ws": "^8.18.0",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.10",
|
|
"@types/ws": "^8.5.10",
|
|
"tsx": "^4.16.2",
|
|
"typescript": "^5.5.0",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"license": "MIT"
|
|
}
|