Project Files
dist / context.d.ts
/**
* @file context.ts
* @description Conversation context management for persona-manager.
* Tracks the active persona state, system prompt injection, and
* conversation history.
*/
import type { PersonaProfile, ConversationContext } from "./types";
/**
* Initialise the context manager with an optional default persona.
*/
export declare function initContext(): void;
/**
* Switch the active persona to the given profile.
* Updates the system prompt and marks context as reset.
*
* Returns the previous persona ID (or null if none was set).
*/
export declare function switchPersona(profile: PersonaProfile): string | null;
/**
* Get the current active persona profile.
* Returns null if no persona is active (default state).
*/
export declare function getActivePersona(): PersonaProfile | null;
/**
* Get the current conversation context summary.
*/
export declare function getContext(): ConversationContext;
/**
* Increment the message counter (called when a new message is exchanged).
*/
export declare function incrementMessageCount(): void;
/**
* Reset the conversation context (clears history, keeps active persona).
*/
export declare function resetContext(): void;
/**
* Get the current system prompt.
*/
export declare function getSystemPrompt(): string;
//# sourceMappingURL=context.d.ts.map