feat(*): Agent工作流 - 完善审批、分镜协作与资源交互体验
This commit is contained in:
1 parent
435bc487cf
commit
298bee1fa9
38 files changed
+508
-1263
No files matched your search
@@ -243,13 +243,13 @@ func prepareCloudAgentStoryboardEdit(repo *repository.Repository, userID, canvas
|
||||
return nil, err
|
||||
}
|
||||
beforeHash := cloudAgentCanvasHash(doc)
|
||||
if !cloudAgentNodeSnapshotMatches(doc, args.NodeID, args.SnapshotHash) {
|
||||
return nil, cloudAgentFieldError("snapshotHash", "stale_snapshot", "这个分镜在你读取之后被修改过,本次未写入;请重新读取分镜后再改")
|
||||
}
|
||||
node, storyboard, rows, err := storyboardNodeFromDocument(doc, args.NodeID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !cloudAgentNodeSnapshotMatches(doc, args.NodeID, args.SnapshotHash) {
|
||||
return nil, cloudAgentFieldError("snapshotHash", "stale_snapshot", "这个分镜在你读取之后被修改过,本次未写入;请重新读取分镜后再改")
|
||||
}
|
||||
index := -1
|
||||
for i, row := range rows {
|
||||
if stringValue(row["id"]) == args.RowID {
|
||||
|
||||
Reference in new issue
Block a user