agent-afk 5.230.7 → 5.230.9

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.
@@ -76,7 +76,7 @@ export declare class AgentSession implements IAgentSession {
76
76
  compact(): Promise<ProviderCompactResult>;
77
77
  listRewindTargets(): RewindTarget[];
78
78
  rewindConversation(turnIndex: number): Promise<ProviderRewindConversationResult>;
79
- private makePassthroughDeps;
79
+ private makeCompactDeps;
80
80
  getLastResponseMetadata(): ResponseMetadata | null;
81
81
  getOutputStream(): AsyncIterable<OutputEvent>;
82
82
  queueFrameworkContext(text: string): void;
@@ -13,4 +13,13 @@ export interface ProviderLifecycleResult {
13
13
  providerIterator: AsyncIterator<ProviderEvent>;
14
14
  }
15
15
  export declare function buildProviderLifecycle(config: AgentConfig): ProviderLifecycleResult;
16
- export declare function runInitialization(config: AgentConfig, getProviderIterator: () => AsyncIterator<ProviderEvent>, abortSignal: AbortSignal, stateManager: SessionStateManager, accounting: AccountingAccumulator, shutdown: SessionShutdown, hookRegistry: HookRegistry | undefined, queueFrameworkContext: (text: string) => void, buildTransformDeps: () => TransformDeps): Promise<void>;
16
+ export declare class ProviderInitializer {
17
+ private readonly config;
18
+ private readonly abortSignal;
19
+ private readonly accounting;
20
+ private readonly shutdown;
21
+ private readonly hookRegistry;
22
+ private readonly queueFrameworkContext;
23
+ constructor(config: AgentConfig, abortSignal: AbortSignal, accounting: AccountingAccumulator, shutdown: SessionShutdown, hookRegistry: HookRegistry | undefined, queueFrameworkContext: (text: string) => void);
24
+ run(getProviderIterator: () => AsyncIterator<ProviderEvent>, buildTransformDeps: () => TransformDeps, stateManager: SessionStateManager): Promise<void>;
25
+ }
@@ -0,0 +1,10 @@
1
+ import type { ProviderCompactResult, ProviderQuery, ProviderRewindConversationResult, RewindTarget } from '../provider.js';
2
+ import type { SessionState } from '../types.js';
3
+ export interface CompactDeps {
4
+ getState: () => SessionState;
5
+ setState: (s: SessionState) => void;
6
+ getProviderQuery: () => ProviderQuery;
7
+ }
8
+ export declare function compactSession(deps: CompactDeps): Promise<ProviderCompactResult>;
9
+ export declare function listRewindTargets(deps: CompactDeps): RewindTarget[];
10
+ export declare function rewindConversation(turnIndex: number, deps: CompactDeps): Promise<ProviderRewindConversationResult>;
@@ -0,0 +1,9 @@
1
+ import type { Command } from 'commander';
2
+ export interface SharedChatOptionOverrides {
3
+ maxTurnsDefault?: string;
4
+ themeDescriptionSuffix?: string;
5
+ worktreeDescription?: string;
6
+ worktreeBaseDescriptionSuffix?: string;
7
+ dangerouslySkipPermissionsDescription?: string;
8
+ }
9
+ export declare function applySharedChatOptions(cmd: Command, overrides?: SharedChatOptionOverrides): Command;