package.json 4.3 KB

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