/** * Compose interview answers into structured context for the coding agent. * * Always includes: * - Question text (what was asked) * - Selected option labels * - Selected option descriptions (why those options matter) * - Grounding summary (files, signals, refs that motivated the question) * - Freeform notes * * The receiving agent gets full decision context, not bare action labels. */ import type { AgentContextData, HandoffComposePlan, HandoffExecutionShape, HandoffMessage, InterviewWorkflowSignals, ProjectSnapshot, QuizAnswer, QuizQuestion, QuizSubmission, TurnContext } from "../core/types.js"; export interface HandoffComposerContextInput { projectSummary?: string[]; sessionSummary?: string[]; workflowSummary?: string[]; currentState?: string[]; relevantSkills?: string[]; relevantRules?: string[]; commands?: string[]; activeTools?: string[]; /** Tier 0 — agent-OS artifacts from ~/.pi */ agentOsTier?: string[]; /** Tier 1 — hot current-turn evidence */ hotContextTier?: string[]; /** Tier 2 — warm trajectory / continuity */ warmContextTier?: string[]; /** Tier 3 — cold project / ecosystem background */ coldContextTier?: string[]; } export interface HandoffPlanAssessment { acceptable: boolean; reason?: string; overlap: number; scaffoldCount: number; } export declare function assessHandoffComposePlan(plan: Partial | undefined, appendix: string, questions: QuizQuestion[], answers: QuizAnswer[]): HandoffPlanAssessment; export type SelectionDensity = "none" | "single" | "multi" | "all" | "note-only"; export declare function classifySelectionDensity(question: QuizQuestion, answer: QuizAnswer): SelectionDensity; export declare function selectRelevantSkillSummaries(agentContext: AgentContextData | null | undefined, questions: QuizQuestion[], answers: QuizAnswer[], maxItems?: number, options?: { workflowSummary?: string[]; sessionSummary?: string[]; }): string[]; export declare function buildHandoffComposerContextFromLive(params: { turn: TurnContext; projectSnapshot?: ProjectSnapshot; agentContext?: AgentContextData | null; currentStateRefs?: string[]; workflowSignals?: InterviewWorkflowSignals; activeSessionModel?: string; questions: QuizQuestion[]; answers: QuizAnswer[]; }): HandoffComposerContextInput; export declare function buildLlmComposeInput(questions: QuizQuestion[], answers: QuizAnswer[]): string; export declare function buildAgenticComposeInput(questions: QuizQuestion[], answers: QuizAnswer[], context?: HandoffComposerContextInput): string; export declare function strengthenHandoffPlanForReceiver(plan: Partial | undefined, questions: QuizQuestion[], answers: QuizAnswer[]): HandoffComposePlan; export declare function buildHeuristicHandoffPlan(questions: QuizQuestion[], answers: QuizAnswer[], context?: HandoffComposerContextInput): HandoffComposePlan; export declare function composePrompt(questions: QuizQuestion[], answers: QuizAnswer[], maxChars: number): string; export declare function createHandoffMessage(plan: Partial | undefined, appendix: string, source?: HandoffMessage["source"]): HandoffMessage; export declare function inferExecutionShape(questions: QuizQuestion[], answers: QuizAnswer[]): HandoffExecutionShape; export declare function createLegacyHandoffMessage(questions: QuizQuestion[], answers: QuizAnswer[]): HandoffMessage; export declare function buildSubmission(questions: QuizQuestion[], answers: QuizAnswer[], maxChars: number, startTime: number, cancelled: boolean, llmComposedPrompt?: string): QuizSubmission; //# sourceMappingURL=compose-template.d.ts.map