mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
3a9a38e9d2
* 🐛 fix(opencode): add missing @plannotator/server dependency The opencode build failed because @plannotator/server was not declared in apps/opencode-plugin/package.json, causing bun bundler to fail resolving workspace packages. * ✨ feat(ui): add auto-close delay with countdown on completion overlay - Extend auto-close setting from boolean to delay options (off/immediate/3s/5s) - Extract shared CompletionOverlay component from both editor and review apps - Show countdown timer on completion screen when delay is set - Add checkbox on completion overlay to enable auto-close (defaults to 3s) - Replace toggle with select dropdown in Settings * ♻️ refactor(ui): extract useAutoClose hook and clean up completion overlay - Extract countdown logic into useAutoClose hook with phase state machine - Extract SVG icons into named components (CheckIcon, ChatBubbleIcon) - Add AUTO_CLOSE_OPTIONS constant for dropdown single source of truth - Remove dead getAutoClose/setAutoClose boolean wrappers * 🐛 fix(ui): handle window.close() failure with fallback message Browsers block window.close() on tabs not opened by script. Add tryClose() helper that detects failure via window.closed check, and show a fallback message guiding the user to close manually.
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "@plannotator/opencode",
|
|
"version": "0.8.2",
|
|
"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"
|
|
],
|
|
"main": "dist/index.js",
|
|
"files": [
|
|
"dist",
|
|
"commands",
|
|
"README.md",
|
|
"plannotator.html",
|
|
"review-editor.html"
|
|
],
|
|
"scripts": {
|
|
"build": "cp ../hook/dist/index.html ./plannotator.html && cp ../review/dist/index.html ./review-editor.html && bun build index.ts --outfile dist/index.js --target bun --external @opencode-ai/plugin",
|
|
"postinstall": "mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/opencode/command && cp ./commands/*.md ${XDG_CONFIG_HOME:-$HOME/.config}/opencode/command/ 2>/dev/null || true",
|
|
"prepublishOnly": "bun run build"
|
|
},
|
|
"dependencies": {
|
|
"@opencode-ai/plugin": "^1.1.10",
|
|
"@plannotator/server": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"bun": ">=1.0.0"
|
|
}
|
|
}
|