@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/durable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { truthy } from './chunk-BHM5HGXH.js';
|
|
2
2
|
import { pauseForHuman, decodePause } from './chunk-UEOE6B52.js';
|
|
3
|
-
import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-
|
|
3
|
+
import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-XJMWMU4J.js';
|
|
4
4
|
import './chunk-F5RPRB7A.js';
|
|
5
5
|
import './chunk-USL4FMFU.js';
|
|
6
6
|
|
package/dist/engine.cjs
CHANGED
|
@@ -9157,7 +9157,10 @@ var subflowExecutor = async (ctx) => {
|
|
|
9157
9157
|
};
|
|
9158
9158
|
const result = await runFlow(
|
|
9159
9159
|
child,
|
|
9160
|
-
|
|
9160
|
+
// Inherit the parent's registry, then let the graph layer its own on top.
|
|
9161
|
+
// The inherited half is the fix; the layered half keeps a graph that
|
|
9162
|
+
// deliberately hands its child extra or different executors working.
|
|
9163
|
+
{ ...ctx.executors ?? {}, ...config.executors ?? {} },
|
|
9161
9164
|
forward,
|
|
9162
9165
|
{
|
|
9163
9166
|
initialInputs: config.inputs ?? {
|
|
@@ -10386,6 +10389,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
10386
10389
|
continue;
|
|
10387
10390
|
}
|
|
10388
10391
|
onEvent({ type: "node-status", nodeId: node.id, status: "running" });
|
|
10392
|
+
announce(onEvent, node, "start");
|
|
10389
10393
|
const inputs = collectInputs(node, incoming, portValues, initialInputs);
|
|
10390
10394
|
const exec = pickExecutor(executors, node);
|
|
10391
10395
|
if (!exec) {
|
|
@@ -10404,6 +10408,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
10404
10408
|
throw new Error(reason ?? "aborted");
|
|
10405
10409
|
},
|
|
10406
10410
|
emit: onEvent,
|
|
10411
|
+
executors,
|
|
10407
10412
|
depth,
|
|
10408
10413
|
run
|
|
10409
10414
|
})
|
|
@@ -10416,6 +10421,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
10416
10421
|
}
|
|
10417
10422
|
completed.add(node.id);
|
|
10418
10423
|
onEvent({ type: "node-status", nodeId: node.id, status: "done" });
|
|
10424
|
+
announce(onEvent, node, "end");
|
|
10419
10425
|
} catch (e) {
|
|
10420
10426
|
const msg = e instanceof Error ? e.message : String(e);
|
|
10421
10427
|
errors.push(msg);
|
|
@@ -10468,6 +10474,9 @@ function collectInputs(node, incoming, portValues, initial) {
|
|
|
10468
10474
|
const key2 = `${e.source}:${e.sourceHandle ?? "out"}`;
|
|
10469
10475
|
if (!portValues.has(key2)) continue;
|
|
10470
10476
|
inputs[portId] = portValues.get(key2);
|
|
10477
|
+
if (e.targetHandle == null && !(e.source in inputs)) {
|
|
10478
|
+
inputs[e.source] = portValues.get(key2);
|
|
10479
|
+
}
|
|
10471
10480
|
}
|
|
10472
10481
|
return inputs;
|
|
10473
10482
|
}
|
|
@@ -10499,6 +10508,14 @@ function activatedPorts(node, result) {
|
|
|
10499
10508
|
const declared = resolveNodePorts(node, kind).outputs?.map((p) => p.id);
|
|
10500
10509
|
return { ports: declared?.length ? declared : ["out"], value: result };
|
|
10501
10510
|
}
|
|
10511
|
+
function announce(onEvent, node, phase) {
|
|
10512
|
+
const data = node.data;
|
|
10513
|
+
const raw = phase === "start" ? data?.startingMsg : data?.stoppingMsg;
|
|
10514
|
+
if (typeof raw !== "string") return;
|
|
10515
|
+
const message = raw.trim();
|
|
10516
|
+
if (message === "") return;
|
|
10517
|
+
onEvent({ type: "node-message", nodeId: node.id, phase, message });
|
|
10518
|
+
}
|
|
10502
10519
|
|
|
10503
10520
|
// src/runtime/run-cohort.ts
|
|
10504
10521
|
async function runCohort(flows, executors, onEvent = () => {
|