chore: commit workspace updates

This commit is contained in:
ddCat committed 2026-09-14 01:11:56 +08:00
1 parent 4eeef3cfd8
commit 4b0e9d8965
490 files changed
+12826 -72249

No files matched your search

@@ -0,0 +1,9 @@
import { canonicalize } from "json-canonicalize";
import type { CanvasProject } from "@/stores/canvas/use-canvas-store";
// Panning/focusing is local UI state, not an edit to Agent-owned canvas content.
export function sameAgentCanvasContent(previous: CanvasProject | undefined, current: CanvasProject) {
if (!previous) return false;
const content = ({ viewport: _viewport, updatedAt: _updatedAt, ...rest }: CanvasProject) => rest;
return canonicalize(content(previous)) === canonicalize(content(current));
}