/** * Paperclip `createServerAdapter()` — the official Paperclip external * adapter contract (introduced in `@paperclipai/adapter-utils`). * * The Paperclip "Install External Adapter" UI runs: * * const mod = await import(pkgName); * const adapter = mod.createServerAdapter(); * adapterRegistry[adapter.type] = adapter; * * So this function MUST be the main entry export, and it MUST return * an object that satisfies the `ServerAdapterModule` interface. * * Pure-HTTP adapters (like this one) handle the tool loop in * TypeScript instead of shelling out to a CLI. We: * 1. Translate Paperclip's `AdapterExecutionContext` into our * `execute()` function's argument shape. * 2. Translate our `AdapterResult` back into the * `AdapterExecutionResult` Paperclip persists. */ import type { ServerAdapterModule } from "@paperclipai/adapter-utils"; /** * The Paperclip external-adapter entry point. Returns a module that * the Paperclip plugin loader can register as `adapterRegistry.minimax`. */ export declare function createServerAdapter(): ServerAdapterModule; //# sourceMappingURL=server-adapter.d.ts.map