/** * SLOPE Extension for pi coding agent * * Registers SLOPE tools and enforces guards via Pi's event system. * Install: pi install . (project-local) or pi install npm:@slope-dev/slope */ import type { ExtensionAPI } from '@mariozechner/pi-coding-agent'; export declare function isVaguePrompt(prompt: string): boolean; export default function slopeExtension(pi: ExtensionAPI, _cwdOverride?: string): void; export type ModelTier = 'local-coder' | 'local-general' | 'local-planner' | 'cloud'; export interface RouterState { currentTier: ModelTier; turnsSinceSwitch: number; lastSwitchReason: string; /** Set by doSwitch when entering local-planner; consumed by the vague-prompt detector (T3). */ plannerPreambleStaged?: boolean; } export interface ComplexityResult { /** Recommended tier for this prompt. */ tier: ModelTier; /** Cloud-escalation score on the existing 0–5 scale. */ score: number; /** Human-readable top reason for the tier choice. */ signal: string; } export declare function scoreComplexity(prompt: string): ComplexityResult; export declare function doSwitch(tier: ModelTier, reason: string, ctx: any, pi: ExtensionAPI, state: RouterState): Promise;