@openfairygui/backend 0.5.0-alpha.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/docs.cjs +190 -611
- package/dist/docs.d.cts +9 -27
- package/dist/docs.d.mts +9 -27
- package/dist/docs.mjs +190 -611
- package/dist/index.cjs +445 -635
- package/dist/index.d.cts +46 -160
- package/dist/index.d.mts +46 -160
- package/dist/index.mjs +445 -636
- package/dist/node.cjs +476 -664
- package/dist/node.d.cts +20 -94
- package/dist/node.d.mts +20 -94
- package/dist/node.mjs +476 -664
- package/package.json +3 -3
- package/src/contracts.ts +2 -2
- package/src/diagnostics.ts +4 -5
- package/src/generated/contracts.ts +208 -837
- package/src/generated/docs.ts +3 -3
- package/src/index.ts +2 -13
- package/src/node.ts +36 -30
- package/src/runtime/capabilities.ts +2 -12
- package/src/runtime/contracts.ts +33 -107
- package/src/runtime.ts +22 -57
- package/src/services/authoring-service.ts +9 -572
- package/src/services/cache-service.ts +32 -10
- package/src/services/context.ts +27 -14
- package/src/services/event-service.ts +10 -8
- package/src/services/persistence-service.ts +550 -0
- package/src/services/read-service.ts +18 -18
- package/src/services/runtime-service.ts +27 -36
- package/src/services/session-operation-queue.ts +21 -0
- package/src/services/session-project-writer.ts +3 -1
- package/src/services/session-registry.ts +70 -0
- package/src/services/session-utils.ts +4 -4
- package/src/services/job-service.ts +0 -238
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ It also provides:
|
|
|
26
26
|
- backend contract versioning surface
|
|
27
27
|
- compatibility policy
|
|
28
28
|
- polling runtime events with per-runtime monotonic sequence and bounded retention
|
|
29
|
-
-
|
|
29
|
+
- synchronous cache refresh returning a detached revision-bound snapshot
|
|
30
30
|
- revision-bound derived read-only cache snapshots
|
|
31
31
|
- revision-bound project identity outlines for transaction planning
|
|
32
32
|
- bounded, detached public UAM model and primary resource-byte reads with edit-revision checks
|
|
@@ -53,7 +53,7 @@ unrepresented persisted properties expose `uamFidelity: 'unsupported'`, and writ
|
|
|
53
53
|
`uam_fidelity_unsupported`. Existing projects in browser storage must be opened through this path by
|
|
54
54
|
injecting `createBackendStorageFileSystem(storage)` into `BackendRuntime`; `openProjectSession` is only
|
|
55
55
|
for sessions whose supplied UAM project is authoritative. Transactions, saves, and materialization are
|
|
56
|
-
serialized per session.
|
|
56
|
+
serialized per session together with close. Opening and storage rebinding reserve the canonical target before asynchronous I/O; failed rebinding retains the original session binding.
|
|
57
57
|
|
|
58
58
|
## Relationship to other packages
|
|
59
59
|
|
|
@@ -145,7 +145,7 @@ console.log(capabilities.data.compatibilityPolicy.incompatibleChange);
|
|
|
145
145
|
|
|
146
146
|
const refresh = runtime.refreshCache({ sessionId: opened.data.sessionId });
|
|
147
147
|
if (refresh.ok) {
|
|
148
|
-
console.log(refresh.data.
|
|
148
|
+
console.log(refresh.data.cacheRevision, refresh.data.entries);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
await runtime.closeSession({ sessionId: opened.data.sessionId });
|