/** * Paperclip adapter-registry hook. * * The community OpenRouter adapter ships a `REGISTRY_PATCHES.md` with * the exact code to add to `server/src/adapters/registry.ts` in your * Paperclip checkout. We provide the same here. * * This file exports the glue you need: * - `adapterMetadata` — for the registry table * - `minimaxAdapter` — for the dispatcher * - `supportsLocalAgentJwt: true` (set in adapterMetadata) */ import { adapterMetadata, MiniMaxAdapter } from "./adapter.js"; export { adapterMetadata, MiniMaxAdapter }; export declare const minimaxAdapter: { metadata: import("./adapter.js").AdapterMetadata; detectModel(config: import("./types.js").AdapterConfig): Promise; listSkills(workspacePath: string | undefined, skillsDir?: string): Promise; syncSkills(workspacePath: string | undefined, _skillsDir?: string): Promise<{ added: string[]; updated: string[]; removed: string[]; }>; sessionCodec: { serialize(params: Record | null): Record | null; deserialize(raw: unknown): Record | null; getDisplayId(params: Record | null): string | null; }; run(args: { configOverrides?: Partial; agent: import("./types.js").AgentContext; run: import("./types.js").RunContext; issue: import("./types.js").IssueRef; parentChain?: import("./types.js").IssueRef[]; resumeSessionState?: Record; }): Promise; }; /** Patches file to apply to your Paperclip `server/src/adapters/registry.ts`: * * ```diff * import { openrouterAdapter } from "@paperclip-adapter/openrouter"; * import { opencodeLocal } from "../opencode-local/index.js"; * import { claudeLocal } from "../claude-local/index.js"; * +import { minimaxAdapter } from "paperclip-adapter-minimax"; * * export const adapterRegistry = { * openai: openaiAdapter, * anthropic: anthropicAdapter, * opencode: opencodeLocal, * claude: claudeLocal, * openrouter: openrouterAdapter, * + minimax: { ...minimaxAdapter.metadata, run: minimaxAdapter.run.bind(minimaxAdapter) }, * }; * * // The supportsLocalAgentJwt flag is read here: * -if (adapter.supportsLocalAgentJwt) { * +if (adapter.supportsLocalAgentJwt || adapter.name === "minimax") { * // ... mint agent JWT for the run ... * } * ``` */ //# sourceMappingURL=registry.d.ts.map