agent-afk 5.8.1 → 5.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.
@@ -3,6 +3,7 @@ import type { ContentBlockParam, MessageParam } from '@anthropic-ai/sdk/resource
3
3
  import type { ProviderAccountInfo, ProviderAgentInfo, ProviderCommandInfo, ProviderCompactResult, ProviderContextUsage, ProviderEvent, ProviderMcpServerStatus, ProviderModelInfo, ProviderQuery, ProviderRewindResult, ProviderUserTurn } from '../../provider.js';
4
4
  import type { ToolDispatcher } from './tool-dispatcher.js';
5
5
  import type { AnthropicToolDef, AuthMode } from './types.js';
6
+ import type { HookRegistry } from '../../hooks.js';
6
7
  export interface AnthropicDirectQueryOptions {
7
8
  client: Anthropic;
8
9
  authMode: AuthMode;
@@ -30,6 +31,7 @@ export interface AnthropicDirectQueryOptions {
30
31
  onPermissionMode?: (mode: string) => void;
31
32
  mcpManager?: import('../../mcp/index.js').McpManager;
32
33
  autoCompactThreshold?: number;
34
+ hookRegistry?: HookRegistry;
33
35
  }
34
36
  export declare class AnthropicDirectQuery implements ProviderQuery {
35
37
  private readonly initSessionId;
@@ -47,6 +49,7 @@ export declare class AnthropicDirectQuery implements ProviderQuery {
47
49
  private readonly cwdDependentsFactory?;
48
50
  private readonly onPermissionMode?;
49
51
  private readonly mcpManager?;
52
+ private readonly hookRegistry?;
50
53
  constructor(opts: AnthropicDirectQueryOptions);
51
54
  [Symbol.asyncIterator](): AsyncIterator<ProviderEvent>;
52
55
  private composeSystem;