import type { InboxItem, SlackInboxItem } from '../../shared/inbox.js'; import type { Reminder } from '../../shared/reminder.js'; export interface CodeAgentPromptContext { memoryCoherence?: { consolidationThresholdBytes?: number; homePath?: string; }; reminder?: Reminder; /** * Cut (b): when present, Slack wakes use the cursor-delivery prompt body * instead of the single-message form. Gate-off leaves this undefined so * Feishu/reminder/choice/onboarding paths stay byte-identical. */ cursorDeliveryPromptBody?: string; } /** * Builds the user-facing delivery prompt that is sent to the code agent. * * Slack message (channel thread, with files): * New Slack message: * * [channel=#team channel_id=C-team thread_ts=1770000020.000001 message_ts=1770000010.000001 time=... user_id=U1 user_local_time=... user_tz=America/Los_Angeles] Alice (@alice): check this out * * * * * Scheduled reminder (with provenance): * Scheduled reminder: * * [reminder_id=reminder-test time=2026-05-18T17:00:00Z scheduled=2026-05-18T17:00:00Z] Follow up on deploy * * Instructions: * Check whether the deploy finished. * * Scheduled from: [channel_id=C-team thread_ts=1770000020.000001 message_ts=1770000010.000001] */ export declare function buildCodeAgentDeliveryPrompt(event: InboxItem, context?: CodeAgentPromptContext): string; /** Render Slack unfurl previews + attached_files for inclusion in the cursor envelope. */ export declare function renderSlackCursorExtras(event: SlackInboxItem): string; export declare function buildRuntimeRestartContinuationDeliveryPrompt(input: { itemId: string; time: string; }): string; export declare function buildProviderCrashRetryDeliveryPrompt(input: { attempt: number; itemId?: string; maxRetries: number; previousError: string; time: string; }): string; export declare function buildProviderSessionRecoveryDeliveryPrompt(input: { itemId?: string; time: string; }): string; //# sourceMappingURL=delivery-prompt.d.ts.map