/** * pi-boomerang - Token-efficient autonomous task execution * * Executes a task autonomously, then summarizes the exchange using * navigateTree (like /tree does). * * Usage: /boomerang */ import type { ThinkingLevel } from "@earendil-works/pi-agent-core"; import { type ExtensionAPI } from "@earendil-works/pi-coding-agent"; import type { ConfigStorageOptions, ExtensionHostCapabilities } from "../metadata-types.js"; export interface BoomerangConfig { toolEnabled?: boolean; toolGuidance?: string | null; } export declare function installBoomerangBranchSummaryRendererPatch(): void; export declare function resolveBoomerangConfigPath(pathOrOptions?: string | ConfigStorageOptions): { dir: string; path: string; }; export declare function loadBoomerangConfig(pathOrOptions?: string | ConfigStorageOptions): BoomerangConfig; export declare function saveBoomerangConfig(config: BoomerangConfig, pathOrOptions?: string | ConfigStorageOptions): string | null; export declare function extractRethrow(task: string): { task: string; rethrowCount: number; } | null; declare global { var __boomerangCollapseInProgress: boolean | undefined; } interface PromptTemplate { content: string; models: string[]; skill?: string; thinking?: ThinkingLevel; } interface ChainStep { templateRef: string; template: PromptTemplate; args: string[]; } export declare function parseChain(task: string): { steps: Array<{ templateRef: string; args: string[]; }>; globalArgs: string[]; } | null; export declare function getEffectiveArgs(step: ChainStep, globalArgs: string[]): string[]; export interface BoomerangOptions extends ConfigStorageOptions { toolEnabledByDefault?: boolean; enableCommand?: boolean; enableTool?: boolean; enableShortcuts?: boolean; enableAutoMode?: boolean; hostCapabilities?: ExtensionHostCapabilities; } export declare function registerBoomerangExtension(pi: ExtensionAPI, options?: BoomerangOptions): void; export default registerBoomerangExtension; //# sourceMappingURL=index.d.ts.map