{"_id":"@bp-growth/bot-testing","_rev":"6-fdcabbdf6d7294103f2edabb4dc04b60","name":"@bp-growth/bot-testing","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"@bp-growth/bot-testing","version":"1.0.0","keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"author":{"name":"Botpress Growth Team"},"license":"MIT","_id":"@bp-growth/bot-testing@1.0.0","maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"homepage":"https://github.com/botpress/growth-pv#readme","bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"dist":{"shasum":"5d3c09a90b50d1a1e7921ef9bff6d5713ec457f1","tarball":"https://registry.npmjs.org/@bp-growth/bot-testing/-/bot-testing-1.0.0.tgz","fileCount":38,"integrity":"sha512-svnhZT+2yAUf1hP+sC7Z0iY81udKg6zxv+i0773DWzydOaO72PM9+Wy3yJFrUPJjSnUhUVDEXsyUIyU0QGcajw==","signatures":[{"sig":"MEUCIC0FJ2Wiimyzgq81ze9SSpixf0ICF4iZdPImh45TgQLsAiEA4gFpyOPoX88WpK0DWwCtrd8xGyry+eY9gREhkG3h2yo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45067},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"20.19.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"afc288ecab01f6b90bf665f8cacaf9819ae73b34","scripts":{"build":"tsc","clean":"rm -rf dist","example":"pnpm exec tsx src/examples/example.ts","prebuild":"pnpm run clean","type-check":"tsc --noEmit","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},"repository":{"url":"git+https://github.com/botpress/growth-pv.git","type":"git","directory":"bot-testing-lib"},"_npmVersion":"11.4.2","description":"TypeScript library for testing bot conversations using Zai","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.1.11","@botpress/zai":"^2.1.7","@bpinternal/zui":"^1.1.0","@botpress/client":"^1.24.2","@bp-growth/get-botpress-turn-responses":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","dotenv":"^17.2.2","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bot-testing_1.0.0_1759261449116_0.9580840225102456","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bp-growth/bot-testing","version":"1.0.1","keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"author":{"name":"Botpress Growth Team"},"license":"MIT","_id":"@bp-growth/bot-testing@1.0.1","maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"homepage":"https://github.com/botpress/growth-pv#readme","bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"dist":{"shasum":"c44d2c793372f4957b167a879e38971540579c2f","tarball":"https://registry.npmjs.org/@bp-growth/bot-testing/-/bot-testing-1.0.1.tgz","fileCount":38,"integrity":"sha512-b5GmAsLUiXglN48P1TsyOgTWQkN5q2HaNXh2teaZKBsdhQ0oy09S2EbeoiaLKrSm0G7poWKwrX3g2FSqiUNMNw==","signatures":[{"sig":"MEQCIFtdCsDhG4Q8bR3vEOAP7YcGNsqTvYUlCzxsn3LY7n+BAiB26FvVt8KSOiA7GvlmfW3TfZShmWBx7GFAkYt+7kdUiw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45059},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"20.19.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f24c9a086a833af776613e5c1ea5f80007c67c92","scripts":{"build":"tsc","clean":"rm -rf dist","example":"pnpm exec tsx src/examples/example.ts","prebuild":"pnpm run clean","type-check":"tsc --noEmit","prepublishOnly":"pnpm run build"},"_npmUser":{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},"repository":{"url":"git+https://github.com/botpress/growth-pv.git","type":"git","directory":"bot-testing-lib"},"_npmVersion":"11.4.2","description":"TypeScript library for testing bot conversations using Zai","directories":{},"_nodeVersion":"24.3.0","dependencies":{"zod":"^4.1.11","@botpress/zai":"^2.1.7","@bpinternal/zui":"^1.1.0","@botpress/client":"^1.24.2","@bp-growth/get-botpress-turn-responses":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","dotenv":"^17.2.2","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bot-testing_1.0.1_1759261700105_0.9483654019471246","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bp-growth/bot-testing","version":"1.0.2","keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"author":{"name":"Botpress Growth Team"},"license":"MIT","_id":"@bp-growth/bot-testing@1.0.2","maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"homepage":"https://github.com/botpress/growth-pv#readme","bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"dist":{"shasum":"666477e27393cf024de15183a4bc4d039a21e521","tarball":"https://registry.npmjs.org/@bp-growth/bot-testing/-/bot-testing-1.0.2.tgz","fileCount":30,"integrity":"sha512-jWhB697vrKJOdaokdU8q9muuJ5Kob4yZ+gFggYQdr0KN7T5FluCoeI2PPg0m5x1yI3aKidLc/d5CvThpG7ekgg==","signatures":[{"sig":"MEQCIC3cfpQ5oqYvHwjBx80LzPeSgo8KCqcYdVv00hN/PKFDAiAPJej7XmzlqJHKlyxcy/Hr5X8TQiKryh0CEFa9DtH5yQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41716},"main":"./dist/index.js","type":"module","_from":"file:bp-growth-bot-testing-1.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":"20.19.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc","clean":"rm -rf dist","example":"pnpm exec tsx src/examples/example.ts","prebuild":"pnpm run clean","type-check":"tsc --noEmit"},"_npmUser":{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},"_resolved":"/private/var/folders/hl/kh2f_p9158d9vlrh3zqph4gh0000gn/T/dd7e9be61edb78b3111f0392ca1b8ec5/bp-growth-bot-testing-1.0.2.tgz","_integrity":"sha512-jWhB697vrKJOdaokdU8q9muuJ5Kob4yZ+gFggYQdr0KN7T5FluCoeI2PPg0m5x1yI3aKidLc/d5CvThpG7ekgg==","repository":{"url":"git+https://github.com/botpress/growth-pv.git","type":"git","directory":"bot-testing-lib"},"_npmVersion":"10.8.2","description":"TypeScript library for testing bot conversations using Zai","directories":{},"_nodeVersion":"20.19.5","dependencies":{"zod":"^4.1.11","@botpress/zai":"^2.1.7","@bpinternal/zui":"^1.1.0","@botpress/client":"^1.24.2","@bp-growth/get-botpress-turn-responses":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","dotenv":"^17.2.2","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bot-testing_1.0.2_1759330930080_0.20695925720665365","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@bp-growth/bot-testing","version":"1.1.0","keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"author":{"name":"Botpress Growth Team"},"license":"MIT","_id":"@bp-growth/bot-testing@1.1.0","maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"homepage":"https://github.com/botpress/growth-pv#readme","bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"dist":{"shasum":"856a9fe389b5aa532de9571240c08fe0b9393208","tarball":"https://registry.npmjs.org/@bp-growth/bot-testing/-/bot-testing-1.1.0.tgz","fileCount":37,"integrity":"sha512-ExILWuIJXkR6/JE62d18Hz8zrDGyhp34+5u/TXVpHc6FqsD6BAG9efuMz4Zu968Jez01dQtf6t6ScQEtzn1ujg==","signatures":[{"sig":"MEQCIGeWEAyCTaCbw3Djs4Z954hD3a6tWqWOqCTYkh6x7n9WAiAqa06EWgIL6SFDUqZbqy/d3k9feb2ennfm53cxdrAWuw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61670},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":"20.19.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"11550ee600422367126515924a1a812dd8107542","scripts":{"build":"npm run build:esm && npm run build:cjs && npm run build:types","clean":"rm -rf dist dist-cjs","example":"pnpm exec tsx src/examples/example.ts","prebuild":"npm run clean","build:cjs":"tsc --project tsconfig.cjs.json && npm run fix-cjs-extensions","build:esm":"tsc --project tsconfig.esm.json","type-check":"tsc --noEmit","build:types":"tsc --project tsconfig.types.json","postinstall":"node scripts/patch-zai.cjs","prepublishOnly":"npm run build","fix-cjs-extensions":"node scripts/fix-cjs-extensions.cjs"},"_npmUser":{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},"repository":{"url":"git+https://github.com/botpress/growth-pv.git","type":"git","directory":"bot-testing-lib"},"_npmVersion":"10.8.2","description":"TypeScript library for testing bot conversations using Zai","directories":{},"_nodeVersion":"20.19.5","dependencies":{"zod":"^4.1.11","@botpress/zai":"2.1.1","@bpinternal/zui":"^1.1.0","@botpress/client":"^1.24.2","@bp-growth/get-botpress-turn-responses":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","dotenv":"^17.2.2","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bot-testing_1.1.0_1759333103087_0.41760049921916176","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@bp-growth/bot-testing","version":"1.1.1","keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"author":{"name":"Botpress Growth Team"},"license":"MIT","_id":"@bp-growth/bot-testing@1.1.1","maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"homepage":"https://github.com/botpress/growth-pv#readme","bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"dist":{"shasum":"7b4f264a69fb5c09256c9abbb38bfd004f4187c3","tarball":"https://registry.npmjs.org/@bp-growth/bot-testing/-/bot-testing-1.1.1.tgz","fileCount":34,"integrity":"sha512-CIJFIiAbLxq5Cs7Vzmd/9J3TC+xzfUJhzUmJ3/dYx3XO9tm42Y7ryTfS0Sbckfq8iRLyYSmS857DpNzEI1i53w==","signatures":[{"sig":"MEYCIQDovIk6AyYs3inP7hXdIRILgvlxsPXkScmFm7vbjXaWpQIhAIplY+HfJ4/lkOqv4kvm+41lKtE7dfDOr88vyb/wa0yd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44081},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":"20.19.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"11550ee600422367126515924a1a812dd8107542","scripts":{"build":"npm run build:esm && npm run build:cjs && npm run build:types","clean":"rm -rf dist dist-cjs","example":"pnpm exec tsx src/examples/example.ts","prebuild":"npm run clean","build:cjs":"tsc --project tsconfig.cjs.json","build:esm":"tsc --project tsconfig.esm.json","type-check":"tsc --noEmit","build:types":"tsc --project tsconfig.types.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},"repository":{"url":"git+https://github.com/botpress/growth-pv.git","type":"git","directory":"bot-testing-lib"},"_npmVersion":"10.8.2","description":"TypeScript library for testing bot conversations using Zai","directories":{},"_nodeVersion":"18.20.8","dependencies":{"zod":"^4.1.11","@botpress/zai":"^2.1.10","@bpinternal/zui":"^1.1.0","@botpress/client":"^1.24.2","@bp-growth/get-botpress-turn-responses":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","dotenv":"^17.2.2","typescript":"^5.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bot-testing_1.1.1_1759351719006_0.4189950706406045","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@bp-growth/bot-testing","version":"1.2.2","description":"TypeScript library for testing bot conversations using Zai","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"pnpm run clean && tsc","clean":"rm -rf dist","example":"pnpm exec tsx src/examples/example.ts","type-check":"tsc --noEmit","prepublishOnly":"pnpm run build"},"dependencies":{"@botpress/client":"^1.24.2","@botpress/zai":"^2.1.10","@bp-growth/get-botpress-turn-responses":"^1.0.1","@bpinternal/zui":"^1.1.0","zod":"^4.1.11"},"devDependencies":{"@types/node":"^20.0.0","dotenv":"^17.2.2","tsx":"^4.0.0","typescript":"^5.0.0"},"engines":{"node":"20.19.5"},"keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"author":{"name":"Botpress Growth Team"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/botpress/growth-pv.git","directory":"bot-testing-lib"},"_id":"@bp-growth/bot-testing@1.2.2","gitHead":"ee34d30ee62466c49f74702b5d333783ffb76c73","bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"homepage":"https://github.com/botpress/growth-pv#readme","_nodeVersion":"22.19.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-fni3mxNCRNQnc4GUqE8hfVJc7e/Gb9EevDB4Jjr6DcNRNjrpgKTVoeXDRUBzw2YXdk/dNVLnfbCvWFBCH7IU8A==","shasum":"a87db3747caf28b35ee2a25332cafdf312532d3a","tarball":"https://registry.npmjs.org/@bp-growth/bot-testing/-/bot-testing-1.2.2.tgz","fileCount":38,"unpackedSize":48875,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHgN9AMteEWXINU7z6OIh4Y/3VPfMQNH49Xld6msl5GEAiEAljEMht9zUBibxWEhe3508HuoEJz7KTnoqqVgNKNhnAI="}]},"_npmUser":{"name":"simonnrisk","email":"simonnrisk@gmail.com"},"directories":{},"maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bot-testing_1.2.2_1760126378520_0.9926606675686753"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-30T19:44:09.025Z","modified":"2025-10-10T19:59:38.981Z","1.0.0":"2025-09-30T19:44:09.309Z","1.0.1":"2025-09-30T19:48:20.311Z","1.0.2":"2025-10-01T15:02:10.262Z","1.1.0":"2025-10-01T15:38:23.281Z","1.1.1":"2025-10-01T20:48:39.257Z","1.2.2":"2025-10-10T19:59:38.698Z"},"bugs":{"url":"https://github.com/botpress/growth-pv/issues"},"author":{"name":"Botpress Growth Team"},"license":"MIT","homepage":"https://github.com/botpress/growth-pv#readme","keywords":["botpress","conversation","testing","chatbot","ai","zai","typescript"],"repository":{"type":"git","url":"git+https://github.com/botpress/growth-pv.git","directory":"bot-testing-lib"},"description":"TypeScript library for testing bot conversations using Zai","maintainers":[{"name":"bp.patrick","email":"patrick.hamelin@botpress.com"},{"name":"nabilbotpress","email":"nabil.muzafar@botpress.com"},{"name":"simonnrisk","email":"simonnrisk@gmail.com"},{"name":"ermekbotpress","email":"ermek.barmashev@botpress.com"},{"name":"maanav_rajesh","email":"maanav.rajesh@botpress.com"}],"readme":"# Bot Testing Library\n\nA TypeScript library for testing Botpress bot conversations using AI-powered evaluation with Zai.\n\n## Installation\n\n```bash\nnpm install @bp-growth/bot-testing\n```\n\n## Quick Start\n\n```typescript\nimport {\n  testConversations,\n  BotConfiguration,\n  ConversationWithTests,\n} from \"@bp-growth/bot-testing\";\n\nconst conversationsWithTests: ConversationWithTests[] = [\n  {\n    conversation: [\n      { source: \"user\", message: \"Hello\" },\n      { source: \"user\", message: \"Can you compare product A with product B?\" },\n    ],\n    tests: [\n      { type: \"accuracy\", test: \"should mention product A features\" },\n      { type: \"completeness\", test: \"should compare both products\" },\n    ],\n  },\n];\n\nconst config: BotConfiguration = {\n  botId: \"your_bot_id\",\n  token: \"your_token\",\n  workspaceId: \"your_workspace_id\",\n};\n\nconst results = await testConversations({ conversationsWithTests, config });\nconsole.log(results.summary);\n```\n","readmeFilename":"README.md"}