/** * Pre-Write Linting Extension * * Intercepts `write` and `edit` tool calls for TypeScript files (.ts, .tsx), * calculates the change complexity using a temp file, and runs `tsc --noEmit` * on the real file with the project's compiler options (extracted from tsconfig.json, * no `extends`). If compilation fails, errors are injected into the tool result. * The change is always applied — the model sees the errors and the modified file. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function (pi: ExtensionAPI): void;