UNPKG

local-agent

Version:

A CLI agentic system for orchestrating tools and memory with per-folder scoping

51 lines 2.54 kB
/** * Checks for missing required files and the memory directory in the project. * * @param {string[]} REQUIRED_FILES - List of required file names to check for existence. * @param {string} MEMORY_DIR - Name of the memory directory to check. * @returns {string[]} Array of missing items (file names and/or the memory directory). */ export declare function getMissingProjectFiles(REQUIRED_FILES: string[], MEMORY_DIR: string): string[]; /** * Creates any missing required files and the memory directory for the project. * Populates files with default content where appropriate. * * @param {string[]} REQUIRED_FILES - List of required file names to create if missing. * @param {string} MEMORY_DIR - Name of the memory directory to create if missing. */ export declare function initializeProjectFiles(REQUIRED_FILES: string[], MEMORY_DIR: string): void; /** * Checks for missing files/dirs, prompts user to initialize if needed, and loads config/tools/keys. * Exits if user declines initialization or after initializing. */ /** * Validates the presence of all required files and the memory directory. * If any are missing, prompts the user to initialize the project and exits if declined. * Loads and parses the agent configuration, MCP tools, and API keys from their respective files. * * @param {string[]} REQUIRED_FILES - List of required file names. * @param {string} MEMORY_DIR - Name of the memory directory. * @returns {Promise<{ config: any, tools: any, keys: any }>} Parsed configuration, tools, and keys. */ export declare function validateAndLoadFiles(REQUIRED_FILES: string[], MEMORY_DIR: string): Promise<any>; export declare const GREEN = "\u001B[32m"; export declare const RED = "\u001B[31m"; export declare const YELLOW = "\u001B[33m"; export declare const RESET = "\u001B[0m"; /** * Loads all Model Context Protocol (MCP) tools defined in the tools configuration. * Returns an object containing the loaded tools and a status array for each tool. * * @param {any} toolsConfig - The parsed tools configuration object (from mcp-tools.json). * @returns {Promise<{ loadedTools: Record<string, any>, toolStatus: Array<{name: string, status: "success"|"fail", error?: string}> }>} * An object with loaded MCP tools and their load status. */ export declare function loadAllMcpTools(toolsConfig: any): Promise<{ loadedTools: Record<string, any>; toolStatus: { name: string; status: "success" | "fail"; error?: string; }[]; }>; //# sourceMappingURL=initialization.d.ts.map