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.
- package/dist/{chunk-PDYVT3FI.js → chunk-GANXNBIZ.js} +18 -1
- package/dist/chunk-GANXNBIZ.js.map +1 -0
- package/dist/{chunk-LSCCBXS7.js → chunk-ZDNV7DDO.js} +2 -2
- package/dist/cli.cjs +18 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{mock-stream-HF7MBNhi.d.cts → mock-stream-wRfUqXx4.d.cts} +14 -0
- package/dist/{mock-stream-HF7MBNhi.d.ts → mock-stream-wRfUqXx4.d.ts} +14 -0
- package/dist/testing/index.cjs +17 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-PDYVT3FI.js.map +0 -1
- /package/dist/{chunk-LSCCBXS7.js.map → chunk-ZDNV7DDO.js.map} +0 -0
|
@@ -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-
|
|
8504
|
+
//# sourceMappingURL=chunk-GANXNBIZ.js.map
|