@modelprofile.com/flexharness-agent 11.3.1 → 12.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.
- package/dist_ts_agent/classes.sessionengine.d.ts +9 -3
- package/dist_ts_agent/classes.sessionengine.js +58 -83
- package/dist_ts_agent/index.d.ts +2 -2
- package/dist_ts_agent/index.js +2 -2
- package/dist_ts_agent/persistence.file.d.ts +10 -8
- package/dist_ts_agent/persistence.file.js +18 -41
- package/dist_ts_agent/smartagent.interfaces.d.ts +5 -5
- package/dist_ts_agent/smartagent.persistence.d.ts +43 -40
- package/dist_ts_agent/smartagent.persistence.js +224 -145
- package/package.json +2 -2
- package/readme.md +7 -5
- package/ts_agent/classes.sessionengine.ts +61 -96
- package/ts_agent/index.ts +5 -9
- package/ts_agent/persistence.file.ts +25 -55
- package/ts_agent/readme.md +7 -5
- package/ts_agent/smartagent.interfaces.ts +5 -5
- package/ts_agent/smartagent.persistence.ts +269 -203
|
@@ -2,7 +2,7 @@ import * as plugins from './plugins.js';
|
|
|
2
2
|
import type { IAgentRuntimePlatform, TAgentSessionOwnership } from './runtime.interfaces.js';
|
|
3
3
|
import { type IToolExecutionIntentEvent, type TAgentEvent, type TAgentGenerationOutcome } from './smartagent.events.js';
|
|
4
4
|
import { type IAgentGenerateOptions, type IAgentGenerateResult, type IAgentGenerationHandle, type IAgentCompactOptions, type IAgentBeginGenerationOptions, type IAgentFinalizeGenerationOptions, type IAgentSession, type IAgentSessionAbortOptions, type IAgentSessionOptions, type IAgentScheduleGenerateOptions, type TAgentSessionChangeListener, type TAgentPrompt, type TAgentToolExecutionReconciliationOptions } from './smartagent.interfaces.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { IAgentEventArchive } from './smartagent.persistence.js';
|
|
6
6
|
export declare class AgentSessionEngine implements IAgentSession {
|
|
7
7
|
private readonly platform;
|
|
8
8
|
private readonly ownership;
|
|
@@ -14,6 +14,9 @@ export declare class AgentSessionEngine implements IAgentSession {
|
|
|
14
14
|
private sequence;
|
|
15
15
|
private persistenceRevision;
|
|
16
16
|
private persistenceQueue;
|
|
17
|
+
/** What the log gained since the last save began, in clones the engine never mutates. */
|
|
18
|
+
private unsavedChange;
|
|
19
|
+
/** The queued save that has not begun; it takes `unsavedChange` when it begins. */
|
|
17
20
|
private pendingPersistence?;
|
|
18
21
|
private persistenceError;
|
|
19
22
|
private readonly notificationDispatches;
|
|
@@ -36,6 +39,10 @@ export declare class AgentSessionEngine implements IAgentSession {
|
|
|
36
39
|
private attachJobSubscription;
|
|
37
40
|
private restoreEvent;
|
|
38
41
|
private queuePersistence;
|
|
42
|
+
/** Records a stored event's replacement for the next save. */
|
|
43
|
+
private recordReplacement;
|
|
44
|
+
/** Records the removal of stored events for the next save. */
|
|
45
|
+
private recordRemoval;
|
|
39
46
|
private flushPersistence;
|
|
40
47
|
private reportListenerError;
|
|
41
48
|
private reportModelCallUsage;
|
|
@@ -53,7 +60,6 @@ export declare class AgentSessionEngine implements IAgentSession {
|
|
|
53
60
|
private archivedTransaction;
|
|
54
61
|
private verifyGenerationClaim;
|
|
55
62
|
private interruptRestoredTransactions;
|
|
56
|
-
private transactionalStoreCapabilityError;
|
|
57
63
|
beginGeneration(content: TAgentPrompt, options?: IAgentBeginGenerationOptions): Promise<IAgentGenerationHandle>;
|
|
58
64
|
private appendGenerationOutcome;
|
|
59
65
|
private transactionOutcomeErrorReason;
|
|
@@ -71,7 +77,7 @@ export declare class AgentSessionEngine implements IAgentSession {
|
|
|
71
77
|
private performCompaction;
|
|
72
78
|
private queueExclusive;
|
|
73
79
|
compact(options?: IAgentCompactOptions): Promise<void>;
|
|
74
|
-
archiveCompactedEvents(compactionEventId?: string): Promise<
|
|
80
|
+
archiveCompactedEvents(compactionEventId?: string): Promise<IAgentEventArchive | undefined>;
|
|
75
81
|
private archiveCompactedEventsLocked;
|
|
76
82
|
private runEventRetentionLocked;
|
|
77
83
|
private scheduleEventRetention;
|