/** * Retire single files an older monomind installed that this version no * longer ships (#418: monoswarm and autopilot were removed in 2.22.0). * * The init manifest tracks top-level entries (`commands/monoswarm`), so it * cannot see one retired file inside a category directory that still ships * (`commands/coordination/monoswarm-init.md`), and a project from before the * manifest has no record at all. This works per file instead, from an explicit * list, and only touches a file whose content matches a version some release * shipped (`retired-files-data.ts`, generated from git history). Such a file * is moved to `.monomind/backups//retired/files/`, like a retired * directory. A file that matches no shipped version was edited by the user: it * stays, and init warns about it. * * Still-shipped READMEs whose old versions named the removed commands are * rewritten to the current copy, again only when unmodified. */ import type { InitResult } from './types.js'; /** First 16 hex chars of sha256 over LF-normalised text. */ export declare function contentHash(text: string): string; /** Hash of the text after its YAML frontmatter, trimmed. The Kimi Code and * OpenCode converters rewrite only frontmatter, so an older converter's copy * still carries the shipped body. */ export declare function bodyHash(text: string): string; /** * Retire every listed file that still holds shipped content; warn about the * edited ones; refresh unmodified stale READMEs from `sourceClaudeDir` (the * `.claude` tree init copies from), when given. */ export declare function retireRemovedFiles(targetDir: string, result: InitResult, sourceClaudeDir?: string | null): void; //# sourceMappingURL=retired-files.d.ts.map