From b3e706995c506f6e4758cb04f6095e12423544d3 Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 09:08:58 -0400 Subject: [PATCH 01/13] =?UTF-8?q?docs(program):=20frontend=20command=20cen?= =?UTF-8?q?ter=20UX=20program=20=E2=80=94=20plan,=20findings,=20board,=20w?= =?UTF-8?q?ave=201=20briefs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- ...2026-07-20-frontend-tmux-ux-master-plan.md | 105 ++++++++++++++++++ .../2026-07-20-frontend-ux-study-findings.md | 78 +++++++++++++ tasks/2026-07-20-fw1-modern-brief.md | 47 ++++++++ tasks/2026-07-20-fw1-tmux-go-brief.md | 64 +++++++++++ tasks/frontend-ux-acceptance-checklist.md | 46 ++++++++ tasks/frontend-ux-handoffs/README.md | 26 +++++ tasks/frontend-ux-log.md | 7 ++ tasks/frontend-ux-metrics.jsonl | 1 + tasks/frontend-ux-status.md | 43 +++++++ 9 files changed, 417 insertions(+) create mode 100644 tasks/2026-07-20-frontend-tmux-ux-master-plan.md create mode 100644 tasks/2026-07-20-frontend-ux-study-findings.md create mode 100644 tasks/2026-07-20-fw1-modern-brief.md create mode 100644 tasks/2026-07-20-fw1-tmux-go-brief.md create mode 100644 tasks/frontend-ux-acceptance-checklist.md create mode 100644 tasks/frontend-ux-handoffs/README.md create mode 100644 tasks/frontend-ux-log.md create mode 100644 tasks/frontend-ux-metrics.jsonl create mode 100644 tasks/frontend-ux-status.md diff --git a/tasks/2026-07-20-frontend-tmux-ux-master-plan.md b/tasks/2026-07-20-frontend-tmux-ux-master-plan.md new file mode 100644 index 00000000..a7c5f257 --- /dev/null +++ b/tasks/2026-07-20-frontend-tmux-ux-master-plan.md @@ -0,0 +1,105 @@ +# Frontend Command Center UX Program - 2026-07-20 + +Evidence: `tasks/2026-07-20-frontend-ux-study-findings.md` (studied at main `70fa53e`, 0.3.0 deployed). Execution model: Autonomous Development Loop (SloaneVault `20 - Development/26 - Multi-Agent/Integrator-Supervisor Harness - Native Multi-Agent Orchestration.md`) — Claude as AI Lead, codex Builder lanes in tmux panes with isolated worktrees, same harness as the 2026-07-19 massive refactor. + +## Vision + +Opening the app should feel like sitting down at your tmux command center — **the first paint is your fleet**: every host, every agent, every pane, one tap from a live terminal that behaves like native tmux (windows, panes, scrollback, search, copy), wrapped in agent-aware superpowers native tmux can't offer (attention queue, inline approvals, prompt composer, push deep links). 0.3.0 built the engine — real per-viewer PTY attach, resilient transport, fleet data; this program builds the cockpit. Native tmux parity first, agent superpowers on top, one design language everywhere. + +## Locked Decisions (owner-approved 2026-07-20) + +1. **Landing surface: the Command Center.** Post-signin lands on the fleet/tmux surface, not `/`. The v0.2.0 hero-card dashboard is retired; its stats/usage content relocates into the Command Center header and `/settings`→usage. Signin `callbackUrl` and PWA `start_url` both point at the Command Center. Old `/` redirects. +2. **One orchestrator surface.** The header bell and the bottom tab converge on a single attention/fleet component (rendered as sheet on desktop, full page on mobile). `OrchestratorModal` vs `OrchestratorPageClient` duplication is eliminated; push deep links land on the unified surface. +3. **Structured tmux via hooks + format extensions, NOT control mode.** We keep the per-viewer grouped-session PTY transport exactly as shipped and add out-of-band structure: extended `list-panes` formats (active/layout/zoom/flags/sizes) and tmux hook-driven topology events. No `-CC` transport replacement this program (stays a future option; consistent with the earlier `webtmux_fix.md` rejection). +4. **Full frontend-stack modernization, including TS 7.** Waves 1–2 clear the deferred debt: React 18→19 (+types), TypeScript 5→7 (native compiler, repo-wide TS toolchain), ESLint 9→10 + `eslint-plugin-react-hooks` unpin (with the `SessionList` fix it requires), Node types, tailwind-merge 3, lucide 1.x, `MobileLaunchSheet` exhaustive-deps fixes, and Zod 3→4 across ac-schema + control plane + dashboard. **Excluded:** R3F/Drei bumps (visualizer-only; visualizer stays untouched). Zod 4 is co-scheduled with the new tmux contract authoring in one lane, since both edit the same schema/CP files. +5. **Branching + deploy cadence: ship per wave.** Integration branch `refactor/frontend-command-center` off main; lane branches `refactor/fw-`; commit-per-phase. **Each wave that passes its gate goes to main via PR and deploys to production** (owner merges/authorizes), so on-device feedback steers the next wave — unlike 0.3.0's single end-drop. +6. **PWA-first stands** (carryover lock from 0.3.0). No APK. iOS verification happens on the owner's device after each wave deploy (builders have no iOS hardware). +7. **`/sessions` is retained** as the management/list view (bulk ops, groups, archive), restyled to the design system with a mobile-fit toolbar. The Command Center is the primary surface; no attempt to merge the two mental models this program. + +## Product policy decisions (made during planning; owner can veto) + +- **Desktop key bar:** ship a compact, collapsible tmux key bar on desktop too (parity with mobile); default collapsed, remembered per user. +- **Multi-terminal:** desktop gets a 2-up split workbench (two independent pane attachments side by side); mobile stays single-terminal with a quick-switch strip (recent panes) — no mobile grid. +- **Persistent terminal:** the terminal host moves to the app layout level so navigation doesn't kill the socket; at most 1 hidden background terminal kept live, auto-detached after 5 min hidden (battery/memory). +- **`rename_session` gets wired end-to-end** (schema+executor already exist; UI rename currently diverges DB-only) and window rename ships with it. +- **CP fleet aggregate endpoint** replaces the dashboard's 4-concurrent per-orchestrator fetch cap. +- **Scrollback:** raise xterm local scrollback 4000→10000; history beyond that comes from the new capture-pane paging endpoint on demand, not from resume replay. +- **Visualizer stays untouched** (already isolated in W6-CLEANUP); still sidebar-gated, never in the bottom nav. +- **Migration numbers:** next free is 039; claims recorded in the status board before use. + +## Workstreams + +### A. Command Center IA reset +- Dashboard: new Command Center landing (mobile-first): fleet roster as the home screen — host chips, orchestrator groups, health-badged sessions, launch rail; header slims to logo + connection + attention + account; retire `/` hero grid and relocate stats. Single nav model: bottom tabs (Command Center / Attention / Sessions / More) with the drawer reachable only from More; delete the duplicate hamburger path. Unify breakpoints on one `useIsMobile` contract (tmux's 1024 vs everyone's 768 reconciled) and one container/spacing convention. +- Dashboard: launch rail (prior program's deferred #34): persistent New / Recent / Open-existing entry on Command Center and Sessions; `MobileLaunchSheet` becomes the single launch surface on all form factors; delete legacy `SpawnSessionDialog`; make `SessionGenerator`/`RepoPicker` recent-first and mobile-capable; centralize `LAUNCH_PROVIDERS`/`SESSION_TEMPLATES` in one module. +- Dashboard: attention surface unification (Locked #2): one component tree fed by `useAttentionQueue`, presented as sheet/page; push deep links land there. + +### B. Terminal excellence (client) +- Dashboard: hot-path fixes — stop running reconnect-state transitions + store writes + forced `scrollToBottom()` on every output frame (`useTerminalConnection.ts:159-163`); scroll-anchor semantics (only autoscroll when at bottom); move xterm selection state out of React render path; consolidate the three `input`-frame emitters behind one `sendInput` API. +- Dashboard: scrollback — `@xterm/addon-search` with a search UI (mobile sheet + desktop inline), 10k local buffer, "load older" pager backed by the new capture-pane endpoint, copy-last-N retained. +- Dashboard: window/pane management UI — window strip (tabs) above the terminal driven by structured topology (C), with new/rename/kill window, split/zoom/kill pane, per-pane resize handles on desktop; key bar on desktop (collapsible); all actions call structured commands (C), no raw prefix-byte dependence for common ops. +- Dashboard: persistent app-level terminal host + reattach-on-return; mobile quick-switch strip; desktop 2-up split workbench; a stateful test proving the xterm instance survives roster→terminal→roster and route changes (the missing W4 test). + +### C. Structured tmux model (agentd + schema + CP) +- agentd: extend `ListPanes` format with `pane_active/window_active/window_layout/window_zoomed_flag/pane_width/pane_height` + window flags (bell/activity/silence); emit topology events from tmux hooks (`window-linked/unlinked/renamed`, `pane-exited`, `after-split-window`, `client-session-changed`) debounced into a `tmux.topology` envelope; keep polling as reconciliation, not primary. +- agentd: executor cases for `new_window`, `kill_window`, `rename_window`, `split_pane`, `select_window`, `select_pane`, `resize_pane`, `zoom_pane` (client methods already exist in `internal/tmux/tmux.go`); wire `rename_session` producers; scrollback command using `CapturePaneRange` modes; fix the stale attached-channel supersede so resume works across a full CP restart (open W4-TERM-CLIENT item). +- Schema: new `CommandPayload` types for the ops above; `tmux.topology` event; pane/window field additions to `TmuxPaneIdentity`/roster types; scrollback request/response; protocol fixtures (TS + Go) extended in the same wave — schema authored first, dependents consume frozen contracts. +- Control plane: relay topology events to a `tmux.topology` UI topic; `POST /v1/sessions/:id/scrollback` (or `/v1/tmux/scrollback`) paging endpoint; command routes for window/pane ops with authz via existing `commandRouter`/`terminalPolicy`; roster endpoint returns the new fields; fleet aggregate endpoint (one call returns orchestrator cards' graph/task/report bundle). + +### D. Agent-aware fleet +- Dashboard: one fleet model — merge `lib/fleetRoster.ts`+`TmuxOrchestratorRow` and `useOrchestratorFleet`+`OrchestratorFleetCard` into a single store/selector set with two presentations; consume the CP aggregate endpoint; kill the 750ms-debounced full roster refetch in favor of `tmux.topology` + `sessions.changed` incremental updates. +- Dashboard: terminal-context agent overlay — when attached to a pane with pending attention (approval/question), show an inline card over the terminal with approve/deny/respond; prompt composer with history and multi-line editing as an alternative to raw typing; send-to-session reachable from the composer. +- Dashboard: session health badges tuned for scanning (waiting-input, waiting-approval, error, idle, dirty-git, detached/offline, unmanaged) and saved roster filters ("this host", "recent", plus the six chips) — both long-standing BACKLOG items. + +### E. Design system & surface migration +- Dashboard: complete `components/ui` primitives (dialog, sheet, dropdown-menu, command, toast alignment) so feature code stops hand-rolling Radix; codify tokens (containers, spacing, tap targets ≥44px, typography scale) in one doc + lint hints; migrate `/sessions` (toolbar → overflow sheet on mobile), `/memory`, `/hosts`, `/automation` shells to the system; decompose `SettingsPanel` (1125) into per-domain panels, `OrchestratorItem` (952) into per-type renderers, `SessionsPageClient` (666) into filter/selection/dnd hooks + presentational list. +- Dashboard: command palette (⌘K / long-press search): jump to pane/session/host, run launch, toggle theme — desktop power-user spine. +- Dashboard: motion/polish pass — view transitions between roster↔terminal, skeletons for roster/fleet loads, safe-area + keyboard-aware audits on all new surfaces; a11y pass (focus traps in sheets, roles on roster tree). + +### F. Platform modernization +- Dashboard/repo: the full modernization (Locked #4) — Wave 1: TS 7 toolchain, ESLint 10 + react-hooks unpin (+`SessionList` fix), React 19 + types, tailwind-merge 3, lucide 1.x, exhaustive-deps fixes; Wave 2: Zod 3→4 across ac-schema, control plane, and dashboard (co-lane with new tmux contracts). Plus removal of the dead JSON terminal-output branch client-side; `web-vitals` + a terminal frame-timing probe (write-to-paint) recorded to the existing metrics path so perf work is measured, not vibes. + +### G. Verification & release +- All: Playwright journeys at 390×844 + 1280×720 for: signin→Command Center first paint, roster→attach→type→detach, window create/rename/kill, scrollback search+page, take-control handoff, launch rail spawn, attention approve from terminal overlay; smoke stays green per wave; acceptance checklist **extended per wave this time** (last program only ever filled Wave 1); CHANGELOG 0.4.0; docs-site screenshots refreshed; owner on-device iOS check at each wave gate. + +## Wave plan + +Waves are dependency-ordered; each ends with the verification gate + integration commit on `refactor/frontend-command-center`. Machine split: heavisidelinux runs the Go/agentd lane (pushes to origin); homelinux runs TS lanes (local branches, AI Lead integrates). Note the heavisidelinux tmux kill-session fragility — snapshot-check before any session teardown, one at a time. + +Each wave that passes its gate merges to main via PR and deploys to production (Locked #5) — the modernization is proven in prod before the visible IA switch, and the owner steers from the device between waves. + +| Wave | Content | Lanes | Primary machine | +|---|---|---|---| +| 1 | F modernization part 1: TS 7 toolchain, React 19, ESLint 10 + hooks unpin (+SessionList fix), Node types, tailwind-merge 3, lucide 1.x (repo-wide TS, mechanical only); C agentd topology events + executor ops + resume-supersede + Go fixtures | FW1-MODERN, FW1-TMUX-GO | homelinux ×1, heavisidelinux ×1 | +| 2 | F/C contracts: Zod 3→4 across schema/CP/dashboard + new tmux contract types, topology event + UI topic, scrollback endpoint, window/pane command routes, fleet aggregate endpoint; B terminal client perf hot-path + persistent app-level host + search addon + 10k local scrollback | FW2-CONTRACTS, FW2-TERM | homelinux ×2 | +| 3 | A Command Center landing + nav/breakpoint unification + attention unification + launch rail + legacy retirement; B/C window strip + window/pane management UI + desktop key bar + 2-up multi-terminal + scrollback pager wiring | FW3-SHELL, FW3-TMUX-UI | homelinux ×2 | +| 4 | D unified fleet model + aggregate consumption + terminal attention overlay + prompt composer + health badges/saved filters; E surface migration (/sessions, /memory, /hosts, settings) + god-component decomposition + ui primitives + command palette | FW4-FLEET, FW4-SURFACES | homelinux ×2 | +| 5 | E motion/a11y/polish pass; G Playwright journeys, perf budgets, acceptance checklist completion, docs, CHANGELOG 0.4.0, release | FW5-POLISH, FW5-QA | homelinux ×2 | + +Lane→ownership firewall, migration claims, and completion tokens (`FW1-MODERN FROZEN ` etc.) are maintained in `tasks/frontend-ux-status.md`; per-lane briefs land as `tasks/2026-07-20-fw--brief.md`; narrative log `tasks/frontend-ux-log.md`; handoffs in `tasks/frontend-ux-handoffs/`. + +Indicative firewalls: FW1-MODERN = package manifests, tsconfig/eslint configs, and mechanical code fixes anywhere in TS (no feature/behavior edits); FW1-TMUX-GO = `agents/**` + new `tests/fixtures/protocol/` files only; FW2-CONTRACTS = `packages/ac-schema/**`, `services/control-plane/**`, migrations from 039, plus scoped mechanical Zod call-site edits in `apps/dashboard`; FW2-TERM = dashboard terminal/tmux components + hooks; Wave 3+ dashboard lanes split by directory (SHELL = app/(dashboard) shells + layout + launch + orchestrator components; TMUX-UI/TERM = terminal/tmux components + hooks) with shared-file reconciliation owned by the AI Lead. + +### Verification gates + +Every wave: `pnpm lint && pnpm typecheck && pnpm test:ci && pnpm test:smoke:dashboard` **plus a production build (`pnpm build`)** — mandatory given the TS 7/React 19 toolchain swap — and, when `agents/` changed, `go build ./... && go vet ./... && go test ./...` in agents/agentd; `pnpm verify:launch` when launch surfaces change; protocol fixture round-trips must pass on both TS and Go when schema changes (the Zod 4 wave re-runs the full fixture suite as its primary contract check). New behavior lands with tests in the same wave. Wave 3+ adds the new Playwright journey suite to the gate. After each wave's deploy, owner does an on-device PWA pass (install, push, terminal typing) before the next wave launches. + +### Coordination protocol + +- Canonical docs: this plan + findings doc; live board `tasks/frontend-ux-status.md` (lane table, firewalls, migration claims, decisions pending owner); `tasks/frontend-ux-log.md` narrative; handoffs per lane with YAML front-matter. +- Builders: codex agents in tmux windows (`agent-command:fw1-*` …), worktrees `~/dev/wt/ac-fw-`; heavisidelinux lanes push `refactor/fw*` to origin; homelinux lanes stay local until the AI Lead integrates. Go toolchain at `~/.local/go/bin` on both machines. +- Contracts order: the AI Lead authors the new envelope/command shapes as JSON protocol fixtures in the FW1-TMUX-GO brief (fixtures are the cross-language contract, as in the last program); FW1-TMUX-GO implements Go against them, FW2-CONTRACTS implements the TS schema against the same frozen fixtures. Any shape change after FW1 freeze goes through the AI Lead, both sides re-gate. +- Prohibitions: no lane edits outside its firewall (violation ⇒ revert + re-task); no dependency changes outside the modernization lanes' briefs (R3F/Drei and the visualizer stay untouched); no transport-mode changes to the per-viewer PTY path; no direct commits to main — per-wave merge is a PR the owner merges/authorizes, migrations rolled out with that wave's deploy. +- Stop conditions: 3 attempts at the same failure without new evidence ⇒ hold lane and escalate; baseline green at program start must be re-verified before Wave 1 launches. + +## Risks + +- **TS 7 + React 19 in one wave** is the program's biggest single bet → FW1-MODERN is mechanical-only (no feature edits), gated on lint+typecheck+tests+**production build**, and deployed alone so any breakage is isolated to one revertable wave; TS 7 fallback is staying on TS 5 for the program (one-line decision reversal, rest of the plan unaffected). +- **Zod 3→4 semantic drift** (parse/validation behavior changes in ac-schema hit CP runtime validation and agentd-facing envelopes) → co-lane with contract authoring so one owner sees both; full TS+Go fixture round-trip suite is the gate's primary check; CP runtime-validation tests re-run. +- **Per-wave deploys shipping half-states** → each wave is scoped to leave coherent UX (the visible landing switch waits until Wave 3, after the modernization has already survived production). +- **tmux hook behavior varies by tmux version** (homelinux vs heavisidelinux vs prod hosts) → agentd feature-detects hooks, polling remains as reconciliation; integration test against a real tmux in CI lane gate. +- **Terminal regressions** in the hot-path/persistence work → per-viewer PTY server path untouched (Locked #3); client changes behind the existing protocol; the new stateful rerender test + resume tests are part of the same lane's gate. +- **Homelinux lane congestion** (most lanes are TS) → max 2 concurrent dashboard lanes with directory-split firewalls; AI Lead owns shared files (layout, stores) and reconciles. +- **Scope creep in polish** → FW4-POLISH is timeboxed; anything beyond its brief goes to BACKLOG, not the lane. +- **iOS blind spots** (no hardware in lanes) → owner device checks at wave gates; Playwright mobile-viewport coverage is a floor, not proof. +- **Landing-page switch surprises muscle memory** → old `/` route 302s to the Command Center (no dead link), sessions/automation reachable in two taps; revert is a one-line callback change. diff --git a/tasks/2026-07-20-frontend-ux-study-findings.md b/tasks/2026-07-20-frontend-ux-study-findings.md new file mode 100644 index 00000000..f3ed9bf5 --- /dev/null +++ b/tasks/2026-07-20-frontend-ux-study-findings.md @@ -0,0 +1,78 @@ +# Frontend UX Study Findings - 2026-07-20 + +Evidence base for `tasks/2026-07-20-frontend-tmux-ux-master-plan.md`. Studied at main `70fa53e` (0.3.0 fully merged and deployed; production containers built from `SOURCE_COMMIT=70fa53e`, deployed 2026-07-20T04:05Z). + +## 0. Why the mobile app "looks exactly the same" after 0.3.0 + +- Post-signin landing is hardcoded to `/` (`apps/dashboard/src/app/signin/page.tsx:72,97` — `callbackUrl: '/'`), and `/` still renders the v0.2.0 desktop card grid with a literal "New in v0.2.0" hero (`app/(dashboard)/page.tsx:132`), with **no mobile layout branch**. +- Everything new in 0.3.0 (tmux mobile shell, `/orchestrator` page, fleet roster, bottom tabs) is additive and sits **behind** bottom-tab taps; first paint on a phone is the old dashboard with a bottom bar bolted on. +- Compounding sameness: two entries to the same drawer (header hamburger + bottom-nav "More", both toggling `ui.mobileMenuOpen`), and two orchestrator surfaces (header bell → `OrchestratorModal` bottom sheet; bottom tab → `OrchestratorPageClient` full page) rendering the same `useAttentionQueue()` data. + +## 1. Information architecture today + +Routes (all under `app/(dashboard)` unless noted): `/` legacy landing; `/tmux` (TmuxPageClient → `TmuxMobileShell`/`TmuxDesktopShell` at `useIsMobile(1024)`); `/orchestrator` (Fleet + Attention tabs, `max-w-5xl`); `/sessions` (666-line `SessionsPageClient`, ~10-button toolbar, not phone-redesigned); `/sessions/[id]`; `/automation`; `/memory`; `/hosts`; `/settings`; `/groups/[id]` (redirect); `(visualizer)/visualizer` (separate design language, off by default); `/signin`. + +Navigation: desktop `GlobalSidebar` rail; the same sidebar as mobile overlay drawer; `MobileBottomNav` (`md:hidden`) with tabs tmux / Orchestrator / Sessions / More. Breakpoints are inconsistent: CSS `md:` (768) vs JS `useIsMobile()` (768) vs tmux's `useIsMobile(1024)`. + +State: Zustand stores — `orchestrator.ts` (1406 lines, attention/fleet brain), `settings.ts` (681), `session.ts`, `usage.ts`, `notifications.ts`, `groups.ts`, `connection.ts`, `ui.ts`, `theme.ts`, plus 4 visualizer-only stores. Data: `lib/api.ts` (1074 lines) + react-query + shared UI WebSocket (`lib/ws.ts` via `useWebSocket`) + a **separate** terminal WebSocket (`hooks/useTerminalConnection.ts`, 430 lines). + +Design system: 10 shadcn-style primitives in `components/ui` (no dialog/sheet/dropdown/command primitives — hand-rolled per feature); Tailwind v4 + HSL tokens; old pages use `container mx-auto` while new ones use bespoke widths; tap-target sizing inconsistent between old and new surfaces. + +## 2. Terminal/tmux client — capability matrix vs native tmux + +Architecture: per-viewer PTY (0.3.0 default) — agentd creates a **grouped tmux session** `ac-view-` and runs a real `attach-session` under a PTY (`agents/agentd/internal/tmux/viewer_pty.go:156-186`), read-only viewers via `attach -r`. So the xterm renders a genuine tmux client: status bar, all panes of the current window, and every prefix command works as opaque bytes. + +| Capability | Status | Evidence | +|---|---|---| +| Attach/view live output (whole window) | Supported | `viewer_pty.go:178-186`; one `TerminalView` at a time | +| Status bar / window list | Supported via tmux bytes only | no React window strip; roster is separate | +| Switch windows | Mobile key bar (prefix-p/n); desktop hardware kbd only | `lib/tmuxKeys.ts:12-13`; `TerminalSurface.tsx:97-99` gates key bar to mobile | +| Create/kill/rename windows | Missing as UI actions | not in `tmuxKeys.ts:10-22` nor `TmuxActionSheet.tsx` | +| Split panes / select panes / zoom | Mobile buttons; desktop hardware kbd | `tmuxKeys.ts:14-21` | +| Resize individual panes | Missing (client resize only resizes whole tmux client) | `useXtermTerminal.ts:20-33` | +| Scrollback | Partial: 4000-line local cap, resume replay is `capture-pane` of visible screen only | `useXtermTerminal.ts:56`; `terminal.go:316` | +| Scrollback search | Missing (`@xterm/addon-search` not installed) | `package.json` | +| Copy mode / selection / paste | Supported, richer on mobile (SelectionPopup, long-press menu, iOS fallbacks) | `TerminalSurface.tsx:76-95`, `useTerminalClipboard.ts` | +| Input incl. special keys | Supported (VirtualKeyboard, CSI-u Shift-Enter) | `VirtualKeyboard.tsx:43-53`, `useXtermTerminal.ts:99-112` | +| Multiple terminals at once | Missing (single mount; no grid/split) | `SessionWorkbench.tsx:180-195` | +| Persistent terminal | Within `/tmux` mode switches only; unmounts on route change | `TmuxMobileShell.tsx:19-31,300-324`; `TerminalView.tsx:118-127` | +| Rendering | WebGL + DOM fallback; keyboard-aware viewport | `useXtermTerminal.ts:88-95`; `useTerminalConnection.ts:338-358` | +| Reconnect | Resume tokens + backoff + visibility/online triggers; 10-min server idle timeout | `lib/reconnect.ts:29-90`; `terminal.ts:143-155` | +| Read-only observer / take control | Supported + audited | `TerminalToolbar.tsx:67-96`; `terminal.go:323-326` | + +Perf hazards: every `output` frame runs `markConnected()` → reconnect-state transition + `setStatus` + `setErrorMessage(null)` + forced `scrollToBottom()` (`useTerminalConnection.ts:159-163`) — hot-path churn that also fights user scroll; roster "all hosts" fans out per-host fetches and rebuilds clusters on any session change with only a 750ms debounce (`useTmuxRosterData.ts:263-269`); xterm selection mirrored into React state re-renders during drag (`TerminalView.tsx:28-36`); stacked document-level touch listeners (SelectionPopup + ContextMenu + touch-scroll RAF loop). + +## 3. Backend capability inventory and gaps + +Everything native "works" only as opaque bytes in one PTY; the protocol has **no structured representation** of topology, activity, or copy state. + +Exists and consumed: per-viewer PTY attach/input/resize/control/detach + readonly/lag/idle frames; resume tokens; `GET /v1/tmux/roster` (DB-derived, poll-fed); `POST /v1/tmux/open`; commands send_input/send_keys/interrupt; console.subscribe pipe-pane text path; fork/copy-to/bulk/spawn; orphan/adopt; orchestrator/fleet endpoints; UI stream topics. + +Exists but **unused/dead**: `rename_session` (schema `enums.ts:48` + executor `main.go:1942`, zero producers — session PATCH is DB-only); `spawn_job`; `capture_pane` as a command (rich modes in `tmux.go:187`, only used server-side in cross-host copy `sessions.ts:530`); legacy FIFO/shared-PTY bridges; JSON output frame branch (client always negotiates binary). + +Gaps (with owning layer): +1. **No topology events** — panes polled (`main.go:4621` → `syncPanes`), one `sessions.upsert` per pane; no push on window/pane add/close/rename/move/split. Fix: agentd event source (tmux hooks) + schema event + CP relay. +2. **No active-pane/active-window/layout/zoom/flags** — `ListPanes` format (`tmux.go:50`) omits `pane_active`, `window_active`, `window_layout`, `window_zoomed_flag`, sizes. Fix: format extension + schema fields. +3. **No pane-scoped multi-stream** — attach keyed to session's single `tmux_pane_id` (`terminal.ts:287,321`); cannot stream two panes as separate surfaces. +4. **No scrollback paging endpoint** — agentd `CapturePaneRange` (visible/last_n/range/full) is ready; no CP endpoint, no UI pager. +5. **No structured copy-mode/buffers** — no list-buffers/show-buffer, no search. +6. **No status-line/window flags** (bell/activity/silence/marked) beyond derived `SessionStatus`. +7. **Window/pane management not exposed as commands** — agentd already has `NewWindow`/`SplitPane`/`KillPane`/`ResizePane`/select ops (`tmux.go`), but no `CommandPayload` types for them. **Lowest-effort, highest-value gap.** +8. **tmux control mode (`-CC`)** absent everywhere; previously rejected in `webtmux_fix.md:373`. It is the canonical real-time source underpinning gaps 1–6, but replacing the transport again is high-risk. + +## 4. Prior art, leftovers, deferred debt + +Essentially all of the 2026-05-19 tmux-command-center + mobile-launch programs and 2026-02-14 fixes shipped (roster model, mobile shell, key bar, action sheet, launch sheet, per-viewer terminals, PWA/push, fleet cards, bottom nav). Outstanding: +- Persistent launch/open **rail** (nav tabs shipped instead) — prior item #34. +- Legacy `SpawnSessionDialog.tsx` never deleted; `SessionGenerator`/`RepoPicker` never made mobile-first; `LAUNCH_PROVIDERS`/`SESSION_TEMPLATES` never centralized. +- Host capability write API never reconciled (`routes/hosts.ts` has no terminal/spawn/providers writes). +- Saved roster filters + tuned health badges (BACKLOG ideas, open). +- W4-FLEET-UI: no CP fleet aggregate endpoint — dashboard caps at 4 concurrent per-orchestrator bundles. +- W4-TERM-CLIENT: resume after full CP restart can be rejected by agentd (stale attached-channel supersede needs an agentd change); no stateful rerender test proving xterm survives roster→terminal switches. +- W3-PWA: push never exercised end-to-end on real iOS hardware; second dedicated WS for `attention.changed`; 60s polling of failed/blocked run sets. +- W6-CLEANUP deferred: `eslint-plugin-react-hooks` pinned 7.0.1 (7.1.1 trips `SessionList`); 3 `exhaustive-deps` warnings in `MobileLaunchSheet`; major dep migrations all deferred (React 18→19, Zod 3→4, tailwind-merge 2→3, lucide 0.x→1.x, ESLint 9→10, TS 5→7…); `uuid@8.3.2` advisory via next-auth. +- Acceptance checklist only ever covered Wave 1 (process gap to fix this program). + +## 5. UI debt hot list + +Largest offenders: `stores/orchestrator.ts` 1406, `SettingsPanel.tsx` 1125, `lib/api.ts` 1074, `OrchestratorItem.tsx` 952, `SessionsPageClient.tsx` 666, `SessionList.tsx` 643, `ConsoleView.tsx` 635, `MobileLaunchSheet.tsx` 574 (visualizer/botspace files excluded — isolated). Duplications: attention queue rendered twice; fleet represented twice (`TmuxOrchestratorRow`+`lib/fleetRoster.ts` vs `OrchestratorFleetCard`+`useOrchestratorFleet`); session header actions implemented three times (tmux workbench header, session detail page, action sheet); terminal input emitted from three places; mobile/desktop tmux shells re-declare ~30 overlapping props. diff --git a/tasks/2026-07-20-fw1-modern-brief.md b/tasks/2026-07-20-fw1-modern-brief.md new file mode 100644 index 00000000..23776e03 --- /dev/null +++ b/tasks/2026-07-20-fw1-modern-brief.md @@ -0,0 +1,47 @@ +# FW1-MODERN — Frontend-stack modernization (Wave 1) + +Lane: FW1-MODERN · Machine: homelinux · Worktree: `~/dev/wt/ac-fw1-modern` · Branch: `refactor/fw1-modern` (off `refactor/frontend-command-center`; local, do NOT push) +Program: `tasks/2026-07-20-frontend-tmux-ux-master-plan.md` · Acceptance: `tasks/frontend-ux-acceptance-checklist.md` (Wave 1 / FW1-MODERN section is your contract) + +## Mission + +Move the TypeScript stack to the modern baseline the rest of the program builds on. **Mechanical only** — zero intended behavior change. Every later lane rebases on your work; correctness and a green production build matter more than speed. + +## Exact targets (current → target) + +| Dep | Current | Target | +|---|---|---| +| typescript (root + all workspaces) | ^5.9.3 | 7.x (native compiler) | +| eslint | ^9.39.5 | ^10 | +| eslint-plugin-react-hooks | pinned 7.0.1 (pnpm override) | latest 7.x/8.x, override removed | +| react / react-dom (dashboard) | ^18.3.1 | ^19 | +| @types/react (dashboard) | ^18.3.31 | ^19 | +| @types/node (all) | ^20.19.43 | latest LTS-matching major | +| tailwind-merge (dashboard) | ^2.6.1 | ^3 | +| lucide-react (dashboard) | ^0.460.0 | ^1.x | + +Explicitly NOT in scope: zod (stays ^3.25.76 — moves in Wave 2), next (16.2.10 stays), next-auth (stays; document any React-19 peer warnings rather than resolving them with dep changes), @react-three/fiber / drei / three (visualizer — untouched), vitest/playwright majors (only touch if a target above forces a compatible bump; document it). + +## Ownership firewall + +You may edit: `package.json` files + `pnpm-lock.yaml`, `tsconfig*.json`, eslint configs, `turbo.json` (script/tooling adjustments only), and TS/TSX source anywhere **outside `agents/**`** for mechanical migration fixes. You may NOT: change runtime behavior or UI, add/remove features, touch `agents/**`, `migrations/**`, `deploy/**`, or anything visualizer-specific (`components/botspace/**`, `components/visualizer/**`, `app/(visualizer)/**` — if a mechanical fix is unavoidably required there to compile, keep it minimal and list it in the handoff). + +## Phases (commit per phase, message prefix `chore(modern):`) + +1. **TS 7**: bump typescript across workspaces; adjust tsconfigs/turbo scripts for the native compiler; `pnpm typecheck` green. Record `tsc --version` in the handoff. +2. **ESLint 10 + hooks unpin**: bump eslint, unpin eslint-plugin-react-hooks (remove the pnpm override); fix `apps/dashboard/src/components/SessionList.tsx` so the new react-hooks compiler diagnostic passes **by fixing the component, not disabling the rule**; fix the 3 exhaustive-deps warnings in `components/launch/MobileLaunchSheet.tsx` properly; `pnpm lint` green with zero suppressions added. +3. **React 19**: react/react-dom/@types bumps; apply mechanical API migrations (types, ref changes, removed APIs); `pnpm test:ci` + `pnpm test:smoke:dashboard` green. +4. **tailwind-merge 3 + lucide 1.x**: API/import renames; visual behavior identical. +5. **Full gate**: `pnpm lint && pnpm typecheck && pnpm test:ci && pnpm test:smoke:dashboard && pnpm build`. The production build is mandatory — this wave deploys. + +## Rules + +- If TS 7 hits a hard blocker (compiler bug, unsupported config), make ≤3 distinct attempts; then set `state: held` in your handoff with exact evidence — the approved fallback (TS 5 stays this program) is the AI Lead/owner's call, not yours. Same protocol for React 19. +- No `eslint-disable`, `@ts-expect-error`, or `any`-casts to make gates pass unless the exact same suppression already existed; net-new suppressions must be listed in the handoff with justification. +- Keep each phase's diff reviewable; don't reformat unrelated code. + +## Done + +All acceptance items checked, full gate green, handoff written to `tasks/frontend-ux-handoffs/fw1-modern.md` (schema in that directory's README) and committed on your branch, then print exactly: + +`FW1-MODERN FROZEN ` diff --git a/tasks/2026-07-20-fw1-tmux-go-brief.md b/tasks/2026-07-20-fw1-tmux-go-brief.md new file mode 100644 index 00000000..36a4aa09 --- /dev/null +++ b/tasks/2026-07-20-fw1-tmux-go-brief.md @@ -0,0 +1,64 @@ +# FW1-TMUX-GO — Structured tmux model in agentd (Wave 1) + +Lane: FW1-TMUX-GO · Machine: heavisidelinux · Worktree: `~/dev/wt/ac-fw1-tmux-go` · Branch: `refactor/fw1-tmux-go` (off `origin/refactor/frontend-command-center`; PUSH to origin regularly) +Program: `tasks/2026-07-20-frontend-tmux-ux-master-plan.md` · Acceptance: `tasks/frontend-ux-acceptance-checklist.md` (Wave 1 / FW1-TMUX-GO section is your contract) +Go toolchain: `~/.local/go/bin`. + +## Mission + +Give the dashboard a structured, real-time tmux model and in-app window/pane management — all in agentd. The per-viewer PTY terminal transport is NOT to be modified (locked decision #3); you are adding out-of-band structure beside it. The JSON fixture shapes below are the frozen cross-language contract: Wave 2 implements the TypeScript side against your committed fixtures. + +## SAFETY — heavisidelinux tmux + +The host tmux server on this machine has crashed on `kill-session` before. **Never run kill-session/kill-server against the default tmux server.** All tests that need tmux MUST spawn a private server via a dedicated socket (`tmux -L ac-test-$RANDOM ...`) and clean up only that socket's server. + +## Work items + +1. **Extended pane collection.** Extend the `list-panes -a` format in `agents/agentd/internal/tmux/tmux.go` (`ListPanes`, format at ~line 50) with: `pane_active`, `window_active`, `window_zoomed_flag`, `window_layout`, `pane_width`, `pane_height`, `window_bell_flag`, `window_activity_flag`. Plumb the new fields through `syncPanes` into `sessions.upsert` `metadata.tmux` (see `cmd/agentd/main.go` ~4641-4757). Additive only — existing metadata keys unchanged. +2. **`tmux.topology` event.** New agent→CP envelope emitting a debounced (≥500ms coalesce) full topology snapshot for the host's tmux sessions, with a `reason` field. Shape frozen below. Emit on hook triggers (item 3) and whenever a reconciliation poll detects drift vs the last emitted snapshot. Unknown-envelope tolerance: the current CP will ignore it until Wave 2 — that is expected and fine. +3. **tmux hooks.** On agentd start, feature-detect tmux hook support (version check) and register global hooks that touch a trigger (e.g. run a tiny `tmux wait-for -S`-style signal or write to a pipe agentd watches — your choice, but no busy-polling): `after-new-window`, `after-kill-pane`, `after-split-window`, `window-renamed`, `session-renamed`, `session-created`, `session-closed`, `after-resize-pane` (register only supported ones). Hooks are additive — preserve any pre-existing user hook values by appending, and restore on shutdown. If hooks unsupported → poll-only degradation with a log line. Existing `pollTmux` cadence stays as reconciliation. +4. **Window/pane command executor.** Add `CommandPayload` handling in the executor switch (`cmd/agentd/main.go` ~1916) for: `new_window`, `kill_window`, `rename_window`, `split_pane`, `select_window`, `select_pane`, `resize_pane`, `zoom_pane`. Client methods `NewWindow`/`SplitPane`/`KillPane`/`ResizePane` exist in `internal/tmux/tmux.go`; add the missing ones (`KillWindow`, `RenameWindow`, `SelectWindow`, `SelectPane`, `ZoomPane`). Target resolution: the dispatch's `session_id` resolves to its tracked pane; window ops apply to that pane's tmux session, using `window_index` from the payload where given. Results go back via the existing `commands.result` path (ok / structured error). Unit tests per op against a private-socket tmux server. +5. **Resume supersede after CP restart.** Close the deferred W4-TERM-CLIENT item: when a `terminal.attach` arrives for a channel whose previous CP connection is gone (stale attached channel), agentd must supersede the stale channel (detach it, honor the new attach — resume token validation unchanged) instead of rejecting. Add an integration test that simulates a CP reconnect (new WS connection, same pane, valid resume token) and asserts the new attach succeeds and the old channel is cleaned up. Relevant: `internal/tmux/terminal.go` (~300-330), `viewer_pty.go`. +6. **Scrollback paging verification.** Prove `capture_pane` `range` mode supports stable history paging: a test that fills a pane with known numbered lines, captures two consecutive ranges, and asserts contiguity/non-overlap. Extend `CapturePaneRange` (`tmux.go` ~187) only if the proof fails. +7. **Protocol fixtures.** Commit NEW files under `tests/fixtures/protocol/` exactly matching the shapes below (naming follows existing `commands-dispatch-.json`), and extend the Go round-trip fixture test to cover them. After you freeze, these shapes change only with AI Lead sign-off. + +## Frozen contract shapes + +`tests/fixtures/protocol/tmux-topology.json` (agent→CP; one snapshot per host, sessions sorted by name, windows by index, panes by index): + +```json +{"v":1,"type":"tmux.topology","ts":"2026-07-20T14:00:00Z","payload":{"reason":"hook:window-renamed","tmux_sessions":[{"session_name":"agent-command","attached":true,"windows":[{"window_index":1,"window_name":"fw1-modern","active":true,"zoomed":false,"layout":"tiled","bell":false,"activity":false,"panes":[{"pane_id":"%12","pane_index":0,"active":true,"width":190,"height":45,"title":"codex","current_command":"codex","current_path":"/home/cvsloane/dev/wt/ac-fw1-modern"}]}]}]}} +``` + +`reason` values: `"hook:"`, `"poll"`, `"startup"`. + +Command dispatch fixtures (same envelope as existing `commands-dispatch-*.json`; payloads): + +```json +{"type":"new_window","payload":{"window_name":"scratch","cwd":"/home/cvsloane/dev/agent-command"}} +{"type":"kill_window","payload":{"window_index":3}} +{"type":"rename_window","payload":{"window_index":3,"name":"builds"}} +{"type":"split_pane","payload":{"direction":"vertical","percent":50,"cwd":"/home/cvsloane/dev/agent-command"}} +{"type":"select_window","payload":{"window_index":2}} +{"type":"select_pane","payload":{"pane_id":"%14"}} +{"type":"resize_pane","payload":{"pane_id":"%14","width":120,"height":30}} +{"type":"zoom_pane","payload":{"pane_id":"%14"}} +``` + +Optionality: `new_window` both fields optional; `split_pane` `direction` required (`"horizontal"|"vertical"`), `percent`/`cwd` optional; `resize_pane` needs `pane_id` plus at least one of `width`/`height`; `zoom_pane` toggles. File names: `commands-dispatch-new-window.json`, `-kill-window`, `-rename-window`, `-split-pane`, `-select-window`, `-select-pane`, `-resize-pane`, `-zoom-pane`. + +## Ownership firewall + +You may edit: `agents/**` and NEW files under `tests/fixtures/protocol/`. Nothing else — no `packages/`, `services/`, `apps/`, `migrations/`. The TS side of these contracts is Wave 2's job. + +## Gates (all must pass before freeze) + +`cd agents/agentd && go build ./... && go vet ./... && go test ./...` — including your new unit/integration tests and the extended fixture round-trip test. Commit per work item, message prefix `feat(agentd):` / `test(agentd):`. Push the branch to origin as you go. + +## Done + +All acceptance items checked, gates green, handoff written to `tasks/frontend-ux-handoffs/fw1-tmux-go.md` (schema in that directory's README), committed on your branch and pushed, then print exactly: + +`FW1-TMUX-GO FROZEN ` + +If blocked (≤3 attempts on the same failure), set `state: held` in the handoff with exact evidence and stop — do not lower the bar. diff --git a/tasks/frontend-ux-acceptance-checklist.md b/tasks/frontend-ux-acceptance-checklist.md new file mode 100644 index 00000000..52b39de9 --- /dev/null +++ b/tasks/frontend-ux-acceptance-checklist.md @@ -0,0 +1,46 @@ +# Frontend Command Center UX — Acceptance Checklist + +Program: `tasks/2026-07-20-frontend-tmux-ux-master-plan.md`. Maintained per wave (process fix from the 0.3.0 program, whose checklist only ever covered Wave 1). Ground truth = commands executed at the frozen SHA + committed evidence, never Builder summaries. + +Non-waivable across all waves: full gate green (`pnpm lint && pnpm typecheck && pnpm test:ci && pnpm test:smoke:dashboard && pnpm build`, plus `go build ./... && go vet ./... && go test ./...` in agents/agentd when `agents/` changed); no ownership-firewall breaches; no edits to the per-viewer PTY transport mode; visualizer + R3F/Drei untouched. + +## Wave 1 + +### FW1-MODERN +- [ ] TypeScript 7 across all workspaces; `pnpm typecheck` green using the TS 7 toolchain (evidence: `tsc --version` output in handoff). +- [ ] ESLint 10 + `eslint-plugin-react-hooks` unpinned to latest; the pnpm override removed; `pnpm lint` green including `SessionList` (the 7.1.1 compiler diagnostic resolved by fixing the component, not by disabling the rule). +- [ ] React 19 + react-dom 19 + @types/react 19; no runtime behavior change intended; smoke suite green. +- [ ] tailwind-merge 3 and lucide-react 1.x migrated (import/API renames only). +- [ ] The 3 `MobileLaunchSheet` exhaustive-deps warnings fixed (not suppressed). +- [ ] `pnpm build` (production) succeeds; no new build warnings attributable to the migration left undocumented. +- [ ] Zod untouched (stays 3.x — moves in FW2); `agents/**` untouched; no feature/behavior edits (mechanical only); visualizer deps untouched. +- [ ] Handoff `tasks/frontend-ux-handoffs/fw1-modern.md` with proof refs; token `FW1-MODERN FROZEN `. + +### FW1-TMUX-GO +- [ ] `list-panes` collection extended with pane_active, window_active, window_zoomed, window_layout, pane_width, pane_height, window bell/activity flags; values reach `sessions.upsert` `metadata.tmux`. +- [ ] `tmux.topology` event implemented per the shapes frozen in the brief; debounced; emitted on tmux hook triggers with polling retained as reconciliation; feature-detects hook support and degrades to poll-only. +- [ ] Executor handles `new_window`, `kill_window`, `rename_window`, `split_pane`, `select_window`, `select_pane`, `resize_pane`, `zoom_pane` with `commands.result` acks; unit tests per op against a private-socket tmux server. +- [ ] Stale attached-channel supersede: a valid new `terminal.attach` after a control-plane restart supersedes the old channel instead of being rejected; integration test simulating CP reconnect passes (closes the W4-TERM-CLIENT deferred item). +- [ ] `capture_pane` range mode verified/extended for stable scrollback paging; test proves two consecutive pages are contiguous and non-overlapping. +- [ ] New protocol fixtures committed exactly matching the brief's shapes; Go round-trip fixture test green; shapes unchanged after freeze (any change requires AI Lead sign-off). +- [ ] All tmux spawned by tests uses a private `-L` socket; no operations against the host's live tmux server (heavisidelinux kill-session crash hazard). +- [ ] Handoff `tasks/frontend-ux-handoffs/fw1-tmux-go.md`; token `FW1-TMUX-GO FROZEN `; branch pushed to origin. + +### Wave 1 integration (AI Lead) +- [ ] Both lanes reviewed against firewalls + briefs; integrated on `refactor/frontend-command-center`; full gate green post-integration. +- [ ] Wave PR to main opened; owner merge + production deploy; owner on-device PWA pass recorded in the log. + +## Wave 2 (to be detailed at wave launch) +- [ ] FW2-CONTRACTS: Zod 4 across ac-schema/CP/dashboard; TS schemas for the frozen Wave-1 fixtures; topology UI topic; scrollback endpoint; window/pane command routes; fleet aggregate endpoint; TS+Go fixture round-trips green. +- [ ] FW2-TERM: output-frame hot path fixed (no store writes/reconnect transitions per frame; scroll anchoring); app-level persistent terminal host with reattach; `@xterm/addon-search` + 10k scrollback; xterm-survives-navigation stateful test. + +## Wave 3 (outline) +- [ ] Command Center landing live (signin callback + PWA start_url); old `/` redirects; nav/breakpoint unification; single attention surface; launch rail; `SpawnSessionDialog` deleted. +- [ ] Window strip + window/pane management UI + desktop key bar + 2-up desktop multi-terminal + scrollback pager. + +## Wave 4 (outline) +- [ ] Unified fleet model consuming the aggregate endpoint (4-concurrent cap removed); terminal attention overlay; prompt composer; health badges + saved filters. +- [ ] `/sessions`, `/memory`, `/hosts`, settings migrated to the design system; god components decomposed; command palette. + +## Wave 5 (outline) +- [ ] Playwright journey suite green at 390×844 + 1280×720 for the seven journeys named in the plan; perf probes recorded; CHANGELOG 0.4.0; docs refreshed; acceptance checklist fully reconciled. diff --git a/tasks/frontend-ux-handoffs/README.md b/tasks/frontend-ux-handoffs/README.md new file mode 100644 index 00000000..1f54c34a --- /dev/null +++ b/tasks/frontend-ux-handoffs/README.md @@ -0,0 +1,26 @@ +# Handoffs + +One file per lane per freeze: `fw-.md`. YAML front matter + Markdown body, parseable by the AI Lead: + +```yaml +--- +lane: FW1-MODERN +frozen_sha: +attempt: 1 +state: frozen | held | escalated +gates: + lint: pass|fail + typecheck: pass|fail + test_ci: pass|fail + smoke: pass|fail + build: pass|fail + go: pass|fail|n/a +proof: + - → +assumptions: [] +uncertainties: [] +blockers: [] +--- +``` + +Body: what changed (by area), decisions taken within the brief's latitude, anything deferred with justification. End with the exact completion token on its own line. heavisidelinux lanes commit the handoff on their lane branch and push; homelinux lanes commit on their local lane branch. diff --git a/tasks/frontend-ux-log.md b/tasks/frontend-ux-log.md new file mode 100644 index 00000000..dbd7ed05 --- /dev/null +++ b/tasks/frontend-ux-log.md @@ -0,0 +1,7 @@ +# Frontend Command Center UX — Program Log (append-only) + +## 2026-07-20 +- ~12:00Z Four-agent frontend study completed; findings written (`tasks/2026-07-20-frontend-ux-study-findings.md`). Production verified live at `70fa53e` (SOURCE_COMMIT on apps-vps containers). +- ~13:00Z Master plan authored; owner locked all 8 decisions via interview (landing=Command Center, hooks-not-CC, full modernization incl. TS 7 + Zod 4 excl. R3F/Drei, 2-up multi-terminal, one attention surface, /sessions retained, per-wave deploys). +- ~13:30Z Program launch: baseline re-verified green (typecheck+test:ci) at `70fa53e`. Acceptance checklist, status board, briefs authored. Integration branch `refactor/frontend-command-center` cut from main. +- Wave 1 lanes launched: FW1-MODERN (homelinux, codex) and FW1-TMUX-GO (heavisidelinux, codex). Fixture shapes for the tmux topology event + 8 window/pane commands frozen in the FW1-TMUX-GO brief. diff --git a/tasks/frontend-ux-metrics.jsonl b/tasks/frontend-ux-metrics.jsonl new file mode 100644 index 00000000..e7a39432 --- /dev/null +++ b/tasks/frontend-ux-metrics.jsonl @@ -0,0 +1 @@ +{"ts":"2026-07-20T13:30:00Z","event":"program_launched","wave":1,"lanes":["FW1-MODERN","FW1-TMUX-GO"],"baseline_sha":"70fa53e","builders":"codex gpt-5.6-sol xhigh","integration_branch":"refactor/frontend-command-center"} diff --git a/tasks/frontend-ux-status.md b/tasks/frontend-ux-status.md new file mode 100644 index 00000000..32198258 --- /dev/null +++ b/tasks/frontend-ux-status.md @@ -0,0 +1,43 @@ +# Frontend Command Center UX — Status Board (compact, updated in place) + +Program: `tasks/2026-07-20-frontend-tmux-ux-master-plan.md` · Findings: `tasks/2026-07-20-frontend-ux-study-findings.md` · Acceptance: `tasks/frontend-ux-acceptance-checklist.md` +AI Lead: Claude (Fable 5) on homelinux, session in agent-command repo. Human Owner: Chris. +Integration branch: `refactor/frontend-command-center`. Builders: codex (gpt-5.6-sol, xhigh) lanes in tmux, isolated worktrees. +Baseline: typecheck + test:ci green at `70fa53e` (2026-07-20). Deploy cadence: per-wave PR to main + production deploy (owner merges/authorizes). + +## Wave 1 lanes (launched 2026-07-20) + +| Lane | Machine | Worktree | Branch | tmux | State | Last checked | +|---|---|---|---|---|---|---| +| FW1-MODERN | homelinux | ~/dev/wt/ac-fw1-modern | refactor/fw1-modern | agent-command:fw1-modern | launched | — | +| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | launched | — | + +## Ownership firewall (Wave 1) +- FW1-MODERN: package manifests + lockfile, tsconfig/eslint/turbo configs, and **mechanical** TS/TSX fixes anywhere outside `agents/**`. NO feature/behavior edits, NO Zod changes, NO visualizer/R3F dep changes, NO `agents/**`. +- FW1-TMUX-GO: `agents/**` + NEW files under `tests/fixtures/protocol/` only. Pushes `refactor/fw1-tmux-go` to origin. Fixture shapes frozen per brief — changes need AI Lead sign-off. +- AI Lead: `tasks/**`, integration branch, shared-file reconciliation, wave PRs. +- Migration numbers: next free **039** (no claims yet; claim here before use — expected first claims in FW2-CONTRACTS). + +## Completion tokens +`FW1-MODERN FROZEN ` · `FW1-TMUX-GO FROZEN ` +Handoffs land in `tasks/frontend-ux-handoffs/` (heavisidelinux lane commits its handoff on the lane branch). + +## Gates +- Lane gates: per brief. Wave gate (AI Lead, post-integration): `pnpm lint && pnpm typecheck && pnpm test:ci && pnpm test:smoke:dashboard && pnpm build` + `go build ./... && go vet ./... && go test ./...` in agents/agentd. +- Review: AI Lead mechanical review of every lane diff vs firewall + brief; fresh independent reviewer for the integrated wave before the wave PR (risk tier: standard; FW1-MODERN toolchain swap reviewed against build/runtime proof, not summaries). + +## Autonomy lanes +- Worktree code changes, lane-branch commits, lane-branch pushes: autonomous. +- Integration commits on `refactor/frontend-command-center`, brief/steering authoring: autonomous-with-receipt (log entry). +- Merge wave PR to main, production deploy, migration rollout: approval-required (owner). +- Dependency changes outside a brief's list, transport-mode changes, visualizer edits, force-push, kill-session on heavisidelinux tmux: forbidden. + +## Budgets & stop conditions +- Wall-clock: FW1-MODERN ≤ 8h, FW1-TMUX-GO ≤ 10h from launch; program soft ceiling 7 days. +- Progress = new commits, passing gate output, or a declared hold in the pane/handoff. No visible progress for 60 min ⇒ AI Lead intervenes (read scrollback, re-task). +- 3 attempts reproducing the same failure without new evidence/strategy ⇒ hold lane, escalate in handoff. +- TS 7 proves infeasible ⇒ declared hold + escalation; approved fallback is TS 5 for the program (plan risk section), owner informed — not silently swallowed. +- Firewall breach ⇒ objective correction (revert + re-task). Red wave gate ⇒ wave held, independent lanes may continue. + +## Decisions pending Human Owner +(none — Wave 1 fully authorized under the 2026-07-20 locked decisions; next owner action is the Wave-1 PR merge + deploy) From 0765bc44fb12a82617e4d9af44bc1e59234e86f8 Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 09:11:25 -0400 Subject: [PATCH 02/13] chore(program): wave 1 lanes launched and verified active Co-Authored-By: Claude Fable 5 --- tasks/frontend-ux-status.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/frontend-ux-status.md b/tasks/frontend-ux-status.md index 32198258..15928a2e 100644 --- a/tasks/frontend-ux-status.md +++ b/tasks/frontend-ux-status.md @@ -9,8 +9,8 @@ Baseline: typecheck + test:ci green at `70fa53e` (2026-07-20). Deploy cadence: p | Lane | Machine | Worktree | Branch | tmux | State | Last checked | |---|---|---|---|---|---|---| -| FW1-MODERN | homelinux | ~/dev/wt/ac-fw1-modern | refactor/fw1-modern | agent-command:fw1-modern | launched | — | -| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | launched | — | +| FW1-MODERN | homelinux | ~/dev/wt/ac-fw1-modern | refactor/fw1-modern | agent-command:fw1-modern | active (verified in pane) | 2026-07-20 launch+2m | +| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | active (verified in pane) | 2026-07-20 launch+2m | ## Ownership firewall (Wave 1) - FW1-MODERN: package manifests + lockfile, tsconfig/eslint/turbo configs, and **mechanical** TS/TSX fixes anywhere outside `agents/**`. NO feature/behavior edits, NO Zod changes, NO visualizer/R3F dep changes, NO `agents/**`. From 6f8ce3cc73af0161fc73d74c49a46dd680fd3fb0 Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 09:45:13 -0400 Subject: [PATCH 03/13] chore(modern): TypeScript 7, ESLint 10 + hooks unpin, React 19, tailwind-merge 3, lucide 1.x (FW1-MODERN 76d3c5e) Co-Authored-By: Claude Fable 5 --- .eslintrc.cjs | 35 - apps/dashboard/eslint.config.mjs | 58 +- apps/dashboard/package.json | 19 +- apps/dashboard/src/components/SessionList.tsx | 2 +- .../components/launch/MobileLaunchSheet.tsx | 2 +- .../src/types/react-three-fiber.d.ts | 7 + eslint.config.mjs | 46 + package.json | 20 +- packages/ac-cli/package.json | 6 +- packages/ac-cli/src/config.ts | 4 +- packages/ac-schema/package.json | 4 +- pnpm-lock.yaml | 1781 ++++++++--------- services/control-plane/package.json | 6 +- .../control-plane/src/db/automationMemory.ts | 6 +- services/control-plane/src/db/index.ts | 15 +- .../control-plane/src/services/automation.ts | 2 +- .../control-plane/src/services/clawdbot.ts | 2 +- tasks/frontend-ux-handoffs/fw1-modern.md | 63 + .../eslint.config.mjs | 7 + tools/eslint-typescript-compat/package.json | 15 + tsconfig.base.json | 1 + 21 files changed, 1020 insertions(+), 1081 deletions(-) delete mode 100644 .eslintrc.cjs create mode 100644 apps/dashboard/src/types/react-three-fiber.d.ts create mode 100644 eslint.config.mjs create mode 100644 tasks/frontend-ux-handoffs/fw1-modern.md create mode 100644 tools/eslint-typescript-compat/eslint.config.mjs create mode 100644 tools/eslint-typescript-compat/package.json diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index c7a0f362..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - root: true, - ignorePatterns: [ - '**/dist/**', - '**/.next/**', - '**/node_modules/**', - '**/out/**', - '**/coverage/**', - '**/build/**', - '**/.turbo/**', - ], - env: { - es2022: true, - node: true, - browser: true, - }, - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - }, - overrides: [ - { - files: ['**/*.ts', '**/*.tsx'], - parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint'], - extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], - rules: { - '@typescript-eslint/no-unused-vars': [ - 'error', - { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, - ], - }, - }, - ], -}; diff --git a/apps/dashboard/eslint.config.mjs b/apps/dashboard/eslint.config.mjs index 5b8afeff..4b9f5a1f 100644 --- a/apps/dashboard/eslint.config.mjs +++ b/apps/dashboard/eslint.config.mjs @@ -1,12 +1,59 @@ -import nextVitals from 'eslint-config-next/core-web-vitals'; +import { parser as tsParser } from '@agent-command/eslint-typescript-compat'; +import { fixupPluginRules } from '@eslint/compat'; +import nextPlugin from '@next/eslint-plugin-next'; +import importPlugin from 'eslint-plugin-import'; +import jsxA11yPlugin from 'eslint-plugin-jsx-a11y'; +import reactPlugin from 'eslint-plugin-react'; +import reactHooksPlugin from 'eslint-plugin-react-hooks'; +import globals from 'globals'; export default [ - ...nextVitals, + { + name: 'next', + files: ['**/*.{js,jsx,mjs,ts,tsx,mts,cts}'], + plugins: { + react: fixupPluginRules(reactPlugin), + 'react-hooks': reactHooksPlugin, + import: fixupPluginRules(importPlugin), + 'jsx-a11y': fixupPluginRules(jsxA11yPlugin), + '@next/next': nextPlugin, + }, + languageOptions: { + parser: tsParser, + parserOptions: { + sourceType: 'module', + }, + globals: { + ...globals.browser, + ...globals.node, + }, + }, + settings: { + react: { + version: 'detect', + }, + }, + rules: { + ...reactPlugin.configs.recommended.rules, + ...reactHooksPlugin.configs.recommended.rules, + ...nextPlugin.configs.recommended.rules, + ...nextPlugin.configs['core-web-vitals'].rules, + 'import/no-anonymous-default-export': 'warn', + 'react/no-unknown-property': 'off', + 'react/react-in-jsx-scope': 'off', + 'react/prop-types': 'off', + 'jsx-a11y/alt-text': ['warn', { elements: ['img'], img: ['Image'] }], + 'jsx-a11y/aria-props': 'warn', + 'jsx-a11y/aria-proptypes': 'warn', + 'jsx-a11y/aria-unsupported-elements': 'warn', + 'jsx-a11y/role-has-required-aria-props': 'warn', + 'jsx-a11y/role-supports-aria-props': 'warn', + 'react/jsx-no-target-blank': 'off', + }, + }, { rules: { '@next/next/no-html-link-for-pages': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-unused-vars': 'off', 'no-control-regex': 'off', 'react/no-unescaped-entities': 'off', 'react-hooks/purity': 'off', @@ -16,4 +63,7 @@ export default [ 'prefer-const': 'off', }, }, + { + ignores: ['.next/**', 'out/**', 'build/**', 'next-env.d.ts'], + }, ]; diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index 99a4a3d9..426845e2 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -34,30 +34,31 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "jose": "^5.10.0", - "lucide-react": "^0.460.0", + "lucide-react": "^1.25.0", "next": "^16.2.10", "next-auth": "^4.24.14", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "^19.2.7", + "react-dom": "^19.2.7", "react-hotkeys-hook": "^5.3.3", "react-markdown": "^10.1.0", "remark-gfm": "^4.0.1", - "tailwind-merge": "^2.6.1", + "tailwind-merge": "^3.6.0", "three": "^0.185.1", "zustand": "^5.0.14" }, "devDependencies": { "@tailwindcss/postcss": "4.3.3", "@tailwindcss/typography": "^0.5.20", - "@types/node": "^20.19.43", - "@types/react": "^18.3.31", - "@types/react-dom": "^18.3.7", + "@typescript/native-preview": "npm:typescript@^7.0.2", + "@types/node": "^24.13.3", + "@types/react": "^19.2.17", + "@types/react-dom": "^19.2.3", "@types/three": "^0.185.1", - "eslint": "^9.39.5", + "eslint": "^10.7.0", "postcss": "^8.5.20", "tailwindcss": "^4.3.3", "three-stdlib": "^2.36.1", - "typescript": "^5.9.3", + "typescript": "^7.0.2", "vitest": "^4.1.10" } } diff --git a/apps/dashboard/src/components/SessionList.tsx b/apps/dashboard/src/components/SessionList.tsx index 46ab14a6..4f4e4cb8 100644 --- a/apps/dashboard/src/components/SessionList.tsx +++ b/apps/dashboard/src/components/SessionList.tsx @@ -163,7 +163,7 @@ export function SessionList({ session.latest_snapshot?.created_at || '', ].join(':')) .join('|')}`; - }, [data?.sessions]); + }, [data]); const lastDataKeyRef = useRef(''); // Store fetched sessions diff --git a/apps/dashboard/src/components/launch/MobileLaunchSheet.tsx b/apps/dashboard/src/components/launch/MobileLaunchSheet.tsx index 26fa2ffe..d7b3ecc1 100644 --- a/apps/dashboard/src/components/launch/MobileLaunchSheet.tsx +++ b/apps/dashboard/src/components/launch/MobileLaunchSheet.tsx @@ -47,7 +47,7 @@ export function MobileLaunchSheet({ open, selectedHostId, onClose, onLaunched }: const setDefaultMobileLaunchHostId = useSettingsStore((state) => state.setDefaultMobileLaunchHostId); const setDefaultMobileLaunchTmuxTarget = useSettingsStore((state) => state.setDefaultMobileLaunchTmuxTarget); const { data, isLoading, error, refetch } = useLaunchTargets(open); - const targets = data?.targets ?? []; + const targets = useMemo(() => data?.targets ?? [], [data?.targets]); const [mode, setMode] = useState('new'); const [hostId, setHostId] = useState(''); const [provider, setProvider] = useState(defaultMobileLaunchProvider); diff --git a/apps/dashboard/src/types/react-three-fiber.d.ts b/apps/dashboard/src/types/react-three-fiber.d.ts new file mode 100644 index 00000000..a413f58f --- /dev/null +++ b/apps/dashboard/src/types/react-three-fiber.d.ts @@ -0,0 +1,7 @@ +import type { ThreeElements } from '@react-three/fiber'; + +declare module 'react' { + namespace JSX { + interface IntrinsicElements extends ThreeElements {} + } +} diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 00000000..69e81d74 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,46 @@ +import { + parser as tsParser, + plugin as tsPlugin, +} from '@agent-command/eslint-typescript-compat'; +import js from '@eslint/js'; +import globals from 'globals'; + +export default [ + { + ignores: [ + '**/dist/**', + '**/.next/**', + '**/node_modules/**', + '**/out/**', + '**/coverage/**', + '**/build/**', + '**/.turbo/**', + ], + }, + js.configs.recommended, + { + files: ['**/*.ts', '**/*.tsx'], + languageOptions: { + parser: tsParser, + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + }, + globals: { + ...globals.browser, + ...globals.node, + }, + }, + plugins: { + '@typescript-eslint': tsPlugin, + }, + rules: { + ...tsPlugin.configs['eslint-recommended'].overrides[0].rules, + ...tsPlugin.configs.recommended.rules, + '@typescript-eslint/no-unused-vars': [ + 'error', + { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, + ], + }, + }, +]; diff --git a/package.json b/package.json index e2d3fa2f..66f93cb9 100644 --- a/package.json +++ b/package.json @@ -16,15 +16,21 @@ "typecheck": "turbo typecheck" }, "devDependencies": { + "@agent-command/eslint-typescript-compat": "file:tools/eslint-typescript-compat", + "@eslint/compat": "^2.1.0", + "@eslint/js": "^10.0.1", + "@next/eslint-plugin-next": "16.2.10", "@playwright/test": "^1.61.1", - "@types/node": "^20.19.43", - "@typescript-eslint/eslint-plugin": "^8.64.0", - "@typescript-eslint/parser": "^8.64.0", - "eslint": "^9.39.5", - "eslint-config-next": "16.2.10", + "@types/node": "^24.13.3", + "eslint": "^10.7.0", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jsx-a11y": "^6.10.2", + "eslint-plugin-react": "^7.37.5", + "eslint-plugin-react-hooks": "^7.1.1", + "globals": "^17.7.0", "prettier": "^3.9.5", "turbo": "^2.10.5", - "typescript": "^5.9.3", + "typescript": "^7.0.2", "vite": "8.1.5", "vitest": "^4.1.10" }, @@ -34,8 +40,6 @@ }, "pnpm": { "overrides": { - "@babel/core": "7.29.7", - "eslint-plugin-react-hooks": "7.0.1", "postcss": "8.5.20", "vite": "8.1.5" } diff --git a/packages/ac-cli/package.json b/packages/ac-cli/package.json index 5ff630a1..ad76db3e 100644 --- a/packages/ac-cli/package.json +++ b/packages/ac-cli/package.json @@ -21,7 +21,7 @@ ], "scripts": { "build": "tsc && chmod +x dist/bin.js", - "lint": "cd ../.. && ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint packages/ac-cli/src --ext .ts", + "lint": "cd ../.. && pnpm exec eslint packages/ac-cli/src", "test": "vitest run", "typecheck": "tsc --noEmit" }, @@ -31,8 +31,8 @@ "zod": "^3.25.76" }, "devDependencies": { - "@types/node": "^20.19.43", - "typescript": "^5.9.3", + "@types/node": "^24.13.3", + "typescript": "^7.0.2", "vitest": "^4.1.10" } } diff --git a/packages/ac-cli/src/config.ts b/packages/ac-cli/src/config.ts index 60742c77..7244af99 100644 --- a/packages/ac-cli/src/config.ts +++ b/packages/ac-cli/src/config.ts @@ -89,7 +89,9 @@ export async function loadRuntimeConfig( } catch (error) { const code = (error as NodeJS.ErrnoException).code; if (code !== 'ENOENT') { - throw new Error(`Unable to read CLI config at ${configPath}: ${(error as Error).message}`); + throw new Error(`Unable to read CLI config at ${configPath}: ${(error as Error).message}`, { + cause: error, + }); } } diff --git a/packages/ac-schema/package.json b/packages/ac-schema/package.json index d6b8cdaa..722cff76 100644 --- a/packages/ac-schema/package.json +++ b/packages/ac-schema/package.json @@ -17,13 +17,13 @@ "dev": "tsc --watch", "test": "vitest run", "typecheck": "tsc --noEmit", - "lint": "cd ../.. && ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint packages/ac-schema/src --ext .ts" + "lint": "cd ../.. && pnpm exec eslint packages/ac-schema/src" }, "dependencies": { "zod": "^3.25.76" }, "devDependencies": { - "typescript": "^5.9.3", + "typescript": "^7.0.2", "vitest": "^4.1.10" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5789f428..6999cc8d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,8 +5,6 @@ settings: excludeLinksFromLockfile: false overrides: - '@babel/core': 7.29.7 - eslint-plugin-react-hooks: 7.0.1 postcss: 8.5.20 vite: 8.1.5 @@ -14,24 +12,42 @@ importers: .: devDependencies: + '@agent-command/eslint-typescript-compat': + specifier: file:tools/eslint-typescript-compat + version: file:tools/eslint-typescript-compat(eslint@10.7.0(jiti@2.7.0)) + '@eslint/compat': + specifier: ^2.1.0 + version: 2.1.0(eslint@10.7.0(jiti@2.7.0)) + '@eslint/js': + specifier: ^10.0.1 + version: 10.0.1(eslint@10.7.0(jiti@2.7.0)) + '@next/eslint-plugin-next': + specifier: 16.2.10 + version: 16.2.10 '@playwright/test': specifier: ^1.61.1 version: 1.61.1 '@types/node': - specifier: ^20.19.43 - version: 20.19.43 - '@typescript-eslint/eslint-plugin': - specifier: ^8.64.0 - version: 8.64.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/parser': - specifier: ^8.64.0 - version: 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + specifier: ^24.13.3 + version: 24.13.3 eslint: - specifier: ^9.39.5 - version: 9.39.5(jiti@2.7.0) - eslint-config-next: - specifier: 16.2.10 - version: 16.2.10(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + specifier: ^10.7.0 + version: 10.7.0(jiti@2.7.0) + eslint-plugin-import: + specifier: ^2.32.0 + version: 2.32.0(@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3))(eslint@10.7.0(jiti@2.7.0)) + eslint-plugin-jsx-a11y: + specifier: ^6.10.2 + version: 6.10.2(eslint@10.7.0(jiti@2.7.0)) + eslint-plugin-react: + specifier: ^7.37.5 + version: 7.37.5(eslint@10.7.0(jiti@2.7.0)) + eslint-plugin-react-hooks: + specifier: ^7.1.1 + version: 7.1.1(eslint@10.7.0(jiti@2.7.0)) + globals: + specifier: ^17.7.0 + version: 17.7.0 prettier: specifier: ^3.9.5 version: 3.9.5 @@ -39,14 +55,14 @@ importers: specifier: ^2.10.5 version: 2.10.5 typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vite: specifier: 8.1.5 - version: 8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1) + version: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1) vitest: specifier: ^4.1.10 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) apps/dashboard: dependencies: @@ -55,46 +71,46 @@ importers: version: link:../../packages/ac-schema '@dnd-kit/core': specifier: ^6.3.1 - version: 6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 6.3.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@dnd-kit/sortable': specifier: ^10.0.0 - version: 10.0.0(@dnd-kit/core@6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 10.0.0(@dnd-kit/core@6.3.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react@19.2.7) '@dnd-kit/utilities': specifier: ^3.2.2 - version: 3.2.2(react@18.3.1) + version: 3.2.2(react@19.2.7) '@radix-ui/react-dialog': specifier: ^1.1.20 - version: 1.1.20(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@radix-ui/react-dropdown-menu': specifier: ^2.1.21 - version: 2.1.21(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 2.1.21(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@radix-ui/react-select': specifier: ^2.3.4 - version: 2.3.4(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 2.3.4(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@radix-ui/react-slot': specifier: ^1.3.0 - version: 1.3.0(@types/react@18.3.31)(react@18.3.1) + version: 1.3.0(@types/react@19.2.17)(react@19.2.7) '@radix-ui/react-tabs': specifier: ^1.1.18 - version: 1.1.18(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.1.18(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@radix-ui/react-toast': specifier: ^1.2.20 - version: 1.2.20(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.2.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@radix-ui/react-tooltip': specifier: ^1.2.13 - version: 1.2.13(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.2.13(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) '@react-spring/three': specifier: ^10.1.2 - version: 10.1.2(@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1))(react@18.3.1)(three@0.185.1) + version: 10.1.2(@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1))(react@19.2.7)(three@0.185.1) '@react-three/drei': specifier: ^9.122.0 - version: 9.122.0(@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1))(@types/react@18.3.31)(@types/three@0.185.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1)(use-sync-external-store@1.6.0(react@18.3.1)) + version: 9.122.0(@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1))(@types/react@19.2.17)(@types/three@0.185.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1)(use-sync-external-store@1.6.0(react@19.2.7)) '@react-three/fiber': specifier: ^8.18.0 - version: 8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1) + version: 8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1) '@tanstack/react-query': specifier: ^5.101.2 - version: 5.101.2(react@18.3.1) + version: 5.101.2(react@19.2.7) '@xterm/addon-fit': specifier: ^0.11.0 version: 0.11.0 @@ -120,38 +136,38 @@ importers: specifier: ^5.10.0 version: 5.10.0 lucide-react: - specifier: ^0.460.0 - version: 0.460.0(react@18.3.1) + specifier: ^1.25.0 + version: 1.25.0(react@19.2.7) next: specifier: ^16.2.10 - version: 16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) next-auth: specifier: ^4.24.14 - version: 4.24.14(next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 4.24.14(next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react-dom@19.2.7(react@19.2.7))(react@19.2.7) react: - specifier: ^18.3.1 - version: 18.3.1 + specifier: ^19.2.7 + version: 19.2.7 react-dom: - specifier: ^18.3.1 - version: 18.3.1(react@18.3.1) + specifier: ^19.2.7 + version: 19.2.7(react@19.2.7) react-hotkeys-hook: specifier: ^5.3.3 - version: 5.3.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 5.3.3(react-dom@19.2.7(react@19.2.7))(react@19.2.7) react-markdown: specifier: ^10.1.0 - version: 10.1.0(@types/react@18.3.31)(react@18.3.1) + version: 10.1.0(@types/react@19.2.17)(react@19.2.7) remark-gfm: specifier: ^4.0.1 version: 4.0.1 tailwind-merge: - specifier: ^2.6.1 - version: 2.6.1 + specifier: ^3.6.0 + version: 3.6.0 three: specifier: ^0.185.1 version: 0.185.1 zustand: specifier: ^5.0.14 - version: 5.0.14(@types/react@18.3.31)(react@18.3.1)(use-sync-external-store@1.6.0(react@18.3.1)) + version: 5.0.14(@types/react@19.2.17)(react@19.2.7)(use-sync-external-store@1.6.0(react@19.2.7)) devDependencies: '@tailwindcss/postcss': specifier: 4.3.3 @@ -160,20 +176,23 @@ importers: specifier: ^0.5.20 version: 0.5.20(tailwindcss@4.3.3) '@types/node': - specifier: ^20.19.43 - version: 20.19.43 + specifier: ^24.13.3 + version: 24.13.3 '@types/react': - specifier: ^18.3.31 - version: 18.3.31 + specifier: ^19.2.17 + version: 19.2.17 '@types/react-dom': - specifier: ^18.3.7 - version: 18.3.7(@types/react@18.3.31) + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.17) '@types/three': specifier: ^0.185.1 version: 0.185.1 + '@typescript/native-preview': + specifier: npm:typescript@^7.0.2 + version: typescript@7.0.2 eslint: - specifier: ^9.39.5 - version: 9.39.5(jiti@2.7.0) + specifier: ^10.7.0 + version: 10.7.0(jiti@2.7.0) postcss: specifier: 8.5.20 version: 8.5.20 @@ -184,11 +203,11 @@ importers: specifier: ^2.36.1 version: 2.36.1(three@0.185.1) typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.10 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) packages/ac-cli: dependencies: @@ -203,14 +222,14 @@ importers: version: 3.25.76 devDependencies: '@types/node': - specifier: ^20.19.43 - version: 20.19.43 + specifier: ^24.13.3 + version: 24.13.3 typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.10 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) packages/ac-schema: dependencies: @@ -219,11 +238,11 @@ importers: version: 3.25.76 devDependencies: typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.10 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) services/control-plane: dependencies: @@ -280,8 +299,8 @@ importers: specifier: ^3.0.0 version: 3.0.0 '@types/node': - specifier: ^20.19.43 - version: 20.19.43 + specifier: ^24.13.3 + version: 24.13.3 '@types/pg': specifier: ^8.20.0 version: 8.20.0 @@ -295,17 +314,22 @@ importers: specifier: ^4.23.1 version: 4.23.1 typescript: - specifier: ^5.9.3 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.10 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) ws: specifier: ^8.21.1 version: 8.21.1 packages: + '@agent-command/eslint-typescript-compat@file:tools/eslint-typescript-compat': + resolution: {directory: tools/eslint-typescript-compat, type: directory} + peerDependencies: + eslint: ^10.7.0 + '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -342,7 +366,7 @@ packages: resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} engines: {node: '>=6.9.0'} peerDependencies: - '@babel/core': 7.29.7 + '@babel/core': ^7.0.0 '@babel/helper-string-parser@7.29.7': resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} @@ -414,24 +438,15 @@ packages: peerDependencies: react: '>=16.8.0' - '@emnapi/core@1.10.0': - resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} - '@emnapi/core@1.11.1': resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==} - '@emnapi/runtime@1.10.0': - resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} - '@emnapi/runtime@1.11.1': resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==} '@emnapi/runtime@1.11.2': resolution: {integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==} - '@emnapi/wasi-threads@1.2.1': - resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} - '@emnapi/wasi-threads@1.2.2': resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==} @@ -601,33 +616,43 @@ packages: resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/config-array@0.21.2': - resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/compat@2.1.0': + resolution: {integrity: sha512-LgaSCymEpw7tF53xvDw9SNsraPb1IBHxpdABIOM0hW8UAlP8znrjYtuxfR58FSJ3L9BhwD+FaPRFQpZq84Nh6g==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: ^8.40 || 9 || 10 + peerDependenciesMeta: + eslint: + optional: true - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/config-array@0.23.5': + resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/config-helpers@0.6.0': + resolution: {integrity: sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/eslintrc@3.3.6': - resolution: {integrity: sha512-l2Ul9PrHsPCKcEY/ac7VgFj9D80C7S68sOKc618SyHDPK36s1XcFebXY0iTzUVn4Yq+YbwvSnDmCz9yxjX+QrA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/core@1.2.1': + resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/js@9.39.5': - resolution: {integrity: sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@10.0.1': + resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: ^10.0.0 + peerDependenciesMeta: + eslint: + optional: true - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/object-schema@3.0.5': + resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/plugin-kit@0.7.2': + resolution: {integrity: sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} '@fastify/ajv-compiler@4.0.5': resolution: {integrity: sha512-KoWKW+MhvfTRWL4qrhUwAAZoaChluo0m0vbiJlGMt2GXvL4LVPQEjt8kSpHI3IBq5Rez8fg+XeH3cneztq+C7A==} @@ -944,10 +969,6 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@nolyfill/is-core-module@1.0.39': - resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==} - engines: {node: '>=12.4.0'} - '@opentelemetry/api@1.9.1': resolution: {integrity: sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==} engines: {node: '>=8.0.0'} @@ -1668,6 +1689,9 @@ packages: '@types/draco3d@1.4.10': resolution: {integrity: sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==} + '@types/esrecurse@4.3.1': + resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==} + '@types/estree-jsx@1.0.5': resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==} @@ -1692,8 +1716,8 @@ packages: '@types/node@18.19.130': resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==} - '@types/node@20.19.43': - resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} + '@types/node@24.13.3': + resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} '@types/offscreencanvas@2019.7.3': resolution: {integrity: sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==} @@ -1701,13 +1725,10 @@ packages: '@types/pg@8.20.0': resolution: {integrity: sha512-bEPFOaMAHTEP1EzpvHTbmwR8UsFyHSKsRisLIHVMXnpNefSbGA1bD6CVy+qKjGSqmZqNqBDV2azOBo8TgkcVow==} - '@types/prop-types@15.7.15': - resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==} - - '@types/react-dom@18.3.7': - resolution: {integrity: sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==} + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} peerDependencies: - '@types/react': ^18.0.0 + '@types/react': ^19.2.0 '@types/react-reconciler@0.26.7': resolution: {integrity: sha512-mBDYl8x+oyPX/VBb3E638N0B7xG+SPk/EAMcVPeexqus/5aTpTphQi0curhhshOqRrc9t6OPoJfEUkbymse/lQ==} @@ -1717,8 +1738,8 @@ packages: peerDependencies: '@types/react': '*' - '@types/react@18.3.31': - resolution: {integrity: sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==} + '@types/react@19.2.17': + resolution: {integrity: sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==} '@types/stats.js@0.17.4': resolution: {integrity: sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==} @@ -1800,119 +1821,129 @@ packages: resolution: {integrity: sha512-mrtuL8Nsn6gi2H4mo5KMTp823M+3Q19Ew/i+Zlikq20tIMm99C3Ez0dCmkWWnxut20esQvTg8aUSEhMcAOXhEw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@ungap/structured-clone@1.3.3': - resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} - - '@unrs/resolver-binding-android-arm-eabi@1.12.2': - resolution: {integrity: sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==} - cpu: [arm] - os: [android] - - '@unrs/resolver-binding-android-arm64@1.12.2': - resolution: {integrity: sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==} - cpu: [arm64] - os: [android] + '@typescript/typescript-aix-ppc64@7.0.2': + resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [aix] - '@unrs/resolver-binding-darwin-arm64@1.12.2': - resolution: {integrity: sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==} + '@typescript/typescript-darwin-arm64@7.0.2': + resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==} + engines: {node: '>=16.20.0'} cpu: [arm64] os: [darwin] - '@unrs/resolver-binding-darwin-x64@1.12.2': - resolution: {integrity: sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==} + '@typescript/typescript-darwin-x64@7.0.2': + resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==} + engines: {node: '>=16.20.0'} cpu: [x64] os: [darwin] - '@unrs/resolver-binding-freebsd-x64@1.12.2': - resolution: {integrity: sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==} - cpu: [x64] + '@typescript/typescript-freebsd-arm64@7.0.2': + resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] os: [freebsd] - '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': - resolution: {integrity: sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==} - cpu: [arm] - os: [linux] - - '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': - resolution: {integrity: sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==} - cpu: [arm] - os: [linux] + '@typescript/typescript-freebsd-x64@7.0.2': + resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [freebsd] - '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': - resolution: {integrity: sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==} + '@typescript/typescript-linux-arm64@7.0.2': + resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==} + engines: {node: '>=16.20.0'} cpu: [arm64] os: [linux] - '@unrs/resolver-binding-linux-arm64-musl@1.12.2': - resolution: {integrity: sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==} - cpu: [arm64] + '@typescript/typescript-linux-arm@7.0.2': + resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==} + engines: {node: '>=16.20.0'} + cpu: [arm] os: [linux] - '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': - resolution: {integrity: sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==} + '@typescript/typescript-linux-loong64@7.0.2': + resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==} + engines: {node: '>=16.20.0'} cpu: [loong64] os: [linux] - '@unrs/resolver-binding-linux-loong64-musl@1.12.2': - resolution: {integrity: sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==} - cpu: [loong64] + '@typescript/typescript-linux-mips64el@7.0.2': + resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==} + engines: {node: '>=16.20.0'} + cpu: [mips64el] os: [linux] - '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': - resolution: {integrity: sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==} + '@typescript/typescript-linux-ppc64@7.0.2': + resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==} + engines: {node: '>=16.20.0'} cpu: [ppc64] os: [linux] - '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': - resolution: {integrity: sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==} - cpu: [riscv64] - os: [linux] - - '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': - resolution: {integrity: sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==} + '@typescript/typescript-linux-riscv64@7.0.2': + resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==} + engines: {node: '>=16.20.0'} cpu: [riscv64] os: [linux] - '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': - resolution: {integrity: sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==} + '@typescript/typescript-linux-s390x@7.0.2': + resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==} + engines: {node: '>=16.20.0'} cpu: [s390x] os: [linux] - '@unrs/resolver-binding-linux-x64-gnu@1.12.2': - resolution: {integrity: sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==} + '@typescript/typescript-linux-x64@7.0.2': + resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==} + engines: {node: '>=16.20.0'} cpu: [x64] os: [linux] - '@unrs/resolver-binding-linux-x64-musl@1.12.2': - resolution: {integrity: sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==} + '@typescript/typescript-netbsd-arm64@7.0.2': + resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [netbsd] + + '@typescript/typescript-netbsd-x64@7.0.2': + resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==} + engines: {node: '>=16.20.0'} cpu: [x64] - os: [linux] + os: [netbsd] - '@unrs/resolver-binding-openharmony-arm64@1.12.2': - resolution: {integrity: sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==} + '@typescript/typescript-openbsd-arm64@7.0.2': + resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==} + engines: {node: '>=16.20.0'} cpu: [arm64] - os: [openharmony] + os: [openbsd] - '@unrs/resolver-binding-wasm32-wasi@1.12.2': - resolution: {integrity: sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] + '@typescript/typescript-openbsd-x64@7.0.2': + resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [openbsd] - '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': - resolution: {integrity: sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==} - cpu: [arm64] - os: [win32] + '@typescript/typescript-sunos-x64@7.0.2': + resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [sunos] - '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': - resolution: {integrity: sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==} - cpu: [ia32] + '@typescript/typescript-win32-arm64@7.0.2': + resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] os: [win32] - '@unrs/resolver-binding-win32-x64-msvc@1.12.2': - resolution: {integrity: sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==} + '@typescript/typescript-win32-x64@7.0.2': + resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==} + engines: {node: '>=16.20.0'} cpu: [x64] os: [win32] + '@ungap/structured-clone@1.3.3': + resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} + '@use-gesture/core@10.3.1': resolution: {integrity: sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==} @@ -2001,18 +2032,11 @@ packages: ajv@8.20.0: resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - ansi-to-html@0.7.2: resolution: {integrity: sha512-v6MqmEpNlxF+POuyhKkidusCHWWkaLcGRURzivcU3I9tv7k4JVhFcnukrM5Rlk2rUywdZuzYAZ+kbZqWCnfN3g==} engines: {node: '>=8.0.0'} hasBin: true - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - aria-hidden@1.2.6: resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} engines: {node: '>=10'} @@ -2159,10 +2183,6 @@ packages: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - camera-controls@2.10.1: resolution: {integrity: sha512-KnaKdcvkBJ1Irbrzl8XD6WtZltkRjp869Jx8c0ujs9K+9WD+1D7ryBsCiVqJYUqt6i/HR5FxT7RLASieUD+Q5w==} peerDependencies: @@ -2178,10 +2198,6 @@ packages: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - character-entities-html4@2.1.0: resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} @@ -2204,13 +2220,6 @@ packages: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - colorette@2.0.20: resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} @@ -2455,31 +2464,9 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - eslint-config-next@16.2.10: - resolution: {integrity: sha512-HSybLOY0QKf39i4FWUqPN0xWiNDi6A6UqJmZtgDkS3zMqjXTqULvj/sueXx3cdCG0mVG+qH6k5/qdegklH1d1w==} - peerDependencies: - eslint: '>=9.0.0' - typescript: '>=3.3.1' - peerDependenciesMeta: - typescript: - optional: true - eslint-import-resolver-node@0.3.10: resolution: {integrity: sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==} - eslint-import-resolver-typescript@3.10.1: - resolution: {integrity: sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - eslint: '*' - eslint-plugin-import: '*' - eslint-plugin-import-x: '*' - peerDependenciesMeta: - eslint-plugin-import: - optional: true - eslint-plugin-import-x: - optional: true - eslint-module-utils@2.14.0: resolution: {integrity: sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==} engines: {node: '>=4'} @@ -2517,11 +2504,11 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 - eslint-plugin-react-hooks@7.0.1: - resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==} + eslint-plugin-react-hooks@7.1.1: + resolution: {integrity: sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==} engines: {node: '>=18'} peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0 eslint-plugin-react@7.37.5: resolution: {integrity: sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==} @@ -2529,25 +2516,21 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint-scope@9.1.2: + resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint-visitor-keys@5.0.1: resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} - eslint@9.39.5: - resolution: {integrity: sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint@10.7.0: + resolution: {integrity: sha512-GVTD7s1vdIl6UYvAfriOPeY1Df8LIZjfofLvHwde+erDHGGuHyuM6xoxRxmHiebhYuD2p1vN4wWh0XzPARSGDQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} hasBin: true peerDependencies: jiti: '*' @@ -2555,9 +2538,9 @@ packages: jiti: optional: true - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@11.2.0: + resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} @@ -2759,9 +2742,6 @@ packages: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} - get-tsconfig@4.14.0: - resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==} - glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -2770,12 +2750,8 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - - globals@16.4.0: - resolution: {integrity: sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==} + globals@17.7.0: + resolution: {integrity: sha512-Czmyns5dUsq4seFBR/Kdydhmo8y9kC79hiSkPn0YcGtNnYWnrgt0vjrSjx9tspoDGWm2CMarffRuLjM4xUz8xg==} engines: {node: '>=18'} globalthis@1.0.4: @@ -2796,10 +2772,6 @@ packages: resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==} engines: {node: '>= 0.4'} - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} @@ -2874,10 +2846,6 @@ packages: immediate@3.0.6: resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==} - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -2926,9 +2894,6 @@ packages: resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==} engines: {node: '>= 0.4'} - is-bun-module@2.0.0: - resolution: {integrity: sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==} - is-callable@1.2.7: resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} engines: {node: '>= 0.4'} @@ -3068,10 +3033,6 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-yaml@4.3.0: - resolution: {integrity: sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==} - hasBin: true - jsesc@3.1.0: resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} engines: {node: '>=6'} @@ -3208,9 +3169,6 @@ packages: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -3225,10 +3183,10 @@ packages: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} - lucide-react@0.460.0: - resolution: {integrity: sha512-BVtq/DykVeIvRTJvRAgCsOwaGL8Un3Bxh8MbDxMhEWlZay3T4IpEKDEpwt5KZ0KJMHzgm6jrltxlT5eXOWXDHg==} + lucide-react@1.25.0: + resolution: {integrity: sha512-/mdJTRbiwcLOQ1NZZK1amZF9rIZyvO18D6r9TngE6TG1NmqHgFuT4eE7Xrkm9UsXMbBJD1NlfwHVltCDWHrOTw==} peerDependencies: - react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc + react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 maath@0.10.8: resolution: {integrity: sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==} @@ -3428,11 +3386,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - napi-postinstall@0.3.4: - resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} - engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} - hasBin: true - natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -3589,10 +3542,6 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - parse-entities@4.0.2: resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==} @@ -3806,10 +3755,10 @@ packages: peerDependencies: react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 - react-dom@18.3.1: - resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==} + react-dom@19.2.7: + resolution: {integrity: sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==} peerDependencies: - react: ^18.3.1 + react: ^19.2.7 react-hotkeys-hook@5.3.3: resolution: {integrity: sha512-aswgyWUnE25hmhzHTfKDmKzsaSE5DJ4LKaU/o6rQSXkDd/1Bh9TfAFQbHkf6fLy11HvlYkp+cDDarGdhmCDhoQ==} @@ -3871,8 +3820,8 @@ packages: react-dom: optional: true - react@18.3.1: - resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} + react@19.2.7: + resolution: {integrity: sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==} engines: {node: '>=0.10.0'} readable-stream@3.6.2: @@ -3914,13 +3863,6 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - - resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - resolve@2.0.0-next.7: resolution: {integrity: sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==} engines: {node: '>= 0.4'} @@ -3978,8 +3920,8 @@ packages: scheduler@0.21.0: resolution: {integrity: sha512-1r87x5fz9MXqswA2ERLo0EbOAU74DpIUO090gIasYTqlVoJeMcl+Z1Rg7WHz+qtPujhS/hGIt9kxZOYBV3faRQ==} - scheduler@0.23.2: - resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==} + scheduler@0.27.0: + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} secure-json-parse@2.7.0: resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} @@ -4070,9 +4012,6 @@ packages: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} - stable-hash@0.0.5: - resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==} - stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -4155,10 +4094,6 @@ packages: babel-plugin-macros: optional: true - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -4168,8 +4103,8 @@ packages: peerDependencies: react: '>=17.0' - tailwind-merge@2.6.1: - resolution: {integrity: sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==} + tailwind-merge@3.6.0: + resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==} tailwindcss@4.3.3: resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==} @@ -4296,18 +4231,16 @@ packages: resolution: {integrity: sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==} engines: {node: '>= 0.4'} - typescript-eslint@8.64.0: - resolution: {integrity: sha512-0qg+pDNMnqYzqH9AnNK+39tejHvsShUOUUoRUgtnTGE7QuMZhiFDnozq8nHJVq+Wae6NMLKNWLg5WmkcC/ndyQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - typescript@5.9.3: resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} engines: {node: '>=14.17'} hasBin: true + typescript@7.0.2: + resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==} + engines: {node: '>=16.20.0'} + hasBin: true + ulid@2.4.0: resolution: {integrity: sha512-fIRiVTJNcSRmXKPZtGzFQv9WRrZ3M9eoptl/teFJvjOzmpU+/K/JH6HZ8deBfb5vMEpicJcLn7JmvdknlMq7Zg==} hasBin: true @@ -4319,8 +4252,8 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@6.21.0: - resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + undici-types@7.18.2: + resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} unified@11.0.5: resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} @@ -4344,9 +4277,6 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} - unrs-resolver@1.12.2: - resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==} - update-browserslist-db@1.2.3: resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} hasBin: true @@ -4624,6 +4554,15 @@ packages: snapshots: + '@agent-command/eslint-typescript-compat@file:tools/eslint-typescript-compat(eslint@10.7.0(jiti@2.7.0))': + dependencies: + '@typescript-eslint/eslint-plugin': 8.64.0(@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3))(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/parser': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@7.0.2) + eslint: 10.7.0(jiti@2.7.0) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + '@alloc/quick-lru@5.2.0': {} '@babel/code-frame@7.29.7': @@ -4747,36 +4686,30 @@ snapshots: '@dimforge/rapier3d-compat@0.12.0': {} - '@dnd-kit/accessibility@3.1.1(react@18.3.1)': - dependencies: - react: 18.3.1 - tslib: 2.8.1 - - '@dnd-kit/core@6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@dnd-kit/accessibility@3.1.1(react@19.2.7)': dependencies: - '@dnd-kit/accessibility': 3.1.1(react@18.3.1) - '@dnd-kit/utilities': 3.2.2(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.2.7 tslib: 2.8.1 - '@dnd-kit/sortable@10.0.0(@dnd-kit/core@6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + '@dnd-kit/core@6.3.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@dnd-kit/core': 6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@dnd-kit/utilities': 3.2.2(react@18.3.1) - react: 18.3.1 + '@dnd-kit/accessibility': 3.1.1(react@19.2.7) + '@dnd-kit/utilities': 3.2.2(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) tslib: 2.8.1 - '@dnd-kit/utilities@3.2.2(react@18.3.1)': + '@dnd-kit/sortable@10.0.0(@dnd-kit/core@6.3.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react@19.2.7)': dependencies: - react: 18.3.1 + '@dnd-kit/core': 6.3.1(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@dnd-kit/utilities': 3.2.2(react@19.2.7) + react: 19.2.7 tslib: 2.8.1 - '@emnapi/core@1.10.0': + '@dnd-kit/utilities@3.2.2(react@19.2.7)': dependencies: - '@emnapi/wasi-threads': 1.2.1 + react: 19.2.7 tslib: 2.8.1 - optional: true '@emnapi/core@1.11.1': dependencies: @@ -4784,11 +4717,6 @@ snapshots: tslib: 2.8.1 optional: true - '@emnapi/runtime@1.10.0': - dependencies: - tslib: 2.8.1 - optional: true - '@emnapi/runtime@1.11.1': dependencies: tslib: 2.8.1 @@ -4799,11 +4727,6 @@ snapshots: tslib: 2.8.1 optional: true - '@emnapi/wasi-threads@1.2.1': - dependencies: - tslib: 2.8.1 - optional: true - '@emnapi/wasi-threads@1.2.2': dependencies: tslib: 2.8.1 @@ -4887,50 +4810,44 @@ snapshots: '@esbuild/win32-x64@0.28.1': optional: true - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.5(jiti@2.7.0))': + '@eslint-community/eslint-utils@4.9.1(eslint@10.7.0(jiti@2.7.0))': dependencies: - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/config-array@0.21.2': + '@eslint/compat@2.1.0(eslint@10.7.0(jiti@2.7.0))': + dependencies: + '@eslint/core': 1.2.1 + optionalDependencies: + eslint: 10.7.0(jiti@2.7.0) + + '@eslint/config-array@0.23.5': dependencies: - '@eslint/object-schema': 2.1.7 + '@eslint/object-schema': 3.0.5 debug: 4.4.3 - minimatch: 3.1.5 + minimatch: 10.2.5 transitivePeerDependencies: - supports-color - '@eslint/config-helpers@0.4.2': + '@eslint/config-helpers@0.6.0': dependencies: - '@eslint/core': 0.17.0 + '@eslint/core': 1.2.1 - '@eslint/core@0.17.0': + '@eslint/core@1.2.1': dependencies: '@types/json-schema': 7.0.15 - '@eslint/eslintrc@3.3.6': - dependencies: - ajv: 6.15.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.3.0 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/js@9.39.5': {} + '@eslint/js@10.0.1(eslint@10.7.0(jiti@2.7.0))': + optionalDependencies: + eslint: 10.7.0(jiti@2.7.0) - '@eslint/object-schema@2.1.7': {} + '@eslint/object-schema@3.0.5': {} - '@eslint/plugin-kit@0.4.1': + '@eslint/plugin-kit@0.7.2': dependencies: - '@eslint/core': 0.17.0 + '@eslint/core': 1.2.1 levn: 0.4.1 '@fastify/ajv-compiler@4.0.5': @@ -4985,11 +4902,11 @@ snapshots: '@floating-ui/core': 1.8.0 '@floating-ui/utils': 0.2.12 - '@floating-ui/react-dom@2.1.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@floating-ui/react-dom@2.1.9(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@floating-ui/dom': 1.8.0 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) '@floating-ui/utils@0.2.12': {} @@ -5160,13 +5077,6 @@ snapshots: promise-worker-transferable: 1.0.4 three: 0.185.1 - '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@tybys/wasm-util': 0.10.3 - optional: true - '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': dependencies: '@emnapi/core': 1.11.1 @@ -5216,8 +5126,6 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@nolyfill/is-core-module@1.0.39': {} - '@opentelemetry/api@1.9.1': {} '@oxc-project/types@0.139.0': {} @@ -5234,444 +5142,444 @@ snapshots: '@radix-ui/primitive@1.1.6': {} - '@radix-ui/react-arrow@1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-arrow@1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-collection@1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-collection@1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-slot': 1.3.0(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-slot': 1.3.0(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-compose-refs@1.1.3(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-compose-refs@1.1.3(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-context@1.2.0(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-context@1.2.0(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-dialog@1.1.20(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-dialog@1.1.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-focus-guards': 1.1.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.1.13(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-portal': 1.1.14(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-presence': 1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-slot': 1.3.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-focus-guards': 1.1.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-focus-scope': 1.1.13(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-portal': 1.1.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-presence': 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-slot': 1.3.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) aria-hidden: 1.2.6 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-remove-scroll: 2.7.2(@types/react@18.3.31)(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) + react-remove-scroll: 2.7.2(@types/react@19.2.17)(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-direction@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-direction@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-dismissable-layer@1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-dismissable-layer@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-effect-event': 0.0.3(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-effect-event': 0.0.3(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-dropdown-menu@2.1.21(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-dropdown-menu@2.1.21(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-menu': 2.1.21(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-menu': 2.1.21(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-focus-guards@1.1.4(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-focus-guards@1.1.4(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-focus-scope@1.1.13(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-focus-scope@1.1.13(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-id@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-id@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-menu@2.1.21(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-menu@2.1.21(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-collection': 1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-direction': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-focus-guards': 1.1.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.1.13(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-popper': 1.3.4(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-portal': 1.1.14(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-presence': 1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-roving-focus': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-slot': 1.3.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) + '@radix-ui/react-collection': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-direction': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-focus-guards': 1.1.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-focus-scope': 1.1.13(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-popper': 1.3.4(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-portal': 1.1.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-presence': 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-roving-focus': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-slot': 1.3.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) aria-hidden: 1.2.6 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-remove-scroll: 2.7.2(@types/react@18.3.31)(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) + react-remove-scroll: 2.7.2(@types/react@19.2.17)(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) - - '@radix-ui/react-popper@1.3.4(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@floating-ui/react-dom': 2.1.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-arrow': 1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-rect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-size': 1.1.2(@types/react@18.3.31)(react@18.3.1) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + + '@radix-ui/react-popper@1.3.4(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': + dependencies: + '@floating-ui/react-dom': 2.1.9(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-arrow': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-rect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-size': 1.1.2(@types/react@19.2.17)(react@19.2.7) '@radix-ui/rect': 1.1.2 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-portal@1.1.14(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-portal@1.1.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-presence@1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-presence@1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-primitive@2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-primitive@2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-slot': 1.3.0(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-slot': 1.3.0(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-roving-focus@1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-roving-focus@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-collection': 1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-direction': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-is-hydrated': 0.1.1(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-collection': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-direction': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-is-hydrated': 0.1.1(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-select@2.3.4(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-select@2.3.4(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/number': 1.1.2 '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-collection': 1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-direction': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-focus-guards': 1.1.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-focus-scope': 1.1.13(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-popper': 1.3.4(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-portal': 1.1.14(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-presence': 1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-slot': 1.3.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-previous': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.2.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-collection': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-direction': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-focus-guards': 1.1.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-focus-scope': 1.1.13(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-popper': 1.3.4(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-portal': 1.1.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-presence': 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-slot': 1.3.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-previous': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-visually-hidden': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) aria-hidden: 1.2.6 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-remove-scroll: 2.7.2(@types/react@18.3.31)(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) + react-remove-scroll: 2.7.2(@types/react@19.2.17)(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-slot@1.3.0(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-slot@1.3.0(@types/react@19.2.17)(react@19.2.7)': dependencies: - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-tabs@1.1.18(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-tabs@1.1.18(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-direction': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-presence': 1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-roving-focus': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-direction': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-presence': 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-roving-focus': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-toast@1.2.20(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-toast@1.2.20(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-collection': 1.1.12(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-portal': 1.1.14(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-presence': 1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.2.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-collection': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-portal': 1.1.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-presence': 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-use-callback-ref': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-visually-hidden': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-tooltip@1.2.13(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-tooltip@1.2.13(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-compose-refs': 1.1.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-context': 1.2.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-id': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-popper': 1.3.4(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-portal': 1.1.14(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-presence': 1.1.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@radix-ui/react-slot': 1.3.0(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-visually-hidden': 1.2.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-context': 1.2.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-dismissable-layer': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-id': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-popper': 1.3.4(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-portal': 1.1.14(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-presence': 1.1.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + '@radix-ui/react-slot': 1.3.0(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-controllable-state': 1.2.4(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-visually-hidden': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) - '@radix-ui/react-use-callback-ref@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-callback-ref@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-controllable-state@1.2.4(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-controllable-state@1.2.4(@types/react@19.2.17)(react@19.2.7)': dependencies: '@radix-ui/primitive': 1.1.6 - '@radix-ui/react-use-effect-event': 0.0.3(@types/react@18.3.31)(react@18.3.1) - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 + '@radix-ui/react-use-effect-event': 0.0.3(@types/react@19.2.17)(react@19.2.7) + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-effect-event@0.0.3(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-effect-event@0.0.3(@types/react@19.2.17)(react@19.2.7)': dependencies: - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-is-hydrated@0.1.1(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-is-hydrated@0.1.1(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-layout-effect@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-layout-effect@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-previous@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-previous@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-rect@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-rect@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: '@radix-ui/rect': 1.1.2 - react: 18.3.1 + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-use-size@1.1.2(@types/react@18.3.31)(react@18.3.1)': + '@radix-ui/react-use-size@1.1.2(@types/react@19.2.17)(react@19.2.7)': dependencies: - '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 + '@radix-ui/react-use-layout-effect': 1.1.2(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@radix-ui/react-visually-hidden@1.2.8(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@radix-ui/react-visually-hidden@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)': dependencies: - '@radix-ui/react-primitive': 2.1.7(@types/react-dom@18.3.7(@types/react@18.3.31))(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + '@radix-ui/react-primitive': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - '@types/react-dom': 18.3.7(@types/react@18.3.31) + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) '@radix-ui/rect@1.1.2': {} - '@react-spring/animated@10.1.2(react@18.3.1)': + '@react-spring/animated@10.1.2(react@19.2.7)': dependencies: - '@react-spring/shared': 10.1.2(react@18.3.1) + '@react-spring/shared': 10.1.2(react@19.2.7) '@react-spring/types': 10.1.2 - react: 18.3.1 + react: 19.2.7 - '@react-spring/animated@9.7.5(react@18.3.1)': + '@react-spring/animated@9.7.5(react@19.2.7)': dependencies: - '@react-spring/shared': 9.7.5(react@18.3.1) + '@react-spring/shared': 9.7.5(react@19.2.7) '@react-spring/types': 9.7.5 - react: 18.3.1 + react: 19.2.7 - '@react-spring/core@10.1.2(react@18.3.1)': + '@react-spring/core@10.1.2(react@19.2.7)': dependencies: - '@react-spring/animated': 10.1.2(react@18.3.1) - '@react-spring/shared': 10.1.2(react@18.3.1) + '@react-spring/animated': 10.1.2(react@19.2.7) + '@react-spring/shared': 10.1.2(react@19.2.7) '@react-spring/types': 10.1.2 - react: 18.3.1 + react: 19.2.7 - '@react-spring/core@9.7.5(react@18.3.1)': + '@react-spring/core@9.7.5(react@19.2.7)': dependencies: - '@react-spring/animated': 9.7.5(react@18.3.1) - '@react-spring/shared': 9.7.5(react@18.3.1) + '@react-spring/animated': 9.7.5(react@19.2.7) + '@react-spring/shared': 9.7.5(react@19.2.7) '@react-spring/types': 9.7.5 - react: 18.3.1 + react: 19.2.7 '@react-spring/rafz@10.1.2': {} '@react-spring/rafz@9.7.5': {} - '@react-spring/shared@10.1.2(react@18.3.1)': + '@react-spring/shared@10.1.2(react@19.2.7)': dependencies: '@react-spring/rafz': 10.1.2 '@react-spring/types': 10.1.2 - react: 18.3.1 + react: 19.2.7 - '@react-spring/shared@9.7.5(react@18.3.1)': + '@react-spring/shared@9.7.5(react@19.2.7)': dependencies: '@react-spring/rafz': 9.7.5 '@react-spring/types': 9.7.5 - react: 18.3.1 + react: 19.2.7 - '@react-spring/three@10.1.2(@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1))(react@18.3.1)(three@0.185.1)': + '@react-spring/three@10.1.2(@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1))(react@19.2.7)(three@0.185.1)': dependencies: - '@react-spring/animated': 10.1.2(react@18.3.1) - '@react-spring/core': 10.1.2(react@18.3.1) - '@react-spring/shared': 10.1.2(react@18.3.1) + '@react-spring/animated': 10.1.2(react@19.2.7) + '@react-spring/core': 10.1.2(react@19.2.7) + '@react-spring/shared': 10.1.2(react@19.2.7) '@react-spring/types': 10.1.2 - '@react-three/fiber': 8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1) - react: 18.3.1 + '@react-three/fiber': 8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1) + react: 19.2.7 three: 0.185.1 - '@react-spring/three@9.7.5(@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1))(react@18.3.1)(three@0.185.1)': + '@react-spring/three@9.7.5(@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1))(react@19.2.7)(three@0.185.1)': dependencies: - '@react-spring/animated': 9.7.5(react@18.3.1) - '@react-spring/core': 9.7.5(react@18.3.1) - '@react-spring/shared': 9.7.5(react@18.3.1) + '@react-spring/animated': 9.7.5(react@19.2.7) + '@react-spring/core': 9.7.5(react@19.2.7) + '@react-spring/shared': 9.7.5(react@19.2.7) '@react-spring/types': 9.7.5 - '@react-three/fiber': 8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1) - react: 18.3.1 + '@react-three/fiber': 8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1) + react: 19.2.7 three: 0.185.1 '@react-spring/types@10.1.2': {} '@react-spring/types@9.7.5': {} - '@react-three/drei@9.122.0(@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1))(@types/react@18.3.31)(@types/three@0.185.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1)(use-sync-external-store@1.6.0(react@18.3.1))': + '@react-three/drei@9.122.0(@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1))(@types/react@19.2.17)(@types/three@0.185.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1)(use-sync-external-store@1.6.0(react@19.2.7))': dependencies: '@babel/runtime': 7.29.7 '@mediapipe/tasks-vision': 0.10.17 '@monogrid/gainmap-js': 3.4.0(three@0.185.1) - '@react-spring/three': 9.7.5(@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1))(react@18.3.1)(three@0.185.1) - '@react-three/fiber': 8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1) - '@use-gesture/react': 10.3.1(react@18.3.1) + '@react-spring/three': 9.7.5(@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1))(react@19.2.7)(three@0.185.1) + '@react-three/fiber': 8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1) + '@use-gesture/react': 10.3.1(react@19.2.7) camera-controls: 2.10.1(three@0.185.1) cross-env: 7.0.3 detect-gpu: 5.0.70 @@ -5679,43 +5587,43 @@ snapshots: hls.js: 1.6.16 maath: 0.10.8(@types/three@0.185.1)(three@0.185.1) meshline: 3.3.1(three@0.185.1) - react: 18.3.1 - react-composer: 5.0.3(react@18.3.1) + react: 19.2.7 + react-composer: 5.0.3(react@19.2.7) stats-gl: 2.4.2(@types/three@0.185.1)(three@0.185.1) stats.js: 0.17.0 - suspend-react: 0.1.3(react@18.3.1) + suspend-react: 0.1.3(react@19.2.7) three: 0.185.1 three-mesh-bvh: 0.7.8(three@0.185.1) three-stdlib: 2.36.1(three@0.185.1) troika-three-text: 0.52.4(three@0.185.1) - tunnel-rat: 0.1.2(@types/react@18.3.31)(react@18.3.1) + tunnel-rat: 0.1.2(@types/react@19.2.17)(react@19.2.7) utility-types: 3.11.0 - zustand: 5.0.14(@types/react@18.3.31)(react@18.3.1)(use-sync-external-store@1.6.0(react@18.3.1)) + zustand: 5.0.14(@types/react@19.2.17)(react@19.2.7)(use-sync-external-store@1.6.0(react@19.2.7)) optionalDependencies: - react-dom: 18.3.1(react@18.3.1) + react-dom: 19.2.7(react@19.2.7) transitivePeerDependencies: - '@types/react' - '@types/three' - immer - use-sync-external-store - '@react-three/fiber@8.18.0(@types/react@18.3.31)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.185.1)': + '@react-three/fiber@8.18.0(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(three@0.185.1)': dependencies: '@babel/runtime': 7.29.7 '@types/react-reconciler': 0.26.7 '@types/webxr': 0.5.24 base64-js: 1.5.1 buffer: 6.0.3 - its-fine: 1.2.5(@types/react@18.3.31)(react@18.3.1) - react: 18.3.1 - react-reconciler: 0.27.0(react@18.3.1) - react-use-measure: 2.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + its-fine: 1.2.5(@types/react@19.2.17)(react@19.2.7) + react: 19.2.7 + react-reconciler: 0.27.0(react@19.2.7) + react-use-measure: 2.1.7(react-dom@19.2.7(react@19.2.7))(react@19.2.7) scheduler: 0.21.0 - suspend-react: 0.1.3(react@18.3.1) + suspend-react: 0.1.3(react@19.2.7) three: 0.185.1 - zustand: 3.7.2(react@18.3.1) + zustand: 3.7.2(react@19.2.7) optionalDependencies: - react-dom: 18.3.1(react@18.3.1) + react-dom: 19.2.7(react@19.2.7) transitivePeerDependencies: - '@types/react' @@ -5854,10 +5762,10 @@ snapshots: '@tanstack/query-core@5.101.2': {} - '@tanstack/react-query@5.101.2(react@18.3.1)': + '@tanstack/react-query@5.101.2(react@19.2.7)': dependencies: '@tanstack/query-core': 5.101.2 - react: 18.3.1 + react: 19.2.7 '@turbo/darwin-64@2.10.5': optional: true @@ -5901,6 +5809,8 @@ snapshots: '@types/draco3d@1.4.10': {} + '@types/esrecurse@4.3.1': {} + '@types/estree-jsx@1.0.5': dependencies: '@types/estree': 1.0.9 @@ -5925,35 +5835,32 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@20.19.43': + '@types/node@24.13.3': dependencies: - undici-types: 6.21.0 + undici-types: 7.18.2 '@types/offscreencanvas@2019.7.3': {} '@types/pg@8.20.0': dependencies: - '@types/node': 20.19.43 + '@types/node': 24.13.3 pg-protocol: 1.15.0 pg-types: 2.2.0 - '@types/prop-types@15.7.15': {} - - '@types/react-dom@18.3.7(@types/react@18.3.31)': + '@types/react-dom@19.2.3(@types/react@19.2.17)': dependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 '@types/react-reconciler@0.26.7': dependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@types/react-reconciler@0.28.9(@types/react@18.3.31)': + '@types/react-reconciler@0.28.9(@types/react@19.2.17)': dependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - '@types/react@18.3.31': + '@types/react@19.2.17': dependencies: - '@types/prop-types': 15.7.15 csstype: 3.2.3 '@types/stats.js@0.17.4': {} @@ -5973,23 +5880,23 @@ snapshots: '@types/web-push@3.6.4': dependencies: - '@types/node': 20.19.43 + '@types/node': 24.13.3 '@types/webxr@0.5.24': {} '@types/ws@8.18.1': dependencies: - '@types/node': 20.19.43 + '@types/node': 24.13.3 - '@typescript-eslint/eslint-plugin@8.64.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/eslint-plugin@8.64.0(@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3))(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/parser': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@7.0.2) '@typescript-eslint/scope-manager': 8.64.0 - '@typescript-eslint/type-utils': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/utils': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/type-utils': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/utils': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.64.0 - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) ignore: 7.0.6 natural-compare: 1.4.0 ts-api-utils: 2.5.0(typescript@5.9.3) @@ -5997,15 +5904,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@7.0.2)': dependencies: '@typescript-eslint/scope-manager': 8.64.0 '@typescript-eslint/types': 8.64.0 '@typescript-eslint/typescript-estree': 8.64.0(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.64.0 debug: 4.4.3 - eslint: 9.39.5(jiti@2.7.0) - typescript: 5.9.3 + eslint: 10.7.0(jiti@2.7.0) + typescript: 7.0.2 transitivePeerDependencies: - supports-color @@ -6027,13 +5934,13 @@ snapshots: dependencies: typescript: 5.9.3 - '@typescript-eslint/type-utils@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/type-utils@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3)': dependencies: '@typescript-eslint/types': 8.64.0 '@typescript-eslint/typescript-estree': 8.64.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/utils': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3) debug: 4.4.3 - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) ts-api-utils: 2.5.0(typescript@5.9.3) typescript: 5.9.3 transitivePeerDependencies: @@ -6056,13 +5963,13 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/utils@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3)': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.5(jiti@2.7.0)) + '@eslint-community/eslint-utils': 4.9.1(eslint@10.7.0(jiti@2.7.0)) '@typescript-eslint/scope-manager': 8.64.0 '@typescript-eslint/types': 8.64.0 '@typescript-eslint/typescript-estree': 8.64.0(typescript@5.9.3) - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color @@ -6072,84 +5979,74 @@ snapshots: '@typescript-eslint/types': 8.64.0 eslint-visitor-keys: 5.0.1 - '@ungap/structured-clone@1.3.3': {} - - '@unrs/resolver-binding-android-arm-eabi@1.12.2': - optional: true - - '@unrs/resolver-binding-android-arm64@1.12.2': + '@typescript/typescript-aix-ppc64@7.0.2': optional: true - '@unrs/resolver-binding-darwin-arm64@1.12.2': + '@typescript/typescript-darwin-arm64@7.0.2': optional: true - '@unrs/resolver-binding-darwin-x64@1.12.2': + '@typescript/typescript-darwin-x64@7.0.2': optional: true - '@unrs/resolver-binding-freebsd-x64@1.12.2': + '@typescript/typescript-freebsd-arm64@7.0.2': optional: true - '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': + '@typescript/typescript-freebsd-x64@7.0.2': optional: true - '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': + '@typescript/typescript-linux-arm64@7.0.2': optional: true - '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': + '@typescript/typescript-linux-arm@7.0.2': optional: true - '@unrs/resolver-binding-linux-arm64-musl@1.12.2': + '@typescript/typescript-linux-loong64@7.0.2': optional: true - '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': + '@typescript/typescript-linux-mips64el@7.0.2': optional: true - '@unrs/resolver-binding-linux-loong64-musl@1.12.2': + '@typescript/typescript-linux-ppc64@7.0.2': optional: true - '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': + '@typescript/typescript-linux-riscv64@7.0.2': optional: true - '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': + '@typescript/typescript-linux-s390x@7.0.2': optional: true - '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': + '@typescript/typescript-linux-x64@7.0.2': optional: true - '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': + '@typescript/typescript-netbsd-arm64@7.0.2': optional: true - '@unrs/resolver-binding-linux-x64-gnu@1.12.2': + '@typescript/typescript-netbsd-x64@7.0.2': optional: true - '@unrs/resolver-binding-linux-x64-musl@1.12.2': + '@typescript/typescript-openbsd-arm64@7.0.2': optional: true - '@unrs/resolver-binding-openharmony-arm64@1.12.2': + '@typescript/typescript-openbsd-x64@7.0.2': optional: true - '@unrs/resolver-binding-wasm32-wasi@1.12.2': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) + '@typescript/typescript-sunos-x64@7.0.2': optional: true - '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': + '@typescript/typescript-win32-arm64@7.0.2': optional: true - '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': + '@typescript/typescript-win32-x64@7.0.2': optional: true - '@unrs/resolver-binding-win32-x64-msvc@1.12.2': - optional: true + '@ungap/structured-clone@1.3.3': {} '@use-gesture/core@10.3.1': {} - '@use-gesture/react@10.3.1(react@18.3.1)': + '@use-gesture/react@10.3.1(react@19.2.7)': dependencies: '@use-gesture/core': 10.3.1 - react: 18.3.1 + react: 19.2.7 '@vitest/expect@4.1.10': dependencies: @@ -6160,13 +6057,13 @@ snapshots: chai: 6.2.2 tinyrainbow: 3.1.0 - '@vitest/mocker@4.1.10(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1))': + '@vitest/mocker@4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1))': dependencies: '@vitest/spy': 4.1.10 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1) + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1) '@vitest/pretty-format@4.1.10': dependencies: @@ -6237,16 +6134,10 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - ansi-to-html@0.7.2: dependencies: entities: 2.2.0 - argparse@2.0.1: {} - aria-hidden@1.2.6: dependencies: tslib: 2.8.1 @@ -6429,8 +6320,6 @@ snapshots: call-bind-apply-helpers: 1.0.2 get-intrinsic: 1.3.0 - callsites@3.1.0: {} - camera-controls@2.10.1(three@0.185.1): dependencies: three: 0.185.1 @@ -6441,11 +6330,6 @@ snapshots: chai@6.2.2: {} - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - character-entities-html4@2.1.0: {} character-entities-legacy@3.0.0: {} @@ -6462,12 +6346,6 @@ snapshots: clsx@2.1.1: {} - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - colorette@2.0.20: {} comma-separated-tokens@2.0.3: {} @@ -6777,26 +6655,6 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-config-next@16.2.10(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3): - dependencies: - '@next/eslint-plugin-next': 16.2.10 - eslint: 9.39.5(jiti@2.7.0) - eslint-import-resolver-node: 0.3.10 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5(jiti@2.7.0)) - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(jiti@2.7.0)) - eslint-plugin-jsx-a11y: 6.10.2(eslint@9.39.5(jiti@2.7.0)) - eslint-plugin-react: 7.37.5(eslint@9.39.5(jiti@2.7.0)) - eslint-plugin-react-hooks: 7.0.1(eslint@9.39.5(jiti@2.7.0)) - globals: 16.4.0 - typescript-eslint: 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - optionalDependencies: - typescript: 5.9.3 - transitivePeerDependencies: - - '@typescript-eslint/parser' - - eslint-import-resolver-webpack - - eslint-plugin-import-x - - supports-color - eslint-import-resolver-node@0.3.10: dependencies: debug: 3.2.7 @@ -6805,33 +6663,17 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5(jiti@2.7.0)): - dependencies: - '@nolyfill/is-core-module': 1.0.39 - debug: 4.4.3 - eslint: 9.39.5(jiti@2.7.0) - get-tsconfig: 4.14.0 - is-bun-module: 2.0.0 - stable-hash: 0.0.5 - tinyglobby: 0.2.17 - unrs-resolver: 1.12.2 - optionalDependencies: - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(jiti@2.7.0)) - transitivePeerDependencies: - - supports-color - - eslint-module-utils@2.14.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(jiti@2.7.0)): + eslint-module-utils@2.14.0(@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-node@0.3.10)(eslint@10.7.0(jiti@2.7.0)): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - eslint: 9.39.5(jiti@2.7.0) + '@typescript-eslint/parser': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@7.0.2) + eslint: 10.7.0(jiti@2.7.0) eslint-import-resolver-node: 0.3.10 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.5(jiti@2.7.0)) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(jiti@2.7.0)): + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3))(eslint@10.7.0(jiti@2.7.0)): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.9 @@ -6840,9 +6682,9 @@ snapshots: array.prototype.flatmap: 1.3.3 debug: 3.2.7 doctrine: 2.1.0 - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) eslint-import-resolver-node: 0.3.10 - eslint-module-utils: 2.14.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-node@0.3.10)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.5(jiti@2.7.0)) + eslint-module-utils: 2.14.0(@typescript-eslint/parser@8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@5.9.3))(eslint-import-resolver-node@0.3.10)(eslint@10.7.0(jiti@2.7.0)) hasown: 2.0.4 is-core-module: 2.16.2 is-glob: 4.0.3 @@ -6854,13 +6696,13 @@ snapshots: string.prototype.trimend: 1.0.10 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/parser': 8.64.0(eslint@10.7.0(jiti@2.7.0))(typescript@7.0.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-jsx-a11y@6.10.2(eslint@9.39.5(jiti@2.7.0)): + eslint-plugin-jsx-a11y@6.10.2(eslint@10.7.0(jiti@2.7.0)): dependencies: aria-query: 5.3.2 array-includes: 3.1.9 @@ -6870,7 +6712,7 @@ snapshots: axobject-query: 4.1.0 damerau-levenshtein: 1.0.8 emoji-regex: 9.2.2 - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) hasown: 2.0.4 jsx-ast-utils: 3.3.5 language-tags: 1.0.9 @@ -6879,18 +6721,18 @@ snapshots: safe-regex-test: 1.1.0 string.prototype.includes: 2.0.1 - eslint-plugin-react-hooks@7.0.1(eslint@9.39.5(jiti@2.7.0)): + eslint-plugin-react-hooks@7.1.1(eslint@10.7.0(jiti@2.7.0)): dependencies: '@babel/core': 7.29.7 '@babel/parser': 7.29.7 - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) hermes-parser: 0.25.1 zod: 3.25.76 zod-validation-error: 4.0.2(zod@3.25.76) transitivePeerDependencies: - supports-color - eslint-plugin-react@7.37.5(eslint@9.39.5(jiti@2.7.0)): + eslint-plugin-react@7.37.5(eslint@10.7.0(jiti@2.7.0)): dependencies: array-includes: 3.1.9 array.prototype.findlast: 1.2.5 @@ -6898,7 +6740,7 @@ snapshots: array.prototype.tosorted: 1.1.4 doctrine: 2.1.0 es-iterator-helpers: 1.4.0 - eslint: 9.39.5(jiti@2.7.0) + eslint: 10.7.0(jiti@2.7.0) estraverse: 5.3.0 hasown: 2.0.4 jsx-ast-utils: 3.3.5 @@ -6912,39 +6754,36 @@ snapshots: string.prototype.matchall: 4.0.12 string.prototype.repeat: 1.0.0 - eslint-scope@8.4.0: + eslint-scope@9.1.2: dependencies: + '@types/esrecurse': 4.3.1 + '@types/estree': 1.0.9 esrecurse: 4.3.0 estraverse: 5.3.0 eslint-visitor-keys@3.4.3: {} - eslint-visitor-keys@4.2.1: {} - eslint-visitor-keys@5.0.1: {} - eslint@9.39.5(jiti@2.7.0): + eslint@10.7.0(jiti@2.7.0): dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.5(jiti@2.7.0)) + '@eslint-community/eslint-utils': 4.9.1(eslint@10.7.0(jiti@2.7.0)) '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.6 - '@eslint/js': 9.39.5 - '@eslint/plugin-kit': 0.4.1 + '@eslint/config-array': 0.23.5 + '@eslint/config-helpers': 0.6.0 + '@eslint/core': 1.2.1 + '@eslint/plugin-kit': 0.7.2 '@humanfs/node': 0.16.8 '@humanwhocodes/module-importer': 1.0.1 '@humanwhocodes/retry': 0.4.3 '@types/estree': 1.0.9 ajv: 6.15.0 - chalk: 4.1.2 cross-spawn: 7.0.6 debug: 4.4.3 escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 + eslint-scope: 9.1.2 + eslint-visitor-keys: 5.0.1 + espree: 11.2.0 esquery: 1.7.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 @@ -6955,8 +6794,7 @@ snapshots: imurmurhash: 0.1.4 is-glob: 4.0.3 json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.5 + minimatch: 10.2.5 natural-compare: 1.4.0 optionator: 0.9.4 optionalDependencies: @@ -6964,11 +6802,11 @@ snapshots: transitivePeerDependencies: - supports-color - espree@10.4.0: + espree@11.2.0: dependencies: acorn: 8.17.0 acorn-jsx: 5.3.2(acorn@8.17.0) - eslint-visitor-keys: 4.2.1 + eslint-visitor-keys: 5.0.1 esquery@1.7.0: dependencies: @@ -7211,10 +7049,6 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.3.0 - get-tsconfig@4.14.0: - dependencies: - resolve-pkg-maps: 1.0.0 - glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -7223,9 +7057,7 @@ snapshots: dependencies: is-glob: 4.0.3 - globals@14.0.0: {} - - globals@16.4.0: {} + globals@17.7.0: {} globalthis@1.0.4: dependencies: @@ -7240,8 +7072,6 @@ snapshots: has-bigints@1.1.0: {} - has-flag@4.0.0: {} - has-property-descriptors@1.0.2: dependencies: es-define-property: 1.0.1 @@ -7327,11 +7157,6 @@ snapshots: immediate@3.0.6: {} - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - imurmurhash@0.1.4: {} inherits@2.0.4: {} @@ -7380,10 +7205,6 @@ snapshots: call-bound: 1.0.4 has-tostringtag: 1.0.2 - is-bun-module@2.0.0: - dependencies: - semver: 7.8.5 - is-callable@1.2.7: {} is-core-module@2.16.2: @@ -7496,10 +7317,10 @@ snapshots: has-symbols: 1.1.0 set-function-name: 2.0.2 - its-fine@1.2.5(@types/react@18.3.31)(react@18.3.1): + its-fine@1.2.5(@types/react@19.2.17)(react@19.2.7): dependencies: - '@types/react-reconciler': 0.28.9(@types/react@18.3.31) - react: 18.3.1 + '@types/react-reconciler': 0.28.9(@types/react@19.2.17) + react: 19.2.7 transitivePeerDependencies: - '@types/react' @@ -7515,10 +7336,6 @@ snapshots: js-tokens@4.0.0: {} - js-yaml@4.3.0: - dependencies: - argparse: 2.0.1 - jsesc@3.1.0: {} json-buffer@3.0.1: {} @@ -7637,8 +7454,6 @@ snapshots: dependencies: p-locate: 5.0.0 - lodash.merge@4.6.2: {} - longest-streak@3.1.0: {} loose-envify@1.4.0: @@ -7653,9 +7468,9 @@ snapshots: dependencies: yallist: 4.0.0 - lucide-react@0.460.0(react@18.3.1): + lucide-react@1.25.0(react@19.2.7): dependencies: - react: 18.3.1 + react: 19.2.7 maath@0.10.8(@types/three@0.185.1)(three@0.185.1): dependencies: @@ -8053,37 +7868,35 @@ snapshots: nanoid@3.3.16: {} - napi-postinstall@0.3.4: {} - natural-compare@1.4.0: {} negotiator@1.0.0: {} - next-auth@4.24.14(next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next-auth@4.24.14(next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: '@babel/runtime': 7.29.7 '@panva/hkdf': 1.2.1 cookie: 0.7.2 jose: 4.15.9 - next: 16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) oauth: 0.9.15 openid-client: 5.7.1 preact: 10.29.7(preact-render-to-string@5.2.6) preact-render-to-string: 5.2.6(preact@10.29.7) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) uuid: 8.3.2 - next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@16.2.10(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@playwright/test@1.61.1)(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: '@next/env': 16.2.10 '@swc/helpers': 0.5.15 baseline-browser-mapping: 2.10.43 caniuse-lite: 1.0.30001806 postcss: 8.5.20 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - styled-jsx: 5.1.6(@babel/core@7.29.7)(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) + styled-jsx: 5.1.6(@babel/core@7.29.7)(react@19.2.7) optionalDependencies: '@next/swc-darwin-arm64': 16.2.10 '@next/swc-darwin-x64': 16.2.10 @@ -8208,10 +8021,6 @@ snapshots: dependencies: p-limit: 3.1.0 - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - parse-entities@4.0.2: dependencies: '@types/unist': 2.0.11 @@ -8421,34 +8230,33 @@ snapshots: iconv-lite: 0.7.3 unpipe: 1.0.0 - react-composer@5.0.3(react@18.3.1): + react-composer@5.0.3(react@19.2.7): dependencies: prop-types: 15.8.1 - react: 18.3.1 + react: 19.2.7 - react-dom@18.3.1(react@18.3.1): + react-dom@19.2.7(react@19.2.7): dependencies: - loose-envify: 1.4.0 - react: 18.3.1 - scheduler: 0.23.2 + react: 19.2.7 + scheduler: 0.27.0 - react-hotkeys-hook@5.3.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-hotkeys-hook@5.3.3(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) + react: 19.2.7 + react-dom: 19.2.7(react@19.2.7) react-is@16.13.1: {} - react-markdown@10.1.0(@types/react@18.3.31)(react@18.3.1): + react-markdown@10.1.0(@types/react@19.2.17)(react@19.2.7): dependencies: '@types/hast': 3.0.5 '@types/mdast': 4.0.4 - '@types/react': 18.3.31 + '@types/react': 19.2.17 devlop: 1.1.0 hast-util-to-jsx-runtime: 2.3.6 html-url-attributes: 3.0.1 mdast-util-to-hast: 13.2.1 - react: 18.3.1 + react: 19.2.7 remark-parse: 11.0.0 remark-rehype: 11.1.2 unified: 11.0.5 @@ -8457,48 +8265,46 @@ snapshots: transitivePeerDependencies: - supports-color - react-reconciler@0.27.0(react@18.3.1): + react-reconciler@0.27.0(react@19.2.7): dependencies: loose-envify: 1.4.0 - react: 18.3.1 + react: 19.2.7 scheduler: 0.21.0 - react-remove-scroll-bar@2.3.8(@types/react@18.3.31)(react@18.3.1): + react-remove-scroll-bar@2.3.8(@types/react@19.2.17)(react@19.2.7): dependencies: - react: 18.3.1 - react-style-singleton: 2.2.3(@types/react@18.3.31)(react@18.3.1) + react: 19.2.7 + react-style-singleton: 2.2.3(@types/react@19.2.17)(react@19.2.7) tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - react-remove-scroll@2.7.2(@types/react@18.3.31)(react@18.3.1): + react-remove-scroll@2.7.2(@types/react@19.2.17)(react@19.2.7): dependencies: - react: 18.3.1 - react-remove-scroll-bar: 2.3.8(@types/react@18.3.31)(react@18.3.1) - react-style-singleton: 2.2.3(@types/react@18.3.31)(react@18.3.1) + react: 19.2.7 + react-remove-scroll-bar: 2.3.8(@types/react@19.2.17)(react@19.2.7) + react-style-singleton: 2.2.3(@types/react@19.2.17)(react@19.2.7) tslib: 2.8.1 - use-callback-ref: 1.3.3(@types/react@18.3.31)(react@18.3.1) - use-sidecar: 1.1.3(@types/react@18.3.31)(react@18.3.1) + use-callback-ref: 1.3.3(@types/react@19.2.17)(react@19.2.7) + use-sidecar: 1.1.3(@types/react@19.2.17)(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - react-style-singleton@2.2.3(@types/react@18.3.31)(react@18.3.1): + react-style-singleton@2.2.3(@types/react@19.2.17)(react@19.2.7): dependencies: get-nonce: 1.0.1 - react: 18.3.1 + react: 19.2.7 tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - react-use-measure@2.1.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-use-measure@2.1.7(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: - react: 18.3.1 + react: 19.2.7 optionalDependencies: - react-dom: 18.3.1(react@18.3.1) + react-dom: 19.2.7(react@19.2.7) - react@18.3.1: - dependencies: - loose-envify: 1.4.0 + react@19.2.7: {} readable-stream@3.6.2: dependencies: @@ -8574,10 +8380,6 @@ snapshots: require-from-string@2.0.2: {} - resolve-from@4.0.0: {} - - resolve-pkg-maps@1.0.0: {} - resolve@2.0.0-next.7: dependencies: es-errors: 1.3.0 @@ -8661,9 +8463,7 @@ snapshots: dependencies: loose-envify: 1.4.0 - scheduler@0.23.2: - dependencies: - loose-envify: 1.4.0 + scheduler@0.27.0: {} secure-json-parse@2.7.0: {} @@ -8806,8 +8606,6 @@ snapshots: split2@4.2.0: {} - stable-hash@0.0.5: {} - stackback@0.0.2: {} stats-gl@2.4.2(@types/three@0.185.1)(three@0.185.1): @@ -8900,24 +8698,20 @@ snapshots: dependencies: inline-style-parser: 0.2.7 - styled-jsx@5.1.6(@babel/core@7.29.7)(react@18.3.1): + styled-jsx@5.1.6(@babel/core@7.29.7)(react@19.2.7): dependencies: client-only: 0.0.1 - react: 18.3.1 + react: 19.2.7 optionalDependencies: '@babel/core': 7.29.7 - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} - suspend-react@0.1.3(react@18.3.1): + suspend-react@0.1.3(react@19.2.7): dependencies: - react: 18.3.1 + react: 19.2.7 - tailwind-merge@2.6.1: {} + tailwind-merge@3.6.0: {} tailwindcss@4.3.3: {} @@ -9005,9 +8799,9 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - tunnel-rat@0.1.2(@types/react@18.3.31)(react@18.3.1): + tunnel-rat@0.1.2(@types/react@19.2.17)(react@19.2.7): dependencies: - zustand: 4.5.7(@types/react@18.3.31)(react@18.3.1) + zustand: 4.5.7(@types/react@19.2.17)(react@19.2.7) transitivePeerDependencies: - '@types/react' - immer @@ -9065,19 +8859,31 @@ snapshots: possible-typed-array-names: 1.1.0 reflect.getprototypeof: 1.0.10 - typescript-eslint@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3): - dependencies: - '@typescript-eslint/eslint-plugin': 8.64.0(@typescript-eslint/parser@8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/parser': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/typescript-estree': 8.64.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.64.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) - eslint: 9.39.5(jiti@2.7.0) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - typescript@5.9.3: {} + typescript@7.0.2: + optionalDependencies: + '@typescript/typescript-aix-ppc64': 7.0.2 + '@typescript/typescript-darwin-arm64': 7.0.2 + '@typescript/typescript-darwin-x64': 7.0.2 + '@typescript/typescript-freebsd-arm64': 7.0.2 + '@typescript/typescript-freebsd-x64': 7.0.2 + '@typescript/typescript-linux-arm': 7.0.2 + '@typescript/typescript-linux-arm64': 7.0.2 + '@typescript/typescript-linux-loong64': 7.0.2 + '@typescript/typescript-linux-mips64el': 7.0.2 + '@typescript/typescript-linux-ppc64': 7.0.2 + '@typescript/typescript-linux-riscv64': 7.0.2 + '@typescript/typescript-linux-s390x': 7.0.2 + '@typescript/typescript-linux-x64': 7.0.2 + '@typescript/typescript-netbsd-arm64': 7.0.2 + '@typescript/typescript-netbsd-x64': 7.0.2 + '@typescript/typescript-openbsd-arm64': 7.0.2 + '@typescript/typescript-openbsd-x64': 7.0.2 + '@typescript/typescript-sunos-x64': 7.0.2 + '@typescript/typescript-win32-arm64': 7.0.2 + '@typescript/typescript-win32-x64': 7.0.2 + ulid@2.4.0: {} unbox-primitive@1.1.0: @@ -9089,7 +8895,7 @@ snapshots: undici-types@5.26.5: {} - undici-types@6.21.0: {} + undici-types@7.18.2: {} unified@11.0.5: dependencies: @@ -9126,33 +8932,6 @@ snapshots: unpipe@1.0.0: {} - unrs-resolver@1.12.2: - dependencies: - napi-postinstall: 0.3.4 - optionalDependencies: - '@unrs/resolver-binding-android-arm-eabi': 1.12.2 - '@unrs/resolver-binding-android-arm64': 1.12.2 - '@unrs/resolver-binding-darwin-arm64': 1.12.2 - '@unrs/resolver-binding-darwin-x64': 1.12.2 - '@unrs/resolver-binding-freebsd-x64': 1.12.2 - '@unrs/resolver-binding-linux-arm-gnueabihf': 1.12.2 - '@unrs/resolver-binding-linux-arm-musleabihf': 1.12.2 - '@unrs/resolver-binding-linux-arm64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-arm64-musl': 1.12.2 - '@unrs/resolver-binding-linux-loong64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-loong64-musl': 1.12.2 - '@unrs/resolver-binding-linux-ppc64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-riscv64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-riscv64-musl': 1.12.2 - '@unrs/resolver-binding-linux-s390x-gnu': 1.12.2 - '@unrs/resolver-binding-linux-x64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-x64-musl': 1.12.2 - '@unrs/resolver-binding-openharmony-arm64': 1.12.2 - '@unrs/resolver-binding-wasm32-wasi': 1.12.2 - '@unrs/resolver-binding-win32-arm64-msvc': 1.12.2 - '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2 - '@unrs/resolver-binding-win32-x64-msvc': 1.12.2 - update-browserslist-db@1.2.3(browserslist@4.28.6): dependencies: browserslist: 4.28.6 @@ -9163,24 +8942,24 @@ snapshots: dependencies: punycode: 2.3.1 - use-callback-ref@1.3.3(@types/react@18.3.31)(react@18.3.1): + use-callback-ref@1.3.3(@types/react@19.2.17)(react@19.2.7): dependencies: - react: 18.3.1 + react: 19.2.7 tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - use-sidecar@1.1.3(@types/react@18.3.31)(react@18.3.1): + use-sidecar@1.1.3(@types/react@19.2.17)(react@19.2.7): dependencies: detect-node-es: 1.1.0 - react: 18.3.1 + react: 19.2.7 tslib: 2.8.1 optionalDependencies: - '@types/react': 18.3.31 + '@types/react': 19.2.17 - use-sync-external-store@1.6.0(react@18.3.1): + use-sync-external-store@1.6.0(react@19.2.7): dependencies: - react: 18.3.1 + react: 19.2.7 util-deprecate@1.0.2: {} @@ -9200,7 +8979,7 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.3 - vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1): + vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1): dependencies: lightningcss: 1.32.0 picomatch: 4.0.5 @@ -9208,16 +8987,16 @@ snapshots: rolldown: 1.1.5 tinyglobby: 0.2.17 optionalDependencies: - '@types/node': 20.19.43 + '@types/node': 24.13.3 esbuild: 0.28.1 fsevents: 2.3.3 jiti: 2.7.0 tsx: 4.23.1 - vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)): + vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)): dependencies: '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) + '@vitest/mocker': 4.1.10(vite@8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1)) '@vitest/pretty-format': 4.1.10 '@vitest/runner': 4.1.10 '@vitest/snapshot': 4.1.10 @@ -9234,11 +9013,11 @@ snapshots: tinyexec: 1.2.4 tinyglobby: 0.2.17 tinyrainbow: 3.1.0 - vite: 8.1.5(@types/node@20.19.43)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1) + vite: 8.1.5(@types/node@24.13.3)(esbuild@0.28.1)(jiti@2.7.0)(tsx@4.23.1) why-is-node-running: 2.3.0 optionalDependencies: '@opentelemetry/api': 1.9.1 - '@types/node': 20.19.43 + '@types/node': 24.13.3 transitivePeerDependencies: - msw @@ -9337,21 +9116,21 @@ snapshots: zod@3.25.76: {} - zustand@3.7.2(react@18.3.1): + zustand@3.7.2(react@19.2.7): optionalDependencies: - react: 18.3.1 + react: 19.2.7 - zustand@4.5.7(@types/react@18.3.31)(react@18.3.1): + zustand@4.5.7(@types/react@19.2.17)(react@19.2.7): dependencies: - use-sync-external-store: 1.6.0(react@18.3.1) + use-sync-external-store: 1.6.0(react@19.2.7) optionalDependencies: - '@types/react': 18.3.31 - react: 18.3.1 + '@types/react': 19.2.17 + react: 19.2.7 - zustand@5.0.14(@types/react@18.3.31)(react@18.3.1)(use-sync-external-store@1.6.0(react@18.3.1)): + zustand@5.0.14(@types/react@19.2.17)(react@19.2.7)(use-sync-external-store@1.6.0(react@19.2.7)): optionalDependencies: - '@types/react': 18.3.31 - react: 18.3.1 - use-sync-external-store: 1.6.0(react@18.3.1) + '@types/react': 19.2.17 + react: 19.2.7 + use-sync-external-store: 1.6.0(react@19.2.7) zwitch@2.0.4: {} diff --git a/services/control-plane/package.json b/services/control-plane/package.json index 804e3146..352d40eb 100644 --- a/services/control-plane/package.json +++ b/services/control-plane/package.json @@ -13,7 +13,7 @@ "pretest": "pnpm --filter @agent-command/schema build", "test": "vitest run", "typecheck": "tsc --noEmit", - "lint": "cd ../.. && ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint services/control-plane/src --ext .ts" + "lint": "cd ../.. && pnpm exec eslint services/control-plane/src" }, "dependencies": { "@agent-command/schema": "workspace:*", @@ -35,12 +35,12 @@ }, "devDependencies": { "@types/bcryptjs": "^3.0.0", - "@types/node": "^20.19.43", + "@types/node": "^24.13.3", "@types/pg": "^8.20.0", "@types/web-push": "^3.6.4", "@types/ws": "^8.18.1", "tsx": "^4.23.1", - "typescript": "^5.9.3", + "typescript": "^7.0.2", "vitest": "^4.1.10", "ws": "^8.21.1" } diff --git a/services/control-plane/src/db/automationMemory.ts b/services/control-plane/src/db/automationMemory.ts index 2f477f50..e4918916 100644 --- a/services/control-plane/src/db/automationMemory.ts +++ b/services/control-plane/src/db/automationMemory.ts @@ -1314,7 +1314,7 @@ export async function listAutomationRuns(userId: string, filters?: { } query += ` ORDER BY r.started_at DESC`; if (filters?.limit) { - query += ` LIMIT $${index++}`; + query += ` LIMIT $${index}`; params.push(filters.limit); } @@ -1346,7 +1346,7 @@ export async function listAutomationWakeups(userId: string, filters?: { query += ` ORDER BY w.requested_at DESC`; if (filters?.limit) { - query += ` LIMIT $${index++}`; + query += ` LIMIT $${index}`; params.push(filters.limit); } @@ -2639,7 +2639,7 @@ export async function finalizeAutomationRunFromReport( let finalRun: AutomationRun; let replayed = false; let completedWorkItem: WorkItem | null = null; - let workItemId: string | null = null; + let workItemId: string | null; try { await client.query('BEGIN'); const updated = await client.query( diff --git a/services/control-plane/src/db/index.ts b/services/control-plane/src/db/index.ts index cc61cfac..bc8fd05d 100644 --- a/services/control-plane/src/db/index.ts +++ b/services/control-plane/src/db/index.ts @@ -248,7 +248,7 @@ export async function listRepos(userId: string, filters?: { query += ' ORDER BY r.updated_at DESC, r.created_at DESC'; if (filters?.limit) { - query += ` LIMIT $${paramIndex++}`; + query += ` LIMIT $${paramIndex}`; params.push(filters.limit); } @@ -386,7 +386,6 @@ export async function validateAgentToken(token: string): Promise hasTokenShaColumn = false; if (!warnedMissingTokenSha) { warnedMissingTokenSha = true; - // eslint-disable-next-line no-console console.warn('[db] agent_tokens.token_sha256 missing; run migrations to enable fast token validation'); } } else { @@ -602,7 +601,7 @@ function buildSessionsFilter(filters?: SessionFilters): { where: string; params: if (filters.group_id === null || filters.include_ungrouped) { query += ` AND group_id IS NULL`; } else { - query += ` AND group_id = $${paramIndex++}`; + query += ` AND group_id = $${paramIndex}`; params.push(filters.group_id); } } @@ -1004,7 +1003,7 @@ export async function getApprovals(filters?: { }): Promise { let query = 'SELECT * FROM approvals WHERE 1=1'; const params: unknown[] = []; - let paramIndex = 1; + const paramIndex = 1; if (filters?.status === 'pending') { query += ' AND decision IS NULL AND timed_out_at IS NULL'; @@ -1013,7 +1012,7 @@ export async function getApprovals(filters?: { } if (filters?.session_id) { - query += ` AND session_id = $${paramIndex++}`; + query += ` AND session_id = $${paramIndex}`; params.push(filters.session_id); } @@ -1431,7 +1430,7 @@ export async function getProjects(userId: string, filters?: { query += ' ORDER BY last_used_at DESC NULLS LAST, usage_count DESC NULLS LAST'; if (filters?.limit) { - query += ` LIMIT $${paramIndex++}`; + query += ` LIMIT $${paramIndex}`; params.push(filters.limit); } @@ -2152,7 +2151,7 @@ export async function getLatestProviderUsage(filters?: { params.push(filters.session_id); } if (filters?.scope) { - whereClause += ` AND scope = $${paramIndex++}`; + whereClause += ` AND scope = $${paramIndex}`; params.push(filters.scope); } @@ -2334,7 +2333,7 @@ export async function getAnalyticsSummary(filters?: { params.push(filters.provider); } if (filters?.since) { - whereClause += ` AND s.created_at >= $${paramIndex++}`; + whereClause += ` AND s.created_at >= $${paramIndex}`; params.push(filters.since); } diff --git a/services/control-plane/src/services/automation.ts b/services/control-plane/src/services/automation.ts index d817c498..492168bc 100644 --- a/services/control-plane/src/services/automation.ts +++ b/services/control-plane/src/services/automation.ts @@ -511,7 +511,7 @@ export async function evaluateAutomationPreflight(input: { ); const issues: AutomationPreflightIssue[] = [...budget.issues]; - let host: Host | null = null; + let host: Host | null; if (input.reusableSession) { host = await db.getHostById(input.reusableSession.host_id); if (!host || !hostAllowsSpawn(host)) { diff --git a/services/control-plane/src/services/clawdbot.ts b/services/control-plane/src/services/clawdbot.ts index b10e798e..aa6c759f 100644 --- a/services/control-plane/src/services/clawdbot.ts +++ b/services/control-plane/src/services/clawdbot.ts @@ -163,7 +163,7 @@ export function createClawdbotNotifier(dependencies: { async function deliver(notification: QueuedNotification): Promise { let attempts = 0; - let result: Awaited> = { ok: false }; + let result: Awaited>; for (;;) { attempts += 1; result = await sendOnce(notification.config, notification.message); diff --git a/tasks/frontend-ux-handoffs/fw1-modern.md b/tasks/frontend-ux-handoffs/fw1-modern.md new file mode 100644 index 00000000..1321c323 --- /dev/null +++ b/tasks/frontend-ux-handoffs/fw1-modern.md @@ -0,0 +1,63 @@ +--- +lane: FW1-MODERN +frozen_sha: 76d3c5e2bc5e03c4f3a2f534f053ae6a9bc8f000 +attempt: 1 +state: frozen +gates: + lint: pass + typecheck: pass + test_ci: pass + smoke: pass + build: pass + go: n/a +proof: + - "pnpm install → completed first in the fresh worktree before repository changes" + - "pnpm exec tsc --version → Version 7.0.2" + - "pnpm lint → 5/5 Turbo tasks passed with zero lint warnings" + - "pnpm typecheck → 5/5 Turbo tasks passed on the TypeScript 7.0.2 toolchain" + - "pnpm test:ci → 72 test files and 323 tests passed across all four workspaces" + - "pnpm test:smoke:dashboard → 10/10 Chromium scenarios passed across desktop, mobile, and tablet flows" + - "pnpm build → 4/4 Turbo build tasks passed; Next.js 16.2.10 production build completed" + - "CHOKIDAR_USEPOLLING=1 WATCHPACK_POLLING=true bash -c 'pnpm lint && pnpm typecheck && pnpm test:ci && pnpm test:smoke:dashboard && pnpm build' → complete mandatory gate passed in order" + - "frontend-product-design audit_frontend.sh → lint, typecheck, and test passed; browser smoke supplied equivalent UI-preservation verification" + - "git diff --name-only refactor/frontend-command-center...76d3c5e2bc5e03c4f3a2f534f053ae6a9bc8f000 -- protected paths → empty" + - "git diff refactor/frontend-command-center...76d3c5e2bc5e03c4f3a2f534f053ae6a9bc8f000 suppression scan → no net-new eslint-disable, @ts-expect-error, @ts-ignore, or any cast" +assumptions: + - "Node 24 is the latest LTS-matching major, so existing @types/node declarations were upgraded to 24.13.3." +uncertainties: + - "Protected @react-three/fiber 8 and Drei 9 packages still declare React 18 peer ranges; they were intentionally left unchanged. Typecheck, smoke, and the production /visualizer route build all pass under React 19." +blockers: [] +--- + +# FW1-MODERN handoff + +## What changed + +- TypeScript is 7.0.2 in the root and every existing workspace declaration. Existing Node type declarations are on the Node 24 LTS line. Next route type generation uses an `@typescript/native-preview` package alias to the stable TypeScript 7 package because Next 16.2.10 otherwise expects the removed JavaScript compiler entrypoint. Explicit workspace typechecking continues to run `tsc` 7.0.2. +- ESLint is 10.7.0. The legacy eslintrc was replaced by flat configs, `eslint-plugin-react-hooks` is 7.1.1 with the pinning override removed, and legacy React/import/a11y plugins are adapted with the official `@eslint/compat` wrapper. +- A small lint-only compatibility package gives `typescript-eslint` 8.64.0 its supported TypeScript 5.9 parser runtime while all application and workspace compilation remains on TypeScript 7. This isolates the current parser limitation instead of weakening lint coverage. +- `SessionList` now keys its memo from `data`, and `MobileLaunchSheet` memoizes `data?.targets`; these resolve the compiler diagnostic and all three exhaustive-deps warnings without suppressions or behavior changes. +- ESLint 10 mechanical fixes outside the dashboard add an error cause, remove unused final parameter increments and redundant initializers, and delete one obsolete `no-console` suppression. No unrelated runtime or feature work was included. +- React and React DOM are 19.2.7 with React 19 type packages. A dashboard-level React JSX type bridge exposes the existing R3F 8 `ThreeElements` under React 19's module-scoped JSX namespace; no visualizer source or dependency was touched. +- `tailwind-merge` is 3.6.0 and `lucide-react` is 1.25.0. Existing imports and call sites remained source-compatible, so no UI code or styling changed. + +## Decisions and compatibility notes + +- `next` remains 16.2.10, Zod remains 3.25.76 in every declaring workspace, and `next-auth`, R3F, Drei, Three, Vitest, and Playwright declarations are unchanged. +- `pnpm install` reports declared-peer warnings because `typescript-eslint` has not declared TypeScript 7 support, the legacy React/import/a11y plugins have not declared ESLint 10 support, and the protected R3F/Drei generation declares React 18. The isolated parser runtime plus `@eslint/compat` make lint operational; React typecheck, browser smoke, and production build prove the protected visualizer dependency set was not changed to silence its warning. No `next-auth` React 19 warning was emitted. +- Next prints that some framework TypeScript features require the standard compiler package when it detects the native compiler. This is documented rather than hidden: route type generation succeeds, the explicit TypeScript 7 workspace gate succeeds, and the production build succeeds. +- Test output retains non-failing control-plane mock diagnostics and dashboard smoke fixture-validation fallbacks for omitted `capture_hash`/`groups` fields, plus the harness's `NO_COLOR`/`FORCE_COLOR` notice. All tests pass; schema and test-fixture changes were outside this mechanical lane. +- The ownership firewall audit found no changes under `agents/**`, `migrations/**`, `deploy/**`, `components/botspace/**`, `components/visualizer/**`, or `app/(visualizer)/**`. + +## Frontend preservation audit + +This lane intentionally changes no visual design. The scope-limited regression score is 93/100 with no hard fails: product fit 15/15, information architecture 15/15, visual design 15/15, dashboard/data clarity 15/15, interaction states 8/10, accessibility 11/15, responsive behavior 10/10, and performance polish 4/5. The deductions reflect that the mechanical lane did not add exhaustive state, accessibility, or performance benchmarks. Existing browser coverage verified sign-in, key operator pages, tmux interactions, launch and steering actions, and desktop/mobile/tablet layouts; with no route, DOM, or styling edits, screenshots of changed routes were not applicable. + +## Phase commits + +- `9d6e9d0` — `chore(modern): upgrade to TypeScript 7` +- `65cc1b4` — `chore(modern): upgrade to ESLint 10` +- `20ee1f6` — `chore(modern): upgrade to React 19` +- `76d3c5e` — `chore(modern): upgrade UI utilities` + +FW1-MODERN FROZEN 76d3c5e2bc5e03c4f3a2f534f053ae6a9bc8f000 diff --git a/tools/eslint-typescript-compat/eslint.config.mjs b/tools/eslint-typescript-compat/eslint.config.mjs new file mode 100644 index 00000000..1bcabe94 --- /dev/null +++ b/tools/eslint-typescript-compat/eslint.config.mjs @@ -0,0 +1,7 @@ +import { createRequire } from 'node:module'; +import plugin from '@typescript-eslint/eslint-plugin'; + +const requireFromPlugin = createRequire(import.meta.resolve('@typescript-eslint/eslint-plugin')); +const parser = requireFromPlugin('@typescript-eslint/parser'); + +export { parser, plugin }; diff --git a/tools/eslint-typescript-compat/package.json b/tools/eslint-typescript-compat/package.json new file mode 100644 index 00000000..582dbe01 --- /dev/null +++ b/tools/eslint-typescript-compat/package.json @@ -0,0 +1,15 @@ +{ + "name": "@agent-command/eslint-typescript-compat", + "version": "0.0.0", + "private": true, + "type": "module", + "exports": "./eslint.config.mjs", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.64.0", + "@typescript-eslint/parser": "8.64.0", + "typescript": "5.9.3" + }, + "peerDependencies": { + "eslint": "^10.7.0" + } +} diff --git a/tsconfig.base.json b/tsconfig.base.json index 10ac2aef..34163334 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -13,6 +13,7 @@ "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "isolatedModules": true, + "types": ["node"], "noEmit": false, "noUncheckedIndexedAccess": true }, From 609731cca13982b1b23f330214e7c140600c46ea Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 09:45:51 -0400 Subject: [PATCH 04/13] chore(program): FW1-MODERN accepted and integrated Co-Authored-By: Claude Fable 5 --- tasks/frontend-ux-log.md | 2 ++ tasks/frontend-ux-metrics.jsonl | 1 + tasks/frontend-ux-status.md | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/frontend-ux-log.md b/tasks/frontend-ux-log.md index dbd7ed05..e45762b9 100644 --- a/tasks/frontend-ux-log.md +++ b/tasks/frontend-ux-log.md @@ -5,3 +5,5 @@ - ~13:00Z Master plan authored; owner locked all 8 decisions via interview (landing=Command Center, hooks-not-CC, full modernization incl. TS 7 + Zod 4 excl. R3F/Drei, 2-up multi-terminal, one attention surface, /sessions retained, per-wave deploys). - ~13:30Z Program launch: baseline re-verified green (typecheck+test:ci) at `70fa53e`. Acceptance checklist, status board, briefs authored. Integration branch `refactor/frontend-command-center` cut from main. - Wave 1 lanes launched: FW1-MODERN (homelinux, codex) and FW1-TMUX-GO (heavisidelinux, codex). Fixture shapes for the tmux topology event + 8 window/pane commands frozen in the FW1-TMUX-GO brief. +- ~14:10Z FW1-MODERN froze at `76d3c5e` after 34m (attempt 1). AI Lead verification: full gate re-run green (exit 0), firewall audit clean, suppression scan clean (one grep hit was the handoff's own prose), spot-checks of SessionList/MobileLaunchSheet/R3F-type-bridge/CP lint fixes all mechanical. Notable compatibility seams (documented in handoff, accepted): `tools/eslint-typescript-compat` isolates typescript-eslint's TS 5.9 parser runtime; Next route type-gen uses `@typescript/native-preview` alias under TS 7. INTEGRATED @ `6f8ce3c` (squash). +- FW1-TMUX-GO in progress at +35m: implementing unsequenced WS send path for topology events; codex context low (12%) — auto-compaction expected, watcher armed for stall/exit. diff --git a/tasks/frontend-ux-metrics.jsonl b/tasks/frontend-ux-metrics.jsonl index e7a39432..abf1a476 100644 --- a/tasks/frontend-ux-metrics.jsonl +++ b/tasks/frontend-ux-metrics.jsonl @@ -1 +1,2 @@ {"ts":"2026-07-20T13:30:00Z","event":"program_launched","wave":1,"lanes":["FW1-MODERN","FW1-TMUX-GO"],"baseline_sha":"70fa53e","builders":"codex gpt-5.6-sol xhigh","integration_branch":"refactor/frontend-command-center"} +{"ts":"2026-07-20T14:10:00Z","event":"lane_frozen","lane":"FW1-MODERN","attempt":1,"frozen_sha":"76d3c5e","duration_min":34,"verdict":"accepted","integrated_sha":"6f8ce3c"} diff --git a/tasks/frontend-ux-status.md b/tasks/frontend-ux-status.md index 15928a2e..c2c386eb 100644 --- a/tasks/frontend-ux-status.md +++ b/tasks/frontend-ux-status.md @@ -9,8 +9,8 @@ Baseline: typecheck + test:ci green at `70fa53e` (2026-07-20). Deploy cadence: p | Lane | Machine | Worktree | Branch | tmux | State | Last checked | |---|---|---|---|---|---|---| -| FW1-MODERN | homelinux | ~/dev/wt/ac-fw1-modern | refactor/fw1-modern | agent-command:fw1-modern | active (verified in pane) | 2026-07-20 launch+2m | -| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | active (verified in pane) | 2026-07-20 launch+2m | +| FW1-MODERN | homelinux | ~/dev/wt/ac-fw1-modern | refactor/fw1-modern | (done) | INTEGRATED @ 6f8ce3c (frozen 76d3c5e, gate re-verified by AI Lead) | 2026-07-20 | +| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | active | 2026-07-20 | ## Ownership firewall (Wave 1) - FW1-MODERN: package manifests + lockfile, tsconfig/eslint/turbo configs, and **mechanical** TS/TSX fixes anywhere outside `agents/**`. NO feature/behavior edits, NO Zod changes, NO visualizer/R3F dep changes, NO `agents/**`. From 504d7d3fe35c58280a837ec3be7af2be9a30ea23 Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 09:50:30 -0400 Subject: [PATCH 05/13] feat(agentd): structured tmux topology events, window/pane command executor, stale-channel supersede, scrollback paging proof, protocol fixtures (FW1-TMUX-GO eaadfe9) Co-Authored-By: Claude Fable 5 --- agents/agentd/cmd/agentd/main.go | 351 +++++++++++++++++- .../agentd/cmd/agentd/main_terminal_test.go | 127 +++++++ .../cmd/agentd/main_tmux_commands_test.go | 292 +++++++++++++++ agents/agentd/cmd/agentd/main_tmux_test.go | 141 +++++++ agents/agentd/cmd/agentd/tmux_topology.go | 148 ++++++++ agents/agentd/internal/protocol/command.go | 38 ++ agents/agentd/internal/protocol/messages.go | 3 +- agents/agentd/internal/protocol/session.go | 24 +- agents/agentd/internal/protocol/tmux.go | 34 ++ agents/agentd/internal/tmux/hooks.go | 220 +++++++++++ .../agentd/internal/tmux/pty_bridge_test.go | 63 +++- agents/agentd/internal/tmux/terminal.go | 83 ++++- agents/agentd/internal/tmux/tmux.go | 148 +++++++- agents/agentd/internal/tmux/tmux_test.go | 207 ++++++++++- agents/agentd/internal/tmux/viewer_pty.go | 2 +- agents/agentd/internal/ws/client.go | 46 ++- agents/agentd/internal/ws/client_test.go | 41 ++ .../internal/ws/protocol_fixtures_test.go | 21 ++ tasks/frontend-ux-handoffs/fw1-tmux-go.md | 55 +++ .../commands-dispatch-kill-window.json | 1 + .../commands-dispatch-new-window.json | 1 + .../commands-dispatch-rename-window.json | 1 + .../commands-dispatch-resize-pane.json | 1 + .../commands-dispatch-select-pane.json | 1 + .../commands-dispatch-select-window.json | 1 + .../commands-dispatch-split-pane.json | 1 + .../protocol/commands-dispatch-zoom-pane.json | 1 + tests/fixtures/protocol/tmux-topology.json | 1 + 28 files changed, 1986 insertions(+), 67 deletions(-) create mode 100644 agents/agentd/cmd/agentd/main_tmux_commands_test.go create mode 100644 agents/agentd/cmd/agentd/main_tmux_test.go create mode 100644 agents/agentd/cmd/agentd/tmux_topology.go create mode 100644 agents/agentd/internal/protocol/tmux.go create mode 100644 agents/agentd/internal/tmux/hooks.go create mode 100644 tasks/frontend-ux-handoffs/fw1-tmux-go.md create mode 100644 tests/fixtures/protocol/commands-dispatch-kill-window.json create mode 100644 tests/fixtures/protocol/commands-dispatch-new-window.json create mode 100644 tests/fixtures/protocol/commands-dispatch-rename-window.json create mode 100644 tests/fixtures/protocol/commands-dispatch-resize-pane.json create mode 100644 tests/fixtures/protocol/commands-dispatch-select-pane.json create mode 100644 tests/fixtures/protocol/commands-dispatch-select-window.json create mode 100644 tests/fixtures/protocol/commands-dispatch-split-pane.json create mode 100644 tests/fixtures/protocol/commands-dispatch-zoom-pane.json create mode 100644 tests/fixtures/protocol/tmux-topology.json diff --git a/agents/agentd/cmd/agentd/main.go b/agents/agentd/cmd/agentd/main.go index 1dc849c8..8fc4e8eb 100644 --- a/agents/agentd/cmd/agentd/main.go +++ b/agents/agentd/cmd/agentd/main.go @@ -48,6 +48,7 @@ type Agent struct { streamer *console.Streamer terminalManager *tmux.TerminalManager pipeMux *tmux.PipeMux + tmuxHooks *tmux.HookManager lastPruneAt time.Time orchestratorTmux TmuxRunner sendMessage func(string, any) error @@ -74,6 +75,14 @@ type Agent struct { launchTemplates *providers.LaunchTemplates commandExecutor *commands.Executor + + tmuxTopologyMu sync.Mutex + tmuxTopologyTimer *time.Timer + pendingTmuxTopology *protocol.TmuxTopologyPayload + pendingTmuxTopologyHash string + lastTmuxTopologyHash string + tmuxTopologyGeneration uint64 + tmuxTopologyStopped bool } type toolEventPending struct { @@ -405,6 +414,11 @@ func (a *Agent) Run() error { a.cfg.ControlPlane.ReconnectBackoffMs, ) a.wsClient.SetMessageHandler(a.handleMessage) + a.wsClient.SetOnDisconnect(func() { + if a.terminalManager != nil { + a.terminalManager.MarkChannelsStale() + } + }) a.wsClient.SetOnConnect(func() { if err := a.sendHello(); err != nil { log.Printf("Failed to send hello: %v", err) @@ -463,6 +477,16 @@ func (a *Agent) Run() error { // Initialize pipe mux for console + terminal output a.pipeMux = tmux.NewPipeMux(a.tmuxClient, a.cfg.Storage.StateDir+"/console") + // Register additive topology hooks when the host tmux supports them. The + // reconciliation poll remains active as the fallback and correctness pass. + a.tmuxHooks, err = a.tmuxClient.StartTopologyHooks(a.handleTmuxTopologyHook) + if err != nil { + log.Printf("tmux hooks unavailable; using poll-only topology: %v", err) + } else { + defer a.tmuxHooks.Close() + log.Printf("tmux topology hooks active") + } + // Connect to control plane if err := a.wsClient.Connect(); err != nil { return fmt.Errorf("failed to connect to control plane: %w", err) @@ -496,6 +520,10 @@ func (a *Agent) Run() error { if a.terminalManager != nil { a.terminalManager.Close() } + if a.tmuxHooks != nil { + a.tmuxHooks.Close() + } + a.stopTmuxTopology() a.claudeProvider.Stop() a.wsClient.Close() @@ -1740,6 +1768,8 @@ func (a *Agent) send(msgType string, payload any) error { var err error if a.sendMessage != nil { err = a.sendMessage(msgType, payload) + } else if msgType == protocol.TypeTmuxTopology { + err = a.wsClient.SendUnsequenced(msgType, payload) } else { err = a.wsClient.Send(msgType, payload) } @@ -1945,6 +1975,54 @@ func (a *Agent) executeCommand(cmd commands.Dispatch) (map[string]any, error) { break } err = a.executeRenameSession(session, cmd.Command.Payload) + case "new_window": + if !exists { + err = fmt.Errorf("session not found") + break + } + resultPayload, err = a.executeNewWindow(session, cmd.Command.Payload) + case "rename_window": + if !exists { + err = fmt.Errorf("session not found") + break + } + err = a.executeRenameWindow(session, cmd.Command.Payload) + case "kill_window": + if !exists { + err = fmt.Errorf("session not found") + break + } + err = a.executeKillWindow(session, cmd.Command.Payload) + case "select_window": + if !exists { + err = fmt.Errorf("session not found") + break + } + err = a.executeSelectWindow(session, cmd.Command.Payload) + case "split_pane": + if !exists { + err = fmt.Errorf("session not found") + break + } + resultPayload, err = a.executeSplitPane(session, cmd.Command.Payload) + case "select_pane": + if !exists { + err = fmt.Errorf("session not found") + break + } + err = a.executeSelectPane(session, cmd.Command.Payload) + case "resize_pane": + if !exists { + err = fmt.Errorf("session not found") + break + } + err = a.executeResizePane(session, cmd.Command.Payload) + case "zoom_pane": + if !exists { + err = fmt.Errorf("session not found") + break + } + err = a.executeZoomPane(session, cmd.Command.Payload) case "spawn_session": err = a.executeSpawnSession(cmd.SessionID, cmd.Command.Payload) case "spawn_job": @@ -2077,6 +2155,216 @@ func (a *Agent) executeSendKeys(session *SessionState, payload json.RawMessage) return a.tmuxClient.SendKeys(session.PaneID, p.Keys) } +func (a *Agent) executeNewWindow(session *SessionState, payload json.RawMessage) (map[string]any, error) { + if !a.cfg.Security.AllowSpawn { + return nil, fmt.Errorf("new_window not allowed by policy") + } + var p protocol.NewWindowPayload + if err := json.Unmarshal(payload, &p); err != nil { + return nil, err + } + tmuxSession := tmuxSessionFromTarget(session.TmuxTarget) + if tmuxSession == "" { + return nil, fmt.Errorf("session has no tmux target") + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + paneID, err := a.tmuxClient.NewWindow(tmuxSession, p.WindowName, p.CWD) + if err != nil { + return nil, err + } + return map[string]any{"pane_id": paneID}, nil +} + +func (a *Agent) executeRenameWindow(session *SessionState, payload json.RawMessage) error { + if !a.cfg.Security.AllowSendInput { + return fmt.Errorf("rename_window not allowed by policy") + } + var p protocol.RenameWindowPayload + if err := json.Unmarshal(payload, &p); err != nil { + return err + } + if p.WindowIndex == nil || *p.WindowIndex < 0 { + return fmt.Errorf("window_index is required") + } + if strings.TrimSpace(p.Name) == "" { + return fmt.Errorf("name is required") + } + target, err := tmuxWindowTarget(session, *p.WindowIndex) + if err != nil { + return err + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + return a.tmuxClient.RenameWindow(target, p.Name) +} + +func (a *Agent) executeKillWindow(session *SessionState, payload json.RawMessage) error { + if !a.cfg.Security.AllowKill { + return fmt.Errorf("kill_window not allowed by policy") + } + var p protocol.KillWindowPayload + if err := json.Unmarshal(payload, &p); err != nil { + return err + } + if p.WindowIndex == nil || *p.WindowIndex < 0 { + return fmt.Errorf("window_index is required") + } + target, err := tmuxWindowTarget(session, *p.WindowIndex) + if err != nil { + return err + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + return a.tmuxClient.KillWindow(target) +} + +func (a *Agent) executeSelectWindow(session *SessionState, payload json.RawMessage) error { + if !a.cfg.Security.AllowSendInput { + return fmt.Errorf("select_window not allowed by policy") + } + var p protocol.SelectWindowPayload + if err := json.Unmarshal(payload, &p); err != nil { + return err + } + if p.WindowIndex == nil || *p.WindowIndex < 0 { + return fmt.Errorf("window_index is required") + } + target, err := tmuxWindowTarget(session, *p.WindowIndex) + if err != nil { + return err + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + return a.tmuxClient.SelectWindow(target) +} + +func (a *Agent) executeSplitPane(session *SessionState, payload json.RawMessage) (map[string]any, error) { + if !a.cfg.Security.AllowSpawn { + return nil, fmt.Errorf("split_pane not allowed by policy") + } + var p protocol.SplitPanePayload + if err := json.Unmarshal(payload, &p); err != nil { + return nil, err + } + if p.Direction != "horizontal" && p.Direction != "vertical" { + return nil, fmt.Errorf("direction must be horizontal or vertical") + } + if p.Percent != nil && (*p.Percent < 1 || *p.Percent > 100) { + return nil, fmt.Errorf("percent must be between 1 and 100") + } + if session.PaneID == "" { + return nil, fmt.Errorf("session has no active pane") + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + created, err := a.tmuxClient.SplitPaneWithOptions(session.PaneID, p.Direction, p.Percent, p.CWD) + if err != nil { + return nil, err + } + return map[string]any{"pane_id": created.PaneID, "tmux_target": created.TmuxTarget}, nil +} + +func (a *Agent) executeSelectPane(session *SessionState, payload json.RawMessage) error { + if !a.cfg.Security.AllowSendInput { + return fmt.Errorf("select_pane not allowed by policy") + } + var p protocol.SelectPanePayload + if err := json.Unmarshal(payload, &p); err != nil { + return err + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + paneID, err := a.resolvePaneTarget(session, p.PaneID) + if err != nil { + return err + } + return a.tmuxClient.SelectPane(paneID) +} + +func (a *Agent) executeResizePane(session *SessionState, payload json.RawMessage) error { + if !a.cfg.Security.AllowSendInput { + return fmt.Errorf("resize_pane not allowed by policy") + } + var p protocol.ResizePanePayload + if err := json.Unmarshal(payload, &p); err != nil { + return err + } + if p.Width == nil && p.Height == nil { + return fmt.Errorf("at least one of width or height is required") + } + if (p.Width != nil && *p.Width <= 0) || (p.Height != nil && *p.Height <= 0) { + return fmt.Errorf("pane dimensions must be positive") + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + paneID, err := a.resolvePaneTarget(session, p.PaneID) + if err != nil { + return err + } + width, height := 0, 0 + if p.Width != nil { + width = *p.Width + } + if p.Height != nil { + height = *p.Height + } + return a.tmuxClient.ResizePane(paneID, width, height) +} + +func (a *Agent) executeZoomPane(session *SessionState, payload json.RawMessage) error { + if !a.cfg.Security.AllowSendInput { + return fmt.Errorf("zoom_pane not allowed by policy") + } + var p protocol.ZoomPanePayload + if err := json.Unmarshal(payload, &p); err != nil { + return err + } + + a.topologyMu.Lock() + defer a.topologyMu.Unlock() + paneID, err := a.resolvePaneTarget(session, p.PaneID) + if err != nil { + return err + } + return a.tmuxClient.ZoomPane(paneID) +} + +func (a *Agent) resolvePaneTarget(session *SessionState, paneID string) (string, error) { + if paneID == "" { + return "", fmt.Errorf("pane_id is required") + } + tmuxSession := tmuxSessionFromTarget(session.TmuxTarget) + if tmuxSession == "" { + return "", fmt.Errorf("session has no tmux target") + } + panes, err := a.tmuxClient.ListPanes() + if err != nil { + return "", err + } + for _, pane := range panes { + if pane.PaneID == paneID && pane.SessionName == tmuxSession { + return paneID, nil + } + } + return "", fmt.Errorf("pane is not in the tracked tmux session") +} + +func tmuxWindowTarget(session *SessionState, windowIndex int) (string, error) { + tmuxSession := tmuxSessionFromTarget(session.TmuxTarget) + if tmuxSession == "" { + return "", fmt.Errorf("session has no tmux target") + } + return fmt.Sprintf("%s:%d", tmuxSession, windowIndex), nil +} + func (a *Agent) executeKillSession(session *SessionState) error { if !a.cfg.Security.AllowKill { return fmt.Errorf("kill not allowed by policy") @@ -4619,23 +4907,42 @@ func (a *Agent) handleConsoleChunk(subscriptionID, sessionID string, data []byte } func (a *Agent) pollTmux() { + a.reconcileTmux("startup") + a.retryBufferedHooks() + ticker := time.NewTicker(time.Duration(a.cfg.Tmux.PollIntervalMs) * time.Millisecond) defer ticker.Stop() for range ticker.C { - a.topologyMu.Lock() - panes, err := a.tmuxClient.ListPanes() - if err != nil { - a.topologyMu.Unlock() - log.Printf("Failed to list tmux panes: %v", err) - continue - } + a.reconcileTmux("poll") + a.retryBufferedHooks() + } +} - procSnap := proc.TakeSnapshot() - a.syncPanes(panes, procSnap) +func (a *Agent) reconcileTmux(reason string) { + a.topologyMu.Lock() + panes, err := a.tmuxClient.ListPanes() + if err != nil { a.topologyMu.Unlock() - a.retryBufferedHooks() + log.Printf("Failed to list tmux panes: %v", err) + return } + + procSnap := proc.TakeSnapshot() + a.syncPanes(panes, procSnap) + a.topologyMu.Unlock() + a.queueTmuxTopology(reason, panes) +} + +func (a *Agent) handleTmuxTopologyHook(hookName string) { + a.topologyMu.Lock() + panes, err := a.tmuxClient.ListPanes() + a.topologyMu.Unlock() + if err != nil { + log.Printf("Failed to list tmux panes after hook %s: %v", hookName, err) + return + } + a.queueTmuxTopology("hook:"+hookName, panes) } func (a *Agent) syncPanes(panes []tmux.Pane, procSnap *proc.Snapshot) { @@ -4755,14 +5062,22 @@ func (a *Agent) syncPanes(panes []tmux.Pane, procSnap *proc.Snapshot) { session.Metadata = map[string]any{} } session.Metadata["tmux"] = map[string]any{ - "pane_id": pane.PaneID, - "target": pane.GetTmuxTarget(), - "pane_pid": pane.PanePID, - "current_command": pane.CurrentCommand, - "session_name": pane.SessionName, - "window_name": pane.WindowName, - "window_index": pane.WindowIndex, - "pane_index": pane.PaneIndex, + "pane_id": pane.PaneID, + "target": pane.GetTmuxTarget(), + "pane_pid": pane.PanePID, + "current_command": pane.CurrentCommand, + "session_name": pane.SessionName, + "window_name": pane.WindowName, + "window_index": pane.WindowIndex, + "pane_index": pane.PaneIndex, + "pane_active": pane.PaneActive, + "window_active": pane.WindowActive, + "window_zoomed_flag": pane.WindowZoomed, + "window_layout": pane.WindowLayout, + "pane_width": pane.PaneWidth, + "pane_height": pane.PaneHeight, + "window_bell_flag": pane.WindowBell, + "window_activity_flag": pane.WindowActivity, } session.Metadata["unmanaged"] = session.Unmanaged diff --git a/agents/agentd/cmd/agentd/main_terminal_test.go b/agents/agentd/cmd/agentd/main_terminal_test.go index 91dbe2e8..e78b044a 100644 --- a/agents/agentd/cmd/agentd/main_terminal_test.go +++ b/agents/agentd/cmd/agentd/main_terminal_test.go @@ -1,11 +1,19 @@ package main import ( + "encoding/json" + "net/http" + "net/http/httptest" "reflect" + "strings" + "sync" "testing" + "time" "github.com/agent-command/agentd/internal/protocol" "github.com/agent-command/agentd/internal/tmux" + "github.com/agent-command/agentd/internal/ws" + "github.com/gorilla/websocket" ) func TestTerminalOutputHandlerDoesNotReencodeFanoutChunk(t *testing.T) { @@ -58,3 +66,122 @@ func TestTerminalAuditHandlerEmitsAdditiveAuditEvent(t *testing.T) { t.Fatalf("message=(%q, %#v), want=(terminal.audit, %#v)", gotType, gotPayload, want) } } + +func TestTerminalAttachSupersedesStaleChannelAfterControlPlaneReconnect(t *testing.T) { + tmuxClient := newPrivateCommandTmux(t) + panes, err := tmuxClient.ListPanes() + if err != nil || len(panes) != 1 { + t.Fatalf("initial panes=%+v err=%v", panes, err) + } + paneID := panes[0].PaneID + + var connectionMu sync.Mutex + connectionCount := 0 + firstAttached := make(chan struct{}) + secondAttached := make(chan protocol.TerminalStatusPayload, 1) + serverDone := make(chan struct{}) + var resumeToken string + upgrader := websocket.Upgrader{} + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + conn, err := upgrader.Upgrade(w, r, nil) + if err != nil { + return + } + defer conn.Close() + + connectionMu.Lock() + connectionCount++ + current := connectionCount + connectionMu.Unlock() + if current > 2 { + return + } + + var hello protocol.AgentEnvelope + if err := conn.ReadJSON(&hello); err != nil || hello.Type != protocol.TypeAgentHello { + return + } + attach := protocol.TerminalAttachPayload{ + ChannelID: "channel-old", + PaneID: paneID, + SessionID: "session-1", + Cols: 120, + Rows: 40, + } + if current == 2 { + <-firstAttached + attach.ChannelID = "channel-new" + attach.ResumeToken = resumeToken + } + if err := conn.WriteJSON(protocol.ServerMessage[protocol.TerminalAttachPayload]{ + V: protocol.Version, Type: protocol.TypeTerminalAttach, + TS: time.Now().UTC().Format(time.RFC3339Nano), Payload: attach, + }); err != nil { + return + } + + for { + var envelope protocol.AgentEnvelope + if err := conn.ReadJSON(&envelope); err != nil { + return + } + if envelope.Type != protocol.TypeTerminalAttached { + continue + } + var status protocol.TerminalStatusPayload + if err := json.Unmarshal(envelope.Payload, &status); err != nil || status.ChannelID != attach.ChannelID { + continue + } + if current == 1 { + resumeToken = status.ResumeToken + close(firstAttached) + return + } + secondAttached <- status + <-serverDone + return + } + })) + defer server.Close() + defer close(serverDone) + + agent := &Agent{tmuxClient: tmuxClient} + manager := tmux.NewTerminalManager(tmuxClient, t.TempDir()) + manager.SetPerViewerPTY(true) + agent.terminalManager = manager + defer manager.Close() + + wsURL := "ws" + strings.TrimPrefix(server.URL, "http") + wsClient := ws.NewClient(wsURL, "token", "host", []int{10}) + agent.wsClient = wsClient + wsClient.SetMessageHandler(agent.handleMessage) + wsClient.SetOnDisconnect(manager.MarkChannelsStale) + wsClient.SetOnConnect(func() { + if err := wsClient.ResendQueued(); err != nil { + return + } + _ = wsClient.SendHello(protocol.AgentHelloPayload{}) + }) + manager.SetOutputHandler(agent.handleTerminalOutput) + manager.SetStatusHandler(agent.handleTerminalStatus) + manager.SetAuditHandler(agent.handleTerminalAudit) + if err := wsClient.Connect(); err != nil { + t.Fatal(err) + } + defer wsClient.Close() + + select { + case status := <-secondAttached: + if status.Resumed == nil || !*status.Resumed || status.ResumeToken != resumeToken { + t.Fatalf("resumed terminal status=%+v token=%q", status, resumeToken) + } + case <-time.After(5 * time.Second): + t.Fatal("timed out waiting for resumed terminal.attach after reconnect") + } + if err := manager.SendInput("channel-old", "stale"); err == nil || !strings.Contains(err.Error(), "not found") { + t.Fatalf("old channel cleanup error=%v", err) + } + if !manager.IsPTYMode("channel-new") { + t.Fatal("new channel is not attached in PTY mode") + } +} diff --git a/agents/agentd/cmd/agentd/main_tmux_commands_test.go b/agents/agentd/cmd/agentd/main_tmux_commands_test.go new file mode 100644 index 00000000..d9195bc6 --- /dev/null +++ b/agents/agentd/cmd/agentd/main_tmux_commands_test.go @@ -0,0 +1,292 @@ +package main + +import ( + "encoding/json" + "fmt" + "os" + "os/exec" + "path/filepath" + "testing" + "time" + + "github.com/agent-command/agentd/internal/commands" + "github.com/agent-command/agentd/internal/config" + "github.com/agent-command/agentd/internal/protocol" + "github.com/agent-command/agentd/internal/tmux" +) + +func TestExecuteNewWindowAgainstPrivateTmux(t *testing.T) { + agent, client, _ := newPrivateCommandAgent(t) + + result, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{ + Type: "new_window", + Payload: []byte(fmt.Sprintf(`{"window_name":"scratch","cwd":%q}`, t.TempDir())), + }, + }) + if err != nil { + t.Fatalf("execute new_window: %v", err) + } + if result["pane_id"] == "" { + t.Fatalf("new_window result=%+v", result) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + if len(panes) != 2 || panes[1].WindowName != "scratch" { + t.Fatalf("panes after new_window=%+v", panes) + } +} + +func TestExecuteRenameWindowAgainstPrivateTmux(t *testing.T) { + agent, client, _ := newPrivateCommandAgent(t) + if _, err := client.NewWindow("command-test", "scratch", ""); err != nil { + t.Fatal(err) + } + windowIndex := 1 + payload, err := json.Marshal(protocol.RenameWindowPayload{WindowIndex: &windowIndex, Name: "builds"}) + if err != nil { + t.Fatal(err) + } + if _, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "rename_window", Payload: payload}, + }); err != nil { + t.Fatalf("execute rename_window: %v", err) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.WindowIndex == 1 && pane.WindowName == "builds" { + return + } + } + t.Fatalf("renamed window not found: %+v", panes) +} + +func TestExecuteKillWindowAgainstPrivateTmux(t *testing.T) { + agent, client, _ := newPrivateCommandAgent(t) + if _, err := client.NewWindow("command-test", "disposable", ""); err != nil { + t.Fatal(err) + } + windowIndex := 1 + payload, err := json.Marshal(protocol.KillWindowPayload{WindowIndex: &windowIndex}) + if err != nil { + t.Fatal(err) + } + if _, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "kill_window", Payload: payload}, + }); err != nil { + t.Fatalf("execute kill_window: %v", err) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.WindowIndex == 1 { + t.Fatalf("killed window still present: %+v", panes) + } + } +} + +func TestExecuteSelectWindowAgainstPrivateTmux(t *testing.T) { + agent, client, _ := newPrivateCommandAgent(t) + if _, err := client.NewWindow("command-test", "select-me", ""); err != nil { + t.Fatal(err) + } + windowIndex := 0 + payload, err := json.Marshal(protocol.SelectWindowPayload{WindowIndex: &windowIndex}) + if err != nil { + t.Fatal(err) + } + if _, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "select_window", Payload: payload}, + }); err != nil { + t.Fatalf("execute select_window: %v", err) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.WindowIndex == 0 && pane.WindowActive { + return + } + } + t.Fatalf("selected window is not active: %+v", panes) +} + +func TestExecuteSplitPaneAgainstPrivateTmux(t *testing.T) { + agent, client, original := newPrivateCommandAgent(t) + percent := 40 + cwd := t.TempDir() + payload, err := json.Marshal(protocol.SplitPanePayload{ + Direction: "horizontal", + Percent: &percent, + CWD: cwd, + }) + if err != nil { + t.Fatal(err) + } + result, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "split_pane", Payload: payload}, + }) + if err != nil { + t.Fatalf("execute split_pane: %v", err) + } + createdPaneID, _ := result["pane_id"].(string) + if createdPaneID == "" { + t.Fatalf("split_pane result=%+v", result) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.PaneID == createdPaneID { + if pane.WindowIndex != original.WindowIndex || pane.CurrentPath != cwd || pane.PaneWidth >= original.PaneWidth { + t.Fatalf("created split=%+v original=%+v", pane, original) + } + return + } + } + t.Fatalf("created pane %s not found: %+v", createdPaneID, panes) +} + +func TestExecuteSelectPaneAgainstPrivateTmux(t *testing.T) { + agent, client, original := newPrivateCommandAgent(t) + if _, err := client.SplitPaneWithOptions(original.PaneID, "horizontal", nil, ""); err != nil { + t.Fatal(err) + } + payload, err := json.Marshal(protocol.SelectPanePayload{PaneID: original.PaneID}) + if err != nil { + t.Fatal(err) + } + if _, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "select_pane", Payload: payload}, + }); err != nil { + t.Fatalf("execute select_pane: %v", err) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.PaneID == original.PaneID && pane.PaneActive { + return + } + } + t.Fatalf("selected pane is not active: %+v", panes) +} + +func TestExecuteResizePaneAgainstPrivateTmux(t *testing.T) { + agent, client, original := newPrivateCommandAgent(t) + created, err := client.SplitPaneWithOptions(original.PaneID, "horizontal", nil, "") + if err != nil { + t.Fatal(err) + } + width := 50 + payload, err := json.Marshal(protocol.ResizePanePayload{PaneID: created.PaneID, Width: &width}) + if err != nil { + t.Fatal(err) + } + if _, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "resize_pane", Payload: payload}, + }); err != nil { + t.Fatalf("execute resize_pane: %v", err) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.PaneID == created.PaneID { + if pane.PaneWidth != width { + t.Fatalf("resized pane width=%d, want %d", pane.PaneWidth, width) + } + return + } + } + t.Fatalf("resized pane %s not found: %+v", created.PaneID, panes) +} + +func TestExecuteZoomPaneAgainstPrivateTmux(t *testing.T) { + agent, client, original := newPrivateCommandAgent(t) + created, err := client.SplitPaneWithOptions(original.PaneID, "horizontal", nil, "") + if err != nil { + t.Fatal(err) + } + payload, err := json.Marshal(protocol.ZoomPanePayload{PaneID: created.PaneID}) + if err != nil { + t.Fatal(err) + } + if _, err := agent.executeCommand(commands.Dispatch{ + SessionID: "session-1", + Command: protocol.Command{Type: "zoom_pane", Payload: payload}, + }); err != nil { + t.Fatalf("execute zoom_pane: %v", err) + } + panes, err := client.ListPanes() + if err != nil { + t.Fatal(err) + } + for _, pane := range panes { + if pane.PaneID == created.PaneID && pane.WindowZoomed { + return + } + } + t.Fatalf("pane window is not zoomed: %+v", panes) +} + +func newPrivateCommandAgent(t *testing.T) (*Agent, *tmux.Client, tmux.Pane) { + t.Helper() + client := newPrivateCommandTmux(t) + panes, err := client.ListPanes() + if err != nil || len(panes) != 1 { + t.Fatalf("initial panes=%+v err=%v", panes, err) + } + agent := &Agent{ + cfg: &config.Config{Security: config.SecurityConfig{ + AllowSpawn: true, + AllowKill: true, + AllowSendInput: true, + }}, + tmuxClient: client, + sessions: map[string]*SessionState{ + "session-1": {ID: "session-1", PaneID: panes[0].PaneID, TmuxTarget: panes[0].GetTmuxTarget()}, + }, + } + return agent, client, panes[0] +} + +func newPrivateCommandTmux(t *testing.T) *tmux.Client { + t.Helper() + tmuxBin, err := exec.LookPath("tmux") + if err != nil { + t.Skip("tmux is not installed") + } + label := fmt.Sprintf("ac-test-%d", time.Now().UnixNano()) + if output, err := exec.Command(tmuxBin, "-L", label, "new-session", "-d", "-x", "160", "-y", "50", "-s", "command-test", "sleep 30").CombinedOutput(); err != nil { + t.Fatalf("start private tmux: %v: %s", err, output) + } + t.Cleanup(func() { + _ = exec.Command(tmuxBin, "-L", label, "kill-server").Run() + }) + + wrapper := filepath.Join(t.TempDir(), "tmux-private") + script := fmt.Sprintf("#!/bin/sh\nexec %q -L %q \"$@\"\n", tmuxBin, label) + if err := os.WriteFile(wrapper, []byte(script), 0700); err != nil { + t.Fatal(err) + } + return tmux.NewClient(&config.TmuxConfig{Bin: wrapper}) +} diff --git a/agents/agentd/cmd/agentd/main_tmux_test.go b/agents/agentd/cmd/agentd/main_tmux_test.go new file mode 100644 index 00000000..b6223977 --- /dev/null +++ b/agents/agentd/cmd/agentd/main_tmux_test.go @@ -0,0 +1,141 @@ +package main + +import ( + "reflect" + "testing" + "time" + + "github.com/agent-command/agentd/internal/config" + "github.com/agent-command/agentd/internal/protocol" + "github.com/agent-command/agentd/internal/tmux" +) + +func TestSyncPanesIncludesExtendedTmuxMetadata(t *testing.T) { + var sent protocol.SessionsUpsertPayload + agent := &Agent{ + cfg: &config.Config{Tmux: config.TmuxConfig{OptionSessionID: "@ac_session_id"}}, + sessions: make(map[string]*SessionState), + snapshotHash: make(map[string]string), + providerUsageHash: make(map[string]string), + lastPruneAt: time.Now(), + sendMessage: func(messageType string, payload any) error { + if messageType == protocol.TypeSessionsUpsert { + sent = payload.(protocol.SessionsUpsertPayload) + } + return nil + }, + } + + agent.syncPanes([]tmux.Pane{{ + PaneID: "%7", + PanePID: 1234, + SessionID: "session-123", + SessionName: "agents", + WindowName: "worker", + WindowIndex: 2, + PaneIndex: 1, + CurrentCommand: "bash", + PaneActive: true, + WindowActive: false, + WindowZoomed: true, + WindowLayout: "tiled", + PaneWidth: 190, + PaneHeight: 45, + WindowBell: true, + WindowActivity: false, + }}, nil) + + if len(sent.Sessions) != 1 { + t.Fatalf("sessions.upsert count=%d, want 1", len(sent.Sessions)) + } + tmuxMetadata := sent.Sessions[0].Metadata.Tmux + if tmuxMetadata == nil { + t.Fatal("tmux metadata is nil") + } + if !tmuxMetadata.PaneActive || tmuxMetadata.WindowActive || !tmuxMetadata.WindowZoomedFlag || + tmuxMetadata.WindowLayout != "tiled" || tmuxMetadata.PaneWidth != 190 || tmuxMetadata.PaneHeight != 45 || + !tmuxMetadata.WindowBellFlag || tmuxMetadata.WindowActivityFlag { + t.Fatalf("extended tmux metadata=%+v", tmuxMetadata) + } +} + +func TestBuildTmuxTopologySortsSessionsWindowsAndPanes(t *testing.T) { + panes := []tmux.Pane{ + {SessionName: "zeta", SessionAttached: true, WindowIndex: 2, WindowName: "later", PaneID: "%9", PaneIndex: 1}, + {SessionName: "alpha", WindowIndex: 1, WindowName: "main", WindowActive: true, WindowZoomed: true, WindowLayout: "tiled", WindowBell: true, PaneID: "%2", PaneIndex: 1, PaneWidth: 90, PaneHeight: 30, PaneTitle: "second", CurrentCommand: "bash", CurrentPath: "/tmp/two"}, + {SessionName: "alpha", WindowIndex: 1, WindowName: "main", WindowActive: true, WindowZoomed: true, WindowLayout: "tiled", WindowBell: true, PaneID: "%1", PaneIndex: 0, PaneActive: true, PaneWidth: 100, PaneHeight: 30, PaneTitle: "first", CurrentCommand: "codex", CurrentPath: "/tmp/one"}, + {SessionName: "alpha", WindowIndex: 0, WindowName: "early", PaneID: "%0", PaneIndex: 0}, + } + + got := buildTmuxTopology("hook:window-renamed", panes) + if got.Reason != "hook:window-renamed" || len(got.TmuxSessions) != 2 { + t.Fatalf("topology header/sessions=%+v", got) + } + if names := []string{got.TmuxSessions[0].SessionName, got.TmuxSessions[1].SessionName}; !reflect.DeepEqual(names, []string{"alpha", "zeta"}) { + t.Fatalf("session order=%v", names) + } + alpha := got.TmuxSessions[0] + if alpha.Attached || len(alpha.Windows) != 2 || alpha.Windows[0].WindowIndex != 0 || alpha.Windows[1].WindowIndex != 1 { + t.Fatalf("alpha topology=%+v", alpha) + } + mainWindow := alpha.Windows[1] + if !mainWindow.Active || !mainWindow.Zoomed || mainWindow.Layout != "tiled" || !mainWindow.Bell || mainWindow.Activity { + t.Fatalf("window topology=%+v", mainWindow) + } + if paneIDs := []string{mainWindow.Panes[0].PaneID, mainWindow.Panes[1].PaneID}; !reflect.DeepEqual(paneIDs, []string{"%1", "%2"}) { + t.Fatalf("pane order=%v", paneIDs) + } + if !mainWindow.Panes[0].Active || mainWindow.Panes[0].Width != 100 || mainWindow.Panes[0].CurrentCommand != "codex" { + t.Fatalf("pane topology=%+v", mainWindow.Panes[0]) + } +} + +func TestQueueTmuxTopologyDebouncesHooksAndPollsOnlyOnDrift(t *testing.T) { + messages := make(chan protocol.TmuxTopologyPayload, 3) + agent := &Agent{sendMessage: func(messageType string, payload any) error { + if messageType == protocol.TypeTmuxTopology { + messages <- payload.(protocol.TmuxTopologyPayload) + } + return nil + }} + defer agent.stopTmuxTopology() + + panes := []tmux.Pane{{SessionName: "agents", WindowIndex: 0, PaneID: "%1", PaneWidth: 80}} + agent.queueTmuxTopology("hook:after-split-window", panes) + time.Sleep(100 * time.Millisecond) + agent.queueTmuxTopology("hook:window-renamed", panes) + + select { + case message := <-messages: + t.Fatalf("topology emitted before 500ms debounce: %+v", message) + case <-time.After(450 * time.Millisecond): + } + + var first protocol.TmuxTopologyPayload + select { + case first = <-messages: + case <-time.After(250 * time.Millisecond): + t.Fatal("timed out waiting for debounced topology") + } + if first.Reason != "hook:window-renamed" { + t.Fatalf("coalesced reason=%q", first.Reason) + } + + agent.queueTmuxTopology("poll", panes) + select { + case message := <-messages: + t.Fatalf("unchanged poll emitted topology: %+v", message) + case <-time.After(550 * time.Millisecond): + } + + panes[0].PaneWidth = 120 + agent.queueTmuxTopology("poll", panes) + select { + case message := <-messages: + if message.Reason != "poll" || message.TmuxSessions[0].Windows[0].Panes[0].Width != 120 { + t.Fatalf("drift topology=%+v", message) + } + case <-time.After(750 * time.Millisecond): + t.Fatal("timed out waiting for poll drift topology") + } +} diff --git a/agents/agentd/cmd/agentd/tmux_topology.go b/agents/agentd/cmd/agentd/tmux_topology.go new file mode 100644 index 00000000..2f8e142e --- /dev/null +++ b/agents/agentd/cmd/agentd/tmux_topology.go @@ -0,0 +1,148 @@ +package main + +import ( + "encoding/json" + "log" + "sort" + "time" + + "github.com/agent-command/agentd/internal/protocol" + "github.com/agent-command/agentd/internal/tmux" +) + +const tmuxTopologyDebounce = 500 * time.Millisecond + +func buildTmuxTopology(reason string, panes []tmux.Pane) protocol.TmuxTopologyPayload { + type windowKey struct { + sessionName string + windowIndex int + } + + sessionsByName := make(map[string]*protocol.TmuxTopologySession) + windowsByKey := make(map[windowKey]int) + for _, pane := range panes { + session := sessionsByName[pane.SessionName] + if session == nil { + session = &protocol.TmuxTopologySession{ + SessionName: pane.SessionName, + Windows: []protocol.TmuxTopologyWindow{}, + } + sessionsByName[pane.SessionName] = session + } + session.Attached = session.Attached || pane.SessionAttached + + key := windowKey{sessionName: pane.SessionName, windowIndex: pane.WindowIndex} + windowIndex, exists := windowsByKey[key] + if !exists { + session.Windows = append(session.Windows, protocol.TmuxTopologyWindow{ + WindowIndex: pane.WindowIndex, + WindowName: pane.WindowName, + Active: pane.WindowActive, + Zoomed: pane.WindowZoomed, + Layout: pane.WindowLayout, + Bell: pane.WindowBell, + Activity: pane.WindowActivity, + Panes: []protocol.TmuxTopologyPane{}, + }) + windowIndex = len(session.Windows) - 1 + windowsByKey[key] = windowIndex + } + window := &session.Windows[windowIndex] + window.Panes = append(window.Panes, protocol.TmuxTopologyPane{ + PaneID: pane.PaneID, + PaneIndex: pane.PaneIndex, + Active: pane.PaneActive, + Width: pane.PaneWidth, + Height: pane.PaneHeight, + Title: pane.PaneTitle, + CurrentCommand: pane.CurrentCommand, + CurrentPath: pane.CurrentPath, + }) + } + + sessions := make([]protocol.TmuxTopologySession, 0, len(sessionsByName)) + for _, session := range sessionsByName { + sort.Slice(session.Windows, func(i, j int) bool { + return session.Windows[i].WindowIndex < session.Windows[j].WindowIndex + }) + for index := range session.Windows { + sort.Slice(session.Windows[index].Panes, func(i, j int) bool { + return session.Windows[index].Panes[i].PaneIndex < session.Windows[index].Panes[j].PaneIndex + }) + } + sessions = append(sessions, *session) + } + sort.Slice(sessions, func(i, j int) bool { + return sessions[i].SessionName < sessions[j].SessionName + }) + + return protocol.TmuxTopologyPayload{Reason: reason, TmuxSessions: sessions} +} + +func tmuxTopologyHash(payload protocol.TmuxTopologyPayload) string { + data, err := json.Marshal(payload.TmuxSessions) + if err != nil { + return "" + } + return hashString(string(data)) +} + +func (a *Agent) queueTmuxTopology(reason string, panes []tmux.Pane) { + payload := buildTmuxTopology(reason, panes) + hash := tmuxTopologyHash(payload) + + a.tmuxTopologyMu.Lock() + defer a.tmuxTopologyMu.Unlock() + if a.tmuxTopologyStopped { + return + } + if reason == "poll" && (hash == a.lastTmuxTopologyHash || hash == a.pendingTmuxTopologyHash) { + return + } + + a.pendingTmuxTopology = &payload + a.pendingTmuxTopologyHash = hash + a.tmuxTopologyGeneration++ + generation := a.tmuxTopologyGeneration + if a.tmuxTopologyTimer != nil { + a.tmuxTopologyTimer.Stop() + } + a.tmuxTopologyTimer = time.AfterFunc(tmuxTopologyDebounce, func() { + a.emitPendingTmuxTopology(generation) + }) +} + +func (a *Agent) emitPendingTmuxTopology(generation uint64) { + a.tmuxTopologyMu.Lock() + if a.tmuxTopologyStopped || generation != a.tmuxTopologyGeneration || a.pendingTmuxTopology == nil { + a.tmuxTopologyMu.Unlock() + return + } + payload := *a.pendingTmuxTopology + hash := a.pendingTmuxTopologyHash + a.pendingTmuxTopology = nil + a.pendingTmuxTopologyHash = "" + a.tmuxTopologyTimer = nil + a.tmuxTopologyMu.Unlock() + + if err := a.send(protocol.TypeTmuxTopology, payload); err != nil { + log.Printf("Failed to emit tmux topology (%s): %v", payload.Reason, err) + return + } + a.tmuxTopologyMu.Lock() + a.lastTmuxTopologyHash = hash + a.tmuxTopologyMu.Unlock() +} + +func (a *Agent) stopTmuxTopology() { + a.tmuxTopologyMu.Lock() + defer a.tmuxTopologyMu.Unlock() + a.tmuxTopologyStopped = true + a.tmuxTopologyGeneration++ + if a.tmuxTopologyTimer != nil { + a.tmuxTopologyTimer.Stop() + a.tmuxTopologyTimer = nil + } + a.pendingTmuxTopology = nil + a.pendingTmuxTopologyHash = "" +} diff --git a/agents/agentd/internal/protocol/command.go b/agents/agentd/internal/protocol/command.go index 85c99700..956a9f60 100644 --- a/agents/agentd/internal/protocol/command.go +++ b/agents/agentd/internal/protocol/command.go @@ -46,6 +46,44 @@ type RenameSessionPayload struct { Title string `json:"title"` } +type NewWindowPayload struct { + WindowName string `json:"window_name,omitempty"` + CWD string `json:"cwd,omitempty"` +} + +type RenameWindowPayload struct { + WindowIndex *int `json:"window_index"` + Name string `json:"name"` +} + +type KillWindowPayload struct { + WindowIndex *int `json:"window_index"` +} + +type SelectWindowPayload struct { + WindowIndex *int `json:"window_index"` +} + +type SplitPanePayload struct { + Direction string `json:"direction"` + Percent *int `json:"percent,omitempty"` + CWD string `json:"cwd,omitempty"` +} + +type SelectPanePayload struct { + PaneID string `json:"pane_id"` +} + +type ResizePanePayload struct { + PaneID string `json:"pane_id"` + Width *int `json:"width,omitempty"` + Height *int `json:"height,omitempty"` +} + +type ZoomPanePayload struct { + PaneID string `json:"pane_id"` +} + type SpawnSessionMemoryFile struct { BaseDir string `json:"base_dir"` RelativePath string `json:"relative_path"` diff --git a/agents/agentd/internal/protocol/messages.go b/agents/agentd/internal/protocol/messages.go index 95faad80..b557f6b8 100644 --- a/agents/agentd/internal/protocol/messages.go +++ b/agents/agentd/internal/protocol/messages.go @@ -41,6 +41,7 @@ const ( TypeTerminalReadOnly = "terminal.readonly" TypeTerminalLag = "terminal.lag" TypeTerminalAudit = "terminal.audit" + TypeTmuxTopology = "tmux.topology" ) // EnvelopeHeader supports direction-agnostic inspection before decoding a @@ -74,7 +75,7 @@ type AgentMessage[P any] struct { V int `json:"v"` Type string `json:"type"` TS string `json:"ts"` - Seq int64 `json:"seq"` + Seq int64 `json:"seq,omitempty"` Payload P `json:"payload"` } diff --git a/agents/agentd/internal/protocol/session.go b/agents/agentd/internal/protocol/session.go index 23f16ee5..ace25df3 100644 --- a/agents/agentd/internal/protocol/session.go +++ b/agents/agentd/internal/protocol/session.go @@ -28,14 +28,22 @@ func (value *NullableString) UnmarshalJSON(data []byte) error { // TmuxPaneIdentity is the stable tmux identity carried in session metadata. // PaneID and Target are additive; older messages use the top-level upsert fields. type TmuxPaneIdentity struct { - PaneID string `json:"pane_id,omitempty"` - Target string `json:"target,omitempty"` - SessionName string `json:"session_name,omitempty"` - WindowName string `json:"window_name,omitempty"` - WindowIndex int `json:"window_index,omitempty"` - PaneIndex int `json:"pane_index,omitempty"` - PanePID int `json:"pane_pid,omitempty"` - CurrentCommand string `json:"current_command,omitempty"` + PaneID string `json:"pane_id,omitempty"` + Target string `json:"target,omitempty"` + SessionName string `json:"session_name,omitempty"` + WindowName string `json:"window_name,omitempty"` + WindowIndex int `json:"window_index,omitempty"` + PaneIndex int `json:"pane_index,omitempty"` + PanePID int `json:"pane_pid,omitempty"` + CurrentCommand string `json:"current_command,omitempty"` + PaneActive bool `json:"pane_active"` + WindowActive bool `json:"window_active"` + WindowZoomedFlag bool `json:"window_zoomed_flag"` + WindowLayout string `json:"window_layout,omitempty"` + PaneWidth int `json:"pane_width"` + PaneHeight int `json:"pane_height"` + WindowBellFlag bool `json:"window_bell_flag"` + WindowActivityFlag bool `json:"window_activity_flag"` } type GitStatusMetadata struct { diff --git a/agents/agentd/internal/protocol/tmux.go b/agents/agentd/internal/protocol/tmux.go new file mode 100644 index 00000000..50341b47 --- /dev/null +++ b/agents/agentd/internal/protocol/tmux.go @@ -0,0 +1,34 @@ +package protocol + +type TmuxTopologyPayload struct { + Reason string `json:"reason"` + TmuxSessions []TmuxTopologySession `json:"tmux_sessions"` +} + +type TmuxTopologySession struct { + SessionName string `json:"session_name"` + Attached bool `json:"attached"` + Windows []TmuxTopologyWindow `json:"windows"` +} + +type TmuxTopologyWindow struct { + WindowIndex int `json:"window_index"` + WindowName string `json:"window_name"` + Active bool `json:"active"` + Zoomed bool `json:"zoomed"` + Layout string `json:"layout"` + Bell bool `json:"bell"` + Activity bool `json:"activity"` + Panes []TmuxTopologyPane `json:"panes"` +} + +type TmuxTopologyPane struct { + PaneID string `json:"pane_id"` + PaneIndex int `json:"pane_index"` + Active bool `json:"active"` + Width int `json:"width"` + Height int `json:"height"` + Title string `json:"title"` + CurrentCommand string `json:"current_command"` + CurrentPath string `json:"current_path"` +} diff --git a/agents/agentd/internal/tmux/hooks.go b/agents/agentd/internal/tmux/hooks.go new file mode 100644 index 00000000..49e5eb1d --- /dev/null +++ b/agents/agentd/internal/tmux/hooks.go @@ -0,0 +1,220 @@ +package tmux + +import ( + "context" + "errors" + "fmt" + "log" + "os" + "os/exec" + "regexp" + "strconv" + "strings" + "sync" + "time" +) + +var tmuxVersionPattern = regexp.MustCompile(`(?:^|[^0-9])(\d+)\.(\d+)`) + +var ErrTmuxHooksUnsupported = errors.New("tmux hooks are unsupported") + +var topologyHookNames = []string{ + "after-new-window", + "after-kill-pane", + "after-split-window", + "window-renamed", + "session-renamed", + "session-created", + "session-closed", + "after-resize-pane", +} + +type savedHook struct { + name string + commands []string +} + +type HookManager struct { + client *Client + cancel context.CancelFunc + onHook func(string) + saved []savedHook + wg sync.WaitGroup + mu sync.Mutex + stopped bool +} + +func tmuxVersionSupportsHooks(version string) bool { + match := tmuxVersionPattern.FindStringSubmatch(version) + if len(match) != 3 { + return false + } + major, majorErr := strconv.Atoi(match[1]) + minor, minorErr := strconv.Atoi(match[2]) + if majorErr != nil || minorErr != nil { + return false + } + return major > 2 || (major == 2 && minor >= 4) +} + +func (c *Client) StartTopologyHooks(onHook func(string)) (*HookManager, error) { + version, err := c.tmuxVersion() + if err != nil { + return nil, fmt.Errorf("detect tmux hook support: %w", err) + } + if !tmuxVersionSupportsHooks(version) { + return nil, fmt.Errorf("%w: %s", ErrTmuxHooksUnsupported, version) + } + + ctx, cancel := context.WithCancel(context.Background()) + manager := &HookManager{client: c, cancel: cancel, onHook: onHook} + for index, hookName := range topologyHookNames { + commands, err := c.hookCommands(hookName) + if err != nil { + if strings.Contains(strings.ToLower(err.Error()), "invalid option") { + log.Printf("tmux hook %s is unsupported; skipping", hookName) + continue + } + manager.Close() + return nil, fmt.Errorf("inspect tmux hook %s: %w", hookName, err) + } + + signal := fmt.Sprintf("ac-agentd-%d-%d-%d-%s", os.Getpid(), time.Now().UnixNano(), index, hookName) + if err := c.setHook(hookName, "wait-for -S "+signal, true); err != nil { + if strings.Contains(strings.ToLower(err.Error()), "invalid option") { + log.Printf("tmux hook %s is unsupported; skipping", hookName) + continue + } + manager.Close() + return nil, fmt.Errorf("register tmux hook %s: %w", hookName, err) + } + manager.saved = append(manager.saved, savedHook{name: hookName, commands: commands}) + manager.wg.Add(1) + go manager.watch(ctx, hookName, signal) + } + if len(manager.saved) == 0 { + manager.Close() + return nil, fmt.Errorf("%w: no supported topology hooks", ErrTmuxHooksUnsupported) + } + return manager, nil +} + +func (m *HookManager) watch(ctx context.Context, hookName, signal string) { + defer m.wg.Done() + for { + if err := m.client.waitFor(ctx, signal); err != nil { + if ctx.Err() == nil { + log.Printf("tmux hook watcher stopped (%s): %v", hookName, err) + } + return + } + + m.mu.Lock() + stopped := m.stopped + onHook := m.onHook + m.mu.Unlock() + if stopped { + return + } + if onHook != nil { + onHook(hookName) + } + } +} + +func (m *HookManager) Close() { + if m == nil { + return + } + m.mu.Lock() + if m.stopped { + m.mu.Unlock() + return + } + m.stopped = true + m.mu.Unlock() + + for _, hook := range m.saved { + if err := m.client.restoreHook(hook); err != nil { + log.Printf("failed to restore tmux hook %s: %v", hook.name, err) + } + } + m.cancel() + m.wg.Wait() +} + +func (c *Client) tmuxVersion() (string, error) { + output, err := exec.Command(c.cfg.Bin, "-V").CombinedOutput() + if err != nil { + return "", commandError(err, output) + } + return strings.TrimSpace(string(output)), nil +} + +func (c *Client) hookCommands(hookName string) ([]string, error) { + output, err := c.hookOutput(context.Background(), "show-hooks", "-g", hookName) + if err != nil { + return nil, err + } + prefix := hookName + "[" + var commands []string + for _, line := range strings.Split(strings.TrimSpace(string(output)), "\n") { + line = strings.TrimSpace(line) + if line == "" || line == hookName { + continue + } + if !strings.HasPrefix(line, prefix) { + continue + } + separator := strings.IndexByte(line, ' ') + if separator >= 0 && separator+1 < len(line) { + commands = append(commands, line[separator+1:]) + } + } + return commands, nil +} + +func (c *Client) setHook(hookName, command string, appendCommand bool) error { + flag := "-g" + if appendCommand { + flag = "-ag" + } + _, err := c.hookOutput(context.Background(), "set-hook", flag, hookName, command) + return err +} + +func (c *Client) restoreHook(hook savedHook) error { + if _, err := c.hookOutput(context.Background(), "set-hook", "-gu", hook.name); err != nil { + return err + } + for index, command := range hook.commands { + if err := c.setHook(hook.name, command, index > 0); err != nil { + return err + } + } + return nil +} + +func (c *Client) waitFor(ctx context.Context, signal string) error { + _, err := c.hookOutput(ctx, "wait-for", signal) + return err +} + +func (c *Client) hookOutput(ctx context.Context, args ...string) ([]byte, error) { + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + output, err := exec.CommandContext(ctx, c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return nil, commandError(err, output) + } + return output, nil +} + +func commandError(err error, output []byte) error { + message := strings.TrimSpace(string(output)) + if message == "" { + return err + } + return fmt.Errorf("%w: %s", err, message) +} diff --git a/agents/agentd/internal/tmux/pty_bridge_test.go b/agents/agentd/internal/tmux/pty_bridge_test.go index 29e4b875..519c4a59 100644 --- a/agents/agentd/internal/tmux/pty_bridge_test.go +++ b/agents/agentd/internal/tmux/pty_bridge_test.go @@ -11,7 +11,7 @@ import ( func TestPtyBridgeCreatesGroupedReadOnlyViewerAtRequestedSize(t *testing.T) { runner := newFakeTmuxRunner() - runner.outputs["display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}"] = []byte("agents\t2\t1\n") + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") bridge, err := newViewerPTYBridge(runner, viewerPTYOptions{ ChannelID: "channel-1", @@ -56,7 +56,7 @@ func TestViewerSessionNameAvoidsSanitizationCollisions(t *testing.T) { func TestTerminalManagerEnforcesReadOnlyAtPTYAndReattachesOnControlTransfer(t *testing.T) { runner := newFakeTmuxRunner() - targetKey := "display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}" + targetKey := "display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}" runner.outputs[targetKey] = []byte("agents\t2\t1\n") manager := newTerminalManagerWithRunner(nil, runner, t.TempDir()) manager.SetPerViewerPTY(true) @@ -102,7 +102,7 @@ func TestTerminalManagerEnforcesReadOnlyAtPTYAndReattachesOnControlTransfer(t *t func TestViewerPTYBridgeCoalescesReadsBeforeFanout(t *testing.T) { runner := newFakeTmuxRunner() - runner.outputs["display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}"] = []byte("agents\t2\t1\n") + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") outputs := make(chan string, 2) bridge, err := newViewerPTYBridge(runner, viewerPTYOptions{ ChannelID: "channel-1", @@ -145,7 +145,7 @@ func TestViewerPTYBridgeCoalescesReadsBeforeFanout(t *testing.T) { func TestTerminalResumeTokenSurvivesManagerRestartAndSeedsCapture(t *testing.T) { runner := newFakeTmuxRunner() - targetKey := "display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}" + targetKey := "display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}" runner.outputs[targetKey] = []byte("agents\t2\t1\n") runner.outputs["capture-pane -p -e -t %7"] = []byte("restored screen") @@ -191,7 +191,7 @@ func TestTerminalResumeTokenSurvivesManagerRestartAndSeedsCapture(t *testing.T) func TestTerminalResumeTokenReattachesAfterWebSocketDetach(t *testing.T) { runner := newFakeTmuxRunner() - runner.outputs["display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}"] = []byte("agents\t2\t1\n") + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") runner.outputs["capture-pane -p -e -t %7"] = []byte("current screen") manager := newTerminalManagerWithRunner(nil, runner, t.TempDir()) defer manager.Close() @@ -214,9 +214,58 @@ func TestTerminalResumeTokenReattachesAfterWebSocketDetach(t *testing.T) { } } +func TestTerminalResumeSupersedesStaleAttachedChannel(t *testing.T) { + runner := newFakeTmuxRunner() + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") + runner.outputs["capture-pane -p -e -t %7"] = []byte("current screen") + manager := newTerminalManagerWithRunner(nil, runner, t.TempDir()) + defer manager.Close() + + attached, err := manager.AttachWithOptions("channel-old", "%7", AttachOptions{SessionID: "session-1"}) + if err != nil { + t.Fatalf("initial attach: %v", err) + } + manager.MarkChannelsStale() + + resumed, err := manager.AttachWithOptions("channel-new", "%7", AttachOptions{ + SessionID: "session-1", + ResumeToken: attached.ResumeToken, + }) + if err != nil { + t.Fatalf("resume stale channel: %v", err) + } + if !resumed.Resumed || resumed.ResumeToken != attached.ResumeToken || resumed.ReadOnly { + t.Fatalf("resume result=%+v", resumed) + } + if _, exists := manager.channelToPane["channel-old"]; exists { + t.Fatal("stale channel remains attached") + } + if viewer := manager.viewerByChannel["channel-new"]; viewer == nil || viewer.channelID != "channel-new" { + t.Fatalf("new channel viewer=%+v", viewer) + } +} + +func TestTerminalResumeDoesNotSupersedeActiveChannel(t *testing.T) { + runner := newFakeTmuxRunner() + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") + manager := newTerminalManagerWithRunner(nil, runner, t.TempDir()) + defer manager.Close() + + attached, err := manager.AttachWithOptions("channel-active", "%7", AttachOptions{SessionID: "session-1"}) + if err != nil { + t.Fatalf("initial attach: %v", err) + } + if _, err := manager.AttachWithOptions("channel-new", "%7", AttachOptions{ + SessionID: "session-1", + ResumeToken: attached.ResumeToken, + }); err == nil || err.Error() != "resume token is already attached" { + t.Fatalf("active resume error=%v", err) + } +} + func TestTerminalSweeperReapsDetachedViewerAndOrphanGroup(t *testing.T) { runner := newFakeTmuxRunner() - runner.outputs["display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}"] = []byte("agents\t2\t1\n") + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") manager := newTerminalManagerWithRunner(nil, runner, t.TempDir()) defer manager.Close() @@ -249,7 +298,7 @@ func TestTerminalSweeperReapsDetachedViewerAndOrphanGroup(t *testing.T) { func TestTerminalManagerEmitsAttachDetachAndControlAuditEvents(t *testing.T) { runner := newFakeTmuxRunner() - runner.outputs["display-message -p -t %7 #{session_name}\\t#{window_index}\\t#{pane_index}"] = []byte("agents\t2\t1\n") + runner.outputs["display-message -p -t %7 #{session_name}\t#{window_index}\t#{pane_index}"] = []byte("agents\t2\t1\n") manager := newTerminalManagerWithRunner(nil, runner, t.TempDir()) defer manager.Close() var events []TerminalAuditEvent diff --git a/agents/agentd/internal/tmux/terminal.go b/agents/agentd/internal/tmux/terminal.go index fa19d7e8..b4512578 100644 --- a/agents/agentd/internal/tmux/terminal.go +++ b/agents/agentd/internal/tmux/terminal.go @@ -83,6 +83,7 @@ type terminalViewer struct { readOnly bool bridge *viewerPTYBridge detachedAt time.Time + stale bool } // AttachOptions contains additive terminal.attach fields. @@ -228,6 +229,17 @@ func (m *TerminalManager) SetAuditHandler(handler func(TerminalAuditEvent)) { m.onAudit = handler } +// MarkChannelsStale records that the control-plane connection owning the +// current channel IDs is gone. A valid resume attach may then supersede its +// prior channel without allowing an active connection to steal the token. +func (m *TerminalManager) MarkChannelsStale() { + m.mu.Lock() + defer m.mu.Unlock() + for _, viewer := range m.viewerByChannel { + viewer.stale = true + } +} + // Attach creates or reuses a bridge for a pane and attaches a channel. // In PTY mode, returns empty string for fifoPath (PTY doesn't need pipe-pane). // Returns the fifo path (empty for PTY), a boolean indicating whether this is the first @@ -298,12 +310,12 @@ func (m *TerminalManager) attachViewerPTY(channelID, paneID string, opts AttachO if resumed { previous = m.viewerByToken[opts.ResumeToken] if previous != nil { - if previous.channelID != "" { - return AttachResult{}, fmt.Errorf("resume token is already attached") - } if previous.paneID != paneID || (previous.sessionID != "" && opts.SessionID != "" && previous.sessionID != opts.SessionID) { return AttachResult{}, fmt.Errorf("resume token does not match terminal target") } + if previous.channelID != "" && !previous.stale { + return AttachResult{}, fmt.Errorf("resume token is already attached") + } } else { stored, err := m.runner.Output("show-options", "-p", "-v", "-t", paneID, resumeOptionName(opts.ResumeToken)) if err != nil || strings.TrimSpace(string(stored)) != opts.ResumeToken { @@ -319,6 +331,14 @@ func (m *TerminalManager) attachViewerPTY(channelID, paneID string, opts AttachO } initialOutput = capture } + if previous != nil && previous.channelID != "" { + m.supersedeStaleViewerLocked(previous) + } + if controllerID := m.paneController[paneID]; controllerID != "" { + if controller := m.viewerByChannel[controllerID]; controller != nil && controller.stale { + delete(m.paneController, paneID) + } + } readonly := m.paneController[paneID] != "" if !readonly { @@ -362,6 +382,7 @@ func (m *TerminalManager) attachViewerPTY(channelID, paneID string, opts AttachO viewer.readOnly = readonly viewer.bridge = bridge viewer.detachedAt = time.Time{} + viewer.stale = false m.viewerByChannel[channelID] = viewer m.viewerByToken[resumeToken] = viewer m.channelToPane[channelID] = paneID @@ -375,6 +396,29 @@ func (m *TerminalManager) attachViewerPTY(channelID, paneID string, opts AttachO return AttachResult{First: true, PTY: true, ReadOnly: readonly, ResumeToken: resumeToken, Resumed: resumed}, nil } +func (m *TerminalManager) supersedeStaleViewerLocked(viewer *terminalViewer) { + channelID := viewer.channelID + sessionID := viewer.sessionID + paneID := viewer.paneID + delete(m.viewerByChannel, channelID) + delete(m.channelToPane, channelID) + delete(m.channelSession, channelID) + delete(m.channelToPTY, channelID) + delete(m.channelPerViewer, channelID) + delete(m.channelReadOnly, channelID) + if m.paneController[viewer.paneID] == channelID { + delete(m.paneController, viewer.paneID) + } + if viewer.bridge != nil { + viewer.bridge.close(false) + viewer.bridge = nil + } + viewer.channelID = "" + viewer.detachedAt = time.Now() + viewer.stale = false + m.emitAudit(TerminalAuditEvent{Action: "detach", ChannelID: channelID, SessionID: sessionID, PaneID: paneID}) +} + func (m *TerminalManager) emitAudit(event TerminalAuditEvent) { if m.onAudit != nil { m.onAudit(event) @@ -1044,21 +1088,26 @@ func (c *Client) StartPipePaneCmd(paneID, cmd string) error { // ResizePane resizes a tmux pane func (c *Client) ResizePane(paneID string, cols, rows int) error { - // First set the width - argsX := []string{"resize-pane", "-t", paneID, "-x", fmt.Sprintf("%d", cols)} - if c.cfg.Socket != "" { - argsX = append([]string{"-S", c.cfg.Socket}, argsX...) - } - if err := runTmuxCommand(c.cfg.Bin, argsX); err != nil { - return err - } - - // Then set the height - argsY := []string{"resize-pane", "-t", paneID, "-y", fmt.Sprintf("%d", rows)} - if c.cfg.Socket != "" { - argsY = append([]string{"-S", c.cfg.Socket}, argsY...) + if cols <= 0 && rows <= 0 { + return fmt.Errorf("at least one pane dimension must be positive") + } + for _, dimension := range []struct { + flag string + value int + }{{flag: "-x", value: cols}, {flag: "-y", value: rows}} { + if dimension.value <= 0 { + continue + } + args := []string{"resize-pane", "-t", paneID, dimension.flag, fmt.Sprintf("%d", dimension.value)} + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return fmt.Errorf("failed to resize pane: %w", commandError(err, output)) + } } - return runTmuxCommand(c.cfg.Bin, argsY) + return nil } func runTmuxCommand(bin string, args []string) error { diff --git a/agents/agentd/internal/tmux/tmux.go b/agents/agentd/internal/tmux/tmux.go index a9f8c811..06e055d9 100644 --- a/agents/agentd/internal/tmux/tmux.go +++ b/agents/agentd/internal/tmux/tmux.go @@ -26,6 +26,15 @@ type Pane struct { ProviderOverride string SessionID string ParentSessionID string + PaneActive bool + WindowActive bool + WindowZoomed bool + WindowLayout string + PaneWidth int + PaneHeight int + WindowBell bool + WindowActivity bool + SessionAttached bool } type Client struct { @@ -47,7 +56,7 @@ func (c *Client) ListPanes() ([]Pane, error) { if sessionOption == "" { sessionOption = "@ac_session_id" } - format := "#{pane_id}\t#{pane_pid}\t#{session_name}\t#{window_name}\t#{window_index}\t#{pane_index}\t#{pane_current_path}\t#{pane_current_command}\t#{pane_title}\t#{@ac_provider}\t#{" + sessionOption + "}\t#{@ac_parent_session_id}" + format := "#{pane_id}\t#{pane_pid}\t#{session_name}\t#{window_name}\t#{window_index}\t#{pane_index}\t#{pane_current_path}\t#{pane_current_command}\t#{pane_title}\t#{@ac_provider}\t#{" + sessionOption + "}\t#{@ac_parent_session_id}\t#{pane_active}\t#{window_active}\t#{window_zoomed_flag}\t#{window_layout}\t#{pane_width}\t#{pane_height}\t#{window_bell_flag}\t#{window_activity_flag}\t#{session_attached}" args := []string{"list-panes", "-a", "-F", format} if c.cfg.Socket != "" { @@ -107,6 +116,35 @@ func parsePaneLine(line string) (Pane, bool) { if len(fields) > 11 { pane.ParentSessionID = fields[11] } + if len(fields) > 12 { + pane.PaneActive = fields[12] == "1" + } + if len(fields) > 13 { + pane.WindowActive = fields[13] == "1" + } + if len(fields) > 14 { + pane.WindowZoomed = fields[14] == "1" + } + if len(fields) > 15 { + pane.WindowLayout = fields[15] + } + if len(fields) > 16 { + fmt.Sscanf(fields[16], "%d", &pane.PaneWidth) + } + if len(fields) > 17 { + fmt.Sscanf(fields[17], "%d", &pane.PaneHeight) + } + if len(fields) > 18 { + pane.WindowBell = fields[18] == "1" + } + if len(fields) > 19 { + pane.WindowActivity = fields[19] == "1" + } + if len(fields) > 20 { + var attachedClients int + fmt.Sscanf(fields[20], "%d", &attachedClients) + pane.SessionAttached = attachedClients > 0 + } return pane, true } @@ -409,33 +447,89 @@ func (c *Client) NewWindow(session, windowName, startDir string) (string, error) return created.PaneID, nil } -func (c *Client) CreateWindow(session, windowName, startDir string) (CreatedPane, error) { - args := []string{"new-window", "-t", session, "-n", windowName, "-c", startDir, "-P", "-F", "#{pane_id}\t#{session_name}:#{window_index}.#{pane_index}"} +func (c *Client) RenameWindow(target, name string) error { + args := []string{"rename-window", "-t", target, name} if c.cfg.Socket != "" { args = append([]string{"-S", c.cfg.Socket}, args...) } + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return fmt.Errorf("failed to rename window: %w", commandError(err, output)) + } + return nil +} - cmd := exec.Command(c.cfg.Bin, args...) - output, err := cmd.Output() +func (c *Client) KillWindow(target string) error { + args := []string{"kill-window", "-t", target} + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() if err != nil { - return CreatedPane{}, fmt.Errorf("failed to create window: %w", err) + return fmt.Errorf("failed to kill window: %w", commandError(err, output)) } + return nil +} - return parseCreatedPane(output) +func (c *Client) SelectWindow(target string) error { + args := []string{"select-window", "-t", target} + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return fmt.Errorf("failed to select window: %w", commandError(err, output)) + } + return nil } -func (c *Client) SplitPane(target, paneName, startDir string) (CreatedPane, error) { - args := []string{"split-window", "-t", target, "-c", startDir, "-P", "-F", "#{pane_id}\t#{session_name}:#{window_index}.#{pane_index}"} +func (c *Client) SelectPane(paneID string) error { + args := []string{"select-pane", "-t", paneID} if c.cfg.Socket != "" { args = append([]string{"-S", c.cfg.Socket}, args...) } + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return fmt.Errorf("failed to select pane: %w", commandError(err, output)) + } + return nil +} - cmd := exec.Command(c.cfg.Bin, args...) - output, err := cmd.Output() +func (c *Client) ZoomPane(paneID string) error { + args := []string{"resize-pane", "-Z", "-t", paneID} + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() if err != nil { - return CreatedPane{}, fmt.Errorf("failed to split pane: %w", err) + return fmt.Errorf("failed to toggle pane zoom: %w", commandError(err, output)) + } + return nil +} + +func (c *Client) CreateWindow(session, windowName, startDir string) (CreatedPane, error) { + args := []string{"new-window", "-t", session} + if windowName != "" { + args = append(args, "-n", windowName) } - created, err := parseCreatedPane(output) + if startDir != "" { + args = append(args, "-c", startDir) + } + args = append(args, "-P", "-F", "#{pane_id}\t#{session_name}:#{window_index}.#{pane_index}") + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return CreatedPane{}, fmt.Errorf("failed to create window: %w", commandError(err, output)) + } + + return parseCreatedPane(output) +} + +func (c *Client) SplitPane(target, paneName, startDir string) (CreatedPane, error) { + created, err := c.SplitPaneWithOptions(target, "vertical", nil, startDir) if err != nil { return CreatedPane{}, err } @@ -456,6 +550,34 @@ func (c *Client) SplitPane(target, paneName, startDir string) (CreatedPane, erro return created, nil } +func (c *Client) SplitPaneWithOptions(target, direction string, percent *int, startDir string) (CreatedPane, error) { + args := []string{"split-window", "-t", target} + switch direction { + case "horizontal": + args = append(args, "-h") + case "vertical": + args = append(args, "-v") + default: + return CreatedPane{}, fmt.Errorf("direction must be horizontal or vertical") + } + if percent != nil { + args = append(args, "-l", fmt.Sprintf("%d%%", *percent)) + } + if startDir != "" { + args = append(args, "-c", startDir) + } + args = append(args, "-P", "-F", "#{pane_id}\t#{session_name}:#{window_index}.#{pane_index}") + if c.cfg.Socket != "" { + args = append([]string{"-S", c.cfg.Socket}, args...) + } + + output, err := exec.Command(c.cfg.Bin, args...).CombinedOutput() + if err != nil { + return CreatedPane{}, fmt.Errorf("failed to split pane: %w", commandError(err, output)) + } + return parseCreatedPane(output) +} + func parseCreatedPane(output []byte) (CreatedPane, error) { parts := strings.SplitN(strings.TrimSpace(string(output)), "\t", 2) if len(parts) != 2 || parts[0] == "" || parts[1] == "" { diff --git a/agents/agentd/internal/tmux/tmux_test.go b/agents/agentd/internal/tmux/tmux_test.go index cc1f99bb..f79c919d 100644 --- a/agents/agentd/internal/tmux/tmux_test.go +++ b/agents/agentd/internal/tmux/tmux_test.go @@ -1,6 +1,19 @@ package tmux -import "testing" +import ( + "bufio" + "fmt" + "os" + "os/exec" + "path/filepath" + "reflect" + "strconv" + "strings" + "testing" + "time" + + "github.com/agent-command/agentd/internal/config" +) func TestParsePaneLineIncludesSessionID(t *testing.T) { pane, ok := parsePaneLine("%7\t1234\tagents\tworker\t2\t1\t/tmp/repo\tcodex\tAgent\tcodex\tsession-123\tparent-456") @@ -17,3 +30,195 @@ func TestParsePaneLineIncludesSessionID(t *testing.T) { t.Fatalf("parent session id=%q", pane.ParentSessionID) } } + +func TestTmuxVersionSupportsHooks(t *testing.T) { + tests := []struct { + version string + want bool + }{ + {version: "tmux 2.3", want: false}, + {version: "tmux 2.4", want: true}, + {version: "tmux 3.4", want: true}, + {version: "tmux next-3.5", want: true}, + {version: "not tmux", want: false}, + } + for _, test := range tests { + t.Run(test.version, func(t *testing.T) { + if got := tmuxVersionSupportsHooks(test.version); got != test.want { + t.Fatalf("tmuxVersionSupportsHooks(%q)=%v, want %v", test.version, got, test.want) + } + }) + } +} + +func TestTopologyHooksAppendSignalAndRestoreExistingHooks(t *testing.T) { + client, tmuxCommand := newPrivateTmuxClient(t) + if output, err := exec.Command(tmuxCommand, "set-hook", "-g", "after-new-window", "display-message preserved-hook").CombinedOutput(); err != nil { + t.Fatalf("set existing hook: %v: %s", err, output) + } + before, err := client.hookCommands("after-new-window") + if err != nil { + t.Fatal(err) + } + + triggered := make(chan string, 1) + manager, err := client.StartTopologyHooks(func(hookName string) { + select { + case triggered <- hookName: + default: + } + }) + if err != nil { + t.Fatalf("start topology hooks: %v", err) + } + closed := false + defer func() { + if !closed { + manager.Close() + } + }() + + registered, err := client.hookCommands("after-new-window") + if err != nil { + t.Fatal(err) + } + if len(registered) != 2 || registered[0] != "display-message preserved-hook" || !strings.HasPrefix(registered[1], "wait-for -S ac-agentd-") { + t.Fatalf("registered hooks=%q", registered) + } + if output, err := exec.Command(tmuxCommand, "new-window", "-d", "-t", "hook-test", "-n", "triggered", "sleep 30").CombinedOutput(); err != nil { + t.Fatalf("trigger hook: %v: %s", err, output) + } + select { + case hookName := <-triggered: + if hookName != "after-new-window" { + t.Fatalf("triggered hook=%q", hookName) + } + case <-time.After(2 * time.Second): + t.Fatal("timed out waiting for topology hook") + } + + manager.Close() + closed = true + after, err := client.hookCommands("after-new-window") + if err != nil { + t.Fatal(err) + } + if !reflect.DeepEqual(after, before) { + t.Fatalf("restored hooks=%q, want %q", after, before) + } +} + +func TestCapturePaneRangePagesStableContiguousHistory(t *testing.T) { + client, tmuxCommand := newPrivateTmuxClient(t) + paneID, err := client.NewWindow("hook-test", "capture-range", "") + if err != nil { + t.Fatal(err) + } + signal := fmt.Sprintf("ac-capture-%d", time.Now().UnixNano()) + command := fmt.Sprintf("for i in $(seq 1 200); do printf 'PAGE-%%03d\\n' \"$i\"; done; tmux wait-for -S %s", signal) + if err := client.SendInput(paneID, command, true); err != nil { + t.Fatal(err) + } + if output, err := exec.Command(tmuxCommand, "wait-for", signal).CombinedOutput(); err != nil { + t.Fatalf("wait for pane history: %v: %s", err, output) + } + + options := func(start, end int) CapturePaneOptions { + return CapturePaneOptions{Mode: CaptureModeRange, LineStart: start, LineEnd: end, StripANSI: true} + } + older, err := client.CapturePaneRange(paneID, options(-100, -81)) + if err != nil { + t.Fatal(err) + } + newer, err := client.CapturePaneRange(paneID, options(-80, -61)) + if err != nil { + t.Fatal(err) + } + repeated, err := client.CapturePaneRange(paneID, options(-100, -81)) + if err != nil { + t.Fatal(err) + } + if repeated != older { + t.Fatalf("repeated history page changed:\nfirst: %q\nagain: %q", older, repeated) + } + + olderNumbers := numberedPageLines(t, older) + newerNumbers := numberedPageLines(t, newer) + if len(olderNumbers) != 20 || len(newerNumbers) != 20 { + t.Fatalf("page lengths older=%d newer=%d\nolder=%q\nnewer=%q", len(olderNumbers), len(newerNumbers), older, newer) + } + if olderNumbers[len(olderNumbers)-1]+1 != newerNumbers[0] { + t.Fatalf("pages are not contiguous: older=%v newer=%v", olderNumbers, newerNumbers) + } + seen := make(map[int]bool, len(olderNumbers)) + for _, number := range olderNumbers { + seen[number] = true + } + for _, number := range newerNumbers { + if seen[number] { + t.Fatalf("history pages overlap at PAGE-%03d", number) + } + } +} + +func numberedPageLines(t *testing.T, capture string) []int { + t.Helper() + var numbers []int + scanner := bufio.NewScanner(strings.NewReader(capture)) + for scanner.Scan() { + line := strings.TrimSpace(scanner.Text()) + if !strings.HasPrefix(line, "PAGE-") { + t.Fatalf("unexpected history line %q in %q", line, capture) + } + number, err := strconv.Atoi(strings.TrimPrefix(line, "PAGE-")) + if err != nil { + t.Fatalf("parse history line %q: %v", line, err) + } + numbers = append(numbers, number) + } + if err := scanner.Err(); err != nil { + t.Fatal(err) + } + return numbers +} + +func newPrivateTmuxClient(t *testing.T) (*Client, string) { + t.Helper() + tmuxBin, err := exec.LookPath("tmux") + if err != nil { + t.Skip("tmux is not installed") + } + label := fmt.Sprintf("ac-test-%d", time.Now().UnixNano()) + if output, err := exec.Command(tmuxBin, "-L", label, "new-session", "-d", "-s", "hook-test", "sleep 30").CombinedOutput(); err != nil { + t.Fatalf("start private tmux: %v: %s", err, output) + } + t.Cleanup(func() { + _ = exec.Command(tmuxBin, "-L", label, "kill-server").Run() + }) + + wrapper := filepath.Join(t.TempDir(), "tmux-private") + script := fmt.Sprintf("#!/bin/sh\nexec %q -L %q \"$@\"\n", tmuxBin, label) + if err := os.WriteFile(wrapper, []byte(script), 0700); err != nil { + t.Fatal(err) + } + return NewClient(&config.TmuxConfig{Bin: wrapper}), wrapper +} + +func TestParsePaneLineIncludesTopologyFields(t *testing.T) { + pane, ok := parsePaneLine("%7\t1234\tagents\tworker\t2\t1\t/tmp/repo\tcodex\tAgent\tcodex\tsession-123\tparent-456\t1\t0\t1\ttiled\t190\t45\t1\t0\t2") + if !ok { + t.Fatal("pane line was not parsed") + } + if !pane.PaneActive || pane.WindowActive || !pane.WindowZoomed { + t.Fatalf("unexpected active/zoomed flags: %+v", pane) + } + if pane.WindowLayout != "tiled" || pane.PaneWidth != 190 || pane.PaneHeight != 45 { + t.Fatalf("unexpected layout/size fields: %+v", pane) + } + if !pane.WindowBell || pane.WindowActivity { + t.Fatalf("unexpected window flags: %+v", pane) + } + if !pane.SessionAttached { + t.Fatalf("session attached=%v, want true", pane.SessionAttached) + } +} diff --git a/agents/agentd/internal/tmux/viewer_pty.go b/agents/agentd/internal/tmux/viewer_pty.go index dd653563..7446c28b 100644 --- a/agents/agentd/internal/tmux/viewer_pty.go +++ b/agents/agentd/internal/tmux/viewer_pty.go @@ -143,7 +143,7 @@ func newViewerPTYBridge(runner TmuxRunner, opts viewerPTYOptions) (*viewerPTYBri opts.CoalesceDelay = defaultPTYCoalesceDelay } - target, err := runner.Output("display-message", "-p", "-t", opts.PaneID, "#{session_name}\\t#{window_index}\\t#{pane_index}") + target, err := runner.Output("display-message", "-p", "-t", opts.PaneID, "#{session_name}\t#{window_index}\t#{pane_index}") if err != nil { return nil, fmt.Errorf("describe pane %s: %w", opts.PaneID, err) } diff --git a/agents/agentd/internal/ws/client.go b/agents/agentd/internal/ws/client.go index d6081090..071c5552 100644 --- a/agents/agentd/internal/ws/client.go +++ b/agents/agentd/internal/ws/client.go @@ -49,6 +49,7 @@ type Client struct { queue *queue.Queue stateDir string onConnect func() + onDisconnect func() dialer *websocket.Dialer jitter func(time.Duration) time.Duration closeOnce sync.Once @@ -111,6 +112,10 @@ func (c *Client) SetOnConnect(handler func()) { c.onConnect = handler } +func (c *Client) SetOnDisconnect(handler func()) { + c.onDisconnect = handler +} + func (c *Client) Connect() error { headers := http.Header{} headers.Set("Authorization", "Bearer "+c.token) @@ -147,15 +152,23 @@ func (c *Client) Connect() error { func (c *Client) reader(conn *websocket.Conn) { defer func() { + disconnected := false c.mu.Lock() if c.conn == conn { c.conn.Close() c.conn = nil c.ready = false + disconnected = true } c.mu.Unlock() + if !disconnected { + return + } metrics.SetWSConnected(false) + if c.onDisconnect != nil { + c.onDisconnect() + } // Attempt reconnection c.reconnect() @@ -349,6 +362,37 @@ func (c *Client) Send(msgType string, payload any) error { return c.conn.WriteMessage(websocket.TextMessage, data) } +// SendUnsequenced sends a volatile envelope that intentionally does not +// participate in the durable agent sequence. It is used for full-state events +// whose frozen contract omits seq and whose next snapshot supersedes the last. +func (c *Client) SendUnsequenced(msgType string, payload any) error { + c.sendMu.Lock() + defer c.sendMu.Unlock() + + payloadBytes, err := json.Marshal(payload) + if err != nil { + return fmt.Errorf("failed to marshal payload: %w", err) + } + envelope := protocol.ServerEnvelope{ + V: protocol.Version, + Type: msgType, + TS: time.Now().UTC().Format(time.RFC3339Nano), + Payload: payloadBytes, + } + data, err := json.Marshal(envelope) + if err != nil { + return fmt.Errorf("failed to marshal %s envelope: %w", msgType, err) + } + + c.mu.Lock() + defer c.mu.Unlock() + if c.conn == nil || !c.ready { + return ErrNotConnected + } + _ = c.conn.SetWriteDeadline(time.Now().Add(writeWait)) + return c.conn.WriteMessage(websocket.TextMessage, data) +} + // SendHello sends the connection handshake without adding it to the durable // queue. It reuses the acknowledged cursor (or reserved sequence 1) so the // control plane can establish resume state before older queued messages replay. @@ -371,7 +415,7 @@ func (c *Client) SendHello(payload any) error { func isVolatile(msgType string) bool { switch msgType { - case "terminal.output", "terminal.lag", "sessions.snapshot", "console.chunk": + case "terminal.output", "terminal.lag", "sessions.snapshot", "console.chunk", protocol.TypeTmuxTopology: return true default: return false diff --git a/agents/agentd/internal/ws/client_test.go b/agents/agentd/internal/ws/client_test.go index 0a292513..654661b3 100644 --- a/agents/agentd/internal/ws/client_test.go +++ b/agents/agentd/internal/ws/client_test.go @@ -64,6 +64,47 @@ func TestDisconnectedDurableAndVolatileLanes(t *testing.T) { } } +func TestSendUnsequencedOmitsSequenceField(t *testing.T) { + messages := make(chan map[string]json.RawMessage, 1) + upgrader := websocket.Upgrader{} + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + conn, err := upgrader.Upgrade(w, r, nil) + if err != nil { + return + } + defer conn.Close() + var message map[string]json.RawMessage + if err := conn.ReadJSON(&message); err == nil { + messages <- message + } + })) + defer server.Close() + + client := NewClient(websocketURL(server), "token", "host", []int{1}) + if err := client.Connect(); err != nil { + t.Fatal(err) + } + defer client.Close() + if err := client.ResendQueued(); err != nil { + t.Fatal(err) + } + if err := client.SendUnsequenced("tmux.topology", map[string]any{"reason": "startup"}); err != nil { + t.Fatal(err) + } + + select { + case message := <-messages: + if _, exists := message["seq"]; exists { + t.Fatalf("unsequenced message contains seq: %s", message["seq"]) + } + if string(message["type"]) != `"tmux.topology"` { + t.Fatalf("message type=%s", message["type"]) + } + case <-time.After(2 * time.Second): + t.Fatal("timed out waiting for unsequenced message") + } +} + func TestSequenceResumesAboveReloadedQueueMaximum(t *testing.T) { dir := t.TempDir() q, err := queue.NewQueue(dir, 100) diff --git a/agents/agentd/internal/ws/protocol_fixtures_test.go b/agents/agentd/internal/ws/protocol_fixtures_test.go index a732538c..b55cc6b2 100644 --- a/agents/agentd/internal/ws/protocol_fixtures_test.go +++ b/agents/agentd/internal/ws/protocol_fixtures_test.go @@ -70,6 +70,7 @@ func TestProtocolFixtureMatrixRoundTripsProductionTypes(t *testing.T) { protocol.TypeTerminalDetach, protocol.TypeTerminalControl, protocol.TypeTerminalOutput, protocol.TypeTerminalAttached, protocol.TypeTerminalDetached, protocol.TypeTerminalError, protocol.TypeTerminalReadOnly, protocol.TypeTerminalLag, protocol.TypeTerminalAudit, + protocol.TypeTmuxTopology, } for _, messageType := range wantTypes { if !seenTypes[messageType] { @@ -81,6 +82,8 @@ func TestProtocolFixtureMatrixRoundTripsProductionTypes(t *testing.T) { "send_input", "send_keys", "interrupt", "kill_session", "adopt_pane", "rename_session", "spawn_session", "spawn_job", "fork", "console.subscribe", "console.unsubscribe", "capture_pane", "copy_to_session", "list_directory", + "new_window", "kill_window", "rename_window", "split_pane", + "select_window", "select_pane", "resize_pane", "zoom_pane", } for _, commandType := range wantCommands { if !seenCommands[commandType] { @@ -150,6 +153,8 @@ func fixtureMessageTarget(t *testing.T, messageType string, agentMessage bool) a return &protocol.AgentMessage[protocol.TerminalOutputPayload]{} case protocol.TypeTerminalAudit: return &protocol.AgentMessage[protocol.TerminalAuditPayload]{} + case protocol.TypeTmuxTopology: + return &protocol.AgentMessage[protocol.TmuxTopologyPayload]{} case protocol.TypeTerminalAttached, protocol.TypeTerminalDetached, protocol.TypeTerminalError, protocol.TypeTerminalReadOnly, protocol.TypeTerminalLag: return &protocol.AgentMessage[protocol.TerminalStatusPayload]{} @@ -177,6 +182,22 @@ func commandPayloadTarget(t *testing.T, commandType string) any { return &protocol.AdoptPanePayload{} case "rename_session": return &protocol.RenameSessionPayload{} + case "new_window": + return &protocol.NewWindowPayload{} + case "kill_window": + return &protocol.KillWindowPayload{} + case "rename_window": + return &protocol.RenameWindowPayload{} + case "split_pane": + return &protocol.SplitPanePayload{} + case "select_window": + return &protocol.SelectWindowPayload{} + case "select_pane": + return &protocol.SelectPanePayload{} + case "resize_pane": + return &protocol.ResizePanePayload{} + case "zoom_pane": + return &protocol.ZoomPanePayload{} case "spawn_session": return &protocol.SpawnSessionPayload{} case "spawn_job": diff --git a/tasks/frontend-ux-handoffs/fw1-tmux-go.md b/tasks/frontend-ux-handoffs/fw1-tmux-go.md new file mode 100644 index 00000000..2c2d4a3a --- /dev/null +++ b/tasks/frontend-ux-handoffs/fw1-tmux-go.md @@ -0,0 +1,55 @@ +--- +lane: FW1-TMUX-GO +frozen_sha: eaadfe9fcee7d4c1f2f20b7692a8aa1f8a422966 +attempt: 1 +state: frozen +gates: + lint: pass + typecheck: pass + test_ci: pass + smoke: pass + build: pass + go: pass +proof: + - "~/.local/go/bin/go build ./... → pass from agents/agentd at frozen_sha" + - "~/.local/go/bin/go vet ./... → pass from agents/agentd at frozen_sha" + - "~/.local/go/bin/go test ./... → pass; cmd/agentd, tmux, ws, fixture matrix, and all other agentd packages green" + - "TestTopologyHooksAppendSignalAndRestoreExistingHooks → private ac-test-* tmux hook fired, existing hook preserved, exact hook set restored" + - "TestExecute*AgainstPrivateTmux → all eight window/pane dispatch operations changed observable private-server state" + - "TestTerminalAttachSupersedesStaleChannelAfterControlPlaneReconnect → two real WebSocket connections resumed one private-server pane and removed the old channel" + - "TestCapturePaneRangePagesStableContiguousHistory → repeated and adjacent 20-line history pages stable, contiguous, and non-overlapping" + - "TestProtocolFixtureMatrixRoundTripsProductionTypes → all frozen topology and command fixtures round-trip through registered Go types" +assumptions: + - "split_pane horizontal maps to tmux -h and vertical maps to tmux -v; percent uses tmux -l % for current-version compatibility." + - "tmux 2.4 is the minimum hook-capable version; each requested hook is also probed individually and unsupported hooks are skipped." + - "The full-state tmux.topology envelope is volatile and intentionally unsequenced because the frozen fixture omits seq." +uncertainties: + - "The brief says the current control plane ignores unknown agent envelopes, but the checked-out TypeScript AgentMessageSchema is a closed discriminated union. Wave 2 must register tmux.topology or add the stated tolerance before this event is enabled in a deployed mixed-version pair." +blockers: [] +--- + +# FW1-TMUX-GO handoff + +## What changed + +- Extended tmux pane discovery and `sessions.upsert` metadata with active state, zoom, raw layout, pane dimensions, bell/activity flags, and attached-session state used by topology. +- Added sorted full-host `tmux.topology` snapshots, 500 ms coalescing, startup emission, poll drift reconciliation, and a frozen unsequenced wire envelope. +- Added version-detected, per-hook-probed global tmux hooks using blocking `wait-for` signals. Agentd appends beside user hooks and restores the exact previous hook arrays on shutdown; unsupported/no-server startup degrades to the existing poll with a log line. +- Added validated executor handling and tmux client methods for new/kill/rename/select window and split/select/resize/zoom pane. Pane targets are constrained to the dispatch session's tmux session. +- Marked terminal viewers stale when their control-plane WebSocket disappears. A valid resumed attach supersedes only a stale prior channel; a still-active token remains protected from takeover. +- Proved existing `CapturePaneRange` range behavior without changing it and froze all nine new shared JSON fixtures with Go round-trip coverage. + +## Decisions within lane latitude + +- Topology is latest-state data, so it is not persisted in the durable sequence queue; later snapshots supersede earlier ones. +- Hook signals are unique per process and hook and do not use shell scripts or polling. +- Every real tmux test starts through a dedicated `tmux -L ac-test-*` wrapper and cleans up only that private server with `kill-server`; no test targets the default server and no test uses `kill-session` against it. +- The real reconnect test exposed and fixed a pre-existing literal-`\\t` pane-description format that fake-runner tests had masked. + +## Deferred + +- TypeScript schema, control-plane routing, and dashboard consumption remain owned by Wave 2, using the committed fixtures unchanged. + +The `frozen_sha` is the final implementation commit; the following handoff-only commit adds this file. + +FW1-TMUX-GO FROZEN eaadfe9fcee7d4c1f2f20b7692a8aa1f8a422966 diff --git a/tests/fixtures/protocol/commands-dispatch-kill-window.json b/tests/fixtures/protocol/commands-dispatch-kill-window.json new file mode 100644 index 00000000..02ef83b4 --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-kill-window.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:02Z","payload":{"cmd_id":"cmd-kill-window","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"kill_window","payload":{"window_index":3}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-new-window.json b/tests/fixtures/protocol/commands-dispatch-new-window.json new file mode 100644 index 00000000..125c04b8 --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-new-window.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:01Z","payload":{"cmd_id":"cmd-new-window","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"new_window","payload":{"window_name":"scratch","cwd":"/home/cvsloane/dev/agent-command"}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-rename-window.json b/tests/fixtures/protocol/commands-dispatch-rename-window.json new file mode 100644 index 00000000..224387ba --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-rename-window.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:03Z","payload":{"cmd_id":"cmd-rename-window","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"rename_window","payload":{"window_index":3,"name":"builds"}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-resize-pane.json b/tests/fixtures/protocol/commands-dispatch-resize-pane.json new file mode 100644 index 00000000..189adce4 --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-resize-pane.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:07Z","payload":{"cmd_id":"cmd-resize-pane","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"resize_pane","payload":{"pane_id":"%14","width":120,"height":30}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-select-pane.json b/tests/fixtures/protocol/commands-dispatch-select-pane.json new file mode 100644 index 00000000..358f5267 --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-select-pane.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:06Z","payload":{"cmd_id":"cmd-select-pane","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"select_pane","payload":{"pane_id":"%14"}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-select-window.json b/tests/fixtures/protocol/commands-dispatch-select-window.json new file mode 100644 index 00000000..0919df5d --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-select-window.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:05Z","payload":{"cmd_id":"cmd-select-window","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"select_window","payload":{"window_index":2}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-split-pane.json b/tests/fixtures/protocol/commands-dispatch-split-pane.json new file mode 100644 index 00000000..11a7f149 --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-split-pane.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:04Z","payload":{"cmd_id":"cmd-split-pane","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"split_pane","payload":{"direction":"vertical","percent":50,"cwd":"/home/cvsloane/dev/agent-command"}}}} diff --git a/tests/fixtures/protocol/commands-dispatch-zoom-pane.json b/tests/fixtures/protocol/commands-dispatch-zoom-pane.json new file mode 100644 index 00000000..b75beda5 --- /dev/null +++ b/tests/fixtures/protocol/commands-dispatch-zoom-pane.json @@ -0,0 +1 @@ +{"v":1,"type":"commands.dispatch","ts":"2026-07-20T14:00:08Z","payload":{"cmd_id":"cmd-zoom-pane","session_id":"22222222-2222-4222-8222-222222222222","command":{"type":"zoom_pane","payload":{"pane_id":"%14"}}}} diff --git a/tests/fixtures/protocol/tmux-topology.json b/tests/fixtures/protocol/tmux-topology.json new file mode 100644 index 00000000..ba8ab399 --- /dev/null +++ b/tests/fixtures/protocol/tmux-topology.json @@ -0,0 +1 @@ +{"v":1,"type":"tmux.topology","ts":"2026-07-20T14:00:00Z","payload":{"reason":"hook:window-renamed","tmux_sessions":[{"session_name":"agent-command","attached":true,"windows":[{"window_index":1,"window_name":"fw1-modern","active":true,"zoomed":false,"layout":"tiled","bell":false,"activity":false,"panes":[{"pane_id":"%12","pane_index":0,"active":true,"width":190,"height":45,"title":"codex","current_command":"codex","current_path":"/home/cvsloane/dev/wt/ac-fw1-modern"}]}]}]}} From 42b03ff8d59da6cc896519e41492f16b8de9f378 Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 10:07:28 -0400 Subject: [PATCH 06/13] =?UTF-8?q?chore(program):=20wave=201=20held=20on=20?= =?UTF-8?q?reviewer=20findings=20=E2=80=94=20FW1-TMUX-GO=20R2=20correction?= =?UTF-8?q?=20round?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- ...026-07-20-fw1-tmux-go-corrections-brief.md | 33 +++++++++++++++++++ tasks/frontend-ux-log.md | 3 ++ tasks/frontend-ux-metrics.jsonl | 1 + tasks/frontend-ux-status.md | 4 ++- 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tasks/2026-07-20-fw1-tmux-go-corrections-brief.md diff --git a/tasks/2026-07-20-fw1-tmux-go-corrections-brief.md b/tasks/2026-07-20-fw1-tmux-go-corrections-brief.md new file mode 100644 index 00000000..d9650765 --- /dev/null +++ b/tasks/2026-07-20-fw1-tmux-go-corrections-brief.md @@ -0,0 +1,33 @@ +# FW1-TMUX-GO — Correction round R2 (Wave 1) + +Lane: FW1-TMUX-GO (attempt 2) · Same worktree `~/dev/wt/ac-fw1-tmux-go`, same branch `refactor/fw1-tmux-go`, same firewall (`agents/**` + `tests/fixtures/protocol/` new files only) · Push to origin. +Context: your frozen work at `eaadfe9` passed my mechanical review and the Go gate, and is integrated. An independent adversarial reviewer then confirmed the exact uncertainty you flagged in your handoff — and two more findings. The wave PR is held on these. Fix only what is listed; no scope beyond it. + +## C1 (critical) — topology emission must be default-OFF + +Confirmed: the deployed control plane validates agent messages against a closed `AgentMessageSchema` and calls `socket.terminate()` on parse failure (`services/control-plane/src/ws/agent.ts` ~163-171). Your `reconcileTmux("startup")` → `queueTmuxTopology` emits ~500ms after start, so a new agentd against the current CP enters a terminate/reconnect loop on tmux activity, and `MarkChannelsStale` churns terminal viewers. + +Fix: gate ALL `tmux.topology` emission behind a config flag (suggested: `tmux.topology_events`, YAML `topology_events` under the tmux section), **default false**. When false: no topology envelopes are sent (hooks may still be registered or not — your call, but no wire emission). Keep all machinery and tests (tests enable the flag explicitly). Wave 2 registers the schema + CP handler and flips the story to capability-negotiated emission; until then the flag stays off. Add a test proving that with the flag off, no `tmux.topology` frame is written to the WS client. + +## W3 (warning) — tmux hook lifecycle pollution + +Confirmed in `agents/agentd/internal/tmux/hooks.go`: +- On crash (no clean shutdown), appended `wait-for -S ac-agentd--…` hook commands persist on the user's default tmux server and accumulate across restarts (`set-hook -ag`). +- `hookCommands()` snapshots existing hook commands with no filtering, so leftover `ac-agentd-*` entries from a crashed prior run get captured as "user hooks" and re-installed by `restoreHook()` on clean shutdown — baking them in permanently. + +Fix: (1) when snapshotting existing hooks on startup, filter out any command matching the `ac-agentd-` signal pattern; (2) on startup, proactively remove stale `ac-agentd-*` hook commands left by prior runs (rebuild each hook's command list without them); (3) tests for both, on a private `-L` server as before. + +## W4 (warning) — stale viewers never reaped + +`MarkChannelsStale` leaves `channelID` set, and `Sweep()` only reaps `channelID == ""` viewers, so a stale viewer that is never resumed leaks its PTY bridge + grouped viewer session + goroutine. Fix: record a stale-at timestamp in `MarkChannelsStale`; extend `Sweep` to expire viewers stale longer than the existing idle TTL (close bridge, delete all channel maps, orphan viewer session cleanup). Test: mark stale, advance/emulate TTL, assert full cleanup. + +## Recorded, NOT yours to fix (Wave 2/3 scope) + +- CP schema registration for `tmux.topology` + the 8 command types, CP log-and-drop on unknown agent envelope types → FW2-CONTRACTS. +- `split_pane -l N%` requires tmux ≥ 3.1 while hooks accept ≥ 2.4; `kill_window` on a session's last window kills the session → Wave 3 UI gating/confirmations. Do not change behavior now. + +## Done + +Gates as before (`go build ./... && go vet ./... && go test ./...` in agents/agentd). Commit with prefix `fix(agentd):`, push, update your handoff file (`tasks/frontend-ux-handoffs/fw1-tmux-go.md`: attempt: 2, new frozen_sha, append an "R2 corrections" section), then print exactly: + +`FW1-TMUX-GO-R2 FROZEN ` diff --git a/tasks/frontend-ux-log.md b/tasks/frontend-ux-log.md index e45762b9..274b53f3 100644 --- a/tasks/frontend-ux-log.md +++ b/tasks/frontend-ux-log.md @@ -7,3 +7,6 @@ - Wave 1 lanes launched: FW1-MODERN (homelinux, codex) and FW1-TMUX-GO (heavisidelinux, codex). Fixture shapes for the tmux topology event + 8 window/pane commands frozen in the FW1-TMUX-GO brief. - ~14:10Z FW1-MODERN froze at `76d3c5e` after 34m (attempt 1). AI Lead verification: full gate re-run green (exit 0), firewall audit clean, suppression scan clean (one grep hit was the handoff's own prose), spot-checks of SessionList/MobileLaunchSheet/R3F-type-bridge/CP lint fixes all mechanical. Notable compatibility seams (documented in handoff, accepted): `tools/eslint-typescript-compat` isolates typescript-eslint's TS 5.9 parser runtime; Next route type-gen uses `@typescript/native-preview` alias under TS 7. INTEGRATED @ `6f8ce3c` (squash). - FW1-TMUX-GO in progress at +35m: implementing unsequenced WS send path for topology events; codex context low (12%) — auto-compaction expected, watcher armed for stall/exit. +- ~15:00Z FW1-TMUX-GO froze at `eaadfe9` (attempt 1, ~60m). AI Lead verification: Go gate re-run green on heavisidelinux, firewall clean, fixtures byte-identical to frozen shapes, supersede diff conservative. INTEGRATED @ `504d7d3`. Full wave gate (TS+Go) green on integration branch. +- ~15:20Z Independent adversarial reviewer (fresh Claude subagent vs gpt-5.6-sol builders): verdict HOLD. C1 critical: agentd emits `tmux.topology` on startup but deployed CP terminates the agent socket on unknown envelopes (closed union + socket.terminate) — the brief's "CP ignores unknown types" assumption was wrong; Builder had flagged this exact uncertainty. W3: crashed agentd pollutes user tmux hooks (accumulating ac-agentd wait-for entries, restore re-installs them). W4: stale viewers never reaped by Sweep. W2 (commands unreachable via CP) = by design, Wave 2 scope. FW1-MODERN verified clean — every paramIndex/definite-assignment/memo edit traced behavior-neutral. Supersede logic explicitly verified SAFE. +- Wave 1 HELD. R2 correction brief authored (`tasks/2026-07-20-fw1-tmux-go-corrections-brief.md`): topology emission default-off, hook snapshot filtering + startup cleanup, stale TTL sweep. CP tolerance + schema registration added to FW2-CONTRACTS scope; tmux-version gating of percent splits + kill_window confirmation carried to Wave 3. diff --git a/tasks/frontend-ux-metrics.jsonl b/tasks/frontend-ux-metrics.jsonl index abf1a476..78f29c6a 100644 --- a/tasks/frontend-ux-metrics.jsonl +++ b/tasks/frontend-ux-metrics.jsonl @@ -1,2 +1,3 @@ {"ts":"2026-07-20T13:30:00Z","event":"program_launched","wave":1,"lanes":["FW1-MODERN","FW1-TMUX-GO"],"baseline_sha":"70fa53e","builders":"codex gpt-5.6-sol xhigh","integration_branch":"refactor/frontend-command-center"} {"ts":"2026-07-20T14:10:00Z","event":"lane_frozen","lane":"FW1-MODERN","attempt":1,"frozen_sha":"76d3c5e","duration_min":34,"verdict":"accepted","integrated_sha":"6f8ce3c"} +{"ts":"2026-07-20T15:20:00Z","event":"reviewer_verdict","wave":1,"verdict":"HOLD","findings":{"critical":1,"warning":3,"cleared":"FW1-MODERN clean"},"action":"FW1-TMUX-GO R2 correction round"} diff --git a/tasks/frontend-ux-status.md b/tasks/frontend-ux-status.md index c2c386eb..1361c8c3 100644 --- a/tasks/frontend-ux-status.md +++ b/tasks/frontend-ux-status.md @@ -10,7 +10,9 @@ Baseline: typecheck + test:ci green at `70fa53e` (2026-07-20). Deploy cadence: p | Lane | Machine | Worktree | Branch | tmux | State | Last checked | |---|---|---|---|---|---|---| | FW1-MODERN | homelinux | ~/dev/wt/ac-fw1-modern | refactor/fw1-modern | (done) | INTEGRATED @ 6f8ce3c (frozen 76d3c5e, gate re-verified by AI Lead) | 2026-07-20 | -| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | active | 2026-07-20 | +| FW1-TMUX-GO | heavisidelinux | ~/dev/wt/ac-fw1-tmux-go | refactor/fw1-tmux-go | agent-command:fw1-tmux-go | R2 corrections (frozen eaadfe9 integrated @ 504d7d3, then reviewer HOLD: C1 topology default-off, W3 hooks, W4 sweep — brief `2026-07-20-fw1-tmux-go-corrections-brief.md`) | 2026-07-20 | + +**WAVE 1 HELD** pending FW1-TMUX-GO-R2: independent reviewer verdict HOLD (C1 critical: CP terminates agent socket on unknown envelope; topology emission must ship default-off). Wave PR to main opens after R2 integration + gate. Carried to FW2-CONTRACTS scope: register `tmux.topology` + 8 command schemas in CP, CP log-and-drop on unknown agent envelopes. Carried to Wave 3: split-pane `-l N%` needs tmux ≥3.1; kill_window last-window confirmation. ## Ownership firewall (Wave 1) - FW1-MODERN: package manifests + lockfile, tsconfig/eslint/turbo configs, and **mechanical** TS/TSX fixes anywhere outside `agents/**`. NO feature/behavior edits, NO Zod changes, NO visualizer/R3F dep changes, NO `agents/**`. From 9590ad81d7661f091d3af741d665a33706227461 Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 10:38:45 -0400 Subject: [PATCH 07/13] chore(program): log R2 stall catch and recovery Co-Authored-By: Claude Fable 5 --- tasks/frontend-ux-log.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/frontend-ux-log.md b/tasks/frontend-ux-log.md index 274b53f3..431fb56c 100644 --- a/tasks/frontend-ux-log.md +++ b/tasks/frontend-ux-log.md @@ -10,3 +10,4 @@ - ~15:00Z FW1-TMUX-GO froze at `eaadfe9` (attempt 1, ~60m). AI Lead verification: Go gate re-run green on heavisidelinux, firewall clean, fixtures byte-identical to frozen shapes, supersede diff conservative. INTEGRATED @ `504d7d3`. Full wave gate (TS+Go) green on integration branch. - ~15:20Z Independent adversarial reviewer (fresh Claude subagent vs gpt-5.6-sol builders): verdict HOLD. C1 critical: agentd emits `tmux.topology` on startup but deployed CP terminates the agent socket on unknown envelopes (closed union + socket.terminate) — the brief's "CP ignores unknown types" assumption was wrong; Builder had flagged this exact uncertainty. W3: crashed agentd pollutes user tmux hooks (accumulating ac-agentd wait-for entries, restore re-installs them). W4: stale viewers never reaped by Sweep. W2 (commands unreachable via CP) = by design, Wave 2 scope. FW1-MODERN verified clean — every paramIndex/definite-assignment/memo edit traced behavior-neutral. Supersede logic explicitly verified SAFE. - Wave 1 HELD. R2 correction brief authored (`tasks/2026-07-20-fw1-tmux-go-corrections-brief.md`): topology emission default-off, hook snapshot filtering + startup cleanup, stale TTL sweep. CP tolerance + schema registration added to FW2-CONTRACTS scope; tmux-version gating of percent splits + kill_window confirmation carried to Wave 3. +- ~16:00Z Liveness catch: R2 re-task prompt was staged in the codex composer but the submit Enter never registered; watcher flagged a 30-min stall, AI Lead read the pane, submitted, and verified "Working" state. (Reinforces the ADL rule: always verify a re-tasked agent activated on the next cycle.) From 76d7a1234015c78c1baefe163f70d9f8beeb757a Mon Sep 17 00:00:00 2001 From: cvsloane Date: Mon, 20 Jul 2026 10:49:24 -0400 Subject: [PATCH 08/13] fix(agentd): topology events default-off config gate, tmux hook hygiene, stale viewer TTL sweep (FW1-TMUX-GO-R2 7a8e6ee) Co-Authored-By: Claude Fable 5 --- agents/agentd/cmd/agentd/main_tmux_test.go | 48 +++++++++++- agents/agentd/cmd/agentd/tmux_topology.go | 4 + agents/agentd/config.example.yaml | 1 + agents/agentd/internal/config/config.go | 1 + agents/agentd/internal/config/config_test.go | 25 +++++++ agents/agentd/internal/tmux/hooks.go | 30 +++++++- .../agentd/internal/tmux/pty_bridge_test.go | 52 +++++++++++++ agents/agentd/internal/tmux/terminal.go | 49 +++++++++++-- agents/agentd/internal/tmux/tmux_test.go | 73 ++++++++++++++++++- tasks/frontend-ux-handoffs/fw1-tmux-go.md | 30 +++++--- 10 files changed, 293 insertions(+), 20 deletions(-) diff --git a/agents/agentd/cmd/agentd/main_tmux_test.go b/agents/agentd/cmd/agentd/main_tmux_test.go index b6223977..a15ea706 100644 --- a/agents/agentd/cmd/agentd/main_tmux_test.go +++ b/agents/agentd/cmd/agentd/main_tmux_test.go @@ -1,13 +1,18 @@ package main import ( + "net/http" + "net/http/httptest" "reflect" + "strings" "testing" "time" "github.com/agent-command/agentd/internal/config" "github.com/agent-command/agentd/internal/protocol" "github.com/agent-command/agentd/internal/tmux" + "github.com/agent-command/agentd/internal/ws" + "github.com/gorilla/websocket" ) func TestSyncPanesIncludesExtendedTmuxMetadata(t *testing.T) { @@ -92,7 +97,7 @@ func TestBuildTmuxTopologySortsSessionsWindowsAndPanes(t *testing.T) { func TestQueueTmuxTopologyDebouncesHooksAndPollsOnlyOnDrift(t *testing.T) { messages := make(chan protocol.TmuxTopologyPayload, 3) - agent := &Agent{sendMessage: func(messageType string, payload any) error { + agent := &Agent{cfg: &config.Config{Tmux: config.TmuxConfig{TopologyEvents: true}}, sendMessage: func(messageType string, payload any) error { if messageType == protocol.TypeTmuxTopology { messages <- payload.(protocol.TmuxTopologyPayload) } @@ -139,3 +144,44 @@ func TestQueueTmuxTopologyDebouncesHooksAndPollsOnlyOnDrift(t *testing.T) { t.Fatal("timed out waiting for poll drift topology") } } + +func TestQueueTmuxTopologyDefaultOffWritesNoWebSocketFrame(t *testing.T) { + messages := make(chan string, 1) + upgrader := websocket.Upgrader{} + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + conn, err := upgrader.Upgrade(w, r, nil) + if err != nil { + return + } + defer conn.Close() + for { + var message struct { + Type string `json:"type"` + } + if err := conn.ReadJSON(&message); err != nil { + return + } + messages <- message.Type + } + })) + defer server.Close() + + wsClient := ws.NewClient("ws"+strings.TrimPrefix(server.URL, "http"), "token", "host", []int{1}) + if err := wsClient.Connect(); err != nil { + t.Fatal(err) + } + defer wsClient.Close() + if err := wsClient.ResendQueued(); err != nil { + t.Fatal(err) + } + + agent := &Agent{cfg: &config.Config{}, wsClient: wsClient} + defer agent.stopTmuxTopology() + agent.queueTmuxTopology("startup", []tmux.Pane{{SessionName: "agents", WindowIndex: 0, PaneID: "%1"}}) + + select { + case messageType := <-messages: + t.Fatalf("default-off topology wrote websocket frame %q", messageType) + case <-time.After(tmuxTopologyDebounce + 150*time.Millisecond): + } +} diff --git a/agents/agentd/cmd/agentd/tmux_topology.go b/agents/agentd/cmd/agentd/tmux_topology.go index 2f8e142e..332cb4e8 100644 --- a/agents/agentd/cmd/agentd/tmux_topology.go +++ b/agents/agentd/cmd/agentd/tmux_topology.go @@ -88,6 +88,10 @@ func tmuxTopologyHash(payload protocol.TmuxTopologyPayload) string { } func (a *Agent) queueTmuxTopology(reason string, panes []tmux.Pane) { + if a.cfg == nil || !a.cfg.Tmux.TopologyEvents { + return + } + payload := buildTmuxTopology(reason, panes) hash := tmuxTopologyHash(payload) diff --git a/agents/agentd/config.example.yaml b/agents/agentd/config.example.yaml index a75924fb..a759efea 100644 --- a/agents/agentd/config.example.yaml +++ b/agents/agentd/config.example.yaml @@ -13,6 +13,7 @@ control_plane: tmux: bin: "/usr/bin/tmux" socket: "" # Leave empty for default (if you use -L, set /tmp/tmux-UID/