@livestore/common 0.4.0-dev.20 → 0.4.0-dev.21

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.
Files changed (63) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/ClientSessionLeaderThreadProxy.d.ts +3 -0
  3. package/dist/ClientSessionLeaderThreadProxy.d.ts.map +1 -1
  4. package/dist/ClientSessionLeaderThreadProxy.js.map +1 -1
  5. package/dist/devtools/devtools-messages-client-session.d.ts +21 -21
  6. package/dist/devtools/devtools-messages-common.d.ts +6 -6
  7. package/dist/devtools/devtools-messages-leader.d.ts +26 -24
  8. package/dist/devtools/devtools-messages-leader.d.ts.map +1 -1
  9. package/dist/devtools/devtools-messages-leader.js +1 -0
  10. package/dist/devtools/devtools-messages-leader.js.map +1 -1
  11. package/dist/leader-thread/LeaderSyncProcessor.d.ts +33 -0
  12. package/dist/leader-thread/LeaderSyncProcessor.d.ts.map +1 -1
  13. package/dist/leader-thread/LeaderSyncProcessor.js +2 -2
  14. package/dist/leader-thread/LeaderSyncProcessor.js.map +1 -1
  15. package/dist/leader-thread/eventlog.d.ts +6 -1
  16. package/dist/leader-thread/eventlog.d.ts.map +1 -1
  17. package/dist/leader-thread/eventlog.js +59 -2
  18. package/dist/leader-thread/eventlog.js.map +1 -1
  19. package/dist/leader-thread/leader-worker-devtools.js +29 -6
  20. package/dist/leader-thread/leader-worker-devtools.js.map +1 -1
  21. package/dist/leader-thread/mod.d.ts +1 -0
  22. package/dist/leader-thread/mod.d.ts.map +1 -1
  23. package/dist/leader-thread/mod.js +1 -0
  24. package/dist/leader-thread/mod.js.map +1 -1
  25. package/dist/leader-thread/stream-events.d.ts +56 -0
  26. package/dist/leader-thread/stream-events.d.ts.map +1 -0
  27. package/dist/leader-thread/stream-events.js +166 -0
  28. package/dist/leader-thread/stream-events.js.map +1 -0
  29. package/dist/leader-thread/types.d.ts +77 -1
  30. package/dist/leader-thread/types.d.ts.map +1 -1
  31. package/dist/leader-thread/types.js +13 -0
  32. package/dist/leader-thread/types.js.map +1 -1
  33. package/dist/otel.d.ts +2 -1
  34. package/dist/otel.d.ts.map +1 -1
  35. package/dist/otel.js +5 -0
  36. package/dist/otel.js.map +1 -1
  37. package/dist/schema/state/sqlite/client-document-def.d.ts.map +1 -1
  38. package/dist/schema/state/sqlite/client-document-def.js.map +1 -1
  39. package/dist/schema/state/sqlite/column-def.test.js +2 -3
  40. package/dist/schema/state/sqlite/column-def.test.js.map +1 -1
  41. package/dist/schema/state/sqlite/db-schema/dsl/mod.d.ts.map +1 -1
  42. package/dist/schema/state/sqlite/db-schema/dsl/mod.js.map +1 -1
  43. package/dist/schema/state/sqlite/query-builder/api.d.ts +2 -1
  44. package/dist/schema/state/sqlite/query-builder/api.d.ts.map +1 -1
  45. package/dist/schema/state/sqlite/table-def.d.ts.map +1 -1
  46. package/dist/version.d.ts +1 -1
  47. package/dist/version.js +1 -1
  48. package/package.json +4 -4
  49. package/src/ClientSessionLeaderThreadProxy.ts +3 -0
  50. package/src/devtools/devtools-messages-leader.ts +1 -0
  51. package/src/leader-thread/LeaderSyncProcessor.ts +35 -2
  52. package/src/leader-thread/eventlog.ts +80 -4
  53. package/src/leader-thread/leader-worker-devtools.ts +41 -6
  54. package/src/leader-thread/mod.ts +1 -0
  55. package/src/leader-thread/stream-events.ts +201 -0
  56. package/src/leader-thread/types.ts +49 -1
  57. package/src/otel.ts +10 -0
  58. package/src/schema/state/sqlite/client-document-def.ts +7 -17
  59. package/src/schema/state/sqlite/column-def.test.ts +2 -3
  60. package/src/schema/state/sqlite/db-schema/dsl/mod.ts +10 -16
  61. package/src/schema/state/sqlite/query-builder/api.ts +6 -1
  62. package/src/schema/state/sqlite/table-def.ts +9 -8
  63. package/src/version.ts +1 -1
