feat(*): 云端 Agent - 增强画布上下文读取并接入 Gemini 缓存

This commit is contained in:
ddcat666 committed 2026-09-26 02:21:47 +08:00
1 parent 84e5be0bdb
commit 21b311b90b
35 files changed
+1927 -266

No files matched your search

@@ -143,7 +143,7 @@ func TestCloudAgentCanvasReadArgumentRepairContinuesRun(t *testing.T) {
t.Fatalf("lost strict schema after checkpoint: %#v", result)
}
properties, _ := schema["properties"].(map[string]any)
if len(properties) != 4 || properties["offset"] == nil || properties["nodeIds"] == nil || properties["storyboardOffset"] == nil || properties["connectionOffset"] == nil {
if len(properties) != 7 || properties["offset"] == nil || properties["nodeIds"] == nil || properties["focusNodeIds"] == nil || properties["depth"] == nil || properties["includeRelated"] == nil || properties["storyboardOffset"] == nil || properties["connectionOffset"] == nil {
t.Fatalf("wrong repair schema: %#v", properties)
}
} else if result["error"] != nil || result["snapshotHash"] == nil || !strings.Contains(last["content"].(string), "saved content") {