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 });