UNPKG

@mettamatt/code-reasoning

Version:

Enhanced MCP server for code reasoning using sequential thinking methodology, optimized for programming tasks

43 lines (42 loc) 1.28 kB
/** * @fileoverview Manages storing and retrieving prompt argument values. * * This provides persistence for prompt arguments between sessions, * allowing users to avoid repetitive entry of common values. */ /** * Manages the storage and retrieval of prompt argument values. */ export declare class PromptValueManager { private valuesFilePath; private values; /** * Creates a new PromptValueManager. * * @param configDir The directory where configuration files are stored */ constructor(configDir: string); /** * Loads the stored values from the JSON file. * Creates a default file if it doesn't exist. */ private loadValues; /** * Saves the current values to the JSON file. */ private saveValues; /** * Gets stored argument values for a prompt. * * @param promptName The name of the prompt * @returns An object with stored argument values */ getStoredValues(promptName: string): Record<string, string>; /** * Updates stored values with the new values provided. * * @param promptName The name of the prompt * @param args The argument values to store */ updateStoredValues(promptName: string, args: Record<string, string>): void; }