/** * Installs the git hooks that feed the Brain without anyone remembering to: post-commit ingests * the new commit, post-merge/post-checkout pull the team's shared memories (`.lemma-brain/`). * * `lemma-brain-ingest` shipped with a post-commit recipe in its header comment and nothing ever * installed it — on the author's own machine the corpus held 0 commit memories. This is the * missing install step, with the constraints a hook installer owes the repo it touches: * * - Append, never overwrite. An existing hook keeps running exactly as before; Lemma's part is * one delimited block, and re-running init replaces that block in place (idempotent). * - Never break a commit. Every line is guarded by `command -v`, backgrounded, and silenced. * - Respect `core.hooksPath`. `git rev-parse --git-path hooks` resolves it; when it points inside * the working tree (husky and friends — versioned hooks), the files are the team's, so they are * left alone and the caller gets the lines to add instead. */ export interface HookInstallResult { installed: string[]; updated: string[]; unchanged: string[]; /** Set when hooks live in a versioned directory Lemma won't write to; holds what to add by hand. */ manual?: { hooksDir: string; snippet: string; }; skippedReason?: string; } export declare function installBrainHooks(cwd?: string): HookInstallResult; //# sourceMappingURL=gitHooks.d.ts.map