//#region extensions/crypto/src/services/command-history.d.ts /** * Command History — Ring buffer of recent slash command results. * * Injected into the LLM prompt via before_prompt_build so the agent * can see what slash commands were run and their results. This bridges * the gap where the framework handles commands directly without passing * the results through the LLM's conversation history. * * Per-user, in-memory only (no persistence needed — current session only). */ /** Record a slash command result. */ declare function recordCommand(userId: string, command: string, result: string): void; /** Get recent command history for prompt injection. */ declare function getRecentCommands(userId: string, maxAge?: number): string | null; /** Clear history for a user (on /new). */ declare function clearCommandHistory(userId: string): void; //#endregion export { clearCommandHistory, getRecentCommands, recordCommand }; //# sourceMappingURL=command-history.d.mts.map