/** * `generacy cockpit scope add|remove ` — mutate the * task-list membership of a scope (epic or tracking) issue's body. * * Both sub-verbs route through `writeScopeWithRetry` which reads the current * body, applies a pure mutation, writes back, and verifies. Idempotent * (already-present `add`, already-absent `remove` = noop). Terminal contention * throws `ScopeContendedError` (exit 1, code `SCOPE_ADD_CONTENDED`). */ import { Command } from 'commander'; import { loadCockpitConfig, type CommandRunner, type GhWrapper } from '@generacy-ai/cockpit'; export interface ScopeCommandDeps { runner?: CommandRunner; gh?: GhWrapper; loadConfig?: typeof loadCockpitConfig; env?: NodeJS.ProcessEnv; stdout?: (line: string) => void; stderr?: (line: string) => void; } export declare function scopeCommand(deps?: ScopeCommandDeps): Command; export declare function runScope(kind: 'add' | 'remove', scopeArg: string, issueArg: string, deps: ScopeCommandDeps): Promise; //# sourceMappingURL=scope.d.ts.map