{"_id":"@aihu/agent-server","_rev":"8-6f4027fe422296a54bb0e1831cc7ce81","name":"@aihu/agent-server","dist-tags":{"canary":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","latest":"0.4.4"},"versions":{"0.3.0":{"name":"@aihu/agent-server","version":"0.3.0","license":"MIT","_id":"@aihu/agent-server@0.3.0","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"e1bf6368476558c87a68727ba4b2bc5613effb7c","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.3.0.tgz","fileCount":7,"integrity":"sha512-XQubD6FPNLfMNwPyeVToj/Ndk/ACTbZSsXwvEpjiiFfgShSPnOK70nCsAC630YR4yxdRkOa6hSqXR4zqm1OYcQ==","signatures":[{"sig":"MEQCID0WjRIKxX8WQ+j+4lslyAyS/an7VOEyFeZ8CM0Tlt5MAiAdwd26UjE9+Qxqc6vTJFHDDJEZxg/OEtw0CoRmv0vLew==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74916},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.Qjp166sND8/aihu-agent-server-0.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.Qjp166sND8/aihu-agent-server-0.3.0.tgz","_integrity":"sha512-XQubD6FPNLfMNwPyeVToj/Ndk/ACTbZSsXwvEpjiiFfgShSPnOK70nCsAC630YR4yxdRkOa6hSqXR4zqm1OYcQ==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.1.0","@aihu/arbor":"1.0.0","@aihu/agent-service":"0.2.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.3.0_1781665489145_0.3088511885935503","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@aihu/agent-server","version":"0.3.1","license":"MIT","_id":"@aihu/agent-server@0.3.1","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"9780b36fb249ac74cdd4a5a3af2200865892a807","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.3.1.tgz","fileCount":7,"integrity":"sha512-DNpvcS5GwmlQXr6MG+D14/NX59FDFayX/9QSaY0DPQJ6xqkWiwRG6dn1iIRKLUsMWFbBoYmXye6lke9F2ffkLA==","signatures":[{"sig":"MEUCIQCzEMh4D8Z1wyB69QLelEdciM37Y2xpl1XyEo/33e0+2gIgC9higuAlud3/FTxynjpvR+uT5RbIT1MHI7vNP7oJQ68=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":74916},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.ztYA4qaAuQ/aihu-agent-server-0.3.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.ztYA4qaAuQ/aihu-agent-server-0.3.1.tgz","_integrity":"sha512-DNpvcS5GwmlQXr6MG+D14/NX59FDFayX/9QSaY0DPQJ6xqkWiwRG6dn1iIRKLUsMWFbBoYmXye6lke9F2ffkLA==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.1.0","@aihu/arbor":"2.0.0","@aihu/agent-service":"0.2.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.3.1_1784389930990_0.4544681018573711","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113":{"name":"@aihu/agent-server","version":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","license":"MIT","_id":"@aihu/agent-server@0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"44f9869788a56e3823352dee11cc4f85ebabc47f","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","fileCount":7,"integrity":"sha512-62HJSHrvEMfCyz3qGnH3E1gIXqznw1PTjHTs2pqOKlDhsh3JfMumA00bIoNHtDkiB+sUjhz4/U29mQ1S8HMPtQ==","signatures":[{"sig":"MEYCIQDNIqUn/NtHRhzN3ngDOYXISgk2ZBkj2hFtWYmhVEojswIhANUMmGkzCYi7qTm3liDjWYPckZ4CU4Ak062XckuezJTj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":96785},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.4ehBmuI9rF/aihu-agent-server-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.4ehBmuI9rF/aihu-agent-server-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","_integrity":"sha512-62HJSHrvEMfCyz3qGnH3E1gIXqznw1PTjHTs2pqOKlDhsh3JfMumA00bIoNHtDkiB+sUjhz4/U29mQ1S8HMPtQ==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","@aihu/arbor":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","@aihu/agent-service":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113_1784720299214_0.7606970569700184","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aihu/agent-server","version":"0.4.0","license":"MIT","_id":"@aihu/agent-server@0.4.0","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"74ab1c512bb486c73017214b5a9445028493a406","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.4.0.tgz","fileCount":7,"integrity":"sha512-QaHrRBEWh+QINoYAnFNeHNiLHegvJRjx0W6xxNB13URn6hko0PaR0DLkarZVSfyBXd4dJSpFVKrYkeTRDS5Sig==","signatures":[{"sig":"MEUCIQDbAbEpk9cXxysVJYcyqKqMVKsi6foz37Dxwu5e+wnS8QIgFfoUTcWw4ifOSXyy+X2QoX/w2R51tpYAGoXgbQu8q94=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":96593},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.mcRwJAWJOz/aihu-agent-server-0.4.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.mcRwJAWJOz/aihu-agent-server-0.4.0.tgz","_integrity":"sha512-QaHrRBEWh+QINoYAnFNeHNiLHegvJRjx0W6xxNB13URn6hko0PaR0DLkarZVSfyBXd4dJSpFVKrYkeTRDS5Sig==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.2.0","@aihu/arbor":"2.0.0","@aihu/agent-service":"0.3.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.4.0_1784729046577_0.31210730776326834","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@aihu/agent-server","version":"0.4.1","license":"MIT","_id":"@aihu/agent-server@0.4.1","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"4d69b536b2c55eae4426fad4ad56aa8b86709faa","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.4.1.tgz","fileCount":7,"integrity":"sha512-TxgpUmA94n97Bwc9DagCYN0wgJkAB4R8UrMKlF0K7owhwo8CswdBP51IEHl5dwyjZP3aMU4vskJ7+vjybe/31g==","signatures":[{"sig":"MEUCIQDciBDUWrKlRiK0XT68toga9lXgEujDp15M7c7ybLnWZwIgSnsIlRJyO2hsV8Obb+Wmgl4uzYzWoBhmiqC5utSbjv0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":96651},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.m0DuJ45lco/aihu-agent-server-0.4.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.m0DuJ45lco/aihu-agent-server-0.4.1.tgz","_integrity":"sha512-TxgpUmA94n97Bwc9DagCYN0wgJkAB4R8UrMKlF0K7owhwo8CswdBP51IEHl5dwyjZP3aMU4vskJ7+vjybe/31g==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.2.0","@aihu/arbor":"2.0.0","@aihu/agent-service":"0.3.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.4.1_1784822326092_0.13079968199393588","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@aihu/agent-server","version":"0.4.2","license":"MIT","_id":"@aihu/agent-server@0.4.2","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"05b0d0272ec36f79df0ff69ad04c7ca960e7f8ec","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.4.2.tgz","fileCount":7,"integrity":"sha512-GDg8otTQhJ0KA3f0tfOh/nnDV57gEHXBquJf1+ot69ah9NAgJh8mCy5GZvTXrxO8/hQuwkXipSLXDTTrSLbF4Q==","signatures":[{"sig":"MEUCIQDpg+YRo/0nzyqkk+WD6rMCE9LUqSl112JujnFkzBAexQIgDxCmtI+sif0HmcKUg8Pc1OkbzZ9corp+ReqLMEfjFZY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":96651},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.6cx4TQ9gKr/aihu-agent-server-0.4.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.6cx4TQ9gKr/aihu-agent-server-0.4.2.tgz","_integrity":"sha512-GDg8otTQhJ0KA3f0tfOh/nnDV57gEHXBquJf1+ot69ah9NAgJh8mCy5GZvTXrxO8/hQuwkXipSLXDTTrSLbF4Q==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.2.0","@aihu/arbor":"4.0.0","@aihu/agent-service":"0.3.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.4.2_1785028486428_0.00830505176653129","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@aihu/agent-server","version":"0.4.3","license":"MIT","_id":"@aihu/agent-server@0.4.3","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"7f863728ec548006a2c072687a54c77a7e487772","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.4.3.tgz","fileCount":7,"integrity":"sha512-Mz9Jb9yT4v3ENNsCKElUHA3XymThfiSzoeVv56Sf9RFoMULpmcsBfp0gqzS592rnjuOlt8i2/XCWUefwRJPgFA==","signatures":[{"sig":"MEYCIQC8vejpZtSas59Rs1YcpBrDLlAFh8gbnPYZsaKo6LoRwwIhAIK4HMKSvq1en1pKCSDYwRFqehtyvssZ2+by0YiJXGl9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.4.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":96651},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.tL3dUdzH7r/aihu-agent-server-0.4.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.tL3dUdzH7r/aihu-agent-server-0.4.3.tgz","_integrity":"sha512-Mz9Jb9yT4v3ENNsCKElUHA3XymThfiSzoeVv56Sf9RFoMULpmcsBfp0gqzS592rnjuOlt8i2/XCWUefwRJPgFA==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-server"},"_npmVersion":"10.8.2","description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"jsdom":"^25.0.0","@aihu/agent":"0.2.0","@aihu/arbor":"4.1.0","@aihu/agent-service":"0.3.0","@modelcontextprotocol/sdk":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/jsdom":"^21.1.7"},"_npmOperationalInternal":{"tmp":"tmp/agent-server_0.4.3_1785917392114_0.326735276581251","host":"s3://npm-registry-packages-npm-production"}},"0.4.4":{"name":"@aihu/agent-server","version":"0.4.4","license":"MIT","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"sideEffects":false,"engines":{"node":">=18.0.0"},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"dependencies":{"@aihu/agent":"0.2.0","@aihu/agent-service":"0.4.0","@aihu/arbor":"4.1.1","@modelcontextprotocol/sdk":"^1.0.0","jsdom":"^25.0.0"},"devDependencies":{"@types/jsdom":"^21.1.7"},"description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","repository":{"type":"git","url":"git+https://github.com/fellwork/aihu.git","directory":"packages/agent-server"},"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"publishConfig":{"access":"public"},"_id":"@aihu/agent-server@0.4.4","_integrity":"sha512-Szr/NQmbsTJHmSoR2GYEn2MobFli/d9OWKSd78IxzNDgQ6K37GonuBiqBnr4VtSFXr+wKnMymeZ+furREnFnGQ==","_resolved":"/tmp/tmp.3bpRrjyGsN/aihu-agent-server-0.4.4.tgz","_from":"file:/tmp/tmp.3bpRrjyGsN/aihu-agent-server-0.4.4.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Szr/NQmbsTJHmSoR2GYEn2MobFli/d9OWKSd78IxzNDgQ6K37GonuBiqBnr4VtSFXr+wKnMymeZ+furREnFnGQ==","shasum":"05e6bef537de0dc440afb14bf13dc624fe7386b6","tarball":"https://registry.npmjs.org/@aihu/agent-server/-/agent-server-0.4.4.tgz","fileCount":7,"unpackedSize":96651,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-server@0.4.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD3vPn/OiTOd/W8R/19+tz+D5sazR/KiTfdu73SOg/mMwIhAJneBpf8TckaMvKERIP+KXCUM5ak3Muck3qxT+evnhHe"}]},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"directories":{},"maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-server_0.4.4_1786247253953_0.2932117524174538"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-17T03:04:48.833Z","modified":"2026-08-09T03:47:34.423Z","0.3.0":"2026-06-17T03:04:49.343Z","0.3.1":"2026-07-18T15:52:11.116Z","0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113":"2026-07-22T11:38:19.378Z","0.4.0":"2026-07-22T14:04:06.717Z","0.4.1":"2026-07-23T15:58:46.301Z","0.4.2":"2026-07-26T01:14:46.574Z","0.4.3":"2026-08-05T08:09:52.249Z","0.4.4":"2026-08-09T03:47:34.105Z"},"bugs":{"url":"https://github.com/fellwork/aihu/issues"},"license":"MIT","homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-server#readme","repository":{"type":"git","url":"git+https://github.com/fellwork/aihu.git","directory":"packages/agent-server"},"description":"Server-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"readme":"# @aihu/agent-server\n\n> **Aihu** — agentic discovery and interaction, for human purpose.\n\nServer-side glue: mount an aihu component server-side and let an MCP client drive it through the agent-service live-dispatch gate, forwarding approved invocations to a browser bridge.\n\nHeld-private workspace package. Not yet published to npm.\n\n> **Status:** Held private — not yet published to npm. See [v1.1 roadmap](../../docs/roadmap/SUMMARY.md) for ratification gating (e.g. RFC #56 live-binding for `@aihu/plugin` enforcement).\n\n<!-- BEGIN_HANDWRITTEN: prose -->\nServer-side glue that lets an external MCP client drive a **server-mounted**\naihu component through the already-tested live-dispatch runtime\n(`@aihu/agent-service`), and forwards **only approved** invocations to a\nconnected browser \"capability bridge\" (the visible, authoritative instance).\n\nThis is a **server-side package**: it depends on `jsdom` (host DOM) and the MCP\nSDK, targets Node/Bun, and carries **no `.size-limit.json` row** (see\n`.size-limit.README.md`).\n\n## What `createAgentServer()` does\n\n1. **Mounts** the target component server-side into a jsdom host so its\n   `LiveBinding` registers in arbor's `componentInstanceRegistry`.\n2. **Builds** an agent-service via\n   `createAgentService({ manifests: getAllAgentMetadata(), getRegistry: _getComponentInstanceRegistry, … })`.\n   The `404 → 401 → 403 → 429` security gate lives entirely in agent-service and\n   is **not** re-implemented or bypassed here.\n3. **Exposes an MCP endpoint** (`createComponentMcpServer` / `serveComponentMcp`)\n   where each component action/state is an MCP tool backed by `callTool` — reusing\n   the same `@modelcontextprotocol/sdk` stdio pattern as `@aihu/mcp`.\n4. **Exposes a WS/SSE capability bridge**: on an *approved* tool call only, the\n   server forwards `{ opaqueActionId, args }` (no policy info) to a connected\n   browser client and surfaces the visible instance's result + `serialize()`\n   snapshots back.\n\n```ts\nimport { JSDOM } from 'jsdom'\nimport { createAgentServer, serveComponentMcp } from '@aihu/agent-server'\nimport { __agentBinding, render } from './my-counter.server.js' // compiler output\n\nconst server = createAgentServer({\n  target: { node: render(), agentBinding: __agentBinding },\n  createHost: () => new JSDOM('<!doctype html><body>').window.document.body,\n})\n\n// Drive it from an MCP client over stdio:\nawait serveComponentMcp(server)\n```\n\n## WS capability-bridge contract (server side — for the browser-bridge client, T3)\n\nThe browser-bridge client (a separate task) implements against the message\nshapes in [`src/types.ts`](./src/types.ts). `BRIDGE_PROTOCOL_VERSION = 1`.\n\n**Server → client**\n\n```ts\n// Sent ONLY after the gate authorizes the call. Carries NO scope/rate-limit info.\n{ type: 'invoke', callId: string, opaqueActionId: string, args: unknown[] }\n```\n\n`opaqueActionId` is `\"<tag>/<action>\"` for v1 (the compiler's stable opaque-id\nemit, T1, will replace the plain name; the client allowlist keys on the same\nstring).\n\n**Client → server**\n\n```ts\n{ type: 'hello',    protocol: number }                      // handshake on connect\n{ type: 'result',   callId: string, result: unknown }       // visible instance's return\n{ type: 'error',    callId: string, message: string }       // exec failed → surfaced to agent\n{ type: 'snapshot', callId?: string, snapshot: Snapshot }   // serialize() state stream\n```\n\nThe transport is abstracted behind `BridgeChannel` (`send` / `onMessage` /\n`onClose` / `connected`) so a real deployment passes a `ws` `WebSocket` and tests\npass an in-memory channel. The server never imports `ws`.\n\n### Guarantees\n\n- A **rejected** call (404/401/403/429) is **never** forwarded to the bridge.\n- A bridge **disconnect mid-drive** rejects the pending `callTool` as a loud\n  `503 BRIDGE_ERROR` rather than silently dropping it.\n- The forwarded frame contains only the opaque id + args — no scope, no\n  rate-limit, no auth context.\n\n## Testing\n\n```bash\nbunx vitest run packages/agent-server/tests/agent-server.test.ts\n```\n\nThe suite drives a real `@aihu/signals` + `@aihu/arbor` component mounted into a\njsdom host: a scripted in-process MCP client calls `increment`, a real signal\nchanges, and `serialize()` reflects it — plus 404 / 401 / 403 gate paths and the\nfull bridge contract.\n<!-- END_HANDWRITTEN: prose -->\n\n## Install\n\n<!-- BEGIN_AUTOGEN: install -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n```bash\nnpm install @aihu/agent-server\n# or\nbun add @aihu/agent-server\n```\n\n<sub><i>Auto-generated against `@aihu/agent-server@0.4.4`.</i></sub>\n\n<!-- END_AUTOGEN: install -->\n\n## Package facts\n\n<!-- BEGIN_AUTOGEN: stats -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n| | |\n|---|---|\n| **Version** | `0.4.4` |\n| **Tier** | C — Agent surface — server-mount + MCP live-dispatch bridge to a browser |\n| **Published files** | 3 entries |\n| **License** | MIT |\n\n<sub><i>Auto-generated against `@aihu/agent-server@0.4.4`.</i></sub>\n\n<!-- END_AUTOGEN: stats -->\n\n## Exports\n\n<!-- BEGIN_AUTOGEN: exports -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n| Subpath | ESM | CJS |\n|---|---|---|\n| `.` | `./dist/index.js` | `—` |\n\n<sub><i>Auto-generated against `@aihu/agent-server@0.4.4`.</i></sub>\n\n<!-- END_AUTOGEN: exports -->\n\n## Dependencies\n\n<!-- BEGIN_AUTOGEN: deps -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n**Dependencies:**\n\n- `@aihu/agent` — `workspace:*`\n- `@aihu/agent-service` — `workspace:*`\n- `@aihu/arbor` — `workspace:*`\n- `@modelcontextprotocol/sdk` — `^1.0.0`\n- `jsdom` — `^25.0.0`\n\n<sub><i>Auto-generated against `@aihu/agent-server@0.4.4`.</i></sub>\n\n<!-- END_AUTOGEN: deps -->\n\n## See also\n\n<!-- BEGIN_AUTOGEN: see-also -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n- [@aihu/agent-service](../agent-service)\n- [@aihu/mcp](../mcp)\n- [Aihu framework root](../../README.md)\n\n<sub><i>Auto-generated against `@aihu/agent-server@0.4.4`.</i></sub>\n\n<!-- END_AUTOGEN: see-also -->\n\n## License\n\n<!-- BEGIN_AUTOGEN: license -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\nMIT — see [LICENSE](../../LICENSE).\n\n<sub><i>Auto-generated against `@aihu/agent-server@0.4.4`.</i></sub>\n\n<!-- END_AUTOGEN: license -->\n","readmeFilename":"README.md"}