Files
Michael Ramos aa75006141 refactor(guides): simplify after audit: Worker-only hosting, dead knobs out, duplicate tests cut, real bugs fixed
Six-reviewer audit (3 on tests, 3 on product code) applied.

Removed: the Bun self-host target and its fs/S3 stores, --trust-proxy /
--public-origin, the in-process upload limiter, the operator TTL ceiling, the
Worker rate limiter and [[ratelimits]] block (size cap is the only upload guard,
matching the paste service), the CLI --service-url flag, enableKeyboardShortcuts
(no callers), GuideHostValue.readOnly (never read), estimateGuideHtmlBytes
(never called), unread ViewerManifest fields, meta.title on plain guides,
duplicated engine-label map, hand-copied error-page CSS, ~180 lines of duplicate
tests. Self-hostable now means: deploy the same Worker under your own account.

Fixed: Pi share handlers no longer throw out of the extension host; deleting a
saved guide unshares its link first (best effort, never silent); saveForJob keeps
share/review on re-save; envelope read once per share request; Bun/Pi agree on
source.branch; an unrecorded link can no longer be re-created from the dialog;
/v1 asset type hole; makefile→make grammar id; flaky exportedAt comparison;
test harness unmount leak.

Also: pinned manifest lists only the 58 grammars the format can reference
(235 → 58; all chunks still published); worker construction probes run in
parallel (worst case 1.5 s, was 6 s); apps/guides-show now typechecks and is in
the root typecheck script; one diff splitter (packages/core/diff-files.ts).
Docs and ADR aligned. 61 files, +451 / -2 097.
2026-08-15 19:57:51 -07:00

56 lines
2.5 KiB
JSON

{
"name": "plannotator",
"version": "0.27.3",
"private": true,
"description": "Interactive Plan Review for Claude Code - annotate plans visually, share with team, automatically send feedback",
"author": "backnotprop",
"license": "MIT OR Apache-2.0",
"bin": {
"plannotator": "bin/plannotator.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/backnotprop/plannotator.git"
},
"homepage": "https://github.com/backnotprop/plannotator",
"bugs": {
"url": "https://github.com/backnotprop/plannotator/issues"
},
"workspaces": ["apps/*", "packages/*"],
"scripts": {
"dev:hook": "bun run --cwd apps/hook dev",
"dev:portal": "bun run --cwd apps/portal dev",
"dev:marketing": "bun run --cwd apps/marketing dev",
"dev:review": "bun run --cwd apps/review dev",
"build:hook": "bun run --cwd apps/hook build",
"build:portal": "bun run --cwd apps/portal build",
"build:marketing": "bun run --cwd apps/marketing build",
"build:opencode": "bun run --cwd apps/opencode-plugin build",
"build:review": "bun run --cwd apps/review build",
"build:pi": "bun run build:review && bun run build:hook && bun run --cwd apps/pi-extension build",
"build": "bun run build:hook && bun run build:opencode",
"dev:vscode": "bun run --cwd apps/vscode-extension watch",
"build:vscode": "bun run --cwd apps/vscode-extension build",
"package:vscode": "bun run --cwd apps/vscode-extension package",
"check:release-version": "node scripts/check-release-version.mjs",
"test": "bun test",
"typecheck": "bash apps/pi-extension/vendor.sh && tsc --noEmit -p packages/core/tsconfig.json && tsc --noEmit -p packages/shared/tsconfig.json && tsc --noEmit -p packages/ai/tsconfig.json && tsc --noEmit -p packages/server/tsconfig.json && tsc --noEmit -p packages/ui/tsconfig.json && tsc --noEmit -p packages/guide-viewer/tsconfig.json && tsc --noEmit -p apps/guides-show/tsconfig.json && tsc --noEmit -p packages/ui/tsconfig.strict-consumer.json && tsc --noEmit -p apps/pi-extension/tsconfig.json",
"build:ui-css": "bun run --cwd packages/ui build:css"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.2.92",
"@opencode-ai/sdk": "^1.3.0",
"@pierre/diffs": "1.3.2",
"diff": "^8.0.4",
"dockview-react": "^5.2.0",
"dompurify": "^3.3.3",
"marked": "^17.0.6",
"sonner": "^2.0.7"
},
"devDependencies": {
"@types/node": "^25.5.2",
"@types/turndown": "^5.0.6",
"bun-types": "^1.3.11"
}
}