{"_id":"@agent-testkit/server","_rev":"2-c58008e9c522b076321a151351619081","name":"@agent-testkit/server","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@agent-testkit/server","version":"0.1.0","keywords":["agent-testkit","agent-testing","llm","testing","mock-server","openai","anthropic","agent","integration-testing"],"license":"MIT","_id":"@agent-testkit/server@0.1.0","maintainers":[{"name":"alainbrown","email":"alain.brown@gmail.com"}],"homepage":"https://github.com/alainbrown/agent-testkit#readme","bugs":{"url":"https://github.com/alainbrown/agent-testkit/issues"},"bin":{"agent-testkit":"dist/cli.js"},"dist":{"shasum":"205ad30b24c03a01417c140706b9d1fd1226f6f4","tarball":"https://registry.npmjs.org/@agent-testkit/server/-/server-0.1.0.tgz","fileCount":46,"integrity":"sha512-eCUdT8NGnrnEd8bAWjaPFW7hEApbBVjSo17IfdKhfxiipMxL3cmu5lyH53IQgN3yqw8U7xJ8lofHu38goTOhzQ==","signatures":[{"sig":"MEUCIQDlE3K+ushiIAy+ImC8hSMYgwlGeYTGht+YKQfq7DYf9gIgUoJqhnjl5hQb8mhvq5u2YQ8GxBZLvzAw773qCJ/rlBk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":206334},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"3d7bb6c69bf1857d06fcbfa29904c9b13a8842ec","scripts":{"test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json"},"_npmUser":{"name":"alainbrown","email":"alain.brown@gmail.com"},"repository":{"url":"git+https://github.com/alainbrown/agent-testkit.git","type":"git","directory":"packages/server"},"_npmVersion":"12.0.1","description":"OpenAI- and Anthropic-compatible deterministic server for AI agent integration testing","directories":{},"_nodeVersion":"26.5.0","dependencies":{"jiti":"^2.7.0","fastify":"^5.10.0","jsonpath-plus":"^10.4.0","@agent-testkit/schema":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.1","openai":"^6.49.0","typescript":"^7.0.2","@types/node":"^24.13.3","@anthropic-ai/sdk":"^0.115.0"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.0_1785351376563_0.3566101667445636","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-testkit/server","version":"0.1.2","type":"module","description":"OpenAI- and Anthropic-compatible deterministic server for AI agent integration testing","license":"MIT","repository":{"type":"git","url":"git+https://github.com/agent-testkit/agent-testkit.git","directory":"packages/server"},"keywords":["agent-testkit","agent-testing","llm","testing","mock-server","openai","anthropic","agent","integration-testing"],"publishConfig":{"access":"public"},"bin":{"agent-testkit":"dist/cli.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","test":"node --import tsx --test test/*.test.ts","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json"},"dependencies":{"@agent-testkit/schema":"^0.1.2","fastify":"^5.10.0","jiti":"^2.7.0","jsonpath-plus":"^10.4.0"},"devDependencies":{"@anthropic-ai/sdk":"^0.115.0","@types/node":"^24.13.3","openai":"^6.49.0","tsx":"^4.23.1","typescript":"^7.0.2"},"engines":{"node":">=22"},"gitHead":"e70265a72b1cf1d4c09228bf20f9a45622fe12d9","_id":"@agent-testkit/server@0.1.2","bugs":{"url":"https://github.com/agent-testkit/agent-testkit/issues"},"homepage":"https://github.com/agent-testkit/agent-testkit#readme","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-ZtVourOkGC0JUuaV0XB5Ml3ww58s+qhii3f6j/4uF0wNayYpBY7NB5a4jv4szJ1l9kzLuLnWDSYcLCzBMGFjBA==","shasum":"69c060b95fb65054d19d18be3262c453fdb28112","tarball":"https://registry.npmjs.org/@agent-testkit/server/-/server-0.1.2.tgz","fileCount":46,"unpackedSize":206337,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agent-testkit%2fserver@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtum8nZlYJip6cdWVt8yP0Pyzd4OglhUnLCAwU/Tul3AIhAJZK7DM//IJrrHyiNJ2bSSo7ZPrbU9BU7hNNgu+lTo5q"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3a2f4dab-6384-4a04-b593-91749c175e3a"}},"directories":{},"maintainers":[{"name":"alainbrown","email":"alain.brown@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/server_0.1.2_1785351943789_0.20816767210885767"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-29T18:56:16.298Z","modified":"2026-07-29T19:05:44.315Z","0.1.0":"2026-07-29T18:56:16.801Z","0.1.2":"2026-07-29T19:05:43.957Z"},"bugs":{"url":"https://github.com/agent-testkit/agent-testkit/issues"},"license":"MIT","homepage":"https://github.com/agent-testkit/agent-testkit#readme","keywords":["agent-testkit","agent-testing","llm","testing","mock-server","openai","anthropic","agent","integration-testing"],"repository":{"type":"git","url":"git+https://github.com/agent-testkit/agent-testkit.git","directory":"packages/server"},"description":"OpenAI- and Anthropic-compatible deterministic server for AI agent integration testing","maintainers":[{"name":"alainbrown","email":"alain.brown@gmail.com"}],"readme":"# `agent-testkit`\n\nDeterministic, stateless OpenAI- and Anthropic-compatible server backed by a Agent Testkit behavior document. Every response depends only on the validated document and current HTTP request.\n\n```ts\nimport { createAgentTestkitServer } from \"@agent-testkit/server\";\nimport document from \"./agent-testkit.config.js\";\n\n// Direct construction automatically materializes inline fixtures. For file\n// fixtures, extensions, or cassettes, use loadAgentTestkitProject() and pass its\n// document and resources.\nconst server = createAgentTestkitServer({ document });\nconst urls = await server.listen();\n\nconsole.log(urls.openaiBaseURL);\nconsole.log(urls.anthropicBaseURL);\n```\n\nOr start the standalone server:\n\n```bash\nagent-testkit --config ./agent-testkit.config.ts --port 8080\n```\n\nGlobal provider URLs are namespaced to avoid collisions:\n\n- OpenAI: `http://localhost:8080/openai/v1`\n- Anthropic: `http://localhost:8080/anthropic`\n\nThe server retains no request history or model state. Provider-shaped errors contain unmatched and ambiguous behavior details directly.\n\n## Coding-agent skill\n\nThe repository maintains [`agent-testkit`](../../skills/agent-testkit) under the top-level `skills/` collection. It is intentionally separate from the server package.\n","readmeFilename":"README.md"}