agent-afk 5.222.14 → 5.222.16

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.
@@ -6,4 +6,4 @@ export declare class HookHandlerTimeoutError extends Error {
6
6
  readonly code: "HOOK_HANDLER_TIMEOUT";
7
7
  constructor(hookEvent: string, timeoutMs: number);
8
8
  }
9
- export declare function createHookRegistryImpl(): HookRegistry;
9
+ export declare function createHookRegistry(): HookRegistry;
@@ -1,3 +1,4 @@
1
+ export { createHookRegistry } from './hook-registry.js';
1
2
  import type { SubagentTrace } from './subagent/result.js';
2
3
  import type { GrantManager } from '../cli/slash/commands/allow-dir.js';
3
4
  export type HarnessHookEvent = 'SessionStart' | 'SessionEnd' | 'SubagentStart' | 'SubagentStop' | 'PreToolUse' | 'PostToolUse' | 'PreCompact' | 'PostToolUseFailure' | 'Stop' | 'UserPromptSubmit';
@@ -96,5 +97,4 @@ export interface HookRegistry {
96
97
  dispatch(context: HookContext, signal?: AbortSignal, handlerTimeoutMs?: number): Promise<HookDecision>;
97
98
  count(event: HarnessHookEvent): number;
98
99
  }
99
- export declare function createHookRegistry(): HookRegistry;
100
100
  export declare function resolveSessionHookRegistry(queryScoped: HookRegistry | undefined, constructorScoped: HookRegistry | undefined): HookRegistry | undefined;