/** * pi-reasonix — Main extension entry point. * * A pi extension that applies DeepSeek-native optimisations harvested from * Reasonix (esengine/DeepSeek-Reasonix): * * Pillar 1 — Cache-First Loop (prefix stabilisation → ~94% cache hit) * Pillar 2 — Tool-Call Repair (scavenge, flatten, truncation, storm) * Pillar 3 — Cost Control (turn-end compaction, flash-first) * * The extension activates automatically when the current model is a * DeepSeek model (deepseek-chat, deepseek-reasoner, deepseek-v4, etc.). * * Detection happens at three levels: * 1. Init-time: reads pi's defaultModel from settings.json * 2. model_select: fires when user switches model via /model * 3. before_provider_request: fires before each API call (fallback) */ import type { ExtensionAPI } from "@earendil-works/Pi-coding-agent"; export default function (pi: ExtensionAPI): Promise;