/** * PI host adapter (spec: "PI host adapter"). Registers the `/workflow` command against the real * `@earendil-works/pi-coding-agent` extension API. * * This module is **argument dispatch only** — parse the subcommand, bind the per-invocation store and * agent starter, delegate. Every handler lives in `./commands/`, takes the narrowest context it needs, * and is unit-testable without a PI session. * * `/workflow` reaches this through exactly one door: `pi.registerCommand`. `print`/`json` mode need no * extension-side help to get here — `AgentSession.prompt()` (pi-coding-agent's `agent-session.js`) * dispatches a registered extension command BEFORE it ever emits the `input` event those modes' prompt * path fires on, so a `/workflow …` line piped into either mode is already routed to this same handler * by the harness itself (spec §6.10). */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function piWorkflowsExtension(pi: ExtensionAPI): void; //# sourceMappingURL=extension.d.ts.map