fwdloop 0.5.0 → 0.6.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/bin/fwdloop +480 -0
- package/package.json +5 -1
- package/src/ask.js +104 -5
- package/src/declaration.js +12 -1
- package/src/index.js +2 -1
- package/src/model-step.js +2 -2
- package/src/runner.js +865 -110
- package/types/ask.d.ts +18 -1
- package/types/index.d.ts +2 -1
- package/types/runner.d.ts +71 -23
package/src/model-step.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// M2 piece 2 (docs/wiki/the-module-ladder.md, "M2 — scope, exit, negative —
|
|
2
2
|
// SIGNED"): the live `modelStep(executorContext, grantedTools, stepMeta)`
|
|
3
|
-
// piece 1's `runFlow` expects. One attempt = up to
|
|
3
|
+
// piece 1's `runFlow` expects. One attempt = up to 2 rounds (a round is one
|
|
4
4
|
// fresh `bare-agent` `Loop` run; a round retries only on "no usable tool
|
|
5
5
|
// call" or a malformed tool-call, never on a transport fault or a
|
|
6
6
|
// wall-clock deadline). Every round is metered via `appendSpendRow`
|
|
@@ -192,7 +192,7 @@ export function makeLiveModelStep({
|
|
|
192
192
|
let cumulative = { costUsd: 0, rounds: 0 };
|
|
193
193
|
let noToolCallStreak = 0;
|
|
194
194
|
|
|
195
|
-
for (let round = 1; round <=
|
|
195
|
+
for (let round = 1; round <= 2; round += 1) {
|
|
196
196
|
let capturedArtifact;
|
|
197
197
|
const emitTool = {
|
|
198
198
|
name: 'emit_artifact',
|