import { AppendEntry } from "./attempt-entry.mjs"; import { PresetConfig, ThinkingLevel } from "./config/schema.mjs"; import { loadEffectiveConfig, resolveLiveCompactionPaths } from "./config/io.mjs"; import { loadEffectiveBranchSummaryPromptContract, loadEffectiveCompactionPromptContract } from "./config/prompts.mjs"; import { collectFilesTouched } from "./files-touched/collector.mjs"; import { loadCompactionTemplate } from "./template/loader.mjs"; import { ExtensionUIContext, convertToLlm } from "@earendil-works/pi-coding-agent"; import { Api, AssistantMessageEventStream, Context, Model, SimpleStreamOptions, completeSimple, streamSimple } from "@earendil-works/pi-ai"; //#region src/types.d.ts type StreamSimple = (model: Model, context: Context, options?: SimpleStreamOptions) => AssistantMessageEventStream; interface ParsedCompactInstructions { usesPresetDirective: boolean; presetQuery?: string; focusText?: string; } interface ResolvedSummarizer { model: Model; apiKey?: string; headers?: Record; reasoningLevel?: ThinkingLevel; streamSimple?: StreamSimple; } interface LiveCompactionDetails { model: string; thinkingLevel?: ThinkingLevel; focusInput?: string; focusText?: string; presetQuery?: string; attemptId?: string; transport?: string; } interface PresetMatchResult { kind: 'matched' | 'ambiguous' | 'unmatched'; name?: string; preset?: PresetConfig; } type HookContext = { hasUI: boolean; ui: Pick; model?: Model; cwd?: string | null; modelRegistry: { getAll(): Model[]; getApiKeyAndHeaders(model: Model): Promise<{ ok: true; apiKey?: string; headers?: Record; } | { ok: false; error: string; }>; }; }; type SummaryProgress = { start(modelLabel: string, tokensBefore: number): void; update(text: string): void; finish(): void; fail(message: string): void; }; type RunDeps = { complete: typeof completeSimple; streamSimple: typeof streamSimple; collectFilesTouched: typeof collectFilesTouched; loadConfig: typeof loadEffectiveConfig; loadCompactionPrompt: typeof loadEffectiveCompactionPromptContract; loadBranchSummaryPrompt: typeof loadEffectiveBranchSummaryPromptContract; loadCompactionTemplate: typeof loadCompactionTemplate; resolvePaths: typeof resolveLiveCompactionPaths; fetchTaskState?: () => Promise | string | undefined; appendEntry?: AppendEntry; makeProgress?: (ctx: HookContext) => SummaryProgress | undefined; }; //#endregion export { HookContext, LiveCompactionDetails, ParsedCompactInstructions, PresetMatchResult, ResolvedSummarizer, RunDeps }; //# sourceMappingURL=types.d.mts.map