feat(canvas): 云端 Agent - 完成策略分层、节点能力注册与可解释审批改造

This commit is contained in:
ddCat committed 2026-09-14 17:58:21 +08:00
1 parent 4b0e9d8965
commit 01486872c4
65 files changed
+5347 -918

No files matched your search

+2 -7
View File
@@ -432,13 +432,8 @@ func creationAddedNode(op CreationCanvasOp) map[string]any {
width, height, title = capability.DefaultWidth, capability.DefaultHeight, capability.Label
}
metadata := map[string]any{"content": "", "status": "idle"}
switch op.NodeType {
case "frame":
metadata = map[string]any{"frame": map[string]any{"collapsed": false, "expandedWidth": width, "expandedHeight": height}}
case "script":
metadata = map[string]any{"status": "idle", "workflowKind": "script", "storyboard": map[string]any{"rows": []any{}, "visibleColumns": []any{"shotNumber", "durationSeconds", "videoMotionPrompt", "dialogue", "assets"}, "referenceNodeIds": []any{}}}
case "text":
metadata["fontSize"] = float64(14)
if known && op.Metadata == nil {
metadata = capability.Metadata("")
}
if op.Width != nil {
width = *op.Width