llmist 2.1.0 → 2.3.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/index.cjs CHANGED
@@ -3892,6 +3892,23 @@ var init_agent = __esm({
3892
3892
  maxIterations: this.maxIterations
3893
3893
  });
3894
3894
  while (currentIteration < this.maxIterations) {
3895
+ if (this.signal?.aborted) {
3896
+ this.logger.info("Agent loop terminated by abort signal", {
3897
+ iteration: currentIteration,
3898
+ reason: this.signal.reason
3899
+ });
3900
+ await this.safeObserve(async () => {
3901
+ if (this.hooks.observers?.onAbort) {
3902
+ const context = {
3903
+ iteration: currentIteration,
3904
+ reason: this.signal?.reason,
3905
+ logger: this.logger
3906
+ };
3907
+ await this.hooks.observers.onAbort(context);
3908
+ }
3909
+ });
3910
+ return;
3911
+ }
3895
3912
  this.logger.debug("Starting iteration", { iteration: currentIteration });
3896
3913
  try {
3897
3914
  if (this.compactionManager) {