fwdloop 0.6.0 → 0.7.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 +143 -64
- package/package.json +3 -3
- package/src/ask.js +260 -6
- package/src/books.js +209 -2
- package/src/flow.js +247 -2
- package/src/index.js +9 -3
- package/src/model-step.js +151 -12
- package/src/panel/data.js +1589 -0
- package/src/panel/index.html +2377 -0
- package/src/panel/server.js +268 -0
- package/src/primitives.js +136 -41
- package/src/provider.js +57 -41
- package/src/runner.js +393 -54
- package/src/send.js +20 -1
- package/src/types.js +18 -0
- package/types/ask.d.ts +77 -0
- package/types/books.d.ts +70 -2
- package/types/flow.d.ts +135 -0
- package/types/index.d.ts +5 -3
- package/types/panel/data.d.ts +433 -0
- package/types/panel/server.d.ts +45 -0
- package/types/primitives.d.ts +29 -0
- package/types/provider.d.ts +11 -0
- package/types/runner.d.ts +66 -5
- package/types/types.d.ts +41 -0
package/types/types.d.ts
CHANGED
|
@@ -272,6 +272,11 @@ export type CloseVerdict = {
|
|
|
272
272
|
};
|
|
273
273
|
/**
|
|
274
274
|
* One row appended to `runs/<run-id>/audit.jsonl` (M2 scope item 9).
|
|
275
|
+
* `at`/`tokens` were added by Amendment M4a-2 and `tools`/`ungranted` by
|
|
276
|
+
* Amendment M4a-3 (docs/wiki/the-module-ladder.md, "M4a" section) — every
|
|
277
|
+
* row `appendAudit` writes from here on carries `at`/`tokens`/`tools`; a row
|
|
278
|
+
* written before its amendment simply lacks the newer keys (read back as-is,
|
|
279
|
+
* never backfilled) — see `auditRowTokens`/`auditRowTools` in `src/books.js`.
|
|
275
280
|
*/
|
|
276
281
|
export type AuditRow = {
|
|
277
282
|
step: string | null;
|
|
@@ -285,6 +290,42 @@ export type AuditRow = {
|
|
|
285
290
|
model: string | null;
|
|
286
291
|
modelMatch: boolean | null;
|
|
287
292
|
strike: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* - ISO time this attempt finished.
|
|
295
|
+
*/
|
|
296
|
+
at: string;
|
|
297
|
+
/**
|
|
298
|
+
* -
|
|
299
|
+
* summed over this attempt's model calls; `null` only when `model` is
|
|
300
|
+
* `null` (no model call this row).
|
|
301
|
+
*/
|
|
302
|
+
tokens: {
|
|
303
|
+
inputTokens: number;
|
|
304
|
+
outputTokens: number;
|
|
305
|
+
cacheReadTokens: number;
|
|
306
|
+
} | null;
|
|
307
|
+
/**
|
|
308
|
+
* - a {toolName: count}
|
|
309
|
+
* tally of every GRANTED tool the model actually invoked this attempt,
|
|
310
|
+
* summed across every round; `{}` when the model called no tool; `null`
|
|
311
|
+
* only when `model` is `null` (no model call this row).
|
|
312
|
+
*/
|
|
313
|
+
tools: Record<string, number> | null;
|
|
314
|
+
/**
|
|
315
|
+
* - tool names the model called that this
|
|
316
|
+
* step never granted; absent when empty, never an invented empty array.
|
|
317
|
+
*/
|
|
318
|
+
ungranted?: string[] | undefined;
|
|
319
|
+
/**
|
|
320
|
+
* - bareguard
|
|
321
|
+
* fs-gate refusals during this attempt; `[]` (never omitted) on every row
|
|
322
|
+
* written by a model attempt, absent on rows with no model call.
|
|
323
|
+
*/
|
|
324
|
+
refused?: {
|
|
325
|
+
verb: string;
|
|
326
|
+
path: string;
|
|
327
|
+
rule: string;
|
|
328
|
+
}[] | undefined;
|
|
288
329
|
};
|
|
289
330
|
/**
|
|
290
331
|
* One row appended to `flows/<name>/history.jsonl` (M2 scope item 9).
|