package.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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/platform-node": "catalog:",
  108. "@gitlab/opencode-gitlab-auth": "1.3.3",
  109. "@hono/node-server": "1.19.11",
  110. "@hono/node-ws": "1.3.0",
  111. "@hono/standard-validator": "0.1.5",
  112. "@hono/zod-validator": "catalog:",
  113. "@lydell/node-pty": "catalog:",
  114. "@modelcontextprotocol/sdk": "1.27.1",
  115. "@npmcli/arborist": "9.4.0",
  116. "@octokit/graphql": "9.0.2",
  117. "@octokit/rest": "catalog:",
  118. "@openauthjs/openauth": "catalog:",
  119. "@opencode-ai/plugin": "workspace:*",
  120. "@opencode-ai/script": "workspace:*",
  121. "@opencode-ai/sdk": "workspace:*",
  122. "@opencode-ai/util": "workspace:*",
  123. "@openrouter/ai-sdk-provider": "2.5.1",
  124. "@opentui/core": "0.1.97",
  125. "@opentui/solid": "0.1.97",
  126. "@parcel/watcher": "2.5.1",
  127. "@pierre/diffs": "catalog:",
  128. "@solid-primitives/event-bus": "1.1.2",
  129. "@solid-primitives/scheduled": "1.5.2",
  130. "@standard-schema/spec": "1.0.0",
  131. "@zip.js/zip.js": "2.7.62",
  132. "ai": "catalog:",
  133. "ai-gateway-provider": "3.1.2",
  134. "bonjour-service": "1.3.0",
  135. "bun-pty": "0.4.8",
  136. "chokidar": "4.0.3",
  137. "clipboardy": "4.0.0",
  138. "cross-spawn": "catalog:",
  139. "decimal.js": "10.5.0",
  140. "diff": "catalog:",
  141. "drizzle-orm": "catalog:",
  142. "effect": "catalog:",
  143. "fuzzysort": "3.1.0",
  144. "gitlab-ai-provider": "6.4.2",
  145. "glob": "13.0.5",
  146. "google-auth-library": "10.5.0",
  147. "gray-matter": "4.0.3",
  148. "hono": "catalog:",
  149. "hono-openapi": "catalog:",
  150. "ignore": "7.0.5",
  151. "jsonc-parser": "3.3.1",
  152. "mime-types": "3.0.2",
  153. "minimatch": "10.0.3",
  154. "npm-package-arg": "13.0.2",
  155. "open": "10.1.2",
  156. "opencode-gitlab-auth": "2.0.1",
  157. "opencode-poe-auth": "0.0.1",
  158. "opentui-spinner": "0.0.6",
  159. "partial-json": "0.1.7",
  160. "remeda": "catalog:",
  161. "semver": "^7.6.3",
  162. "solid-js": "catalog:",
  163. "strip-ansi": "7.1.2",
  164. "tree-sitter-bash": "0.25.0",
  165. "tree-sitter-powershell": "0.25.10",
  166. "turndown": "7.2.0",
  167. "ulid": "catalog:",
  168. "venice-ai-sdk-provider": "2.0.1",
  169. "vscode-jsonrpc": "8.2.1",
  170. "web-tree-sitter": "0.25.10",
  171. "which": "6.0.1",
  172. "xdg-basedir": "5.1.0",
  173. "yargs": "18.0.0",
  174. "zod": "catalog:",
  175. "zod-to-json-schema": "3.24.5"
  176. },
  177. "overrides": {
  178. "drizzle-orm": "catalog:"
  179. }
  180. }