@particle-academy/fancy-flow 0.65.2 → 0.66.1

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 (112) hide show
  1. package/README.md +100 -3
  2. package/dist/{FlowViewer-BI_AyyvU.d.ts → FlowViewer-BCc_BvuD.d.ts} +1 -1
  3. package/dist/{FlowViewer-DABx-6A-.d.cts → FlowViewer-CoAJ3o52.d.cts} +1 -1
  4. package/dist/{HumanPrompt-Bpp3JiVH.d.cts → HumanPrompt--pXDOyYC.d.cts} +2 -2
  5. package/dist/{HumanPrompt-BKThiyjB.d.ts → HumanPrompt-DXm_FP9z.d.ts} +2 -2
  6. package/dist/chunk-27RZJAE2.js +2586 -0
  7. package/dist/chunk-27RZJAE2.js.map +1 -0
  8. package/dist/{chunk-MBVX4ZRB.js → chunk-2QTEELJE.js} +4 -3
  9. package/dist/chunk-2QTEELJE.js.map +1 -0
  10. package/dist/chunk-2QXKDLGT.js +58 -0
  11. package/dist/chunk-2QXKDLGT.js.map +1 -0
  12. package/dist/{chunk-W5DPKJY4.js → chunk-6AYC3BWI.js} +4 -4
  13. package/dist/chunk-6AYC3BWI.js.map +1 -0
  14. package/dist/{chunk-5H54OTKT.js → chunk-6TH646CS.js} +127 -5
  15. package/dist/chunk-6TH646CS.js.map +1 -0
  16. package/dist/{chunk-EO6444T2.js → chunk-BUNFPBTF.js} +5 -4
  17. package/dist/chunk-BUNFPBTF.js.map +1 -0
  18. package/dist/{chunk-77V4QC6Y.js → chunk-FV3D366L.js} +3 -3
  19. package/dist/{chunk-77V4QC6Y.js.map → chunk-FV3D366L.js.map} +1 -1
  20. package/dist/{chunk-JF6WCRBU.js → chunk-OWENS2H5.js} +36 -1905
  21. package/dist/chunk-OWENS2H5.js.map +1 -0
  22. package/dist/{chunk-RIAFHQT5.js → chunk-RE3XNVSB.js} +3 -3
  23. package/dist/{chunk-RIAFHQT5.js.map → chunk-RE3XNVSB.js.map} +1 -1
  24. package/dist/connectors.d.cts +2 -2
  25. package/dist/connectors.d.ts +2 -2
  26. package/dist/durable/index.d.cts +2 -2
  27. package/dist/durable/index.d.ts +2 -2
  28. package/dist/durable.cjs +865 -9135
  29. package/dist/durable.cjs.map +1 -1
  30. package/dist/durable.js +2 -4
  31. package/dist/durable.js.map +1 -1
  32. package/dist/engine.cjs +927 -9278
  33. package/dist/engine.cjs.map +1 -1
  34. package/dist/engine.d.cts +6 -7
  35. package/dist/engine.d.ts +6 -7
  36. package/dist/engine.js +5 -7
  37. package/dist/engine.js.map +1 -1
  38. package/dist/fields/react-fancy.d.cts +3 -3
  39. package/dist/fields/react-fancy.d.ts +3 -3
  40. package/dist/index.cjs +11009 -10282
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.cts +65 -36
  43. package/dist/index.d.ts +65 -36
  44. package/dist/index.js +22 -19
  45. package/dist/index.js.map +1 -1
  46. package/dist/layout/index.d.cts +1 -1
  47. package/dist/layout/index.d.ts +1 -1
  48. package/dist/llm/prism.cjs.map +1 -1
  49. package/dist/llm/prism.d.cts +1 -2
  50. package/dist/llm/prism.d.ts +1 -2
  51. package/dist/llm/prism.js +1 -1
  52. package/dist/llm/vercel-ai.cjs.map +1 -1
  53. package/dist/llm/vercel-ai.d.cts +1 -2
  54. package/dist/llm/vercel-ai.d.ts +1 -2
  55. package/dist/llm/vercel-ai.js +1 -1
  56. package/dist/registry/index.d.cts +20 -9
  57. package/dist/registry/index.d.ts +20 -9
  58. package/dist/{registry-CntAdUcY.d.cts → registry-BcgllSk2.d.cts} +1 -1
  59. package/dist/{registry-DYoV-MQi.d.ts → registry-h-2QswZ5.d.ts} +1 -1
  60. package/dist/registry.cjs +11252 -10409
  61. package/dist/registry.cjs.map +1 -1
  62. package/dist/registry.js +5 -4
  63. package/dist/{run-cohort-C1nRh_mi.d.ts → run-cohort-CjUBWg6X.d.ts} +2 -2
  64. package/dist/{run-cohort-CBRAUj-z.d.cts → run-cohort-DL9JzzPU.d.cts} +2 -2
  65. package/dist/{run-flow-2XsHBwpd.d.cts → run-flow-B_8hgO5_.d.cts} +1 -1
  66. package/dist/{run-flow-D7AOCcfE.d.ts → run-flow-CxEGBOxd.d.ts} +1 -1
  67. package/dist/runtime/index.d.cts +5 -5
  68. package/dist/runtime/index.d.ts +5 -5
  69. package/dist/runtime.cjs +10843 -10194
  70. package/dist/runtime.cjs.map +1 -1
  71. package/dist/runtime.js +5 -5
  72. package/dist/schema/index.d.cts +19 -6
  73. package/dist/schema/index.d.ts +19 -6
  74. package/dist/schema.cjs +881 -9142
  75. package/dist/schema.cjs.map +1 -1
  76. package/dist/schema.js +4 -5
  77. package/dist/screens.cjs +842 -86
  78. package/dist/screens.cjs.map +1 -1
  79. package/dist/screens.d.cts +2 -2
  80. package/dist/screens.d.ts +2 -2
  81. package/dist/screens.js +7 -6
  82. package/dist/screens.js.map +1 -1
  83. package/dist/terminal/fancy-term-host.cjs +99 -0
  84. package/dist/terminal/fancy-term-host.cjs.map +1 -0
  85. package/dist/terminal/fancy-term-host.d.cts +76 -0
  86. package/dist/terminal/fancy-term-host.d.ts +76 -0
  87. package/dist/terminal/fancy-term-host.js +92 -0
  88. package/dist/terminal/fancy-term-host.js.map +1 -0
  89. package/dist/types-B-Syk9-M.d.cts +620 -0
  90. package/dist/types-B-Syk9-M.d.ts +620 -0
  91. package/dist/{types-D71SKA5A.d.cts → types-C2ATTmjN.d.cts} +1 -1
  92. package/dist/{types-Ckhz-YwC.d.ts → types-VunLGqrn.d.ts} +1 -1
  93. package/dist/ux.cjs +885 -9142
  94. package/dist/ux.cjs.map +1 -1
  95. package/dist/ux.d.cts +2 -2
  96. package/dist/ux.d.ts +2 -2
  97. package/dist/ux.js +2 -3
  98. package/dist/ux.js.map +1 -1
  99. package/package.json +11 -1
  100. package/dist/capabilities-BYa5p5jw.d.cts +0 -112
  101. package/dist/capabilities-COOXRiNL.d.ts +0 -112
  102. package/dist/chunk-5H54OTKT.js.map +0 -1
  103. package/dist/chunk-EO6444T2.js.map +0 -1
  104. package/dist/chunk-JF6WCRBU.js.map +0 -1
  105. package/dist/chunk-MBVX4ZRB.js.map +0 -1
  106. package/dist/chunk-UM4C46AF.js +0 -103
  107. package/dist/chunk-UM4C46AF.js.map +0 -1
  108. package/dist/chunk-USL4FMFU.js +0 -41
  109. package/dist/chunk-USL4FMFU.js.map +0 -1
  110. package/dist/chunk-W5DPKJY4.js.map +0 -1
  111. package/dist/types-JFYjPJAG.d.cts +0 -333
  112. package/dist/types-JFYjPJAG.d.ts +0 -333
