refactor workflow

This commit is contained in:
mlogclub
2026-07-27 13:47:53 +08:00
parent 1464008741
commit bd8011dab8
44 changed files with 2785 additions and 3504 deletions
+11 -8
View File
@@ -375,7 +375,17 @@ export type AIWorkflowVariableSpec = {
export type AIWorkflowDefinition = {
schemaVersion: number
nodes: {
nodes: AIWorkflowCanvasNode[]
annotations?: AIWorkflowCanvasNode[]
edges: {
sourceNodeID: string
targetNodeID: string
sourcePortID?: string
targetPortID?: string
}[]
}
export type AIWorkflowCanvasNode = {
id: string
type: string
meta: {
@@ -389,13 +399,6 @@ export type AIWorkflowDefinition = {
inputsValues?: Record<string, AIWorkflowValue>
[key: string]: unknown
}
}[]
edges: {
sourceNodeID: string
targetNodeID: string
sourcePortID?: string
targetPortID?: string
}[]
}
export type AIWorkflow = {