or3-workflow-vue 0.1.1 → 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 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<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps_7<{
45
- id: string;
46
- selected?: boolean;
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, true, {}, any>;
68
-
69
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
-
71
- declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
72
-
73
- declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
74
-
75
- declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
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 __VLS_TypePropsToRuntimeProps<T> = {
92
- [K in keyof T]-?: {} extends Pick<T, K> ? {
93
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
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 __VLS_TypePropsToRuntimeProps_2<T> = {
101
- [K in keyof T]-?: {} extends Pick<T, K> ? {
102
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
103
- } : {
104
- type: PropType<T[K]>;
105
- required: true;
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 __VLS_TypePropsToRuntimeProps_3<T> = {
110
- [K in keyof T]-?: {} extends Pick<T, K> ? {
111
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
112
- } : {
113
- type: PropType<T[K]>;
114
- required: true;
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 __VLS_TypePropsToRuntimeProps_4<T> = {
119
- [K in keyof T]-?: {} extends Pick<T, K> ? {
120
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
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 __VLS_TypePropsToRuntimeProps_5<T> = {
128
- [K in keyof T]-?: {} extends Pick<T, K> ? {
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 __VLS_TypePropsToRuntimeProps_6<T> = {
137
- [K in keyof T]-?: {} extends Pick<T, K> ? {
138
- type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
139
- } : {
140
- type: PropType<T[K]>;
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 type __VLS_TypePropsToRuntimeProps_7<T> = {
146
- [K in keyof T]-?: {} extends Pick<T, K> ? {
147
- type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
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 __VLS_WithDefaults<P, D> = {
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<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<{
181
- messages?: ChatMessage[];
182
- streamingContent?: string;
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, true, {}, any>;
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<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
258
- edge: Edge | null;
259
- show: boolean;
260
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
261
- close: () => void;
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, true, {}, any>;
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<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_3<{
350
- editor: WorkflowEditor;
351
- availableTools?: ToolOption[];
352
- availableSubflows?: SubflowOption[];
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, true, {}, any>;
368
-
369
- export declare const NodePalette: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
370
- editor?: WorkflowEditor;
371
- canvasId?: string;
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, true, {}, any>;
291
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
380
292
 
381
293
  export { NodeStatus }
382
294
 
383
- export declare const NodeWrapper: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
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<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_6<{
831
- editor: WorkflowEditor;
832
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_6<{
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>) => void;
847
- edgeClick: (edge: Edge) => void;
848
- paneClick: () => void;
849
- drop: (event: DragEvent) => void;
850
- nodeInspect: (node: Node_2<any, any, string>) => void;
851
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
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, true, {}, any>;
758
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
865
759
 
866
760
  export { WorkflowData }
867
761