package.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. },
  44. "devDependencies": {
  45. "@babel/core": "7.28.4",
  46. "@effect/language-service": "0.79.0",
  47. "@octokit/webhooks-types": "7.6.1",
  48. "@opencode-ai/script": "workspace:*",
  49. "@parcel/watcher-darwin-arm64": "2.5.1",
  50. "@parcel/watcher-darwin-x64": "2.5.1",
  51. "@parcel/watcher-linux-arm64-glibc": "2.5.1",
  52. "@parcel/watcher-linux-arm64-musl": "2.5.1",
  53. "@parcel/watcher-linux-x64-glibc": "2.5.1",
  54. "@parcel/watcher-linux-x64-musl": "2.5.1",
  55. "@parcel/watcher-win32-arm64": "2.5.1",
  56. "@parcel/watcher-win32-x64": "2.5.1",
  57. "@standard-schema/spec": "1.0.0",
  58. "@tsconfig/bun": "catalog:",
  59. "@types/babel__core": "7.20.5",
  60. "@types/bun": "catalog:",
  61. "@types/cross-spawn": "catalog:",
  62. "@types/mime-types": "3.0.1",
  63. "@types/npm-package-arg": "6.1.4",
  64. "@types/npmcli__arborist": "6.3.3",
  65. "@types/semver": "^7.5.8",
  66. "@types/turndown": "5.0.5",
  67. "@types/which": "3.0.4",
  68. "@types/yargs": "17.0.33",
  69. "@typescript/native-preview": "catalog:",
  70. "drizzle-kit": "catalog:",
  71. "drizzle-orm": "catalog:",
  72. "typescript": "catalog:",
  73. "vscode-languageserver-types": "3.17.5",
  74. "why-is-node-running": "3.2.2",
  75. "zod-to-json-schema": "3.24.5"
  76. },
  77. "dependencies": {
  78. "@actions/core": "1.11.1",
  79. "@actions/github": "6.0.1",
  80. "@agentclientprotocol/sdk": "0.16.1",
  81. "@ai-sdk/amazon-bedrock": "4.0.83",
  82. "@ai-sdk/anthropic": "3.0.67",
  83. "@ai-sdk/azure": "3.0.49",
  84. "@ai-sdk/cerebras": "2.0.41",
  85. "@ai-sdk/cohere": "3.0.27",
  86. "@ai-sdk/deepinfra": "2.0.41",
  87. "@ai-sdk/gateway": "3.0.80",
  88. "@ai-sdk/google": "3.0.53",
  89. "@ai-sdk/google-vertex": "4.0.95",
  90. "@ai-sdk/groq": "3.0.31",
  91. "@ai-sdk/mistral": "3.0.27",
  92. "@ai-sdk/openai": "3.0.48",
  93. "@ai-sdk/openai-compatible": "2.0.37",
  94. "@ai-sdk/perplexity": "3.0.26",
  95. "@ai-sdk/provider": "3.0.8",
  96. "@ai-sdk/provider-utils": "4.0.23",
  97. "@ai-sdk/togetherai": "2.0.41",
  98. "@ai-sdk/vercel": "2.0.39",
  99. "@ai-sdk/xai": "3.0.75",
  100. "@aws-sdk/credential-providers": "3.993.0",
  101. "@clack/prompts": "1.0.0-alpha.1",
  102. "@effect/platform-node": "catalog:",
  103. "@gitlab/gitlab-ai-provider": "3.6.0",
  104. "@gitlab/opencode-gitlab-auth": "1.3.3",
  105. "@hono/node-server": "1.19.11",
  106. "@hono/node-ws": "1.3.0",
  107. "@hono/standard-validator": "0.1.5",
  108. "@hono/zod-validator": "catalog:",
  109. "@lydell/node-pty": "catalog:",
  110. "@modelcontextprotocol/sdk": "1.27.1",
  111. "@npmcli/arborist": "9.4.0",
  112. "@octokit/graphql": "9.0.2",
  113. "@octokit/rest": "catalog:",
  114. "@openauthjs/openauth": "catalog:",
  115. "@opencode-ai/plugin": "workspace:*",
  116. "@opencode-ai/script": "workspace:*",
  117. "@opencode-ai/sdk": "workspace:*",
  118. "@opencode-ai/util": "workspace:*",
  119. "@openrouter/ai-sdk-provider": "2.4.2",
  120. "@opentui/core": "0.1.97",
  121. "@opentui/solid": "0.1.97",
  122. "@parcel/watcher": "2.5.1",
  123. "@pierre/diffs": "catalog:",
  124. "@solid-primitives/event-bus": "1.1.2",
  125. "@solid-primitives/scheduled": "1.5.2",
  126. "@standard-schema/spec": "1.0.0",
  127. "@zip.js/zip.js": "2.7.62",
  128. "ai": "catalog:",
  129. "ai-gateway-provider": "3.1.2",
  130. "bonjour-service": "1.3.0",
  131. "bun-pty": "0.4.8",
  132. "chokidar": "4.0.3",
  133. "clipboardy": "4.0.0",
  134. "cross-spawn": "catalog:",
  135. "decimal.js": "10.5.0",
  136. "diff": "catalog:",
  137. "drizzle-orm": "catalog:",
  138. "effect": "catalog:",
  139. "fuzzysort": "3.1.0",
  140. "gitlab-ai-provider": "6.4.2",
  141. "glob": "13.0.5",
  142. "google-auth-library": "10.5.0",
  143. "gray-matter": "4.0.3",
  144. "hono": "catalog:",
  145. "hono-openapi": "catalog:",
  146. "ignore": "7.0.5",
  147. "jsonc-parser": "3.3.1",
  148. "mime-types": "3.0.2",
  149. "minimatch": "10.0.3",
  150. "npm-package-arg": "13.0.2",
  151. "open": "10.1.2",
  152. "opencode-gitlab-auth": "2.0.1",
  153. "opencode-poe-auth": "0.0.1",
  154. "opentui-spinner": "0.0.6",
  155. "partial-json": "0.1.7",
  156. "remeda": "catalog:",
  157. "semver": "^7.6.3",
  158. "solid-js": "catalog:",
  159. "strip-ansi": "7.1.2",
  160. "tree-sitter-bash": "0.25.0",
  161. "tree-sitter-powershell": "0.25.10",
  162. "turndown": "7.2.0",
  163. "ulid": "catalog:",
  164. "venice-ai-sdk-provider": "2.0.1",
  165. "vscode-jsonrpc": "8.2.1",
  166. "web-tree-sitter": "0.25.10",
  167. "which": "6.0.1",
  168. "xdg-basedir": "5.1.0",
  169. "yargs": "18.0.0",
  170. "zod": "catalog:",
  171. "zod-to-json-schema": "3.24.5"
  172. },
  173. "overrides": {
  174. "drizzle-orm": "catalog:"
  175. }
  176. }