@particle-academy/fancy-flow 0.28.0 → 0.29.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/README.md +102 -15
- package/dist/{chunk-HHFOHHAQ.js → chunk-EBE3FEAJ.js} +2 -2
- package/dist/{chunk-HHFOHHAQ.js.map → chunk-EBE3FEAJ.js.map} +1 -1
- package/dist/chunk-FKOXQP76.js +50 -0
- package/dist/chunk-FKOXQP76.js.map +1 -0
- package/dist/engine.cjs +46 -0
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.ts +1 -1
- package/dist/engine.js +1 -0
- package/dist/engine.js.map +1 -1
- package/dist/index.cjs +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/run-cohort-CV7EcwGG.d.ts +111 -0
- package/dist/run-cohort-DitsaYgS.d.cts +111 -0
- package/dist/runtime/index.d.cts +2 -2
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime.cjs +46 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +2 -1
- package/package.json +1 -1
- package/dist/run-flow-9U-gaYVF.d.ts +0 -35
- package/dist/run-flow-AXzOR-Wq.d.cts +0 -35
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-
|
|
1
|
+
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-EBE3FEAJ.js';
|
|
2
|
+
export { runCohort } from './chunk-FKOXQP76.js';
|
|
2
3
|
import './chunk-OWENS2H5.js';
|
|
3
4
|
export { runFlow } from './chunk-RE7T5GKQ.js';
|
|
4
5
|
import './chunk-TITD5W4Y.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-academy/fancy-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Workflow editor + runner. Six built-in node kits (trigger / action / decision / output / note / subgraph), tokenized theme, topological execution with per-node status. React-flow bundled; consumers npm install fancy-flow and get nothing extra.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-CMSrWVYM.js';
|
|
2
|
-
|
|
3
|
-
type RunOptions = {
|
|
4
|
-
/** Stop the run after this many ms. Default: no timeout. */
|
|
5
|
-
timeoutMs?: number;
|
|
6
|
-
/** Abort signal — host can cancel the run. */
|
|
7
|
-
signal?: AbortSignal;
|
|
8
|
-
/** Initial inputs supplied to entry-point nodes (no incoming edges). */
|
|
9
|
-
initialInputs?: Record<string, Record<string, unknown>>;
|
|
10
|
-
/** Nesting depth — set by `subflow` when it runs a child graph. */
|
|
11
|
-
depth?: number;
|
|
12
|
-
};
|
|
13
|
-
type RunResult = {
|
|
14
|
-
ok: boolean;
|
|
15
|
-
/** Outputs collected per node, keyed by node id. */
|
|
16
|
-
outputs: Record<string, unknown>;
|
|
17
|
-
/** Error captured if any node threw. */
|
|
18
|
-
error?: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* runFlow — topological execution of a FlowGraph against an ExecutorRegistry.
|
|
22
|
-
*
|
|
23
|
-
* Each node runs once, when all upstream nodes have produced outputs on the
|
|
24
|
-
* connected ports. Decision nodes (or any executor that returns `{ branch:
|
|
25
|
-
* 'true' }`) can short-circuit specific output ports — only edges leaving
|
|
26
|
-
* an "active" port propagate to downstream nodes.
|
|
27
|
-
*
|
|
28
|
-
* Cycles are detected and abort the run with an error.
|
|
29
|
-
*
|
|
30
|
-
* The `onEvent` callback receives a stream of `RunEvent`s — wire it to a
|
|
31
|
-
* status feed, log panel, or store.
|
|
32
|
-
*/
|
|
33
|
-
declare function runFlow(graph: FlowGraph, executors: ExecutorRegistry, onEvent?: (event: RunEvent) => void, options?: RunOptions): Promise<RunResult>;
|
|
34
|
-
|
|
35
|
-
export { type RunOptions as R, type RunResult as a, runFlow as r };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-CMSrWVYM.cjs';
|
|
2
|
-
|
|
3
|
-
type RunOptions = {
|
|
4
|
-
/** Stop the run after this many ms. Default: no timeout. */
|
|
5
|
-
timeoutMs?: number;
|
|
6
|
-
/** Abort signal — host can cancel the run. */
|
|
7
|
-
signal?: AbortSignal;
|
|
8
|
-
/** Initial inputs supplied to entry-point nodes (no incoming edges). */
|
|
9
|
-
initialInputs?: Record<string, Record<string, unknown>>;
|
|
10
|
-
/** Nesting depth — set by `subflow` when it runs a child graph. */
|
|
11
|
-
depth?: number;
|
|
12
|
-
};
|
|
13
|
-
type RunResult = {
|
|
14
|
-
ok: boolean;
|
|
15
|
-
/** Outputs collected per node, keyed by node id. */
|
|
16
|
-
outputs: Record<string, unknown>;
|
|
17
|
-
/** Error captured if any node threw. */
|
|
18
|
-
error?: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* runFlow — topological execution of a FlowGraph against an ExecutorRegistry.
|
|
22
|
-
*
|
|
23
|
-
* Each node runs once, when all upstream nodes have produced outputs on the
|
|
24
|
-
* connected ports. Decision nodes (or any executor that returns `{ branch:
|
|
25
|
-
* 'true' }`) can short-circuit specific output ports — only edges leaving
|
|
26
|
-
* an "active" port propagate to downstream nodes.
|
|
27
|
-
*
|
|
28
|
-
* Cycles are detected and abort the run with an error.
|
|
29
|
-
*
|
|
30
|
-
* The `onEvent` callback receives a stream of `RunEvent`s — wire it to a
|
|
31
|
-
* status feed, log panel, or store.
|
|
32
|
-
*/
|
|
33
|
-
declare function runFlow(graph: FlowGraph, executors: ExecutorRegistry, onEvent?: (event: RunEvent) => void, options?: RunOptions): Promise<RunResult>;
|
|
34
|
-
|
|
35
|
-
export { type RunOptions as R, type RunResult as a, runFlow as r };
|