{"_id":"@agora-protocol/gateway","_rev":"3-a96a459b702498d89d7b4e8a7d4df3be","name":"@agora-protocol/gateway","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.1":{"name":"@agora-protocol/gateway","version":"0.3.1","keywords":["acp","agent","protocol","ai-agents","gateway","rest","webhook"],"author":{"name":"ACP Protocol Contributors"},"license":"MIT","_id":"@agora-protocol/gateway@0.3.1","maintainers":[{"name":"mscarlos107","email":"mscarlos107@gmail.com"}],"homepage":"https://github.com/mscarlos107/acp-protocol#readme","bugs":{"url":"https://github.com/mscarlos107/acp-protocol/issues"},"dist":{"shasum":"a6b931c7c549803af9c708811cda1d95d8f6c450","tarball":"https://registry.npmjs.org/@agora-protocol/gateway/-/gateway-0.3.1.tgz","fileCount":5,"integrity":"sha512-KPjsYSx7MYW4rPHmuiM9WyIH+jIgW+0ckmQysiwP+NRktPhQKx/flSAHBz9v6kFKeIGQNEKhTxQfdxlLY+slxA==","signatures":[{"sig":"MEQCIE7FgkkBYw9v0zgXM+2Eq+McciexNNd1PWNAfZSRrRriAiBq0zZ1vwfaXFzi4QsEWtdSogr+zPMZ6CbNycVijJupyQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51075},"main":"./dist/index.js","type":"module","_from":"file:agora-protocol-gateway-0.3.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format esm --dts","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mscarlos107","email":"mscarlos107@gmail.com"},"_resolved":"C:\\Users\\mscar\\AppData\\Local\\Temp\\6f58bef4e1994cc4c3dbde88f4bda9c7\\agora-protocol-gateway-0.3.1.tgz","_integrity":"sha512-KPjsYSx7MYW4rPHmuiM9WyIH+jIgW+0ckmQysiwP+NRktPhQKx/flSAHBz9v6kFKeIGQNEKhTxQfdxlLY+slxA==","repository":{"url":"git+https://github.com/mscarlos107/acp-protocol.git","type":"git","directory":"packages/gateway"},"_npmVersion":"11.6.2","description":"ACP Gateway for bridging non-ACP agents (REST polling, webhook) into ACP rooms","directories":{},"_nodeVersion":"24.11.1","dependencies":{"zod":"^3.24.4","@agora-protocol/core":"0.3.1","@agora-protocol/crypto":"0.3.1","@agora-protocol/registry":"0.3.1","@agora-protocol/transport":"0.3.1","@agora-protocol/room-engine":"0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","typescript":"^5.8.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway_0.3.1_1777469017332_0.9279614813295582","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@agora-protocol/gateway","version":"0.3.2","keywords":["acp","agent","protocol","ai-agents","gateway","rest","webhook"],"author":{"name":"ACP Protocol Contributors"},"license":"MIT","_id":"@agora-protocol/gateway@0.3.2","maintainers":[{"name":"mscarlos107","email":"mscarlos107@gmail.com"}],"homepage":"https://github.com/mscarlos107/acp-protocol#readme","bugs":{"url":"https://github.com/mscarlos107/acp-protocol/issues"},"dist":{"shasum":"e0760bb583f29b9d83063146650eef4d2db1c0e8","tarball":"https://registry.npmjs.org/@agora-protocol/gateway/-/gateway-0.3.2.tgz","fileCount":5,"integrity":"sha512-VfU5r1W4/BsljJqQNeC1xq7D/NRFvcm9XiOLZ4CSScZW8C1cgtp6sySUx/3BSmfL1Shts/zz7EtKwNBgawX17Q==","signatures":[{"sig":"MEUCIQCH5+0Iig4aPMbsYxK2VWD7xfmTAdGY3wKmjKoS49uVwwIgKzAKUQWwjPk+c+94lKNKx9ifcvy9uZdYWyaPVbJzH8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51075},"main":"./dist/index.js","type":"module","_from":"file:agora-protocol-gateway-0.3.2.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format esm --dts","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mscarlos107","email":"mscarlos107@gmail.com"},"_resolved":"C:\\Users\\mscar\\AppData\\Local\\Temp\\5fc766701dcf058f9129e6aff1b2c302\\agora-protocol-gateway-0.3.2.tgz","_integrity":"sha512-VfU5r1W4/BsljJqQNeC1xq7D/NRFvcm9XiOLZ4CSScZW8C1cgtp6sySUx/3BSmfL1Shts/zz7EtKwNBgawX17Q==","repository":{"url":"git+https://github.com/mscarlos107/acp-protocol.git","type":"git","directory":"packages/gateway"},"_npmVersion":"11.6.2","description":"ACP Gateway for bridging non-ACP agents (REST polling, webhook) into ACP rooms","directories":{},"_nodeVersion":"24.11.1","dependencies":{"zod":"^3.24.4","@agora-protocol/core":"0.3.2","@agora-protocol/crypto":"0.3.2","@agora-protocol/registry":"0.3.2","@agora-protocol/transport":"0.3.2","@agora-protocol/room-engine":"0.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","typescript":"^5.8.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway_0.3.2_1777740049231_0.7147151452151517","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@agora-protocol/gateway","version":"0.3.3","description":"ACP Gateway for bridging non-ACP agents (REST polling, webhook) into ACP rooms","keywords":["acp","agent","protocol","ai-agents","gateway","rest","webhook"],"homepage":"https://github.com/mscarlos107/acp-protocol#readme","bugs":{"url":"https://github.com/mscarlos107/acp-protocol/issues"},"repository":{"type":"git","url":"git+https://github.com/mscarlos107/acp-protocol.git","directory":"packages/gateway"},"license":"MIT","author":{"name":"ACP Protocol Contributors"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"dependencies":{"zod":"^3.24.4","@agora-protocol/core":"0.3.3","@agora-protocol/crypto":"0.3.3","@agora-protocol/transport":"0.3.3","@agora-protocol/registry":"0.3.3","@agora-protocol/room-engine":"0.3.3"},"devDependencies":{"@types/node":"^25.6.0","tsup":"^8.5.0","typescript":"^5.8.3"},"scripts":{"build":"tsup src/index.ts --format esm --dts","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@agora-protocol/gateway@0.3.3","_integrity":"sha512-wFwUXzTaVkzK3Wrrdi/fRrszWgF1xWZks7r5EE7dN6wHV9/qlm24ipl3oIlHgj8+Z1jkVoke6WJWuIzBNhrpGg==","_resolved":"C:\\Users\\mscar\\AppData\\Local\\Temp\\11c091fccc87bdeb9039351b2ca8fecb\\agora-protocol-gateway-0.3.3.tgz","_from":"file:agora-protocol-gateway-0.3.3.tgz","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-wFwUXzTaVkzK3Wrrdi/fRrszWgF1xWZks7r5EE7dN6wHV9/qlm24ipl3oIlHgj8+Z1jkVoke6WJWuIzBNhrpGg==","shasum":"5966a203d8e26fcede9587225b341aa3d009d037","tarball":"https://registry.npmjs.org/@agora-protocol/gateway/-/gateway-0.3.3.tgz","fileCount":5,"unpackedSize":51075,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGBqeX+0t3qSGEAjTinrW/Mrznu//cNw6q7NXMwSpVDQAiAHLmDMYciUR1lSLQpNrIlXY1DxvThM9+qeoEYzoSQTlQ=="}]},"_npmUser":{"name":"mscarlos107","email":"mscarlos107@gmail.com"},"directories":{},"maintainers":[{"name":"mscarlos107","email":"mscarlos107@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gateway_0.3.3_1778072964917_0.09679487262389563"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-29T13:23:37.217Z","modified":"2026-05-06T13:09:25.205Z","0.3.1":"2026-04-29T13:23:37.540Z","0.3.2":"2026-05-02T16:40:49.378Z","0.3.3":"2026-05-06T13:09:25.072Z"},"bugs":{"url":"https://github.com/mscarlos107/acp-protocol/issues"},"author":{"name":"ACP Protocol Contributors"},"license":"MIT","homepage":"https://github.com/mscarlos107/acp-protocol#readme","keywords":["acp","agent","protocol","ai-agents","gateway","rest","webhook"],"repository":{"type":"git","url":"git+https://github.com/mscarlos107/acp-protocol.git","directory":"packages/gateway"},"description":"ACP Gateway for bridging non-ACP agents (REST polling, webhook) into ACP rooms","maintainers":[{"name":"mscarlos107","email":"mscarlos107@gmail.com"}],"readme":"# @agora-protocol/gateway\n\nGateway for bridging non-ACP-native agents into ACP rooms — for the [ACP Protocol](https://github.com/mscarlos107/acp-protocol).\n\n## Install\n\n```bash\nnpm install @agora-protocol/gateway\n```\n\n## What's inside\n\n- **`GatewayRouter`** — route registration + message dispatch.\n- **`ProxyAgentManager`** — manages delegated Ed25519 keys for external agents (**Model A**). Pluggable for Model B (HSM) and Model C (double-signature) — not yet implemented.\n- **`ConnectionProxy`** — bridges an external-agent session to an ACP room.\n- **`GatewaySession`** — room-side session with `{ proxyAgentId, mode }`. The `proxyAgentId` parameter is **required** to stamp the correct `sender.agent_id` (otherwise the controller defaults to `participants[0]`, which may be the peer).\n- **`MessageTranslator`** — converts external REST/JSON payloads to signed ACP envelopes. Stamps `meta.auto_generated_structured=true` + `meta.confidence` when a `mode` is supplied.\n- **`RestAdapter` / `WebhookAdapter`** — protocol adapters.\n- **`createGatewayHttpServer`** — minimal `node:http` wrapper with `POST /gateway/register`, `/connect`, `/send`, `GET /gateway/poll?agent=X`.\n\n## Modes\n\n`auto_structured_mode` maps to `meta.confidence`:\n- `strict` → `confidence = 0.95`\n- `best-effort` → `confidence = 0.6`\n\nExplicit `confidence` overrides `mode`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}