package/dist/runtime.js CHANGED
@@ -1,7 +1,7 @@
1
- export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-MBVX4ZRB.js';
2
- export { runCohort } from './chunk-RIAFHQT5.js';
3
- export { RunIdentity, escapeSegment, runFlow } from './chunk-JF6WCRBU.js';
4
- import './chunk-F5RPRB7A.js';
5
- import './chunk-USL4FMFU.js';
1
+ export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-2QTEELJE.js';
2
+ export { runCohort } from './chunk-RE3XNVSB.js';
3
+ import './chunk-OWENS2H5.js';
4
+ export { RunIdentity, escapeSegment, runFlow } from './chunk-27RZJAE2.js';
5
+ import './chunk-2QXKDLGT.js';
6
6
  //# sourceMappingURL=runtime.js.map
7
7
  //# sourceMappingURL=runtime.js.map
@@ -1,4 +1,4 @@
1
- import { W as WorkflowInput, P as PortDescriptor, F as FlowGraph } from '../types-JFYjPJAG.cjs';
1
+ import { G as WorkflowInput, P as PortDescriptor, F as FlowGraph } from '../types-B-Syk9-M.cjs';
2
2
  import '@xyflow/react';
3
3
 
4
4
  /** Schema version. Bump on breaking shape changes; add migrations as needed. */
