/** * Shell command classification, shared by every importer. * * Two questions are asked of a command string: * * 1. What kind of command is it (test / build / lint / vcs / pkg / shell)? * This drives the verification analysis — only test, build and lint count * as evidence that the work was checked. * * 2. Does it write to the working tree? This one exists because a diff * assembled purely from Edit/Write tool calls is blind to everything the * agent does through the shell — `tar -xzf`, a heredoc, `sed -i`, * `printf >> file`. Treating "no tool edits" as "no changes" inverts the * verdict on shell-heavy runs, so the analyzers need to know the * difference between *nothing happened* and *we cannot see what happened*. */ import type { CommandCategory } from "./model.js"; export declare function classifyCommand(cmd: string): CommandCategory; /** * True when the command plausibly changed files on disk. Deliberately * inclusive: a false positive downgrades a "wasteful" verdict to * "questionable", which is the safe direction to be wrong in. A false * negative silently reinstates the bug this exists to fix. */ export declare function mutatesWorkingTree(cmd: string): boolean;