UNPKG

codevault

Version:

AI-powered semantic code search via Model Context Protocol

57 lines 1.6 kB
import { z } from 'zod'; export declare const useContextPackInputSchema: z.ZodObject<{ name: z.ZodString; path: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export declare const useContextPackResultSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; pack: z.ZodOptional<z.ZodObject<{ key: z.ZodString; name: z.ZodString; description: z.ZodNullable<z.ZodString>; scope: z.ZodRecord<z.ZodString, z.ZodAny>; }, z.core.$strip>>; }, z.core.$strip>; interface CreateHandlerOptions { getWorkingPath: () => string; setSessionPack: (pack: any) => void; clearSessionPack: () => void; errorLogger?: any; } export declare function createUseContextPackHandler(options: CreateHandlerOptions): ({ name, path: explicitPath }: { name: string; path?: string; }) => Promise<{ success: boolean; message: string; pack?: undefined; } | { success: boolean; message: string; pack: { key: string; name: string; description: string | null; scope: Record<string, any>; }; }>; export declare function registerUseContextPackTool(server: any, options: CreateHandlerOptions): ({ name, path: explicitPath }: { name: string; path?: string; }) => Promise<{ success: boolean; message: string; pack?: undefined; } | { success: boolean; message: string; pack: { key: string; name: string; description: string | null; scope: Record<string, any>; }; }>; export {}; //# sourceMappingURL=use-context-pack.d.ts.map