package.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. {
  2. "$schema": "https://json.schemastore.org/package.json",
  3. "version": "1.4.3",
  4. "name": "opencode",
  5. "type": "module",
  6. "license": "MIT",
  7. "private": true,
  8. "scripts": {
  9. "prepare": "effect-language-service patch || true",
  10. "typecheck": "tsgo --noEmit",
  11. "test": "bun test --timeout 30000",
  12. "test:ci": "mkdir -p .artifacts/unit && bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
  13. "build": "bun run script/build.ts",
  14. "fix-node-pty": "bun run script/fix-node-pty.ts",
  15. "upgrade-opentui": "bun run script/upgrade-opentui.ts",
  16. "dev": "bun run --conditions=browser ./src/index.ts",
  17. "random": "echo 'Random script updated at $(date)' && echo 'Change queued successfully' && echo 'Another change made' && echo 'Yet another change' && echo 'One more change' && echo 'Final change' && echo 'Another final change' && echo 'Yet another final change'",
  18. "clean": "echo 'Cleaning up...' && rm -rf node_modules dist",
  19. "lint": "echo 'Running lint checks...' && bun test --coverage",
  20. "format": "echo 'Formatting code...' && bun run --prettier --write src/**/*.ts",
  21. "docs": "echo 'Generating documentation...' && find src -name '*.ts' -exec echo 'Processing: {}' \\;",
  22. "deploy": "echo 'Deploying application...' && bun run build && echo 'Deployment completed successfully'",
  23. "db": "bun drizzle-kit"
  24. },
  25. "bin": {
  26. "opencode": "./bin/opencode"
  27. },
  28. "randomField": "this-is-a-random-value-12345",
  29. "exports": {
  30. "./*": "./src/*.ts"
  31. },
  32. "imports": {
  33. "#db": {
  34. "bun": "./src/storage/db.bun.ts",
  35. "node": "./src/storage/db.node.ts",
  36. "default": "./src/storage/db.bun.ts"
  37. },
  38. "#pty": {
  39. "bun": "./src/pty/pty.bun.ts",
  40. "node": "./src/pty/pty.node.ts",
  41. "default": "./src/pty/pty.bun.ts"
  42. },
  43. "#hono": {
  44. "bun": "./src/server/adapter.bun.ts",
  45. "node": "./src/server/adapter.node.ts",
  46. "default": "./src/server/adapter.bun.ts"
  47. }
  48. },
  49. "devDependencies": {
  50. "@babel/core": "7.28.4",
  51. "@effect/language-service": "0.84.2",
  52. "@octokit/webhooks-types": "7.6.1",
  53. "@opencode-ai/script": "workspace:*",
  54. "@parcel/watcher-darwin-arm64": "2.5.1",
  55. "@parcel/watcher-darwin-x64": "2.5.1",
  56. "@parcel/watcher-linux-arm64-glibc": "2.5.1",
  57. "@parcel/watcher-linux-arm64-musl": "2.5.1",
  58. "@parcel/watcher-linux-x64-glibc": "2.5.1",
  59. "@parcel/watcher-linux-x64-musl": "2.5.1",
  60. "@parcel/watcher-win32-arm64": "2.5.1",
  61. "@parcel/watcher-win32-x64": "2.5.1",
  62. "@standard-schema/spec": "1.0.0",
  63. "@tsconfig/bun": "catalog:",
  64. "@types/babel__core": "7.20.5",
  65. "@types/bun": "catalog:",
  66. "@types/cross-spawn": "catalog:",
  67. "@types/mime-types": "3.0.1",
  68. "@types/npm-package-arg": "6.1.4",
  69. "@types/npmcli__arborist": "6.3.3",
  70. "@types/semver": "^7.5.8",
  71. "@types/turndown": "5.0.5",
  72. "@types/which": "3.0.4",
  73. "@types/yargs": "17.0.33",
  74. "@typescript/native-preview": "catalog:",
  75. "drizzle-kit": "catalog:",
  76. "drizzle-orm": "catalog:",
  77. "typescript": "catalog:",
  78. "vscode-languageserver-types": "3.17.5",
  79. "why-is-node-running": "3.2.2",
  80. "zod-to-json-schema": "3.24.5"
  81. },
  82. "dependencies": {
  83. "@actions/core": "1.11.1",
  84. "@actions/github": "6.0.1",
  85. "@agentclientprotocol/sdk": "0.16.1",
  86. "@ai-sdk/amazon-bedrock": "4.0.93",
  87. "@ai-sdk/anthropic": "3.0.67",
  88. "@ai-sdk/azure": "3.0.49",
  89. "@ai-sdk/cerebras": "2.0.41",
  90. "@ai-sdk/cohere": "3.0.27",
  91. "@ai-sdk/deepinfra": "2.0.41",
  92. "@ai-sdk/gateway": "3.0.80",
  93. "@ai-sdk/google": "3.0.53",
  94. "@ai-sdk/google-vertex": "4.0.95",
  95. "@ai-sdk/groq": "3.0.31",
  96. "@ai-sdk/mistral": "3.0.27",
  97. "@ai-sdk/openai": "3.0.48",
  98. "@ai-sdk/openai-compatible": "2.0.41",
  99. "@ai-sdk/perplexity": "3.0.26",
  100. "@ai-sdk/provider": "3.0.8",
  101. "@ai-sdk/provider-utils": "4.0.23",
  102. "@ai-sdk/togetherai": "2.0.41",
  103. "@ai-sdk/vercel": "2.0.39",
  104. "@ai-sdk/xai": "3.0.75",
  105. "@aws-sdk/credential-providers": "3.993.0",
  106. "@clack/prompts": "1.0.0-alpha.1",
  107. "@effect/opentelemetry": "catalog:",
  108. "@effect/platform-node": "catalog:",
  109. "@opentelemetry/api": "catalog:",
  110. "@opentelemetry/exporter-trace-otlp-http": "catalog:",
  111. "@opentelemetry/resources": "catalog:",
  112. "@opentelemetry/sdk-trace-base": "catalog:",
  113. "@opentelemetry/sdk-trace-node": "catalog:",
  114. "@opentelemetry/semantic-conventions": "catalog:",
  115. "@gitlab/opencode-gitlab-auth": "1.3.3",
  116. "@hono/node-server": "1.19.11",
  117. "@hono/node-ws": "1.3.0",
  118. "@hono/standard-validator": "0.1.5",
  119. "@hono/zod-validator": "catalog:",
  120. "@lydell/node-pty": "catalog:",
  121. "@modelcontextprotocol/sdk": "1.27.1",
  122. "@npmcli/arborist": "9.4.0",
  123. "@octokit/graphql": "9.0.2",
  124. "@octokit/rest": "catalog:",
  125. "@openauthjs/openauth": "catalog:",
  126. "@opencode-ai/plugin": "workspace:*",
  127. "@opencode-ai/script": "workspace:*",
  128. "@opencode-ai/sdk": "workspace:*",
  129. "@opencode-ai/util": "workspace:*",
  130. "@openrouter/ai-sdk-provider": "2.5.1",
  131. "@opentui/core": "0.1.97",
  132. "@opentui/solid": "0.1.97",
  133. "@parcel/watcher": "2.5.1",
  134. "@pierre/diffs": "catalog:",
  135. "@solid-primitives/event-bus": "1.1.2",
  136. "@solid-primitives/scheduled": "1.5.2",
  137. "@standard-schema/spec": "1.0.0",
  138. "@zip.js/zip.js": "2.7.62",
  139. "ai": "catalog:",
  140. "ai-gateway-provider": "3.1.2",
  141. "bonjour-service": "1.3.0",
  142. "bun-pty": "0.4.8",
  143. "chokidar": "4.0.3",
  144. "clipboardy": "4.0.0",
  145. "cross-spawn": "catalog:",
  146. "decimal.js": "10.5.0",
  147. "diff": "catalog:",
  148. "drizzle-orm": "catalog:",
  149. "effect": "catalog:",
  150. "fuzzysort": "3.1.0",
  151. "gitlab-ai-provider": "6.4.2",
  152. "glob": "13.0.5",
  153. "google-auth-library": "10.5.0",
  154. "gray-matter": "4.0.3",
  155. "hono": "catalog:",
  156. "hono-openapi": "catalog:",
  157. "ignore": "7.0.5",
  158. "jsonc-parser": "3.3.1",
  159. "mime-types": "3.0.2",
  160. "minimatch": "10.0.3",
  161. "npm-package-arg": "13.0.2",
  162. "open": "10.1.2",
  163. "opencode-gitlab-auth": "2.0.1",
  164. "opencode-poe-auth": "0.0.1",
  165. "opentui-spinner": "0.0.6",
  166. "partial-json": "0.1.7",
  167. "remeda": "catalog:",
  168. "semver": "^7.6.3",
  169. "solid-js": "catalog:",
  170. "strip-ansi": "7.1.2",
  171. "tree-sitter-bash": "0.25.0",
  172. "tree-sitter-powershell": "0.25.10",
  173. "turndown": "7.2.0",
  174. "ulid": "catalog:",
  175. "venice-ai-sdk-provider": "2.0.1",
  176. "vscode-jsonrpc": "8.2.1",
  177. "web-tree-sitter": "0.25.10",
  178. "which": "6.0.1",
  179. "xdg-basedir": "5.1.0",
  180. "yargs": "18.0.0",
  181. "zod": "catalog:",
  182. "zod-to-json-schema": "3.24.5"
  183. },
  184. "overrides": {
  185. "drizzle-orm": "catalog:"
  186. }
  187. }