@particle-academy/fancy-flow 0.48.0 → 0.49.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-NuDjtun1.d.cts → ConfigFieldRenderer-CrXFq6Eb.d.cts} +2 -2
- package/dist/{ConfigFieldRenderer-DrD2-Qml.d.ts → ConfigFieldRenderer-u3nYHovX.d.ts} +2 -2
- package/dist/{FlowViewer-CY3_vHSg.d.cts → FlowViewer-CFSMlCqi.d.cts} +1 -1
- package/dist/{FlowViewer-DGW6t-80.d.ts → FlowViewer-DRgjeWJ7.d.ts} +1 -1
- package/dist/{capabilities-DMUhnyZD.d.ts → capabilities-B00VXLUp.d.ts} +1 -1
- package/dist/{capabilities-Dmd26aAs.d.cts → capabilities-VzgDApur.d.cts} +1 -1
- package/dist/{chunk-MJ3A3TAI.js → chunk-6FP3F5YR.js} +21 -4
- package/dist/chunk-6FP3F5YR.js.map +1 -0
- package/dist/{chunk-DRRZEAYB.js → chunk-6XKR65XM.js} +3 -3
- package/dist/{chunk-DRRZEAYB.js.map → chunk-6XKR65XM.js.map} +1 -1
- package/dist/{chunk-UVP43XU2.js → chunk-AVRGZFXG.js} +4 -4
- package/dist/{chunk-UVP43XU2.js.map → chunk-AVRGZFXG.js.map} +1 -1
- package/dist/{chunk-E6T3FZZP.js → chunk-UL3DGSSG.js} +9 -4
- package/dist/chunk-UL3DGSSG.js.map +1 -0
- package/dist/{chunk-7DTUZUTB.js → chunk-VUL7CUFW.js} +3 -3
- package/dist/{chunk-7DTUZUTB.js.map → chunk-VUL7CUFW.js.map} +1 -1
- package/dist/{chunk-KTGXZBUM.js → chunk-YOK3WKWC.js} +7 -3
- package/dist/chunk-YOK3WKWC.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 +19 -2
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +19 -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 +60 -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 +42 -11
- package/dist/index.js.map +1 -1
- 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-DpARG95T.d.ts → registry-6cB5wCv6.d.ts} +1 -1
- package/dist/{registry-BnnifM-t.d.cts → registry-DQh7ZmnM.d.cts} +1 -1
- package/dist/registry.cjs +19 -2
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/{run-cohort-DdPPowJ3.d.cts → run-cohort-DYCL8Qv6.d.cts} +2 -2
- package/dist/{run-cohort-Cyeny2Uu.d.ts → run-cohort-VX4JG21l.d.ts} +2 -2
- package/dist/{run-flow-1KiXhy59.d.cts → run-flow-B24QUO1H.d.cts} +1 -1
- package/dist/{run-flow-CQvTDBYk.d.ts → run-flow-DPUPAWk6.d.ts} +1 -1
- package/dist/runtime/index.d.cts +18 -6
- package/dist/runtime/index.d.ts +18 -6
- package/dist/runtime.cjs +25 -3
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema/index.d.cts +9 -1
- package/dist/schema/index.d.ts +9 -1
- package/dist/schema.cjs +23 -2
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +19 -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-Jx1TwehV.d.ts → types-7cXcSQlx.d.cts} +50 -0
- package/dist/{types-Jx1TwehV.d.cts → types-7cXcSQlx.d.ts} +50 -0
- package/dist/{types-BO8TgI2M.d.cts → types-BtMOnb9I.d.cts} +1 -1
- package/dist/{types-DJAmfiJC.d.ts → types-CDgIIj4c.d.ts} +1 -1
- package/dist/ux.cjs +19 -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-E6T3FZZP.js.map +0 -1
- package/dist/chunk-KTGXZBUM.js.map +0 -1
- package/dist/chunk-MJ3A3TAI.js.map +0 -1
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-VzgDApur.cjs';
|
|
3
|
+
import '../types-7cXcSQlx.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-B00VXLUp.js';
|
|
3
|
+
import '../types-7cXcSQlx.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-BtMOnb9I.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-BtMOnb9I.cjs';
|
|
3
|
+
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-7cXcSQlx.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-VzgDApur.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-VzgDApur.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-DQh7ZmnM.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-CDgIIj4c.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-CDgIIj4c.js';
|
|
3
|
+
import { P as PortDescriptor, a as FlowNode, N as NodeExecutor } from '../types-7cXcSQlx.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-B00VXLUp.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-B00VXLUp.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-6cB5wCv6.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Connection validation — the single rule that decides whether an edge between
|
package/dist/registry.cjs
CHANGED
|
@@ -9423,6 +9423,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9423
9423
|
continue;
|
|
9424
9424
|
}
|
|
9425
9425
|
onEvent({ type: "node-status", nodeId: node.id, status: "running" });
|
|
9426
|
+
announce(onEvent, node, "start");
|
|
9426
9427
|
const inputs = collectInputs(node, incoming, portValues, initialInputs);
|
|
9427
9428
|
const exec = pickExecutor(executors, node);
|
|
9428
9429
|
if (!exec) {
|
|
@@ -9441,6 +9442,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9441
9442
|
throw new Error(reason ?? "aborted");
|
|
9442
9443
|
},
|
|
9443
9444
|
emit: onEvent,
|
|
9445
|
+
executors,
|
|
9444
9446
|
depth,
|
|
9445
9447
|
run
|
|
9446
9448
|
})
|
|
@@ -9453,6 +9455,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9453
9455
|
}
|
|
9454
9456
|
completed.add(node.id);
|
|
9455
9457
|
onEvent({ type: "node-status", nodeId: node.id, status: "done" });
|
|
9458
|
+
announce(onEvent, node, "end");
|
|
9456
9459
|
} catch (e) {
|
|
9457
9460
|
const msg = e instanceof Error ? e.message : String(e);
|
|
9458
9461
|
errors.push(msg);
|
|
@@ -9511,7 +9514,10 @@ function collectInputs(node, incoming, portValues, initial) {
|
|
|
9511
9514
|
function pickExecutor(executors, node) {
|
|
9512
9515
|
if (executors[node.id]) return executors[node.id];
|
|
9513
9516
|
if (node.type && executors[node.type]) return executors[node.type];
|
|
9514
|
-
const
|
|
9517
|
+
const declared = node.data?.kind;
|
|
9518
|
+
const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
|
|
9519
|
+
if (kindName && kindName !== node.type && executors[kindName]) return executors[kindName];
|
|
9520
|
+
const kind = kindName ? getNodeKind(kindName) : null;
|
|
9515
9521
|
if (kind) {
|
|
9516
9522
|
for (const id2 of kindIds(kind)) {
|
|
9517
9523
|
if (executors[id2]) return executors[id2];
|
|
@@ -9533,6 +9539,14 @@ function activatedPorts(node, result) {
|
|
|
9533
9539
|
const declared = resolveNodePorts(node, kind).outputs?.map((p) => p.id);
|
|
9534
9540
|
return { ports: declared?.length ? declared : ["out"], value: result };
|
|
9535
9541
|
}
|
|
9542
|
+
function announce(onEvent, node, phase) {
|
|
9543
|
+
const data = node.data;
|
|
9544
|
+
const raw = phase === "start" ? data?.startingMsg : data?.stoppingMsg;
|
|
9545
|
+
if (typeof raw !== "string") return;
|
|
9546
|
+
const message = raw.trim();
|
|
9547
|
+
if (message === "") return;
|
|
9548
|
+
onEvent({ type: "node-message", nodeId: node.id, phase, message });
|
|
9549
|
+
}
|
|
9536
9550
|
|
|
9537
9551
|
// src/registry/subflow.ts
|
|
9538
9552
|
var DEFAULT_MAX_DEPTH = 8;
|
|
@@ -9586,7 +9600,10 @@ var subflowExecutor = async (ctx) => {
|
|
|
9586
9600
|
};
|
|
9587
9601
|
const result = await runFlow(
|
|
9588
9602
|
child,
|
|
9589
|
-
|
|
9603
|
+
// Inherit the parent's registry, then let the graph layer its own on top.
|
|
9604
|
+
// The inherited half is the fix; the layered half keeps a graph that
|
|
9605
|
+
// deliberately hands its child extra or different executors working.
|
|
9606
|
+
{ ...ctx.executors ?? {}, ...config.executors ?? {} },
|
|
9590
9607
|
forward,
|
|
9591
9608
|
{
|
|
9592
9609
|
initialInputs: config.inputs ?? {
|