@modelprofile.com/flexharness 8.3.0 → 8.5.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/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.flexharness.d.ts +10 -0
- package/dist_ts/classes.flexharness.js +58 -4
- package/dist_ts/interfaces.d.ts +24 -1
- package/dist_ts/interfaces.js +1 -1
- package/dist_ts/plugins.d.ts +1 -1
- package/dist_ts/plugins.js +1 -1
- package/dist_ts_compaction/plugins.d.ts +5 -2
- package/dist_ts_compaction/plugins.js +5 -3
- package/dist_ts_compaction/smartagent.compaction.d.ts +8 -1
- package/dist_ts_compaction/smartagent.compaction.js +52 -10
- package/dist_ts_document/index.d.ts +9 -0
- package/dist_ts_document/index.js +58 -20
- package/dist_ts_document/plugins.d.ts +4 -2
- package/dist_ts_document/plugins.js +4 -3
- package/package.json +3 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.flexharness.ts +65 -3
- package/ts/interfaces.ts +25 -0
- package/ts/plugins.ts +2 -0
- package/ts_compaction/plugins.ts +8 -2
- package/ts_compaction/smartagent.compaction.ts +56 -9
- package/ts_document/index.ts +64 -20
- package/ts_document/plugins.ts +4 -2
- package/ts_document/readme.md +24 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@modelprofile.com/flexharness',
|
|
6
|
-
version: '8.
|
|
6
|
+
version: '8.5.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;
|