@particle-academy/fancy-flow 0.48.1 → 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-M7H3ASBI.js → chunk-6FP3F5YR.js} +17 -3
- package/dist/chunk-6FP3F5YR.js.map +1 -0
- package/dist/{chunk-HHGU7JXJ.js → chunk-6XKR65XM.js} +3 -3
- package/dist/{chunk-HHGU7JXJ.js.map → chunk-6XKR65XM.js.map} +1 -1
- package/dist/{chunk-FCCGV52I.js → chunk-AVRGZFXG.js} +4 -4
- package/dist/{chunk-FCCGV52I.js.map → chunk-AVRGZFXG.js.map} +1 -1
- package/dist/{chunk-6HGXAU5L.js → chunk-UL3DGSSG.js} +9 -4
- package/dist/chunk-UL3DGSSG.js.map +1 -0
- package/dist/{chunk-54SN6LML.js → chunk-VUL7CUFW.js} +3 -3
- package/dist/{chunk-54SN6LML.js.map → chunk-VUL7CUFW.js.map} +1 -1
- package/dist/{chunk-ACGCHWCM.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 +15 -1
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +15 -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 +56 -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 +15 -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 +21 -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 +19 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +15 -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 +15 -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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { F as FlowGraph } from './types-
|
|
4
|
-
import { C as ConfigField } from './types-
|
|
3
|
+
import { F as FlowGraph } from './types-7cXcSQlx.cjs';
|
|
4
|
+
import { C as ConfigField } from './types-BtMOnb9I.cjs';
|
|
5
5
|
|
|
6
6
|
/** What a host renderer is handed. */
|
|
7
7
|
type ConfigFieldRenderContext = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { F as FlowGraph } from './types-
|
|
4
|
-
import { C as ConfigField } from './types-
|
|
3
|
+
import { F as FlowGraph } from './types-7cXcSQlx.js';
|
|
4
|
+
import { C as ConfigField } from './types-CDgIIj4c.js';
|
|
5
5
|
|
|
6
6
|
/** What a host renderer is handed. */
|
|
7
7
|
type ConfigFieldRenderContext = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { F as FlowGraph, a as FlowNode } from './types-
|
|
3
|
+
import { F as FlowGraph, a as FlowNode } from './types-7cXcSQlx.cjs';
|
|
4
4
|
|
|
5
5
|
/** Outcome of one node in a run, for annotating the graph after the fact. */
|
|
6
6
|
type FlowNodeStatus = "ok" | "running" | "failed" | "skipped" | "pending";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { F as FlowGraph, a as FlowNode } from './types-
|
|
3
|
+
import { F as FlowGraph, a as FlowNode } from './types-7cXcSQlx.js';
|
|
4
4
|
|
|
5
5
|
/** Outcome of one node in a run, for annotating the graph after the fact. */
|
|
6
6
|
type FlowNodeStatus = "ok" | "running" | "failed" | "skipped" | "pending";
|
|
@@ -9356,6 +9356,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9356
9356
|
continue;
|
|
9357
9357
|
}
|
|
9358
9358
|
onEvent({ type: "node-status", nodeId: node.id, status: "running" });
|
|
9359
|
+
announce(onEvent, node, "start");
|
|
9359
9360
|
const inputs = collectInputs(node, incoming, portValues, initialInputs);
|
|
9360
9361
|
const exec = pickExecutor(executors, node);
|
|
9361
9362
|
if (!exec) {
|
|
@@ -9374,6 +9375,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9374
9375
|
throw new Error(reason ?? "aborted");
|
|
9375
9376
|
},
|
|
9376
9377
|
emit: onEvent,
|
|
9378
|
+
executors,
|
|
9377
9379
|
depth,
|
|
9378
9380
|
run
|
|
9379
9381
|
})
|
|
@@ -9386,6 +9388,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9386
9388
|
}
|
|
9387
9389
|
completed.add(node.id);
|
|
9388
9390
|
onEvent({ type: "node-status", nodeId: node.id, status: "done" });
|
|
9391
|
+
announce(onEvent, node, "end");
|
|
9389
9392
|
} catch (e) {
|
|
9390
9393
|
const msg = e instanceof Error ? e.message : String(e);
|
|
9391
9394
|
errors.push(msg);
|
|
@@ -9469,6 +9472,14 @@ function activatedPorts(node, result) {
|
|
|
9469
9472
|
const declared = resolveNodePorts(node, kind).outputs?.map((p) => p.id);
|
|
9470
9473
|
return { ports: declared?.length ? declared : ["out"], value: result };
|
|
9471
9474
|
}
|
|
9475
|
+
function announce(onEvent, node, phase) {
|
|
9476
|
+
const data = node.data;
|
|
9477
|
+
const raw = phase === "start" ? data?.startingMsg : data?.stoppingMsg;
|
|
9478
|
+
if (typeof raw !== "string") return;
|
|
9479
|
+
const message = raw.trim();
|
|
9480
|
+
if (message === "") return;
|
|
9481
|
+
onEvent({ type: "node-message", nodeId: node.id, phase, message });
|
|
9482
|
+
}
|
|
9472
9483
|
|
|
9473
9484
|
// src/registry/subflow.ts
|
|
9474
9485
|
var DEFAULT_MAX_DEPTH = 8;
|
|
@@ -9522,7 +9533,10 @@ var subflowExecutor = async (ctx) => {
|
|
|
9522
9533
|
};
|
|
9523
9534
|
const result = await runFlow(
|
|
9524
9535
|
child,
|
|
9525
|
-
|
|
9536
|
+
// Inherit the parent's registry, then let the graph layer its own on top.
|
|
9537
|
+
// The inherited half is the fix; the layered half keeps a graph that
|
|
9538
|
+
// deliberately hands its child extra or different executors working.
|
|
9539
|
+
{ ...ctx.executors ?? {}, ...config.executors ?? {} },
|
|
9526
9540
|
forward,
|
|
9527
9541
|
{
|
|
9528
9542
|
initialInputs: config.inputs ?? {
|
|
@@ -10607,5 +10621,5 @@ function LaneNodeInner(props) {
|
|
|
10607
10621
|
var LaneNode = memo(LaneNodeInner);
|
|
10608
10622
|
|
|
10609
10623
|
export { BUILTIN_KINDS, Background, BackgroundVariant, Controls, DEFAULT_MAX_DEPTH, FlowEditorProvider, Handle, LaneNode, MiniMap, NodeResizer, NodeToolbar, NoteNode, Position, ReactFlowProvider, RunIdentity, ViewportPortal, addEdge2 as addEdge, applyEdgeChanges, applyNodeChanges, categoryAccent, clearNodeKindOverrides, declaredRoutes, defaultConfigFor, ensureBuiltinKinds, escapeSegment, getNodeKind, index, kindIds, listNodeKinds, llmRouterExecutor, nodeConfig, onNodeKindsChanged, overrideNodeKind, reconnectEdge2 as reconnectEdge, registerBuiltinKinds, registerNodeKind, resolveFallbackPort, resolveKindId, resolveNodePorts, resolvePortSpec, runFlow, subflowExecutor, subflowMode, subflowPorts, useFlowEditor, useFlowEditorOptional, useReactFlow, validateConfig };
|
|
10610
|
-
//# sourceMappingURL=chunk-
|
|
10611
|
-
//# sourceMappingURL=chunk-
|
|
10624
|
+
//# sourceMappingURL=chunk-6FP3F5YR.js.map
|
|
10625
|
+
//# sourceMappingURL=chunk-6FP3F5YR.js.map
|