{"_id":"@the-next-ai/ai-gateway","_rev":"21-f8954411f68f7710b7c03b8d8e43533b","name":"@the-next-ai/ai-gateway","dist-tags":{"latest":"1.0.21"},"versions":{"1.0.0":{"name":"@the-next-ai/ai-gateway","version":"1.0.0","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.0","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"b529ae20613b0699759579e780a4a6add0b81545","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.0.tgz","fileCount":14,"integrity":"sha512-UnSaXp2UfuXAyHw7Vg8jcSt5yiyUh9kimWMVY7GBAajhI1z8fODRrRrDxaz3W2VVm/Gvdwn+xrJBtVlEaxstoA==","signatures":[{"sig":"MEYCIQCQfjXVUH4+eDQOxKjZdZB5GMnNj5heIX5CpT132U+XLgIhAI3y0Svbunj8587QN0OGwnurvk7C2MxnTS4EgOkz6Uxg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2798344},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"3768cf1d578058326bcd1588ed325532d97bf977","scripts":{"dev":"node dev.js","test":"vitest","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","test:coverage":"vitest --coverage","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.27.3","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.0_1782046046636_0.15932699393456495","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@the-next-ai/ai-gateway","version":"1.0.1","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.1","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"2fb7aa07b8769e87e14492dda4359f360fad4ddb","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.1.tgz","fileCount":11,"integrity":"sha512-o752COZV+AV1NiaO9TO7myr3SoeIHL5Cb9ZpPi74vPm1Eo3gP0oSxOzd48WbTQFN5ZP0YPmsMCzEBjqkyTNa9g==","signatures":[{"sig":"MEYCIQCGWQW4bvcacE9owPIdkoHydf+FtwWlOWfY3j7BiviwUwIhAOU9J2qTD2pHU4C8KlD/E4QDoKndtLKNu8Wex1reKOu4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2793043},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"c232d96e2096845cf77586b443f113df0ed44ede","scripts":{"dev":"node dev.js","test":"vitest","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","test:coverage":"vitest --coverage","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.27.3","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.1_1782269806034_0.3780464191196482","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@the-next-ai/ai-gateway","version":"1.0.2","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.2","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"591ddb5fad8bb3daed45ce1520ca83c3cc439631","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.2.tgz","fileCount":12,"integrity":"sha512-K0UiXwyC1i6dpPtQWDndJ1SgwI+zmfGpwqFUWhnVico4dxCt9eph5d9mt0RHcEduZOv4MRBdWDHyHMpxDgSUCw==","signatures":[{"sig":"MEQCIDXlWBzrmVA71EJQvT9xaU94pODsUSqLvYsgm5IMOlQbAiAx6/+2Jpd/OdKWxSJsVrCeZEQYWOYYxxOfbYQftu8KKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2946646},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"23281290c416ec8893859f3120eb2b680c725564","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.2_1782733292469_0.6248964786773328","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@the-next-ai/ai-gateway","version":"1.0.3","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.3","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"a0c814323641a6b3723c323f9ee18a9fe5171e2d","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.3.tgz","fileCount":12,"integrity":"sha512-+cZtmhCB1UbxYpn0EPVHlr4qO6W/yBhMidF/JPYdeNG11uGbxSPY9CnS5rKF1v2B6mrgL65lUzL3VnMK4Iq2Ug==","signatures":[{"sig":"MEUCIGsk1mNEINKWwd7jRmUn/eZuGeMJCsu0BWR0KozPxI8qAiEAll8gI/bYILQigrJ25Ug6wgYNK/QiYebUhmq+Nuxs/zw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2948772},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"c93ceedf3765f1b65581417b4cb314c59b9456e8","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.3_1782906553344_0.018167616558492083","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@the-next-ai/ai-gateway","version":"1.0.4","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.4","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"2ec2929d3c729b681093bcde13f289d4d1d54bcd","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.4.tgz","fileCount":12,"integrity":"sha512-4SVznRNbm4+8acXk3VvinQO1Wv0NvkgrTe5bOijd5J6fE8GXRzwmfKAXM8pJMJJ/s6qLkJ7LJ4LqvuYs7rTABA==","signatures":[{"sig":"MEUCIQDV10GpNpDFwJU95+rd5E/bsi+dXsRhbqTMLtKK1aJOBgIgL1m7AnxBKhdMIi5haYbGpQnzIQk1LegH8u1vVPPLx9U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3148627},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"f8d4bf0f2d787e6bac62e831dc88bb9be03ba01c","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.4_1783089954081_0.2827715896782599","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@the-next-ai/ai-gateway","version":"1.0.5","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.5","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"e97c97d74dc09f61c80b90c06c2da0cea0a01345","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.5.tgz","fileCount":13,"integrity":"sha512-lpVgWpoVUS6QiL5ypowyOycx30aZ2RqLmGG1sanUbOZ69DZzdd/EMNE16IXYMVS3V7LvUqJI2teV4goijXpVpw==","signatures":[{"sig":"MEUCIBus6QbYsMNkDW6aPSAxCXhwccWjl1zC0k574osJzUzcAiEAhXXSlNcd7gV+AP+0MiureMNBWjasDdegHwNmFVpUOc8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3285483},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"4671bada55f878a3cbc3e3f1236e0a1fdd65df55","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.5_1783340650052_0.8284226209953016","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@the-next-ai/ai-gateway","version":"1.0.6","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.6","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"1241a0238f1f9815f33fa2125d09000f5b562d7f","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.6.tgz","fileCount":13,"integrity":"sha512-EIJjwvc//hql1jwE94yyMWNGrJLuCJQlTNgn8p3KWhDYSiOWp4vmLU2Gw3/A+J49X21V7HYdX/W9YuJUai80eQ==","signatures":[{"sig":"MEUCIQDxAiIyIc/IV8Syub80C+B9YB7bTtYBNJBPmZZNDzguaAIgf4Ha2xjHLpsiqDCzkriT6nwQ4R62ahTYa7hWuOEI0Fk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3382240},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"0f651752318d80b539e078a863b8e7f85c970e5e","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.6_1783597654670_0.536358229692619","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@the-next-ai/ai-gateway","version":"1.0.7","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.7","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"d7f08ea222a6f0a77578222c398a593764f73eab","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.7.tgz","fileCount":13,"integrity":"sha512-HJtfjpBgjFEPQ6ub7nFTtEyxzzbrz6V5vQZfJOoHi3Jhpjob3W4h0UenTW6loHanJYucFIEh01SvB//Qj3ulcw==","signatures":[{"sig":"MEUCIAxNwzUK4wvv+Tl+usEFps6y6yCO4/Uat7RHdwd4/NNaAiEAnny5AJ0BMtDpLzkdeMOArcVNFxI3558YBwaZ3qaXetc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3384170},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"bec3dcc1a89687331d83d13e33ec127c13b69ac0","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.7_1783693916398_0.2982576587744048","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@the-next-ai/ai-gateway","version":"1.0.8","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.8","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"46df3ea7f4a7c65c5eba77c13ebe117a305b82cd","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.8.tgz","fileCount":13,"integrity":"sha512-IQKlD39YtK3Uhz0lJSKkXtEWf+fAk8J2YW1H1ARpiXa3Bv6VhrVwV++8J4P9JCqJ46ATbKQQKauhminIsrzEGg==","signatures":[{"sig":"MEQCIAg5RkLWVcJ7uM8W57zk6eXdMg+CiNDLXY1cJfYhMG3TAiA9mJ2RKmWqUtP8kHo+4jsyPTYs/U7G7bM7w2OkGYJVLg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3388040},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"4b20c0cb4b0a2990bd6443639567f614a4f260d4","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.8_1783943972969_0.3465625906623586","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@the-next-ai/ai-gateway","version":"1.0.9","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.9","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"de19f926db685efeb00b5c6d66f3635900da5ada","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.9.tgz","fileCount":13,"integrity":"sha512-/nt/1ZciUgarfyJW6itfDIgKMa8HOgmt0RyPyvmUCDcbJGEEl0BNmd85Zz5boSwT70xcjNojds9DPsQXG7N+sQ==","signatures":[{"sig":"MEUCIHiCB6aJMzU1rOoroduz+qgRzEG+vttmOqm9oiC4PYe4AiEAzQZ+7Sh9sSfUVcBaqvNYyC9gPP91AEzTwBmIohOcxMw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3413611},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"7b9e608848d13fba5bf0bf88e8c7ba450170c22c","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.9_1784029747413_0.37814208107650127","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@the-next-ai/ai-gateway","version":"1.0.10","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.10","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"aee8cba462dd3272ab3053eef8311086c35059d9","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.10.tgz","fileCount":13,"integrity":"sha512-7jarwmnIAUqkPIZgSFCCNAXN52CofQD+oUa3uMaBmkLcOLf61vCNgD7kipo25MSE08795Dz7FcS1+nF5rIRiNQ==","signatures":[{"sig":"MEQCICz+0ugJ7Jg6tzKLTHybG3MdbYsGNn5RmF5GVT9ikc6+AiAZL6Fx5E/u4BWVJ7KrKFQh6evDdOhJ5RhZtRtLlJdJBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3432811},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"f6b58f97e7a59e69029f66cc2726e6c8ce0072f3","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.10_1784205119991_0.9830921140009032","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@the-next-ai/ai-gateway","version":"1.0.12","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.12","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"70dd8f1cccfc981c69b67c9eea5de1679fc13e57","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.12.tgz","fileCount":13,"integrity":"sha512-o092FXo18NwXyetqeS192jBH0dmrklpsFyU3LlOUloXOHODVraniYOUAVXzrhTYzD6pPqvVxAjI/6K2PY6hBQQ==","signatures":[{"sig":"MEYCIQDDk1gIlkKJJ8pqON7mCRLglMG63o8iuY5PVbsaXywGigIhAN08qfZUCLxtl9tIcA9LfNy2kBNpnvVL2tL9wlK9kN5u","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3651473},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"426e8cf2248f170092a034d10440b7a1283c1f5c","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.12_1784462754295_0.9064557525231702","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@the-next-ai/ai-gateway","version":"1.0.13","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.13","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"b6bd6fc60ee19b93f5f53327d7b421af7fc22cdf","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.13.tgz","fileCount":13,"integrity":"sha512-kGctb6T9Hh5g71Pm2sWNUPdmttjbHfOKlf6nXeMT5Tm6o77/9hDqROA5Yl9LCoQMMufzEZmLZIxSkJCDPlyY5g==","signatures":[{"sig":"MEYCIQCc+XO5j2emUd2Zt2o8GL7rBBsvjCVVwJ/kM2jR6RMx4QIhAMMyoImygwlTMrxF1agQKD3t4r+J3RKTut/3TdK69RGY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3651601},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"62afe93fd82b664a8f8db69b73b016e929452c7b","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.2","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.13_1785073737492_0.08574020901852819","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@the-next-ai/ai-gateway","version":"1.0.14","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.14","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"0584b6971094d1516dc8d638eebb412e7d884716","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.14.tgz","fileCount":13,"integrity":"sha512-ZVilhuxEoMxvMdPlVI55q6wm6JfWJyKLh9fS5uIAMZtc6Zzc0vf21coLYoP/hsqoNIQCchzkFgD5I2rHDG1QNA==","signatures":[{"sig":"MEQCIAhORPxKv4o70SsEi0Xnwq0wrPEmsqNo9aTMeoC6ES5oAiAldZP1g9uwgId7imVEt7Ku9rP1laPBN1N2WR5T1B1/zQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3715999},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"092d860d44d22b4f62e620cb5acd5e31c6d5f99a","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.14_1785241086405_0.16322160459224788","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"@the-next-ai/ai-gateway","version":"1.0.15","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.15","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"6b45bf6888d454b21a2cbf35ef40c18f4dc04c5d","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.15.tgz","fileCount":13,"integrity":"sha512-U5SnIBGXHVq0uzzljpUb/hvND5cGehzMZegtvnB8+pRsRTM19yrAsPSaUocolB7JYun7TlKhi+BdOWp5Az17gA==","signatures":[{"sig":"MEYCIQCkk9JgZayOo3msT3THDOSlryjx9nB1iikQhlnYCuQ1GQIhAPf/iZCvSFfDQw2BM7eC9HHCI9sYeFPr9sbyYZVENy5N","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3764111},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"622ba7542e2f8b36230e5c3c5989c366767716f0","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.15_1785483066511_0.6472804723380372","host":"s3://npm-registry-packages-npm-production"}},"1.0.16":{"name":"@the-next-ai/ai-gateway","version":"1.0.16","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.16","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"b1d4fd4f9cdeaa0bdb4adf539fc3b5e07b26a38e","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.16.tgz","fileCount":13,"integrity":"sha512-9umpJ3gGROlXXGBHXHwOdhO9TEcQeG6AlnNmbccaUY5v64czQNFEod23mR31UfqLkv+TpHbKrcDtmuZ5//6S6w==","signatures":[{"sig":"MEQCIHprXaeORIcqzaZ0iI4s/fROGm9n1C0wPPreQlAXxQcpAiAsRZZoko3jhoFVg6nEP6O+oQnPI+TWgTBCQrO8Bj8HVg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3768118},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"09351e71523daabfb149c2d168d74cee1ac16044","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","undici":"^6.28.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.16_1785919600602_0.7744069171327497","host":"s3://npm-registry-packages-npm-production"}},"1.0.17":{"name":"@the-next-ai/ai-gateway","version":"1.0.17","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.17","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"335e2baceddbe073e103fde9b69f0266b5b5aadb","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.17.tgz","fileCount":13,"integrity":"sha512-KwHiWqBGVSQnbQlxZ41jCKqrOrZdzAMlgRB61AJyjenH9M8hMx/dGsRr0I+vNiU+jBvOvyih64eQRPMgO9QHsQ==","signatures":[{"sig":"MEUCIDxFCaS5kVUlCyLWhhHN9fcaeWi8kWSlz/m5bHCeGhVlAiEA/tH76MgomaxkRynbpWbQD2TNTtZhB0UHr7ioMw4/MYo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3786768},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"455f1c1373b18d050c1169623ef3f99dcff7510a","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","undici":"^6.28.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.17_1786699271975_0.37120847218934494","host":"s3://npm-registry-packages-npm-production"}},"1.0.18":{"name":"@the-next-ai/ai-gateway","version":"1.0.18","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.18","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"16e7dda659efe01ed90784861c9db3a0520a3740","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.18.tgz","fileCount":13,"integrity":"sha512-KM9tMXQesW7V8URab97BhFpfABwLPhc6h/ybjaNGcCIg1Yoelu/wB9OjovbIjZO114h/hHvd7c50BSsbv/TdsA==","signatures":[{"sig":"MEUCIQCVgGMn6PRehqMC0A/azBGGbynzXgoNGr3rowR7Eez8LwIgezUtFNDnhQ7mapyZrtZXhyIRBJqKn/q0Ced0fkaaFJg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIE7skGyBqzcuo0LYH4GjajOixpk7ETvz/OpJ98YNeZT+AiEA1o5ROdJD/e234Gww3N0vSrwhUKEujDqf1j2O9BRHJfQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3813842},"main":"dist/index.js","engines":{"node":">=20"},"gitHead":"e650b636b7049d96552d63a7c6f74205fd50b161","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","undici":"^6.28.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.18_1787365686279_0.46475267251202124","host":"s3://npm-registry-packages-npm-production"}},"1.0.19":{"name":"@the-next-ai/ai-gateway","version":"1.0.19","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.19","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"e868d7ca572af7ebc03a299dbc57b1830abfcf34","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.19.tgz","fileCount":236,"integrity":"sha512-JG7NKQutCiLel7Y9auKjLpyuFuPfw4nKeuYw8dWe9I+B1T+lM5BWVT4pENdryTehX6C60kpZ2zyood3eBFR40A==","signatures":[{"sig":"MEUCIQDe/LI3kl1Eb3SK8+GnUZqan6TJQK8DDhuNBxA/pr/PywIgLcaCpk3O5BTX7V+NiOx0E+dRr0EsgSSgXVC2zqxpGig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD4gxgcQj5Hk+MSC+sTTy8DspvrgJ/1Sj4QycCycALPmwIhAJuqGwwE8Qt4wE6rpait1fjJisltF9bDMX7HfQLuW2VD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4851629},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./plugins/sdk":{"types":"./dist/plugins/sdk.d.ts","default":"./dist/plugins/sdk.js"}},"gitHead":"dcc460fdb2030f1c86a396717439c6174c7af502","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"10.9.0","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","undici":"^6.28.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.19_1788333077074_0.07869476742615023","host":"s3://npm-registry-packages-npm-production"}},"1.0.20":{"name":"@the-next-ai/ai-gateway","version":"1.0.20","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"author":"","license":"MIT","_id":"@the-next-ai/ai-gateway@1.0.20","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"b7a701d8e904902d4a5a943a2e9987e78146e448","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.20.tgz","fileCount":238,"integrity":"sha512-twTYSpu2TfvDhK0ynSrPOoiSll+YaPoQn13+Wq2qj295f5q82Hkv5Adcz9NfugklWRLFo+usDWWowhcLCOH1Bg==","signatures":[{"sig":"MEUCIAUWEs9qy0kNDWIxSvzouMzHqBVpthFfrOfykXMbJ0JFAiEA0TPRWbKFlzS+CzcZoeOBUeMdZ/hb1fDp9bvZNjMKT+8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCeyElULUW4GgG/MSvL65xORV43gPQ8Cd3lLUJENB4XcwIgR6ZDOGeTqfCeo0DEyXqL6hbnQATXXFzRBysOcqwQh0U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4898932},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./plugins/sdk":{"types":"./dist/plugins/sdk.d.ts","default":"./dist/plugins/sdk.js"}},"gitHead":"867cd215e4a359bf45b7f125db7d3b8ef5cbb1f9","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"_npmVersion":"11.4.2","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"_nodeVersion":"24.3.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","undici":"^6.28.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-gateway_1.0.20_1788763037618_0.9125761979855804","host":"s3://npm-registry-packages-npm-production"}},"1.0.21":{"_id":"@the-next-ai/ai-gateway@1.0.21","bin":{"next-ai-gateway":"bin/next-ai-gateway.js"},"dist":{"shasum":"d72d1f7e5af2417017e538d4cb2a3590c754f86d","tarball":"https://registry.npmjs.org/@the-next-ai/ai-gateway/-/ai-gateway-1.0.21.tgz","fileCount":238,"integrity":"sha512-iZkW2V1qhEF/cMX8MXnGjOIsSSScsE9WaEfEVZZxsn7lLNykTBJ3VZnN6+iDFBU+P0nK+NO6hSS7I83rBSMnJw==","signatures":[{"sig":"MEYCIQDxKGQqrntv+MXEeJ3pXjGZpmfMulDwDgLjNgmPTwNafQIhALAxK0hFQqV4CC9HdoekX+6nwwyP4L3iT8RmUBUg7XbT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCNJ7DuXYoXExYlBbynqE4F1NK/GUpQdk5ENchf9jWVmQIgITxUl/uuwq8/yc0jXNMfjiwjscr58yrn+ih+JFkWHgQ="}],"unpackedSize":4923935},"main":"dist/index.js","name":"@the-next-ai/ai-gateway","types":"dist/index.d.ts","author":"","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./plugins/sdk":{"types":"./dist/plugins/sdk.d.ts","default":"./dist/plugins/sdk.js"}},"gitHead":"3fd93f8cf519f208a361876a061429b319b11017","license":"MIT","scripts":{"dev":"node dev.js","test":"vitest","bench":"vitest bench","build":"node build.js","start":"node dist/index.js","prepack":"npm run build","release":"node scripts/release.mjs","typecheck":"tsc --noEmit -p tsconfig.build.json","bench:server":"node scripts/benchmark-gateway-server.mjs","test:coverage":"vitest --coverage","typecheck:all":"tsc --noEmit -p tsconfig.json","test:sdk:responses":"node scripts/test-openai-responses-sdk.mjs"},"ts-node":{"compilerOptions":{"module":"CommonJS"}},"version":"1.0.21","_npmUser":{"name":"musistudio","email":"me@jinhui.li"},"keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"_npmVersion":"11.4.2","description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","directories":{},"maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"_nodeVersion":"24.3.0","dependencies":{"ws":"^8.19.0","diff":"^8.0.3","glob":"^13.0.6","openai":"^6.27.0","undici":"^6.28.0","fastify":"^5.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.0.18","esbuild":"^0.28.1","ts-node":"^10.9.2","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/glob":"^8.1.0","@types/node":"^25.3.5","@vitest/coverage-v8":"^4.1.9"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-gateway_1.0.21_1788870456370_0.3819037682123685"}}},"time":{"created":"2026-06-21T12:47:26.497Z","modified":"2026-09-08T12:27:36.853Z","1.0.0":"2026-06-21T12:47:26.797Z","1.0.1":"2026-06-24T02:56:46.206Z","1.0.2":"2026-06-29T11:41:32.666Z","1.0.3":"2026-07-01T11:49:13.530Z","1.0.4":"2026-07-03T14:45:54.306Z","1.0.5":"2026-07-06T12:24:10.224Z","1.0.6":"2026-07-09T11:47:34.843Z","1.0.7":"2026-07-10T14:31:56.630Z","1.0.8":"2026-07-13T11:59:33.171Z","1.0.9":"2026-07-14T11:49:07.611Z","1.0.10":"2026-07-16T12:32:00.215Z","1.0.12":"2026-07-19T12:05:54.446Z","1.0.13":"2026-07-26T13:48:57.719Z","1.0.14":"2026-07-28T12:18:06.572Z","1.0.15":"2026-07-31T07:31:06.719Z","1.0.16":"2026-08-05T08:46:40.784Z","1.0.17":"2026-08-14T09:21:12.193Z","1.0.18":"2026-08-22T02:28:06.427Z","1.0.19":"2026-09-02T07:11:17.197Z","1.0.20":"2026-09-07T06:37:17.742Z","1.0.21":"2026-09-08T12:27:36.477Z"},"license":"MIT","keywords":["ai","gateway","openai","anthropic","gemini","mcp","fastify"],"description":"TypeScript Fastify AI protocol gateway for OpenAI, Anthropic, Gemini, MCP and agent workflows.","maintainers":[{"name":"musistudio","email":"me@jinhui.li"}],"readme":"# Next AI Gateway\n\n[English](README.md)\n\n基于 TypeScript + Fastify 的 AI 协议网关，支持 OpenAI、Anthropic、Gemini、MCP Gateway 与事件驱动 Agent。\n\n## 快速开始\n\n```bash\nnpm install\nnpm run dev\n```\n\n生产运行：\n\n```bash\nnpm run build\nnpm start\n```\n\nDocker Compose：\n\n```bash\nexport AUTH_STATIC_API_KEYS='replace-with-gateway-client-key'\nexport MANAGER_API_KEY='replace-with-manager-admin-key'\nexport OPENAI_API_KEY='sk-...'\nexport MCP_REMOTE_KEY='replace-with-strong-mcp-key'\nexport TOOLHUB_MANAGEMENT_TOKEN='replace-with-toolhub-admin-key'\nexport MINIMAX_API_KEY='replace-with-minimax-api-key'\nexport ANTHROPIC_API_KEY='replace-with-tool-search-provider-key'\ndocker compose up --build\n```\n\n生产 Docker Compose：\n\n```bash\ncp .env.production.example .env.production\n# 编辑 .env.production\ndocker compose --env-file .env.production -f docker-compose.prod.yml up -d --build\n```\n\n多实例部署需要共享状态时，先把 `.env.production` 中的共享状态后端从\n`memory` 改成 `redis`：\n\n```dotenv\nGATEWAY_IDEMPOTENCY_STORAGE_TYPE=redis\nGATEWAY_UPSTREAM_CONCURRENCY_STORAGE_TYPE=redis\nGATEWAY_UPSTREAM_CIRCUIT_BREAKER_STORAGE_TYPE=redis\nGATEWAY_SCHEDULING_STORAGE_TYPE=redis\nPROVIDER_HEALTH_CHECK_STORAGE_TYPE=redis\nPRECHECK_STORAGE_TYPE=redis\n```\n\n然后开启 Redis profile：\n\n```bash\ndocker compose --env-file .env.production -f docker-compose.prod.yml --profile redis up -d --build\n```\n\n## 主要能力\n\n- OpenAI `chat/completions`、`responses`、`embeddings`、`moderations`、`images/generations`\n- Anthropic `messages`\n- Gemini `generateContent` / `streamGenerateContent`\n- 跨协议转换、供应商 fallback、provider plugin、健康检查、指标、幂等、并发隔离、熔断与重试\n- MCP Gateway、MCP WebSocket RPC、事件驱动 Agent\n- HTTP / WebSocket / gRPC / stdio 外部配置源与事件投递\n\n## 文档\n\n- [完整使用文档](docs/usage.md)\n- [外部协议集成](docs/external-protocols.md)\n- [发布与 CI/CD](docs/publishing.md)\n- [MCP WebSocket 部署模板](deploy/mcp-ws/README.md)\n\n## npm 发布\n\n本仓库包含 `.npmignore`、`prepack` 构建、GitHub Actions CI/CD，以及可指定版本发布的 release 命令：\n\n```bash\nnpm run release -- 1.2.3\n```\n\n更多选项见 [发布与 CI/CD](docs/publishing.md)。\n","readmeFilename":"README.zh-CN.md"}