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
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) {
|