/** * `cockpit_resume` MCP tool handler. * * Wraps `runResume`. On happy-path, parses the "resumed ... added=[...] removed=[...]" * stdout line to recover the label mutation set for structured output. * * Non-failed issue no-op (resume.ts:189-193): CLI prints "issue ... is not in * a failed state" and exits 0. Represent as * `{status: "ok", data: {action: "no-op", targetPhase: null, precedingGate: null, * labelsAdded: [], labelsRemoved: []}}`. */ import type { CommandRunner, GhWrapper } from '@generacy-ai/cockpit'; import { type ResumeCommandDeps } from '../../resume.js'; import { type ToolResult } from '../errors.js'; import { type IssueRefInput } from '../schemas.js'; export interface CockpitResumeInput { issue: IssueRefInput; } export interface CockpitResumeData { ref: { owner: string; repo: string; number: number; nwo: string; }; action: 'resumed' | 'no-op'; targetPhase: string | null; precedingGate: string | null; labelsAdded: string[]; labelsRemoved: string[]; } export interface CockpitResumeDeps { runner?: CommandRunner; gh?: GhWrapper; loadConfig?: ResumeCommandDeps['loadConfig']; } export declare function cockpitResume(input: CockpitResumeInput, deps?: CockpitResumeDeps): Promise>; //# sourceMappingURL=cockpit_resume.d.ts.map