feat(agent): 预演工作站 - 创建场景时绑定可打开预演台的视频节点

创建场景时放置或修复唯一的 video 工作站,补丁复用空闲绑定并拒绝多节点或类型冲突;没有工作站的旧场景会在补丁时补上。
This commit is contained in:
ddcat666 committed 2026-10-08 10:54:40 +08:00
1 parent 9b1464544f
commit dd52588a5b
3 files changed
+405 -12

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ func compileCloudAgentTools(req CloudAgentRequest, includeProfileTool bool) []ma
}, "sceneId", "shotId")
}
if req.PermissionMode != "read_only" {
add("previs_scene_create", "创建预演场景;先读 canvasSnapshotHash。", cloudAgentPrevisSceneCreateSchema()["properties"].(map[string]any), "canvasSnapshotHash", "sceneId", "title", "templateId")
add("previs_scene_create", "创建预演场景并绑定一个可打开预演工作台的 video 工作站节点;先读 canvasSnapshotHash。", cloudAgentPrevisSceneCreateSchema()["properties"].(map[string]any), "canvasSnapshotHash", "sceneId", "title", "templateId")
add("previs_apply_patch", "审批后应用语义补丁,最多32项;先读 snapshotHash。支持场景、镜头、对象、相机、灯光、动画;角色绑定须匹配画布角色卡,动画时间不超镜头时长。禁止原始 JSON、URL、storage key。", cloudAgentPrevisApplyPatchSchema()["properties"].(map[string]any), "snapshotHash", "sceneId", "operations")
}
add("canvas_list_node_types", "列出可创建的节点类型、尺寸与连接约束;先读能力卡再选择,不要猜 nodeType。", map[string]any{})