package.json 3.9 KB

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