@@ -76,11 +76,24 @@ type WorkflowSchemaNode = {
76
76
  inputs?: PortDescriptor[];
77
77
  outputs?: PortDescriptor[];
78
78
  /**
79
- * Visual layout — additive + optional. `parentId`/`extent` carry node grouping
80
- * (swimlanes / containers); `width`/`height` carry an explicit (resized) size;
81
- * `style` carries inline presentation. A runtime that only walks edges/ports
82
- * (e.g. the PHP twin) ignores all of these — they exist purely for the canvas,
83
- * so an older reader that doesn't know them simply drops them.
79
+ * Node grouping and visual layout — additive + optional. `parentId`/`extent`
80
+ * say which container a node sits in (swimlanes); `width`/`height` carry an
81
+ * explicit (resized) size; `style` carries inline presentation.
82
+ *
83
+ * **`parentId` is NOT decoration, and a runtime that drops it is wrong.** It
84
+ * decides which terminal a node talks to — a terminal lane owns one session
85
+ * and membership is this field, deliberately, so there is no second copy of
86
+ * the grouping in each node's config to drift from what the canvas shows.
87
+ *
88
+ * This comment used to say these fields exist "purely for the canvas", so a
89
+ * runtime that only walks edges and ports could ignore all of them. The
90
+ * Python twin read that literally and carried none of them: a graph loaded
91
+ * there and saved back lost every grouping a person had drawn, silently. The
92
+ * sentence was true when it was written and became false without being
93
+ * revisited, which is the more common way a comment does harm.
94
+ *
95
+ * An older reader that does not know these fields still drops them — that is
96
+ * forward-compatibility, not permission.
84
97
  */
85
98
  parentId?: string;
86
99
  extent?: "parent" | [[number, number], [number, number]];
@@ -1,4 +1,4 @@
1
- import { W as WorkflowInput, P as PortDescriptor, F as FlowGraph } from '../types-JFYjPJAG.js';
1
+ import { G as WorkflowInput, P as PortDescriptor, F as FlowGraph } from '../types-B-Syk9-M.js';
2
2
  import '@xyflow/react';
3
3
 
4
4
  /** Schema version. Bump on breaking shape changes; add migrations as needed. */
@@ -76,11 +76,24 @@ type WorkflowSchemaNode = {
76
76
  inputs?: PortDescriptor[];
77
77
  outputs?: PortDescriptor[];
78
78
  /**
79
- * Visual layout — additive + optional. `parentId`/`extent` carry node grouping
80
- * (swimlanes / containers); `width`/`height` carry an explicit (resized) size;
81
- * `style` carries inline presentation. A runtime that only walks edges/ports
82
- * (e.g. the PHP twin) ignores all of these — they exist purely for the canvas,
83
- * so an older reader that doesn't know them simply drops them.
79
+ * Node grouping and visual layout — additive + optional. `parentId`/`extent`
80
+ * say which container a node sits in (swimlanes); `width`/`height` carry an
81
+ * explicit (resized) size; `style` carries inline presentation.
82
+ *
83
+ * **`parentId` is NOT decoration, and a runtime that drops it is wrong.** It
84
+ * decides which terminal a node talks to — a terminal lane owns one session
85
+ * and membership is this field, deliberately, so there is no second copy of
86
+ * the grouping in each node's config to drift from what the canvas shows.
87
+ *
88
+ * This comment used to say these fields exist "purely for the canvas", so a
89
+ * runtime that only walks edges and ports could ignore all of them. The
90
+ * Python twin read that literally and carried none of them: a graph loaded
91
+ * there and saved back lost every grouping a person had drawn, silently. The
92
+ * sentence was true when it was written and became false without being
93
+ * revisited, which is the more common way a comment does harm.
94
+ *
95
+ * An older reader that does not know these fields still drops them — that is
96
+ * forward-compatibility, not permission.
84
97
  */
85
98
  parentId?: string;
86
99
  extent?: "parent" | [[number, number], [number, number]];