/** * handoff Command - the agent's side of the hand-off before a session ends (Issue #4227, * design `docs/design/mem-ui-4227.md` §4.2・§4.3). * * commandmate handoff propose --request add --kind (--text "" | --stdin) [--close-when ] [--evidence ] * commandmate handoff propose --request update --base-version [--text ... | --stdin] [--close-when ...] [--evidence ...] * commandmate handoff propose --request close --base-version [--reason ""] * commandmate handoff done --request * * G9 (the UAT of G-PR1+G-PR2): `--request` of `propose` is taken both before its operation (the * request text's form, `propose --request add …`) and after it (`propose add --request …`). * Every command line of the request text (`lib/handoff/template.ts`) and of the CLI guide is parsed * by this program in `tests/unit/cli/commands/handoff-template-parse-4227.test.ts`. * * A proposal is never confirmed here: a person approves it on the screen, which writes * it against the item's version. **There is no way here to approve, cancel or end** * (design §7.3): those are the screen's, with its mark. The exit codes are mem's. * * Errors print the server's code, field and rule, never what was refused. */ import { Command } from 'commander'; export declare function handoffExitCode(code: string | undefined): number | null; /** * G9: the request a `propose` operation names — its own `--request`, else the one given to * `propose` before the operation (the request text's form). Commander hands an option the parent * knows to the parent wherever it stands, so both places are read. */ export declare function handoffRequestOf(command: Command): string | undefined; export declare function createHandoffCommand(): Command; //# sourceMappingURL=handoff.d.ts.map