@modelprofile.com/flexharness 2.0.0 → 2.1.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: '2.0.0',
6
+ version: '2.1.0',
7
7
  description: 'Provider-neutral model-session runtime with durable history, permissions, typed events, and pluggable local or remote tool execution.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSwrQkFBK0I7SUFDckMsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVJQUF1STtDQUNySixDQUFBIn0=
@@ -9,9 +9,11 @@ export declare class FlexHarness<TScope = unknown> {
9
9
  private readonly callbackLimits;
10
10
  private readonly externalErrorProjector?;
11
11
  private readonly stateLoads;
12
+ private readonly scopeAdmissions;
13
+ private readonly scopeRetirements;
14
+ private readonly storageDrains;
12
15
  private readonly listeners;
13
16
  private readonly detachedToolCleanups;
14
- private readonly detachedToolCleanupErrors;
15
17
  private readonly trustedInternalErrors;
16
18
  private sequence;
17
19
  private closed;
@@ -31,6 +33,7 @@ export declare class FlexHarness<TScope = unknown> {
31
33
  listPendingPermissions(scopeId: string, sessionId?: string): Promise<IFlexPermissionRequest[]>;
32
34
  respondToPermission(scopeId: string, sessionId: string, permissionId: string, decision: TFlexPermissionDecision): Promise<void>;
33
35
  subscribe(listener: TFlexHarnessEventListener): () => void;
36
+ retireScope(scopeId: string): Promise<void>;
34
37
  dispose(): Promise<void>;
35
38
  private disposeInternal;
36
39
  private executeRun;
@@ -59,6 +62,16 @@ export declare class FlexHarness<TScope = unknown> {
59
62
  private trackDetachedToolCleanup;
60
63
  private observeDetachedToolProvider;
61
64
  private emitEvent;
65
+ private getScopeAdmission;
66
+ private pruneScopeAdmission;
67
+ private retireScopeInternal;
68
+ private drainStorage;
69
+ private drainStorageInternal;
70
+ private drainDetachedToolCleanups;
71
+ private appendUnexpectedErrors;
72
+ private waitForReadableState;
73
+ private assertStateAcceptingWork;
74
+ private createScopeRetirementError;
62
75
  private resolveState;
63
76
  private loadState;
64
77
  private mutateAndSave;