{"_id":"@anchrd/agents-api","_rev":"24-b1d77997cff9133f4a96ac8215e3d76a","name":"@anchrd/agents-api","dist-tags":{"latest":"0.18.0"},"versions":{"0.6.0":{"name":"@anchrd/agents-api","version":"0.6.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.6.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"408656d3e9d8404fb5fec5eb05868bb52b4c0c33","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.6.0.tgz","fileCount":68,"integrity":"sha512-csi62wYrkKTdnI+2Mnyb9/ar0G/tevSB/zlyjng02mNNsgy94VCw4FovYgBccX7Gki5CVE3CKFM1iyGzCqiDJQ==","signatures":[{"sig":"MEQCIGpe1R+Qf83SNfoG2/7z04z7AmxLBQej6xJNTdLclzq6AiBZNFXu+B3PGKT6wFV54GI7YJY8XFOGDGKJyxfT4HC/sg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84073},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"4b7b24fa78259c7d3d8e7ebd7e74a495d32805bd","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anchrd","email":"jack.schmidt@outlook.de"},"_npmVersion":"11.6.0","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"24.8.0","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.6.0_1787511924135_0.4758835909327155","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@anchrd/agents-api","version":"0.7.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.7.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"88268a3157d9f81615361ce88d48e7a0d17c70ed","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.7.0.tgz","fileCount":92,"integrity":"sha512-X/yLLFqVdBCrwCf8I9x4xWO5FB83fAmG27cTP0nP9PQFOzy3Sku+zPnHBwGXsnT41fAoAKyiwG32PS9NBft7Vw==","signatures":[{"sig":"MEYCIQCfW3QUrV0R71Wu4+qHo25A3IyMvEOI2iAHzJjwIt1Z3QIhAMR1nNf5FHdqjKIpvvPNCHwRALtcabrft2hq22Iutc0O","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133876},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"3b0e0c2c0cdc1719fa858d2303af859c874fe941","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.7.0_1787615048688_0.22063560359803236","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@anchrd/agents-api","version":"0.8.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.8.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"39b05a0e7be9a6c24412383aaba94921716d49ff","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.8.0.tgz","fileCount":92,"integrity":"sha512-fLXorZyVWCPGOWIMoNE1PqGPr9jqQwAuOakgPzPFW70zosiyTl9Y/qnuT8lnyahaWZvjthGnlRZFNu7zDQ3exQ==","signatures":[{"sig":"MEQCIFQJErabzxT4SW7yVA5NxM0SDIK7ozoG6bcaNzvwIx35AiBwWxSx69+hivt4b4WmhOqZa2xqWoLyLPXS7252BL+0Ng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133876},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"2c6b53dbebcc060d7e61f2482bb532b7a24eba31","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.8.0_1787616635796_0.43080789625092475","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@anchrd/agents-api","version":"0.9.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.9.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"64d699eabe886a8426e176873c62779644aef7e5","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.9.0.tgz","fileCount":100,"integrity":"sha512-HvULEvx+SMKglNJqIO7v4oWWpjWFJiDEHim07C8oalwz/TnveE78DkM+rJN9OqsIiuFMH7d1Pt7pWpc6AfGxiQ==","signatures":[{"sig":"MEUCIQCv+iVCchebTTVot8CXd4KQlV1dQN0Axlosy694Kjwq9wIgAmmOoamVf9pZpA+c/g0+rjwaSZ1FpMXLBGWCfsRr/x8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160198},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"2976fcc283cc5d3ad42203c569f67b5d3914e9bb","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.9.0_1787619528618_0.14446309037808347","host":"s3://npm-registry-packages-npm-production"}},"0.10.0":{"name":"@anchrd/agents-api","version":"0.10.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.10.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"23b3b5a7ee4191a308f2443e699cbd09f14c0056","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.10.0.tgz","fileCount":100,"integrity":"sha512-QXEqQA36qU+B9H/5w4ifODIu0qKf8kJlmh+krBIa7CcHeIVCIMkBHxXEL47cgu/Xn5u3virb42bi+FNP2l+bKQ==","signatures":[{"sig":"MEUCICScOEZCfyNpfi0CUwcpfHuFMcKBIRcDwaJwPzD/OXAtAiEAjaNAIkMzaJ959iiYDZ9Pf4oC2bFwxMoMgTcOlXj8mmA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":161942},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"3429cd9aceca3774d8094aff157ed42a9224a18c","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.10.0_1787621554896_0.7129689798627084","host":"s3://npm-registry-packages-npm-production"}},"0.11.0":{"name":"@anchrd/agents-api","version":"0.11.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.11.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"2a48be60a614cda7f780ce2ede8997bab8643e4a","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.11.0.tgz","fileCount":104,"integrity":"sha512-YCmBxBi2+gySglpMjHQ47co9cIz81Qu7dGHeXwx9zZZXC0wTrQH1QytQ2HKsctUM7jPKztpzguIEfrnPkVSrrQ==","signatures":[{"sig":"MEUCIQDb99sjEOTaL2mIrjIsOuRfP1WFe/ub9HBAlwz8RsgB3AIgVYqvye6sNyIx/BSCJcPog1WNxXl8LC1CoPM1tL2QfeI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":168752},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"66c336260fc28cef053831d9b998262db9e64058","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.11.0_1787627044430_0.5350649806805481","host":"s3://npm-registry-packages-npm-production"}},"0.12.0":{"name":"@anchrd/agents-api","version":"0.12.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.12.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"435b5dab4f95827f3c039df1cff1ee4899fbf455","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.12.0.tgz","fileCount":126,"integrity":"sha512-W6fI05pbaBK6K0gl3OayA9caIQABUMd8XNE3SBnI6Zq/V9AboTCCw0G2cuBmHOVUAbbnE9Ww5fkIAp6JuoHrzw==","signatures":[{"sig":"MEUCIQD6m8O6N8CtnZOZR/Bow6i1fQr+w9qUYR6BOwZjhuYnyAIgIicHlDRTxnAI6m6/cTotMWuPtUAFEw01u5b6maJbThA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":245695},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"cbd939a1166d3fe4cbaafc57495c8086439b6aff","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.12.0_1787822935771_0.7327126151391039","host":"s3://npm-registry-packages-npm-production"}},"0.13.0":{"name":"@anchrd/agents-api","version":"0.13.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.13.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"ee7fdd8a8a4382facc92d6537c9b6dd16d412329","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.13.0.tgz","fileCount":126,"integrity":"sha512-PSlPCbTtJ48jMkOGMRLpFJC9ZgCqVkWgjJRhEt5v7PIICp2eBrmToGY43vCNjwLwZViMfHggsFZay2poSR0GoA==","signatures":[{"sig":"MEUCIQDAH5Uz255WkdSGIjb8rqeBZdBm0Zw/9D3I0osfTQo2MgIgdlaJVYChjBvGFtJvAdGfvYluL5SE21pTDgjuVZzSw/c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248086},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"51c3c8a36c7ecd14fd249f5de7e7192e9e7df7e8","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.13.0_1787825847519_0.7971574497527802","host":"s3://npm-registry-packages-npm-production"}},"0.14.0":{"name":"@anchrd/agents-api","version":"0.14.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.14.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"68dc63421e79bfa51f1d564e22568bce6bcaf419","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.14.0.tgz","fileCount":126,"integrity":"sha512-GVeEZ5Y9G6ef90fjwX6nZu/xfvZZLoZsiJQicnqWCZ+nWw6ADLOWo5MHjaFfi3SulcDVWeSqpjs010aKF2aq6g==","signatures":[{"sig":"MEUCIQDfYvz/PtwZcw+kv7aLYDcOA/19DbZrRtR7d6IvqIXkYQIgcqhybs1wwEfVqAKa/1fjRy7EDyGAfJzEAcB9ebB9BJI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":250607},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"120bc101b827c66591beee18fe5186d6a7af95ef","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.14.0_1787827320409_0.8195247023794301","host":"s3://npm-registry-packages-npm-production"}},"0.15.0":{"name":"@anchrd/agents-api","version":"0.15.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.15.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"68a0e03548d9d2080f8575ee890f2c276d70ee5a","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.15.0.tgz","fileCount":126,"integrity":"sha512-5jMcncXMhbJuaM5EY7Nj9nhp4+lwv8j8MKwnIViOunH/6JaKq9rrwidFj44Yp4DHru3QcrGDBg+pOW4OZTFJcg==","signatures":[{"sig":"MEUCIQD0xY+krzkoD8JO5iHk1Kr9AATsnWOMMQCVS3uoFRV0jwIgbtK9q17vro8RGDGYmUC7X//wM+Mz5ZvQY9UtVQQgwR8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252986},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"c5833f277efca20ecc5f4012baa4bde5e285eab0","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.15.0_1787829068181_0.8498569890306462","host":"s3://npm-registry-packages-npm-production"}},"0.16.0":{"name":"@anchrd/agents-api","version":"0.16.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.16.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"70b85838989094bec7129a724935732360595e7a","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.16.0.tgz","fileCount":126,"integrity":"sha512-4ZKb0SAV+b50yKeZK9GhyV6B4A3b2sBsXptUDv/OJzkkzsTbWbcged07eNqdGkiw4aZ7he5Yin3OeI9r/IA16w==","signatures":[{"sig":"MEUCIQCampKxVdJoSxZE5pX3K0OUjqrSNl9VNP4qbSlMp6KUNQIgSAtt52JbDGeyMLh0I5aGyBWUvCCuN7LOE6dOVxsP5lk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258443},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"2f044e8779f42fb16175c7d4a3489c8e21b4b3f5","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.16.0_1787831320325_0.8347170344144852","host":"s3://npm-registry-packages-npm-production"}},"0.17.0":{"name":"@anchrd/agents-api","version":"0.17.0","license":"UNLICENSED","_id":"@anchrd/agents-api@0.17.0","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"dist":{"shasum":"1174b3714e8f050377e3002f70619aea5a3eb8e7","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.17.0.tgz","fileCount":126,"integrity":"sha512-70PTAtW3yG53f+K9W+enzuQ3xdNmIwXvXZOI1HmsnAJiq7bPdwr4G/3f9/73k7/at3SBAbmXnY5wWSEkk3DODg==","signatures":[{"sig":"MEQCID7V844dT0o2vYY+9oUzQvF1TBa2Ew2KhNHVWnOKOzliAiAZWdqLXh6WLEEImSfoXeUD53NI6lfXw6IeA5/JwBiOkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":262169},"type":"module","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"gitHead":"00d13b1a984465df65645d4bc7b181050a86b258","scripts":{"test":"bun test $(find ./src -name '*.unit.ts')","build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"_npmVersion":"12.0.2","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anchrd/gate-sdk":"^0.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.14","@cloudflare/workers-types":"^4.20250109.0"},"_npmOperationalInternal":{"tmp":"tmp/agents-api_0.17.0_1787912500486_0.8962549753954918","host":"s3://npm-registry-packages-npm-production"}},"0.18.0":{"name":"@anchrd/agents-api","version":"0.18.0","type":"module","license":"UNLICENSED","exports":{".":"./src/runtime/runtime.ts","./cloudflare":"./src/cloudflare/cloudflare.ts"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.build.json && node ../../scripts/pack/fix-dts.mjs","prepack":"bun run build && node ../../scripts/pack/to-dist-manifest.mjs","postpack":"node ../../scripts/pack/restore-manifest.mjs","test":"bun test $(find ./src -name '*.unit.ts')","typecheck":"tsc --noEmit"},"dependencies":{"@anchrd/gate-sdk":"^0.26.0","zod":"^4.4.3"},"devDependencies":{"@cloudflare/workers-types":"^4.20250109.0","@types/bun":"^1.3.14"},"gitHead":"1af34f8623a8993cdc2d871bf6ee5c022b610547","_id":"@anchrd/agents-api@0.18.0","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-y0xIyKAUlrO/IBzSoxaHN2pTCj8hTVbJDKP+uLkIIYQSoKJnHTiP21Erfi/efEZbEExBj0CA1Q2l9UyUjvjWmw==","shasum":"29010f3231a978600c32c5bed9845b8728adafac","tarball":"https://registry.npmjs.org/@anchrd/agents-api/-/agents-api-0.18.0.tgz","fileCount":138,"unpackedSize":300781,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE8fpk428BWl6thkEX7XnShc0924zrpFE99Lsc67yIpzAiAUmVqAYguCNrNhNZZ08W/SUDvGyo3KjFueRZ2CxhTIeA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d1780f39-fde4-4b2a-addb-fe654027af50"}},"directories":{},"maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agents-api_0.18.0_1788053715657_0.9326281014502094"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-23T19:05:23.857Z","modified":"2026-08-30T01:35:15.949Z","0.1.0":"2026-08-04T12:26:54.774Z","0.2.0":"2026-08-04T12:30:36.908Z","0.3.0":"2026-08-04T14:52:15.719Z","0.4.0":"2026-08-04T15:36:50.324Z","0.4.1":"2026-08-04T15:49:07.097Z","0.4.2":"2026-08-04T16:06:35.376Z","0.5.0":"2026-08-05T14:27:08.109Z","0.5.1":"2026-08-05T14:52:34.253Z","0.6.0":"2026-08-23T19:05:24.267Z","0.7.0":"2026-08-24T23:44:08.826Z","0.8.0":"2026-08-25T00:10:35.958Z","0.9.0":"2026-08-25T00:58:48.787Z","0.10.0":"2026-08-25T01:32:35.048Z","0.11.0":"2026-08-25T03:04:04.589Z","0.12.0":"2026-08-27T09:28:55.910Z","0.13.0":"2026-08-27T10:17:27.663Z","0.14.0":"2026-08-27T10:42:00.552Z","0.15.0":"2026-08-27T11:11:08.315Z","0.16.0":"2026-08-27T11:48:40.477Z","0.17.0":"2026-08-28T10:21:40.650Z","0.18.0":"2026-08-30T01:35:15.790Z"},"license":"UNLICENSED","description":"The anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools, serving its channels and carrying its own identity.","maintainers":[{"name":"anchrd","email":"jack.schmidt@outlook.de"}],"readme":"# @anchrd/agents-api\n\nThe anchrd agent runtime: one Durable Object per agent, running its turns, calling its tools,\nserving its channels and carrying its own identity.\n\nThis package is the portable core plus its Cloudflare shell. It is consumed by an edge worker —\n`anchrd/core` installs a fixed version and re-exports it — not used as a library.\n\n## Install\n\n```sh\nnpm install @anchrd/agents-api\n```\n\n## Use\n\nThe Cloudflare entrypoint exports the default handler plus every Durable Object class the platform\nbinds by name. Re-export them from your edge — `wrangler.jsonc` looks them up by class name:\n\n```ts\nexport { default, Agent, Mailboxes } from \"@anchrd/agents-api/cloudflare\";\n```\n\nYour `wrangler.jsonc` binds `AGENT` to `Agent` and `MAILBOXES` to `Mailboxes`, and supplies\n`GATE_URL`, `INTEL_URL`, `INTEL_RESOURCE`, `RUNTIME_ADMIN_KEY`, `AGENT_WAKE_KEY` and, for the mail\nchannel, the provider's API key and webhook secret. `workers/agents` in this repository is the\nreference consumer and shows the whole file.\n\n### The two machine keys, and why there are two\n\n⚠️ **`AGENT_WAKE_KEY` opens `POST /agents/<id>/wake` and nothing else. `RUNTIME_ADMIN_KEY` opens\neverything else and no longer opens that one.** Which key a door asks for is decided by the path,\nnot by which header a caller happens to send.\n\nThe administrative key also guards `PUT /agents/<id>/credentials`, `/admin/agents/…` and\n`/mailboxes/…` — whoever holds it can overwrite an agent's Gate credentials, redirect its address\nand make itself the owner. The event router needs exactly one right, \"wake this agent with these\nreferences\", and handing it the other key for that meant a compromised router owned every agent of\nthe installation.\n\n⚠️ **The router presents it as `x-wake-key`**, and an installation that has not set the value wakes\nnobody rather than everybody: a missing secret is a refusal, not a comparison. That includes the mail\npath, which goes through the same door from inside the worker.\n\n### Running a model\n\nA run calls its model through an **AI Gateway**, and only through one. Supply all three:\n\n| | |\n|---|---|\n| `AI_GATEWAY_ACCOUNT_ID` | the Cloudflare account the gateway belongs to |\n| `AI_GATEWAY_ID` | the gateway's name |\n| `AI_GATEWAY_TOKEN` | ⚠️ a **secret**, and a CLOUDFLARE token — not a provider key. See below |\n\n⚠️ **A missing one means the agent does not run.** Every wake-up call is then refused with\n`model_gateway_missing` — it never falls back to calling the provider directly. A spend limit lives\non the gateway and counts only what passes through it, so an unmetered call is worse than no call:\neverything works, nothing is counted, and it shows up on a bill.\n\n#### Why the third value is a Cloudflare token and not a provider key\n\nThe call goes out with `cf-aig-authorization: Bearer <AI_GATEWAY_TOKEN>` and **no `x-api-key`**,\nbecause the model calls are bought through Cloudflare's unified billing — there is no provider\naccount behind them.\n\n⚠️ **Cloudflare resolves a call in this order: a provider key IN THE REQUEST, then one stored at the\ngateway (BYOK), then unified billing.** A request that also carried `x-api-key` would therefore win\nat step one and be charged past the credit — with everything looking correct. Sending both \"to be\nsafe\" is the wrong instinct: the extra header is not a fallback, it silently takes precedence.\n\n⚠️ **The token needs exactly ONE permission: `AI Gateway: Run`.** One that also carries `Workers AI`\nrights could call `POST /accounts/<id>/ai/run` and run models WITHOUT passing the gateway — the\nunmetered path this whole arrangement exists to close, opened by the very secret meant to close it.\n\nAn installation that pays a provider directly wants a different shape here, and it is a small one:\n`x-api-key` instead of this header. It is not built, because nobody asks for it.\n\n⚠️ **Creating an agent needs one more secret, and it is not one of the above.**\n`RUNTIME_PROVISIONING_KEY` is the API key of a gate **application** holding `applications:write`,\nand it is what gives a new agent a principal of its own. It is neither `RUNTIME_SERVICE_KEY` (which\nidentifies a product and can hold no permission at all) nor `RUNTIME_ADMIN_KEY` (which guards this\nruntime's own doors and buys nothing at gate). Without it every other door keeps working and only\ncreating an agent refuses, with `provisioning_unavailable`. `AGENTS_MAIL_DOMAIN` is optional: with\nit a new agent also claims an address, without it the agent is created complete but without one.\n\n### Reading Intel as the person\n\nThe browser sign-in mints a token for `AGENTS_RESOURCE`, and a Gate token carries exactly **one**\naudience — so Intel refuses it, and a person cannot trade it for a second one. When the interface\nhas to read Intel **as the person signed in**, switch on the second sign-in:\n\n| | |\n|---|---|\n| `INTEL_SIGN_IN` | `\"on\"` switches it on. Anything else, absent included, leaves it off |\n| `INTEL_RESOURCE` | already required; the second walk asks Gate for this audience |\n| `SESSION_SECRET`, `AGENTS_URL` | already required by the first sign-in, and this one is an addition to it |\n\nSwitched on, `/auth/callback` gains one silent extra hop through Gate and the browser carries a\nsecond, separately sealed cookie; `GET /api/v1/intel/session` then answers who Intel says the person\nis. Switched off, nothing about the sign-in changes and that address answers `503\nintel_sign_in_unavailable`.\n\n⚠️ **This is not derived from `INTEL_RESOURCE`, on purpose.** Every installation sets that one,\nbecause an agent needs it to read Intel at all; deriving the switch from it would give every\ninstallation an extra redirect at every sign-in it never asked for.\n\n⚠️ **Gate registers a second OAuth client for it**, under this installation's own redirect URI\n`<AGENTS_URL>/auth/intel/auth/callback`. Nothing has to be registered by hand — but the audience\n`INTEL_RESOURCE` has to exist at Gate, or the authorization request is refused with an invalid\nscope.\n\n## Boundaries\n\n⚠️ **This package reaches Intel over HTTP and MCP only**, with the Gate token of the agent it is\ncurrently running — never through a database or object-store binding, and never by importing Intel's\nown API package. Every grant in Intel is enforced inside the query Intel itself runs; a runtime\nreading past that would answer with documents the agent's own principal may not open.\n\nThe agent creates its own folder on first start and remembers ids, not paths. It does not write into\nits own system message: what it writes there would stand in its prompt from the next run onwards,\nforever and unasked.\n\n## License\n\nUNLICENSED — for use within anchrd.\n","readmeFilename":"README.md"}