mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 12:59:13 +01:00
Phase 6 of PAP-9815. Builds the user-facing triage workbench on top of the Phase 2-5 worker/data plumbing: - Queue route sidebar with queue list, item counts, and queue-scoped section links (Items / Workflow / Guidance / Transition actions). - Queue list home page with create, archive, and open actions. - Per-queue overview that groups items by workflow state with linked work-issue badges. - Two-column item workbench: slim assistant chat on the center/left pinned to the current item, item document/properties editor on the right. Direct edits and chat-sent messages both target the same item. - Mobile-friendly tab switch between Chat and Document under 900px wide. - Guidance side panel + reflection diff with accept / reject / revise. - Folder-style guidance editor for guidance.md plus extra path-keyed docs (style.md, examples.md, rubric.md, ...). - Default workflow view and constrained create_or_update_issue transition action editor with variable palette and template fields. - Settings page keeps the managed resource reconcile surface. Adds 9 render-level Vitest specs in jsdom that exercise the queue list, queue overview, two-column workbench, transition editor, settings, and the reflection diff. Also adds a Playwright+esbuild screenshot harness under tests/screenshots that captures 9 desktop + 9 mobile shots into packages/plugins/plugin-triage/screenshots. Co-Authored-By: Paperclip <noreply@paperclip.ing>
Paperclip Triage
Queue workbench for triaging arbitrary items with a teachable assistant.
Development
pnpm install
pnpm dev # watch builds
pnpm dev:ui # local dev server with hot-reload events
pnpm typecheck
pnpm test
pnpm build
pnpm dev rebuilds the worker, manifest, and UI bundles into dist/.
When this package is installed from a local path, Paperclip watches that rebuilt
output and reloads the plugin worker. Local installs run trusted code from this
folder on your machine.
Phase 2 Scope
This package scaffold declares:
- plugin id
paperclipai.plugin-triage - page, sidebar, route sidebar, and settings page slots
- managed
Triage Assistantagent - managed
Triageproject - managed triage skills
- worker health data plus a settings-page reconcile action
Install Into Paperclip
paperclipai plugin install /Users/dotta/paperclip/.paperclip/worktrees/PAP-9815-triage-plugin/packages/plugins/plugin-triage
Build Options
pnpm builduses esbuild presets from@paperclipai/plugin-sdk/bundlers.pnpm build:rollupuses rollup presets from the same SDK.
Focused Verification
From the repository root:
pnpm --filter @paperclipai/plugin-triage typecheck
pnpm --filter @paperclipai/plugin-triage test
pnpm --filter @paperclipai/plugin-triage build