package.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. {
  2. "$schema": "https://json.schemastore.org/package.json",
  3. "version": "1.14.50",
  4. "name": "opencode",
  5. "type": "module",
  6. "license": "MIT",
  7. "private": true,
  8. "scripts": {
  9. "typecheck": "tsgo --noEmit",
  10. "test": "bun test --timeout 30000",
  11. "test:ci": "mkdir -p .artifacts/unit && bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
  12. "test:httpapi": "bun run script/httpapi-exercise.ts --mode coverage --fail-on-missing --fail-on-skip && bun run script/httpapi-exercise.ts --mode auth --fail-on-missing --fail-on-skip && bun run script/httpapi-exercise.ts --mode effect --fail-on-missing --fail-on-skip",
  13. "build": "bun run script/build.ts",
  14. "fix-node-pty": "bun run script/fix-node-pty.ts",
  15. "dev": "bun run --conditions=browser ./src/index.ts",
  16. "dev:temporary": "bun run --conditions=browser ./src/temporary.ts",
  17. "db": "bun drizzle-kit"
  18. },
  19. "bin": {
  20. "opencode": "./bin/opencode"
  21. },
  22. "exports": {
  23. "./*": "./src/*.ts"
  24. },
  25. "imports": {
  26. "#db": {
  27. "bun": "./src/storage/db.bun.ts",
  28. "node": "./src/storage/db.node.ts",
  29. "default": "./src/storage/db.bun.ts"
  30. },
  31. "#pty": {
  32. "bun": "./src/pty/pty.bun.ts",
  33. "node": "./src/pty/pty.node.ts",
  34. "default": "./src/pty/pty.bun.ts"
  35. }
  36. },
  37. "devDependencies": {
  38. "@babel/core": "7.28.4",
  39. "@octokit/webhooks-types": "7.6.1",
  40. "@opencode-ai/script": "workspace:*",
  41. "@opencode-ai/core": "workspace:*",
  42. "@parcel/watcher-darwin-arm64": "2.5.1",
  43. "@parcel/watcher-darwin-x64": "2.5.1",
  44. "@parcel/watcher-linux-arm64-glibc": "2.5.1",
  45. "@parcel/watcher-linux-arm64-musl": "2.5.1",
  46. "@parcel/watcher-linux-x64-glibc": "2.5.1",
  47. "@parcel/watcher-linux-x64-musl": "2.5.1",
  48. "@parcel/watcher-win32-arm64": "2.5.1",
  49. "@parcel/watcher-win32-x64": "2.5.1",
  50. "@standard-schema/spec": "1.0.0",
  51. "@tsconfig/bun": "catalog:",
  52. "@types/babel__core": "7.20.5",
  53. "@types/bun": "catalog:",
  54. "@types/cross-spawn": "catalog:",
  55. "@types/mime-types": "3.0.1",
  56. "@types/npm-package-arg": "6.1.4",
  57. "@types/semver": "^7.5.8",
  58. "@types/turndown": "5.0.5",
  59. "@types/which": "3.0.4",
  60. "@types/yargs": "17.0.33",
  61. "@typescript/native-preview": "catalog:",
  62. "drizzle-kit": "catalog:",
  63. "drizzle-orm": "catalog:",
  64. "prettier": "3.6.2",
  65. "typescript": "catalog:",
  66. "vscode-languageserver-types": "3.17.5",
  67. "why-is-node-running": "3.2.2"
  68. },
  69. "dependencies": {
  70. "@actions/core": "1.11.1",
  71. "@actions/github": "6.0.1",
  72. "@agentclientprotocol/sdk": "0.21.0",
  73. "@ai-sdk/alibaba": "1.0.17",
  74. "@ai-sdk/amazon-bedrock": "4.0.96",
  75. "@ai-sdk/anthropic": "3.0.71",
  76. "@ai-sdk/azure": "3.0.49",
  77. "@ai-sdk/cerebras": "2.0.41",
  78. "@ai-sdk/cohere": "3.0.27",
  79. "@ai-sdk/deepinfra": "2.0.41",
  80. "@ai-sdk/gateway": "3.0.104",
  81. "@ai-sdk/google": "3.0.63",
  82. "@ai-sdk/google-vertex": "4.0.112",
  83. "@ai-sdk/groq": "3.0.31",
  84. "@ai-sdk/mistral": "3.0.27",
  85. "@ai-sdk/openai": "3.0.53",
  86. "@ai-sdk/openai-compatible": "2.0.41",
  87. "@ai-sdk/perplexity": "3.0.26",
  88. "@ai-sdk/provider": "3.0.8",
  89. "@ai-sdk/togetherai": "2.0.41",
  90. "@ai-sdk/vercel": "2.0.39",
  91. "@ai-sdk/xai": "3.0.82",
  92. "@aws-sdk/credential-providers": "3.993.0",
  93. "@clack/prompts": "1.0.0-alpha.1",
  94. "@effect/opentelemetry": "catalog:",
  95. "@effect/platform-node": "catalog:",
  96. "@gitlab/opencode-gitlab-auth": "1.3.3",
  97. "@lydell/node-pty": "catalog:",
  98. "@modelcontextprotocol/sdk": "1.27.1",
  99. "@octokit/graphql": "9.0.2",
  100. "@octokit/rest": "catalog:",
  101. "@openauthjs/openauth": "catalog:",
  102. "@opencode-ai/plugin": "workspace:*",
  103. "@opencode-ai/script": "workspace:*",
  104. "@opencode-ai/sdk": "workspace:*",
  105. "@opencode-ai/ui": "workspace:*",
  106. "@openrouter/ai-sdk-provider": "2.8.1",
  107. "@opentelemetry/api": "1.9.0",
  108. "@opentelemetry/context-async-hooks": "2.6.1",
  109. "@opentelemetry/exporter-trace-otlp-http": "0.214.0",
  110. "@opentelemetry/sdk-trace-base": "2.6.1",
  111. "@opentelemetry/sdk-trace-node": "2.6.1",
  112. "@opentui/core": "catalog:",
  113. "@opentui/keymap": "catalog:",
  114. "@opentui/solid": "catalog:",
  115. "@parcel/watcher": "2.5.1",
  116. "@pierre/diffs": "catalog:",
  117. "@silvia-odwyer/photon-node": "0.3.4",
  118. "@solid-primitives/event-bus": "1.1.2",
  119. "@solid-primitives/scheduled": "1.5.2",
  120. "@standard-schema/spec": "1.0.0",
  121. "@zip.js/zip.js": "2.7.62",
  122. "ai": "catalog:",
  123. "ai-gateway-provider": "3.1.2",
  124. "bonjour-service": "1.3.0",
  125. "bun-pty": "0.4.8",
  126. "chokidar": "4.0.3",
  127. "clipboardy": "4.0.0",
  128. "cross-spawn": "catalog:",
  129. "decimal.js": "10.5.0",
  130. "diff": "catalog:",
  131. "drizzle-orm": "catalog:",
  132. "effect": "catalog:",
  133. "fuzzysort": "3.1.0",
  134. "gitlab-ai-provider": "6.6.0",
  135. "glob": "13.0.5",
  136. "google-auth-library": "10.5.0",
  137. "gray-matter": "4.0.3",
  138. "htmlparser2": "8.0.2",
  139. "ignore": "7.0.5",
  140. "immer": "11.1.4",
  141. "jsonc-parser": "3.3.1",
  142. "mime-types": "3.0.2",
  143. "minimatch": "10.0.3",
  144. "npm-package-arg": "13.0.2",
  145. "open": "10.1.2",
  146. "opencode-gitlab-auth": "2.0.1",
  147. "opencode-poe-auth": "0.0.1",
  148. "opentui-spinner": "catalog:",
  149. "partial-json": "0.1.7",
  150. "remeda": "catalog:",
  151. "semver": "^7.6.3",
  152. "solid-js": "catalog:",
  153. "strip-ansi": "7.1.2",
  154. "tree-sitter-bash": "0.25.0",
  155. "tree-sitter-powershell": "0.25.10",
  156. "turndown": "7.2.0",
  157. "ulid": "catalog:",
  158. "venice-ai-sdk-provider": "2.0.1",
  159. "vscode-jsonrpc": "8.2.1",
  160. "web-tree-sitter": "0.25.10",
  161. "which": "6.0.1",
  162. "xdg-basedir": "5.1.0",
  163. "yargs": "18.0.0",
  164. "zod": "catalog:"
  165. },
  166. "overrides": {
  167. "drizzle-orm": "catalog:"
  168. }
  169. }