/** * Skill-block parsing and inline skill-command expansion for AgentSession. * * `parseSkillBlock` recognizes the `` envelope embedded in user * messages; `expandSkillCommand` turns a `/skill:name args` invocation into that * envelope by reading the skill file. Both are pure aside from the file read, * which reports failures through the supplied error callback. */ import type { Skill } from "./skills.js"; /** Parsed skill block from a user message */ export interface ParsedSkillBlock { name: string; location: string; content: string; userMessage: string | undefined; } /** * Parse a skill block from message text. * Returns null if the text doesn't contain a skill block. */ export declare function parseSkillBlock(text: string): ParsedSkillBlock | null; /** Error reported while reading a skill file during expansion. */ export interface SkillExpansionError { filePath: string; error: string; } /** * Expand a skill command (`/skill:name args`) to its full skill-block content. * Returns the expanded text, or the original text when it is not a skill command * or the named skill is unknown. File-read failures are surfaced via `onError` * and leave the original text unchanged. */ export declare function expandSkillCommand(text: string, skills: Skill[], onError: (err: SkillExpansionError) => void): string; //# sourceMappingURL=agent-session-skills.d.ts.map