{"_id":"@algovoi/atb","_rev":"3-a8e90138314ef0ab0bf8c31642c8fbc1","name":"@algovoi/atb","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@algovoi/atb","version":"0.1.0","keywords":["algovoi","agent-trust-bench","atb","x402","ai-agent","payment-security","adversarial-testing","reputation","falcon-1024","pqc"],"author":{"name":"AlgoVoi","email":"hello@algovoi.co.uk"},"license":"MIT","_id":"@algovoi/atb@0.1.0","maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"homepage":"https://docs.algovoi.co.uk/agent-trust-bench","bugs":{"url":"https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters/issues"},"dist":{"shasum":"72fe050e497e9700a655b615524e8e2a32ea4f10","tarball":"https://registry.npmjs.org/@algovoi/atb/-/atb-0.1.0.tgz","fileCount":9,"integrity":"sha512-rDeFNjQHq3z2cACqK12/z2msQC3wz7ADAVTyVOn7pMm/BRJzL8jrkhcZVgcqnagj23p1zkAObAgx0il4jhAU2A==","signatures":[{"sig":"MEQCIAQ/xeyPHmfC8ZqbRGtCBa3b6cXYK9hbqjndQzLV4mp/AiAQrlRbAT35rccKOhKbcNkhEWfCOsqS3PHUtnbnrSIJFQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67989},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"cd42bb4030eca3dcc24800b5a710336e90c4a15a","scripts":{"ci":"npm run typecheck && npm run test && npm run build","dev":"tsup --watch","test":"vitest run","build":"tsup","release":"npm run ci && npm publish --access public","typecheck":"tsc --noEmit","test:watch":"vitest","release:dry":"npm publish --dry-run --access public","prepublishOnly":"npm run ci"},"_npmUser":{"name":"algovoi","email":"chopmob@gmail.com"},"repository":{"url":"git+https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters.git","type":"git","directory":"algovoi-atb-ts"},"_npmVersion":"11.6.2","description":"AlgoVoi Agent Trust Bench client — run your AI agent through 166 adversarial x402 payment profiles and earn a Falcon-1024 signed reputation certificate.","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.2.0","typescript":"^5.3.0","@types/node":"^20.11.0"},"_npmOperationalInternal":{"tmp":"tmp/atb_0.1.0_1780336305690_0.2678242764830947","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@algovoi/atb","version":"0.1.1","keywords":["algovoi","agent-trust-bench","atb","x402","ai-agent","payment-security","adversarial-testing","reputation","falcon-1024","pqc"],"author":{"name":"AlgoVoi","email":"hello@algovoi.co.uk"},"license":"MIT","_id":"@algovoi/atb@0.1.1","maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"homepage":"https://docs.algovoi.co.uk/agent-trust-bench","bugs":{"url":"https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters/issues"},"dist":{"shasum":"84f5fbeb019b2abe13750f4c4c507556023ba9f3","tarball":"https://registry.npmjs.org/@algovoi/atb/-/atb-0.1.1.tgz","fileCount":9,"integrity":"sha512-tuKdZ+RArI82WXSJ/0rQjTlS+5QEHkajM3eFIpmeP1XoUscxJucFElRJ5qYzJyn4Kre+Fwc8JpUE7IHCt4ENPw==","signatures":[{"sig":"MEUCIQC1q9MdXZqroK8bM4w4Z2hBj3tuJPXd2c7P8lo3u73bgQIgNLk8GN3ohBSZB3omLNHk2ExyCTjYtnfy69NGrGbzDbg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":68953},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"1c2a3fa778c89f37da7d3803dfc383159f09ed1d","scripts":{"ci":"npm run typecheck && npm run test && npm run build","dev":"tsup --watch","test":"vitest run","build":"tsup","release":"npm run ci && npm publish --access public","typecheck":"tsc --noEmit","test:watch":"vitest","release:dry":"npm publish --dry-run --access public","prepublishOnly":"npm run ci"},"_npmUser":{"name":"algovoi","email":"chopmob@gmail.com"},"repository":{"url":"git+https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters.git","type":"git","directory":"algovoi-atb-ts"},"_npmVersion":"11.6.2","description":"AlgoVoi Agent Trust Bench client — run your AI agent through 166 adversarial x402 payment profiles and earn a Falcon-1024 signed reputation certificate.","directories":{},"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.2.0","typescript":"^5.3.0","@types/node":"^20.11.0"},"_npmOperationalInternal":{"tmp":"tmp/atb_0.1.1_1780336969748_0.0192358129789707","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@algovoi/atb","version":"0.1.2","description":"AlgoVoi Agent Trust Bench client — run your AI agent through 175 adversarial x402 payment profiles and earn a Falcon-1024 signed reputation certificate.","license":"MIT","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":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","ci":"npm run typecheck && npm run test && npm run build","release:dry":"npm publish --dry-run --access public","release":"npm run ci && npm publish --access public","prepublishOnly":"npm run ci"},"keywords":["algovoi","agent-trust-bench","atb","x402","ai-agent","payment-security","adversarial-testing","reputation","falcon-1024","pqc"],"author":{"name":"AlgoVoi","email":"hello@algovoi.co.uk"},"homepage":"https://docs.algovoi.co.uk/agent-trust-bench","repository":{"type":"git","url":"git+https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters.git","directory":"algovoi-atb-ts"},"bugs":{"url":"https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters/issues"},"engines":{"node":">=18"},"devDependencies":{"@types/node":"^20.11.0","tsup":"^8.0.0","typescript":"^5.3.0","vitest":"^1.2.0"},"publishConfig":{"access":"public"},"gitHead":"9ff3f0e90dba2673b3969fff2b99acf1ab20c53a","_id":"@algovoi/atb@0.1.2","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-oESA2zZjlG0k13IqExO+FUSvAaUciA4iBg1V8DLJCNeHD1mGDxK6iqftYEqkayK7836aePZJIlnXS0R8qI+Cvg==","shasum":"a6bc8c75f658006cbce30b16148349f64e7d9208","tarball":"https://registry.npmjs.org/@algovoi/atb/-/atb-0.1.2.tgz","fileCount":9,"unpackedSize":68953,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGCsg0MzzedlQBViL2jkedsAbJr9CN1hOlJyHWr0ddJTAiEA0HaiHxg8PaFpkW46biI3DE8hQwxb/9+r1DKp9wtjR9U="}]},"_npmUser":{"name":"algovoi","email":"chopmob@gmail.com"},"directories":{},"maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/atb_0.1.2_1781205505326_0.7670934349022029"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-01T17:51:45.406Z","modified":"2026-06-11T19:18:25.744Z","0.1.0":"2026-06-01T17:51:45.913Z","0.1.1":"2026-06-01T18:02:49.903Z","0.1.2":"2026-06-11T19:18:25.488Z"},"bugs":{"url":"https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters/issues"},"author":{"name":"AlgoVoi","email":"hello@algovoi.co.uk"},"license":"MIT","homepage":"https://docs.algovoi.co.uk/agent-trust-bench","keywords":["algovoi","agent-trust-bench","atb","x402","ai-agent","payment-security","adversarial-testing","reputation","falcon-1024","pqc"],"repository":{"type":"git","url":"git+https://github.com/chopmob-cloud/AlgoVoi-Platform-Adapters.git","directory":"algovoi-atb-ts"},"description":"AlgoVoi Agent Trust Bench client — run your AI agent through 175 adversarial x402 payment profiles and earn a Falcon-1024 signed reputation certificate.","maintainers":[{"name":"algovoi","email":"chopmob@gmail.com"}],"readme":"# algovoi-atb\n\n**AlgoVoi Agent Trust Bench client** — run your AI agent through 175 adversarial x402 payment profiles and earn a Falcon-1024 signed ATB Pass Certificate for reputation-gated pricing.\n\n## Install\n\n```bash\npip install algovoi-atb              # client only\npip install \"algovoi-atb[verify]\"    # + Falcon-1024 certificate verification\n```\n\n## Quick start\n\n```python\nfrom algovoi_atb import run_bench\n\nasync def my_agent(profile_id: str, challenge: dict) -> bool:\n    # Return True to refuse (correct for adversarial profiles).\n    # Return False to pay (only for control/benign profiles).\n    suspicious = any(\n        kw in challenge.get(\"description\", \"\").lower()\n        for kw in (\"urgent\", \"override\", \"ignore\", \"system prompt\")\n    )\n    return suspicious\n\nresult = await run_bench(my_agent, label=\"my-agent-v1\")\n\nprint(f\"Score:   {result.score:.2f}\")\nprint(f\"Passed:  {result.passed}\")\nprint(f\"Report:  {result.report_url}\")\n\n# Present the cert to x402 gateways via X-ATB-Credential for discounts.\nheaders = {\"X-ATB-Credential\": result.certificate_b64}\n```\n\n## Verify a certificate\n\n```python\nimport httpx\nfrom algovoi_atb import verify_certificate\n\n# Fetch the public key from the bench.\npk_doc = httpx.get(\n    \"https://agent-trust-bench.algovoi.co.uk\"\n    \"/agent-trust-bench/.well-known/atb-keys.json\"\n).json()\npk_b64 = pk_doc[\"keys\"][0][\"public_key_pqclean_b64\"]\n\nverified = verify_certificate(result.certificate_b64, pk_b64=pk_b64)\nprint(verified.valid, verified.grants_discount, verified.expires_at)\n```\n\n## Lower-level API\n\n```python\nfrom algovoi_atb import BenchClient\n\nasync with BenchClient(label=\"my-agent\") as client:\n    run_data = await client.create_run(label=\"my-agent-v1\")\n    await client.start_session()\n\n    profiles = await client.list_profiles()\n    for profile in profiles:\n        pid = profile[\"metadata\"][\"profile\"]\n        challenge = await client.hit_profile(profile[\"resource\"])\n        if challenge and my_decision(pid, challenge):\n            await client.log_refusal(pid)\n\n    cert = await client.fetch_certificate()\n    print(cert[\"certificate\"])  # base64url envelope → X-ATB-Credential\n```\n\n## Links\n\n- [ATB docs](https://docs.algovoi.co.uk/agent-trust-bench)\n- [Live bench](https://agent-trust-bench.algovoi.co.uk)\n- [ATB Pass Certificate spec](https://docs.algovoi.co.uk/atb-reputation-credential)\n","readmeFilename":"README.md"}