@particle-academy/fancy-flow 0.48.1 → 0.50.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-ACGCHWCM.js → chunk-3W26FA7Q.js} +7 -3
- package/dist/chunk-3W26FA7Q.js.map +1 -0
- package/dist/{chunk-6HGXAU5L.js → chunk-BAHJVX3S.js} +9 -4
- package/dist/chunk-BAHJVX3S.js.map +1 -0
- package/dist/{chunk-54SN6LML.js → chunk-DQJIU55F.js} +3 -3
- package/dist/{chunk-54SN6LML.js.map → chunk-DQJIU55F.js.map} +1 -1
- package/dist/{chunk-HHGU7JXJ.js → chunk-I4F6GI3A.js} +3 -3
- package/dist/{chunk-HHGU7JXJ.js.map → chunk-I4F6GI3A.js.map} +1 -1
- package/dist/{chunk-FCCGV52I.js → chunk-OWDSPRAF.js} +4 -4
- package/dist/{chunk-FCCGV52I.js.map → chunk-OWDSPRAF.js.map} +1 -1
- package/dist/{chunk-M7H3ASBI.js → chunk-XJMWMU4J.js} +20 -3
- package/dist/chunk-XJMWMU4J.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 +18 -1
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +18 -1
- 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 +59 -2
- 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 +18 -1
- 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 +24 -2
- 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 +22 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +18 -1
- 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.cts → types-7cXcSQlx.d.cts} +50 -0
- package/dist/{types-Jx1TwehV.d.ts → 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 +18 -1
- 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-6HGXAU5L.js.map +0 -1
- package/dist/chunk-ACGCHWCM.js.map +0 -1
- package/dist/chunk-M7H3ASBI.js.map +0 -1
package/dist/connectors.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ConfigField, N as NodeKindDefinition, O as OutputField } from './types-
|
|
1
|
+
import { C as ConfigField, N as NodeKindDefinition, O as OutputField } from './types-BtMOnb9I.cjs';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './types-
|
|
3
|
+
import './types-7cXcSQlx.cjs';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
import './pause-9iT4tCEV.cjs';
|
|
6
6
|
|
package/dist/connectors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as ConfigField, N as NodeKindDefinition, O as OutputField } from './types-
|
|
1
|
+
import { C as ConfigField, N as NodeKindDefinition, O as OutputField } from './types-CDgIIj4c.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './types-
|
|
3
|
+
import './types-7cXcSQlx.js';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
import './pause-9iT4tCEV.js';
|
|
6
6
|
|
package/dist/durable/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FlowGraph, R as RunEvent, b as RunIdentity, E as ExecutorRegistry, a as FlowNode, N as NodeExecutor, c as RunIdentityJson } from '../types-
|
|
2
|
-
import { a as RunResult } from '../run-flow-
|
|
1
|
+
import { F as FlowGraph, R as RunEvent, b as RunIdentity, E as ExecutorRegistry, a as FlowNode, N as NodeExecutor, c as RunIdentityJson } from '../types-7cXcSQlx.cjs';
|
|
2
|
+
import { a as RunResult } from '../run-flow-B24QUO1H.cjs';
|
|
3
3
|
import { b as PauseSignal } from '../pause-9iT4tCEV.cjs';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
|
package/dist/durable/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FlowGraph, R as RunEvent, b as RunIdentity, E as ExecutorRegistry, a as FlowNode, N as NodeExecutor, c as RunIdentityJson } from '../types-
|
|
2
|
-
import { a as RunResult } from '../run-flow-
|
|
1
|
+
import { F as FlowGraph, R as RunEvent, b as RunIdentity, E as ExecutorRegistry, a as FlowNode, N as NodeExecutor, c as RunIdentityJson } from '../types-7cXcSQlx.js';
|
|
2
|
+
import { a as RunResult } from '../run-flow-DPUPAWk6.js';
|
|
3
3
|
import { b as PauseSignal } from '../pause-9iT4tCEV.js';
|
|
4
4
|
import '@xyflow/react';
|
|
5
5
|
|
package/dist/durable.cjs
CHANGED
|
@@ -9384,6 +9384,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9384
9384
|
continue;
|
|
9385
9385
|
}
|
|
9386
9386
|
onEvent({ type: "node-status", nodeId: node.id, status: "running" });
|
|
9387
|
+
announce(onEvent, node, "start");
|
|
9387
9388
|
const inputs = collectInputs(node, incoming, portValues, initialInputs);
|
|
9388
9389
|
const exec = pickExecutor(executors, node);
|
|
9389
9390
|
if (!exec) {
|
|
@@ -9402,6 +9403,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9402
9403
|
throw new Error(reason ?? "aborted");
|
|
9403
9404
|
},
|
|
9404
9405
|
emit: onEvent,
|
|
9406
|
+
executors,
|
|
9405
9407
|
depth,
|
|
9406
9408
|
run
|
|
9407
9409
|
})
|
|
@@ -9414,6 +9416,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9414
9416
|
}
|
|
9415
9417
|
completed.add(node.id);
|
|
9416
9418
|
onEvent({ type: "node-status", nodeId: node.id, status: "done" });
|
|
9419
|
+
announce(onEvent, node, "end");
|
|
9417
9420
|
} catch (e) {
|
|
9418
9421
|
const msg = e instanceof Error ? e.message : String(e);
|
|
9419
9422
|
errors.push(msg);
|
|
@@ -9466,6 +9469,9 @@ function collectInputs(node, incoming, portValues, initial) {
|
|
|
9466
9469
|
const key = `${e.source}:${e.sourceHandle ?? "out"}`;
|
|
9467
9470
|
if (!portValues.has(key)) continue;
|
|
9468
9471
|
inputs[portId] = portValues.get(key);
|
|
9472
|
+
if (e.targetHandle == null && !(e.source in inputs)) {
|
|
9473
|
+
inputs[e.source] = portValues.get(key);
|
|
9474
|
+
}
|
|
9469
9475
|
}
|
|
9470
9476
|
return inputs;
|
|
9471
9477
|
}
|
|
@@ -9497,6 +9503,14 @@ function activatedPorts(node, result) {
|
|
|
9497
9503
|
const declared = resolveNodePorts(node, kind).outputs?.map((p) => p.id);
|
|
9498
9504
|
return { ports: declared?.length ? declared : ["out"], value: result };
|
|
9499
9505
|
}
|
|
9506
|
+
function announce(onEvent, node, phase) {
|
|
9507
|
+
const data = node.data;
|
|
9508
|
+
const raw = phase === "start" ? data?.startingMsg : data?.stoppingMsg;
|
|
9509
|
+
if (typeof raw !== "string") return;
|
|
9510
|
+
const message = raw.trim();
|
|
9511
|
+
if (message === "") return;
|
|
9512
|
+
onEvent({ type: "node-message", nodeId: node.id, phase, message });
|
|
9513
|
+
}
|
|
9500
9514
|
|
|
9501
9515
|
// src/registry/subflow.ts
|
|
9502
9516
|
var DEFAULT_MAX_DEPTH = 8;
|
|
@@ -9550,7 +9564,10 @@ var subflowExecutor = async (ctx) => {
|
|
|
9550
9564
|
};
|
|
9551
9565
|
const result = await runFlow(
|
|
9552
9566
|
child,
|
|
9553
|
-
|
|
9567
|
+
// Inherit the parent's registry, then let the graph layer its own on top.
|
|
9568
|
+
// The inherited half is the fix; the layered half keeps a graph that
|
|
9569
|
+
// deliberately hands its child extra or different executors working.
|
|
9570
|
+
{ ...ctx.executors ?? {}, ...config.executors ?? {} },
|
|
9554
9571
|
forward,
|
|
9555
9572
|
{
|
|
9556
9573
|
initialInputs: config.inputs ?? {
|