botmux-workflow-core 3.57.2 → 3.59.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/cjs/runtime.cjs
CHANGED
|
@@ -7616,7 +7616,8 @@ async function runWorkflow(authorizedDag, deps, opts) {
|
|
|
7616
7616
|
nodeId: node.id,
|
|
7617
7617
|
...instanceId ? { instanceId } : {},
|
|
7618
7618
|
attemptId,
|
|
7619
|
-
manifestPath: result.manifestPath
|
|
7619
|
+
manifestPath: result.manifestPath,
|
|
7620
|
+
...result.runtime ? { runtime: result.runtime } : {}
|
|
7620
7621
|
});
|
|
7621
7622
|
return;
|
|
7622
7623
|
}
|
|
@@ -7625,7 +7626,11 @@ async function runWorkflow(authorizedDag, deps, opts) {
|
|
|
7625
7626
|
let errorCode;
|
|
7626
7627
|
let selfReportedFail = false;
|
|
7627
7628
|
let retryable;
|
|
7628
|
-
if (
|
|
7629
|
+
if (result.status === "fail" && result.error) {
|
|
7630
|
+
errorClass = "workerError";
|
|
7631
|
+
errorCode = result.error.code;
|
|
7632
|
+
message = result.error.message;
|
|
7633
|
+
} else if (!verdict.ok) {
|
|
7629
7634
|
errorClass = result.status === "ok" ? "manifestInvalid" : "workerError";
|
|
7630
7635
|
message = (verdict.problems ?? ["manifest missing or invalid"]).join("; ");
|
|
7631
7636
|
} else {
|
|
@@ -7653,7 +7658,8 @@ async function runWorkflow(authorizedDag, deps, opts) {
|
|
|
7653
7658
|
errorClass,
|
|
7654
7659
|
errorCode,
|
|
7655
7660
|
message,
|
|
7656
|
-
...ask ? { ask } : {}
|
|
7661
|
+
...ask ? { ask } : {},
|
|
7662
|
+
...result.runtime ? { runtime: result.runtime } : {}
|
|
7657
7663
|
});
|
|
7658
7664
|
} else {
|
|
7659
7665
|
appendWorkerOutcome({
|
|
@@ -7663,7 +7669,8 @@ async function runWorkflow(authorizedDag, deps, opts) {
|
|
|
7663
7669
|
attemptId,
|
|
7664
7670
|
errorClass,
|
|
7665
7671
|
errorCode,
|
|
7666
|
-
message
|
|
7672
|
+
message,
|
|
7673
|
+
...result.runtime ? { runtime: result.runtime } : {}
|
|
7667
7674
|
});
|
|
7668
7675
|
}
|
|
7669
7676
|
}).catch((err) => {
|