/** * Agent installation functions. * Ports lib/skills/agents-install.sh. * * Installs a project's agents (`/agents//AGENT.md`) for Claude * Code by symlinking them into the PROJECT's `.claude/agents/` (T13241). CLEO * never writes the user-global Claude config (`CLAUDE_HOME`, else * `~/.claude`): a project that is the home directory, or whose `.claude/` * lies inside the user-global Claude dir, is refused and nothing is written. * * @epic T4454 * @task T4518 * @task T13241 */ /** * Where a project's agents are installed: `/.claude/agents`, or * the reason it is refused because that would be user-global Claude config * (T13241): the project is the home directory (its `.claude/` IS the * user-global dir), or the target lies inside `CLAUDE_HOME` / `~/.claude`. * * @param cwd - a directory in the project. @defaultValue process.cwd() * @returns `{ dir }`, or `{ refused }` with the reason. * * @example * ```typescript * projectAgentInstallDir('/repo'); // { dir: '/repo/.claude/agents' } * ``` */ export declare function projectAgentInstallDir(cwd?: string): { readonly dir: string; } | { readonly refused: string; }; /** * Install a single agent via symlink into the project's `.claude/agents/`. * * @param agentDir - the agent's source directory. * @param cwd - a directory in the project. @defaultValue process.cwd() * @returns whether it is installed, where, and why not. A user-global target * (T13241) is refused with nothing written. * @task T4518 * @task T13241 */ export declare function installAgent(agentDir: string, cwd?: string): { installed: boolean; path: string; error?: string; }; /** * Install all agents from the project agents/ directory into the project's * `.claude/agents/` (T13241). * * @param cwd - a directory in the project. @defaultValue process.cwd() * @task T4518 * @task T13241 */ export declare function installAllAgents(cwd?: string): Array<{ name: string; installed: boolean; error?: string; }>; /** * Uninstall a single agent by removing its symlink from the project's * `.claude/agents/`. Never touches the user-global Claude dir (T13241): * a refused target returns `false`. * * @param agentName - the agent's directory name. * @param cwd - a directory in the project. @defaultValue process.cwd() * @task T4518 * @task T13241 */ export declare function uninstallAgent(agentName: string, cwd?: string): boolean; //# sourceMappingURL=install.d.ts.map