or3-workflow-vue 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +86 -192
- package/dist/index.js +2641 -2734
- package/dist/index.umd.cjs +7 -7
- package/dist/or3-workflow-vue.css +1 -0
- package/package.json +4 -4
- package/dist/style.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import { ExecutionAdapter } from 'or3-workflow-core';
|
|
|
13
13
|
import { ExecutionCallbacks } from 'or3-workflow-core';
|
|
14
14
|
import { ExecutionInput } from 'or3-workflow-core';
|
|
15
15
|
import { ExecutionResult } from 'or3-workflow-core';
|
|
16
|
-
import { ExtractPropTypes } from 'vue';
|
|
17
16
|
import { HITLMode } from 'or3-workflow-core';
|
|
18
17
|
import { isAgentNodeData } from 'or3-workflow-core';
|
|
19
18
|
import { isOutputNodeData } from 'or3-workflow-core';
|
|
@@ -27,7 +26,6 @@ import { NodeStatus } from 'or3-workflow-core';
|
|
|
27
26
|
import { OutputFormat } from 'or3-workflow-core';
|
|
28
27
|
import { OutputNodeData } from 'or3-workflow-core';
|
|
29
28
|
import { ParallelNodeData } from 'or3-workflow-core';
|
|
30
|
-
import { PropType } from 'vue';
|
|
31
29
|
import { PublicProps } from 'vue';
|
|
32
30
|
import { Ref } from 'vue';
|
|
33
31
|
import { RouterNodeData } from 'or3-workflow-core';
|
|
@@ -41,121 +39,75 @@ import { WorkflowEditor } from 'or3-workflow-core';
|
|
|
41
39
|
import { WorkflowNode } from 'or3-workflow-core';
|
|
42
40
|
import { WorkflowSummary } from 'or3-workflow-core';
|
|
43
41
|
|
|
44
|
-
declare const __VLS_component: DefineComponent<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
status?: "idle" | "active" | "completed" | "error";
|
|
48
|
-
variant?: "default" | "accent" | "warning" | "info" | "secondary";
|
|
49
|
-
}>, {
|
|
50
|
-
status: string;
|
|
51
|
-
variant: string;
|
|
52
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
-
inspect: () => void;
|
|
54
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps_7<{
|
|
55
|
-
id: string;
|
|
56
|
-
selected?: boolean;
|
|
57
|
-
status?: "idle" | "active" | "completed" | "error";
|
|
58
|
-
variant?: "default" | "accent" | "warning" | "info" | "secondary";
|
|
59
|
-
}>, {
|
|
60
|
-
status: string;
|
|
61
|
-
variant: string;
|
|
62
|
-
}>>> & Readonly<{
|
|
42
|
+
declare const __VLS_component: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
43
|
+
inspect: () => any;
|
|
44
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
63
45
|
onInspect?: (() => any) | undefined;
|
|
64
46
|
}>, {
|
|
65
47
|
status: "idle" | "active" | "completed" | "error";
|
|
66
48
|
variant: "default" | "accent" | "warning" | "info" | "secondary";
|
|
67
|
-
}, {}, {}, {}, string, ComponentProvideOptions,
|
|
68
|
-
|
|
69
|
-
declare type
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
|
|
78
|
-
|
|
79
|
-
declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
|
|
80
|
-
|
|
81
|
-
declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
|
|
82
|
-
|
|
83
|
-
declare type __VLS_Prettify<T> = {
|
|
84
|
-
[K in keyof T]: T[K];
|
|
85
|
-
} & {};
|
|
86
|
-
|
|
87
|
-
declare function __VLS_template(): {
|
|
88
|
-
default?(_: {}): any;
|
|
49
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
50
|
+
|
|
51
|
+
declare type __VLS_Props = {
|
|
52
|
+
editor: WorkflowEditor;
|
|
53
|
+
nodeStatuses?: Record<string, 'idle' | 'active' | 'completed' | 'error'>;
|
|
54
|
+
panOnDrag?: boolean | number[];
|
|
55
|
+
selectionKeyCode?: KeyFilter | boolean | null;
|
|
56
|
+
selectionMode?: SelectionMode_2;
|
|
57
|
+
canvasId?: string;
|
|
89
58
|
};
|
|
90
59
|
|
|
91
|
-
declare type
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
} : {
|
|
95
|
-
type: PropType<T[K]>;
|
|
96
|
-
required: true;
|
|
97
|
-
};
|
|
60
|
+
declare type __VLS_Props_2 = {
|
|
61
|
+
editor?: WorkflowEditor;
|
|
62
|
+
canvasId?: string;
|
|
98
63
|
};
|
|
99
64
|
|
|
100
|
-
declare type
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
65
|
+
declare type __VLS_Props_3 = {
|
|
66
|
+
editor: WorkflowEditor;
|
|
67
|
+
availableTools?: ToolOption[];
|
|
68
|
+
availableSubflows?: SubflowOption[];
|
|
69
|
+
subflowListLoading?: boolean;
|
|
70
|
+
subflowListError?: string | null;
|
|
107
71
|
};
|
|
108
72
|
|
|
109
|
-
declare type
|
|
110
|
-
[
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
73
|
+
declare type __VLS_Props_4 = {
|
|
74
|
+
messages?: ChatMessage[];
|
|
75
|
+
streamingContent?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Optional execution state instance.
|
|
78
|
+
* Pass a state created via `createExecutionState()` to avoid sharing state
|
|
79
|
+
* between multiple ChatPanel instances or workflows.
|
|
80
|
+
* If not provided, uses a shared singleton (legacy behavior).
|
|
81
|
+
*/
|
|
82
|
+
executionState?: UseExecutionStateReturn;
|
|
116
83
|
};
|
|
117
84
|
|
|
118
|
-
declare type
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
} : {
|
|
122
|
-
type: PropType<T[K]>;
|
|
123
|
-
required: true;
|
|
124
|
-
};
|
|
85
|
+
declare type __VLS_Props_5 = {
|
|
86
|
+
edge: Edge | null;
|
|
87
|
+
show: boolean;
|
|
125
88
|
};
|
|
126
89
|
|
|
127
|
-
declare type
|
|
128
|
-
|
|
129
|
-
type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
|
|
130
|
-
} : {
|
|
131
|
-
type: PropType<T[K]>;
|
|
132
|
-
required: true;
|
|
133
|
-
};
|
|
90
|
+
declare type __VLS_Props_6 = {
|
|
91
|
+
editor: WorkflowEditor;
|
|
134
92
|
};
|
|
135
93
|
|
|
136
|
-
declare type
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
required: true;
|
|
142
|
-
};
|
|
94
|
+
declare type __VLS_Props_7 = {
|
|
95
|
+
id: string;
|
|
96
|
+
selected?: boolean;
|
|
97
|
+
status?: 'idle' | 'active' | 'completed' | 'error';
|
|
98
|
+
variant?: 'default' | 'accent' | 'warning' | 'info' | 'secondary';
|
|
143
99
|
};
|
|
144
100
|
|
|
145
|
-
declare
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
type: PropType<T[K]>;
|
|
150
|
-
required: true;
|
|
101
|
+
declare function __VLS_template(): {
|
|
102
|
+
attrs: Partial<{}>;
|
|
103
|
+
slots: {
|
|
104
|
+
default?(_: {}): any;
|
|
151
105
|
};
|
|
106
|
+
refs: {};
|
|
107
|
+
rootEl: HTMLDivElement;
|
|
152
108
|
};
|
|
153
109
|
|
|
154
|
-
declare type
|
|
155
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
156
|
-
default: D[K];
|
|
157
|
-
}> : P[K];
|
|
158
|
-
};
|
|
110
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
159
111
|
|
|
160
112
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
161
113
|
new (): {
|
|
@@ -177,33 +129,15 @@ declare interface ChatMessage {
|
|
|
177
129
|
}>;
|
|
178
130
|
}
|
|
179
131
|
|
|
180
|
-
export declare const ChatPanel: DefineComponent<
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
* Optional execution state instance.
|
|
185
|
-
* Pass a state created via `createExecutionState()` to avoid sharing state
|
|
186
|
-
* between multiple ChatPanel instances or workflows.
|
|
187
|
-
* If not provided, uses a shared singleton (legacy behavior).
|
|
188
|
-
*/
|
|
189
|
-
executionState?: UseExecutionStateReturn;
|
|
190
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
191
|
-
send: (message: string) => void;
|
|
192
|
-
clear: () => void;
|
|
193
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
|
|
194
|
-
messages?: ChatMessage[];
|
|
195
|
-
streamingContent?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Optional execution state instance.
|
|
198
|
-
* Pass a state created via `createExecutionState()` to avoid sharing state
|
|
199
|
-
* between multiple ChatPanel instances or workflows.
|
|
200
|
-
* If not provided, uses a shared singleton (legacy behavior).
|
|
201
|
-
*/
|
|
202
|
-
executionState?: UseExecutionStateReturn;
|
|
203
|
-
}>>> & Readonly<{
|
|
132
|
+
export declare const ChatPanel: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
133
|
+
clear: () => any;
|
|
134
|
+
send: (message: string) => any;
|
|
135
|
+
}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
|
|
204
136
|
onClear?: (() => any) | undefined;
|
|
205
137
|
onSend?: ((message: string) => any) | undefined;
|
|
206
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
138
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
139
|
+
messagesContainer: HTMLDivElement;
|
|
140
|
+
}, HTMLDivElement>;
|
|
207
141
|
|
|
208
142
|
export { Connection }
|
|
209
143
|
|
|
@@ -254,21 +188,17 @@ export declare const defaultNodeRegistry: NodeComponentRegistry;
|
|
|
254
188
|
|
|
255
189
|
export { Edge }
|
|
256
190
|
|
|
257
|
-
export declare const EdgeLabelEditor: DefineComponent<
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
update: (edgeId: string, label: string) => void;
|
|
263
|
-
delete: (edgeId: string) => void;
|
|
264
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
|
|
265
|
-
edge: Edge | null;
|
|
266
|
-
show: boolean;
|
|
267
|
-
}>>> & Readonly<{
|
|
268
|
-
onDelete?: ((edgeId: string) => any) | undefined;
|
|
191
|
+
export declare const EdgeLabelEditor: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
192
|
+
update: (edgeId: string, label: string) => any;
|
|
193
|
+
delete: (edgeId: string) => any;
|
|
194
|
+
close: () => any;
|
|
195
|
+
}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
|
|
269
196
|
onUpdate?: ((edgeId: string, label: string) => any) | undefined;
|
|
197
|
+
onDelete?: ((edgeId: string) => any) | undefined;
|
|
270
198
|
onClose?: (() => any) | undefined;
|
|
271
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
199
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
200
|
+
inputRef: HTMLInputElement;
|
|
201
|
+
}, any>;
|
|
272
202
|
|
|
273
203
|
export { ExecutionAdapter }
|
|
274
204
|
|
|
@@ -346,41 +276,23 @@ export declare interface NodeComponentRegistry {
|
|
|
346
276
|
|
|
347
277
|
export { NodeData }
|
|
348
278
|
|
|
349
|
-
export declare const NodeInspector: DefineComponent<
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
subflowListLoading?: boolean;
|
|
354
|
-
subflowListError?: string | null;
|
|
355
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
356
|
-
delete: (nodeId: string) => void;
|
|
357
|
-
close: () => void;
|
|
358
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
|
|
359
|
-
editor: WorkflowEditor;
|
|
360
|
-
availableTools?: ToolOption[];
|
|
361
|
-
availableSubflows?: SubflowOption[];
|
|
362
|
-
subflowListLoading?: boolean;
|
|
363
|
-
subflowListError?: string | null;
|
|
364
|
-
}>>> & Readonly<{
|
|
279
|
+
export declare const NodeInspector: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
280
|
+
delete: (nodeId: string) => any;
|
|
281
|
+
close: () => any;
|
|
282
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
365
283
|
onDelete?: ((nodeId: string) => any) | undefined;
|
|
366
284
|
onClose?: (() => any) | undefined;
|
|
367
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
368
|
-
|
|
369
|
-
export declare const NodePalette: DefineComponent<
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
373
|
-
"quick-add": () => void;
|
|
374
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
375
|
-
editor?: WorkflowEditor;
|
|
376
|
-
canvasId?: string;
|
|
377
|
-
}>>> & Readonly<{
|
|
285
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
286
|
+
|
|
287
|
+
export declare const NodePalette: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
288
|
+
"quick-add": () => any;
|
|
289
|
+
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
378
290
|
"onQuick-add"?: (() => any) | undefined;
|
|
379
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
291
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
380
292
|
|
|
381
293
|
export { NodeStatus }
|
|
382
294
|
|
|
383
|
-
export declare const NodeWrapper: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
295
|
+
export declare const NodeWrapper: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
384
296
|
|
|
385
297
|
export { OutputNodeData }
|
|
386
298
|
|
|
@@ -827,41 +739,23 @@ export declare interface UseWorkflowStorageReturn {
|
|
|
827
739
|
remove: (id: string) => Promise<void>;
|
|
828
740
|
}
|
|
829
741
|
|
|
830
|
-
export declare const ValidationOverlay: DefineComponent<
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
editor: WorkflowEditor;
|
|
834
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
835
|
-
|
|
836
|
-
export declare const WorkflowCanvas: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
837
|
-
editor: WorkflowEditor;
|
|
838
|
-
nodeStatuses?: Record<string, "idle" | "active" | "completed" | "error">;
|
|
839
|
-
panOnDrag?: boolean | number[];
|
|
840
|
-
selectionKeyCode?: KeyFilter | boolean | null;
|
|
841
|
-
selectionMode?: SelectionMode_2;
|
|
842
|
-
canvasId?: string;
|
|
843
|
-
}>>, {
|
|
742
|
+
export declare const ValidationOverlay: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
743
|
+
|
|
744
|
+
export declare const WorkflowCanvas: DefineComponent<__VLS_Props, {
|
|
844
745
|
fitView: () => Promise<boolean>;
|
|
845
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
846
|
-
nodeClick: (node: Node_2<any, any, string>) =>
|
|
847
|
-
edgeClick: (edge: Edge) =>
|
|
848
|
-
paneClick: () =>
|
|
849
|
-
drop: (event: DragEvent) =>
|
|
850
|
-
nodeInspect: (node: Node_2<any, any, string>) =>
|
|
851
|
-
}, string, PublicProps, Readonly<
|
|
852
|
-
editor: WorkflowEditor;
|
|
853
|
-
nodeStatuses?: Record<string, "idle" | "active" | "completed" | "error">;
|
|
854
|
-
panOnDrag?: boolean | number[];
|
|
855
|
-
selectionKeyCode?: KeyFilter | boolean | null;
|
|
856
|
-
selectionMode?: SelectionMode_2;
|
|
857
|
-
canvasId?: string;
|
|
858
|
-
}>>> & Readonly<{
|
|
746
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
747
|
+
nodeClick: (node: Node_2<any, any, string>) => any;
|
|
748
|
+
edgeClick: (edge: Edge) => any;
|
|
749
|
+
paneClick: () => any;
|
|
750
|
+
drop: (event: DragEvent) => any;
|
|
751
|
+
nodeInspect: (node: Node_2<any, any, string>) => any;
|
|
752
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
859
753
|
onNodeClick?: ((node: Node_2<any, any, string>) => any) | undefined;
|
|
860
754
|
onEdgeClick?: ((edge: Edge) => any) | undefined;
|
|
861
755
|
onPaneClick?: (() => any) | undefined;
|
|
862
756
|
onDrop?: ((event: DragEvent) => any) | undefined;
|
|
863
757
|
onNodeInspect?: ((node: Node_2<any, any, string>) => any) | undefined;
|
|
864
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
758
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
865
759
|
|
|
866
760
|
export { WorkflowData }
|
|
867
761
|
|