Complete orchestration V2 frontend cutover

- Migrate web and mobile state, commands, and persistence to V2 projections
- Render conversations from authoritative visible turn items
- Harden runtime policy, launch handling, attachments, and cache invalidation
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-06-24 16:33:56 -07:00
1 parent 353acd9a27
commit 323ad3614f
111 files changed
+5816 -8099

No files matched your search

+5 -5
View File
@@ -1,5 +1,5 @@
import { scopedThreadKey } from "@t3tools/client-runtime/environment";
import type { ScopedThreadRef, TurnId } from "@t3tools/contracts";
import type { RunId, ScopedThreadRef } from "@t3tools/contracts";
import { create } from "zustand";
import { createJSONStorage, persist } from "zustand/middleware";
@@ -8,7 +8,7 @@ import { resolveStorage } from "./lib/storage";
export type DiffPanelSelection =
| { kind: "branch"; baseRef: string | null }
| { kind: "unstaged" }
| { kind: "turn"; turnId: TurnId; filePath: string | null; revealRequestId: number };
| { kind: "turn"; turnId: RunId; filePath: string | null; revealRequestId: number };
const DEFAULT_SELECTION: DiffPanelSelection = { kind: "branch", baseRef: null };
@@ -17,8 +17,8 @@ interface DiffPanelStoreState {
branchBaseRefByThreadKey: Record<string, string | null>;
selectGitScope: (ref: ScopedThreadRef, scope: "branch" | "unstaged") => void;
selectBranchBaseRef: (ref: ScopedThreadRef, baseRef: string | null) => void;
selectTurn: (ref: ScopedThreadRef, turnId: TurnId, filePath?: string) => void;
reconcileTurnSelection: (ref: ScopedThreadRef, availableTurnIds: ReadonlyArray<TurnId>) => void;
selectTurn: (ref: ScopedThreadRef, turnId: RunId, filePath?: string) => void;
reconcileTurnSelection: (ref: ScopedThreadRef, availableTurnIds: ReadonlyArray<RunId>) => void;
removeThread: (ref: ScopedThreadRef) => void;
}
@@ -118,7 +118,7 @@ export const useDiffPanelStore = create<DiffPanelStoreState>()(
}),
{
name: "t3code:diff-panel-state:v1",
version: 1,
version: 2,
storage: createJSONStorage(() =>
resolveStorage(typeof window !== "undefined" ? window.localStorage : undefined),
),