UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

31 lines • 1.4 kB
import { type Context, type Model, type WarmPromptCacheOptions, type WarmPromptCacheResult } from "@earendil-works/pi-ai"; import type { EntryRenderer, ExtensionFactory } from "../../types.ts"; export declare const CACHE_KEEPALIVE_ENTRY_TYPE = "cache-keepalive"; export declare const CACHE_WARM_PING_EVENT = "cache_warm_ping"; interface StartedEntry { readonly phase: "started"; } interface PingEntry { readonly phase: "ping"; readonly iteration: number; readonly cacheRead: number; readonly cacheWrite: number; readonly estimatedCostUsd: number; readonly cumulativeEstimatedUsd: number; } interface StoppedEntry { readonly phase: "stopped"; readonly iterations: number; readonly stopReason: string; readonly cumulativeEstimatedUsd: number; } export type CacheKeepAliveEntryData = StartedEntry | PingEntry | StoppedEntry; type WarmPromptCacheFn = (model: Model<any>, context: Context, options?: WarmPromptCacheOptions) => Promise<WarmPromptCacheResult>; export declare const renderCacheKeepAliveEntry: EntryRenderer<CacheKeepAliveEntryData>; export declare function createCacheKeepAliveExtension(dependencies?: { readonly warmPromptCache?: WarmPromptCacheFn; readonly isPromptCachePrewarmModel?: (model: Model<any>) => boolean; }): ExtensionFactory; declare const _default: ExtensionFactory; export default _default; //# sourceMappingURL=index.d.ts.map