import { type Plugin, type Skill, type SkillScope, type TurnId } from '@moxxy/sdk'; import type { Session } from '../session.js'; export interface SynthesizeOptions { readonly userDir?: string; readonly projectDir?: string; readonly model?: string; readonly auditPath?: string; /** * Directory holding builtin skills (`@moxxy/skills-builtin`). Threaded * through so `reload_skills` can rescan the same source set as the boot * loader — otherwise reload silently drops the builtins, observed when * a session called `reload_skills` and lost every shipped skill. */ readonly builtinDir?: string; /** Extra plugin-supplied skill directories. Same boot-vs-reload story. */ readonly pluginDirs?: ReadonlyArray; /** * Read the skill folders again before each turn on an agent connection. The * vendor agent has a `reload_skills` of its own, so a skill file saved while * the conversation runs would otherwise reach it only after a restart. Off * by default: the rescan replaces skills registered in memory alone. */ readonly rescanBeforeAgentTurns?: boolean; } export interface SynthesizedSkill { readonly skill: Skill; readonly path: string; readonly scope: SkillScope; } export declare function synthesizeSkill(session: Session, intent: string, scope: 'user' | 'project', opts?: SynthesizeOptions, /** * The active turn's id, threaded from the tool's `ctx.turnId`. The * `skill_created` event MUST carry it so run-turn's per-turn subscriber * (`event.turnId !== turnId → drop`) doesn't filter the event out of the * running turn's stream. Falls back to a fresh turn only for legacy callers * that invoke this outside a turn. */ turnId?: TurnId): Promise; export declare function buildSynthesizeSkillPlugin(session: Session, opts?: SynthesizeOptions): Plugin; //# sourceMappingURL=synthesize.d.ts.map