/** * CLI Command: handoff * * Assembles a portable, secret-scrubbed work-handoff document (+ a full diff of * uncommitted edits) so a developer can stop work in one AI coding tool and * resume in another. Thin wrapper over {@link buildWorkHandoff} — all the * expensive, deterministic assembly lives in the core builder; this command * only maps flags → options and prints the result in the contractual order. * * Usage: * specweave handoff [incrementId] \ * [--reason ] [--summary ] [--next ] [--gotcha ] \ * [--decision ...] [--inline] [--non-specweave] [--out ] [--json] \ * [--push] [--keep-claims] * specweave handoff --all [--reason ] [--out ] [--dry-run] [--json] * * Output is three or four lines: what was handed off, how to continue ("pick * up" in the other tool), and where the details are. `--inline` prints a * paste-able prompt for the rare case with no Git remote and another machine. * * With `--json`, the full {@link WorkHandoffResult} is printed as JSON instead * (for programmatic callers — e.g. the hook handler and tests). * * `--all` writes the handoff index instead (every active increment plus the * nested checkouts with local-only work); see core/session/handoff-all. * * Part of increment 0867: Cross-Tool Work Handoff. * * @module cli/commands/handoff */ /** * Options as parsed by commander. The positional `[incrementId]` is passed * through `incrementId`; `--decision` is repeatable and collected into an array. */ export interface HandoffCommandOptions { /** Positional disambiguator when 2+ increments are active. */ incrementId?: string; reason?: string; summary?: string; next?: string; gotcha?: string; /** Repeatable `--decision` flag → string[]. */ decision?: string[]; /** `--inline` / `--clipboard` → embed the full body in the paste-prompt. */ inline?: boolean; /** `--non-specweave` → force the `.handoff/` fallback. */ nonSpecweave?: boolean; /** `--out ` → override the doc output path. */ out?: string; /** `--json` → print the full result as JSON. */ json?: boolean; /** `--no-push` → false: keep the handoff local. Default: push when there is a remote. */ push?: boolean; /** `--keep-claims` → do not release this agent's task claims. */ keepClaims?: boolean; /** `--no-commit` → false: skip the `git.autoCommitIncrement` commit. */ commit?: boolean; /** `--all` → write the index of every active increment and nested repo. */ all?: boolean; /** `--dry-run` (with `--all`) → print the index, write nothing. */ dryRun?: boolean; /** Override the starting directory for workspace resolution (tests). */ cwd?: string; } /** `specweave handoff --all`: write (or with `--dry-run` print) the handoff index. */ export declare function handoffAllCommand(opts?: HandoffCommandOptions): Promise; export declare function handoffCommand(opts?: HandoffCommandOptions): Promise; //# sourceMappingURL=handoff.d.ts.map