package.json 5.2 KB

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