package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. "test": "bun test --only-failures",
  13. "typecheck": "tsgo --noEmit"
  14. },
  15. "bin": {
  16. "opencode": "./bin/opencode"
  17. },
  18. "exports": {
  19. "./session/runner": "./src/session/runner/index.ts",
  20. "./instructions": "./src/instructions/index.ts",
  21. "./*": "./src/*.ts"
  22. },
  23. "imports": {
  24. "#sqlite": {
  25. "bun": "./src/database/sqlite.bun.ts",
  26. "node": "./src/database/sqlite.node.ts",
  27. "default": "./src/database/sqlite.bun.ts"
  28. },
  29. "#pty": {
  30. "bun": "./src/pty/pty.bun.ts",
  31. "node": "./src/pty/pty.node.ts",
  32. "default": "./src/pty/pty.bun.ts"
  33. },
  34. "#fff": {
  35. "bun": "./src/filesystem/fff.bun.ts",
  36. "node": "./src/filesystem/fff.node.ts",
  37. "default": "./src/filesystem/fff.bun.ts"
  38. },
  39. "#photon-wasm": {
  40. "bun": "./src/image/photon-wasm.bun.ts",
  41. "node": "./src/image/photon-wasm.node.ts",
  42. "default": "./src/image/photon-wasm.bun.ts"
  43. },
  44. "#shell-parser-wasm": {
  45. "bun": "./src/shell/parser-wasm.bun.ts",
  46. "node": "./src/shell/parser-wasm.node.ts",
  47. "default": "./src/shell/parser-wasm.bun.ts"
  48. },
  49. "#process-lock-ffi": {
  50. "bun": "./src/util/process-lock-ffi.bun.ts",
  51. "node": "./src/util/process-lock-ffi.node.ts",
  52. "default": "./src/util/process-lock-ffi.bun.ts"
  53. }
  54. },
  55. "devDependencies": {
  56. "@tsconfig/bun": "catalog:",
  57. "@types/bun": "catalog:",
  58. "@types/node": "catalog:",
  59. "@types/semver": "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": "3.0.73",
  83. "@ai-sdk/google-vertex": "4.0.128",
  84. "@ai-sdk/groq": "3.0.31",
  85. "@ai-sdk/mistral": "3.0.51",
  86. "@ai-sdk/openai": "3.0.84",
  87. "@ai-sdk/openai-compatible": "2.0.41",
  88. "@ai-sdk/perplexity": "3.0.26",
  89. "@ai-sdk/provider": "3.0.8",
  90. "@ai-sdk/provider-utils": "4.0.23",
  91. "@ai-sdk/togetherai": "2.0.41",
  92. "@ai-sdk/vercel": "2.0.39",
  93. "@ai-sdk/xai": "3.0.102",
  94. "@aws-sdk/credential-providers": "3.1057.0",
  95. "@effect/platform-node": "catalog:",
  96. "@effect/sql-sqlite-bun": "catalog:",
  97. "@lydell/node-pty": "catalog:",
  98. "@modelcontextprotocol/sdk": "1.29.0",
  99. "@ff-labs/fff-bun": "0.10.1",
  100. "@ff-labs/fff-node": "0.10.1",
  101. "@opencode-ai/codemode": "workspace:*",
  102. "@opencode-ai/effect-drizzle-sqlite": "workspace:*",
  103. "@opencode-ai/effect-sqlite-node": "workspace:*",
  104. "@opencode-ai/ai": "workspace:*",
  105. "@opencode-ai/schema": "workspace:*",
  106. "@opencode-ai/plugin": "workspace:*",
  107. "@opencode-ai/util": "workspace:*",
  108. "@standard-schema/spec": "catalog:",
  109. "@parcel/watcher": "2.5.1",
  110. "@silvia-odwyer/photon-node": "0.3.4",
  111. "@openrouter/ai-sdk-provider": "2.9.0",
  112. "ai-gateway-provider": "3.1.2",
  113. "bun-pty": "0.4.8",
  114. "diff": "catalog:",
  115. "drizzle-orm": "catalog:",
  116. "effect": "catalog:",
  117. "fuzzysort": "3.1.0",
  118. "gitlab-ai-provider": "6.11.1",
  119. "google-auth-library": "10.5.0",
  120. "gray-matter": "4.0.3",
  121. "htmlparser2": "8.0.2",
  122. "immer": "11.1.4",
  123. "ignore": "7.0.5",
  124. "jsonc-parser": "3.3.1",
  125. "semver": "^7.6.3",
  126. "turndown": "7.2.0",
  127. "tree-sitter-bash": "0.25.0",
  128. "tree-sitter-powershell": "0.25.10",
  129. "venice-ai-sdk-provider": "2.1.1",
  130. "web-tree-sitter": "0.25.10",
  131. "which": "6.0.1",
  132. "zod": "catalog:"
  133. },
  134. "overrides": {
  135. "drizzle-orm": "catalog:"
  136. }
  137. }