refactor(workflow): enforce strict nested type safety for WorkflowTaskPayload

This commit is contained in:
yiling
2026-05-28 09:48:05 +08:00
parent 911e369782
commit 11d2e89a48
18 changed files with 185 additions and 98 deletions
+11 -7
View File
@@ -1274,11 +1274,13 @@ export class AssetService {
teamId: a.project.team.id,
projectId: a.project.id,
payload: {
userCommentId: comment.id,
agentId: rootAgentId,
projectId: a.project.id,
sessionId: rootSessionId || undefined,
explicitMention,
agent: {
userCommentId: comment.id,
agentId: rootAgentId,
sessionId: rootSessionId || undefined,
explicitMention,
},
},
},
})
@@ -1307,10 +1309,12 @@ export class AssetService {
teamId: a.project.team.id,
projectId: a.project.id,
payload: {
userCommentId: comment.id,
agentId: agentId,
projectId: a.project.id,
explicitMention: true,
agent: {
userCommentId: comment.id,
agentId: agentId,
explicitMention: true,
},
},
},
})