llmist 2.1.0 → 2.2.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.
@@ -3879,6 +3879,23 @@ var init_agent = __esm({
3879
3879
  maxIterations: this.maxIterations
3880
3880
  });
3881
3881
  while (currentIteration < this.maxIterations) {
3882
+ if (this.signal?.aborted) {
3883
+ this.logger.info("Agent loop terminated by abort signal", {
3884
+ iteration: currentIteration,
3885
+ reason: this.signal.reason
3886
+ });
3887
+ await this.safeObserve(async () => {
3888
+ if (this.hooks.observers?.onAbort) {
3889
+ const context = {
3890
+ iteration: currentIteration,
3891
+ reason: this.signal?.reason,
3892
+ logger: this.logger
3893
+ };
3894
+ await this.hooks.observers.onAbort(context);
3895
+ }
3896
+ });
3897
+ return;
3898
+ }
3882
3899
  this.logger.debug("Starting iteration", { iteration: currentIteration });
3883
3900
  try {
3884
3901
  if (this.compactionManager) {
@@ -8484,4 +8501,4 @@ export {
8484
8501
  MockPromptRecorder,
8485
8502
  waitFor
8486
8503
  };
8487
- //# sourceMappingURL=chunk-PDYVT3FI.js.map
8504
+ //# sourceMappingURL=chunk-GANXNBIZ.js.map