@particle-academy/fancy-flow 0.49.0 → 0.51.0
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/{ConfigFieldRenderer-CrXFq6Eb.d.cts → ConfigFieldRenderer-Bc9Txnql.d.cts} +2 -2
- package/dist/{ConfigFieldRenderer-u3nYHovX.d.ts → ConfigFieldRenderer-Bt3RGT7Z.d.ts} +2 -2
- package/dist/{FlowViewer-DRgjeWJ7.d.ts → FlowViewer-BI_AyyvU.d.ts} +1 -1
- package/dist/{FlowViewer-CFSMlCqi.d.cts → FlowViewer-DABx-6A-.d.cts} +1 -1
- package/dist/{capabilities-VzgDApur.d.cts → capabilities-BYa5p5jw.d.cts} +1 -1
- package/dist/{capabilities-B00VXLUp.d.ts → capabilities-COOXRiNL.d.ts} +1 -1
- package/dist/{chunk-6XKR65XM.js → chunk-6AI6CBNL.js} +3 -3
- package/dist/{chunk-6XKR65XM.js.map → chunk-6AI6CBNL.js.map} +1 -1
- package/dist/{chunk-AVRGZFXG.js → chunk-7XTTXMGB.js} +4 -4
- package/dist/{chunk-AVRGZFXG.js.map → chunk-7XTTXMGB.js.map} +1 -1
- package/dist/{chunk-UL3DGSSG.js → chunk-HXGGCMR7.js} +3 -3
- package/dist/{chunk-UL3DGSSG.js.map → chunk-HXGGCMR7.js.map} +1 -1
- package/dist/{chunk-YOK3WKWC.js → chunk-LH76EIFL.js} +18 -4
- package/dist/chunk-LH76EIFL.js.map +1 -0
- package/dist/{chunk-VUL7CUFW.js → chunk-SKEZ5AGI.js} +3 -3
- package/dist/{chunk-VUL7CUFW.js.map → chunk-SKEZ5AGI.js.map} +1 -1
- package/dist/{chunk-6FP3F5YR.js → chunk-XCT2CJ5O.js} +75 -4
- package/dist/chunk-XCT2CJ5O.js.map +1 -0
- package/dist/connectors.d.cts +2 -2
- package/dist/connectors.d.ts +2 -2
- package/dist/durable/index.d.cts +2 -2
- package/dist/durable/index.d.ts +2 -2
- package/dist/durable.cjs +73 -2
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +73 -2
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.cts +7 -7
- package/dist/engine.d.ts +7 -7
- package/dist/engine.js +3 -3
- package/dist/fields/react-fancy.d.cts +3 -3
- package/dist/fields/react-fancy.d.ts +3 -3
- package/dist/index.cjs +88 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +11 -11
- package/dist/layout/index.d.cts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/llm/prism.d.cts +2 -2
- package/dist/llm/prism.d.ts +2 -2
- package/dist/llm/vercel-ai.d.cts +2 -2
- package/dist/llm/vercel-ai.d.ts +2 -2
- package/dist/registry/index.d.cts +6 -6
- package/dist/registry/index.d.ts +6 -6
- package/dist/{registry-6cB5wCv6.d.ts → registry-3RkSYrMi.d.ts} +1 -1
- package/dist/{registry-DQh7ZmnM.d.cts → registry-C6TMfiD_.d.cts} +1 -1
- package/dist/registry.cjs +73 -2
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/{run-cohort-VX4JG21l.d.ts → run-cohort-BPIOpE8A.d.ts} +2 -2
- package/dist/{run-cohort-DYCL8Qv6.d.cts → run-cohort-r-L8dMED.d.cts} +2 -2
- package/dist/{run-flow-B24QUO1H.d.cts → run-flow-COdAOFg2.d.cts} +10 -1
- package/dist/{run-flow-DPUPAWk6.d.ts → run-flow-DJ7KYT6E.d.ts} +10 -1
- package/dist/runtime/index.d.cts +5 -5
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime.cjs +73 -2
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema/index.d.cts +12 -1
- package/dist/schema/index.d.ts +12 -1
- package/dist/schema.cjs +88 -3
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +73 -2
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.d.cts +2 -2
- package/dist/screens.d.ts +2 -2
- package/dist/screens.js +4 -4
- package/dist/{types-BtMOnb9I.d.cts → types-3sPauVRT.d.cts} +1 -1
- package/dist/{types-7cXcSQlx.d.ts → types-JFYjPJAG.d.cts} +37 -1
- package/dist/{types-7cXcSQlx.d.cts → types-JFYjPJAG.d.ts} +37 -1
- package/dist/{types-CDgIIj4c.d.ts → types-s643U1Hi.d.ts} +1 -1
- package/dist/ux.cjs +73 -2
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.d.cts +2 -2
- package/dist/ux.d.ts +2 -2
- package/dist/ux.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-6FP3F5YR.js.map +0 -1
- package/dist/chunk-YOK3WKWC.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,24 +3,24 @@ import { ReactNode, CSSProperties, ComponentProps, ComponentType } from 'react';
|
|
|
3
3
|
import { ReactFlowProps, Edge, BackgroundVariant, Connection, NodeProps, NodeTypes } from '@xyflow/react';
|
|
4
4
|
import { ConnectionValidatorOptions } from './registry/index.cjs';
|
|
5
5
|
export { ANY_PORT_TYPE, BUILTIN_KINDS, PortCompatibility, RegistryNode, RichInputAdapter, RichInputPreview, buildNodeTypes, createConnectionValidator, defaultPortCompatibility, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerBuiltinKinds, registerRichInputAdapter, resolveNodePorts, resolvePortSpec } from './registry/index.cjs';
|
|
6
|
-
import { a as FlowNode, F as FlowGraph, g as NodeRunStatus, E as ExecutorRegistry } from './types-
|
|
7
|
-
export { A as ActionNodeData, B as BaseNodeData, D as DecisionNodeData, d as FlowEdge, e as FlowNodeData, f as FlowNodeKind, N as NodeExecutor, h as NoteNodeData, O as OutputNodeData, P as PortDescriptor, R as RunEvent, S as SubgraphNodeData, T as TriggerNodeData } from './types-
|
|
8
|
-
import { C as ConfigFieldRenderFn } from './ConfigFieldRenderer-
|
|
9
|
-
export { a as ConfigFieldRenderContext, b as ConfigFieldRenderer, c as ConfigFieldRendererProps } from './ConfigFieldRenderer-
|
|
6
|
+
import { a as FlowNode, F as FlowGraph, g as NodeRunStatus, E as ExecutorRegistry } from './types-JFYjPJAG.cjs';
|
|
7
|
+
export { A as ActionNodeData, B as BaseNodeData, D as DecisionNodeData, d as FlowEdge, e as FlowNodeData, f as FlowNodeKind, N as NodeExecutor, h as NoteNodeData, O as OutputNodeData, P as PortDescriptor, R as RunEvent, S as SubgraphNodeData, T as TriggerNodeData } from './types-JFYjPJAG.cjs';
|
|
8
|
+
import { C as ConfigFieldRenderFn } from './ConfigFieldRenderer-Bc9Txnql.cjs';
|
|
9
|
+
export { a as ConfigFieldRenderContext, b as ConfigFieldRenderer, c as ConfigFieldRendererProps } from './ConfigFieldRenderer-Bc9Txnql.cjs';
|
|
10
10
|
import { WorkflowSchema, WorkflowMetadata } from './schema/index.cjs';
|
|
11
11
|
export { ImportIssue, ImportOptions, ImportResult, WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, WorkflowSchemaEdge, WorkflowSchemaNode, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './schema/index.cjs';
|
|
12
12
|
import { AutoLayoutOptions } from './layout/index.cjs';
|
|
13
13
|
export { AutoLayoutDirection } from './layout/index.cjs';
|
|
14
|
-
import { a as NodeCategory, N as NodeKindDefinition } from './types-
|
|
15
|
-
export { A as AvailableVariable, C as ConfigField, D as DocumentConfigField, r as ExpressionForm, t as ExpressionGrammarHelp, K as KeyValueConfigField, O as OutputField, h as OutputShape, P as PortSpec, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, u as availableVariables, w as baseVariables, x as describeExpressionGrammar, y as outputFieldsFor } from './types-
|
|
16
|
-
export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-
|
|
14
|
+
import { a as NodeCategory, N as NodeKindDefinition } from './types-3sPauVRT.cjs';
|
|
15
|
+
export { A as AvailableVariable, C as ConfigField, D as DocumentConfigField, r as ExpressionForm, t as ExpressionGrammarHelp, K as KeyValueConfigField, O as OutputField, h as OutputShape, P as PortSpec, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, u as availableVariables, w as baseVariables, x as describeExpressionGrammar, y as outputFieldsFor } from './types-3sPauVRT.cjs';
|
|
16
|
+
export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-DABx-6A-.cjs';
|
|
17
17
|
import { FlowRunFeedEntry } from './runtime/index.cjs';
|
|
18
18
|
export { HistoryController, UseFlowHistoryReturn, UseFlowRunOptions, UseFlowRunReturn, UseFlowStateReturn, applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './runtime/index.cjs';
|
|
19
|
-
export { R as RunOptions, a as RunResult, r as runFlow } from './run-flow-
|
|
20
|
-
export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort } from './run-cohort-
|
|
19
|
+
export { R as RunOptions, a as RunResult, r as runFlow } from './run-flow-COdAOFg2.cjs';
|
|
20
|
+
export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort } from './run-cohort-r-L8dMED.cjs';
|
|
21
21
|
export { L as LEGACY_PAUSE_PREFIXES, a as PAUSE_PREFIX, P as PauseAwaiting, b as PauseSignal, d as decodePause, e as encodePause, i as isPause, p as pauseForHuman } from './pause-9iT4tCEV.cjs';
|
|
22
|
-
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, v as validateConfig } from './registry-
|
|
23
|
-
import './capabilities-
|
|
22
|
+
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, v as validateConfig } from './registry-C6TMfiD_.cjs';
|
|
23
|
+
import './capabilities-BYa5p5jw.cjs';
|
|
24
24
|
|
|
25
25
|
type FlowCanvasProps = Omit<ReactFlowProps<FlowNode, Edge>, "nodes" | "edges" | "height"> & {
|
|
26
26
|
nodes: FlowNode[];
|
package/dist/index.d.ts
CHANGED
|
@@ -3,24 +3,24 @@ import { ReactNode, CSSProperties, ComponentProps, ComponentType } from 'react';
|
|
|
3
3
|
import { ReactFlowProps, Edge, BackgroundVariant, Connection, NodeProps, NodeTypes } from '@xyflow/react';
|
|
4
4
|
import { ConnectionValidatorOptions } from './registry/index.js';
|
|
5
5
|
export { ANY_PORT_TYPE, BUILTIN_KINDS, PortCompatibility, RegistryNode, RichInputAdapter, RichInputPreview, buildNodeTypes, createConnectionValidator, defaultPortCompatibility, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerBuiltinKinds, registerRichInputAdapter, resolveNodePorts, resolvePortSpec } from './registry/index.js';
|
|
6
|
-
import { a as FlowNode, F as FlowGraph, g as NodeRunStatus, E as ExecutorRegistry } from './types-
|
|
7
|
-
export { A as ActionNodeData, B as BaseNodeData, D as DecisionNodeData, d as FlowEdge, e as FlowNodeData, f as FlowNodeKind, N as NodeExecutor, h as NoteNodeData, O as OutputNodeData, P as PortDescriptor, R as RunEvent, S as SubgraphNodeData, T as TriggerNodeData } from './types-
|
|
8
|
-
import { C as ConfigFieldRenderFn } from './ConfigFieldRenderer-
|
|
9
|
-
export { a as ConfigFieldRenderContext, b as ConfigFieldRenderer, c as ConfigFieldRendererProps } from './ConfigFieldRenderer-
|
|
6
|
+
import { a as FlowNode, F as FlowGraph, g as NodeRunStatus, E as ExecutorRegistry } from './types-JFYjPJAG.js';
|
|
7
|
+
export { A as ActionNodeData, B as BaseNodeData, D as DecisionNodeData, d as FlowEdge, e as FlowNodeData, f as FlowNodeKind, N as NodeExecutor, h as NoteNodeData, O as OutputNodeData, P as PortDescriptor, R as RunEvent, S as SubgraphNodeData, T as TriggerNodeData } from './types-JFYjPJAG.js';
|
|
8
|
+
import { C as ConfigFieldRenderFn } from './ConfigFieldRenderer-Bt3RGT7Z.js';
|
|
9
|
+
export { a as ConfigFieldRenderContext, b as ConfigFieldRenderer, c as ConfigFieldRendererProps } from './ConfigFieldRenderer-Bt3RGT7Z.js';
|
|
10
10
|
import { WorkflowSchema, WorkflowMetadata } from './schema/index.js';
|
|
11
11
|
export { ImportIssue, ImportOptions, ImportResult, WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, WorkflowSchemaEdge, WorkflowSchemaNode, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './schema/index.js';
|
|
12
12
|
import { AutoLayoutOptions } from './layout/index.js';
|
|
13
13
|
export { AutoLayoutDirection } from './layout/index.js';
|
|
14
|
-
import { a as NodeCategory, N as NodeKindDefinition } from './types-
|
|
15
|
-
export { A as AvailableVariable, C as ConfigField, D as DocumentConfigField, r as ExpressionForm, t as ExpressionGrammarHelp, K as KeyValueConfigField, O as OutputField, h as OutputShape, P as PortSpec, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, u as availableVariables, w as baseVariables, x as describeExpressionGrammar, y as outputFieldsFor } from './types-
|
|
16
|
-
export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-
|
|
14
|
+
import { a as NodeCategory, N as NodeKindDefinition } from './types-s643U1Hi.js';
|
|
15
|
+
export { A as AvailableVariable, C as ConfigField, D as DocumentConfigField, r as ExpressionForm, t as ExpressionGrammarHelp, K as KeyValueConfigField, O as OutputField, h as OutputShape, P as PortSpec, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, u as availableVariables, w as baseVariables, x as describeExpressionGrammar, y as outputFieldsFor } from './types-s643U1Hi.js';
|
|
16
|
+
export { F as FlowNodeStatus, a as FlowViewer, b as FlowViewerClassNames, c as FlowViewerProps } from './FlowViewer-BI_AyyvU.js';
|
|
17
17
|
import { FlowRunFeedEntry } from './runtime/index.js';
|
|
18
18
|
export { HistoryController, UseFlowHistoryReturn, UseFlowRunOptions, UseFlowRunReturn, UseFlowStateReturn, applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './runtime/index.js';
|
|
19
|
-
export { R as RunOptions, a as RunResult, r as runFlow } from './run-flow-
|
|
20
|
-
export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort } from './run-cohort-
|
|
19
|
+
export { R as RunOptions, a as RunResult, r as runFlow } from './run-flow-DJ7KYT6E.js';
|
|
20
|
+
export { C as CohortGuard, a as CohortOptions, b as CohortPolicy, c as CohortResult, r as runCohort } from './run-cohort-BPIOpE8A.js';
|
|
21
21
|
export { L as LEGACY_PAUSE_PREFIXES, a as PAUSE_PREFIX, P as PauseAwaiting, b as PauseSignal, d as decodePause, e as encodePause, i as isPause, p as pauseForHuman } from './pause-9iT4tCEV.js';
|
|
22
|
-
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, v as validateConfig } from './registry-
|
|
23
|
-
import './capabilities-
|
|
22
|
+
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, v as validateConfig } from './registry-3RkSYrMi.js';
|
|
23
|
+
import './capabilities-COOXRiNL.js';
|
|
24
24
|
|
|
25
25
|
type FlowCanvasProps = Omit<ReactFlowProps<FlowNode, Edge>, "nodes" | "edges" | "height"> & {
|
|
26
26
|
nodes: FlowNode[];
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-
|
|
2
|
-
export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-
|
|
3
|
-
import { useFlowState, useFlowRun, useFlowHistory, applyOutputsToNodes, applyStatusesToNodes } from './chunk-
|
|
4
|
-
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-
|
|
5
|
-
export { runCohort } from './chunk-
|
|
1
|
+
import { removeNodes, removeEdges, cloneSubgraph, alignNodes, distributeNodes, reconnectEdge, assignToLane, removeFromLane, duplicateNode, setEdgeLabel, FlowCanvas } from './chunk-7XTTXMGB.js';
|
|
2
|
+
export { ActionNode, DecisionNode, FlowCanvas, FlowViewer, NodeShell, OutputNode, SubgraphNode, TriggerNode, alignNodes, cloneSubgraph, defaultNodeTypes, distributeNodes, reconnectEdge } from './chunk-7XTTXMGB.js';
|
|
3
|
+
import { useFlowState, useFlowRun, useFlowHistory, applyOutputsToNodes, applyStatusesToNodes } from './chunk-HXGGCMR7.js';
|
|
4
|
+
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-HXGGCMR7.js';
|
|
5
|
+
export { runCohort } from './chunk-SKEZ5AGI.js';
|
|
6
6
|
export { evaluateConfig, evaluateExpression, resolvePath, text, truthy } from './chunk-BHM5HGXH.js';
|
|
7
|
-
import { buildNodeTypes } from './chunk-
|
|
8
|
-
export { ANY_PORT_TYPE, RegistryNode, buildNodeTypes, createConnectionValidator, defaultPortCompatibility } from './chunk-
|
|
7
|
+
import { buildNodeTypes } from './chunk-6AI6CBNL.js';
|
|
8
|
+
export { ANY_PORT_TYPE, RegistryNode, buildNodeTypes, createConnectionValidator, defaultPortCompatibility } from './chunk-6AI6CBNL.js';
|
|
9
9
|
export { LEGACY_PAUSE_PREFIXES, PAUSE_PREFIX, decodePause, encodePause, isPause, pauseForHuman } from './chunk-UEOE6B52.js';
|
|
10
|
-
import { workflowToBlob, importWorkflow, exportWorkflow } from './chunk-
|
|
11
|
-
export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-
|
|
12
|
-
import { ReactFlowProvider, useReactFlow, onNodeKindsChanged, listNodeKinds, getNodeKind, defaultConfigFor, FlowEditorProvider, addEdge, applyEdgeChanges, applyNodeChanges, Position, ensureBuiltinKinds, validateConfig, categoryAccent, Handle } from './chunk-
|
|
13
|
-
export { BUILTIN_KINDS, LaneNode, NoteNode, categoryAccent, clearNodeKindOverrides, defaultConfigFor, ensureBuiltinKinds, getNodeKind, listNodeKinds, onNodeKindsChanged, overrideNodeKind, registerBuiltinKinds, registerNodeKind, resolveNodePorts, resolvePortSpec, runFlow, useFlowEditor, useFlowEditorOptional, validateConfig } from './chunk-
|
|
10
|
+
import { workflowToBlob, importWorkflow, exportWorkflow } from './chunk-LH76EIFL.js';
|
|
11
|
+
export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-LH76EIFL.js';
|
|
12
|
+
import { ReactFlowProvider, useReactFlow, onNodeKindsChanged, listNodeKinds, getNodeKind, defaultConfigFor, FlowEditorProvider, addEdge, applyEdgeChanges, applyNodeChanges, Position, ensureBuiltinKinds, validateConfig, categoryAccent, Handle } from './chunk-XCT2CJ5O.js';
|
|
13
|
+
export { BUILTIN_KINDS, LaneNode, NoteNode, categoryAccent, clearNodeKindOverrides, defaultConfigFor, ensureBuiltinKinds, getNodeKind, listNodeKinds, onNodeKindsChanged, overrideNodeKind, registerBuiltinKinds, registerNodeKind, resolveNodePorts, resolvePortSpec, runFlow, useFlowEditor, useFlowEditorOptional, validateConfig } from './chunk-XCT2CJ5O.js';
|
|
14
14
|
import { getRichInputAdapter } from './chunk-F5RPRB7A.js';
|
|
15
15
|
export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
|
|
16
16
|
import './chunk-USL4FMFU.js';
|
package/dist/layout/index.d.cts
CHANGED
package/dist/layout/index.d.ts
CHANGED
package/dist/llm/prism.d.cts
CHANGED
package/dist/llm/prism.d.ts
CHANGED
package/dist/llm/vercel-ai.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LanguageModel } from 'ai';
|
|
2
|
-
import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-
|
|
3
|
-
import '../types-
|
|
2
|
+
import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-BYa5p5jw.cjs';
|
|
3
|
+
import '../types-JFYjPJAG.cjs';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/llm/vercel-ai.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LanguageModel } from 'ai';
|
|
2
|
-
import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-
|
|
3
|
-
import '../types-
|
|
2
|
+
import { a as LlmRouteRequest, L as LlmClient } from '../capabilities-COOXRiNL.js';
|
|
3
|
+
import '../types-JFYjPJAG.js';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { N as NodeKindDefinition, P as PortSpec } from '../types-
|
|
2
|
-
export { C as ConfigField, k as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, a as NodeCategory, l as NumberConfigField, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, o as SelectConfigField, p as SwitchConfigField, T as TextConfigField, q as TextareaConfigField } from '../types-
|
|
3
|
-
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-
|
|
1
|
+
import { N as NodeKindDefinition, P as PortSpec } from '../types-3sPauVRT.cjs';
|
|
2
|
+
export { C as ConfigField, k as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, a as NodeCategory, l as NumberConfigField, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, o as SelectConfigField, p as SwitchConfigField, T as TextConfigField, q as TextareaConfigField } from '../types-3sPauVRT.cjs';
|
|
3
|
+
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-JFYjPJAG.cjs';
|
|
4
4
|
import { Connection, Edge, NodeProps, NodeTypes } from '@xyflow/react';
|
|
5
|
-
import { b as LlmRoute } from '../capabilities-
|
|
6
|
-
export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-
|
|
5
|
+
import { b as LlmRoute } from '../capabilities-BYa5p5jw.cjs';
|
|
6
|
+
export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-BYa5p5jw.cjs';
|
|
7
7
|
export { L as LEGACY_PAUSE_PREFIXES, a as PAUSE_PREFIX, P as PauseAwaiting, b as PauseSignal, d as decodePause, e as encodePause, i as isPause, p as pauseForHuman } from '../pause-9iT4tCEV.cjs';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { ComponentType, ReactNode } from 'react';
|
|
10
|
-
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-
|
|
10
|
+
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-C6TMfiD_.cjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Connection validation — the single rule that decides whether an edge between
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { N as NodeKindDefinition, P as PortSpec } from '../types-
|
|
2
|
-
export { C as ConfigField, k as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, a as NodeCategory, l as NumberConfigField, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, o as SelectConfigField, p as SwitchConfigField, T as TextConfigField, q as TextareaConfigField } from '../types-
|
|
3
|
-
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-
|
|
1
|
+
import { N as NodeKindDefinition, P as PortSpec } from '../types-s643U1Hi.js';
|
|
2
|
+
export { C as ConfigField, k as CredentialConfigField, D as DocumentConfigField, E as ExpressionConfigField, J as JsonConfigField, K as KeyValueConfigField, a as NodeCategory, l as NumberConfigField, R as RenderBodyContext, m as RepeaterConfigField, n as RepeaterRowField, o as SelectConfigField, p as SwitchConfigField, T as TextConfigField, q as TextareaConfigField } from '../types-s643U1Hi.js';
|
|
3
|
+
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-JFYjPJAG.js';
|
|
4
4
|
import { Connection, Edge, NodeProps, NodeTypes } from '@xyflow/react';
|
|
5
|
-
import { b as LlmRoute } from '../capabilities-
|
|
6
|
-
export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-
|
|
5
|
+
import { b as LlmRoute } from '../capabilities-COOXRiNL.js';
|
|
6
|
+
export { C as CapabilityId, L as LlmClient, c as LlmRouteChoice, a as LlmRouteRequest, d as WorkflowResolution, e as WorkflowResolutionFailure, W as WorkflowResolver, f as capabilityStatus, g as getLlmClient, h as getWorkflowResolver, i as isResolutionFailure, r as registerLlmClient, j as registerWorkflowResolver } from '../capabilities-COOXRiNL.js';
|
|
7
7
|
export { L as LEGACY_PAUSE_PREFIXES, a as PAUSE_PREFIX, P as PauseAwaiting, b as PauseSignal, d as decodePause, e as encodePause, i as isPause, p as pauseForHuman } from '../pause-9iT4tCEV.js';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { ComponentType, ReactNode } from 'react';
|
|
10
|
-
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-
|
|
10
|
+
export { N as NodeKindPresentation, c as categoryAccent, b as clearNodeKindOverrides, d as defaultConfigFor, e as ensureBuiltinKinds, g as getNodeKind, k as kindIds, l as listNodeKinds, o as onNodeKindsChanged, f as overrideNodeKind, r as registerNodeKind, a as resolveKindId, v as validateConfig } from '../registry-3RkSYrMi.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Connection validation — the single rule that decides whether an edge between
|
package/dist/registry.cjs
CHANGED
|
@@ -9368,6 +9368,61 @@ var RunIdentity = class _RunIdentity {
|
|
|
9368
9368
|
}
|
|
9369
9369
|
};
|
|
9370
9370
|
|
|
9371
|
+
// src/runtime/workflow-props.ts
|
|
9372
|
+
function typeOf(value) {
|
|
9373
|
+
if (value === null) return "null";
|
|
9374
|
+
if (Array.isArray(value)) return "array";
|
|
9375
|
+
return typeof value;
|
|
9376
|
+
}
|
|
9377
|
+
function resolveWorkflowProps(declared, passed) {
|
|
9378
|
+
const inputs = declared ?? [];
|
|
9379
|
+
const given = passed ?? {};
|
|
9380
|
+
const byName = new Map(inputs.map((input) => [input.name, input]));
|
|
9381
|
+
for (const name of Object.keys(given)) {
|
|
9382
|
+
if (!byName.has(name)) {
|
|
9383
|
+
const known = inputs.map((input) => input.name);
|
|
9384
|
+
const suffix = known.length === 0 ? "this workflow declares no inputs" : `known inputs: ${known.join(", ")}`;
|
|
9385
|
+
return {
|
|
9386
|
+
ok: false,
|
|
9387
|
+
code: "unknown_input",
|
|
9388
|
+
error: `Unknown workflow input "${name}" \u2014 ${suffix}.`
|
|
9389
|
+
};
|
|
9390
|
+
}
|
|
9391
|
+
}
|
|
9392
|
+
const resolved = {};
|
|
9393
|
+
for (const input of inputs) {
|
|
9394
|
+
const supplied = Object.prototype.hasOwnProperty.call(given, input.name);
|
|
9395
|
+
const hasDefault = Object.prototype.hasOwnProperty.call(input, "default");
|
|
9396
|
+
if (!supplied) {
|
|
9397
|
+
if (hasDefault) {
|
|
9398
|
+
resolved[input.name] = input.default;
|
|
9399
|
+
continue;
|
|
9400
|
+
}
|
|
9401
|
+
if (input.required) {
|
|
9402
|
+
return {
|
|
9403
|
+
ok: false,
|
|
9404
|
+
code: "missing_required",
|
|
9405
|
+
error: `Missing required workflow input "${input.name}"${input.type ? ` (${input.type})` : ""}.`
|
|
9406
|
+
};
|
|
9407
|
+
}
|
|
9408
|
+
continue;
|
|
9409
|
+
}
|
|
9410
|
+
const value = given[input.name];
|
|
9411
|
+
if (input.type !== void 0) {
|
|
9412
|
+
const actual = typeOf(value);
|
|
9413
|
+
if (actual !== input.type) {
|
|
9414
|
+
return {
|
|
9415
|
+
ok: false,
|
|
9416
|
+
code: "type_mismatch",
|
|
9417
|
+
error: `Workflow input "${input.name}" expects ${input.type}, got ${actual}.`
|
|
9418
|
+
};
|
|
9419
|
+
}
|
|
9420
|
+
}
|
|
9421
|
+
resolved[input.name] = value;
|
|
9422
|
+
}
|
|
9423
|
+
return { ok: true, props: resolved };
|
|
9424
|
+
}
|
|
9425
|
+
|
|
9371
9426
|
// src/runtime/run-flow.ts
|
|
9372
9427
|
async function runFlow(graph, executors, onEvent = () => {
|
|
9373
9428
|
}, options = {}) {
|
|
@@ -9383,6 +9438,13 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9383
9438
|
onEvent({ type: "run-error", error: msg });
|
|
9384
9439
|
return { ok: false, outputs, error: msg };
|
|
9385
9440
|
}
|
|
9441
|
+
const propsCheck = resolveWorkflowProps(graph.inputs, options.props);
|
|
9442
|
+
if (!propsCheck.ok) {
|
|
9443
|
+
onEvent({ type: "run-error", error: propsCheck.error });
|
|
9444
|
+
return { ok: false, outputs, error: propsCheck.error };
|
|
9445
|
+
}
|
|
9446
|
+
const props = propsCheck.props;
|
|
9447
|
+
const declaresProps = (graph.inputs?.length ?? 0) > 0;
|
|
9386
9448
|
const incomingByNode = indexIncoming(graph.edges);
|
|
9387
9449
|
const timer2 = timeoutMs ? setTimeout(() => errors.push(`Run timed out after ${timeoutMs}ms`), timeoutMs) : null;
|
|
9388
9450
|
onEvent({ type: "run-start" });
|
|
@@ -9424,7 +9486,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9424
9486
|
}
|
|
9425
9487
|
onEvent({ type: "node-status", nodeId: node.id, status: "running" });
|
|
9426
9488
|
announce(onEvent, node, "start");
|
|
9427
|
-
const inputs = collectInputs(node, incoming, portValues, initialInputs);
|
|
9489
|
+
const inputs = collectInputs(node, incoming, portValues, initialInputs, props, declaresProps);
|
|
9428
9490
|
const exec = pickExecutor(executors, node);
|
|
9429
9491
|
if (!exec) {
|
|
9430
9492
|
const msg = `No executor registered for kind=${node.type}`;
|
|
@@ -9501,14 +9563,23 @@ function topoSort(graph) {
|
|
|
9501
9563
|
const byId = new Map(graph.nodes.map((n) => [n.id, n]));
|
|
9502
9564
|
return ordered.map((id2) => byId.get(id2)).filter(Boolean);
|
|
9503
9565
|
}
|
|
9504
|
-
function collectInputs(node, incoming, portValues, initial) {
|
|
9566
|
+
function collectInputs(node, incoming, portValues, initial, props, declaresProps) {
|
|
9505
9567
|
const inputs = { ...initial[node.id] ?? {} };
|
|
9568
|
+
if (incoming.length === 0) {
|
|
9569
|
+
for (const [name, value] of Object.entries(props)) {
|
|
9570
|
+
if (!(name in inputs)) inputs[name] = value;
|
|
9571
|
+
}
|
|
9572
|
+
}
|
|
9506
9573
|
for (const e of incoming) {
|
|
9507
9574
|
const portId = e.targetHandle ?? "in";
|
|
9508
9575
|
const key = `${e.source}:${e.sourceHandle ?? "out"}`;
|
|
9509
9576
|
if (!portValues.has(key)) continue;
|
|
9510
9577
|
inputs[portId] = portValues.get(key);
|
|
9578
|
+
if (e.targetHandle == null && !(e.source in inputs)) {
|
|
9579
|
+
inputs[e.source] = portValues.get(key);
|
|
9580
|
+
}
|
|
9511
9581
|
}
|
|
9582
|
+
if (declaresProps) inputs.$props = props;
|
|
9512
9583
|
return inputs;
|
|
9513
9584
|
}
|
|
9514
9585
|
function pickExecutor(executors, node) {
|