1
0

package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {
  2. "$schema": "https://json.schemastore.org/package.json",
  3. "version": "1.18.4",
  4. "name": "@opencode-ai/core",
  5. "type": "module",
  6. "license": "MIT",
  7. "repository": {
  8. "type": "git",
  9. "url": "git+https://github.com/anomalyco/opencode.git",
  10. "directory": "packages/core"
  11. },
  12. "publishConfig": {
  13. "access": "public"
  14. },
  15. "files": [
  16. "dist"
  17. ],
  18. "scripts": {
  19. "db": "bun drizzle-kit",
  20. "migration": "bun run script/migration.ts",
  21. "fix-node-pty": "bun run script/fix-node-pty.ts",
  22. "benchmark:location": "bun run script/benchmark-location.ts",
  23. "build": "bun run script/build.ts",
  24. "update-models-snapshot": "bun run script/update-models-snapshot.ts",
  25. "test": "bun test --only-failures",
  26. "typecheck": "tsgo -b tsconfig.json tsconfig.tests.json"
  27. },
  28. "exports": {
  29. "./*": "./src/*.ts"
  30. },
  31. "imports": {
  32. "#sqlite": {
  33. "workerd": "./src/database/sqlite.workerd.ts",
  34. "bun": "./src/database/sqlite.bun.ts",
  35. "node": "./src/database/sqlite.node.ts",
  36. "default": "./src/database/sqlite.node.ts"
  37. },
  38. "#pty": {
  39. "workerd": "./src/pty/pty.workerd.ts",
  40. "bun": "./src/pty/pty.bun.ts",
  41. "node": "./src/pty/pty.node.ts",
  42. "default": "./src/pty/pty.bun.ts"
  43. },
  44. "#fff": {
  45. "workerd": "./src/filesystem/fff.workerd.ts",
  46. "bun": "./src/filesystem/fff.bun.ts",
  47. "node": "./src/filesystem/fff.node.ts",
  48. "default": "./src/filesystem/fff.bun.ts"
  49. },
  50. "#photon-wasm": {
  51. "workerd": "./src/image/photon-wasm.workerd.ts",
  52. "bun": "./src/image/photon-wasm.bun.ts",
  53. "node": "./src/image/photon-wasm.node.ts",
  54. "default": "./src/image/photon-wasm.bun.ts"
  55. },
  56. "#shell-parser-wasm": {
  57. "workerd": "./src/shell/parser-wasm.workerd.ts",
  58. "bun": "./src/shell/parser-wasm.bun.ts",
  59. "node": "./src/shell/parser-wasm.node.ts",
  60. "default": "./src/shell/parser-wasm.bun.ts"
  61. },
  62. "#process-lock-ffi": {
  63. "workerd": "./src/util/process-lock-ffi.workerd.ts",
  64. "bun": "./src/util/process-lock-ffi.bun.ts",
  65. "node": "./src/util/process-lock-ffi.node.ts",
  66. "default": "./src/util/process-lock-ffi.bun.ts"
  67. },
  68. "#v1-migration": {
  69. "types": "./src/database/v1-migration.bun.ts",
  70. "bun": "./src/database/v1-migration.bun.ts",
  71. "node": "./src/database/v1-migration.noop.ts",
  72. "workerd": "./src/database/v1-migration.noop.ts",
  73. "default": "./src/database/v1-migration.noop.ts"
  74. }
  75. },
  76. "devDependencies": {
  77. "@effect/platform-node": "catalog:",
  78. "@effect/sql-sqlite-bun": "catalog:",
  79. "@tsconfig/bun": "catalog:",
  80. "@types/bun": "catalog:",
  81. "@types/node": "catalog:",
  82. "@types/which": "3.0.4",
  83. "@opencode-ai/shell-scan": "workspace:*",
  84. "@parcel/watcher-darwin-arm64": "2.5.1",
  85. "@parcel/watcher-darwin-x64": "2.5.1",
  86. "@parcel/watcher-linux-arm64-glibc": "2.5.1",
  87. "@parcel/watcher-linux-arm64-musl": "2.5.1",
  88. "@parcel/watcher-linux-x64-glibc": "2.5.1",
  89. "@parcel/watcher-linux-x64-musl": "2.5.1",
  90. "@parcel/watcher-win32-arm64": "2.5.1",
  91. "@parcel/watcher-win32-x64": "2.5.1",
  92. "@opencode-ai/http-recorder": "workspace:*",
  93. "drizzle-kit": "catalog:"
  94. },
  95. "dependencies": {
  96. "@ai-sdk/alibaba": "1.0.17",
  97. "@ai-sdk/amazon-bedrock": "4.0.112",
  98. "@ai-sdk/anthropic": "3.0.82",
  99. "@ai-sdk/azure": "3.0.88",
  100. "@ai-sdk/cerebras": "2.0.41",
  101. "@ai-sdk/cohere": "3.0.27",
  102. "@ai-sdk/deepinfra": "2.0.41",
  103. "@ai-sdk/gateway": "3.0.104",
  104. "@ai-sdk/google-vertex": "4.0.128",
  105. "@ai-sdk/groq": "3.0.31",
  106. "@ai-sdk/mistral": "3.0.51",
  107. "@ai-sdk/openai-compatible": "2.0.41",
  108. "@ai-sdk/perplexity": "3.0.26",
  109. "@ai-sdk/provider": "3.0.8",
  110. "@ai-sdk/provider-utils": "4.0.23",
  111. "@ai-sdk/togetherai": "2.0.41",
  112. "@ai-sdk/vercel": "2.0.39",
  113. "@aws-sdk/credential-providers": "3.1057.0",
  114. "@lydell/node-pty": "catalog:",
  115. "@modelcontextprotocol/sdk": "1.29.0",
  116. "@ff-labs/fff-bun": "0.10.1",
  117. "@ff-labs/fff-node": "0.10.1",
  118. "@opencode-ai/codemode": "workspace:*",
  119. "@opencode-ai/ai": "workspace:*",
  120. "@opencode-ai/schema": "workspace:*",
  121. "@opencode-ai/plugin": "workspace:*",
  122. "@opencode-ai/util": "workspace:*",
  123. "@standard-schema/spec": "catalog:",
  124. "@parcel/watcher": "2.5.1",
  125. "@silvia-odwyer/photon-node": "0.3.4",
  126. "ai-gateway-provider": "3.1.2",
  127. "bun-pty": "0.4.8",
  128. "diff": "catalog:",
  129. "drizzle-orm": "catalog:",
  130. "effect": "catalog:",
  131. "fuzzysort": "3.1.0",
  132. "gitlab-ai-provider": "6.12.1",
  133. "google-auth-library": "10.5.0",
  134. "gray-matter": "4.0.3",
  135. "htmlparser2": "8.0.2",
  136. "immer": "11.1.4",
  137. "ignore": "7.0.5",
  138. "jsonc-parser": "3.3.1",
  139. "mime-types": "3.0.2",
  140. "tree-sitter-bash": "0.25.0",
  141. "tree-sitter-powershell": "0.25.10",
  142. "venice-ai-sdk-provider": "2.1.1",
  143. "web-tree-sitter": "0.25.10",
  144. "which": "6.0.1",
  145. "zod": "catalog:"
  146. }
  147. }