Project Files
dist / manager.d.ts
/**
* @file manager.ts
* @description Persona switching logic — orchestrates profile loading and
* context management for the persona-manager plugin.
*
* Provides the core operations used by the LM Studio tools:
* - switchPersona: activate a persona by ID
* - listPersonas: enumerate available profiles
* - getCurrentPersona: query the active state
*/
import { getActivePersona, getContext } from "./context";
import type { ListPersonasResult, SavePersonaParams, SavePersonaResult, SwitchPersonaResult, GetPersonaResult } from "./types";
/**
* Default persona used when no specific profile is loaded.
*/
export declare const DEFAULT_PERSONA_ID = "__default__";
/**
* Switch to a persona by ID.
* Returns the result of the switch operation.
* Throws if the persona ID is not found among loaded profiles.
*/
export declare function switchToPersona(personaId: string): SwitchPersonaResult;
/**
* List all available persona profiles.
* Returns a summary result suitable for returning as a tool result.
*/
export declare function listPersonas(): ListPersonasResult;
/**
* Get the currently active persona details and context.
*/
export declare function getCurrentPersona(): GetPersonaResult;
/**
* Save a new persona profile to disk.
*
* Generates an ID from the display name, validates required fields,
* writes the profile JSON file, and reloads the in-memory cache.
*/
export declare function savePersona(params: SavePersonaParams): SavePersonaResult;
/**
* Alias for the active persona used in toolsProvider.
*/
export { getActivePersona, getContext };
//# sourceMappingURL=manager.d.ts.map