package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. "name": "oh-my-opencode-slim",
  3. "version": "2.2.19",
  4. "packageManager": "bun@1.3.14",
  5. "description": "Lightweight agent orchestration plugin for OpenCode - a slimmed-down fork of oh-my-opencode",
  6. "main": "dist/index.js",
  7. "types": "dist/index.d.ts",
  8. "exports": {
  9. ".": {
  10. "import": "./dist/index.js",
  11. "types": "./dist/index.d.ts"
  12. },
  13. "./server": {
  14. "import": "./dist/server/index.js"
  15. },
  16. "./tui": {
  17. "import": "./dist/tui2.js",
  18. "types": "./dist/v2/tui.d.ts"
  19. }
  20. },
  21. "bin": {
  22. "oh-my-opencode-slim": "./dist/cli/index.js"
  23. },
  24. "type": "module",
  25. "license": "MIT",
  26. "keywords": [
  27. "opencode",
  28. "opencode-plugin",
  29. "ai",
  30. "agents",
  31. "orchestration",
  32. "llm",
  33. "claude",
  34. "gpt",
  35. "gemini"
  36. ],
  37. "repository": {
  38. "type": "git",
  39. "url": "https://github.com/alvinunreal/oh-my-opencode-slim"
  40. },
  41. "bugs": {
  42. "url": "https://github.com/alvinunreal/oh-my-opencode-slim/issues"
  43. },
  44. "homepage": "https://github.com/alvinunreal/oh-my-opencode-slim#readme",
  45. "files": [
  46. "dist",
  47. "src/companion/companion-manifest.json",
  48. "src/skills",
  49. "oh-my-opencode-slim.schema.json",
  50. "README.md",
  51. "README.zh-CN.md",
  52. "README.ja-JP.md",
  53. "README.ko-KR.md",
  54. "LICENSE"
  55. ],
  56. "// build:plugin": "Keeps bundling src/tui.ts -> dist/tui.js: required by scripts/verify-release-artifact.ts (packagedRequiredFiles) and loaded by v1 TUI hosts. The v2 TUI entry is dist/tui2.js (see build:tui / the ./tui export).",
  57. "scripts": {
  58. "clean:dist": "bun -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
  59. "build:plugin": "bun build src/index.ts src/tui.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opencode-ai/sdk --external @opencode-ai/sdk/v2 --external @opentui/core --external @opentui/solid --external solid-js --external jsdom --external zod",
  60. "build:v2": "bun build src/index.ts --outfile dist/server/index.js --target node --format esm --external jsdom",
  61. "build:tui": "bun build src/v2/tui.ts --outfile dist/tui2.js --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opencode-ai/sdk --external @opencode-ai/sdk/v2 --external @opentui/core --external @opentui/solid --external solid-js --external jsdom",
  62. "build:cli": "bun build src/cli/index.ts --outdir dist/cli --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opencode-ai/sdk --external @opencode-ai/sdk/v2 --external jsdom --external zod",
  63. "build": "bun run clean:dist && bun run build:plugin && bun run build:v2 && bun run build:tui && bun run build:cli && tsc --emitDeclarationOnly && bun run generate-schema",
  64. "prepare": "bun run build",
  65. "contributors:add": "all-contributors add",
  66. "contributors:check": "all-contributors check",
  67. "contributors:generate": "all-contributors generate",
  68. "generate-schema": "bun run scripts/generate-schema.ts",
  69. "verify:release": "bun run scripts/verify-release-artifact.ts",
  70. "verify:host-smoke": "bun run scripts/verify-opencode-host-smoke.ts",
  71. "verify:cache-stability": "bun run scripts/verify-opencode-cache-stability.ts",
  72. "cache:smoke": "bun run scripts/cache-smoke.ts",
  73. "typecheck": "tsc --noEmit",
  74. "test": "bun test",
  75. "lint": "biome lint .",
  76. "format": "biome format . --write",
  77. "check": "biome check --write .",
  78. "check:ci": "biome check .",
  79. "dev": "bun run build && opencode",
  80. "prepublishOnly": "bun run build",
  81. "release:patch": "npm version patch && git push --follow-tags && npm publish",
  82. "release:minor": "npm version minor && git push --follow-tags && npm publish",
  83. "release:major": "npm version major && git push --follow-tags && npm publish",
  84. "release:beta": "npm version premajor --preid beta && git push --follow-tags && npm publish --tag beta",
  85. "release:beta:next": "npm version prerelease --preid beta && git push --follow-tags && npm publish --tag beta"
  86. },
  87. "dependencies": {
  88. "@ast-grep/cli": "^0.44.1",
  89. "@mozilla/readability": "^0.6.0",
  90. "@opencode-ai/plugin": "1.18.23",
  91. "@opencode-ai/sdk": "1.18.23",
  92. "jsdom": "^29.0.0",
  93. "lru-cache": "^11.5.2",
  94. "turndown": "^7.2.4"
  95. },
  96. "optionalDependencies": {
  97. "@opentui/core": "0.5.8",
  98. "@opentui/solid": "0.5.8",
  99. "solid-js": "1.9.12"
  100. },
  101. "devDependencies": {
  102. "@biomejs/biome": "2.5.4",
  103. "@types/jsdom": "28",
  104. "@types/node": "^26.1.1",
  105. "@types/turndown": "^5.0.6",
  106. "all-contributors-cli": "^6.26.1",
  107. "bun-types": "^1.3.14",
  108. "typescript": "7.0",
  109. "zod": "^4.4.3"
  110. },
  111. "peerDependencies": {
  112. "zod": "^4.0.0"
  113. },
  114. "trustedDependencies": [
  115. "@ast-grep/cli"
  116. ]
  117. }