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:
1 parent
1bbbaafb1e
commit
f456ee9630
110 files changed
+7068
-10956
No files matched your search
@@ -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 };
|
||||
|
||||
export type DiffRenderMode = "stacked" | "split";
|
||||
|
||||
@@ -22,8 +22,8 @@ interface DiffPanelStoreState {
|
||||
setDiffRenderMode: (mode: DiffRenderMode) => void;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,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),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user