mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-07 16:17:25 +03:00
144 lines
4.6 KiB
JSON
144 lines
4.6 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/package.json",
|
|
"version": "2.2.5",
|
|
"name": "@opencode/core",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/anomalyco/opencode.git",
|
|
"directory": "packages/core"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"db": "bun drizzle-kit",
|
|
"migration": "bun run script/migration.ts",
|
|
"fix-node-pty": "bun run script/fix-node-pty.ts",
|
|
"build": "bun run script/build.ts",
|
|
"pack": "bun run script/pack.ts",
|
|
"update-models-snapshot": "bun run script/update-models-snapshot.ts",
|
|
"test": "bun run script/test.ts",
|
|
"typecheck": "bun check --no-script -b -p tsconfig.tests.json",
|
|
"typecheck:tsc": "tsc -b tsconfig.json tsconfig.tests.json"
|
|
},
|
|
"exports": {
|
|
"./*": "./src/*.ts"
|
|
},
|
|
"imports": {
|
|
"#sqlite": {
|
|
"workerd": "./src/database/sqlite.workerd.ts",
|
|
"bun": "./src/database/sqlite.bun.ts",
|
|
"node": "./src/database/sqlite.node.ts",
|
|
"default": "./src/database/sqlite.node.ts"
|
|
},
|
|
"#pty": {
|
|
"workerd": "./src/pty/pty.workerd.ts",
|
|
"bun": "./src/pty/pty.bun.ts",
|
|
"node": "./src/pty/pty.node.ts",
|
|
"default": "./src/pty/pty.bun.ts"
|
|
},
|
|
"#claude-agent-sdk": {
|
|
"workerd": "./src/plugin/provider/claude-agent/claude/agent-sdk.workerd.ts",
|
|
"default": "./src/plugin/provider/claude-agent/claude/agent-sdk.ts"
|
|
},
|
|
"#persistent-pty-binary": {
|
|
"workerd": "./src/persistent-pty/binary.workerd.ts",
|
|
"bun": "./src/persistent-pty/binary.bun.ts",
|
|
"node": "./src/persistent-pty/binary.node.ts",
|
|
"default": "./src/persistent-pty/binary.bun.ts"
|
|
},
|
|
"#fff": {
|
|
"workerd": "./src/filesystem/fff.workerd.ts",
|
|
"bun": "./src/filesystem/fff.bun.ts",
|
|
"node": "./src/filesystem/fff.node.ts",
|
|
"default": "./src/filesystem/fff.bun.ts"
|
|
},
|
|
"#photon-wasm": {
|
|
"workerd": "./src/image/photon-wasm.workerd.ts",
|
|
"bun": "./src/image/photon-wasm.bun.ts",
|
|
"node": "./src/image/photon-wasm.node.ts",
|
|
"default": "./src/image/photon-wasm.bun.ts"
|
|
},
|
|
"#v1-migration": {
|
|
"types": "./src/database/v1-migration.bun.ts",
|
|
"bun": "./src/database/v1-migration.bun.ts",
|
|
"node": "./src/database/v1-migration.noop.ts",
|
|
"workerd": "./src/database/v1-migration.noop.ts",
|
|
"default": "./src/database/v1-migration.noop.ts"
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@ai-sdk/openai-compatible": "2.0.41",
|
|
"@anthropic-ai/claude-agent-sdk": "0.3.301",
|
|
"@hona/strobe": "catalog:",
|
|
"@opencode/http-recorder": "workspace:*",
|
|
"@parcel/watcher-darwin-arm64": "2.5.1",
|
|
"@parcel/watcher-darwin-x64": "2.5.1",
|
|
"@parcel/watcher-linux-arm64-glibc": "2.5.1",
|
|
"@parcel/watcher-linux-arm64-musl": "2.5.1",
|
|
"@parcel/watcher-linux-x64-glibc": "2.5.1",
|
|
"@parcel/watcher-linux-x64-musl": "2.5.1",
|
|
"@parcel/watcher-win32-arm64": "2.5.1",
|
|
"@parcel/watcher-win32-x64": "2.5.1",
|
|
"@tsconfig/bun": "catalog:",
|
|
"@types/bun": "catalog:",
|
|
"@types/node": "catalog:",
|
|
"@types/which": "3.0.4",
|
|
"drizzle-kit": "catalog:",
|
|
"fast-check": "catalog:"
|
|
},
|
|
"dependencies": {
|
|
"@ai-sdk/provider": "3.0.19",
|
|
"@ai-sdk/provider-utils": "4.0.62",
|
|
"@effect/platform-node": "catalog:",
|
|
"@effect/platform-node-shared": "catalog:",
|
|
"@effect/sql-sqlite-bun": "catalog:",
|
|
"@effect/sql-sqlite-node": "catalog:",
|
|
"@ff-labs/fff-bun": "0.10.5",
|
|
"@ff-labs/fff-node": "0.10.5",
|
|
"@lydell/node-pty": "catalog:",
|
|
"@modelcontextprotocol/client": "2.3.1",
|
|
"@modelcontextprotocol/core": "2.3.1",
|
|
"@modelcontextprotocol/server": "2.3.1",
|
|
"@opencode/pty": "0.4.0",
|
|
"@opencode/ai": "workspace:*",
|
|
"@opencode/codemode": "workspace:*",
|
|
"@opencode/plugin": "workspace:*",
|
|
"@opencode/plugin-browser": "workspace:*",
|
|
"@opencode/schema": "workspace:*",
|
|
"@opencode/util": "workspace:*",
|
|
"@parcel/watcher": "2.5.1",
|
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
"@standard-schema/spec": "catalog:",
|
|
"bun-pty": "0.4.11",
|
|
"diff": "catalog:",
|
|
"drizzle-orm": "catalog:",
|
|
"effect": "catalog:",
|
|
"fuzzysort": "3.1.0",
|
|
"gitlab-ai-provider": "6.23.1",
|
|
"gray-matter": "4.0.3",
|
|
"htmlparser2": "8.0.2",
|
|
"http-proxy-agent": "7.0.2",
|
|
"https-proxy-agent": "7.0.6",
|
|
"immer": "11.1.4",
|
|
"jose": "6.0.11",
|
|
"jsonc-parser": "3.3.1",
|
|
"mime-types": "3.0.2",
|
|
"which": "6.0.1",
|
|
"zod": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "0.3.301"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@anthropic-ai/claude-agent-sdk": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|