/** * personas.ts — Extensible Persona Registry for cv agent * * Each persona defines: * - id: unique key (matches the CLI flag name) * - label: human-readable name shown in the banner * - menuItems: first-turn autocomplete menu entries * - pickUpPrompt: the system message injected when the user chooses * "Pick up where we left off" — workspace-aware, not job-aware * - contextGather: async function returning a markdown context snapshot * of the current environment relevant to this persona * * ── Adding a new persona ────────────────────────────────────────────────────── * 1. Add a new PersonaDefinition entry in PERSONAS below. * 2. Register the matching --flag in index.ts (one line). * 3. Done. The menu, context, and system prompt routing all work automatically. */ export interface PersonaDefinition { id: string; label: string; /** Displayed in the first-turn autocomplete menu */ menuItems: string[]; /** * Optional per-item prompt overrides. * Key = exact menu item string. Value = the prompt sent to the agent. * Items without an entry get the default emoji-stripped text. */ menuPrompts?: Record; /** Used as the agent prompt when "Pick up where we left off" is selected */ pickUpPrompt: string; /** Gathers live workspace context for the pick-up prompt */ contextGather: () => Promise; } /** * Resolve the active PersonaDefinition from the CLI options object. * Falls back to the jobs persona. */ export declare function resolvePersona(options: Record): PersonaDefinition; /** All registered personas — useful for dynamic --help generation. */ export declare const ALL_PERSONAS: PersonaDefinition[]; //# sourceMappingURL=personas.d.ts.map