@withone/cli 1.13.3 → 1.13.4
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.
|
@@ -655,7 +655,7 @@ async function executeSubflowStep(step, context, api, permissions, allowedAction
|
|
|
655
655
|
if (flowStack.includes(resolvedKey)) {
|
|
656
656
|
throw new Error(`Circular flow detected: ${[...flowStack, resolvedKey].join(" \u2192 ")}`);
|
|
657
657
|
}
|
|
658
|
-
const { loadFlow: loadFlow2 } = await import("./flow-runner-
|
|
658
|
+
const { loadFlow: loadFlow2 } = await import("./flow-runner-EPSYHAD6.js");
|
|
659
659
|
const subFlow = loadFlow2(resolvedKey);
|
|
660
660
|
const subContext = await executeFlow(
|
|
661
661
|
subFlow,
|
|
@@ -991,12 +991,18 @@ var FlowRunner = class _FlowRunner {
|
|
|
991
991
|
ensureDir(LOGS_DIR);
|
|
992
992
|
this.statePath = path2.join(RUNS_DIR, `${flow.key}-${this.runId}.state.json`);
|
|
993
993
|
this.logPath = path2.join(LOGS_DIR, `${flow.key}-${this.runId}.log`);
|
|
994
|
+
const resolvedInputs = { ...inputs };
|
|
995
|
+
for (const [name, decl] of Object.entries(flow.inputs)) {
|
|
996
|
+
if (resolvedInputs[name] === void 0 && decl.default !== void 0) {
|
|
997
|
+
resolvedInputs[name] = decl.default;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
994
1000
|
this.state = {
|
|
995
1001
|
runId: this.runId,
|
|
996
1002
|
flowKey: flow.key,
|
|
997
1003
|
status: "running",
|
|
998
1004
|
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
999
|
-
inputs,
|
|
1005
|
+
inputs: resolvedInputs,
|
|
1000
1006
|
completedSteps: [],
|
|
1001
1007
|
context: {
|
|
1002
1008
|
input: inputs,
|
package/dist/index.js
CHANGED