package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. "private": true,
  8. "scripts": {
  9. "db": "bun drizzle-kit",
  10. "migration": "bun run script/migration.ts",
  11. "fix-node-pty": "bun run script/fix-node-pty.ts",
  12. "benchmark:location": "bun run script/benchmark-location.ts",
  13. "test": "bun test --only-failures",
  14. "typecheck": "tsgo --noEmit"
  15. },
  16. "bin": {
  17. "opencode": "./bin/opencode"
  18. },
  19. "exports": {
  20. "./session/runner": "./src/session/runner/index.ts",
  21. "./instructions": "./src/instructions/index.ts",
  22. "./*": "./src/*.ts"
  23. },
  24. "imports": {
  25. "#sqlite": {
  26. "bun": "./src/database/sqlite.bun.ts",
  27. "node": "./src/database/sqlite.node.ts",
  28. "default": "./src/database/sqlite.bun.ts"
  29. },
  30. "#pty": {
  31. "bun": "./src/pty/pty.bun.ts",
  32. "node": "./src/pty/pty.node.ts",
  33. "default": "./src/pty/pty.bun.ts"
  34. },
  35. "#fff": {
  36. "bun": "./src/filesystem/fff.bun.ts",
  37. "node": "./src/filesystem/fff.node.ts",
  38. "default": "./src/filesystem/fff.bun.ts"
  39. },
  40. "#photon-wasm": {
  41. "bun": "./src/image/photon-wasm.bun.ts",
  42. "node": "./src/image/photon-wasm.node.ts",
  43. "default": "./src/image/photon-wasm.bun.ts"
  44. },
  45. "#shell-parser-wasm": {
  46. "bun": "./src/shell/parser-wasm.bun.ts",
  47. "node": "./src/shell/parser-wasm.node.ts",
  48. "default": "./src/shell/parser-wasm.bun.ts"
  49. },
  50. "#process-lock-ffi": {
  51. "bun": "./src/util/process-lock-ffi.bun.ts",
  52. "node": "./src/util/process-lock-ffi.node.ts",
  53. "default": "./src/util/process-lock-ffi.bun.ts"
  54. }
  55. },
  56. "devDependencies": {
  57. "@tsconfig/bun": "catalog:",
  58. "@types/bun": "catalog:",
  59. "@types/node": "catalog:",
  60. "@types/turndown": "5.0.5",
  61. "@types/which": "3.0.4",
  62. "@parcel/watcher-darwin-arm64": "2.5.1",
  63. "@parcel/watcher-darwin-x64": "2.5.1",
  64. "@parcel/watcher-linux-arm64-glibc": "2.5.1",
  65. "@parcel/watcher-linux-arm64-musl": "2.5.1",
  66. "@parcel/watcher-linux-x64-glibc": "2.5.1",
  67. "@parcel/watcher-linux-x64-musl": "2.5.1",
  68. "@parcel/watcher-win32-arm64": "2.5.1",
  69. "@parcel/watcher-win32-x64": "2.5.1",
  70. "@opencode-ai/http-recorder": "workspace:*",
  71. "drizzle-kit": "catalog:"
  72. },
  73. "dependencies": {
  74. "@ai-sdk/alibaba": "1.0.17",
  75. "@ai-sdk/amazon-bedrock": "4.0.112",
  76. "@ai-sdk/anthropic": "3.0.82",
  77. "@ai-sdk/azure": "3.0.88",
  78. "@ai-sdk/cerebras": "2.0.41",
  79. "@ai-sdk/cohere": "3.0.27",
  80. "@ai-sdk/deepinfra": "2.0.41",
  81. "@ai-sdk/gateway": "3.0.104",
  82. "@ai-sdk/google-vertex": "4.0.128",
  83. "@ai-sdk/groq": "3.0.31",
  84. "@ai-sdk/mistral": "3.0.51",
  85. "@ai-sdk/openai-compatible": "2.0.41",
  86. "@ai-sdk/perplexity": "3.0.26",
  87. "@ai-sdk/provider": "3.0.8",
  88. "@ai-sdk/provider-utils": "4.0.23",
  89. "@ai-sdk/togetherai": "2.0.41",
  90. "@ai-sdk/vercel": "2.0.39",
  91. "@aws-sdk/credential-providers": "3.1057.0",
  92. "@effect/platform-node": "catalog:",
  93. "@effect/sql-sqlite-bun": "catalog:",
  94. "@lydell/node-pty": "catalog:",
  95. "@modelcontextprotocol/sdk": "1.29.0",
  96. "@ff-labs/fff-bun": "0.10.1",
  97. "@ff-labs/fff-node": "0.10.1",
  98. "@opencode-ai/codemode": "workspace:*",
  99. "@opencode-ai/effect-drizzle-sqlite": "workspace:*",
  100. "@opencode-ai/ai": "workspace:*",
  101. "@opencode-ai/schema": "workspace:*",
  102. "@opencode-ai/plugin": "workspace:*",
  103. "@opencode-ai/util": "workspace:*",
  104. "@standard-schema/spec": "catalog:",
  105. "@parcel/watcher": "2.5.1",
  106. "@silvia-odwyer/photon-node": "0.3.4",
  107. "ai-gateway-provider": "3.1.2",
  108. "bun-pty": "0.4.8",
  109. "diff": "catalog:",
  110. "drizzle-orm": "catalog:",
  111. "effect": "catalog:",
  112. "fuzzysort": "3.1.0",
  113. "gitlab-ai-provider": "6.11.1",
  114. "google-auth-library": "10.5.0",
  115. "gray-matter": "4.0.3",
  116. "htmlparser2": "8.0.2",
  117. "immer": "11.1.4",
  118. "ignore": "7.0.5",
  119. "jsonc-parser": "3.3.1",
  120. "turndown": "7.2.0",
  121. "tree-sitter-bash": "0.25.0",
  122. "tree-sitter-powershell": "0.25.10",
  123. "venice-ai-sdk-provider": "2.1.1",
  124. "web-tree-sitter": "0.25.10",
  125. "which": "6.0.1",
  126. "zod": "catalog:"
  127. },
  128. "overrides": {
  129. "drizzle-orm": "catalog:"
  130. }
  131. }