@particle-academy/fancy-flow 0.72.0 → 0.72.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 (53) hide show
  1. package/dist/{chunk-57QTX3S3.js → chunk-3RXQGYGH.js} +3 -3
  2. package/dist/{chunk-57QTX3S3.js.map → chunk-3RXQGYGH.js.map} +1 -1
  3. package/dist/{chunk-RQP666FB.js → chunk-7DJ56PUA.js} +4 -4
  4. package/dist/{chunk-RQP666FB.js.map → chunk-7DJ56PUA.js.map} +1 -1
  5. package/dist/{chunk-C5K2DSZB.js → chunk-EX34GCKK.js} +7 -5
  6. package/dist/chunk-EX34GCKK.js.map +1 -0
  7. package/dist/{chunk-ZEDBF2V6.js → chunk-GQ5LEA7Q.js} +3 -3
  8. package/dist/{chunk-ZEDBF2V6.js.map → chunk-GQ5LEA7Q.js.map} +1 -1
  9. package/dist/{chunk-E3U3MBKI.js → chunk-K7KO3UJ3.js} +3 -3
  10. package/dist/{chunk-E3U3MBKI.js.map → chunk-K7KO3UJ3.js.map} +1 -1
  11. package/dist/{chunk-R3GQ72WA.js → chunk-LYYQO7EY.js} +4 -4
  12. package/dist/{chunk-R3GQ72WA.js.map → chunk-LYYQO7EY.js.map} +1 -1
  13. package/dist/{chunk-6TC44VCY.js → chunk-VAF2SWTC.js} +3 -3
  14. package/dist/{chunk-6TC44VCY.js.map → chunk-VAF2SWTC.js.map} +1 -1
  15. package/dist/durable/index.d.cts +45 -12
  16. package/dist/durable/index.d.ts +45 -12
  17. package/dist/durable.cjs +23 -11
  18. package/dist/durable.cjs.map +1 -1
  19. package/dist/durable.js +19 -10
  20. package/dist/durable.js.map +1 -1
  21. package/dist/engine.cjs +5 -3
  22. package/dist/engine.cjs.map +1 -1
  23. package/dist/engine.d.cts +2 -2
  24. package/dist/engine.d.ts +2 -2
  25. package/dist/engine.js +4 -4
  26. package/dist/index.cjs +5 -3
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +2 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +12 -12
  31. package/dist/registry.cjs +5 -3
  32. package/dist/registry.cjs.map +1 -1
  33. package/dist/registry.js +2 -2
  34. package/dist/{run-cohort-DL9JzzPU.d.cts → run-cohort-DNpPa0mq.d.cts} +1 -1
  35. package/dist/{run-cohort-CjUBWg6X.d.ts → run-cohort-rgT_FX3V.d.ts} +1 -1
  36. package/dist/{run-flow-CxEGBOxd.d.ts → run-flow-BLP9rXfO.d.ts} +22 -1
  37. package/dist/{run-flow-B_8hgO5_.d.cts → run-flow-pW0PllaZ.d.cts} +22 -1
  38. package/dist/runtime/index.d.cts +3 -3
  39. package/dist/runtime/index.d.ts +3 -3
  40. package/dist/runtime.cjs +5 -3
  41. package/dist/runtime.cjs.map +1 -1
  42. package/dist/runtime.js +3 -3
  43. package/dist/schema.cjs +5 -3
  44. package/dist/schema.cjs.map +1 -1
  45. package/dist/schema.js +3 -3
  46. package/dist/screens.cjs +5 -3
  47. package/dist/screens.cjs.map +1 -1
  48. package/dist/screens.js +4 -4
  49. package/dist/ux.cjs +5 -3
  50. package/dist/ux.cjs.map +1 -1
  51. package/dist/ux.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/chunk-C5K2DSZB.js.map +0 -1
package/dist/schema.js CHANGED
@@ -1,6 +1,6 @@
1
- export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-RQP666FB.js';
2
- import './chunk-6TC44VCY.js';
3
- import './chunk-C5K2DSZB.js';
1
+ export { WORKFLOW_SCHEMA_URL, WORKFLOW_SCHEMA_VERSION, exportWorkflow, importWorkflow, migrateSchema, workflowToBlob } from './chunk-7DJ56PUA.js';
2
+ import './chunk-VAF2SWTC.js';
3
+ import './chunk-EX34GCKK.js';
4
4
  import './chunk-2QXKDLGT.js';
5
5
  //# sourceMappingURL=schema.js.map
6
6
  //# sourceMappingURL=schema.js.map
package/dist/screens.cjs CHANGED
@@ -9810,7 +9810,7 @@ function resolveWorkflowProps(declared, passed) {
9810
9810
  // src/runtime/run-flow.ts
9811
9811
  async function runFlow(graph, executors, onEvent = () => {
9812
9812
  }, options = {}) {
9813
- const { signal, initialInputs = {}, timeoutMs, depth = 0, resumeOutputs = {}, entryNodes } = options;
9813
+ const { signal, initialInputs = {}, timeoutMs, depth = 0, resumeOutputs = {}, entryNodes, nodeExecutors } = options;
9814
9814
  const run = options.run === void 0 ? void 0 : RunIdentity.from(options.run);
9815
9815
  const outputs = {};
9816
9816
  const portValues = /* @__PURE__ */ new Map();
@@ -9898,7 +9898,7 @@ async function runFlow(graph, executors, onEvent = () => {
9898
9898
  onEvent({ type: "node-status", nodeId: node.id, status: "running" });
9899
9899
  announce(onEvent, node, "start");
9900
9900
  const inputs = collectInputs(node, incoming, portValues, initialInputs, props, declaresProps);
9901
- const exec = pickExecutor(executors, node);
9901
+ const exec = pickExecutor(executors, node, nodeExecutors);
9902
9902
  if (!exec) {
9903
9903
  const tried = executorLookupIds(node);
9904
9904
  const msg = `No executor registered for kind=${node.type} \u2014 tried ${tried.map((id2) => `"${id2}"`).join(", ")}. Key your registry by one of those.`;
@@ -10018,7 +10018,9 @@ function executorLookupIds(node) {
10018
10018
  ids.push("*");
10019
10019
  return [...new Set(ids)];
10020
10020
  }
10021
- function pickExecutor(executors, node) {
10021
+ function pickExecutor(executors, node, nodeExecutors) {
10022
+ const pinned = nodeExecutors && Object.prototype.hasOwnProperty.call(nodeExecutors, node.id) ? nodeExecutors[node.id] : void 0;
10023
+ if (pinned) return pinned;
10022
10024
  for (const id2 of executorLookupIds(node)) {
10023
10025
  if (executors[id2]) return executors[id2];
10024
10026
  }