/** * Context Hook Handler (SessionStart) * * Injects memory context at the start of a Claude Code session. * Provides previous session history and relevant observations. * * @module @agentkits/memory/hooks/context */ import { NormalizedHookInput, HookResult, EventHandler } from './types.js'; import { MemoryHookService } from './service.js'; /** * Context Hook - SessionStart Event * * Called when a new Claude Code session starts. * Retrieves and injects previous context to help Claude * understand the project history. */ export declare class ContextHook implements EventHandler { private service; private ownsService; constructor(service: MemoryHookService, ownsService?: boolean); /** * Shutdown the hook (closes database if owned) */ shutdown(): Promise; /** * Execute the context hook */ execute(input: NormalizedHookInput): Promise; /** * Build guidance for empty state (no previous sessions/memories). * Teaches Claude about available memory tools and proper usage order. */ private buildEmptyStateGuidance; } /** * Create context hook handler */ export declare function createContextHook(cwd: string): ContextHook; export default ContextHook; //# sourceMappingURL=context.d.ts.map