botmux-workflow-core 3.58.0 → 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.
@@ -7659,7 +7659,8 @@ async function runWorkflow(authorizedDag, deps, opts) {
7659
7659
  nodeId: node.id,
7660
7660
  ...instanceId ? { instanceId } : {},
7661
7661
  attemptId,
7662
- manifestPath: result.manifestPath
7662
+ manifestPath: result.manifestPath,
7663
+ ...result.runtime ? { runtime: result.runtime } : {}
7663
7664
  });
7664
7665
  return;
7665
7666
  }
@@ -7668,7 +7669,11 @@ async function runWorkflow(authorizedDag, deps, opts) {
7668
7669
  let errorCode;
7669
7670
  let selfReportedFail = false;
7670
7671
  let retryable;
7671
- if (!verdict.ok) {
7672
+ if (result.status === "fail" && result.error) {
7673
+ errorClass = "workerError";
7674
+ errorCode = result.error.code;
7675
+ message = result.error.message;
7676
+ } else if (!verdict.ok) {
7672
7677
  errorClass = result.status === "ok" ? "manifestInvalid" : "workerError";
7673
7678
  message = (verdict.problems ?? ["manifest missing or invalid"]).join("; ");
7674
7679
  } else {
@@ -7696,7 +7701,8 @@ async function runWorkflow(authorizedDag, deps, opts) {
7696
7701
  errorClass,
7697
7702
  errorCode,
7698
7703
  message,
7699
- ...ask ? { ask } : {}
7704
+ ...ask ? { ask } : {},
7705
+ ...result.runtime ? { runtime: result.runtime } : {}
7700
7706
  });
7701
7707
  } else {
7702
7708
  appendWorkerOutcome({
@@ -7706,7 +7712,8 @@ async function runWorkflow(authorizedDag, deps, opts) {
7706
7712
  attemptId,
7707
7713
  errorClass,
7708
7714
  errorCode,
7709
- message
7715
+ message,
7716
+ ...result.runtime ? { runtime: result.runtime } : {}
7710
7717
  });
7711
7718
  }
7712
7719
  }).catch((err) => {