@particle-academy/fancy-flow 0.51.1 → 0.52.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.
- package/dist/{chunk-RSRXKZ52.js → chunk-I7ZDPY7C.js} +3 -3
- package/dist/{chunk-RSRXKZ52.js.map → chunk-I7ZDPY7C.js.map} +1 -1
- package/dist/{chunk-4GO2CHAY.js → chunk-JOXMAWAI.js} +20 -22
- package/dist/chunk-JOXMAWAI.js.map +1 -0
- package/dist/{chunk-OK7KJLWA.js → chunk-PEX3ZGCO.js} +3 -3
- package/dist/{chunk-OK7KJLWA.js.map → chunk-PEX3ZGCO.js.map} +1 -1
- package/dist/{chunk-SPINP4EJ.js → chunk-PU3CLTAG.js} +3 -3
- package/dist/{chunk-SPINP4EJ.js.map → chunk-PU3CLTAG.js.map} +1 -1
- package/dist/{chunk-OECW2E5D.js → chunk-PWIHOR57.js} +4 -4
- package/dist/{chunk-OECW2E5D.js.map → chunk-PWIHOR57.js.map} +1 -1
- package/dist/{chunk-VUU3CDBT.js → chunk-RR7A6IUW.js} +3 -3
- package/dist/{chunk-VUU3CDBT.js.map → chunk-RR7A6IUW.js.map} +1 -1
- package/dist/durable.cjs +19 -21
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +19 -21
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +3 -3
- package/dist/index.cjs +19 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/registry.cjs +19 -21
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +19 -21
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema.cjs +19 -21
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +19 -21
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +4 -4
- package/dist/ux.cjs +19 -21
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-4GO2CHAY.js.map +0 -1
package/dist/durable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { truthy } from './chunk-BHM5HGXH.js';
|
|
2
2
|
import { pauseForHuman, decodePause } from './chunk-UEOE6B52.js';
|
|
3
|
-
import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-
|
|
3
|
+
import { getNodeKind, runFlow, resolveKindId, kindIds, RunIdentity } from './chunk-JOXMAWAI.js';
|
|
4
4
|
import './chunk-F5RPRB7A.js';
|
|
5
5
|
import './chunk-USL4FMFU.js';
|
|
6
6
|
|
package/dist/engine.cjs
CHANGED
|
@@ -10456,7 +10456,7 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
10456
10456
|
const exec = pickExecutor(executors, node);
|
|
10457
10457
|
if (!exec) {
|
|
10458
10458
|
const tried = executorLookupIds(node);
|
|
10459
|
-
const msg = `No executor registered for kind=${node.type} \u2014 tried ${tried.map((id2) => `"${id2}"`).join(", ")}
|
|
10459
|
+
const msg = `No executor registered for kind=${node.type} \u2014 tried ${tried.map((id2) => `"${id2}"`).join(", ")}. Key your registry by one of those.`;
|
|
10460
10460
|
errors.push(msg);
|
|
10461
10461
|
onEvent({ type: "node-status", nodeId: node.id, status: "error", text: msg });
|
|
10462
10462
|
onEvent({ type: "log", nodeId: node.id, level: "error", message: msg });
|
|
@@ -10552,30 +10552,28 @@ function collectInputs(node, incoming, portValues, initial, props, declaresProps
|
|
|
10552
10552
|
function executorLookupIds(node) {
|
|
10553
10553
|
const ids = [node.id];
|
|
10554
10554
|
if (node.type) ids.push(node.type);
|
|
10555
|
-
const
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
const
|
|
10560
|
-
|
|
10561
|
-
|
|
10555
|
+
const typeKind = node.type ? getNodeKind(node.type) : null;
|
|
10556
|
+
if (typeKind) {
|
|
10557
|
+
for (const id2 of kindIds(typeKind)) ids.push(id2);
|
|
10558
|
+
} else {
|
|
10559
|
+
const declared = node.data?.kind;
|
|
10560
|
+
const kindName2 = typeof declared === "string" && declared !== "" ? declared : null;
|
|
10561
|
+
if (kindName2) {
|
|
10562
|
+
ids.push(kindName2);
|
|
10563
|
+
const dataKind = getNodeKind(kindName2);
|
|
10564
|
+
if (dataKind) {
|
|
10565
|
+
for (const id2 of kindIds(dataKind)) ids.push(id2);
|
|
10566
|
+
}
|
|
10567
|
+
}
|
|
10562
10568
|
}
|
|
10569
|
+
ids.push("*");
|
|
10563
10570
|
return [...new Set(ids)];
|
|
10564
10571
|
}
|
|
10565
10572
|
function pickExecutor(executors, node) {
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
if (kindName2 && kindName2 !== node.type && executors[kindName2]) return executors[kindName2];
|
|
10571
|
-
for (const name of [kindName2, node.type]) {
|
|
10572
|
-
const kind = name ? getNodeKind(name) : null;
|
|
10573
|
-
if (!kind) continue;
|
|
10574
|
-
for (const id2 of kindIds(kind)) {
|
|
10575
|
-
if (executors[id2]) return executors[id2];
|
|
10576
|
-
}
|
|
10577
|
-
}
|
|
10578
|
-
return executors["*"];
|
|
10573
|
+
for (const id2 of executorLookupIds(node)) {
|
|
10574
|
+
if (executors[id2]) return executors[id2];
|
|
10575
|
+
}
|
|
10576
|
+
return void 0;
|
|
10579
10577
|
}
|
|
10580
10578
|
function activatedPorts(node, result) {
|
|
10581
10579
|
if (result && typeof result === "object") {
|