@particle-academy/fancy-flow 0.51.0 → 0.51.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 (38) hide show
  1. package/dist/{chunk-XCT2CJ5O.js → chunk-4GO2CHAY.js} +20 -5
  2. package/dist/chunk-4GO2CHAY.js.map +1 -0
  3. package/dist/{chunk-7XTTXMGB.js → chunk-OECW2E5D.js} +4 -4
  4. package/dist/{chunk-7XTTXMGB.js.map → chunk-OECW2E5D.js.map} +1 -1
  5. package/dist/{chunk-HXGGCMR7.js → chunk-OK7KJLWA.js} +3 -3
  6. package/dist/{chunk-HXGGCMR7.js.map → chunk-OK7KJLWA.js.map} +1 -1
  7. package/dist/{chunk-6AI6CBNL.js → chunk-RSRXKZ52.js} +3 -3
  8. package/dist/{chunk-6AI6CBNL.js.map → chunk-RSRXKZ52.js.map} +1 -1
  9. package/dist/{chunk-LH76EIFL.js → chunk-SPINP4EJ.js} +3 -3
  10. package/dist/{chunk-LH76EIFL.js.map → chunk-SPINP4EJ.js.map} +1 -1
  11. package/dist/{chunk-SKEZ5AGI.js → chunk-VUU3CDBT.js} +3 -3
  12. package/dist/{chunk-SKEZ5AGI.js.map → chunk-VUU3CDBT.js.map} +1 -1
  13. package/dist/durable.cjs +18 -3
  14. package/dist/durable.cjs.map +1 -1
  15. package/dist/durable.js +1 -1
  16. package/dist/engine.cjs +18 -3
  17. package/dist/engine.cjs.map +1 -1
  18. package/dist/engine.js +3 -3
  19. package/dist/index.cjs +18 -3
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.js +11 -11
  22. package/dist/registry.cjs +18 -3
  23. package/dist/registry.cjs.map +1 -1
  24. package/dist/registry.js +2 -2
  25. package/dist/runtime.cjs +18 -3
  26. package/dist/runtime.cjs.map +1 -1
  27. package/dist/runtime.js +3 -3
  28. package/dist/schema.cjs +18 -3
  29. package/dist/schema.cjs.map +1 -1
  30. package/dist/schema.js +2 -2
  31. package/dist/screens.cjs +18 -3
  32. package/dist/screens.cjs.map +1 -1
  33. package/dist/screens.js +4 -4
  34. package/dist/ux.cjs +18 -3
  35. package/dist/ux.cjs.map +1 -1
  36. package/dist/ux.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-XCT2CJ5O.js.map +0 -1
@@ -9422,7 +9422,8 @@ async function runFlow(graph, executors, onEvent = () => {
9422
9422
  const inputs = collectInputs(node, incoming, portValues, initialInputs, props, declaresProps);
9423
9423
  const exec = pickExecutor(executors, node);
9424
9424
  if (!exec) {
9425
- const msg = `No executor registered for kind=${node.type}`;
9425
+ const tried = executorLookupIds(node);
9426
+ const msg = `No executor registered for kind=${node.type} \u2014 tried ${tried.map((id2) => `"${id2}"`).join(", ")} and the wildcard "*". Key your registry by one of those.`;
9426
9427
  errors.push(msg);
9427
9428
  onEvent({ type: "node-status", nodeId: node.id, status: "error", text: msg });
9428
9429
  onEvent({ type: "log", nodeId: node.id, level: "error", message: msg });
@@ -9515,14 +9516,28 @@ function collectInputs(node, incoming, portValues, initial, props, declaresProps
9515
9516
  if (declaresProps) inputs.$props = props;
9516
9517
  return inputs;
9517
9518
  }
9519
+ function executorLookupIds(node) {
9520
+ const ids = [node.id];
9521
+ if (node.type) ids.push(node.type);
9522
+ const declared = node.data?.kind;
9523
+ const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
9524
+ if (kindName && kindName !== node.type) ids.push(kindName);
9525
+ for (const name of [kindName, node.type]) {
9526
+ const kind = name ? getNodeKind(name) : null;
9527
+ if (!kind) continue;
9528
+ for (const id2 of kindIds(kind)) ids.push(id2);
9529
+ }
9530
+ return [...new Set(ids)];
9531
+ }
9518
9532
  function pickExecutor(executors, node) {
9519
9533
  if (executors[node.id]) return executors[node.id];
9520
9534
  if (node.type && executors[node.type]) return executors[node.type];
9521
9535
  const declared = node.data?.kind;
9522
9536
  const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
9523
9537
  if (kindName && kindName !== node.type && executors[kindName]) return executors[kindName];
9524
- const kind = kindName ? getNodeKind(kindName) : null;
9525
- if (kind) {
9538
+ for (const name of [kindName, node.type]) {
9539
+ const kind = name ? getNodeKind(name) : null;
9540
+ if (!kind) continue;
9526
9541
  for (const id2 of kindIds(kind)) {
9527
9542
  if (executors[id2]) return executors[id2];
9528
9543
  }
@@ -10692,5 +10707,5 @@ function LaneNodeInner(props) {
10692
10707
  var LaneNode = memo(LaneNodeInner);
10693
10708
 
10694
10709
  export { BUILTIN_KINDS, Background, BackgroundVariant, Controls, DEFAULT_MAX_DEPTH, FlowEditorProvider, Handle, LaneNode, MiniMap, NodeResizer, NodeToolbar, NoteNode, Position, ReactFlowProvider, RunIdentity, ViewportPortal, addEdge2 as addEdge, applyEdgeChanges, applyNodeChanges, categoryAccent, clearNodeKindOverrides, declaredRoutes, defaultConfigFor, ensureBuiltinKinds, escapeSegment, getNodeKind, index, kindIds, listNodeKinds, llmRouterExecutor, nodeConfig, onNodeKindsChanged, overrideNodeKind, reconnectEdge2 as reconnectEdge, registerBuiltinKinds, registerNodeKind, resolveFallbackPort, resolveKindId, resolveNodePorts, resolvePortSpec, runFlow, subflowExecutor, subflowMode, subflowPorts, useFlowEditor, useFlowEditorOptional, useReactFlow, validateConfig };
10695
- //# sourceMappingURL=chunk-XCT2CJ5O.js.map
10696
- //# sourceMappingURL=chunk-XCT2CJ5O.js.map
10710
+ //# sourceMappingURL=chunk-4GO2CHAY.js.map
10711
+ //# sourceMappingURL=chunk-4GO2CHAY.js.map