refactor: remove agent ID references from AI workflow handling and related components

This commit is contained in:
mlogclub
2026-07-25 15:32:55 +08:00
parent 7b86fd1f09
commit 1663db7f24
14 changed files with 13 additions and 302 deletions
@@ -478,7 +478,6 @@ export function AIAgentConfigWorkbench({
setSavingWorkflow(true)
try {
await saveAIAgentWorkflow({
agentId: currentAgentId,
name: "",
description: "",
definition,
@@ -561,7 +560,6 @@ export function AIAgentConfigWorkbench({
setSavingWorkflow(true)
try {
const saved = await saveAIAgentWorkflow({
agentId: currentAgentId,
name: "",
description: "",
definition,
-2
View File
@@ -402,7 +402,6 @@ export type AIWorkflow = {
id: number
name: string
description: string
agentId: number
status: number
draftDefinition: AIWorkflowDefinition
publishedVersionId: number
@@ -459,7 +458,6 @@ export type AIWorkflowValidationResult = {
export type CreateAIWorkflowPayload = {
name: string
description: string
agentId?: number
definition: AIWorkflowDefinition
}