bb2d9c3e59
Generic polyfill layer that makes a single NextGraph broker behave like the not-yet-shipped multi-user NextGraph (emulated capabilities + inbox). Zero app domain. @ng-eventually/client exposes an SDK-identical surface (ng, useShape, inbox); the polyfill bootstrap (configure + capability helpers) is isolated under /polyfill, so the main entry stays a drop-in for @ng-org/web|orm. The real SDK is injected at configure() (no hard import → build-alias safe + testable). Scaffold: NextGraph wiring stubbed with TODO; capability helpers implemented and unit-tested (4 tests, typecheck clean). The global-index curator is deferred — in NextGraph apps/services are mono-user with no global data. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
603 B
JSON
24 lines
603 B
JSON
{
|
|
"name": "@ng-eventually/client",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"description": "SDK-identical client wrapper over @ng-org/web + @ng-org/orm with emulated capabilities and inbox. Drop-in; remove at migration.",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./polyfill": "./src/polyfill.ts"
|
|
},
|
|
"peerDependencies": {
|
|
"@ng-org/web": "*",
|
|
"@ng-org/orm": "*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@ng-org/web": { "optional": true },
|
|
"@ng-org/orm": { "optional": true }
|
|
},
|
|
"scripts": {
|
|
"test": "bun test"
|
|
}
|
|
}
|