@modelprofile.com/flexharness-agent 9.9.1 → 10.0.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.
@@ -1,7 +1,7 @@
1
1
  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
- import { type IAgentGenerateOptions, type IAgentGenerateResult, type IAgentGenerationHandle, type IAgentCompactOptions, type IAgentBeginGenerationOptions, type IAgentSession, type IAgentSessionAbortOptions, type IAgentSessionOptions, type IAgentScheduleGenerateOptions, type TAgentSessionChangeListener, type TAgentPrompt, type TAgentToolExecutionReconciliationOptions } from './smartagent.interfaces.js';
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
5
  import type { TAgentEventArchive } from './smartagent.persistence.js';
6
6
  export declare class AgentSessionEngine implements IAgentSession {
7
7
  private readonly platform;
@@ -14,6 +14,7 @@ export declare class AgentSessionEngine implements IAgentSession {
14
14
  private sequence;
15
15
  private persistenceRevision;
16
16
  private persistenceQueue;
17
+ private pendingPersistence?;
17
18
  private persistenceError;
18
19
  private readonly notificationDispatches;
19
20
  private readonly listeners;
@@ -55,7 +56,7 @@ export declare class AgentSessionEngine implements IAgentSession {
55
56
  beginGeneration(content: TAgentPrompt, options?: IAgentBeginGenerationOptions): Promise<IAgentGenerationHandle>;
56
57
  private appendGenerationOutcome;
57
58
  private transactionOutcomeErrorReason;
58
- finalizeGeneration(transaction: IAgentGenerationHandle, outcome: TAgentGenerationOutcome): Promise<void>;
59
+ finalizeGeneration(transaction: IAgentGenerationHandle, outcome: TAgentGenerationOutcome, options?: IAgentFinalizeGenerationOptions): Promise<void>;
59
60
  listUncertainToolExecutions(): IToolExecutionIntentEvent[];
60
61
  reconcileToolExecution(intentId: string, reconciliation: TAgentToolExecutionReconciliationOptions): Promise<void>;
61
62
  getEvents(): readonly TAgentEvent[];