@particle-academy/fancy-flow 0.20.0 → 0.22.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 (60) hide show
  1. package/dist/{capabilities-DUhAc-EJ.d.ts → capabilities-85Mjn4uW.d.ts} +1 -1
  2. package/dist/{capabilities-ChE3Xi8R.d.cts → capabilities-exVeADXz.d.cts} +1 -1
  3. package/dist/{chunk-L4AX73Q6.js → chunk-KDHLKBL2.js} +11 -5
  4. package/dist/chunk-KDHLKBL2.js.map +1 -0
  5. package/dist/{chunk-KI4RI2N3.js → chunk-O7F6SGV4.js} +4 -4
  6. package/dist/{chunk-KI4RI2N3.js.map → chunk-O7F6SGV4.js.map} +1 -1
  7. package/dist/{chunk-D6W5FMCT.js → chunk-OHVSEHDC.js} +23 -5
  8. package/dist/chunk-OHVSEHDC.js.map +1 -0
  9. package/dist/{chunk-U5F22BHV.js → chunk-YXRLIV7A.js} +4 -2
  10. package/dist/chunk-YXRLIV7A.js.map +1 -0
  11. package/dist/{chunk-AW2QUEL2.js → chunk-YZTBRXBZ.js} +66 -8
  12. package/dist/chunk-YZTBRXBZ.js.map +1 -0
  13. package/dist/{chunk-XETAGLH6.js → chunk-ZB4HHQMR.js} +130 -32
  14. package/dist/chunk-ZB4HHQMR.js.map +1 -0
  15. package/dist/engine.cjs +8 -2
  16. package/dist/engine.cjs.map +1 -1
  17. package/dist/engine.d.cts +3 -3
  18. package/dist/engine.d.ts +3 -3
  19. package/dist/engine.js +3 -3
  20. package/dist/index.cjs +3553 -3278
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +25 -8
  23. package/dist/index.d.ts +25 -8
  24. package/dist/index.js +200 -107
  25. package/dist/index.js.map +1 -1
  26. package/dist/llm/vercel-ai.d.cts +2 -2
  27. package/dist/llm/vercel-ai.d.ts +2 -2
  28. package/dist/registry/index.d.cts +5 -5
  29. package/dist/registry/index.d.ts +5 -5
  30. package/dist/registry.cjs +197 -33
  31. package/dist/registry.cjs.map +1 -1
  32. package/dist/registry.js +4 -4
  33. package/dist/{run-flow-ChBi6q-W.d.ts → run-flow-9U-gaYVF.d.ts} +1 -1
  34. package/dist/{run-flow-VKm57Hcj.d.cts → run-flow-AXzOR-Wq.d.cts} +1 -1
  35. package/dist/runtime/index.d.cts +3 -3
  36. package/dist/runtime/index.d.ts +3 -3
  37. package/dist/runtime.cjs +8 -2
  38. package/dist/runtime.cjs.map +1 -1
  39. package/dist/runtime.js +4 -4
  40. package/dist/schema/index.d.cts +21 -2
  41. package/dist/schema/index.d.ts +21 -2
  42. package/dist/schema.cjs +20 -1
  43. package/dist/schema.cjs.map +1 -1
  44. package/dist/schema.js +2 -2
  45. package/dist/styles.css +61 -0
  46. package/dist/styles.css.map +1 -1
  47. package/dist/{types-NerkPtHS.d.ts → types-CFEtuRWJ.d.ts} +33 -3
  48. package/dist/{types-sOmpCitB.d.cts → types-CMSrWVYM.d.cts} +1 -1
  49. package/dist/{types-sOmpCitB.d.ts → types-CMSrWVYM.d.ts} +1 -1
  50. package/dist/{types-D_jOR3Z2.d.cts → types-DneUoivl.d.cts} +33 -3
  51. package/dist/ux.cjs.map +1 -1
  52. package/dist/ux.d.cts +3 -3
  53. package/dist/ux.d.ts +3 -3
  54. package/dist/ux.js +1 -1
  55. package/package.json +23 -3
  56. package/dist/chunk-AW2QUEL2.js.map +0 -1
  57. package/dist/chunk-D6W5FMCT.js.map +0 -1
  58. package/dist/chunk-L4AX73Q6.js.map +0 -1
  59. package/dist/chunk-U5F22BHV.js.map +0 -1
  60. package/dist/chunk-XETAGLH6.js.map +0 -1
