@particle-academy/fancy-flow 0.21.0 → 0.23.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 (61) 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-JE4ENQSE.js → chunk-AUL4LU63.js} +55 -7
  4. package/dist/chunk-AUL4LU63.js.map +1 -0
  5. package/dist/{chunk-L4AX73Q6.js → chunk-KDHLKBL2.js} +11 -5
  6. package/dist/chunk-KDHLKBL2.js.map +1 -0
  7. package/dist/{chunk-G3WHXMZ3.js → chunk-O7F6SGV4.js} +3 -3
  8. package/dist/{chunk-G3WHXMZ3.js.map → chunk-O7F6SGV4.js.map} +1 -1
  9. package/dist/{chunk-HMWYJIRP.js → chunk-OHVSEHDC.js} +3 -3
  10. package/dist/{chunk-HMWYJIRP.js.map → chunk-OHVSEHDC.js.map} +1 -1
  11. package/dist/{chunk-U5F22BHV.js → chunk-YXRLIV7A.js} +4 -2
  12. package/dist/chunk-YXRLIV7A.js.map +1 -0
  13. package/dist/engine.cjs +8 -2
  14. package/dist/engine.cjs.map +1 -1
  15. package/dist/engine.d.cts +3 -3
  16. package/dist/engine.d.ts +3 -3
  17. package/dist/engine.js +4 -4
  18. package/dist/index.cjs +5271 -3395
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +32 -7
  21. package/dist/index.d.ts +32 -7
  22. package/dist/index.js +213 -107
  23. package/dist/index.js.map +1 -1
  24. package/dist/layout/index.d.cts +30 -0
  25. package/dist/layout/index.d.ts +30 -0
  26. package/dist/layout.cjs +1693 -0
  27. package/dist/layout.cjs.map +1 -0
  28. package/dist/layout.js +1691 -0
  29. package/dist/layout.js.map +1 -0
  30. package/dist/llm/vercel-ai.d.cts +2 -2
  31. package/dist/llm/vercel-ai.d.ts +2 -2
  32. package/dist/registry/index.d.cts +5 -5
  33. package/dist/registry/index.d.ts +5 -5
  34. package/dist/registry.cjs +59 -3
  35. package/dist/registry.cjs.map +1 -1
  36. package/dist/registry.js +4 -4
  37. package/dist/{run-flow-ChBi6q-W.d.ts → run-flow-9U-gaYVF.d.ts} +1 -1
  38. package/dist/{run-flow-VKm57Hcj.d.cts → run-flow-AXzOR-Wq.d.cts} +1 -1
  39. package/dist/runtime/index.d.cts +3 -3
  40. package/dist/runtime/index.d.ts +3 -3
  41. package/dist/runtime.cjs +8 -2
  42. package/dist/runtime.cjs.map +1 -1
  43. package/dist/runtime.js +3 -3
  44. package/dist/schema/index.d.cts +1 -1
  45. package/dist/schema/index.d.ts +1 -1
  46. package/dist/schema.cjs.map +1 -1
  47. package/dist/schema.js +2 -2
  48. package/dist/styles.css +41 -0
  49. package/dist/styles.css.map +1 -1
  50. package/dist/{types-VGkCXEO6.d.ts → types-CFEtuRWJ.d.ts} +11 -3
  51. package/dist/{types-sOmpCitB.d.cts → types-CMSrWVYM.d.cts} +1 -1
  52. package/dist/{types-sOmpCitB.d.ts → types-CMSrWVYM.d.ts} +1 -1
  53. package/dist/{types-LG-YckGh.d.cts → types-DneUoivl.d.cts} +11 -3
  54. package/dist/ux.cjs.map +1 -1
  55. package/dist/ux.d.cts +3 -3
  56. package/dist/ux.d.ts +3 -3
  57. package/dist/ux.js +1 -1
  58. package/package.json +12 -1
  59. package/dist/chunk-JE4ENQSE.js.map +0 -1
  60. package/dist/chunk-L4AX73Q6.js.map +0 -1
  61. package/dist/chunk-U5F22BHV.js.map +0 -1
package/dist/registry.js CHANGED
@@ -1,10 +1,10 @@
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-JE4ENQSE.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-AUL4LU63.js';
2
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
+ export { capabilityStatus, getLlmClient, getWorkflowResolver, isResolutionFailure, registerLlmClient, registerWorkflowResolver } from './chunk-USL4FMFU.js';
5
+ import './chunk-KDHLKBL2.js';
5
6
  export { nodeConfig, resolveNodePorts, resolvePortSpec } from './chunk-TITD5W4Y.js';
6
- export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-U5F22BHV.js';
7
+ export { categoryAccent, defaultConfigFor, getNodeKind, kindIds, listNodeKinds, onNodeKindsChanged, registerNodeKind, resolveKindId, validateConfig } from './chunk-YXRLIV7A.js';
7
8
  export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
8
- export { capabilityStatus, getLlmClient, getWorkflowResolver, isResolutionFailure, registerLlmClient, registerWorkflowResolver } from './chunk-USL4FMFU.js';
9
9
  //# sourceMappingURL=registry.js.map
10
10
  //# 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" });