import type { Context } from '@deepseek-ai/cordis'; import type { DailyService } from './service.js'; export interface PromptSectionOptions { maxItems: number; logger?: { warn(message: string): void; }; /** * 每次渲染 section 时被调用,带上**宿主给的装配上下文**。 * * 这个回调是项目自动识别的主入口:它每一轮都会响,而上下文里带的是 * **当前会话**(含 cwd)—— 比"启动时读一次工作区列表"准确得多。 * 实现里必须同步、极轻、且绝不抛(渲染失败会让整段 prompt 出问题)。 */ onRender?: (context: unknown) => void; } export declare function installPromptSection(ctx: Context, service: DailyService, options: PromptSectionOptions): () => void;