@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.js CHANGED
@@ -29926,6 +29926,13 @@ var Agent = class {
29926
29926
  timestamp: /* @__PURE__ */ new Date(),
29927
29927
  queueMode: this.queueMode.mode
29928
29928
  });
29929
+ const abortDelegatedChildren = () => {
29930
+ delegationCancellationRegistry.abort(this.tenant_id, this.thread_id);
29931
+ };
29932
+ if (signal) {
29933
+ if (signal.aborted) abortDelegatedChildren();
29934
+ else signal.addEventListener("abort", abortDelegatedChildren, { once: true });
29935
+ }
29929
29936
  try {
29930
29937
  if (hasContinuation) {
29931
29938
  const resumeConfig = effectiveCapabilityRevision === void 0 ? { ...config ?? {} } : { ...config ?? {}, capabilityRuntimeRevision: effectiveCapabilityRevision };
@@ -29956,6 +29963,8 @@ var Agent = class {
29956
29963
  });
29957
29964
  }
29958
29965
  throw error;
29966
+ } finally {
29967
+ signal?.removeEventListener("abort", abortDelegatedChildren);
29959
29968
  }
29960
29969
  const state = await this.getCurrentState();
29961
29970
  const runStatus = statusFromSnapshot(state);