@particle-academy/fancy-flow 0.53.0 → 0.55.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 (59) hide show
  1. package/dist/{ConfigFieldRenderer-Bc9Txnql.d.cts → HumanPrompt-CPl-Spmp.d.cts} +75 -1
  2. package/dist/{ConfigFieldRenderer-Bt3RGT7Z.d.ts → HumanPrompt-DlJSFi3F.d.ts} +75 -1
  3. package/dist/{chunk-CIBW5ATA.js → chunk-22OJOD4X.js} +7 -3
  4. package/dist/chunk-22OJOD4X.js.map +1 -0
  5. package/dist/{chunk-VWANLNL5.js → chunk-E3AGYTHP.js} +3 -3
  6. package/dist/{chunk-VWANLNL5.js.map → chunk-E3AGYTHP.js.map} +1 -1
  7. package/dist/{chunk-FTGVVKWX.js → chunk-HMEI2LFU.js} +4 -4
  8. package/dist/{chunk-FTGVVKWX.js.map → chunk-HMEI2LFU.js.map} +1 -1
  9. package/dist/{chunk-WCFRKXH5.js → chunk-KP4TBF3A.js} +3 -3
  10. package/dist/{chunk-WCFRKXH5.js.map → chunk-KP4TBF3A.js.map} +1 -1
  11. package/dist/{chunk-FG3C7LIG.js → chunk-L4QAAGLV.js} +3 -3
  12. package/dist/{chunk-FG3C7LIG.js.map → chunk-L4QAAGLV.js.map} +1 -1
  13. package/dist/{chunk-FH6MWLKD.js → chunk-YVLOLS25.js} +3 -3
  14. package/dist/{chunk-FH6MWLKD.js.map → chunk-YVLOLS25.js.map} +1 -1
  15. package/dist/durable/index.d.cts +1 -1
  16. package/dist/durable/index.d.ts +1 -1
  17. package/dist/durable.cjs +5 -1
  18. package/dist/durable.cjs.map +1 -1
  19. package/dist/durable.js +1 -1
  20. package/dist/engine.cjs +5 -1
  21. package/dist/engine.cjs.map +1 -1
  22. package/dist/engine.d.cts +2 -2
  23. package/dist/engine.d.ts +2 -2
  24. package/dist/engine.js +3 -3
  25. package/dist/fields/react-fancy.cjs +66 -0
  26. package/dist/fields/react-fancy.cjs.map +1 -1
  27. package/dist/fields/react-fancy.d.cts +35 -2
  28. package/dist/fields/react-fancy.d.ts +35 -2
  29. package/dist/fields/react-fancy.js +67 -2
  30. package/dist/fields/react-fancy.js.map +1 -1
  31. package/dist/index.cjs +34 -10
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +15 -4
  34. package/dist/index.d.ts +15 -4
  35. package/dist/index.js +40 -20
  36. package/dist/index.js.map +1 -1
  37. package/dist/registry.cjs +5 -1
  38. package/dist/registry.cjs.map +1 -1
  39. package/dist/registry.js +2 -2
  40. package/dist/{run-cohort-BPIOpE8A.d.ts → run-cohort-C1nRh_mi.d.ts} +1 -1
  41. package/dist/{run-cohort-r-L8dMED.d.cts → run-cohort-CBRAUj-z.d.cts} +1 -1
  42. package/dist/{run-flow-COdAOFg2.d.cts → run-flow-2XsHBwpd.d.cts} +31 -0
  43. package/dist/{run-flow-DJ7KYT6E.d.ts → run-flow-D7AOCcfE.d.ts} +31 -0
  44. package/dist/runtime/index.d.cts +3 -3
  45. package/dist/runtime/index.d.ts +3 -3
  46. package/dist/runtime.cjs +5 -1
  47. package/dist/runtime.cjs.map +1 -1
  48. package/dist/runtime.js +3 -3
  49. package/dist/schema.cjs +5 -1
  50. package/dist/schema.cjs.map +1 -1
  51. package/dist/schema.js +2 -2
  52. package/dist/screens.cjs +5 -1
  53. package/dist/screens.cjs.map +1 -1
  54. package/dist/screens.js +4 -4
  55. package/dist/ux.cjs +5 -1
  56. package/dist/ux.cjs.map +1 -1
  57. package/dist/ux.js +1 -1
  58. package/package.json +2 -2
  59. package/dist/chunk-CIBW5ATA.js.map +0 -1
package/dist/runtime.js CHANGED
@@ -1,6 +1,6 @@
1
- export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-FG3C7LIG.js';
2
- export { runCohort } from './chunk-WCFRKXH5.js';
3
- export { RunIdentity, escapeSegment, runFlow } from './chunk-CIBW5ATA.js';
1
+ export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-L4QAAGLV.js';
2
+ export { runCohort } from './chunk-KP4TBF3A.js';
3
+ export { RunIdentity, escapeSegment, runFlow } from './chunk-22OJOD4X.js';
4
4
  import './chunk-F5RPRB7A.js';
5
5
  import './chunk-USL4FMFU.js';
6
6
  //# sourceMappingURL=runtime.js.map
package/dist/schema.cjs CHANGED
@@ -9337,7 +9337,7 @@ function resolveWorkflowProps(declared, passed) {
9337
9337
  // src/runtime/run-flow.ts
9338
9338
  async function runFlow(graph, executors, onEvent = () => {
9339
9339
  }, options = {}) {
9340
- const { signal, initialInputs = {}, timeoutMs, depth = 0, resumeOutputs = {} } = options;
9340
+ const { signal, initialInputs = {}, timeoutMs, depth = 0, resumeOutputs = {}, entryNodes } = options;
9341
9341
  const run = options.run === void 0 ? void 0 : RunIdentity.from(options.run);
9342
9342
  const outputs = {};
9343
9343
  const portValues = /* @__PURE__ */ new Map();
@@ -9376,6 +9376,10 @@ async function runFlow(graph, executors, onEvent = () => {
9376
9376
  continue;
9377
9377
  }
9378
9378
  const incoming = incomingByNode.get(node.id) ?? [];
9379
+ if (incoming.length === 0 && entryNodes !== void 0 && !entryNodes.includes(node.id)) {
9380
+ onEvent({ type: "node-status", nodeId: node.id, status: "idle", text: "skipped" });
9381
+ continue;
9382
+ }
9379
9383
  if (incoming.length > 0) {
9380
9384
  const anyActive = incoming.some((e) => portValues.has(`${e.source}:${e.sourceHandle ?? "out"}`));
9381
9385
  if (!anyActive) {