/** * Appended to a bash_watch reply whose sync deadline passed without a match. * The deadline is a property of the watch, not of the command: a delegated * worker that read the bare "timeout reached" line as its own execution being * interrupted declared a failed result while its 12-minute docker matrix was * still running. The sentence names the state and the move in both roles. */ export declare const WATCH_TIMEOUT_STEER = "The command is still running; this deadline is not a failure. Call bash_watch again or do other work in this turn. Only a primary session may end its turn on it (the completion reminder wakes it); a delegated worker must not end its turn or declare a result while the command runs."; /** * Append the `aft_conflicts` hint when the output indicates a real git merge * or rebase produced conflicts. * * Gated on BOTH: * - the "Automatic merge failed; fix conflicts" marker, AND * - a git-conflict signal (`CONFLICT (...)` line or `error: could not apply`) * * Both conditions are required because `aft_conflicts` calls `git ls-files -u`, * which fails with "not a git repository" outside a git working tree. The * marker string can legitimately appear in docs, READMEs, test fixtures, and * grep output, so we cannot key off it alone — a false-positive hint sends * agents into a confusing error. */ export declare function maybeAppendConflictsHint(output: string): string; /** * Return true when any top-level statement of the command invokes a code-search * command (grep/rg) as the first stage of its pipeline. * * Splits the command into top-level statements (`&&`, `||`, `;`, `&`, newline) * so a search buried after `cd`/`echo` (e.g. `cd x && echo y && grep z`, or a * multi-line script) is still detected. grep/rg used as a downstream filter * (`bun test | grep fail`) is ignored because it is not the first pipeline * stage of its statement. Ambiguous shell syntax (unbalanced quotes/backticks) * returns false so the nudge never fires spuriously. */ export declare function commandInvokesCodeSearch(command: string): boolean; /** * Append the grep/rg code-search nudge for native bash output that did not go * through the Rust grep rewrite footer path. */ export declare function maybeAppendGrepSearchHint(output: string, command: string, aftSearchRegistered: boolean, projectRoot?: string): string; //# sourceMappingURL=bash-hints.d.ts.map