agent.libx.js 0.93.6 → 0.93.8
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 +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2893,6 +2893,7 @@ var Agent = class _Agent {
|
|
|
2893
2893
|
if (o.timeoutMs && Date.now() - start >= o.timeoutMs) return kill("timeout");
|
|
2894
2894
|
if (o.maxTokens && usage.totalTokens >= o.maxTokens) return kill("budget");
|
|
2895
2895
|
steps++;
|
|
2896
|
+
this.options.host?.notify?.({ kind: "turn_start", message: `step ${steps}` });
|
|
2896
2897
|
let res;
|
|
2897
2898
|
const sent = this.trimContext();
|
|
2898
2899
|
const frag = reasoningToChatFragment(o.model, o.reasoning);
|