{"_id":"@best-agent/testing","_rev":"2-dadeeb0460ef7e05c7d7f47abc336dda","name":"@best-agent/testing","dist-tags":{"beta":"0.0.1-beta.1","latest":"0.0.2-beta.8"},"versions":{"0.0.1-beta.1":{"name":"@best-agent/testing","version":"0.0.1-beta.1","_id":"@best-agent/testing@0.0.1-beta.1","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"dist":{"shasum":"bd27d4cebb9447735287ef3c0ccb9e5bae3bbefe","tarball":"https://registry.npmjs.org/@best-agent/testing/-/testing-0.0.1-beta.1.tgz","fileCount":49,"integrity":"sha512-WP84OzCXGM4TLCSpKc5Ow4KaSv2Q6RJZqaYp8iOBY5oxkTdLa3KD73SZjleGYDVaitX9ejM9EppLG/bi+GgF4A==","signatures":[{"sig":"MEUCIQDbBN4n4FOpODYLq/38bAkldhK0soAWZNL48nBboTO1vwIgBjAzea3WdwbQqalMv7Tt7+pFNP6pkRR/l1hXYqVu8No=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":781667},"main":"./dist/index.js","type":"module","_from":"file:best-agent-testing-0.0.1-beta.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"release":"pnpm -w build && pnpm publish --access public --no-git-checks"},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"_resolved":"/private/var/folders/z8/w1qvd0cd46z6k8_swl1n33d00000gn/T/8fb7a82a92e637992e57d17927d2c500/best-agent-testing-0.0.1-beta.1.tgz","_integrity":"sha512-WP84OzCXGM4TLCSpKc5Ow4KaSv2Q6RJZqaYp8iOBY5oxkTdLa3KD73SZjleGYDVaitX9ejM9EppLG/bi+GgF4A==","_npmVersion":"10.9.2","description":"Shared test helpers and fixtures for the monorepo.","directories":{},"_nodeVersion":"23.11.0","dependencies":{"vitest":"^3.2.4","@best-agent/sdk-ts":"0.0.1-beta.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/testing_0.0.1-beta.1_1779708603395_0.7468220125302156","host":"s3://npm-registry-packages-npm-production"}},"0.0.2-beta.8":{"name":"@best-agent/testing","version":"0.0.2-beta.8","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"dependencies":{"vitest":"^3.2.4","@best-agent/sdk-ts":"0.0.2-beta.8"},"scripts":{"release":"pnpm -w build && pnpm publish --access public --no-git-checks"},"_id":"@best-agent/testing@0.0.2-beta.8","description":"Shared test helpers and fixtures for the monorepo.","_integrity":"sha512-9gcMrq9RKYGIS5Vb6wDV030tmLExNVvXpCre8wNoWrNRiZ8mM/4+Y2odtTTpR/LeeVc1D+/8sQf5F9KHGvSLNw==","_resolved":"/private/var/folders/z8/w1qvd0cd46z6k8_swl1n33d00000gn/T/23d7c36810a280309890f6683c3eb827/best-agent-testing-0.0.2-beta.8.tgz","_from":"file:best-agent-testing-0.0.2-beta.8.tgz","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9gcMrq9RKYGIS5Vb6wDV030tmLExNVvXpCre8wNoWrNRiZ8mM/4+Y2odtTTpR/LeeVc1D+/8sQf5F9KHGvSLNw==","shasum":"39d312467ceecc7fe33bc44fcb8e3c15c21de7a3","tarball":"https://registry.npmjs.org/@best-agent/testing/-/testing-0.0.2-beta.8.tgz","fileCount":49,"unpackedSize":781667,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtZtrCHJNoaI9FDS/M0+j7VrU0/EXKCBNB3e1LXXjaYQIhAIkHSg06kVdqHSOCawdYyGRmg11qykWiXzbm8BoVxTi+"}]},"_npmUser":{"name":"simon_he","email":"13917107469@163.com"},"directories":{},"maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/testing_0.0.2-beta.8_1780387111669_0.22811551300272992"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T11:30:03.269Z","modified":"2026-06-02T07:58:31.951Z","0.0.1-beta.1":"2026-05-25T11:30:03.544Z","0.0.2-beta.8":"2026-06-02T07:58:31.806Z"},"description":"Shared test helpers and fixtures for the monorepo.","maintainers":[{"name":"simon_he","email":"13917107469@163.com"}],"readme":"# @best-agent/testing\n\nShared test helpers and fixtures for the monorepo.\n\n## Main Exports\n\n- `createCliClient(options?)`\n- `createCliTestClient(options?)`\n- `createCliDaemonTestClient(options?)`\n- `TestClientHandle`\n\n## Features\n\n- creates SDK clients that talk to the built CLI server entrypoint\n- creates daemon-backed SDK clients that talk to the built CLI daemon entrypoint\n- clears provider env vars by default so tests do not accidentally hit real providers\n- creates temporary `storageRoot` directories and cleanup helpers for end-to-end tests\n\n## Example\n\n```ts\nimport { createCliTestClient } from \"@best-agent/testing\";\n\nconst handle = createCliTestClient();\n\ntry {\n  await handle.client.initialize(\"tests\", \"0.0.0\");\n  const { thread } = await handle.client.startThread();\n  const result = await handle.client.run(thread.id, 'tool:echo {\"text\":\"hello\"}');\n  console.log(result.turn.status);\n} finally {\n  handle.cleanup();\n}\n```\n\n## Does Not Own\n\n- production runtime code\n- public SDK surface\n\nKeep test-only plumbing here instead of duplicating it across packages.\n","readmeFilename":"README.md"}