@@ -2,6 +2,7 @@ import type { Effect, Stream, Subscribable } from '@livestore/utils/effect';
2
2
  import type { MigrationsReport } from './defs.ts';
3
3
  import type * as Devtools from './devtools/mod.ts';
4
4
  import type { UnknownError } from './errors.ts';
5
+ import type { StreamEventsOptions } from './leader-thread/types.ts';
5
6
  import type * as EventSequenceNumber from './schema/EventSequenceNumber/mod.ts';
6
7
  import type { LiveStoreEvent } from './schema/mod.ts';
7
8
  import type { LeaderAheadError, SyncBackend } from './sync/sync.ts';
@@ -15,6 +16,8 @@ export interface ClientSessionLeaderThreadProxy {
15
16
  }, UnknownError>;
16
17
  /** It's important that a client session doesn't call `push` concurrently. */
17
18
  push(batch: ReadonlyArray<LiveStoreEvent.Client.Encoded>): Effect.Effect<void, UnknownError | LeaderAheadError>;
19
+ /** Stream events with filtering */
20
+ stream(options: StreamEventsOptions): Stream.Stream<LiveStoreEvent.Client.Encoded, UnknownError>;
18
21
  };
19
22
  /** The initial state after the leader thread has booted */
20
23
  readonly initialState: {
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSessionLeaderThreadProxy.d.ts","sourceRoot":"","sources":["../src/ClientSessionLeaderThreadProxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,KAAK,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,KAAK,mBAAmB,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAErE,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,IAAI,EAAE;YACX,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAC,SA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ACnG,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC,MAAM,CAAC,SAAS,CAAA;QACzD,mDAAmD;QACnD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAA;KAC5C,CAAA;IACD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC,CAAA;IAC5D,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC,CAAA;IACrE,SAAS,EAAE,YAAY,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;IAC7D,iHAAiH;IACjH,mBAAmB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;IACjG;;;OAGG;IACH,aAAa,EAAE,YAAY,CAAC,YAAY,CAAC,WAAW,CAAC,aAAa,CAAC,CAAA;CACpE;AAED,eAAO,MAAM,EAAE,GACb,OAAO,8BAA8B,EACrC,UAAU;IAAE,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,8BAA8B,KAAK,OAAO,CAAC,8BAA8B,CAAC,CAAA;CAAE,KAC9G,8BAIF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSessionLeaderThreadProxy.js","sourceRoot":"","sources":["../src/ClientSessionLeaderThreadProxy.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAC,MAAM,EAAE,GAAG,CAChB,KAAqC,EACrC,OAA+G,EAC/E,EAAE;IAClC,IAAI,OAAO,EAAE,SAAS,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IAElD,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAA;AAClD,CAAC,CAAA"}
1
+ {"version":3,"file":"ClientSessionLeaderThreadProxy.js","sourceRoot":"","sources":["../src/ClientSessionLeaderThreadProxy.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAC,MAAM,EAAE,GAAG,CAChB,KAAqC,EACrC,OAA+G,EAC/E,EAAE;IAClC,IAAI,OAAO,EAAE,SAAS,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IAElD,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAA;AAClD,CAAC,CAAA"}
@@ -3,7 +3,7 @@ import { EventSequenceNumber } from '../schema/mod.ts';
3
3
  declare const DebugInfoReq_base: Schema.Struct<{
4
4
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoReq">;
5
5
  } & {
6
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
6
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
7
7
  } & {
8
8
  clientId: typeof Schema.String;
9
9
  sessionId: typeof Schema.String;
@@ -14,7 +14,7 @@ export declare class DebugInfoReq extends DebugInfoReq_base {
14
14
  declare const DebugInfoRes_base: Schema.Struct<{
15
15
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoRes">;
16
16
  } & {
17
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
17
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
18
18
  } & {
19
19
  clientId: typeof Schema.String;
20
20
  sessionId: typeof Schema.String;
@@ -74,7 +74,7 @@ export declare class DebugInfoRes extends DebugInfoRes_base {
74
74
  declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
75
75
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoHistorySubscribe">;
76
76
  } & {
77
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
77
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
78
78
  } & {
79
79
  clientId: typeof Schema.String;
80
80
  sessionId: typeof Schema.String;
@@ -87,7 +87,7 @@ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe
87
87
  declare const DebugInfoHistoryRes_base: Schema.Struct<{
88
88
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoHistoryRes">;
89
89
  } & {
90
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
90
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
91
91
  } & {
92
92
  clientId: typeof Schema.String;
93
93
  sessionId: typeof Schema.String;
@@ -148,7 +148,7 @@ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
148
148
  declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
149
149
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoHistoryUnsubscribe">;
150
150
  } & {
151
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
151
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
152
152
  } & {
153
153
  clientId: typeof Schema.String;
154
154
  sessionId: typeof Schema.String;
@@ -161,7 +161,7 @@ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubsc
161
161
  declare const DebugInfoResetReq_base: Schema.Struct<{
162
162
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoResetReq">;
163
163
  } & {
164
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
164
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
165
165
  } & {
166
166
  clientId: typeof Schema.String;
167
167
  sessionId: typeof Schema.String;
@@ -172,7 +172,7 @@ export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
172
172
  declare const DebugInfoResetRes_base: Schema.Struct<{
173
173
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoResetRes">;
174
174
  } & {
175
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
175
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
176
176
  } & {
177
177
  clientId: typeof Schema.String;
178
178
  sessionId: typeof Schema.String;
@@ -183,7 +183,7 @@ export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
183
183
  declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
184
184
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoRerunQueryReq">;
185
185
  } & {
186
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
186
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
187
187
  } & {
188
188
  clientId: typeof Schema.String;
189
189
  sessionId: typeof Schema.String;
@@ -198,7 +198,7 @@ export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base
198
198
  declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
199
199
  _tag: Schema.tag<"LSD.ClientSession.DebugInfoRerunQueryRes">;
200
200
  } & {
201
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
201
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
202
202
  } & {
203
203
  clientId: typeof Schema.String;
204
204
  sessionId: typeof Schema.String;
@@ -209,7 +209,7 @@ export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base
209
209
  declare const SyncHeadSubscribe_base: Schema.Struct<{
210
210
  _tag: Schema.tag<"LSD.ClientSession.SyncHeadSubscribe">;
211
211
  } & {
212
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
212
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
213
213
  } & {
214
214
  clientId: typeof Schema.String;
215
215
  sessionId: typeof Schema.String;
@@ -222,7 +222,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
222
222
  declare const SyncHeadUnsubscribe_base: Schema.Struct<{
223
223
  _tag: Schema.tag<"LSD.ClientSession.SyncHeadUnsubscribe">;
224
224
  } & {
225
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
225
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
226
226
  } & {
227
227
  clientId: typeof Schema.String;
228
228
  sessionId: typeof Schema.String;
@@ -235,7 +235,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
235
235
  declare const SyncHeadRes_base: Schema.Struct<{
236
236
  _tag: Schema.tag<"LSD.ClientSession.SyncHeadRes">;
237
237
  } & {
238
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
238
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
239
239
  } & {
240
240
  clientId: typeof Schema.String;
241
241
  sessionId: typeof Schema.String;
@@ -262,7 +262,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
262
262
  declare const ReactivityGraphSubscribe_base: Schema.Struct<{
263
263
  _tag: Schema.tag<"LSD.ClientSession.ReactivityGraphSubscribe">;
264
264
  } & {
265
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
265
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
266
266
  } & {
267
267
  clientId: typeof Schema.String;
268
268
  sessionId: typeof Schema.String;
@@ -276,7 +276,7 @@ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_b
276
276
  declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
277
277
  _tag: Schema.tag<"LSD.ClientSession.ReactivityGraphUnsubscribe">;
278
278
  } & {
279
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
279
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
280
280
  } & {
281
281
  clientId: typeof Schema.String;
282
282
  sessionId: typeof Schema.String;
@@ -289,7 +289,7 @@ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscri
289
289
  declare const ReactivityGraphRes_base: Schema.Struct<{
290
290
  _tag: Schema.tag<"LSD.ClientSession.ReactivityGraphRes">;
291
291
  } & {
292
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
292
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
293
293
  } & {
294
294
  clientId: typeof Schema.String;
295
295
  sessionId: typeof Schema.String;
@@ -303,7 +303,7 @@ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
303
303
  declare const LiveQueriesSubscribe_base: Schema.Struct<{
304
304
  _tag: Schema.tag<"LSD.ClientSession.LiveQueriesSubscribe">;
305
305
  } & {
306
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
306
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
307
307
  } & {
308
308
  clientId: typeof Schema.String;
309
309
  sessionId: typeof Schema.String;
@@ -316,7 +316,7 @@ export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
316
316
  declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
317
317
  _tag: Schema.tag<"LSD.ClientSession.LiveQueriesUnsubscribe">;
318
318
  } & {
319
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
319
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
320
320
  } & {
321
321
  clientId: typeof Schema.String;
322
322
  sessionId: typeof Schema.String;
@@ -346,7 +346,7 @@ export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
346
346
  declare const LiveQueriesRes_base: Schema.Struct<{
347
347
  _tag: Schema.tag<"LSD.ClientSession.LiveQueriesRes">;
348
348
  } & {
349
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
349
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
350
350
  } & {
351
351
  clientId: typeof Schema.String;
352
352
  sessionId: typeof Schema.String;
@@ -360,7 +360,7 @@ export declare class LiveQueriesRes extends LiveQueriesRes_base {
360
360
  declare const Ping_base: Schema.Struct<{
361
361
  _tag: Schema.tag<"LSD.ClientSession.Ping">;
362
362
  } & {
363
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
363
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
364
364
  } & {
365
365
  clientId: typeof Schema.String;
366
366
  sessionId: typeof Schema.String;
@@ -371,7 +371,7 @@ export declare class Ping extends Ping_base {
371
371
  declare const Pong_base: Schema.Struct<{
372
372
  _tag: Schema.tag<"LSD.ClientSession.Pong">;
373
373
  } & {
374
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
374
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
375
375
  } & {
376
376
  clientId: typeof Schema.String;
377
377
  sessionId: typeof Schema.String;
@@ -382,7 +382,7 @@ export declare class Pong extends Pong_base {
382
382
  declare const Disconnect_base: Schema.Struct<{
383
383
  _tag: Schema.tag<"LSD.ClientSession.Disconnect">;
384
384
  } & {
385
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
385
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
386
386
  } & {
387
387
  clientId: typeof Schema.String;
388
388
  sessionId: typeof Schema.String;
@@ -3,23 +3,23 @@ export { NetworkStatus } from '../sync/sync-backend.ts';
3
3
  export declare const requestId: typeof Schema.String;
4
4
  export declare const clientId: typeof Schema.String;
5
5
  export declare const sessionId: typeof Schema.String;
6
- export declare const liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
6
+ export declare const liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
7
7
  export declare const LSDMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
8
8
  _tag: Schema.tag<Tag>;
9
9
  } & {
10
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
10
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
11
11
  } & Fields>;
12
12
  export declare const LSDChannelMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
13
13
  _tag: Schema.tag<Tag>;
14
14
  } & {
15
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
15
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
16
16
  } & {
17
17
  clientId: typeof Schema.String;
18
18
  } & Fields>;
19
19
  export declare const LSDClientSessionChannelMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
20
20
  _tag: Schema.tag<Tag>;
21
21
  } & {
22
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
22
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
23
23
  } & {
24
24
  clientId: typeof Schema.String;
25
25
  sessionId: typeof Schema.String;
@@ -27,7 +27,7 @@ export declare const LSDClientSessionChannelMessage: <Tag extends string, Fields
27
27
  export declare const LSDClientSessionReqResMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
28
28
  _tag: Schema.tag<Tag>;
29
29
  } & {
30
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
30
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
31
31
  } & {
32
32
  clientId: typeof Schema.String;
33
33
  sessionId: typeof Schema.String;
@@ -36,7 +36,7 @@ export declare const LSDClientSessionReqResMessage: <Tag extends string, Fields
36
36
  export declare const LSDReqResMessage: <Tag extends string, Fields extends Schema.Struct.Fields>(tag: Tag, fields: Fields) => Schema.Struct<{
37
37
  _tag: Schema.tag<Tag>;
38
38
  } & {
39
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
39
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
40
40
  } & {
41
41
  clientId: typeof Schema.String;
42
42
  } & {
@@ -4,7 +4,7 @@ import * as SyncState from '../sync/syncstate.ts';
4
4
  declare const ResetAllDataReq_base: Schema.Struct<{
5
5
  _tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
6
6
  } & {
7
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
7
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
8
8
  } & {
9
9
  clientId: typeof Schema.String;
10
10
  } & {
@@ -17,7 +17,7 @@ export declare class ResetAllDataReq extends ResetAllDataReq_base {
17
17
  declare const DatabaseFileInfoReq_base: Schema.Struct<{
18
18
  _tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
19
19
  } & {
20
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
20
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
21
21
  } & {
22
22
  clientId: typeof Schema.String;
23
23
  } & {
@@ -39,7 +39,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
39
39
  declare const DatabaseFileInfoRes_base: Schema.Struct<{
40
40
  _tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
41
41
  } & {
42
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
42
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
43
43
  } & {
44
44
  clientId: typeof Schema.String;
45
45
  } & {
@@ -53,7 +53,7 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
53
53
  declare const NetworkStatusSubscribe_base: Schema.Struct<{
54
54
  _tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
55
55
  } & {
56
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
56
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
57
57
  } & {
58
58
  clientId: typeof Schema.String;
59
59
  } & {
@@ -66,7 +66,7 @@ export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base
66
66
  declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
67
67
  _tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
68
68
  } & {
69
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
69
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
70
70
  } & {
71
71
  clientId: typeof Schema.String;
72
72
  } & {
@@ -79,7 +79,7 @@ export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_b
79
79
  declare const NetworkStatusRes_base: Schema.Struct<{
80
80
  _tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
81
81
  } & {
82
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
82
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
83
83
  } & {
84
84
  clientId: typeof Schema.String;
85
85
  } & {
@@ -99,7 +99,7 @@ export declare class NetworkStatusRes extends NetworkStatusRes_base {
99
99
  declare const SyncingInfoReq_base: Schema.Struct<{
100
100
  _tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
101
101
  } & {
102
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
102
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
103
103
  } & {
104
104
  clientId: typeof Schema.String;
105
105
  } & {
@@ -116,7 +116,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
116
116
  declare const SyncingInfoRes_base: Schema.Struct<{
117
117
  _tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
118
118
  } & {
119
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
119
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
120
120
  } & {
121
121
  clientId: typeof Schema.String;
122
122
  } & {
@@ -129,7 +129,7 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
129
129
  declare const SyncHistorySubscribe_base: Schema.Struct<{
130
130
  _tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
131
131
  } & {
132
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
132
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
133
133
  } & {
134
134
  clientId: typeof Schema.String;
135
135
  } & {
@@ -142,7 +142,7 @@ export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
142
142
  declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
143
143
  _tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
144
144
  } & {
145
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
145
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
146
146
  } & {
147
147
  clientId: typeof Schema.String;
148
148
  } & {
@@ -155,7 +155,7 @@ export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base
155
155
  declare const SyncHistoryRes_base: Schema.Struct<{
156
156
  _tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
157
157
  } & {
158
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
158
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
159
159
  } & {
160
160
  clientId: typeof Schema.String;
161
161
  } & {
@@ -177,7 +177,7 @@ export declare class SyncHistoryRes extends SyncHistoryRes_base {
177
177
  declare const SyncHeadSubscribe_base: Schema.Struct<{
178
178
  _tag: Schema.tag<"LSD.Leader.SyncHeadSubscribe">;
179
179
  } & {
180
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
180
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
181
181
  } & {
182
182
  clientId: typeof Schema.String;
183
183
  } & {
@@ -190,7 +190,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
190
190
  declare const SyncHeadUnsubscribe_base: Schema.Struct<{
191
191
  _tag: Schema.tag<"LSD.Leader.SyncHeadUnsubscribe">;
192
192
  } & {
193
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
193
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
194
194
  } & {
195
195
  clientId: typeof Schema.String;
196
196
  } & {
@@ -203,7 +203,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
203
203
  declare const SyncHeadRes_base: Schema.Struct<{
204
204
  _tag: Schema.tag<"LSD.Leader.SyncHeadRes">;
205
205
  } & {
206
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
206
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
207
207
  } & {
208
208
  clientId: typeof Schema.String;
209
209
  } & {
@@ -230,7 +230,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
230
230
  declare const SnapshotReq_base: Schema.Struct<{
231
231
  _tag: Schema.tag<"LSD.Leader.SnapshotReq">;
232
232
  } & {
233
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
233
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
234
234
  } & {
235
235
  clientId: typeof Schema.String;
236
236
  } & {
@@ -241,7 +241,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
241
241
  declare const SnapshotRes_base: Schema.Struct<{
242
242
  _tag: Schema.tag<"LSD.Leader.SnapshotRes">;
243
243
  } & {
244
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
244
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
245
245
  } & {
246
246
  clientId: typeof Schema.String;
247
247
  } & {
@@ -253,6 +253,7 @@ export declare class SnapshotRes extends SnapshotRes_base {
253
253
  }
254
254
  export declare const LoadDatabaseFile: import("./devtools-messages-common.ts").LeaderReqResSchema<"LSD.Leader.LoadDatabaseFile", {
255
255
  data: Schema.Schema<Uint8Array<ArrayBuffer>>;
256
+ batchId: Schema.optional<typeof Schema.String>;
256
257
  }, {}, {
257
258
  cause: Schema.Union<[Schema.TaggedStruct<"unsupported-file", {}>, Schema.TaggedStruct<"unsupported-database", {}>, Schema.TaggedStruct<"unknown-error", {
258
259
  cause: typeof Schema.Defect;
@@ -261,7 +262,7 @@ export declare const LoadDatabaseFile: import("./devtools-messages-common.ts").L
261
262
  declare const SyncPull_base: Schema.Struct<{
262
263
  _tag: Schema.tag<"LSD.Leader.SyncPull">;
263
264
  } & {
264
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
265
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
265
266
  } & {
266
267
  payload: typeof SyncState.PayloadUpstream;
267
268
  }>;
@@ -270,7 +271,7 @@ export declare class SyncPull extends SyncPull_base {
270
271
  declare const CommitEventReq_base: Schema.Struct<{
271
272
  _tag: Schema.tag<"LSD.Leader.CommitEventReq">;
272
273
  } & {
273
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
274
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
274
275
  } & {
275
276
  clientId: typeof Schema.String;
276
277
  } & {
@@ -286,7 +287,7 @@ export declare class CommitEventReq extends CommitEventReq_base {
286
287
  declare const CommitEventRes_base: Schema.Struct<{
287
288
  _tag: Schema.tag<"LSD.Leader.CommitEventRes">;
288
289
  } & {
289
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
290
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
290
291
  } & {
291
292
  clientId: typeof Schema.String;
292
293
  } & {
@@ -297,7 +298,7 @@ export declare class CommitEventRes extends CommitEventRes_base {
297
298
  declare const EventlogReq_base: Schema.Struct<{
298
299
  _tag: Schema.tag<"LSD.Leader.EventlogReq">;
299
300
  } & {
300
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
301
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
301
302
  } & {
302
303
  clientId: typeof Schema.String;
303
304
  } & {
@@ -308,7 +309,7 @@ export declare class EventlogReq extends EventlogReq_base {
308
309
  declare const EventlogRes_base: Schema.Struct<{
309
310
  _tag: Schema.tag<"LSD.Leader.EventlogRes">;
310
311
  } & {
311
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
312
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
312
313
  } & {
313
314
  clientId: typeof Schema.String;
314
315
  } & {
@@ -321,7 +322,7 @@ export declare class EventlogRes extends EventlogRes_base {
321
322
  declare const Ping_base: Schema.Struct<{
322
323
  _tag: Schema.tag<"LSD.Leader.Ping">;
323
324
  } & {
324
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
325
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
325
326
  } & {
326
327
  clientId: typeof Schema.String;
327
328
  } & {
@@ -332,7 +333,7 @@ export declare class Ping extends Ping_base {
332
333
  declare const Pong_base: Schema.Struct<{
333
334
  _tag: Schema.tag<"LSD.Leader.Pong">;
334
335
  } & {
335
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
336
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
336
337
  } & {
337
338
  clientId: typeof Schema.String;
338
339
  } & {
@@ -343,7 +344,7 @@ export declare class Pong extends Pong_base {
343
344
  declare const Disconnect_base: Schema.Struct<{
344
345
  _tag: Schema.tag<"LSD.Leader.Disconnect">;
345
346
  } & {
346
- liveStoreVersion: Schema.Literal<["0.4.0-dev.20"]>;
347
+ liveStoreVersion: Schema.Literal<["0.4.0-dev.21"]>;
347
348
  } & {
348
349
  clientId: typeof Schema.String;
349
350
  } & {
@@ -359,6 +360,7 @@ export declare const ResetAllData: import("./devtools-messages-common.ts").Leade
359
360
  }, {}, never>;
360
361
  export declare const MessageToApp: Schema.Union<[typeof SnapshotReq, Schema.TaggedStruct<"LSD.Leader.LoadDatabaseFile.Request", {
361
362
  data: Schema.Schema<Uint8Array<ArrayBuffer>>;
363
+ batchId: Schema.optional<typeof Schema.String>;
362
364
  } & {
363
365
  readonly requestId: typeof Schema.String;
364
366
  readonly liveStoreVersion: typeof import("./devtools-messages-common.ts").liveStoreVersion;
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-messages-leader.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;AAG9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;;;;;;;;;;;;AAGjD,qBAAa,eAAgB,SAAQ,oBAEnC;CAAG;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAAsD;CAAG;;;;;;;;;;AAElG,qBAAa,gBAAiB,SAAQ,qBAGpC;CAAG;;;;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAGvC;CAAG;;;;;;;;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAE1C;CAAG;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;AAEF,eAAO,MAAM,YAAY;;aAKvB,CAAA;AA0BF,eAAO,MAAM,YAAY;UA3EY,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;IA4FnB,CAAA;AAExD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAEnD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;IAe+B,CAAA;AAE1D,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA"}
@@ -80,6 +80,7 @@ export class SnapshotRes extends LSDReqResMessage('LSD.Leader.SnapshotRes', {
80
80
  export const LoadDatabaseFile = LeaderReqResMessage('LSD.Leader.LoadDatabaseFile', {
81
81
  payload: {
82
82
  data: Transferable.Uint8Array,
83
+ batchId: Schema.optional(Schema.String),
83
84
  },
84
85
  success: {},
85
86
  error: {
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-messages-leader.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAEhH,MAAM,OAAO,eAAgB,SAAQ,gBAAgB,CAAC,4BAA4B,EAAE;IAClF,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC;CAChD,CAAC;CAAG;AAEL,MAAM,OAAO,mBAAoB,SAAQ,gBAAgB,CAAC,gCAAgC,EAAE,EAAE,CAAC;CAAG;AAElG,MAAM,OAAO,gBAAiB,SAAQ,MAAM,C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AM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC,yBAAyB,EAAE;IACzE,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC;KAChD;IACD,OAAO,EAAE,EAAE;CACZ,CAAC,CAAA;AAEF,0GAA0G;AAC1G,oHAAoH;AACpH,eAAe;AACf,iBAAiB;AACjB,wBAAwB;AACxB,OAAO;AACP,+BAA+B;AAC/B,2BAA2B;AAC3B,QAAQ;AAER,2GAA2G;AAC3G,eAAe;AACf,iBAAiB;AACjB,wBAAwB;AACxB,OAAO;AACP,4BAA4B;AAC5B,2BAA2B;AAC3B,QAAQ;AAER,+EAA+E;AAE/E,wDAAwD;AACxD,EAAE;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CACtC,WAAW,EACX,gBAAgB,CAAC,OAAO,EACxB,WAAW,EACX,YAAY,CAAC,OAAO,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAA;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CACxC,WAAW,EACX,gBAAgB,CAAC,QAAQ,EACzB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,CAAC,OAAO,EACpB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,2BAA2B,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"devtools-messages-leader.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"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,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAA;AAIxD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CACxC,WAAW,EACX,gBAAgB,CAAC,QAAQ,EACzB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,CAAC,OAAO,EACpB,YAAY,CAAC,OAAO,CACrB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,2BAA2B,EAAE,CAAC,CAAA"}
@@ -43,10 +43,43 @@ export declare const makeLeaderSyncProcessor: ({ schema, dbState, initialBlockin
43
43
  onError: "shutdown" | "ignore";
44
44
  params: {
45
45
  /**
46
+ * Maximum number of local events to process per batch cycle.
47
+ *
48
+ * This controls how many events from client sessions are applied to the local state
49
+ * in a single iteration before yielding to allow potential backend pulls.
50
+ *
51
+ * **Trade-offs:**
52
+ * - **Lower values (1-5):** More responsive to remote updates since pull processing can
53
+ * interleave more frequently. Better for high-conflict scenarios where rebases are common.
54
+ * Slightly higher per-event overhead due to more frequent transaction commits.
55
+ *
56
+ * - **Higher values (10-50+):** Better throughput for bulk local writes as more events are
57
+ * batched into a single transaction. However, may delay remote update processing and
58
+ * increase rebase complexity if many local events queue up during a slow pull.
59
+ *
60
+ * - **Very high values (100+):** Risk of starvation for pull processing if local pushes
61
+ * arrive continuously. May cause larger rollbacks during rebases. Not recommended
62
+ * unless you have a write-heavy workload with minimal remote synchronization.
63
+ *
46
64
  * @default 10
47
65
  */
48
66
  localPushBatchSize?: number;
49
67
  /**
68
+ * Maximum number of events to push to the sync backend per batch.
69
+ *
70
+ * This controls how many events are sent in a single push request to the remote server.
71
+ *
72
+ * **Trade-offs:**
73
+ * - **Lower values (1-10):** Lower latency for each push operation. Faster feedback on
74
+ * push success/failure. Slightly higher network overhead due to more requests.
75
+ *
76
+ * - **Higher values (50-100):** Better network efficiency by amortizing request overhead.
77
+ * Preferred for high-throughput scenarios. May increase latency to first confirmation.
78
+ *
79
+ * - **Very high values (200+):** Risk of hitting server request size limits or timeouts.
80
+ * A single failed request loses the entire batch (will be retried). May cause memory
81
+ * pressure if events accumulate faster than they can be pushed.
82
+ *
50
83
  * @default 50
51
84
  */
52
85
  backendPushBatchSize?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"LeaderSyncProcessor.d.ts","sourceRoot":"","sources":["../../src/leader-thread/LeaderSyncProcessor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAuB,KAAK,EAAU,MAAM,yBAAyB,CAAA;AACjF,OAAO,EAKL,MAAM,EAYP,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAwD,KAAK,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEvH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AASvD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AAIjD,OAAO,KAAK,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAQjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,uBAAuB,GAAI,wGASrC;IACD,MAAM,EAAE,eAAe,CAAA;IACvB,OAAO,EAAE,QAAQ,CAAA;IACjB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,sFAAsF;IACtF,gBAAgB,EAAE,SAAS,CAAC,SAAS,CAAA;IACrC,OAAO,EAAE,UAAU,GAAG,QAAQ,CAAA;IAC9B,MAAM,EAAE;QACN;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;QAC3B;;W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CAAA;IACD;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE;QACP,MAAM,CAAC,EAAE;YACP,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;SAC1C,CAAA;KACF,CAAA;CACF,KAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,CAuR5D,CAAA"}
@@ -41,8 +41,8 @@ import { LeaderThreadCtx } from "./types.js";
41
41
  */
42
42
  export const makeLeaderSyncProcessor = ({ schema, dbState, initialBlockingSyncContext, initialSyncState, onError, livePull, params, testing, }) => Effect.gen(function* () {
43
43
  const syncBackendPushQueue = yield* BucketQueue.make();
44
- const localPushBatchSize = params.localPushBatchSize ?? 1;
45
- const backendPushBatchSize = params.backendPushBatchSize ?? 2;
44
+ const localPushBatchSize = params.localPushBatchSize ?? 10;
45
+ const backendPushBatchSize = params.backendPushBatchSize ?? 50;
46
46
  const syncStateSref = yield* SubscriptionRef.make(undefined);
47
47
  const isClientEvent = (eventEncoded) => schema.eventsDefsMap.get(eventEncoded.name)?.options.clientOnly ?? false;
48
48
  const connectedClientSessionPullQueues = yield* makePullQueueSet;