@abloatai/humans 0.47.0 → 0.48.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/dist/local/BaseSyncedStore.d.ts +1 -1
- package/dist/local/Database.js +1 -1
- package/dist/local/client/options.d.ts +1 -1
- package/dist/local/sync/initialize.js +2 -2
- package/package.json +2 -2
- package/src/local/BaseSyncedStore.ts +1 -1
- package/src/local/Database.ts +1 -1
- package/src/local/client/options.ts +1 -1
- package/src/local/sync/initialize.ts +2 -2
|
@@ -118,7 +118,7 @@ export interface UserContext {
|
|
|
118
118
|
* - `'none'`: open the WebSocket and process live deltas only.
|
|
119
119
|
* Reads go through `model.get()` / filtered subscriptions
|
|
120
120
|
* backfilled by `Covering` deltas. Suitable for transactional
|
|
121
|
-
* participants —
|
|
121
|
+
* participants — headless workers, video pipelines, routine runners —
|
|
122
122
|
* that don't need a local replica of the org's tenant plane.
|
|
123
123
|
*/
|
|
124
124
|
bootstrapMode?: 'full' | 'none';
|
package/dist/local/Database.js
CHANGED
|
@@ -791,7 +791,7 @@ export class Database {
|
|
|
791
791
|
// ── inMemory short-circuit ───────────────────────────────────────
|
|
792
792
|
//
|
|
793
793
|
// The batched IDB transaction path below assumes `this.storeManager`
|
|
794
|
-
// and `workspaceDb`. In inMemory mode (
|
|
794
|
+
// and `workspaceDb`. In inMemory mode (headless workers, tests) those
|
|
795
795
|
// don't exist. Without this branch, every live delta arriving over
|
|
796
796
|
// the WebSocket is silently dropped — the local pool never updates,
|
|
797
797
|
// `subscribe()` autoruns never re-fire, lazy-model dispatchers
|
|
@@ -129,7 +129,7 @@ export interface AbloOptions<S extends SchemaRecord = SchemaRecord> {
|
|
|
129
129
|
* Ablo({
|
|
130
130
|
* schema,
|
|
131
131
|
* apiKey,
|
|
132
|
-
* durableWrites: { store, namespace: '
|
|
132
|
+
* durableWrites: { store, namespace: 'headless-worker' },
|
|
133
133
|
* })
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
@@ -42,7 +42,7 @@ export function* initialize(host, context, signal) {
|
|
|
42
42
|
host.setupWebSocketSync(context, lastSyncId);
|
|
43
43
|
// Bootstrap from server if needed.
|
|
44
44
|
//
|
|
45
|
-
// `bootstrapMode: 'none'` participants (
|
|
45
|
+
// `bootstrapMode: 'none'` participants (headless workers and
|
|
46
46
|
// task runners) skip baseline replication — they read via
|
|
47
47
|
// `model.get()` round-trips and rely on covering deltas
|
|
48
48
|
// from filtered subscriptions to populate the pool lazily. The
|
|
@@ -54,7 +54,7 @@ export function* initialize(host, context, signal) {
|
|
|
54
54
|
// `setupWebSocketSync` above creates the SyncWebSocket and
|
|
55
55
|
// initiates the upgrade, but it does NOT await the 'connected'
|
|
56
56
|
// event — it returns synchronously after wiring listeners.
|
|
57
|
-
// For bootstrapMode='none' consumers (
|
|
57
|
+
// For bootstrapMode='none' consumers (headless workers and
|
|
58
58
|
// task runners), this branch is the entire body of initialize()
|
|
59
59
|
// after the WS is set up, so `ready()` would otherwise resolve
|
|
60
60
|
// while the WS is still in 'connecting' state. The very next
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abloatai/humans",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "The optional human-facing local-state package for Ablo: presence, live queries, and React bindings.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"directory": "packages/humans"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@abloatai/transaction": "^0.
|
|
87
|
+
"@abloatai/transaction": "^0.48.0",
|
|
88
88
|
"mobx": "^6.13.7",
|
|
89
89
|
"uuid": "^11.1.0",
|
|
90
90
|
"zod": "^4.4.3"
|
|
@@ -178,7 +178,7 @@ export interface UserContext {
|
|
|
178
178
|
* - `'none'`: open the WebSocket and process live deltas only.
|
|
179
179
|
* Reads go through `model.get()` / filtered subscriptions
|
|
180
180
|
* backfilled by `Covering` deltas. Suitable for transactional
|
|
181
|
-
* participants —
|
|
181
|
+
* participants — headless workers, video pipelines, routine runners —
|
|
182
182
|
* that don't need a local replica of the org's tenant plane.
|
|
183
183
|
*/
|
|
184
184
|
bootstrapMode?: 'full' | 'none';
|
package/src/local/Database.ts
CHANGED
|
@@ -1125,7 +1125,7 @@ export class Database {
|
|
|
1125
1125
|
// ── inMemory short-circuit ───────────────────────────────────────
|
|
1126
1126
|
//
|
|
1127
1127
|
// The batched IDB transaction path below assumes `this.storeManager`
|
|
1128
|
-
// and `workspaceDb`. In inMemory mode (
|
|
1128
|
+
// and `workspaceDb`. In inMemory mode (headless workers, tests) those
|
|
1129
1129
|
// don't exist. Without this branch, every live delta arriving over
|
|
1130
1130
|
// the WebSocket is silently dropped — the local pool never updates,
|
|
1131
1131
|
// `subscribe()` autoruns never re-fire, lazy-model dispatchers
|
|
@@ -154,7 +154,7 @@ export interface AbloOptions<S extends SchemaRecord = SchemaRecord> {
|
|
|
154
154
|
* Ablo({
|
|
155
155
|
* schema,
|
|
156
156
|
* apiKey,
|
|
157
|
-
* durableWrites: { store, namespace: '
|
|
157
|
+
* durableWrites: { store, namespace: 'headless-worker' },
|
|
158
158
|
* })
|
|
159
159
|
* ```
|
|
160
160
|
*/
|
|
@@ -91,7 +91,7 @@ export function* initialize<TCollaboration extends EventMap<TCollaboration>>(
|
|
|
91
91
|
|
|
92
92
|
// Bootstrap from server if needed.
|
|
93
93
|
//
|
|
94
|
-
// `bootstrapMode: 'none'` participants (
|
|
94
|
+
// `bootstrapMode: 'none'` participants (headless workers and
|
|
95
95
|
// task runners) skip baseline replication — they read via
|
|
96
96
|
// `model.get()` round-trips and rely on covering deltas
|
|
97
97
|
// from filtered subscriptions to populate the pool lazily. The
|
|
@@ -109,7 +109,7 @@ export function* initialize<TCollaboration extends EventMap<TCollaboration>>(
|
|
|
109
109
|
// `setupWebSocketSync` above creates the SyncWebSocket and
|
|
110
110
|
// initiates the upgrade, but it does NOT await the 'connected'
|
|
111
111
|
// event — it returns synchronously after wiring listeners.
|
|
112
|
-
// For bootstrapMode='none' consumers (
|
|
112
|
+
// For bootstrapMode='none' consumers (headless workers and
|
|
113
113
|
// task runners), this branch is the entire body of initialize()
|
|
114
114
|
// after the WS is set up, so `ready()` would otherwise resolve
|
|
115
115
|
// while the WS is still in 'connecting' state. The very next
|