/** * Context Tool * * Manages context injection and session handling. * This is the key tool for solving the compaction problem. */ import { z } from 'zod'; import { getMemoryStats } from '../memory/store.js'; import { Memory, ContextSummary, ConsolidationResult } from '../memory/types.js'; export declare const getContextSchema: z.ZodObject<{ project: z.ZodOptional; query: z.ZodOptional; format: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { format: "summary" | "detailed" | "raw"; project?: string | undefined; query?: string | undefined; }, { project?: string | undefined; query?: string | undefined; format?: "summary" | "detailed" | "raw" | undefined; }>; export type GetContextInput = z.infer; /** * Execute the get_context tool */ export declare function executeGetContext(input: GetContextInput): Promise<{ success: boolean; context?: string; summary?: ContextSummary; relevantMemories?: Memory[]; error?: string; }>; export declare const startSessionSchema: z.ZodObject<{ project: z.ZodOptional; }, "strip", z.ZodTypeAny, { project?: string | undefined; }, { project?: string | undefined; }>; export declare function executeStartSession(input: { project?: string; }): Promise<{ success: boolean; sessionId?: number; context?: string; error?: string; }>; export declare const endSessionSchema: z.ZodObject<{ sessionId: z.ZodNumber; summary: z.ZodOptional; }, "strip", z.ZodTypeAny, { sessionId: number; summary?: string | undefined; }, { sessionId: number; summary?: string | undefined; }>; export declare function executeEndSession(input: { sessionId: number; summary?: string; }): { success: boolean; consolidationResult?: ConsolidationResult; error?: string; }; export declare const consolidateSchema: z.ZodObject<{ force: z.ZodDefault>; dryRun: z.ZodDefault>; }, "strip", z.ZodTypeAny, { dryRun: boolean; force: boolean; }, { dryRun?: boolean | undefined; force?: boolean | undefined; }>; export declare function executeConsolidate(input: { force?: boolean; dryRun?: boolean; }): { success: boolean; result?: ConsolidationResult; preview?: { toPromote: number; toDelete: number; promoteList: string[]; deleteList: string[]; }; error?: string; }; export declare const statsSchema: z.ZodObject<{ project: z.ZodOptional; }, "strip", z.ZodTypeAny, { project?: string | undefined; }, { project?: string | undefined; }>; export declare function executeStats(input: { project?: string; }): { success: boolean; stats?: ReturnType; error?: string; }; export declare function formatStats(stats: ReturnType): string; export declare const exportSchema: z.ZodObject<{ project: z.ZodOptional; }, "strip", z.ZodTypeAny, { project?: string | undefined; }, { project?: string | undefined; }>; export declare function executeExport(input: { project?: string; }): { success: boolean; data?: string; count?: number; error?: string; }; export declare const importSchema: z.ZodObject<{ data: z.ZodString; }, "strip", z.ZodTypeAny, { data: string; }, { data: string; }>; export declare function executeImport(input: { data: string; }): { success: boolean; imported?: number; error?: string; }; //# sourceMappingURL=context.d.ts.map