2913aee8ba
ServerWorkerd.create builds the fetch handler for a Durable Object's fetch(), with every intentionally-local service replaced: the database runs on the injected DO SQLite, plugin discovery is precompiled-only, MCP is remote-only, Snapshot and Vcs degrade to empty results, and Shell/FileSystem/Pty fail with a clear defect until a remote sandbox backs them. Threading it through needs one seam: createRoutes and ServerFetch.make take runtime-profile replacements applied after the standard set, so later entries win. script/workerd-probe.ts pins that the graph bundles under the workerd condition without bun builtins.
33 lines
855 B
JSON
33 lines
855 B
JSON
{
|
|
"$schema": "https://json.schemastore.org/package.json",
|
|
"name": "@opencode-ai/server",
|
|
"version": "1.18.4",
|
|
"private": true,
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"exports": {
|
|
"./*": "./src/*.ts"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test --only-failures",
|
|
"typecheck": "tsgo -b",
|
|
"probe:workerd": "bun run script/workerd-probe.ts"
|
|
},
|
|
"dependencies": {
|
|
"@effect/platform-node": "catalog:",
|
|
"@opencode-ai/core": "workspace:*",
|
|
"@opencode-ai/protocol": "workspace:*",
|
|
"@opencode-ai/schema": "workspace:*",
|
|
"@opencode-ai/simulation": "workspace:*",
|
|
"@opencode-ai/util": "workspace:*",
|
|
"drizzle-orm": "catalog:",
|
|
"effect": "catalog:",
|
|
"modal": "0.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tsconfig/bun": "catalog:",
|
|
"@types/bun": "catalog:",
|
|
"@typescript/native-preview": "catalog:"
|
|
}
|
|
}
|