{"_id":"@amux.ai/adapter-anthropic","_rev":"4-f818abbc2a4a22d6c1168e2fc9a07892","name":"@amux.ai/adapter-anthropic","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.1":{"name":"@amux.ai/adapter-anthropic","version":"0.1.1","keywords":["amux","llm","anthropic","claude","adapter"],"author":{"name":"isboyjc"},"license":"MIT","_id":"@amux.ai/adapter-anthropic@0.1.1","maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"homepage":"https://github.com/isboyjc/amux#readme","bugs":{"url":"https://github.com/isboyjc/amux/issues"},"dist":{"shasum":"ed3820ea050f513c727c7e39fb652b7b575ad239","tarball":"https://registry.npmjs.org/@amux.ai/adapter-anthropic/-/adapter-anthropic-0.1.1.tgz","fileCount":7,"integrity":"sha512-KkTJE/Z74aCbGVMawqCX7v1xsCy7+YU9kSDdXaVUcUwaZZIQkj1SIdAXXY5CdFg+P0lEh/pTSBfPriksKfHqMA==","signatures":[{"sig":"MEUCICpRjOPq2NDhagW3NyYo3csKubaxyz8BjSjEuoUAzepjAiEAxxgdSIqw3Tlo47N0Qaz/Fl1oXWAdLVF4KKl4ei8RDBs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135240},"main":"./dist/index.cjs","type":"module","_from":"file:amux.ai-adapter-anthropic-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"isboyjc","email":"214930661@qq.com"},"_resolved":"/private/var/folders/40/ydvkbdz503l88ck6kxydy50w0000gn/T/572b8d8c96095128e54c6b98e2e8e8b4/amux.ai-adapter-anthropic-0.1.1.tgz","_integrity":"sha512-KkTJE/Z74aCbGVMawqCX7v1xsCy7+YU9kSDdXaVUcUwaZZIQkj1SIdAXXY5CdFg+P0lEh/pTSBfPriksKfHqMA==","repository":{"url":"git+https://github.com/isboyjc/amux.git","type":"git","directory":"packages/adapter-anthropic"},"_npmVersion":"10.9.2","description":"Anthropic adapter for Amux","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@amux.ai/llm-bridge":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vitest":"^1.2.1","typescript":"^5.3.3","@types/node":"^20.11.5"},"_npmOperationalInternal":{"tmp":"tmp/adapter-anthropic_0.1.1_1769284658551_0.13025864748271831","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@amux.ai/adapter-anthropic","version":"0.1.2","keywords":["amux","llm","anthropic","claude","adapter"],"author":{"name":"isboyjc"},"license":"MIT","_id":"@amux.ai/adapter-anthropic@0.1.2","maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"homepage":"https://github.com/isboyjc/amux#readme","bugs":{"url":"https://github.com/isboyjc/amux/issues"},"dist":{"shasum":"7b8fa3fee34979ede23af49fe9e70a5038f1b318","tarball":"https://registry.npmjs.org/@amux.ai/adapter-anthropic/-/adapter-anthropic-0.1.2.tgz","fileCount":8,"integrity":"sha512-aJ4BQI4gQWugF0y2LKvqHsll2E3FviBqQVFsOGKBIWCXhEsVXeFAn6hEYXtzfrbXyMloXow5NQkmHEDB5+Gabg==","signatures":[{"sig":"MEQCICpuSOf9dNxvGAZG8XkMnKXtxUMpouJoDrTpRUAJVVJoAiAxkfrIJec2OKULo/ip1LV9Zr2KPnkSgrntelDxZTK8kQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":137878},"main":"./dist/index.cjs","type":"module","_from":"file:amux.ai-adapter-anthropic-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"isboyjc","email":"214930661@qq.com"},"_resolved":"/private/var/folders/40/ydvkbdz503l88ck6kxydy50w0000gn/T/49ac19ca1c6fab533c4bae11f2c9cf73/amux.ai-adapter-anthropic-0.1.2.tgz","_integrity":"sha512-aJ4BQI4gQWugF0y2LKvqHsll2E3FviBqQVFsOGKBIWCXhEsVXeFAn6hEYXtzfrbXyMloXow5NQkmHEDB5+Gabg==","repository":{"url":"git+https://github.com/isboyjc/amux.git","type":"git","directory":"packages/adapter-anthropic"},"_npmVersion":"10.9.2","description":"Anthropic adapter for Amux","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@amux.ai/llm-bridge":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vitest":"^1.2.1","typescript":"^5.3.3","@types/node":"^20.11.5"},"_npmOperationalInternal":{"tmp":"tmp/adapter-anthropic_0.1.2_1769294673016_0.8788144545428416","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@amux.ai/adapter-anthropic","version":"0.1.3","keywords":["amux","llm","anthropic","claude","adapter"],"author":{"name":"isboyjc"},"license":"MIT","_id":"@amux.ai/adapter-anthropic@0.1.3","maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"homepage":"https://github.com/isboyjc/amux#readme","bugs":{"url":"https://github.com/isboyjc/amux/issues"},"dist":{"shasum":"2e464309603d20e620c0222dc5c66652c538756b","tarball":"https://registry.npmjs.org/@amux.ai/adapter-anthropic/-/adapter-anthropic-0.1.3.tgz","fileCount":8,"integrity":"sha512-jGDVEFm9qy8JGPui29BAAGxsE3MeKKGROBjJrvkXk2H/QfpRIgqniSOT/6wNkRi4EWV42X7QGdFd912B4j3PGg==","signatures":[{"sig":"MEUCIQDIywBrIRNEy8ysCz9StHvbMnYxa2gwR5uUqdV2/C2OHwIgD8BpzvVjL/t151ynpidxHOBQguL5Dp1np60NYiqD7BE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":137878},"main":"./dist/index.cjs","type":"module","_from":"file:amux.ai-adapter-anthropic-0.1.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"isboyjc","email":"214930661@qq.com"},"_resolved":"/private/var/folders/40/ydvkbdz503l88ck6kxydy50w0000gn/T/2b9a555a8895e3a5c68e714d40e3513d/amux.ai-adapter-anthropic-0.1.3.tgz","_integrity":"sha512-jGDVEFm9qy8JGPui29BAAGxsE3MeKKGROBjJrvkXk2H/QfpRIgqniSOT/6wNkRi4EWV42X7QGdFd912B4j3PGg==","repository":{"url":"git+https://github.com/isboyjc/amux.git","type":"git","directory":"packages/adapter-anthropic"},"_npmVersion":"10.9.2","description":"Anthropic adapter for Amux","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@amux.ai/llm-bridge":"0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vitest":"^1.2.1","typescript":"^5.3.3","@types/node":"^20.11.5"},"_npmOperationalInternal":{"tmp":"tmp/adapter-anthropic_0.1.3_1769632642669_0.39968036319610145","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@amux.ai/adapter-anthropic","version":"0.1.4","description":"Anthropic adapter for Amux","keywords":["amux","llm","anthropic","claude","adapter"],"repository":{"type":"git","url":"git+https://github.com/isboyjc/amux.git","directory":"packages/adapter-anthropic"},"homepage":"https://github.com/isboyjc/amux#readme","bugs":{"url":"https://github.com/isboyjc/amux/issues"},"license":"MIT","author":{"name":"isboyjc"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","dependencies":{"@amux.ai/llm-bridge":"0.3.2"},"devDependencies":{"@types/node":"^20.11.5","tsup":"^8.0.1","typescript":"^5.3.3","vitest":"^1.2.1"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","lint":"eslint src --ext .ts","clean":"rm -rf dist"},"_id":"@amux.ai/adapter-anthropic@0.1.4","_integrity":"sha512-cG0oOaC+cfYFb7I6Qe/Ntibh+Rf7AIAzu06TEfQoYp8niKCJLTPsTMMTqkBcVwu0++QZQl09oh4P9oLjin3Q1w==","_resolved":"/private/var/folders/40/ydvkbdz503l88ck6kxydy50w0000gn/T/a7a94ceae4ab3a230cc899804bdd763d/amux.ai-adapter-anthropic-0.1.4.tgz","_from":"file:amux.ai-adapter-anthropic-0.1.4.tgz","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-cG0oOaC+cfYFb7I6Qe/Ntibh+Rf7AIAzu06TEfQoYp8niKCJLTPsTMMTqkBcVwu0++QZQl09oh4P9oLjin3Q1w==","shasum":"51db06fae60186f8323aa90ec89407c9214d4d04","tarball":"https://registry.npmjs.org/@amux.ai/adapter-anthropic/-/adapter-anthropic-0.1.4.tgz","fileCount":8,"unpackedSize":137878,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFF6daw+eV3aEBLo2vfrggTso1KlrVqq46qZ2IcWCs6eAiBm2GN6pywg9XUrQGIbd9Akz3DYS1ZOEVsg5evFDj6gaw=="}]},"_npmUser":{"name":"isboyjc","email":"214930661@qq.com"},"directories":{},"maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-anthropic_0.1.4_1770213328746_0.7613570470616233"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-24T19:57:38.434Z","modified":"2026-02-04T13:55:29.027Z","0.1.1":"2026-01-24T19:57:38.697Z","0.1.2":"2026-01-24T22:44:33.172Z","0.1.3":"2026-01-28T20:37:22.828Z","0.1.4":"2026-02-04T13:55:28.903Z"},"bugs":{"url":"https://github.com/isboyjc/amux/issues"},"author":{"name":"isboyjc"},"license":"MIT","homepage":"https://github.com/isboyjc/amux#readme","keywords":["amux","llm","anthropic","claude","adapter"],"repository":{"type":"git","url":"git+https://github.com/isboyjc/amux.git","directory":"packages/adapter-anthropic"},"description":"Anthropic adapter for Amux","maintainers":[{"name":"isboyjc","email":"214930661@qq.com"}],"readme":"# @amux.ai/adapter-anthropic\n\n> Anthropic (Claude) adapter for Amux\n\n[![npm version](https://img.shields.io/npm/v/@amux.ai/adapter-anthropic.svg)](https://www.npmjs.com/package/@amux.ai/adapter-anthropic)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Overview\n\nOfficial Anthropic adapter for Amux, providing bidirectional conversion between Anthropic API format and Amux IR (Intermediate Representation).\n\n## Installation\n\n```bash\npnpm add @amux.ai/llm-bridge @amux.ai/adapter-anthropic\n# or\nnpm install @amux.ai/llm-bridge @amux.ai/adapter-anthropic\n```\n\n## Usage\n\n### As Inbound Adapter (Parse Anthropic format)\n\n```typescript\nimport { createBridge } from '@amux.ai/llm-bridge'\nimport { anthropicAdapter } from '@amux.ai/adapter-anthropic'\nimport { openaiAdapter } from '@amux.ai/adapter-openai'\n\nconst bridge = createBridge({\n  inbound: anthropicAdapter,\n  outbound: openaiAdapter,\n  config: {\n    apiKey: process.env.OPENAI_API_KEY\n  }\n})\n\n// Send Anthropic format, receive Anthropic format\nconst response = await bridge.chat({\n  model: 'claude-3-5-sonnet-20241022',\n  messages: [{ role: 'user', content: 'Hello!' }]\n})\n```\n\n### As Outbound Adapter (Call Anthropic API)\n\n```typescript\nimport { createBridge } from '@amux.ai/llm-bridge'\nimport { openaiAdapter } from '@amux.ai/adapter-openai'\nimport { anthropicAdapter } from '@amux.ai/adapter-anthropic'\n\nconst bridge = createBridge({\n  inbound: openaiAdapter,\n  outbound: anthropicAdapter,\n  config: {\n    apiKey: process.env.ANTHROPIC_API_KEY\n  }\n})\n\n// Send OpenAI format, receive OpenAI format\nconst response = await bridge.chat({\n  model: 'gpt-4',\n  messages: [{ role: 'user', content: 'Hello!' }]\n})\n```\n\n## Supported Features\n\n- ✅ Messages API\n- ✅ Streaming\n- ✅ Tool calling\n- ✅ Vision (image inputs)\n- ✅ System prompts\n- ✅ Thinking/Reasoning (extended thinking)\n\n## Supported Models\n\n- `claude-3-5-sonnet-20241022`\n- `claude-3-5-haiku-20241022`\n- `claude-3-opus-20240229`\n- `claude-3-sonnet-20240229`\n- `claude-3-haiku-20240307`\n\n## API Compatibility\n\nThis adapter supports the Anthropic Messages API format. For detailed API documentation, see [Anthropic API Reference](https://docs.anthropic.com/en/api/messages).\n\n## License\n\nMIT © [isboyjc](https://github.com/isboyjc)\n\n## Links\n\n- [Documentation](https://github.com/isboyjc/amux#readme)\n- [GitHub Repository](https://github.com/isboyjc/amux)\n- [Issue Tracker](https://github.com/isboyjc/amux/issues)\n","readmeFilename":"README.md"}