/** * The next command a CLI message tells the operator to run, aimed at the * target the command actually addressed (Issue #3982). * * Each hint used to append ` --instance ${options.instance}` itself: the string * the user typed (an alias reached `capture` unresolved), and nothing at all for * `--agent` (so the hint read the worktree default's pane). One of them was * fixed in #3975 and the others were not. These builders take the RESOLVED * target — {@link CommandTarget}, what `resolveCommandTarget` returns — so the * raw option cannot be passed where the hint's target belongs. */ import type { CommandTarget } from '../commands/command-target'; /** * The `capture` flags that read a dialog: the pane itself (the stored reply is * not what is on screen), and enough of it to hold the dialog and its numbers. */ export declare const DIALOG_CAPTURE_FLAGS = "--pane --tail 40"; /** * ` --instance ` for a resolved instance, else ` --agent ` when one * was named, else nothing — a command that named no target keeps naming none. */ export declare function targetFlags(target: CommandTarget): string; /** * `commandmate [ ][ ]`. * * @param args - What follows the worktree id, e.g. `` or `""` * @param trailing - Flags that follow the target, e.g. `--pane --tail 40` */ export declare function followUpCommand(verb: string, worktreeId: string, target: CommandTarget, args?: string, trailing?: string): string; /** The `capture` that shows the target's dialog as it is on screen. */ export declare function dialogCaptureCommand(worktreeId: string, target: CommandTarget): string; /** * `commandmate capture [ target] --pane`: the pane a message went to, to * look at before a resend (Issue #3992). Without a target (a caller that has * none to give) it names none. */ export declare function paneCaptureCommand(worktreeId: string, target: CommandTarget | undefined): string; //# sourceMappingURL=follow-up-command.d.ts.map