{"_id":"@biubiupiu/ai-sdk-tool-parser","_rev":"20-3448d484643336f631076ae60ba6cccc","name":"@biubiupiu/ai-sdk-tool-parser","dist-tags":{"alpha":"2.1.7-biubiupiu.1","latest":"2.7.0"},"versions":{"2.1.2":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.2","keywords":[],"author":"","license":"ISC","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.2","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"229face301d0d46034b992653f26472cdc97da28","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.2.tgz","fileCount":8,"integrity":"sha512-wqF2RNM2p7AVPkJDX2OpZOr5jUhw1DbdVKNUOq1Ik13QEYsv6QSw2qEA+C37a1p1w21a4JNWeSMVRQxfw1Hf1Q==","signatures":[{"sig":"MEUCIQCDUSe5MCDD41OgwyZgQGvEJNdsO+BiO7MFMASmtMT7dAIgEoeHnfMo1XpTLWl9Cw1xPYWi6/oJ12qpBg+1IJnXTeg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":532217},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"6ff6b9df1286a523e1516f056d4ae785761beef7","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"fast-xml-parser":"^5.2.5","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.27","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.2_1756628863011_0.21046191916706292","host":"s3://npm-registry-packages-npm-production"}},"2.1.3":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.3","keywords":[],"author":"","license":"ISC","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.3","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"d419179baba2dbb9c3f9842ebe7846d1dbd864b1","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.3.tgz","fileCount":8,"integrity":"sha512-ZkFSoT7RtbGGRRofzL3OSHsVuCCs+re1nWRsrnVPEb5bU57k9j3cb+I7spneqnjpgiJEd7xZ8Z7Hhrkgqmgz+w==","signatures":[{"sig":"MEQCIGL3Hg92Q6cAwUIKFdT5GdsdZgqxcyuO55ewQfIr7iO9AiAjUnFrUl0G1l9FDLqS3Q2RLZ5g45fi1bbzgRJqt39ISQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":603715},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"088ffae0387183fbbb7e526975e4bc0240033f12","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"fast-xml-parser":"^5.2.5","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.27","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.3_1756636516540_0.2200793730200863","host":"s3://npm-registry-packages-npm-production"}},"2.1.3-alpha.1":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.3-alpha.1","keywords":[],"author":"","license":"ISC","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.3-alpha.1","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"f9b47c337409074de130103f162d46a296a0eca7","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.3-alpha.1.tgz","fileCount":8,"integrity":"sha512-FyoQh2VMiXtRxMMh/iUIgDJ9xUPm6bAID7FHPdJ/CnwRQ/0PBv0oLYA3iwb1tLa8RMKT7fq0O2U4ugZMaaKLlw==","signatures":[{"sig":"MEYCIQD6i5pkqQwGWS4m5lgjr7w1m6h8Jf5q6HEPT6RoNXZ6RQIhANhgopaS0H6oHA92AzWMelWncbgnLXq8Wrd7cocCusi9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":591993},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"9bf72547e6d9887224255dd1369c959a47212881","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"fast-xml-parser":"^5.2.5","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.27","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.3-alpha.1_1756646452458_0.6130874203004737","host":"s3://npm-registry-packages-npm-production"}},"2.1.3-alpha.2":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.3-alpha.2","keywords":[],"author":"","license":"ISC","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.3-alpha.2","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"c2df832b1c9db205addaaca43204ca512d14450f","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.3-alpha.2.tgz","fileCount":8,"integrity":"sha512-LV5lrE42DvOSd1VVJANca8xz43VM7ks3AqLLUjxHYaRV6C4CyHpaaA/G5B1ZLG42jDEorkLnI1l2abBlJfWSHg==","signatures":[{"sig":"MEYCIQCqSgIkaqtT52QqzZQ4+ENUA8GkNUt4bkIQyySHIZVtZQIhAKNmzupjnuviR4P6xPv/8JUkqEqxhEGGxsZERrIlhRwm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":597046},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"15949db1960d28e9d74e3ff80bd88db525fd79ca","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"fast-xml-parser":"^5.2.5","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.27","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.3-alpha.2_1756650717284_0.5060936368060887","host":"s3://npm-registry-packages-npm-production"}},"2.1.3-alpha.3":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.3-alpha.3","keywords":[],"author":"","license":"ISC","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.3-alpha.3","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"63b0bc8ffc5bdf0fd717d46721fdde78fd995a99","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.3-alpha.3.tgz","fileCount":8,"integrity":"sha512-IJ3xKGPTjvh5O7PFrNmYQheCASsjjmwlwsMePKzVv159eYpyCl/2d6wrpy/JLLJaeLZC4MNQVSuVwzup50uY/A==","signatures":[{"sig":"MEUCIQChpATpbh+oBnPUiMOO8C9X3+jxPKmTuNmUDYN/SlzToAIgFA2iEzU5K55Gyd57Hzl72LP4iqkLnXr2/C8n5qLQfRQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":598715},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"94c506c7bdfd5d7134554f057310f9b85a2103e0","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"fast-xml-parser":"^5.2.5","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.27","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.3-alpha.3_1756651408730_0.3908658761533126","host":"s3://npm-registry-packages-npm-production"}},"2.1.3-alpha.4":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.3-alpha.4","keywords":[],"author":"","license":"ISC","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.3-alpha.4","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"ea0eb3a5f0fbdd658d05266facefb7c581985fb1","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.3-alpha.4.tgz","fileCount":8,"integrity":"sha512-qlIEupsscVkKFWZav1MOmJEm0pAXyLYtMzE8TcEKJXQduHg7Yzs4KH4X+bGwYypKe9lrK3e82kCQzep7drUGlg==","signatures":[{"sig":"MEUCIQD25jOvCcQbq/PHUlpnsE5uB4CJ2x20i29KvspXGobsIgIgEXaaIsDV410Mj350mqNvrmZtqlNkA8YkV3C7ARi0Hww=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":608473},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"a06f0aadf934c445c3137f90da68f96e7d8dbbed","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"fast-xml-parser":"^5.2.5","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.27","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.3-alpha.4_1756694843814_0.3214701553989494","host":"s3://npm-registry-packages-npm-production"}},"2.1.7-biuiupiu.1":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.7-biuiupiu.1","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.7-biuiupiu.1","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"da52fe210098b932ab95ddb7deeef0abbbdf0b86","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.7-biuiupiu.1.tgz","fileCount":18,"integrity":"sha512-fEuQsogituE1t6sm9WlKJPZn+EQPYCfsIgDWxdnGoDo0y/utig3GBdQNxEaAbRMAKzQPz1pNh4+M2iWAaVCnGg==","signatures":[{"sig":"MEYCIQDdyTnyTS1UTM9I7d7Eefgiqzk7hkbb9Q257Obmr6gRIgIhANIIxmkBwOtyUJ6U/zvgeOCyQGXLW8bSx8MgKxrEKnbi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":942388},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"gitHead":"3f4265ff622079e2fd32cf32a503685294f207f4","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@ai-sdk/provider":"2.0.0","@ai-sdk-tool/rxml":"workspace:*","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.7-biuiupiu.1_1757226693277_0.5376063315369424","host":"s3://npm-registry-packages-npm-production"}},"2.1.7-biuiupiu.2":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.7-biuiupiu.2","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.7-biuiupiu.2","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"dc096255746d3c7ffb4f04215ae530ea248e18e1","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.7-biuiupiu.2.tgz","fileCount":26,"integrity":"sha512-fjpfLyuxBtd96jBnChSsHTmI4DyT5xw+anoOqVYdaq5MqXNWkXEycb/onBqN5n1K3b+zJUWTYSd1je3sIwJJyw==","signatures":[{"sig":"MEUCIHDVsNqGM5Msjnhi7KEwIdYbLtdireaWjCwVVnitDAl6AiEApeEaKUefhT1XWILoP4VlqYy5DYswrntb5OLsNvgeL4o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1849398},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"gitHead":"3f4265ff622079e2fd32cf32a503685294f207f4","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@ai-sdk/provider":"2.0.0","@ai-sdk-tool/rxml":"0.1.1","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.7-biuiupiu.2_1757234986036_0.8179759689143618","host":"s3://npm-registry-packages-npm-production"}},"2.1.7-biubiupiu.1":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.7-biubiupiu.1","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.7-biubiupiu.1","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"de578db3a98bc5cdd4f9a2fd47a5bd2f6a4c0697","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.7-biubiupiu.1.tgz","fileCount":30,"integrity":"sha512-eeCaaQ4OBdDl04Avy00+llR+T/HlJKzENvs4uhIKCYOed7tFzPemSGvlrCNglN3r2gkyox1raeR0rcCsqpBnfA==","signatures":[{"sig":"MEUCIQDeL04wvVQsCKZePwqgSenk6CVqReepF2Etx7peSgY9OwIgEaI+U3CbMsxOHnjVo1gs2QzfwFPVPCRul8yS+NKLmM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2298218},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"gitHead":"3eef58b56e507d30312d63a38cc8f499ff44206f","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@ai-sdk/provider":"2.0.0","@ai-sdk-tool/rxml":"0.1.1","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","readmeFilename":"README.md","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.7-biubiupiu.1_1757785179850_0.15865058433099377","host":"s3://npm-registry-packages-npm-production"}},"2.1.7-biubiupiu.2":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.7-biubiupiu.2","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.7-biubiupiu.2","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"9a84ec027ac67feb7ebb1282cf8bc78ab62dfc99","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.7-biubiupiu.2.tgz","fileCount":35,"integrity":"sha512-iqwvXzTjFhcnKPbGuyXupHoqao3guHYVYu/WrMrTAXe+R/iraWhM9c3O2j4NZLx9Vd5HIBr7RPJ1ppXsayu9DA==","signatures":[{"sig":"MEYCIQCTLfll/vZFGrZNtz8qHFV4FpSDqhl7O55gu/o3UewxDgIhAKQm8TJCaN2H42KsK1omVs8wI19T5yd18FIvU4f03Vix","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3373493},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.1.7-biubiupiu.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/57c51e9a39193b84508e9ff45c72de82/biubiupiu-ai-sdk-tool-parser-2.1.7-biubiupiu.2.tgz","_integrity":"sha512-iqwvXzTjFhcnKPbGuyXupHoqao3guHYVYu/WrMrTAXe+R/iraWhM9c3O2j4NZLx9Vd5HIBr7RPJ1ppXsayu9DA==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.1.1-biubiupiu.1","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.7-biubiupiu.2_1757816927226_0.8491169589549594","host":"s3://npm-registry-packages-npm-production"}},"2.1.7-biubiupiu.3":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.7-biubiupiu.3","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.7-biubiupiu.3","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"a77342646f35a5631ae888a9b1bcf59fa52fb1a5","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.7-biubiupiu.3.tgz","fileCount":37,"integrity":"sha512-d0r7hrhVbuPMaw+ykCkQgSX9+e3o3kE0QbiNbXha108BnN4Mc1dFjkxm6faFTRUyxVFBo6ND5tx3/f6u617bKw==","signatures":[{"sig":"MEUCIQDVwfRxUW+dRuCjpapqjHoGrnnGFKTyW8nrCDdRYH3zGgIgPukZBrNXK2EI13dhSZScaOi9ipOb0ib92tH7N49CZ4U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3808727},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.1.7-biubiupiu.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/606df764aa07860827fd863a35b34e6a/biubiupiu-ai-sdk-tool-parser-2.1.7-biubiupiu.3.tgz","_integrity":"sha512-d0r7hrhVbuPMaw+ykCkQgSX9+e3o3kE0QbiNbXha108BnN4Mc1dFjkxm6faFTRUyxVFBo6ND5tx3/f6u617bKw==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.1.1-biubiupiu.1","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.7-biubiupiu.3_1757867025586_0.04661735397293065","host":"s3://npm-registry-packages-npm-production"}},"2.1.7-biubiupiu.4":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.1.7-biubiupiu.4","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.1.7-biubiupiu.4","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"41c7f6d20f5a22db4d64704372af05557df1ae59","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.1.7-biubiupiu.4.tgz","fileCount":45,"integrity":"sha512-Szd1YCw3iYV7a6ODgI9oppDNqZy2GJa4kyCIdxd9A43cO306fUI3XspkIlkNsHNudxULnCk9D8ZhoT9HfpgSZA==","signatures":[{"sig":"MEUCIQCcupXdygpaAN6vGmvv+nRB9g7WACT3+JaRGAzjCnH0YgIgYE/jfwtquCoVGxywYvPI3jDKGFJzmM569dwTz3+k1iY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5549057},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.1.7-biubiupiu.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/8a0286fab1d821951f70de454f3c59f0/biubiupiu-ai-sdk-tool-parser-2.1.7-biubiupiu.4.tgz","_integrity":"sha512-Szd1YCw3iYV7a6ODgI9oppDNqZy2GJa4kyCIdxd9A43cO306fUI3XspkIlkNsHNudxULnCk9D8ZhoT9HfpgSZA==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.1.1-biubiupiu.4","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.1.7-biubiupiu.4_1758821858916_0.4804756978694418","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.2.0","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.2.0","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"25cfd95234ffe062b14511dcece902b4990da155","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.2.0.tgz","fileCount":97,"integrity":"sha512-z0LO00Xv5fvfjL5qAijkfNXeYPMKBJqF/GpznSGybQRv5ndsFJ1tAbgr8SU2K1582wFEAhm4wfzG3BZobi1hpQ==","signatures":[{"sig":"MEUCIFeGZODMkDpUh/dLqNhhpST/iKLVjEKxXk2eJTgsGXb5AiEAxw/axnnieP5PD+YW7+EhSO9tMoBk7yuq49uI5pv6gjY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20466787},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/6l/l57x6rd97t1f8kxyzg9vzf840000gn/T/56e917054b0b0fec12a4544d61e3160c/biubiupiu-ai-sdk-tool-parser-2.2.0.tgz","_integrity":"sha512-z0LO00Xv5fvfjL5qAijkfNXeYPMKBJqF/GpznSGybQRv5ndsFJ1tAbgr8SU2K1582wFEAhm4wfzG3BZobi1hpQ==","_npmVersion":"10.2.4","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@biubiupiu/rxml":"0.2.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.2.0_1760427079720_0.7363417939224686","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.3.0","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.3.0","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"3da2ce13d25831f40bdbcc514ce801ead748476e","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.3.0.tgz","fileCount":99,"integrity":"sha512-z/HbFYhUxAxLzR01rRxXWiFPsnL71pn8DbKSoltPICUtgofhVGSY6euyDLWaiPuaodYhYCqdYSzTvR3MYf8ntw==","signatures":[{"sig":"MEYCIQC1FlPpIyQxBv/EGJ7UegcdtagxYnk4IUrxEufrFsoc8QIhAMICR3xVByDRqKXeNaSCKVS44Aa0zC45V+58vsC9DpRk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20912118},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/6l/l57x6rd97t1f8kxyzg9vzf840000gn/T/a835ab5c1af5786333d5272fa4fdc02e/biubiupiu-ai-sdk-tool-parser-2.3.0.tgz","_integrity":"sha512-z/HbFYhUxAxLzR01rRxXWiFPsnL71pn8DbKSoltPICUtgofhVGSY6euyDLWaiPuaodYhYCqdYSzTvR3MYf8ntw==","_npmVersion":"10.2.4","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@biubiupiu/rxml":"0.2.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.3.0_1760848033490_0.1763184218943843","host":"s3://npm-registry-packages-npm-production"}},"2.3.1":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.3.1","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.3.1","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"3fe6ea780b783a69d059f38b19302d167cb71432","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.3.1.tgz","fileCount":65,"integrity":"sha512-tfUpcIvKVRu76QvMFOr5gve247E1E4BKNAiGPVaMZIhCNpTFYaSwjMs97vVUzVx1uEgClQKdBkUEg7vG+yeEVA==","signatures":[{"sig":"MEQCIDn1OCfaabIxC8167lMehF4IhGyTFT8xI8xhHbznLcu4AiBiiKrAZZ5HcMEhhXUzMkc6laiWlrELUTWSWDbOP+93jA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10032443},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.3.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/f2d8df194453e7d38149f092eaf181bb/biubiupiu-ai-sdk-tool-parser-2.3.1.tgz","_integrity":"sha512-tfUpcIvKVRu76QvMFOr5gve247E1E4BKNAiGPVaMZIhCNpTFYaSwjMs97vVUzVx1uEgClQKdBkUEg7vG+yeEVA==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.3.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.3.1_1761497050129_0.4331407238167524","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.4.0","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.4.0","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"5fa4cb315fa84f7fa77f8684350917f35f22f6a0","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.4.0.tgz","fileCount":67,"integrity":"sha512-HA4k0BeVjekUfLQWMFKbNG861hz5W1GhpWypLqlITNJZ+Te2dbErd5vX9wFtHC2hk0D53XRCQtdx+aITE2ubOA==","signatures":[{"sig":"MEQCIDPi/6xyshlgpNfu3Y5WRQzl9vvb10gyVq4HrUVGeRPUAiA/yVUWN6XcsjaFz+0xiqPE2r2sGoUceKNmGwVRR8AkSg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10523470},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.4.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/31bc278aa1973848e2baee6f16dd5ab7/biubiupiu-ai-sdk-tool-parser-2.4.0.tgz","_integrity":"sha512-HA4k0BeVjekUfLQWMFKbNG861hz5W1GhpWypLqlITNJZ+Te2dbErd5vX9wFtHC2hk0D53XRCQtdx+aITE2ubOA==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.3.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.4.0_1761504038620_0.268693823193475","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.5.0","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.5.0","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"d6f0de8eed79ebf465020c25516c3902047e3c65","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.5.0.tgz","fileCount":69,"integrity":"sha512-UulnzsmULEdDtGkMQZEpy9kcjySqwCmtMSUPTlRaKpfdJDMTanJKeC8xEbqCdFT5z7EGNrWqEBYk6gGM50/flg==","signatures":[{"sig":"MEQCIGWNO+FzfCV93SzIhS2cAP36CRAdsuBQHKiR7mo1jItFAiBypfbSS9+PK+1sRMuTR67CnuKfHiehra1f0qq9+vFDlg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10988889},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.5.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/0ba8bd856c3e10752484ecab7489d033/biubiupiu-ai-sdk-tool-parser-2.5.0.tgz","_integrity":"sha512-UulnzsmULEdDtGkMQZEpy9kcjySqwCmtMSUPTlRaKpfdJDMTanJKeC8xEbqCdFT5z7EGNrWqEBYk6gGM50/flg==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.4.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.5.0_1762868841499_0.2742800230431539","host":"s3://npm-registry-packages-npm-production"}},"2.6.0":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.6.0","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.6.0","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"c1787824d5717e975a9eb1cbb4bdecda186a2352","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.6.0.tgz","fileCount":131,"integrity":"sha512-S250XAhYwywDSs8/Oiqd+r21waqn4/7n+ObdTlRkuTrGYu9hzoChBo0yrV9GtKkBr+gKyuQx46nGFzqifKeuwA==","signatures":[{"sig":"MEUCIDPmxOopzBKRQ6CE4ZHsCSKpgHG0PJ+CYwSMQT76bPYQAiEAz2HQjNn2zjiNVBVlnHoZJKbFS+AIrq7eshkOFjPQ+Ro=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25765342},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.6.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/4ed0036fe13b4b8b625a09c494bddf50/biubiupiu-ai-sdk-tool-parser-2.6.0.tgz","_integrity":"sha512-S250XAhYwywDSs8/Oiqd+r21waqn4/7n+ObdTlRkuTrGYu9hzoChBo0yrV9GtKkBr+gKyuQx46nGFzqifKeuwA==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.5.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.6.0_1764179892772_0.20953515304994696","host":"s3://npm-registry-packages-npm-production"}},"2.6.1":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.6.1","keywords":[],"author":"","license":"Apache-2.0","_id":"@biubiupiu/ai-sdk-tool-parser@2.6.1","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"dist":{"shasum":"ed0728ce6354282656189fa0f6952ce0764ceefe","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.6.1.tgz","fileCount":135,"integrity":"sha512-Ml2YDv4DOdq33DPdnTAEufMK+jjZSpwhipYDahxF7k0Ap7ldX/3gBFQQTHA/HBaJxAB4nwUoDOK/2Gh19FtthA==","signatures":[{"sig":"MEQCIFDj8OWNwR2pNxm6dEkWXFHnJjsF/WKAIxHqtBhWu85VAiBi6nUkx6PCZCkm2U+fPGcHVmYrLZzGPAQpLI+oNtRV8g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26720458},"main":"./dist/index.js","type":"module","_from":"file:biubiupiu-ai-sdk-tool-parser-2.6.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts,.tsx","test":"vitest run","build":"tsup","lint:fix":"eslint src tests --ext .ts,.tsx --fix","test:watch":"vitest --watch","check-types":"tsc --noEmit"},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/e56ad1c2699508c25a890ba289a8dcad/biubiupiu-ai-sdk-tool-parser-2.6.1.tgz","_integrity":"sha512-Ml2YDv4DOdq33DPdnTAEufMK+jjZSpwhipYDahxF7k0Ap7ldX/3gBFQQTHA/HBaJxAB4nwUoDOK/2Gh19FtthA==","_npmVersion":"11.3.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","directories":{},"_nodeVersion":"24.1.0","dependencies":{"@biubiupiu/rxml":"0.5.0","@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.4+sha1.64b6e81e79630419b675c555ef3b65607cfd6315","devDependencies":{"ai":"5.0.28","zod":"^4.1.5","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","@types/node":"^24.3.0","@ai-sdk/openai-compatible":"1.0.13","@vitest/coverage-istanbul":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-tool-parser_2.6.1_1764986409114_0.8816421235238754","host":"s3://npm-registry-packages-npm-production"}},"2.7.0":{"name":"@biubiupiu/ai-sdk-tool-parser","version":"2.7.0","description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","type":"module","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./community":{"types":"./dist/community.d.ts","import":"./dist/community.js","require":"./dist/community.cjs"}},"publishConfig":{"access":"public"},"keywords":[],"author":"","license":"Apache-2.0","dependencies":{"@ai-sdk/provider":"2.0.0","@ai-sdk/provider-utils":"3.0.7","@biubiupiu/rxml":"0.5.0"},"devDependencies":{"@ai-sdk/openai-compatible":"1.0.13","@types/node":"^24.3.0","@vitest/coverage-istanbul":"^3.2.4","ai":"5.0.28","tsup":"^8.5.0","vite":"^7.1.3","vitest":"^3.2.4","zod":"^4.1.5"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest --watch","check-types":"tsc --noEmit","lint":"eslint src tests --ext .ts,.tsx","lint:fix":"eslint src tests --ext .ts,.tsx --fix"},"_id":"@biubiupiu/ai-sdk-tool-parser@2.7.0","_integrity":"sha512-00EJEQIvtKusBOAK2Zr1uIwlutqcAq2XNBOm9FhERfDgdys8DWdteYyEz+EAlViTqN8GBfSsDyamLMOCnMUHTQ==","_resolved":"/private/var/folders/vn/mq6vvyb50_v47g75ll_qbtp40000gn/T/83c4a0607b3ae5e54fa4c369370c34a9/biubiupiu-ai-sdk-tool-parser-2.7.0.tgz","_from":"file:biubiupiu-ai-sdk-tool-parser-2.7.0.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-00EJEQIvtKusBOAK2Zr1uIwlutqcAq2XNBOm9FhERfDgdys8DWdteYyEz+EAlViTqN8GBfSsDyamLMOCnMUHTQ==","shasum":"90bc69af4907c2ba51540789f208d1339f43fc12","tarball":"https://registry.npmjs.org/@biubiupiu/ai-sdk-tool-parser/-/ai-sdk-tool-parser-2.7.0.tgz","fileCount":143,"unpackedSize":28655366,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHrO1efKTVY44RiChDDVuN0v2ilZaHJR+EwedjZjqfYwIgO287jaWWMwfXebb4bA0poGDr66IbNc/pXpezWndilgU="}]},"_npmUser":{"name":"biubiupiu","email":"biubiupiu_email@qq.com"},"directories":{},"maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-sdk-tool-parser_2.7.0_1766162916839_0.015447297106867097"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-31T08:27:42.929Z","modified":"2025-12-19T16:48:37.347Z","2.1.2":"2025-08-31T08:27:43.204Z","2.1.3":"2025-08-31T10:35:16.752Z","2.1.3-alpha.1":"2025-08-31T13:20:52.650Z","2.1.3-alpha.2":"2025-08-31T14:31:57.511Z","2.1.3-alpha.3":"2025-08-31T14:43:28.948Z","2.1.3-alpha.4":"2025-09-01T02:47:23.987Z","2.1.7-biuiupiu.1":"2025-09-07T06:31:33.519Z","2.1.7-biuiupiu.2":"2025-09-07T08:49:46.264Z","2.1.7-biubiupiu.1":"2025-09-13T17:39:40.089Z","2.1.7-biubiupiu.2":"2025-09-14T02:28:47.452Z","2.1.7-biubiupiu.3":"2025-09-14T16:23:45.864Z","2.1.7-biubiupiu.4":"2025-09-25T17:37:39.148Z","2.2.0":"2025-10-14T07:31:19.957Z","2.3.0":"2025-10-19T04:27:13.798Z","2.3.1":"2025-10-26T16:44:10.382Z","2.4.0":"2025-10-26T18:40:38.833Z","2.5.0":"2025-11-11T13:47:21.780Z","2.6.0":"2025-11-26T17:58:13.058Z","2.6.1":"2025-12-06T02:00:09.437Z","2.7.0":"2025-12-19T16:48:37.172Z"},"license":"Apache-2.0","keywords":[],"description":"▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)","maintainers":[{"name":"biubiupiu","email":"biubiupiu_email@qq.com"}],"readme":"# AI SDK - tool call parser middleware\n\n▲ Also available in the Vercel AI SDK official documentation: [Custom tool call parser](https://ai-sdk.dev/docs/ai-sdk-core/middleware#custom-tool-call-parser)\n\n[![npm](https://img.shields.io/npm/v/@ai-sdk-tool/parser)](https://www.npmjs.com/package/@ai-sdk-tool/parser)\n[![npm](https://img.shields.io/npm/dt/@ai-sdk-tool/parser)](https://www.npmjs.com/package/@ai-sdk-tool/parser)\n[![codecov](https://codecov.io/gh/minpeter/ai-sdk-tool-call-middleware/branch/main/graph/badge.svg)](https://codecov.io/gh/minpeter/ai-sdk-tool-call-middleware)\n\n> [!NOTE]\n> Requires AI SDK v5. For AI SDK v4, pin `@ai-sdk-tool/parser@1.0.0`.\n\nMiddleware that enables tool calling with models that don’t natively support OpenAI‑style `tools`. Works with any provider (OpenRouter, vLLM, Ollama, etc.) via AI SDK middleware.\n\n## Why This Exists\n\nMany self‑hosted or third‑party model endpoints (vLLM, MLC‑LLM, Ollama, OpenRouter, etc.) don’t yet expose the OpenAI‑style `tools` parameter, forcing you to hack together tool parsing.  \nThis project provides a flexible middleware that:\n\n- Parses tool calls from streaming or batch responses\n- Prebuilt protocols: JSON‑mix (Gemma/Hermes‑style) and Morph‑XML\n- Full control over the tool call system prompt\n\n## Installation\n\n```bash\npnpm add @ai-sdk-tool/parser\n```\n\n## Quickstart (streaming)\n\n```typescript\nimport { createOpenAICompatible } from \"@ai-sdk/openai-compatible\";\nimport { wrapLanguageModel, stepCountIs, streamText } from \"ai\";\nimport { gemmaToolMiddleware } from \"@ai-sdk-tool/parser\";\n\nconst openrouter = createOpenAICompatible({\n  /* ... */\n});\n\nasync function main() {\n  const result = streamText({\n    model: wrapLanguageModel({\n      model: openrouter(\"google/gemma-3-27b-it\"),\n      middleware: gemmaToolMiddleware,\n    }),\n    system: \"You are a helpful assistant.\",\n    prompt: \"What is the weather in my city?\",\n    stopWhen: stepCountIs(4),\n    tools: {\n      get_location: {\n        /* ... */\n      },\n      get_weather: {\n        /* ... */\n      },\n    },\n  });\n\n  for await (const part of result.fullStream) {\n    // handle text/tool events\n  }\n}\n\nmain().catch(console.error);\n```\n\n## Quickstart (generate)\n\n```typescript\nimport { createOpenAICompatible } from \"@ai-sdk/openai-compatible\";\nimport { wrapLanguageModel, generateText } from \"ai\";\nimport { hermesToolMiddleware } from \"@ai-sdk-tool/parser\";\n\nconst openrouter = createOpenAICompatible({\n  /* ... */\n});\n\nasync function main() {\n  const { text } = await generateText({\n    model: wrapLanguageModel({\n      model: openrouter(\"nousresearch/hermes-3-llama-3.1-70b\"),\n      middleware: hermesToolMiddleware,\n    }),\n    prompt: \"Find weather for Seoul today\",\n    tools: {\n      get_weather: {\n        /* ... */\n      },\n    },\n  });\n\n  console.log(text);\n}\n\nmain().catch(console.error);\n```\n\n## Prebuilt middlewares\n\n- `gemmaToolMiddleware` — JSON‑mix format inside markdown fences (markdown code fences)\n- `hermesToolMiddleware` — JSON‑mix format wrapped in `<tool_call>` XML tags.\n- `morphXmlToolMiddleware` — XML format (Morph‑XML protocol).\n\n## Protocols\n\n- `jsonMixProtocol` — JSON function calls in flexible text wrappers.\n- `morphXmlProtocol` — XML element per call, robust to streaming.\n\n## Tool choice support\n\n- `toolChoice: { type: \"required\" }`: forces one tool call. Middleware sets a JSON response schema to validate calls.\n- `toolChoice: { type: \"tool\", toolName }`: forces a specific tool. Provider‑defined tools are not supported; pass only custom function tools.\n- `toolChoice: { type: \"none\" }` is not supported and will throw.\n\n## Examples\n\nSee `examples/parser-core/src/*` for runnable demos (streaming/non‑streaming, tool choice).\n\n## [dev] Contributor notes\n\n- Exported API: `createToolMiddleware`, `gemmaToolMiddleware`, `hermesToolMiddleware`, `morphXmlToolMiddleware`, `jsonMixProtocol`, `morphXmlProtocol`.\n- Debugging:\n  - Set `DEBUG_PARSER_MW=stream` to log raw/parsed chunks during runs.\n  - Set `DEBUG_PARSER_MW=parse` to log original matched text and parsed summary.\n  - Optional `DEBUG_PARSER_MW_STYLE=bg|inverse|underline|bold` to change highlight style.\n- Provider options passthrough: `providerOptions.toolCallMiddleware` fields are merged into protocol options. Internal fields used:\n  - `originalTools`: internal propagation of custom tool schemas.\n  - `toolChoice`: internal fast‑path activation for required/specific tool modes.\n- Transform details: `transformParams` injects a system message built from protocol `formatTools` and clears `tools` since many providers strip/ignore them.\n\n## License\n\nLicensed under Apache License 2.0. See the repository `LICENSE`. Include the `NOTICE` file in distributions.\n","readmeFilename":"README.md"}