@axiom-lattice/core 10.0.4 → 10.0.5

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/index.mjs CHANGED
@@ -27874,6 +27874,13 @@ var Agent = class {
27874
27874
  timestamp: /* @__PURE__ */ new Date(),
27875
27875
  queueMode: this.queueMode.mode
27876
27876
  });
27877
+ const abortDelegatedChildren = () => {
27878
+ delegationCancellationRegistry.abort(this.tenant_id, this.thread_id);
27879
+ };
27880
+ if (signal) {
27881
+ if (signal.aborted) abortDelegatedChildren();
27882
+ else signal.addEventListener("abort", abortDelegatedChildren, { once: true });
27883
+ }
27877
27884
  try {
27878
27885
  if (hasContinuation) {
27879
27886
  const resumeConfig = effectiveCapabilityRevision === void 0 ? { ...config ?? {} } : { ...config ?? {}, capabilityRuntimeRevision: effectiveCapabilityRevision };
@@ -27904,6 +27911,8 @@ var Agent = class {
27904
27911
  });
27905
27912
  }
27906
27913
  throw error;
27914
+ } finally {
27915
+ signal?.removeEventListener("abort", abortDelegatedChildren);
27907
27916
  }
27908
27917
  const state = await this.getCurrentState();
27909
27918
  const runStatus = statusFromSnapshot(state);