@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.
- package/dist/{chunk-XCT2CJ5O.js → chunk-4GO2CHAY.js} +20 -5
- package/dist/chunk-4GO2CHAY.js.map +1 -0
- package/dist/{chunk-7XTTXMGB.js → chunk-OECW2E5D.js} +4 -4
- package/dist/{chunk-7XTTXMGB.js.map → chunk-OECW2E5D.js.map} +1 -1
- package/dist/{chunk-HXGGCMR7.js → chunk-OK7KJLWA.js} +3 -3
- package/dist/{chunk-HXGGCMR7.js.map → chunk-OK7KJLWA.js.map} +1 -1
- package/dist/{chunk-6AI6CBNL.js → chunk-RSRXKZ52.js} +3 -3
- package/dist/{chunk-6AI6CBNL.js.map → chunk-RSRXKZ52.js.map} +1 -1
- package/dist/{chunk-LH76EIFL.js → chunk-SPINP4EJ.js} +3 -3
- package/dist/{chunk-LH76EIFL.js.map → chunk-SPINP4EJ.js.map} +1 -1
- package/dist/{chunk-SKEZ5AGI.js → chunk-VUU3CDBT.js} +3 -3
- package/dist/{chunk-SKEZ5AGI.js.map → chunk-VUU3CDBT.js.map} +1 -1
- package/dist/durable.cjs +18 -3
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +18 -3
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +3 -3
- package/dist/index.cjs +18 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/registry.cjs +18 -3
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +18 -3
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema.cjs +18 -3
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +18 -3
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +4 -4
- package/dist/ux.cjs +18 -3
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XCT2CJ5O.js.map +0 -1
package/dist/runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-
|
|
2
|
-
export { runCohort } from './chunk-
|
|
3
|
-
export { RunIdentity, escapeSegment, runFlow } from './chunk-
|
|
1
|
+
export { applyOutputsToNodes, applyStatusesToNodes, createHistory, useFlowHistory, useFlowRun, useFlowState } from './chunk-OK7KJLWA.js';
|
|
2
|
+
export { runCohort } from './chunk-VUU3CDBT.js';
|
|
3
|
+
export { RunIdentity, escapeSegment, runFlow } from './chunk-4GO2CHAY.js';
|
|
4
4
|
import './chunk-F5RPRB7A.js';
|
|
5
5
|
import './chunk-USL4FMFU.js';
|
|
6
6
|
//# sourceMappingURL=runtime.js.map
|
package/dist/schema.cjs
CHANGED
|
@@ -9347,7 +9347,8 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
9347
9347
|
const inputs = collectInputs(node, incoming, portValues, initialInputs, props, declaresProps);
|
|
9348
9348
|
const exec = pickExecutor(executors, node);
|
|
9349
9349
|
if (!exec) {
|
|
9350
|
-
const
|
|
9350
|
+
const tried = executorLookupIds(node);
|
|
9351
|
+
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.`;
|
|
9351
9352
|
errors.push(msg);
|
|
9352
9353
|
onEvent({ type: "node-status", nodeId: node.id, status: "error", text: msg });
|
|
9353
9354
|
onEvent({ type: "log", nodeId: node.id, level: "error", message: msg });
|
|
@@ -9440,14 +9441,28 @@ function collectInputs(node, incoming, portValues, initial, props, declaresProps
|
|
|
9440
9441
|
if (declaresProps) inputs.$props = props;
|
|
9441
9442
|
return inputs;
|
|
9442
9443
|
}
|
|
9444
|
+
function executorLookupIds(node) {
|
|
9445
|
+
const ids = [node.id];
|
|
9446
|
+
if (node.type) ids.push(node.type);
|
|
9447
|
+
const declared = node.data?.kind;
|
|
9448
|
+
const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
|
|
9449
|
+
if (kindName && kindName !== node.type) ids.push(kindName);
|
|
9450
|
+
for (const name of [kindName, node.type]) {
|
|
9451
|
+
const kind = name ? getNodeKind(name) : null;
|
|
9452
|
+
if (!kind) continue;
|
|
9453
|
+
for (const id2 of kindIds(kind)) ids.push(id2);
|
|
9454
|
+
}
|
|
9455
|
+
return [...new Set(ids)];
|
|
9456
|
+
}
|
|
9443
9457
|
function pickExecutor(executors, node) {
|
|
9444
9458
|
if (executors[node.id]) return executors[node.id];
|
|
9445
9459
|
if (node.type && executors[node.type]) return executors[node.type];
|
|
9446
9460
|
const declared = node.data?.kind;
|
|
9447
9461
|
const kindName = typeof declared === "string" && declared !== "" ? declared : node.type;
|
|
9448
9462
|
if (kindName && kindName !== node.type && executors[kindName]) return executors[kindName];
|
|
9449
|
-
const
|
|
9450
|
-
|
|
9463
|
+
for (const name of [kindName, node.type]) {
|
|
9464
|
+
const kind = name ? getNodeKind(name) : null;
|
|
9465
|
+
if (!kind) continue;
|
|
9451
9466
|
for (const id2 of kindIds(kind)) {
|
|
9452
9467
|
if (executors[id2]) return executors[id2];
|
|
9453
9468
|
}
|