package/dist/registry.js CHANGED
@@ -1,9 +1,9 @@
1
- export { ANY_PORT_TYPE, BUILTIN_KINDS, DEFAULT_MAX_DEPTH, RegistryNode, buildNodeTypes, createConnectionValidator, declaredRoutes, defaultPortCompatibility, llmRouterExecutor as llmBranchExecutor, llmRouterExecutor, registerBuiltinKinds, resolveFallbackPort, subflowExecutor, subflowMode, subflowPorts } from './chunk-AW2QUEL2.js';
2
- import './chunk-XETAGLH6.js';
1
+ export { ANY_PORT_TYPE, BUILTIN_KINDS, DEFAULT_MAX_DEPTH, RegistryNode, buildNodeTypes, createConnectionValidator, declaredRoutes, defaultPortCompatibility, llmRouterExecutor as llmBranchExecutor, llmRouterExecutor, registerBuiltinKinds, resolveFallbackPort, subflowExecutor, subflowMode, subflowPorts } from './chunk-YZTBRXBZ.js';
2
+ import './chunk-ZB4HHQMR.js';
3
3
  export { LEGACY_PAUSE_PREFIXES, PAUSE_PREFIX, decodePause, encodePause, isPause, pauseForHuman } from './chunk-UEOE6B52.js';
4
- import './chunk-L4AX73Q6.js';
4
+ import './chunk-KDHLKBL2.js';
5
5
  export { nodeConfig, resolveNodePorts, resolvePortSpec } from './chunk-TITD5W4Y.js';
6
- export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-U5F22BHV.js';
6
+ export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-YXRLIV7A.js';
7
7
  export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
8
8
  export { capabilityStatus, getLlmClient, getWorkflowResolver, isResolutionFailure, registerLlmClient, registerWorkflowResolver } from './chunk-USL4FMFU.js';
9
9
  //# sourceMappingURL=registry.js.map
@@ -1,4 +1,4 @@
1
- import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-sOmpCitB.js';
1
+ import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-CMSrWVYM.js';
2
2
 
3
3
  type RunOptions = {
4
4
  /** Stop the run after this many ms. Default: no timeout. */
@@ -1,4 +1,4 @@
1
- import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-sOmpCitB.cjs';
1
+ import { F as FlowGraph, E as ExecutorRegistry, R as RunEvent } from './types-CMSrWVYM.cjs';
2
2
 
3
3
  type RunOptions = {
4
4
  /** Stop the run after this many ms. Default: no timeout. */
@@ -1,6 +1,6 @@
1
- import { a as RunResult, R as RunOptions } from '../run-flow-VKm57Hcj.cjs';
2
- export { r as runFlow } from '../run-flow-VKm57Hcj.cjs';
3
- import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, b as FlowNode, a as FlowEdge } from '../types-sOmpCitB.cjs';
1
+ import { a as RunResult, R as RunOptions } from '../run-flow-AXzOR-Wq.cjs';
2
+ export { r as runFlow } from '../run-flow-AXzOR-Wq.cjs';
3
+ import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, a as FlowNode, b as FlowEdge } from '../types-CMSrWVYM.cjs';
4
4
  import { NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
5
 
6
6
  type FlowRunFeedEntry = {
@@ -1,6 +1,6 @@
1
- import { a as RunResult, R as RunOptions } from '../run-flow-ChBi6q-W.js';
2
- export { r as runFlow } from '../run-flow-ChBi6q-W.js';
3
- import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, b as FlowNode, a as FlowEdge } from '../types-sOmpCitB.js';
1
+ import { a as RunResult, R as RunOptions } from '../run-flow-9U-gaYVF.js';
2
+ export { r as runFlow } from '../run-flow-9U-gaYVF.js';
3
+ import { e as NodeRunStatus, F as FlowGraph, E as ExecutorRegistry, a as FlowNode, b as FlowEdge } from '../types-CMSrWVYM.js';
4
4
  import { NodeChange, EdgeChange, Connection } from '@xyflow/react';
5
5
 
6
6
  type FlowRunFeedEntry = {
package/dist/runtime.cjs CHANGED
@@ -76,8 +76,14 @@ async function runFlow(graph, executors, onEvent = () => {
76
76
  continue;
77
77
  }
78
78
  }
79
- if (node.type === "note") {
80
- onEvent({ type: "node-status", nodeId: node.id, status: "idle", text: "annotation" });
79
+ const visualKind = getNodeKind(node.type ?? "");
80
+ if (node.type === "note" || visualKind?.category === "layout") {
81
+ onEvent({
82
+ type: "node-status",
83
+ nodeId: node.id,
84
+ status: "idle",
85
+ text: visualKind?.category === "layout" ? "lane" : "annotation"
86
+ });
81
87
  continue;
82
88
  }
83
89
  onEvent({ type: "node-status", nodeId: node.id, status: "running" });