/** * missing-cost-shim migration: regenerate `.aidlc/cost/capture.sh` when a hook * is armed against it and it cannot run. * * WHY THIS EXISTS. `cost-capture-goes-dark` replaced absolute hook paths with a * generated shim and deleted `commandResolvable`, recording that "the failure * class is retired, not merely detected". The shim removed the *stale path* * failure and introduced a *missing file* one: the shim is generated per install, * is gitignored on purpose (it embeds machine-specific resolution hints), and no * tracked file can supply it — while `.claude/settings.json`, which arms the * hooks, IS tracked. So every fresh clone and every second machine starts with * hooks pointing at nothing. * * That is not hypothetical: capture was dead from 2026-08-26 21:12 to 2026-08-28 * 13:44 local, $535.54 of usage was never recorded, and `aidlc cost hooks status` * read `installed` throughout. * * WHY SAFE TIER, AND WHY IT REPAIRS RATHER THAN REPORTS. The shim is generated * output with no user content, already gitignored, and `writeShim` is idempotent — * rewriting it destroys nothing a user authored. Report-only was tried for this * exact failure class (`stale-cost-hooks`) and the data was lost anyway, because * the last link in the chain was a human reading a line. `aidlc cost` already * prints "run `aidlc doctor` to repair"; this is the migration that makes that * sentence true. * * Self-clearing: once the shim exists and is executable, `shimProblem` returns * null and this stops reporting without anyone editing state. */ import type { Migration } from '../types.js'; /** * Platforms whose hook is armed against an unusable shim. Read-only half, * exported for reuse and direct testing. * * Legacy hooks are excluded: they do not invoke the shim, so its state is not * their problem — `legacy-cost-hooks` re-installs those, which writes the shim as * a side effect anyway. */ export { platformsWithUnusableShim } from '../../cost/hooks/arm.js'; export declare const missingCostShim: Migration; //# sourceMappingURL=missing-cost-shim.d.ts.map