@modelprofile.com/flexharness 18.8.0 → 18.9.1
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.core.d.ts +19 -0
- package/dist_ts/classes.flexharness.core.js +358 -67
- package/dist_ts/classes.flexharness.deletion.d.ts +1 -1
- package/dist_ts/classes.flexharness.deletion.js +147 -141
- package/dist_ts/classes.flexharness.imports.js +3 -3
- package/dist_ts/classes.flexharness.lifecycle.js +4 -1
- package/dist_ts/classes.flexharness.permissions.js +5 -5
- package/dist_ts/classes.flexharness.prompts.js +5 -6
- package/dist_ts/classes.flexharness.results.js +3 -3
- package/dist_ts/classes.flexharness.reversions.js +320 -316
- package/dist_ts/classes.flexharness.sessions.js +19 -3
- package/dist_ts/classes.flexharness.subagents.js +2 -2
- package/dist_ts/classes.recoverygate.d.ts +30 -0
- package/dist_ts/classes.recoverygate.js +105 -0
- package/dist_ts/classes.scoperecovery.d.ts +9 -1
- package/dist_ts/classes.scoperecovery.js +94 -26
- package/dist_ts/interfaces.d.ts +22 -0
- package/dist_ts/interfaces.flexharness.d.ts +5 -0
- 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_stores_nosqldb/classes.nosqldbstores.js +5 -1
- package/package.json +3 -3
- package/readme.md +5 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.flexharness.core.ts +337 -34
- package/ts/classes.flexharness.deletion.ts +24 -15
- package/ts/classes.flexharness.imports.ts +3 -2
- package/ts/classes.flexharness.lifecycle.ts +3 -0
- package/ts/classes.flexharness.permissions.ts +8 -4
- package/ts/classes.flexharness.prompts.ts +10 -8
- package/ts/classes.flexharness.results.ts +3 -2
- package/ts/classes.flexharness.reversions.ts +13 -6
- package/ts/classes.flexharness.sessions.ts +18 -2
- package/ts/classes.flexharness.subagents.ts +5 -4
- package/ts/classes.recoverygate.ts +111 -0
- package/ts/classes.scoperecovery.ts +102 -25
- package/ts/interfaces.flexharness.ts +5 -0
- package/ts/interfaces.ts +23 -0
- package/ts/plugins.ts +1 -0
- package/ts/readme.md +5 -3
- package/ts_stores_nosqldb/classes.nosqldbstores.ts +5 -0
- package/ts_stores_nosqldb/readme.md +1 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@modelprofile.com/flexharness',
|
|
6
|
-
version: '18.
|
|
6
|
+
version: '18.9.1',
|
|
7
7
|
description: 'The FlexHarness toolbox source repository and shared dependency catalog.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSwrQkFBK0I7SUFDckMsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLDBFQUEwRTtDQUN4RixDQUFBIn0=
|
|
@@ -40,6 +40,9 @@ export declare class FlexHarnessCore<TScope> {
|
|
|
40
40
|
readonly attachmentReferenceProtocols: ReadonlySet<string>;
|
|
41
41
|
readonly stores: IFlexHarnessStores;
|
|
42
42
|
readonly sessionLoading: 'eager' | 'session-local';
|
|
43
|
+
readonly cleanRecoveryConfigured: boolean;
|
|
44
|
+
private readonly cleanRecoveryAllStorageKeys;
|
|
45
|
+
private readonly cleanRecoveryStorageKeys;
|
|
43
46
|
private readonly legacyQualifications;
|
|
44
47
|
readonly agentSessionPolicy: IFlexAgentSessionPolicy<TScope>;
|
|
45
48
|
readonly toolOutputLimits: Required<NonNullable<IFlexHarnessOptions<TScope>['toolOutputLimits']>>;
|
|
@@ -123,6 +126,22 @@ export declare class FlexHarnessCore<TScope> {
|
|
|
123
126
|
private recoverSharedState;
|
|
124
127
|
hydrateAllSessions(state: IStorageState, scopeId: string, scope: TScope): Promise<void>;
|
|
125
128
|
private saveScopeSnapshot;
|
|
129
|
+
/** Durable session fence before any recovery-bearing write or external effect. */
|
|
130
|
+
markRecoveryRequired(state: IStorageState, sessionId: string): Promise<void>;
|
|
131
|
+
private recoveryProducerGate;
|
|
132
|
+
private cleanRecoveryEnabled;
|
|
133
|
+
/** Holds producer ownership from before the mark until the dependent operation settles. */
|
|
134
|
+
withRecoveryProducer<TValue>(state: IStorageState, sessionId: string, operation: () => Promise<TValue>): Promise<TValue>;
|
|
135
|
+
/** Holds all affected sessions of one scope CAS until its save and reconciliation settle. */
|
|
136
|
+
withRecoveryProducerSections<TValue>(state: IStorageState, sessionIds: Iterable<string>, operation: () => Promise<TValue>): Promise<TValue>;
|
|
137
|
+
/** Reserves one session's clean-publication boundary without draining other sessions. */
|
|
138
|
+
withRecoveryPublication<TValue>(state: IStorageState, sessionId: string, operation: () => Promise<TValue>): Promise<TValue>;
|
|
139
|
+
/** Reads a cold session through one exclusive, authenticated recovery frontier. */
|
|
140
|
+
readGuardedCleanSessionMetadata(state: IStorageState, sessionId: string): Promise<IFlexSession | undefined>;
|
|
141
|
+
/** Settle a fully repaired session after its producers and pending effects have drained. */
|
|
142
|
+
settleQuiescentSessionRecovery(state: IStorageState, sessionId: string): Promise<void>;
|
|
143
|
+
/** A generation may keep executing tools after its admission method has returned. */
|
|
144
|
+
admitRecoveryRun(state: IStorageState, sessionId: string, completion: Promise<unknown>): void;
|
|
126
145
|
/** Registers before the projection's pending intent can reach any workspace provider. */
|
|
127
146
|
updateRecoveryObligation(state: IStorageState, stored: IStoredSessionState, registerOnly?: boolean): Promise<void>;
|
|
128
147
|
/**
|