/** * `lyse install` — one-command onboarding (react-doctor-style front door). * * Wires Lyse into a repo: installs the Lyse skill into every detected coding * agent (so the agent knows how to fix drift) and installs the advisory * pre-commit hook. Resilient: a missing git repo doesn't abort the skill * install — the hook is recorded as skipped instead. * * Reuses the existing primitives (detectAgents, installLyseSkill, runAddGitHook) * rather than duplicating them. */ import { type AgentSpec } from "../agent/registry.js"; import { type AddGitHookResult } from "./add-git-hook.js"; export interface InstallOptions { cwd: string; force?: boolean; lyseVersion?: string; } export interface InstallDeps { /** Override agent detection (tests). Defaults to `detectAgents`. */ detect?: (root: string) => Promise; } export interface InstallResult { skills: { agent: string; path: string; installed: boolean; }[]; hook: AddGitHookResult; } export declare function runInstall(opts: InstallOptions, deps?: InstallDeps): Promise;