/** * `/skills`: an inspector over the effective Harness catalog, and a launcher * for the Composer. * * Deliberately not an executor. Enter writes the literal `/name ` a person * could have typed and gets out of the way; whether that line becomes a skill * invocation is Harness's decision, made at its own pre-step boundary. Nothing * here loads a skill, renders instructions, or spends a model turn. * @module dshline/skills/overlay */ import type { TuiOverlay } from '../slots.ts'; import type { SkillCatalogReading } from './catalog.ts'; /** What the inspector needs from the attachment that opens it. */ export interface SkillsOverlaySpec { /** The live catalog reading; re-read every frame. */ readonly reading: () => SkillCatalogReading; /** Names the command registries already claim, for the shadowing rule. */ readonly commandNames: () => Iterable; /** Put `/name ` in the Composer. Called at most once, and never submits. */ readonly insert: (name: string) => void; /** Remove this temporary overlay. */ readonly close: () => void; /** Ask the runner to redraw. */ readonly invalidate: () => void; } /** * Create the `/skills` inspector. * @param spec - the catalog reading, the shadowing names, and the two actions. * @returns a live-region overlay that never writes the transcript. */ export declare function createSkillsOverlay(spec: SkillsOverlaySpec): TuiOverlay; //# sourceMappingURL=overlay.d.ts.map