/** * Task Tool — Delegate complex work to specialist agents. * * Spawns pi CLI in a tmux split pane (foreground) or background. * Completion is detected from the subagent's final assistant message * in the persistent session JSONL (stopReason gating). The final message * is the authoritative result; no RESULT.md is used. * * Three agent sources: * - .pi/agents/*.md project-local agents * - ~/.pi/agent/agents/*.md user-global agents (fallback) * * P0: Persistent task registry (appendEntry + JSON), --session resume, * sendMessage completion notification, Ctrl+O expand/collapse. * P1: Foreground mode (background:false), pane death detection, timeout. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function (pi: ExtensionAPI): void;