feat(agent): 云端创作助手 - 增加创作锚点、媒体准入与结构化分镜能力
This commit is contained in:
1 parent
40aca20f4d
commit
be9b22a697
22 files changed
+1686
-60
No files matched your search
@@ -104,6 +104,15 @@ func cloudAgentCanvasState(repo *repository.Repository, userID string, doc map[s
|
||||
for key, value := range projected {
|
||||
item[key] = value
|
||||
}
|
||||
if draftRunID := stringValue(meta["agentDraftRunId"]); draftRunID != "" && stringValue(meta["taskId"]) == "" {
|
||||
draft := map[string]any{"submitted": false, "requiresApproval": true, "ownerStatus": "unknown"}
|
||||
owner, err := repo.CloudAgent(userID, draftRunID)
|
||||
if err == nil && owner.CanvasID != "" {
|
||||
draft["ownerStatus"] = owner.Status
|
||||
draft["cleanupPending"] = owner.CleanupPending
|
||||
}
|
||||
item["generationDraft"] = draft
|
||||
}
|
||||
if capability.Connection.CanReference {
|
||||
ref, _, err := cloudAgentReference(repo, userID, node)
|
||||
item["referenceReady"] = err == nil
|
||||
|
||||
Reference in new issue
Block a user