mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-15 21:11:08 +02:00
The wire and state layer for the UI cutover; App.tsx integration follows
separately.
- shared/ipc.ts: eleven sessions:* invoke channels + the sessions:events
push feed (SessionBusEvent via z.custom, like runs:events). The generic
preload bridge needs no changes.
- main: sessions:* handlers as thin pass-throughs to the DI'd sessions
service; startSessionsWatcher forwards the session bus to all windows;
startup awaits the session-index scan before the renderer can list.
- renderer architecture per review guidance — all logic in framework-
agnostic, dependency-injected modules; hooks are thin
useSyncExternalStore subscriptions; components will consume pre-digested
view models:
- client.ts: narrow SessionsClient over window.ipc (fakeable).
- feed.ts: one shared sessions:events consumer with fan-out (factory
for tests).
- turn-view.ts: pure derivations — live overlay (deltas accumulate,
canonical events clear), TurnState -> ConversationItem[], and the
session chat state (permission/ask-human maps re-manufactured in the
runs-era shapes so existing components render unchanged;
isProcessing/isThinking contract preserved).
- store.ts: SessionChatStore (seed via getSession/getTurn, shared
reduceTurn over live events, prior-turn freezing, unknown-turn
reconciliation, stale-load guard, action routing) + SessionListStore.
- hooks/useSessionChat + useSessions: thin wrappers, deps injectable.
- renderer test infra added from scratch (vitest + jsdom +
testing-library); 29 tests across stores, pure views, feed, and hooks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| agent-schedule-state.ts | ||
| agent-schedule.ts | ||
| agent.ts | ||
| background-task.ts | ||
| bases.ts | ||
| billing.ts | ||
| blocks.ts | ||
| browser-control.ts | ||
| code-mode.ts | ||
| code-sessions.ts | ||
| composio.ts | ||
| events.ts | ||
| example.ts | ||
| frontmatter.ts | ||
| index.ts | ||
| inline-task.ts | ||
| ipc.ts | ||
| live-note.ts | ||
| llm-step-events.ts | ||
| mcp.ts | ||
| message.ts | ||
| models.ts | ||
| notification-settings.ts | ||
| prefix-logger.ts | ||
| prompt-block.ts | ||
| rowboat-account.ts | ||
| runs.ts | ||
| service-events.ts | ||
| sessions.test.ts | ||
| sessions.ts | ||
| turns.test.ts | ||
| turns.ts | ||
| workspace.ts | ||