/** * 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 const minimaxAdapter = MiniMaxAdapter; /** 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 ... * } * ``` */