/** * Uninstall skill executor — orchestrates per-skill removal pipeline. * * Pipeline: resolve desired/observed state -> remove agent artifacts * concurrently -> remove canonical source -> clear settings and accepted resolution. * * @experimental This API is unstable and may change without notice. */ import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import type { OperationHandler } from "../../plan/apply-plan.js"; import type { Operation } from "../../plan/plan.js"; import { WorkspaceMutations } from "../../workspace/service-interface.js"; /** * Args for the uninstall-skill operation. */ export interface UninstallSkillOperationArgs { readonly skillName: string; /** Agent filter for partial uninstall. Empty = all agents. */ readonly agents: ReadonlyArray; } /** * Remove a skill from the workspace. * * @experimental This API is unstable and may change without notice. */ export type UninstallSkillOperation = Operation<"uninstall-skill", UninstallSkillOperationArgs>; /** * Uninstall-skill operation handler. * * Reads workspace paths from the WorkspaceMutations service, then orchestrates: * 1. Sanitize skill name for filesystem * 2. Resolve configured and observed state * 3. Remove agent symlinks concurrently (skip missing) * 4. Remove from all known canonical locations (full uninstall only) * 5. Remove or update settings and accepted resolution */ export declare const uninstallSkill: OperationHandler; //# sourceMappingURL=uninstall.d.ts.map