/** * SlopeExecutor — custom agentic tool loop using the Anthropic Messages API. * * Implements ExecutorAdapter with: * - 6 tools: read_file, write_file, edit_file, bash, glob, grep * - Token/cost tracking from response.usage * - Full transcript recording * - Stuck detection (repeated identical tool calls) * - Timeout enforcement */ import type { ExecutorAdapter, ExecutionContext, LoopConfig, BacklogTicket } from './types.js'; import type { Logger } from './logger.js'; export declare function safePath(relPath: string, cwd: string): string; export declare function resolveModelId(model: string): string; export declare function lookupCost(modelId: string): { in: number; out: number; }; export declare const slopeExecutor: ExecutorAdapter; export declare function buildSystemPrompt(ctx: ExecutionContext, config: LoopConfig, cwd: string): string; /** * Build SLOPE sprint context for injection into the system prompt. * Each section is independently wrapped in try/catch for graceful degradation. */ export declare function buildSlopeContext(ticket: BacklogTicket, config: LoopConfig, cwd: string, guideWordCount?: number): string; /** * Extract the relevant section from CODEBASE.md based on module paths. */ export declare function extractMapSection(mapContent: string, modules: string[]): string | null; export interface ToolResult { output: string; isError: boolean; } export declare function runTool(name: string, input: Record, cwd: string, log: Logger): ToolResult; //# sourceMappingURL=slope-executor.d.ts.map