/** * pi-ai bridge — wraps @mariozechner/pi-ai provider implementations as * clawtools Connector objects. * * This module is **not imported at runtime directly**. It is compiled and * bundled at build time (via `scripts/bundle-core-connectors.mjs`) into * `dist/core-connectors/builtins.js` with all provider SDKs and pi-ai code * inlined. At runtime, `discoverBuiltinConnectors()` dynamically imports * that bundle. * * ## Event mapping * * pi-ai `AssistantMessageEvent` → clawtools `StreamEvent`: * * | pi-ai | clawtools | * |--------------------------|------------------------| * | start | start | * | text_start | (skipped — no content) | * | text_delta | text_delta | * | text_end | text_end | * | thinking_start | (skipped — no content) | * | thinking_delta | thinking_delta | * | thinking_end | thinking_end | * | toolcall_start | toolcall_start (+ id?) | * | toolcall_delta | toolcall_delta | * | toolcall_end | toolcall_end | * | done | done (with usage) | * | error | error | * * @module */ import type { Connector } from "../types.js"; /** * Return built-in connectors backed by `@mariozechner/pi-ai` provider * implementations. * * One `Connector` is created per provider in the pi-ai model catalog (e.g. * `anthropic`, `openai`, `google`, `amazon-bedrock`, …). Each connector * exposes the full model list and a working `stream()` function. * * @returns Array of connectors — one per pi-ai provider. */ export declare function getBuiltinConnectors(): Connector[]; //# sourceMappingURL=pi-ai-bridge.d.ts.map