/** * `chant dev pinned-upgrade ` command implementation. * * Detects whether a pinned-version lexicon (k8s, gcp, docker, gitlab) has a * newer stable upstream release. When it does, it dry-run bumps the pinned * version constant, regenerates + surface-diffs (via #524's regenLexicon), then * reverts the bump — leaving the working tree unchanged. * * This command only REPORTS. Branch/PR automation lives in #527. */ import { type LexiconId, type UpgradeCheckResult } from "../../codegen/pinned-upgrade.js"; export interface PinnedUpgradeOptions { /** Resolved path to the lexicon directory. */ lexiconDir: string; /** Explicit lexicon id; inferred from the directory name when omitted. */ lexicon?: LexiconId; /** Force re-fetch of the upstream spec during regen. */ force?: boolean; /** Print subprocess output while running. */ verbose?: boolean; } /** * Infer the lexicon id from a directory name. Returns null when the directory * basename is not one of the pinned lexicons. */ export declare function inferLexicon(lexiconDir: string): LexiconId | null; /** * Map a regen severity to a semver review label. * additive → "minor"; breaking → "major"; none → "none". */ export declare function semverLabel(result: UpgradeCheckResult): "minor" | "major" | "none"; /** * Run the pinned-upgrade check and return the structured result. * Never throws — a missing dir or an unrecognised lexicon becomes a fetchError. */ export declare function runPinnedUpgrade(opts: PinnedUpgradeOptions): Promise; /** * Print the pinned-upgrade result. `json` emits a machine-readable object. */ export declare function printPinnedUpgradeResult(result: UpgradeCheckResult, json: boolean): void; //# sourceMappingURL=pinned-upgrade.d.ts.map