apps/server/integration/OrchestrationEngineHarness.integration.ts | 6 - apps/server/integration/orchestrationEngine.integration.test.ts | 52 +++++---- apps/server/src/checkpointing/Layers/CheckpointDiffQuery.test.ts | 190 ++++++++++++++++++++++++++++++ apps/server/src/checkpointing/Layers/CheckpointDiffQuery.ts | 193 +++++++++++++++++++++++++++++++ apps/server/src/checkpointing/Refs.ts | 10 ++ apps/server/src/checkpointing/Services/CheckpointDiffQuery.ts | 24 ++++ apps/server/src/git.ts | 8 +- apps/server/src/keybindings.test.ts | 2 +- apps/server/src/keybindings.ts | 4 +- apps/server/src/orchestration/Layer.test.ts | 68 ++++++----- apps/server/src/orchestration/Layers/CheckpointReactor.test.ts | 115 ++++++++++-------- apps/server/src/orchestration/Layers/CheckpointReactor.ts | 14 +-- apps/server/src/orchestration/Layers/OrchestrationEngine.ts | 24 +--- apps/server/src/orchestration/Layers/ProjectionSnapshotQuery.test.ts | 5 +- apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts | 46 ++++---- apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts | 16 ++- apps/server/src/orchestration/Services/OrchestrationEngine.ts | 14 +-- apps/server/src/orchestration/decider.projectScripts.test.ts | 26 ++--- apps/server/src/provider/Layers/CodexAdapter.test.ts | 11 +- apps/server/src/provider/Layers/ProviderService.test.ts | 11 +- apps/server/src/serverLayers.ts | 8 ++ apps/server/src/terminalManager.test.ts | 7 +- apps/server/src/terminalManager.ts | 6 +- apps/server/src/wsServer.test.ts | 22 +++- apps/server/src/wsServer.ts | 182 +++++------------------------ apps/web/src/components/BranchToolbar.logic.test.ts | 11 +- apps/web/src/components/BranchToolbar.logic.ts | 4 +- apps/web/src/components/BranchToolbar.tsx | 26 +++-- apps/web/src/components/ChatMarkdown.tsx | 14 ++- apps/web/src/components/ChatView.tsx | 199 ++++++++++++++++---------------- apps/web/src/components/DiffPanel.tsx | 19 ++- apps/web/src/components/GitActionsControl.tsx | 36 +++--- apps/web/src/components/Sidebar.tsx | 74 ++++++------ apps/web/src/components/ThreadTerminalDrawer.tsx | 34 +++--- apps/web/src/components/ui/command.tsx | 5 +- apps/web/src/components/ui/sheet.tsx | 1 + apps/web/src/components/ui/toast.tsx | 10 +- apps/web/src/diffRouteSearch.ts | 7 +- apps/web/src/historyBootstrap.test.ts | 17 +-- apps/web/src/hooks/useNativeApi.ts | 6 - apps/web/src/lib/gitReactQuery.ts | 89 ++++++-------- apps/web/src/lib/orchestrationIds.ts | 1 - apps/web/src/lib/projectReactQuery.ts | 11 +- apps/web/src/lib/providerReactQuery.test.ts | 84 +++++++++----- apps/web/src/lib/providerReactQuery.ts | 64 +++++----- apps/web/src/lib/serverReactQuery.ts | 9 +- apps/web/src/model-logic.test.ts | 33 ------ apps/web/src/model-logic.ts | 10 -- apps/web/src/nativeApi.ts | 8 ++ apps/web/src/routes/__root.tsx | 10 +- apps/web/src/routes/_chat.$threadId.tsx | 14 +-- apps/web/src/routes/_chat.tsx | 2 +- apps/web/src/session-logic.test.ts | 36 +----- apps/web/src/session-logic.ts | 80 +++---------- apps/web/src/store.ts | 39 ++++--- apps/web/src/threadFactory.ts | 42 ------- apps/web/src/types.ts | 34 +++--- apps/web/src/worktreeCleanup.test.ts | 35 ++++-- apps/web/src/worktreeCleanup.ts | 2 +- apps/web/src/wsTransport.ts | 7 +- packages/contracts/src/editor.ts | 5 +- packages/contracts/src/git.ts | 96 +++++++-------- packages/contracts/src/keybindings.ts | 26 ++--- packages/contracts/src/model.ts | 4 + packages/contracts/src/orchestration.test.ts | 46 ++++++++ packages/contracts/src/orchestration.ts | 33 ++++-- packages/contracts/src/project.ts | 19 ++- packages/contracts/src/ws.test.ts | 39 +++++++ packages/contracts/src/ws.ts | 82 +++++++------ 69 files changed, 1386 insertions(+), 1101 deletions(-)