Files
orchestra/web/package.json
T
kami b57894b183 Add web UI and worker capture/approval command channel
Introduces the browser-facing surface and the worker-side protocol that
backs it:

- internal/ui: joined read model plus per-task lifecycle and approval
  controls, kept separate from the raw endpoints workers and harnesses
  depend on.
- internal/webui + web/: Vite/React app, build output embedded via
  go:embed and served as an SPA fallback.
- federation: per-(worker, task) captures with a monotonic revision that
  advances only when pane text actually changes, and a command queue
  restricted to grant_approval / deny_approval, each bound to the capture
  revision the operator acted on.
- orchestra-worker: publishes captures and executes commands only after
  re-reading the pane and confirming the revision still matches. Sends
  keystrokes only for a visible y/n prompt or OpenCode's fully labelled
  selector, and refuses to deny through that selector rather than guess
  at unobservable navigation.

This is the ownership boundary AUDIT.md's B14 and B17 call for: approval
becomes an explicit, revision-bound operation executed by the worker that
owns the pane, instead of a side effect of prompting over a
coordinator-driven remote socket.

Also ignores the web build inputs and outputs. node_modules ships vendored
Go packages, so go build and go test walk into it if it is merely
untracked; both node_modules and .node_modules are excluded.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01535A3Y8RtkAi8wYuWhtkEd
2026-07-28 23:14:16 +04:00

10 lines
531 B
JSON

{
"name": "orchestra-web",
"private": true,
"type": "module",
"version": "0.1.0",
"scripts": {"dev":"vite", "build":"tsc -b && vite build", "lint":"tsc -b", "test":"vitest run"},
"dependencies": {"@tanstack/react-query":"^5.66.0", "react":"^19.0.0", "react-dom":"^19.0.0", "react-router-dom":"^7.1.5"},
"devDependencies": {"@eslint/js":"^9.19.0", "@types/react":"^19.0.8", "@types/react-dom":"^19.0.3", "@vitejs/plugin-react":"^4.4.1", "eslint":"^9.19.0", "typescript":"^5.7.3", "vite":"^6.1.0", "vitest":"^3.0.5"}
}