{"_id":"@aihu/context","_rev":"5-e31981e6d6356151d111a4de63772672","name":"@aihu/context","dist-tags":{"latest":"0.2.1","canary":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113"},"versions":{"0.1.0":{"name":"@aihu/context","version":"0.1.0","license":"MIT","_id":"@aihu/context@0.1.0","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/context#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"5c227e30dce04eb9429632f6e3fc1728d9f55d54","tarball":"https://registry.npmjs.org/@aihu/context/-/context-0.1.0.tgz","fileCount":11,"integrity":"sha512-Yt3cP4NA+KI4SLE6d4uFHuuzVtolnciI/hpsmdUdHB6eM+w7keZ5U07RxCLfAkRJOy2ZBdXFfN1sae7b0oD9lg==","signatures":[{"sig":"MEUCIBalM0pjcbHReY+0vk7PIzaOvg/PkcPW/nZrr4ZclW/BAiEAgbJX4To5KfWzPwLYwoyozKSDauCn/ABV52M6jcpDTlA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12401},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./ssr":{"types":"./dist/ssr.d.ts","import":"./dist/ssr.js"}},"gitHead":"02c309492183f2abf030a21a847ac41b1e9ffb00","scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/context"},"_npmVersion":"10.9.0","description":"Async-context-friendly request/SSR context primitives for aihu.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/context_0.1.0_1778009809004_0.5408368433151325","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aihu/context","version":"0.1.1","license":"MIT","_id":"@aihu/context@0.1.1","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/context#readme","bugs":"https://github.com/fellwork/aihu/issues","dist":{"shasum":"d285d343d9265d5b0449597f36fb0bd809576c0c","tarball":"https://registry.npmjs.org/@aihu/context/-/context-0.1.1.tgz","fileCount":11,"integrity":"sha512-rWEsH8HB+Y9GzvMeALTAQSldMgvE4/HSltxGNWTBlsNLxe7TJCgpdWjJYl4dvo5zKtHHSQWZf9ZQXJ2K0YEHHQ==","signatures":[{"sig":"MEYCIQDq0OjnoB/JDtJU7JyTGQKSv5sXxnf4OTnlKGCzdCb6/QIhAJdMDMxyDoBy48AXIO6b2IO6vS9fjFM2X4dkKI1zx3nG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14269},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"d285d343d9265d5b0449597f36fb0bd809576c0c","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./ssr":{"types":"./dist/ssr.d.ts","import":"./dist/ssr.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_integrity":"sha512-rWEsH8HB+Y9GzvMeALTAQSldMgvE4/HSltxGNWTBlsNLxe7TJCgpdWjJYl4dvo5zKtHHSQWZf9ZQXJ2K0YEHHQ==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/context"},"_npmVersion":"10.8.3","description":"Async-context-friendly request/SSR context primitives for aihu.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/context_0.1.1_1778018672671_0.9578841784840224","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aihu/context","version":"0.2.0","license":"MIT","_id":"@aihu/context@0.2.0","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/context#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"f1b8020a6ec6864794828e940bd7235a18bb2886","tarball":"https://registry.npmjs.org/@aihu/context/-/context-0.2.0.tgz","fileCount":11,"integrity":"sha512-7L4CiMvhN/tZDTWK81FHsj+YzHJkcB6WgRv6ngDngZVFsAbBgzLVq3K+UA624UKf7SRoEBN2ygz+Rp3+Tz4jjg==","signatures":[{"sig":"MEUCIG9DfBt2PEV/KWX7nr4Ix1W8+xrpcbpAu+VNnCSwGOj1AiEAtTrLQ/9Szrlz32AuPL85i7P8SY8AAlLzElZfXGpxnEs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fcontext@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24422},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.4rMdtfQwWG/aihu-context-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./ssr":{"types":"./dist/ssr.d.ts","import":"./dist/ssr.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.4rMdtfQwWG/aihu-context-0.2.0.tgz","_integrity":"sha512-7L4CiMvhN/tZDTWK81FHsj+YzHJkcB6WgRv6ngDngZVFsAbBgzLVq3K+UA624UKf7SRoEBN2ygz+Rp3+Tz4jjg==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/context"},"_npmVersion":"10.8.2","description":"Async-context-friendly request/SSR context primitives for aihu.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/context_0.2.0_1784389942775_0.5953054786782785","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113":{"name":"@aihu/context","version":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","license":"MIT","_id":"@aihu/context@0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/context#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"f5e66169c3d27ad6880412566b374ac9052b0776","tarball":"https://registry.npmjs.org/@aihu/context/-/context-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","fileCount":11,"integrity":"sha512-WLYRCEN5PVtSMzuMQK+YaQ2Z0+4Jy1Qp98Bnoqb+R2H8bY852mBCvoqo8k1FmLJ4yt2eeJT+SURh//0wfYUpjw==","signatures":[{"sig":"MEUCIQDkuoybWYVH8lG/eV9wYHw4gqwjeO9uIjuA1HZa+A9ktQIgCVx2XUmxXDWqqACNrLcWfxm9lEXzIRobzHi5cmDb0+4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fcontext@0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":24519},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.anm0RV9t0c/aihu-context-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./ssr":{"types":"./dist/ssr.d.ts","import":"./dist/ssr.js"}},"scripts":{"build":"rolldown -c","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.anm0RV9t0c/aihu-context-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","_integrity":"sha512-WLYRCEN5PVtSMzuMQK+YaQ2Z0+4Jy1Qp98Bnoqb+R2H8bY852mBCvoqo8k1FmLJ4yt2eeJT+SURh//0wfYUpjw==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/context"},"_npmVersion":"10.8.2","description":"Async-context-friendly request/SSR context primitives for aihu.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/context_0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113_1784720360657_0.13960843506792586","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"_id":"@aihu/context@0.2.1","bugs":{"url":"https://github.com/aihu-project/aihu-context/issues"},"dist":{"shasum":"4d5a22ea629702956deb763e5846d5bbf46263ab","tarball":"https://registry.npmjs.org/@aihu/context/-/context-0.2.1.tgz","fileCount":8,"integrity":"sha512-XHB9V4jgPnA8MP1HkoYOlNiADnSLyUvsE3N8/vKIMlJDyqUiABzG7wLXw+cAschJ6EIDddlMuIGUi5a8JzKUHg==","signatures":[{"sig":"MEUCIC66cGQcOT0+YEOGdes11eOFhofAa7sWLDoZ/Axrss4AAiEAozS/OI6zTdixxaQVGIobEwqgfA5brnWllKSE6Mf0wsM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGyWB8wOXAAaFVNR2V4O6HjO+MlSFTujKQkQ6hzxFF52AiEAq3mg4L6LCVtF4N3lZJV22q1sCtizVwdEsimQ2nOQR0M="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fcontext@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16855},"main":"./dist/index.js","name":"@aihu/context","type":"module","_from":"file:/home/runner/work/_temp/aihu-context-pack/aihu-context-0.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./ssr":{"types":"./dist/ssr.d.ts","import":"./dist/ssr.js"}},"license":"MIT","scripts":{"lint":"biome ci .","test":"vitest run","build":"node scripts/build.mjs","check":"npm run lint && npm run typecheck && npm test","typecheck":"tsc --noEmit","prepublishOnly":"npm run build","release:contract":"node scripts/verify-pack.mjs","test:release-contract":"node scripts/release-contract-regression.mjs"},"version":"0.2.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:808a64f0-9233-4d66-8bb8-99c9633148f0"}},"homepage":"https://github.com/aihu-project/aihu-context#readme","_resolved":"/home/runner/work/_temp/aihu-context-pack/aihu-context-0.2.1.tgz","_integrity":"sha512-XHB9V4jgPnA8MP1HkoYOlNiADnSLyUvsE3N8/vKIMlJDyqUiABzG7wLXw+cAschJ6EIDddlMuIGUi5a8JzKUHg==","repository":{"url":"git+https://github.com/aihu-project/aihu-context.git","type":"git"},"_npmVersion":"11.5.1","description":"Async-context-friendly request/SSR context primitives for aihu.","directories":{},"maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.6","rolldown":"^1.0.0-rc.17","typescript":"^5.6.2","@biomejs/biome":"2.4.14","rolldown-plugin-dts":"^0.23.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/context_0.2.1_1788906759622_0.08927410631167221"}}},"time":{"created":"2026-05-05T19:36:48.930Z","modified":"2026-09-08T22:32:40.115Z","0.1.0":"2026-05-05T19:36:49.143Z","0.1.1":"2026-05-05T22:04:32.806Z","0.2.0":"2026-07-18T15:52:22.941Z","0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113":"2026-07-22T11:39:20.797Z","0.2.1":"2026-09-08T22:32:39.700Z"},"bugs":{"url":"https://github.com/aihu-project/aihu-context/issues"},"license":"MIT","homepage":"https://github.com/aihu-project/aihu-context#readme","repository":{"url":"git+https://github.com/aihu-project/aihu-context.git","type":"git"},"description":"Async-context-friendly request/SSR context primitives for aihu.","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"readme":"# @aihu/context\n\n> **Aihu** — agentic discovery and interaction, for human purpose.\n\nAsync-context-friendly request/SSR context primitives for aihu.\n\nPart of the **runtime core** layer of the Aihu meta-framework. It is DOM-free and has no runtime dependencies, so it can be used by both browser and server code.\n\n<!-- BEGIN_HANDWRITTEN: prose -->\nThe package exposes typed context tokens, hierarchical client scopes, and an explicit flat map for server rendering. The `./ssr` subpath is a live re-export of the same implementation, so server consumers can depend on the narrow entry point without losing behavior.\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/context\n# or\nbun add @aihu/context\n```\n\n<sub><i>Auto-generated against `@aihu/context@0.2.1`.</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.2.1` |\n| **Tier** | A — Reactive runtime core — async-context request primitives |\n| **Bundle size** | 420 B (gz) — limit 450 B |\n| **Published files** | 3 entries |\n| **License** | MIT |\n\n<sub><i>Auto-generated against `@aihu/context@0.2.1`.</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| `./ssr` | `./dist/ssr.js` | `—` |\n\n<sub><i>Auto-generated against `@aihu/context@0.2.1`.</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_Zero runtime dependencies._\n\n<sub><i>Auto-generated against `@aihu/context@0.2.1`.</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/router](https://github.com/aihu-project/aihu-router)\n- [@aihu/runtime](https://github.com/aihu-project/aihu-runtime)\n- [Aihu framework](https://github.com/aihu-project/aihu)\n\n<sub><i>Auto-generated against `@aihu/context@0.2.1`.</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/context@0.2.1`.</i></sub>\n\n<!-- END_AUTOGEN: license -->\n","readmeFilename":"README.md"}