/** * Worker prompt builder for Hive delegated execution. * Builds context-rich prompts for worker agents with all Hive context. */ export interface ContextFile { name: string; content: string; } export interface CompletedTask { name: string; summary: string; } export interface ContinueFromBlocked { status: 'blocked'; previousSummary: string; decision: string; } export interface WorkerPromptParams { feature: string; task: string; taskOrder: number; worktreePath: string; branch: string; plan: string; contextFiles: ContextFile[]; spec: string; previousTasks?: CompletedTask[]; continueFrom?: ContinueFromBlocked; } /** * Build a context-rich prompt for a worker agent. * * Includes: * - Assignment details (feature, task, worktree, branch) * - Mission (spec) - contains plan section, context, and completed tasks * - Blocker protocol (NOT question tool) * - Completion protocol * * NOTE: Plan, context files, and previous tasks are NOT included separately * because they are already embedded in the spec. This prevents duplication * and keeps the prompt size bounded. */ export declare function buildWorkerPrompt(params: WorkerPromptParams): string;