package.json 4.2 KB

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