Replaces PacksRoutePlaceholder with the real triad route over the R2-B /packs read substrate (#712). - TS mirrors PackSource/PackSummary/PackDetail; PackSummary/PackDetail removed from NOT_YET_MIRRORED (drift gate now enforces them) - new design primitive TreeView (src/design/components/TreeView): a deterministic, keyboard-driven JSON tree — object keys sorted, array indices in order, no animation; ←/→ collapse/expand, ↑/↓ + j/k move, Home/End jump, Enter toggles; registers its shortcuts only while focused (KeyboardHelp never advertises tree controls when no tree is on screen) - list pane: VirtualizedList + useListNavigation (j/k) + SearchInput; rows show pack_id, source, version, language/modality, determinism_class pill - detail pane: Panel + TabBar (Manifest / Checksums / Raw); Manifest renders via TreeView; Checksums is the verify affordance — manifest_digest and declared checksum as DigestBadges plus the per-field manifest checksums table (the checksum-hashes-the-bytes-on-disk doctrine made visible); Raw collapsed by default - selection publishes the pack subject (R2-S), records /packs/<packId> (replace), pushRecentItem on visit - Packs row added to routeConformance MOUNT_ROUTES (loading 'Loading packs...', error 'No packs mutation occurred.', empty 'No packs discovered.' + core pack validate <path>) - tests: TreeView (sorted/collapsed/expand/collapse/focus/click/empty) + PacksRoute (list, replace-mode select + manifest tree, checksum verify affordance, j/k spine) Token-only styling (hexScan green). |
||
|---|---|---|
| .. | ||
| e2e | ||
| preview | ||
| public/fonts | ||
| scripts | ||
| src | ||
| .gitignore | ||
| api-schema-snapshot.json | ||
| enum-snapshot.json | ||
| index.html | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| postcss.config.js | ||
| README.md | ||
| schema-snapshot.json | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
CORE Workbench UI
React/Vite/TypeScript frontend for CORE Workbench — a local operator UI for inspecting engine state, proposals, evals, and audit trails.
Local development
# Terminal 1 — start the API (W-026)
uv run core workbench api
# Terminal 2 — start the frontend
cd workbench-ui
pnpm install
pnpm dev # http://127.0.0.1:5173
Custom API URL
VITE_WORKBENCH_API_URL=http://127.0.0.1:9000 pnpm dev
Design system baseline
pnpm preview # Serves dist/ on http://127.0.0.1:4173
# Navigate to /preview for the Branch 1 design-system baseline
Tests
pnpm test # Vitest unit + component tests
pnpm test:enum-coverage # Badge enum coverage (requires uv)
Schema drift detection
The TypeScript types in src/types/api.ts mirror workbench/schemas.py.
To check for drift after Python schema changes:
# From repo root
uv run python scripts/dump-api-schemas.py
# Then run: pnpm test (api.test.ts catches field-level drift)
Architecture
src/app/— Shell, TopBar, LeftNav, StatusFooter, ApiErrorBoundarysrc/api/— apiFetch client, TanStack Query hookssrc/types/— TypeScript mirrors of Python schemassrc/routes/— Route placeholder componentssrc/design/— Branch 1 design-system substrate (DO NOT MODIFY except EmptyState and CommandPalette)
ADR cross-references
- ADR-0160 — Workbench v1 architecture
- ADR-0162 — Design substrate (Branch 1)
- ADR-0156, ADR-0157, ADR-0158 — Engine-state checkpoint and reboot audit trail