@modelprofile.com/flexharness 8.3.0 → 8.4.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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@modelprofile.com/flexharness',
6
- version: '8.3.0',
6
+ version: '8.4.0',
7
7
  description: 'The FlexHarness toolbox source repository and shared dependency catalog.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSwrQkFBK0I7SUFDckMsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDBFQUEwRTtDQUN4RixDQUFBIn0=
@@ -240,6 +240,16 @@ export declare class FlexHarness<TScope = unknown> {
240
240
  private onToolFinish;
241
241
  private onToolUpdate;
242
242
  private onRetry;
243
+ /**
244
+ * Emits the usage of every model call and adds reported usage to its run. A run executes a
245
+ * transactional generation, and `AgentSession.generate()` settles a transactional generation only
246
+ * after it has reported each of its model calls, also when it is aborted. `executeRun()` awaits
247
+ * that settlement before it builds the terminal, so the run is still active for each of its
248
+ * events: they all reach `run.usage` and precede its `run.finished`. The events bypass the
249
+ * callback limits and a failed callback: their number is bounded by the run's model calls, and
250
+ * the usage of a run that exhausted its callback budget or failed in a callback must not be lost.
251
+ */
252
+ private onModelCallUsage;
243
253
  private callbackRun;
244
254
  private reserveCallbackCapacity;
245
255
  private failCallback;