@particle-academy/fancy-flow 0.51.0 → 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-6AI6CBNL.js → chunk-I7ZDPY7C.js} +3 -3
- package/dist/{chunk-6AI6CBNL.js.map → chunk-I7ZDPY7C.js.map} +1 -1
- package/dist/{chunk-XCT2CJ5O.js → chunk-JOXMAWAI.js} +27 -14
- package/dist/chunk-JOXMAWAI.js.map +1 -0
- package/dist/{chunk-HXGGCMR7.js → chunk-PEX3ZGCO.js} +3 -3
- package/dist/{chunk-HXGGCMR7.js.map → chunk-PEX3ZGCO.js.map} +1 -1
- package/dist/{chunk-LH76EIFL.js → chunk-PU3CLTAG.js} +3 -3
- package/dist/{chunk-LH76EIFL.js.map → chunk-PU3CLTAG.js.map} +1 -1
- package/dist/{chunk-7XTTXMGB.js → chunk-PWIHOR57.js} +4 -4
- package/dist/{chunk-7XTTXMGB.js.map → chunk-PWIHOR57.js.map} +1 -1
- package/dist/{chunk-SKEZ5AGI.js → chunk-RR7A6IUW.js} +3 -3
- package/dist/{chunk-SKEZ5AGI.js.map → chunk-RR7A6IUW.js.map} +1 -1
- package/dist/durable.cjs +26 -13
- package/dist/durable.cjs.map +1 -1
- package/dist/durable.js +1 -1
- package/dist/engine.cjs +26 -13
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.js +3 -3
- package/dist/index.cjs +26 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/registry.cjs +26 -13
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/runtime.cjs +26 -13
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -3
- package/dist/schema.cjs +26 -13
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/screens.cjs +26 -13
- package/dist/screens.cjs.map +1 -1
- package/dist/screens.js +4 -4
- package/dist/ux.cjs +26 -13
- package/dist/ux.cjs.map +1 -1
- package/dist/ux.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-XCT2CJ5O.js.map +0 -1
package/dist/registry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ANY_PORT_TYPE, RegistryNode, buildNodeTypes, createConnectionValidator, defaultPortCompatibility } from './chunk-
|
|
1
|
+
export { ANY_PORT_TYPE, RegistryNode, buildNodeTypes, createConnectionValidator, defaultPortCompatibility } from './chunk-I7ZDPY7C.js';
|
|
2
2
|
export { LEGACY_PAUSE_PREFIXES, PAUSE_PREFIX, decodePause, encodePause, isPause, pauseForHuman } from './chunk-UEOE6B52.js';
|
|
3
|
-
export { BUILTIN_KINDS, DEFAULT_MAX_DEPTH, categoryAccent, clearNodeKindOverrides, declaredRoutes, defaultConfigFor, ensureBuiltinKinds, getNodeKind, kindIds, listNodeKinds, llmRouterExecutor as llmBranchExecutor, llmRouterExecutor, nodeConfig, onNodeKindsChanged, overrideNodeKind, registerBuiltinKinds, registerNodeKind, resolveFallbackPort, resolveKindId, resolveNodePorts, resolvePortSpec, subflowExecutor, subflowMode, subflowPorts, validateConfig } from './chunk-
|
|
3
|
+
export { BUILTIN_KINDS, DEFAULT_MAX_DEPTH, categoryAccent, clearNodeKindOverrides, declaredRoutes, defaultConfigFor, ensureBuiltinKinds, getNodeKind, kindIds, listNodeKinds, llmRouterExecutor as llmBranchExecutor, llmRouterExecutor, nodeConfig, onNodeKindsChanged, overrideNodeKind, registerBuiltinKinds, registerNodeKind, resolveFallbackPort, resolveKindId, resolveNodePorts, resolvePortSpec, subflowExecutor, subflowMode, subflowPorts, validateConfig } from './chunk-JOXMAWAI.js';
|
|
4
4
|
export { RichInputPreview, getRichInputAdapter, isRichInputEnabled, onRichInputAdapterChanged, registerRichInputAdapter } from './chunk-F5RPRB7A.js';
|
|
5
5
|
export { capabilityStatus, getLlmClient, getWorkflowResolver, isResolutionFailure, registerLlmClient, registerWorkflowResolver } from './chunk-USL4FMFU.js';
|
|
6
6
|
//# sourceMappingURL=registry.js.map
|
package/dist/runtime.cjs
CHANGED
|
@@ -10345,7 +10345,8 @@ async function runFlow(graph, executors, onEvent = () => {
|
|
|
10345
10345
|
const inputs = collectInputs(node, incoming, portValues, initialInputs, props, declaresProps);
|
|
10346
10346
|
const exec = pickExecutor(executors, node);
|
|
10347
10347
|
if (!exec) {
|
|
10348
|
-
const
|
|
10348
|
+
const tried = executorLookupIds(node);
|
|
10349
|
+
const msg = `No executor registered for kind=${node.type} \u2014 tried ${tried.map((id2) => `"${id2}"`).join(", ")}. Key your registry by one of those.`;
|
|
10349
10350
|
errors.push(msg);
|
|
10350
10351
|
onEvent({ type: "node-status", nodeId: node.id, status: "error", text: msg });
|
|
10351
10352
|
onEvent({ type: "log", nodeId: node.id, level: "error", message: msg });
|
|
@@ -10438,19 +10439,31 @@ function collectInputs(node, incoming, portValues, initial, props, declaresProps
|
|
|
10438
10439
|
if (declaresProps) inputs.$props = props;
|
|
10439
10440
|
return inputs;
|
|
10440
10441
|
}
|
|
10442
|
+
function executorLookupIds(node) {
|
|
10443
|
+
const ids = [node.id];
|
|
10444
|
+
if (node.type) ids.push(node.type);
|
|
10445
|
+
const typeKind = node.type ? getNodeKind(node.type) : null;
|
|
10446
|
+
if (typeKind) {
|
|
10447
|
+
for (const id2 of kindIds(typeKind)) ids.push(id2);
|
|
10448
|
+
} else {
|
|
10449
|
+
const declared = node.data?.kind;
|
|
10450
|
+
const kindName = typeof declared === "string" && declared !== "" ? declared : null;
|
|
10451
|
+
if (kindName) {
|
|
10452
|
+
ids.push(kindName);
|
|
10453
|
+
const dataKind = getNodeKind(kindName);
|
|
10454
|
+
if (dataKind) {
|
|
10455
|
+
for (const id2 of kindIds(dataKind)) ids.push(id2);
|
|
10456
|
+
}
|
|
10457
|
+
}
|
|
10458
|
+
}
|
|
10459
|
+
ids.push("*");
|
|
10460
|
+
return [...new Set(ids)];
|
|
10461
|
+
}
|
|
10441
10462
|
function pickExecutor(executors, node) {
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
if (kindName && kindName !== node.type && executors[kindName]) return executors[kindName];
|
|
10447
|
-
const kind = kindName ? getNodeKind(kindName) : null;
|
|
10448
|
-
if (kind) {
|
|
10449
|
-
for (const id2 of kindIds(kind)) {
|
|
10450
|
-
if (executors[id2]) return executors[id2];
|
|
10451
|
-
}
|
|
10452
|
-
}
|
|
10453
|
-
return executors["*"];
|
|
10463
|
+
for (const id2 of executorLookupIds(node)) {
|
|
10464
|
+
if (executors[id2]) return executors[id2];
|
|
10465
|
+
}
|
|
10466
|
+
return void 0;
|
|
10454
10467
|
}
|
|
10455
10468
|
function activatedPorts(node, result) {
|
|
10456
10469
|
if (result && typeof result === "object") {
|