package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "$schema": "https://json.schemastore.org/package.json",
  3. "version": "1.16.0",
  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. "test": "bun test",
  13. "test:ci": "mkdir -p .artifacts/unit && bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
  14. "typecheck": "tsgo --noEmit"
  15. },
  16. "bin": {
  17. "opencode": "./bin/opencode"
  18. },
  19. "exports": {
  20. "./public": "./src/public/index.ts",
  21. "./session/runner": "./src/session/runner/index.ts",
  22. "./*": "./src/*.ts"
  23. },
  24. "imports": {
  25. "#sqlite": {
  26. "bun": "./src/database/sqlite.bun.ts",
  27. "node": "./src/database/sqlite.node.ts",
  28. "default": "./src/database/sqlite.bun.ts"
  29. },
  30. "#pty": {
  31. "bun": "./src/pty/pty.bun.ts",
  32. "node": "./src/pty/pty.node.ts",
  33. "default": "./src/pty/pty.bun.ts"
  34. }
  35. },
  36. "devDependencies": {
  37. "@tsconfig/bun": "catalog:",
  38. "@types/bun": "catalog:",
  39. "@types/cross-spawn": "catalog:",
  40. "@types/node": "catalog:",
  41. "@types/npm-package-arg": "6.1.4",
  42. "@types/npmcli__arborist": "6.3.3",
  43. "@types/semver": "catalog:",
  44. "@types/turndown": "5.0.5",
  45. "@types/which": "3.0.4",
  46. "@parcel/watcher-darwin-arm64": "2.5.1",
  47. "@parcel/watcher-darwin-x64": "2.5.1",
  48. "@parcel/watcher-linux-arm64-glibc": "2.5.1",
  49. "@parcel/watcher-linux-arm64-musl": "2.5.1",
  50. "@parcel/watcher-linux-x64-glibc": "2.5.1",
  51. "@parcel/watcher-linux-x64-musl": "2.5.1",
  52. "@parcel/watcher-win32-arm64": "2.5.1",
  53. "@parcel/watcher-win32-x64": "2.5.1",
  54. "@opencode-ai/http-recorder": "workspace:*",
  55. "drizzle-kit": "catalog:"
  56. },
  57. "dependencies": {
  58. "@ai-sdk/alibaba": "1.0.17",
  59. "@ai-sdk/amazon-bedrock": "4.0.112",
  60. "@ai-sdk/anthropic": "3.0.71",
  61. "@ai-sdk/azure": "3.0.49",
  62. "@ai-sdk/cerebras": "2.0.41",
  63. "@ai-sdk/cohere": "3.0.27",
  64. "@ai-sdk/deepinfra": "2.0.41",
  65. "@ai-sdk/gateway": "3.0.104",
  66. "@ai-sdk/google": "3.0.73",
  67. "@ai-sdk/google-vertex": "4.0.128",
  68. "@ai-sdk/groq": "3.0.31",
  69. "@ai-sdk/mistral": "3.0.27",
  70. "@ai-sdk/openai": "3.0.53",
  71. "@ai-sdk/openai-compatible": "2.0.41",
  72. "@ai-sdk/perplexity": "3.0.26",
  73. "@ai-sdk/provider": "3.0.8",
  74. "@ai-sdk/provider-utils": "4.0.23",
  75. "@ai-sdk/togetherai": "2.0.41",
  76. "@ai-sdk/vercel": "2.0.39",
  77. "@ai-sdk/xai": "3.0.82",
  78. "@aws-sdk/credential-providers": "3.1057.0",
  79. "@effect/opentelemetry": "catalog:",
  80. "@effect/platform-node": "catalog:",
  81. "@effect/sql-sqlite-bun": "catalog:",
  82. "@lydell/node-pty": "catalog:",
  83. "@npmcli/arborist": "9.4.0",
  84. "@npmcli/config": "10.8.1",
  85. "@opencode-ai/effect-drizzle-sqlite": "workspace:*",
  86. "@opencode-ai/effect-sqlite-node": "workspace:*",
  87. "@opencode-ai/llm": "workspace:*",
  88. "@opentelemetry/api": "1.9.0",
  89. "@opentelemetry/context-async-hooks": "2.6.1",
  90. "@opentelemetry/exporter-trace-otlp-http": "0.214.0",
  91. "@opentelemetry/sdk-trace-base": "2.6.1",
  92. "@parcel/watcher": "2.5.1",
  93. "@openrouter/ai-sdk-provider": "2.9.0",
  94. "ai-gateway-provider": "3.1.2",
  95. "bun-pty": "0.4.8",
  96. "cross-spawn": "catalog:",
  97. "drizzle-orm": "catalog:",
  98. "effect": "catalog:",
  99. "fuzzysort": "3.1.0",
  100. "gitlab-ai-provider": "6.8.0",
  101. "glob": "13.0.5",
  102. "google-auth-library": "10.5.0",
  103. "gray-matter": "4.0.3",
  104. "htmlparser2": "8.0.2",
  105. "immer": "11.1.4",
  106. "ignore": "7.0.5",
  107. "jsonc-parser": "3.3.1",
  108. "mime-types": "3.0.2",
  109. "minimatch": "10.2.5",
  110. "npm-package-arg": "13.0.2",
  111. "semver": "^7.6.3",
  112. "turndown": "7.2.0",
  113. "venice-ai-sdk-provider": "2.0.2",
  114. "which": "6.0.1",
  115. "xdg-basedir": "5.1.0",
  116. "zod": "catalog:"
  117. },
  118. "overrides": {
  119. "drizzle-orm": "catalog:"
  120. }
  121. }