Fix 分镜面板不支持整板重做,系统不存在删除旧分镜的 Agent 工具,AI 无法在重做前清空面板,导致新旧分镜混合 - #248
Open
a13060512883 wants to merge 9 commits into
Open
Fix 分镜面板不支持整板重做,系统不存在删除旧分镜的 Agent 工具,AI 无法在重做前清空面板,导致新旧分镜混合#248a13060512883 wants to merge 9 commits into
a13060512883 wants to merge 9 commits into
Conversation
1:新增工具方法
2:提取公共删除从 batchDelete.ts 中提取出的删除逻辑,封装为独立可复用函数。
3:src/utils/db.ts
4:src/routes/production/storyboard/batchDelete.ts 原删除逻辑改用提取后的公共函数
5:src/agents/productionAgent/tools.ts — 新增工具修复时序
新增 del_flowData_storyboard 工具 (25 行):
- 接收 { ids } ,从 resTool.data 自动获取 projectId / scriptId
- 调用 deleteStoryboards({ ids, projectId, scriptId, requireAll: true }) — 必须全量匹配
- 删除成功后 socket.emit("delStoryboard", ...) 通知前端刷新面板
6:data/skills/production_execution_storyboard_panel.md — 新增规则
工具表新增 2 行 : get_flowData("storyboard") 和 del_flowData_storyboard
7:新增"整板重做前置流程"段落 (7 条规则):
1. 先读当前分镜面板,失败则终止
2. 提取全部旧分镜 ID,禁止筛选部分 ID
3. 空面板跳过删除
4. 一次性全删,不允许分批
5. 删除失败 → 终止,禁止写入
6. 删除成功 → 进入流程 A 或 C
7. 写入完成后再次读取验证(旧 ID 不在 + 数量一致才算成功)
此功能与前端pr一起
Owner
|
PR 基于较旧版本的代码提交,非当前最新的 |
Author
已同步最新代码并完成适配与测试,烦请重新确认~ |
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

问题
分镜面板不支持整板重做。系统不存在删除旧分镜的 Agent 工具,AI 无法在重做前清空面板,导致新旧分镜混合。
修复
验证