@particle-academy/fancy-flow 0.11.0 → 0.12.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.
Files changed (37) hide show
  1. package/dist/{chunk-YNOI7ONN.js → chunk-IK5DS5JP.js} +258 -51
  2. package/dist/chunk-IK5DS5JP.js.map +1 -0
  3. package/dist/{chunk-2NQT2A3I.js → chunk-L4AX73Q6.js} +5 -4
  4. package/dist/chunk-L4AX73Q6.js.map +1 -0
  5. package/dist/{chunk-3GMBLHTM.js → chunk-MFMRTRPO.js} +3 -3
  6. package/dist/{chunk-3GMBLHTM.js.map → chunk-MFMRTRPO.js.map} +1 -1
  7. package/dist/engine.cjs +3 -2
  8. package/dist/engine.cjs.map +1 -1
  9. package/dist/engine.d.cts +4 -2
  10. package/dist/engine.d.ts +4 -2
  11. package/dist/engine.js +1 -1
  12. package/dist/index.cjs +396 -215
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +4 -4
  15. package/dist/index.d.ts +4 -4
  16. package/dist/index.js +5 -5
  17. package/dist/registry/index.d.cts +132 -4
  18. package/dist/registry/index.d.ts +132 -4
  19. package/dist/registry.cjs +455 -93
  20. package/dist/registry.cjs.map +1 -1
  21. package/dist/registry.js +2 -1
  22. package/dist/runtime/index.d.cts +1 -1
  23. package/dist/runtime/index.d.ts +1 -1
  24. package/dist/runtime.cjs +3 -2
  25. package/dist/runtime.cjs.map +1 -1
  26. package/dist/runtime.js +2 -2
  27. package/dist/schema/index.d.cts +1 -1
  28. package/dist/schema/index.d.ts +1 -1
  29. package/dist/{types-BS3Gwnkq.d.cts → types-Dg2REAz5.d.cts} +6 -0
  30. package/dist/{types-BS3Gwnkq.d.ts → types-Dg2REAz5.d.ts} +6 -0
  31. package/dist/{types-BwLr5tZV.d.cts → types-DnQ4TEHN.d.cts} +1 -1
  32. package/dist/{types-CsEe3EQl.d.ts → types-DtXOwXjA.d.ts} +1 -1
  33. package/dist/ux.d.cts +2 -2
  34. package/dist/ux.d.ts +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-2NQT2A3I.js.map +0 -1
  37. package/dist/chunk-YNOI7ONN.js.map +0 -1
package/dist/registry.js CHANGED
@@ -1,5 +1,6 @@
1
- export { BUILTIN_KINDS, RegistryNode, buildNodeTypes, registerBuiltinKinds } from './chunk-YNOI7ONN.js';
1
+ export { BUILTIN_KINDS, DEFAULT_MAX_DEPTH, RegistryNode, buildNodeTypes, capabilityStatus, declaredRoutes, getLlmClient, getWorkflowResolver, llmBranchExecutor, registerBuiltinKinds, registerLlmClient, registerWorkflowResolver, resolveFallbackPort, subflowExecutor, subflowMode, subflowPorts } from './chunk-IK5DS5JP.js';
2
2
  import './chunk-NF6NPY5N.js';
3
+ import './chunk-L4AX73Q6.js';
3
4
  export { nodeConfig, resolveNodePorts, resolvePortSpec } from './chunk-TITD5W4Y.js';
4
5
  export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-U5F22BHV.js';
5
6
  export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
@@ -1,6 +1,6 @@
1
1
  import { RunResult, RunOptions } from '../engine.cjs';
2
2
  export { runFlow } from '../engine.cjs';
3
- import { b as NodeRunStatus, a as FlowGraph, E as ExecutorRegistry, F as FlowNode, c as FlowEdge } from '../types-BS3Gwnkq.cjs';
3
+ import { b as NodeRunStatus, a as FlowGraph, E as ExecutorRegistry, F as FlowNode, c as FlowEdge } from '../types-Dg2REAz5.cjs';
4
4
  import { NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
5
 
6
6
  type FlowRunFeedEntry = {
@@ -1,6 +1,6 @@
1
1
  import { RunResult, RunOptions } from '../engine.js';
2
2
  export { runFlow } from '../engine.js';
3
- import { b as NodeRunStatus, a as FlowGraph, E as ExecutorRegistry, F as FlowNode, c as FlowEdge } from '../types-BS3Gwnkq.js';
3
+ import { b as NodeRunStatus, a as FlowGraph, E as ExecutorRegistry, F as FlowNode, c as FlowEdge } from '../types-Dg2REAz5.js';
4
4
  import { NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
5
 
6
6
  type FlowRunFeedEntry = {
package/dist/runtime.cjs CHANGED
@@ -50,7 +50,7 @@ function resolveNodePorts(node, kind) {
50
50
  // src/runtime/run-flow.ts
51
51
  async function runFlow(graph, executors, onEvent = () => {
52
52
  }, options = {}) {
53
- const { signal, initialInputs = {}, timeoutMs } = options;
53
+ const { signal, initialInputs = {}, timeoutMs, depth = 0 } = options;
54
54
  const outputs = {};
55
55
  const portValues = /* @__PURE__ */ new Map();
56
56
  const completed = /* @__PURE__ */ new Set();
@@ -98,7 +98,8 @@ async function runFlow(graph, executors, onEvent = () => {
98
98
  abort: (reason) => {
99
99
  throw new Error(reason ?? "aborted");
100
100
  },
101
- emit: onEvent
101
+ emit: onEvent,
102
+ depth
102
103
  })
103
104
  );
104
105
  outputs[node.id] = result;