@livx.cc/agentx 0.99.128 → 0.99.129
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/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5932,7 +5932,7 @@ var Agent = class _Agent {
|
|
|
5932
5932
|
e.code = "stall";
|
|
5933
5933
|
return e;
|
|
5934
5934
|
};
|
|
5935
|
-
const poke = () => {
|
|
5935
|
+
const poke = (quietMs) => {
|
|
5936
5936
|
if (!stallMs) return;
|
|
5937
5937
|
if (timer) clearTimeout(timer);
|
|
5938
5938
|
timer = setTimeout(() => {
|
|
@@ -5947,7 +5947,7 @@ var Agent = class _Agent {
|
|
|
5947
5947
|
log9.warn(`stall watchdog: no stream output for ${stallMs}ms and no tool holding the stream \u2014 aborting the request` + (inFlight.length ? ` (${inFlight.length} detached job(s) running, not awaited by the stream: ${inFlight.map((j) => `${j.id}/${j.kind}`).join(", ")})` : ""));
|
|
5948
5948
|
fired = true;
|
|
5949
5949
|
ac.abort(stallError());
|
|
5950
|
-
}, stallMs);
|
|
5950
|
+
}, Math.max(stallMs, quietMs ?? 0));
|
|
5951
5951
|
};
|
|
5952
5952
|
this.stallPoke = poke;
|
|
5953
5953
|
poke();
|
|
@@ -5989,7 +5989,7 @@ var Agent = class _Agent {
|
|
|
5989
5989
|
let resolvedModel;
|
|
5990
5990
|
for await (const chunk of stream) {
|
|
5991
5991
|
if (chunk.model) resolvedModel = chunk.model;
|
|
5992
|
-
poke?.();
|
|
5992
|
+
poke?.(chunk.quietMs);
|
|
5993
5993
|
if (this.options.signal?.aborted) break;
|
|
5994
5994
|
if (chunk.reasoningContent) {
|
|
5995
5995
|
reasoning += chunk.reasoningContent;
|