{
  "name": "@plannotator/opencode",
  "version": "0.28.48",
  "type": "module",
  "description": "Plannotator plugin for OpenCode - interactive plan review with visual annotation",
  "author": "backnotprop",
  "license": "MIT OR Apache-2.0",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/backnotprop/plannotator.git",
    "directory": "apps/opencode-plugin"
  },
  "homepage": "https://github.com/backnotprop/plannotator",
  "bugs": {
    "url": "https://github.com/backnotprop/plannotator/issues"
  },
  "keywords": [
    "opencode",
    "opencode-plugin",
    "plannotator",
    "plan-review",
    "ai-agent",
    "coding-agent"
  ],
  "//": "OpenCode 1 loads main, while OpenCode 2 loads exports[.]. Do not add ./server: OpenCode 1 checks it before main and would load the V2 adapter.",
  "main": "dist/index.js",
  "exports": {
    ".": "./dist/server.js"
  },
  "//files": "skills/ is generated by build:skill from apps/skills/core/plannotator and is gitignored, so the shipped copy cannot drift from the single source.",
  "files": [
    "dist",
    "commands",
    "skills",
    "scripts/postinstall.cjs",
    "README.md",
    "plannotator.html",
    "review-editor.html",
    "diagram-engine"
  ],
  "//postinstall": "scripts/postinstall.cjs copies the command stubs and the knowledge skill into the user's OpenCode config, but only for an INSTALLED package (a path under node_modules). A `bun install` in this monorepo runs workspace postinstalls and must never write into the developer's real ~/.config/opencode. It is plain Node, not shell: a shell guard broke bun install on Windows.",
  "scripts": {
    "build": "bun run build:skill && mkdir -p dist && cp ../hook/dist/index.html ./plannotator.html && cp ../review/dist/index.html ./review-editor.html && rm -rf diagram-engine && cp -R ../review/dist/diagram-engine diagram-engine && bun build embedded.ts --outfile dist/embedded.js --target bun --external @opencode-ai/plugin && bun build index.ts --outfile dist/index.js --target node && bun build server.ts --outfile dist/server.js --target node --external @opencode/plugin",
    "build:skill": "rm -rf skills && mkdir -p skills && cp -R ../skills/core/plannotator skills/plannotator",
    "smoke:v2": "bun fixtures/v2-installed-smoke.ts",
    "postinstall": "node scripts/postinstall.cjs",
    "prepublishOnly": "bun run --cwd ../.. build:viewer-pin && bun run build"
  },
  "devDependencies": {
    "@opencode-ai/plugin": "1.19.3",
    "@opencode/plugin": "2.0.32",
    "@plannotator/ai": "0.0.1",
    "@plannotator/server": "0.28.48",
    "@plannotator/shared": "0.0.1"
  },
  "engines": {
    "bun": ">=1.4.4"
  }
}
