/** * #958 — `runClarifyRelay` — deterministic answer-relay path for cockpit's * clarify skill. Replaces the freehand `gh issue comment` invocation that * caused #958's answer-side lottery (four different agent-invented markers * observed on #5/#6/#7/#8 in one run). * * The tool posts a marker-stamped comment (via `formatClarificationAnswerComment`) * and applies `completed:clarification`. Idempotent: a second call with the * same batch is a no-op (`action: 'already-relayed'`). * * MUST NOT rewrite `clarifications.md` locally. MUST NOT remove * `waiting-for:clarification` (the worker owns that on resume). */ import { loadCockpitConfig, type CommandRunner, type GhWrapper } from '@generacy-ai/cockpit'; import { type IssueRef } from './resolver.js'; export interface ClarifyRelayInput { issue: string; batch: number; answers: Record; actor?: string; } export interface ClarifyRelayResult { ref: IssueRef; batch: number; action: 'relayed' | 'already-relayed'; completedLabel: 'completed:clarification'; commentUrl?: string; noop?: true; } export interface ClarifyRelayDeps { runner?: CommandRunner; gh?: GhWrapper; loadConfig?: typeof loadCockpitConfig; env?: NodeJS.ProcessEnv; now?: () => Date; } export declare function runClarifyRelay(input: ClarifyRelayInput, deps?: ClarifyRelayDeps): Promise; //# sourceMappingURL=clarify-relay.d.ts.map