UNPKG

@code-yeongyu/senpi

Version:

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

23 lines • 935 B
import type { Tool } from "@earendil-works/pi-ai"; import type { ExtensionAPI, ExtensionContext } from "../../types.ts"; import type { EmergencyPruneLatch } from "./emergency-prune.ts"; import type { CompactionYieldSnapshot } from "./state.ts"; export declare function registerContextReductionLifecycle(pi: ExtensionAPI, options: { emergencyPruneLatch: EmergencyPruneLatch; emergencyInstructions: string; getTools: () => Tool[]; getPolicy: (ctx: ExtensionContext) => { lastYield?: CompactionYieldSnapshot; breakerTripped: boolean; laneOwnsCompaction: boolean; appendOnlyTranscript: boolean; }; logEmergencyPrune: (ctx: ExtensionContext, fields: { tokensBefore: number; tokens: number; }) => void; logBreakerFallback: (ctx: ExtensionContext, tokens: number) => void; }): { reset: () => void; }; //# sourceMappingURL=context-reduction-lifecycle.d.ts.map