rowboat/apps/x/packages/shared/src
Ramnique Singh c1cc5a8753 feat(core): new agent runtime (agent-loop + sessions + bridges); retire old runtime
Replace the old run-based agent runtime with an append-only, fact-log turn model.

agent-loop:
- turn = append-only fact logs; advance() reducer IS the resume function
- SystemComposer (loop-injected system prompt) + TurnObserver (live deltas +
  state snapshots), per-turn ComposeContext (voice / search / code-mode) and
  use-case attribution; per-step model usage; transcript prefix dedup at rest

sessions:
- ordered turn chains with copy-forward transcript; deleteSession support

agent-runtime bridges:
- RealToolRunner, RealPermissionGate (per-turn use-case), Copilot system /
  user-message-context composers, TurnEventBus
- getAgentRuntime() process singleton; runHeadlessAgent() runs one-shot headless
  work as a standalone turn (sessionId null) — no throwaway sessions, no growth

shared contracts (@x/shared): agent-turn.ts, sessions.ts (browser-safe)

headless consumers ported to standalone turns with use-case tagging: live-note,
background-task, knowledge pipelines (agent_notes / tag_notes / label_emails /
build_graph / inline_tasks), pre-built, agent-schedule.

retire the old runtime: delete runs/{runs,bus,repo}.ts and message-queue.ts; gut
agents/runtime.ts to loadAgent + convertFromMessages; trim agents/utils.ts; drop
the DI registrations for the old runtime / message queue / runs repo.

SQLite migrations: compose_context, model_usage, transcript dedup, use_case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 09:34:24 +05:30
..
agent-schedule-state.ts feat: add background agents with scheduling support 2026-02-05 16:43:09 +05:30
agent-schedule.ts feat: add background agents with scheduling support 2026-02-05 16:43:09 +05:30
agent-turn.ts feat(core): new agent runtime (agent-loop + sessions + bridges); retire old runtime 2026-06-15 09:34:24 +05:30
agent.ts bootstrap new electron app 2026-01-16 12:05:33 +05:30
background-task.ts feat: background tasks 2026-05-12 17:43:25 +05:30
bases.ts app navigation 2026-03-13 10:39:05 +05:30
billing.ts Show split monthly and daily credits 2026-05-24 12:48:23 +05:30
blocks.ts Gmail send, archive and delete (#573) 2026-05-25 09:47:08 +05:30
browser-control.ts pull browser-harness skills (#519) 2026-05-06 12:25:10 +05:30
code-mode.ts feat: run code mode on an in-app ACP client with live approvals (#593) 2026-06-05 14:45:08 +05:30
code-sessions.ts add code mode: coding-agent workspace with sessions, direct/Rowboat drive, diffs, and worktrees 2026-06-12 23:57:44 +05:30
composio.ts Feature/composio tools library (#461) 2026-04-06 13:30:46 +05:30
events.ts feat: background tasks 2026-05-12 17:43:25 +05:30
example.ts bootstrap new electron app 2026-01-16 12:05:33 +05:30
frontmatter.ts app navigation 2026-03-13 10:39:05 +05:30
index.ts add code mode: coding-agent workspace with sessions, direct/Rowboat drive, diffs, and worktrees 2026-06-12 23:57:44 +05:30
inline-task.ts Livenote2 (#440) 2026-03-19 01:34:10 +05:30
ipc.ts add embedded terminal to code mode (node-pty + xterm) 2026-06-12 23:57:44 +05:30
live-note.ts feat: background tasks 2026-05-12 17:43:25 +05:30
llm-step-events.ts feat(ui): surface LLM stream errors in chat 2026-02-16 08:34:51 +05:30
mcp.ts bootstrap new electron app 2026-01-16 12:05:33 +05:30
message.ts feat(core): new agent runtime (agent-loop + sessions + bridges); retire old runtime 2026-06-15 09:34:24 +05:30
models.ts Add run-level auto permission mode 2026-06-03 07:58:04 +05:30
notification-settings.ts feat: add user-configurable notification settings (#601) 2026-06-11 19:43:26 +05:30
prefix-logger.ts bootstrap new electron app 2026-01-16 12:05:33 +05:30
prompt-block.ts add prompt block 2026-04-20 14:42:13 +05:30
rowboat-account.ts use deepgram ws proxy, simplify env vars 2026-03-24 11:50:22 +05:30
runs.ts add code mode: coding-agent workspace with sessions, direct/Rowboat drive, diffs, and worktrees 2026-06-12 23:57:44 +05:30
service-events.ts Memory2 (#444) 2026-03-23 22:30:02 +05:30
sessions.ts feat(core): new agent runtime (agent-loop + sessions + bridges); retire old runtime 2026-06-15 09:34:24 +05:30
workspace.ts bootstrap new electron app 2026-01-16 12:05:33 +05:30