From b8d0f8ccfb1e3cd6379b9f00292ba42c45d204f2 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:43:44 +0100 Subject: [PATCH] return Flow ID/Name --- bin/deploy-runner.js | 6 ++++-- src/deploy-runner/index.ts | 9 +++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/bin/deploy-runner.js b/bin/deploy-runner.js index 32218b2..945ade4 100644 --- a/bin/deploy-runner.js +++ b/bin/deploy-runner.js @@ -117132,8 +117132,10 @@ async function main() { }); return; } - await mod.buildFlow(scripting); - emit("result", { success: true }); + const flowResult = await mod.buildFlow(scripting); + const flowId = typeof flowResult?.id === "string" ? flowResult.id : void 0; + const flowName = typeof flowResult?.name === "string" ? flowResult.name : void 0; + emit("result", { success: true, flowId, flowName }); } catch (err) { const message = err instanceof Error ? err.message : String(err); emit("result", { success: false, error: message }); diff --git a/src/deploy-runner/index.ts b/src/deploy-runner/index.ts index 7a48f1b..603d198 100644 --- a/src/deploy-runner/index.ts +++ b/src/deploy-runner/index.ts @@ -327,9 +327,14 @@ async function main(): Promise { return; } - await mod.buildFlow(scripting); + const flowResult = await mod.buildFlow(scripting); - emit("result", { success: true }); + const flowId = + typeof flowResult?.id === "string" ? flowResult.id : undefined; + const flowName = + typeof flowResult?.name === "string" ? flowResult.name : undefined; + + emit("result", { success: true, flowId, flowName }); } catch (err) { const message = err instanceof Error ? err.message : String(err); emit("result", { success: false, error: message });