@dxos/echo-pipeline 0.1.53-main.797c2c4 → 0.1.53-main.82f3479

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.
@@ -8,7 +8,7 @@ import { DataCorruptionError } from "@dxos/errors";
8
8
  import { log } from "@dxos/log";
9
9
  import { STORAGE_VERSION, schema } from "@dxos/protocols";
10
10
  import { arrayToBuffer } from "@dxos/util";
11
- var __decorate = function(decorators, target, key, desc) {
11
+ function _ts_decorate(decorators, target, key, desc) {
12
12
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
13
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
14
14
  r = Reflect.decorate(decorators, target, key, desc);
@@ -17,7 +17,8 @@ var __decorate = function(decorators, target, key, desc) {
17
17
  if (d = decorators[i])
18
18
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
19
19
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
- };
20
+ }
21
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts";
21
22
  var emptyEchoMetadata = () => ({
22
23
  version: STORAGE_VERSION,
23
24
  spaces: [],
@@ -62,10 +63,10 @@ var MetadataStore = class {
62
63
  size: dataSize,
63
64
  checksum
64
65
  }, {
65
- file: "metadata-store.ts",
66
- line: 69,
67
- scope: this,
68
- callSite: (f, a) => f(...a)
66
+ F: __dxlog_file,
67
+ L: 69,
68
+ S: this,
69
+ C: (f, a) => f(...a)
69
70
  });
70
71
  if (fileLength < dataSize + 8) {
71
72
  throw new DataCorruptionError("Metadata size is smaller than expected.");
@@ -80,10 +81,10 @@ var MetadataStore = class {
80
81
  log.error("failed to load metadata", {
81
82
  err
82
83
  }, {
83
- file: "metadata-store.ts",
84
- line: 84,
85
- scope: this,
86
- callSite: (f, a) => f(...a)
84
+ F: __dxlog_file,
85
+ L: 84,
86
+ S: this,
87
+ C: (f, a) => f(...a)
87
88
  });
88
89
  this._metadata = emptyEchoMetadata();
89
90
  } finally {
@@ -112,10 +113,10 @@ var MetadataStore = class {
112
113
  size: encoded.length,
113
114
  checksum
114
115
  }, {
115
- file: "metadata-store.ts",
116
- line: 116,
117
- scope: this,
118
- callSite: (f, a) => f(...a)
116
+ F: __dxlog_file,
117
+ L: 116,
118
+ S: this,
119
+ C: (f, a) => f(...a)
119
120
  });
120
121
  } finally {
121
122
  await file.close();
@@ -134,11 +135,11 @@ var MetadataStore = class {
134
135
  * Clears storage - doesn't work for now.
135
136
  */
136
137
  async clear() {
137
- log("clearing all metadata", {}, {
138
- file: "metadata-store.ts",
139
- line: 137,
140
- scope: this,
141
- callSite: (f, a) => f(...a)
138
+ log("clearing all metadata", void 0, {
139
+ F: __dxlog_file,
140
+ L: 137,
141
+ S: this,
142
+ C: (f, a) => f(...a)
142
143
  });
143
144
  await this._directory.delete();
144
145
  this._metadata = emptyEchoMetadata();
@@ -176,10 +177,10 @@ var MetadataStore = class {
176
177
  await this._save();
177
178
  }
178
179
  };
179
- __decorate([
180
+ _ts_decorate([
180
181
  synchronized
181
182
  ], MetadataStore.prototype, "load", null);
182
- __decorate([
183
+ _ts_decorate([
183
184
  synchronized
184
185
  ], MetadataStore.prototype, "_save", null);
185
186
  var fromBytesInt32 = (buf) => buf.readInt32LE(0);
@@ -205,7 +206,7 @@ import { Event as Event2 } from "@dxos/async";
205
206
  import { timed } from "@dxos/debug";
206
207
  import { log as log2 } from "@dxos/log";
207
208
  import { Timeframe } from "@dxos/timeframe";
208
- var __decorate2 = function(decorators, target, key, desc) {
209
+ function _ts_decorate2(decorators, target, key, desc) {
209
210
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
210
211
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
211
212
  r = Reflect.decorate(decorators, target, key, desc);
@@ -214,7 +215,8 @@ var __decorate2 = function(decorators, target, key, desc) {
214
215
  if (d = decorators[i])
215
216
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
216
217
  return c > 3 && r && Object.defineProperty(target, key, r), r;
217
- };
218
+ }
219
+ var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts";
218
220
  var mapTimeframeToFeedIndexes = (timeframe) => timeframe.frames().map(([feedKey, index]) => ({
219
221
  feedKey,
220
222
  index
@@ -273,10 +275,10 @@ var TimeframeClock = class {
273
275
  target,
274
276
  current: this._timeframe
275
277
  }, {
276
- file: "timeframe-clock.ts",
277
- line: 73,
278
- scope: this,
279
- callSite: (f, a) => f(...a)
278
+ F: __dxlog_file2,
279
+ L: 73,
280
+ S: this,
281
+ C: (f, a) => f(...a)
280
282
  });
281
283
  await this.update.waitForCondition(() => {
282
284
  log2("check if reached", {
@@ -284,16 +286,16 @@ var TimeframeClock = class {
284
286
  current: this._timeframe,
285
287
  deps: Timeframe.dependencies(target, this._timeframe)
286
288
  }, {
287
- file: "timeframe-clock.ts",
288
- line: 75,
289
- scope: this,
290
- callSite: (f, a) => f(...a)
289
+ F: __dxlog_file2,
290
+ L: 75,
291
+ S: this,
292
+ C: (f, a) => f(...a)
291
293
  });
292
294
  return Timeframe.dependencies(target, this._timeframe).isEmpty();
293
295
  });
294
296
  }
295
297
  };
296
- __decorate2([
298
+ _ts_decorate2([
297
299
  timed(5e3)
298
300
  ], TimeframeClock.prototype, "waitUntilReached", null);
299
301
 
@@ -311,6 +313,7 @@ import { ComplexMap } from "@dxos/util";
311
313
  // packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts
312
314
  import invariant3 from "tiny-invariant";
313
315
  import { log as log3 } from "@dxos/log";
316
+ var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts";
314
317
  var createMessageSelector = (timeframeClock) => {
315
318
  return (messages) => {
316
319
  for (let i = 0; i < messages.length; i++) {
@@ -320,17 +323,17 @@ var createMessageSelector = (timeframeClock) => {
320
323
  return i;
321
324
  }
322
325
  }
323
- log3("Skipping...", {}, {
324
- file: "message-selector.ts",
325
- line: 34,
326
- scope: void 0,
327
- callSite: (f, a) => f(...a)
326
+ log3("Skipping...", void 0, {
327
+ F: __dxlog_file3,
328
+ L: 34,
329
+ S: void 0,
330
+ C: (f, a) => f(...a)
328
331
  });
329
332
  };
330
333
  };
331
334
 
332
335
  // packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts
333
- var __decorate3 = function(decorators, target, key, desc) {
336
+ function _ts_decorate3(decorators, target, key, desc) {
334
337
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
335
338
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
336
339
  r = Reflect.decorate(decorators, target, key, desc);
@@ -339,7 +342,8 @@ var __decorate3 = function(decorators, target, key, desc) {
339
342
  if (d = decorators[i])
340
343
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
341
344
  return c > 3 && r && Object.defineProperty(target, key, r), r;
342
- };
345
+ }
346
+ var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts";
343
347
  var PipelineState = class {
344
348
  // prettier-ignore
345
349
  constructor(_feeds, _timeframeClock) {
@@ -395,10 +399,10 @@ var PipelineState = class {
395
399
  current: this.timeframe,
396
400
  target: this.targetTimeframe
397
401
  }, {
398
- file: "pipeline.ts",
399
- line: 118,
400
- scope: this,
401
- callSite: (f, a) => f(...a)
402
+ F: __dxlog_file4,
403
+ L: 118,
404
+ S: this,
405
+ C: (f, a) => f(...a)
402
406
  });
403
407
  (_a = this._reachedTargetPromise) != null ? _a : this._reachedTargetPromise = Promise.race([
404
408
  this._timeframeClock.update.waitForCondition(() => {
@@ -425,10 +429,10 @@ var PipelineState = class {
425
429
  target: this.targetTimeframe,
426
430
  dependencies: Timeframe2.dependencies(this.targetTimeframe, this.timeframe)
427
431
  }, {
428
- file: "pipeline.ts",
429
- line: 144,
430
- scope: this,
431
- callSite: (f, a) => f(...a)
432
+ F: __dxlog_file4,
433
+ L: 144,
434
+ S: this,
435
+ C: (f, a) => f(...a)
432
436
  });
433
437
  })
434
438
  ]);
@@ -483,37 +487,37 @@ var Pipeline = class {
483
487
  }
484
488
  async start() {
485
489
  log4("starting...", {}, {
486
- file: "pipeline.ts",
487
- line: 264,
488
- scope: this,
489
- callSite: (f, a) => f(...a)
490
+ F: __dxlog_file4,
491
+ L: 264,
492
+ S: this,
493
+ C: (f, a) => f(...a)
490
494
  });
491
495
  await this._initIterator();
492
496
  await this._feedSetIterator.open();
493
- log4("started", {}, {
494
- file: "pipeline.ts",
495
- line: 267,
496
- scope: this,
497
- callSite: (f, a) => f(...a)
497
+ log4("started", void 0, {
498
+ F: __dxlog_file4,
499
+ L: 267,
500
+ S: this,
501
+ C: (f, a) => f(...a)
498
502
  });
499
503
  this._isStarted = true;
500
504
  }
501
505
  async stop() {
502
506
  var _a;
503
507
  log4("stopping...", {}, {
504
- file: "pipeline.ts",
505
- line: 273,
506
- scope: this,
507
- callSite: (f, a) => f(...a)
508
+ F: __dxlog_file4,
509
+ L: 273,
510
+ S: this,
511
+ C: (f, a) => f(...a)
508
512
  });
509
513
  this._isStopping = true;
510
514
  await ((_a = this._feedSetIterator) == null ? void 0 : _a.close());
511
515
  await this._processingTrigger.wait();
512
- log4("stopped", {}, {
513
- file: "pipeline.ts",
514
- line: 277,
515
- scope: this,
516
- callSite: (f, a) => f(...a)
516
+ log4("stopped", void 0, {
517
+ F: __dxlog_file4,
518
+ L: 277,
519
+ S: this,
520
+ C: (f, a) => f(...a)
517
521
  });
518
522
  this._isStarted = false;
519
523
  }
@@ -586,11 +590,11 @@ var Pipeline = class {
586
590
  const timeframe = this._state._startTimeframe;
587
591
  const seq = (_a = timeframe.get(feed.key)) != null ? _a : 0;
588
592
  feed.undownload({
589
- callback: () => log4("Undownloaded", {}, {
590
- file: "pipeline.ts",
591
- line: 371,
592
- scope: this,
593
- callSite: (f, a) => f(...a)
593
+ callback: () => log4("Undownloaded", void 0, {
594
+ F: __dxlog_file4,
595
+ L: 371,
596
+ S: this,
597
+ C: (f, a) => f(...a)
594
598
  })
595
599
  });
596
600
  feed.download({
@@ -600,10 +604,10 @@ var Pipeline = class {
600
604
  log4("failed to download feed", {
601
605
  err
602
606
  }, {
603
- file: "pipeline.ts",
604
- line: 374,
605
- scope: this,
606
- callSite: (f, a) => f(...a)
607
+ F: __dxlog_file4,
608
+ L: 374,
609
+ S: this,
610
+ C: (f, a) => f(...a)
607
611
  });
608
612
  });
609
613
  }
@@ -613,11 +617,11 @@ var Pipeline = class {
613
617
  stallTimeout: 1e3
614
618
  });
615
619
  this._feedSetIterator.stalled.on((iterator) => {
616
- log4.warn(`Stalled after ${iterator.options.stallTimeout}ms with ${iterator.size} feeds.`, {}, {
617
- file: "pipeline.ts",
618
- line: 384,
619
- scope: this,
620
- callSite: (f, a) => f(...a)
620
+ log4.warn(`Stalled after ${iterator.options.stallTimeout}ms with ${iterator.size} feeds.`, void 0, {
621
+ F: __dxlog_file4,
622
+ L: 384,
623
+ S: this,
624
+ C: (f, a) => f(...a)
621
625
  });
622
626
  this._state.stalled.emit();
623
627
  });
@@ -626,19 +630,19 @@ var Pipeline = class {
626
630
  }
627
631
  }
628
632
  };
629
- __decorate3([
633
+ _ts_decorate3([
630
634
  synchronized2
631
635
  ], Pipeline.prototype, "start", null);
632
- __decorate3([
636
+ _ts_decorate3([
633
637
  synchronized2
634
638
  ], Pipeline.prototype, "stop", null);
635
- __decorate3([
639
+ _ts_decorate3([
636
640
  synchronized2
637
641
  ], Pipeline.prototype, "setCursor", null);
638
- __decorate3([
642
+ _ts_decorate3([
639
643
  synchronized2
640
644
  ], Pipeline.prototype, "pause", null);
641
- __decorate3([
645
+ _ts_decorate3([
642
646
  synchronized2
643
647
  ], Pipeline.prototype, "unpause", null);
644
648
 
@@ -650,6 +654,7 @@ import { randomBytes } from "@dxos/crypto";
650
654
  import { log as log5 } from "@dxos/log";
651
655
  import { schema as schema3 } from "@dxos/protocols";
652
656
  import { RpcExtension } from "@dxos/teleport";
657
+ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/auth.ts";
653
658
  var AuthExtension = class extends RpcExtension {
654
659
  constructor(_authParams) {
655
660
  super({
@@ -664,11 +669,11 @@ var AuthExtension = class extends RpcExtension {
664
669
  this._authParams = _authParams;
665
670
  this._ctx = new Context2({
666
671
  onError: (err) => {
667
- log5.catch(err, {}, {
668
- file: "auth.ts",
669
- line: 29,
670
- scope: this,
671
- callSite: (f, a) => f(...a)
672
+ log5.catch(err, void 0, {
673
+ F: __dxlog_file5,
674
+ L: 29,
675
+ S: this,
676
+ C: (f, a) => f(...a)
672
677
  });
673
678
  }
674
679
  });
@@ -687,10 +692,10 @@ var AuthExtension = class extends RpcExtension {
687
692
  };
688
693
  } catch (err) {
689
694
  log5.error("failed to generate auth credentials", err, {
690
- file: "auth.ts",
691
- line: 56,
692
- scope: this,
693
- callSite: (f, a) => f(...a)
695
+ F: __dxlog_file5,
696
+ L: 56,
697
+ S: this,
698
+ C: (f, a) => f(...a)
694
699
  });
695
700
  throw new Error("auth rejected");
696
701
  }
@@ -712,10 +717,10 @@ var AuthExtension = class extends RpcExtension {
712
717
  runInContext(this._ctx, () => this._authParams.onAuthSuccess());
713
718
  } catch (err) {
714
719
  log5("auth failed", err, {
715
- file: "auth.ts",
716
- line: 75,
717
- scope: this,
718
- callSite: (f, a) => f(...a)
720
+ F: __dxlog_file5,
721
+ L: 75,
722
+ S: this,
723
+ C: (f, a) => f(...a)
719
724
  });
720
725
  this.close();
721
726
  this._authParams.onAuthFailure();
@@ -734,6 +739,7 @@ import { Stream } from "@dxos/codec-protobuf";
734
739
  import { tagMutationsInBatch, setMetadataOnObject } from "@dxos/echo-db";
735
740
  import { log as log6 } from "@dxos/log";
736
741
  import { ComplexMap as ComplexMap2 } from "@dxos/util";
742
+ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts";
737
743
  var DataServiceHost = class {
738
744
  constructor(_itemManager, _itemDemuxer, _writeStream) {
739
745
  this._itemManager = _itemManager;
@@ -760,10 +766,10 @@ var DataServiceHost = class {
760
766
  batch,
761
767
  meta
762
768
  }, {
763
- file: "data-service-host.ts",
764
- line: 51,
765
- scope: this,
766
- callSite: (f, a) => f(...a)
769
+ F: __dxlog_file6,
770
+ L: 51,
771
+ S: this,
772
+ C: (f, a) => f(...a)
767
773
  });
768
774
  const clientTag = this._clientTagMap.get([
769
775
  message.meta.feedKey,
@@ -793,10 +799,10 @@ var DataServiceHost = class {
793
799
  clientTag: request.clientTag,
794
800
  objectCount: (_b = (_a = request.batch.objects) == null ? void 0 : _a.length) != null ? _b : 0
795
801
  }, {
796
- file: "data-service-host.ts",
797
- line: 79,
798
- scope: this,
799
- callSite: (f, a) => f(...a)
802
+ F: __dxlog_file6,
803
+ L: 79,
804
+ S: this,
805
+ C: (f, a) => f(...a)
800
806
  });
801
807
  const message = createDataMessage(request.batch);
802
808
  const receipt = await this._writeStream.write(message, {
@@ -807,10 +813,10 @@ var DataServiceHost = class {
807
813
  feedKey: receipt2.feedKey,
808
814
  seq: receipt2.seq
809
815
  }, {
810
- file: "data-service-host.ts",
811
- line: 88,
812
- scope: this,
813
- callSite: (f, a) => f(...a)
816
+ F: __dxlog_file6,
817
+ L: 88,
818
+ S: this,
819
+ C: (f, a) => f(...a)
814
820
  });
815
821
  this._clientTagMap.set([
816
822
  receipt2.feedKey,
@@ -880,7 +886,7 @@ import { timed as timed2 } from "@dxos/debug";
880
886
  import { PublicKey as PublicKey2 } from "@dxos/keys";
881
887
  import { schema as schema4 } from "@dxos/protocols";
882
888
  import { BlobMeta } from "@dxos/protocols/proto/dxos/echo/blob";
883
- var __decorate4 = function(decorators, target, key, desc) {
889
+ function _ts_decorate4(decorators, target, key, desc) {
884
890
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
885
891
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
886
892
  r = Reflect.decorate(decorators, target, key, desc);
@@ -889,7 +895,7 @@ var __decorate4 = function(decorators, target, key, desc) {
889
895
  if (d = decorators[i])
890
896
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
891
897
  return c > 3 && r && Object.defineProperty(target, key, r), r;
892
- };
898
+ }
893
899
  var SnapshotManager = class SnapshotManager2 {
894
900
  // prettier-ignore
895
901
  constructor(_snapshotStore, _blobStore, _blobSync) {
@@ -920,10 +926,10 @@ var SnapshotManager = class SnapshotManager2 {
920
926
  return PublicKey2.from(id).toHex();
921
927
  }
922
928
  };
923
- __decorate4([
929
+ _ts_decorate4([
924
930
  timed2(1e4)
925
931
  ], SnapshotManager.prototype, "load", null);
926
- SnapshotManager = __decorate4([
932
+ SnapshotManager = _ts_decorate4([
927
933
  trackLeaks("open", "close")
928
934
  ], SnapshotManager);
929
935
 
@@ -978,6 +984,7 @@ import { raise } from "@dxos/debug";
978
984
  import { PublicKey as PublicKey3 } from "@dxos/keys";
979
985
  import { log as log7 } from "@dxos/log";
980
986
  import { ComplexMap as ComplexMap3 } from "@dxos/util";
987
+ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/dbhost/data-service.ts";
981
988
  var DataServiceSubscriptions = class {
982
989
  constructor() {
983
990
  this._spaces = new ComplexMap3(PublicKey3.hash);
@@ -989,10 +996,10 @@ var DataServiceSubscriptions = class {
989
996
  log7("Registering space", {
990
997
  spaceKey
991
998
  }, {
992
- file: "data-service.ts",
993
- line: 31,
994
- scope: this,
995
- callSite: (f, a) => f(...a)
999
+ F: __dxlog_file7,
1000
+ L: 31,
1001
+ S: this,
1002
+ C: (f, a) => f(...a)
996
1003
  });
997
1004
  this._spaces.set(spaceKey, host);
998
1005
  }
@@ -1000,10 +1007,10 @@ var DataServiceSubscriptions = class {
1000
1007
  log7("Unregistering space", {
1001
1008
  spaceKey
1002
1009
  }, {
1003
- file: "data-service.ts",
1004
- line: 36,
1005
- scope: this,
1006
- callSite: (f, a) => f(...a)
1010
+ F: __dxlog_file7,
1011
+ L: 36,
1012
+ S: this,
1013
+ C: (f, a) => f(...a)
1007
1014
  });
1008
1015
  this._spaces.delete(spaceKey);
1009
1016
  }
@@ -1039,7 +1046,7 @@ import { getStateMachineFromItem, ItemManager } from "@dxos/echo-db";
1039
1046
  import { CancelledError } from "@dxos/errors";
1040
1047
  import { log as log8 } from "@dxos/log";
1041
1048
  import { Timeframe as Timeframe3 } from "@dxos/timeframe";
1042
- var __decorate5 = function(decorators, target, key, desc) {
1049
+ function _ts_decorate5(decorators, target, key, desc) {
1043
1050
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1044
1051
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1045
1052
  r = Reflect.decorate(decorators, target, key, desc);
@@ -1048,7 +1055,8 @@ var __decorate5 = function(decorators, target, key, desc) {
1048
1055
  if (d = decorators[i])
1049
1056
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1050
1057
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1051
- };
1058
+ }
1059
+ var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/data-pipeline.ts";
1052
1060
  var MESSAGES_PER_SNAPSHOT = 10;
1053
1061
  var AUTOMATIC_SNAPSHOT_DEBOUNCE_INTERVAL = 5e3;
1054
1062
  var TIMEFRAME_SAVE_DEBOUNCE_INTERVAL = 500;
@@ -1124,11 +1132,11 @@ var DataPipeline = class DataPipeline2 {
1124
1132
  if (!this._isOpen) {
1125
1133
  return;
1126
1134
  }
1127
- log8("close", {}, {
1128
- file: "data-pipeline.ts",
1129
- line: 174,
1130
- scope: this,
1131
- callSite: (f, a) => f(...a)
1135
+ log8("close", void 0, {
1136
+ F: __dxlog_file8,
1137
+ L: 174,
1138
+ S: this,
1139
+ C: (f, a) => f(...a)
1132
1140
  });
1133
1141
  this._isOpen = false;
1134
1142
  await this._ctx.dispose();
@@ -1139,11 +1147,11 @@ var DataPipeline = class DataPipeline2 {
1139
1147
  await this._saveTargetTimeframe(this._pipeline.state.timeframe);
1140
1148
  }
1141
1149
  } catch (err) {
1142
- log8.catch(err, {}, {
1143
- file: "data-pipeline.ts",
1144
- line: 187,
1145
- scope: this,
1146
- callSite: (f, a) => f(...a)
1150
+ log8.catch(err, void 0, {
1151
+ F: __dxlog_file8,
1152
+ L: 187,
1153
+ S: this,
1154
+ C: (f, a) => f(...a)
1147
1155
  });
1148
1156
  }
1149
1157
  await ((_b = this.databaseHost) == null ? void 0 : _b.close());
@@ -1162,10 +1170,10 @@ var DataPipeline = class DataPipeline2 {
1162
1170
  feedKey,
1163
1171
  seq
1164
1172
  }, {
1165
- file: "data-pipeline.ts",
1166
- line: 204,
1167
- scope: this,
1168
- callSite: (f, a) => f(...a)
1173
+ F: __dxlog_file8,
1174
+ L: 204,
1175
+ S: this,
1176
+ C: (f, a) => f(...a)
1169
1177
  });
1170
1178
  try {
1171
1179
  if (data.payload.data) {
@@ -1174,10 +1182,10 @@ var DataPipeline = class DataPipeline2 {
1174
1182
  log8.error("Could not find feed.", {
1175
1183
  feedKey
1176
1184
  }, {
1177
- file: "data-pipeline.ts",
1178
- line: 210,
1179
- scope: this,
1180
- callSite: (f, a) => f(...a)
1185
+ F: __dxlog_file8,
1186
+ L: 210,
1187
+ S: this,
1188
+ C: (f, a) => f(...a)
1181
1189
  });
1182
1190
  continue;
1183
1191
  }
@@ -1195,19 +1203,19 @@ var DataPipeline = class DataPipeline2 {
1195
1203
  seq,
1196
1204
  spaceKey: this._params.spaceKey.toHex()
1197
1205
  }, {
1198
- file: "data-pipeline.ts",
1199
- line: 224,
1200
- scope: this,
1201
- callSite: (f, a) => f(...a)
1206
+ F: __dxlog_file8,
1207
+ L: 224,
1208
+ S: this,
1209
+ C: (f, a) => f(...a)
1202
1210
  });
1203
1211
  await this._noteTargetStateIfNeeded(this._pipeline.state.pendingTimeframe);
1204
1212
  }
1205
1213
  } catch (err) {
1206
- log8.catch(err, {}, {
1207
- file: "data-pipeline.ts",
1208
- line: 234,
1209
- scope: this,
1210
- callSite: (f, a) => f(...a)
1214
+ log8.catch(err, void 0, {
1215
+ F: __dxlog_file8,
1216
+ L: 234,
1217
+ S: this,
1218
+ C: (f, a) => f(...a)
1211
1219
  });
1212
1220
  }
1213
1221
  }
@@ -1232,18 +1240,17 @@ var DataPipeline = class DataPipeline2 {
1232
1240
  try {
1233
1241
  const propertiesItem = this.itemManager.items.find((item) => {
1234
1242
  var _a2, _b;
1235
- return ((_a2 = item.modelMeta) == null ? void 0 : _a2.type) === "dxos:model/document" && // TODO(burdon): Document?
1236
- ((_b = getStateMachineFromItem(item)) == null ? void 0 : _b.snapshot().type) === "dxos.sdk.client.Properties";
1243
+ return ((_a2 = item.modelMeta) == null ? void 0 : _a2.type) === "dxos:model/document" && ((_b = getStateMachineFromItem(item)) == null ? void 0 : _b.snapshot()).type === "dxos.sdk.client.Properties";
1237
1244
  });
1238
1245
  if (propertiesItem) {
1239
1246
  cache.properties = (_a = getStateMachineFromItem(propertiesItem)) == null ? void 0 : _a.snapshot();
1240
1247
  }
1241
1248
  } catch (err) {
1242
1249
  log8.warn("Failed to cache properties", err, {
1243
- file: "data-pipeline.ts",
1244
- line: 269,
1245
- scope: this,
1246
- callSite: (f, a) => f(...a)
1250
+ F: __dxlog_file8,
1251
+ L: 269,
1252
+ S: this,
1253
+ C: (f, a) => f(...a)
1247
1254
  });
1248
1255
  }
1249
1256
  await this._params.metadataStore.setCache(this._params.spaceKey, cache);
@@ -1266,18 +1273,18 @@ var DataPipeline = class DataPipeline2 {
1266
1273
  const ctx = new Context3({
1267
1274
  onError: (err) => {
1268
1275
  if (err instanceof CancelledError) {
1269
- log8("Epoch processing cancelled.", {}, {
1270
- file: "data-pipeline.ts",
1271
- line: 301,
1272
- scope: this,
1273
- callSite: (f, a) => f(...a)
1276
+ log8("Epoch processing cancelled.", void 0, {
1277
+ F: __dxlog_file8,
1278
+ L: 301,
1279
+ S: this,
1280
+ C: (f, a) => f(...a)
1274
1281
  });
1275
1282
  } else {
1276
- log8.catch(err, {}, {
1277
- file: "data-pipeline.ts",
1278
- line: 303,
1279
- scope: this,
1280
- callSite: (f, a) => f(...a)
1283
+ log8.catch(err, void 0, {
1284
+ F: __dxlog_file8,
1285
+ L: 303,
1286
+ S: this,
1287
+ C: (f, a) => f(...a)
1281
1288
  });
1282
1289
  }
1283
1290
  }
@@ -1290,10 +1297,10 @@ var DataPipeline = class DataPipeline2 {
1290
1297
  log8("process epoch", {
1291
1298
  epoch
1292
1299
  }, {
1293
- file: "data-pipeline.ts",
1294
- line: 313,
1295
- scope: this,
1296
- callSite: (f, a) => f(...a)
1300
+ F: __dxlog_file8,
1301
+ L: 313,
1302
+ S: this,
1303
+ C: (f, a) => f(...a)
1297
1304
  });
1298
1305
  await this._processEpoch(ctx, epoch.subject.assertion);
1299
1306
  this.appliedEpoch = epoch;
@@ -1307,20 +1314,20 @@ var DataPipeline = class DataPipeline2 {
1307
1314
  log8("Processing epoch", {
1308
1315
  epoch
1309
1316
  }, {
1310
- file: "data-pipeline.ts",
1311
- line: 327,
1312
- scope: this,
1313
- callSite: (f, a) => f(...a)
1317
+ F: __dxlog_file8,
1318
+ L: 327,
1319
+ S: this,
1320
+ C: (f, a) => f(...a)
1314
1321
  });
1315
1322
  if (epoch.snapshotCid) {
1316
1323
  const snapshot = await this._params.snapshotManager.load(ctx, epoch.snapshotCid);
1317
1324
  this.databaseHost._itemDemuxer.restoreFromSnapshot(snapshot.database);
1318
1325
  }
1319
- log8("restarting pipeline for epoch", {}, {
1320
- file: "data-pipeline.ts",
1321
- line: 335,
1322
- scope: this,
1323
- callSite: (f, a) => f(...a)
1326
+ log8("restarting pipeline for epoch", void 0, {
1327
+ F: __dxlog_file8,
1328
+ L: 335,
1329
+ S: this,
1330
+ C: (f, a) => f(...a)
1324
1331
  });
1325
1332
  await this._pipeline.pause();
1326
1333
  await this._pipeline.setCursor(epoch.timeframe);
@@ -1349,19 +1356,19 @@ var DataPipeline = class DataPipeline2 {
1349
1356
  await this.onNewEpoch.waitForCondition(() => !!this.currentEpoch);
1350
1357
  }
1351
1358
  };
1352
- __decorate5([
1359
+ _ts_decorate5([
1353
1360
  synchronized3
1354
1361
  ], DataPipeline.prototype, "open", null);
1355
- __decorate5([
1362
+ _ts_decorate5([
1356
1363
  synchronized3
1357
1364
  ], DataPipeline.prototype, "close", null);
1358
- __decorate5([
1365
+ _ts_decorate5([
1359
1366
  synchronized3
1360
1367
  ], DataPipeline.prototype, "_processEpoch", null);
1361
- __decorate5([
1368
+ _ts_decorate5([
1362
1369
  synchronized3
1363
1370
  ], DataPipeline.prototype, "createEpoch", null);
1364
- DataPipeline = __decorate5([
1371
+ DataPipeline = _ts_decorate5([
1365
1372
  trackLeaks2("open", "close")
1366
1373
  ], DataPipeline);
1367
1374
 
@@ -1379,6 +1386,7 @@ import { log as log9 } from "@dxos/log";
1379
1386
  import { AdmittedFeed } from "@dxos/protocols/proto/dxos/halo/credentials";
1380
1387
  import { Timeframe as Timeframe4 } from "@dxos/timeframe";
1381
1388
  import { Callback } from "@dxos/util";
1389
+ var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/control-pipeline.ts";
1382
1390
  var TIMEFRAME_SAVE_DEBOUNCE_INTERVAL2 = 500;
1383
1391
  var ControlPipeline = class {
1384
1392
  constructor({ spaceKey, genesisFeed, feedProvider, metadataStore }) {
@@ -1393,21 +1401,21 @@ var ControlPipeline = class {
1393
1401
  log9("feed admitted", {
1394
1402
  key: info.key
1395
1403
  }, {
1396
- file: "control-pipeline.ts",
1397
- line: 51,
1398
- scope: this,
1399
- callSite: (f, a) => f(...a)
1404
+ F: __dxlog_file9,
1405
+ L: 51,
1406
+ S: this,
1407
+ C: (f, a) => f(...a)
1400
1408
  });
1401
1409
  if (info.assertion.designation === AdmittedFeed.Designation.CONTROL && !info.key.equals(genesisFeed.key)) {
1402
1410
  try {
1403
1411
  const feed = await feedProvider(info.key);
1404
1412
  await this._pipeline.addFeed(feed);
1405
1413
  } catch (err) {
1406
- log9.catch(err, {}, {
1407
- file: "control-pipeline.ts",
1408
- line: 59,
1409
- scope: this,
1410
- callSite: (f, a) => f(...a)
1414
+ log9.catch(err, void 0, {
1415
+ F: __dxlog_file9,
1416
+ L: 59,
1417
+ S: this,
1418
+ C: (f, a) => f(...a)
1411
1419
  });
1412
1420
  }
1413
1421
  }
@@ -1426,11 +1434,11 @@ var ControlPipeline = class {
1426
1434
  this._pipeline.setWriteFeed(feed);
1427
1435
  }
1428
1436
  async start() {
1429
- log9("starting...", {}, {
1430
- file: "control-pipeline.ts",
1431
- line: 83,
1432
- scope: this,
1433
- callSite: (f, a) => f(...a)
1437
+ log9("starting...", void 0, {
1438
+ F: __dxlog_file9,
1439
+ L: 83,
1440
+ S: this,
1441
+ C: (f, a) => f(...a)
1434
1442
  });
1435
1443
  setTimeout(async () => {
1436
1444
  for await (const msg of this._pipeline.consume()) {
@@ -1439,10 +1447,10 @@ var ControlPipeline = class {
1439
1447
  key: msg.feedKey,
1440
1448
  seq: msg.seq
1441
1449
  }, {
1442
- file: "control-pipeline.ts",
1443
- line: 88,
1444
- scope: this,
1445
- callSite: (f, a) => f(...a)
1450
+ F: __dxlog_file9,
1451
+ L: 88,
1452
+ S: this,
1453
+ C: (f, a) => f(...a)
1446
1454
  });
1447
1455
  if (msg.data.payload.credential) {
1448
1456
  const result = await this._spaceStateMachine.process(msg.data.payload.credential.credential, PublicKey4.from(msg.feedKey));
@@ -1450,31 +1458,31 @@ var ControlPipeline = class {
1450
1458
  log9.warn("processing failed", {
1451
1459
  msg
1452
1460
  }, {
1453
- file: "control-pipeline.ts",
1454
- line: 95,
1455
- scope: this,
1456
- callSite: (f, a) => f(...a)
1461
+ F: __dxlog_file9,
1462
+ L: 95,
1463
+ S: this,
1464
+ C: (f, a) => f(...a)
1457
1465
  });
1458
1466
  } else {
1459
1467
  await this._noteTargetStateIfNeeded(this._pipeline.state.pendingTimeframe);
1460
1468
  }
1461
1469
  }
1462
1470
  } catch (err) {
1463
- log9.catch(err, {}, {
1464
- file: "control-pipeline.ts",
1465
- line: 101,
1466
- scope: this,
1467
- callSite: (f, a) => f(...a)
1471
+ log9.catch(err, void 0, {
1472
+ F: __dxlog_file9,
1473
+ L: 101,
1474
+ S: this,
1475
+ C: (f, a) => f(...a)
1468
1476
  });
1469
1477
  }
1470
1478
  }
1471
1479
  });
1472
1480
  await this._pipeline.start();
1473
- log9("started", {}, {
1474
- file: "control-pipeline.ts",
1475
- line: 107,
1476
- scope: this,
1477
- callSite: (f, a) => f(...a)
1481
+ log9("started", void 0, {
1482
+ F: __dxlog_file9,
1483
+ L: 107,
1484
+ S: this,
1485
+ C: (f, a) => f(...a)
1478
1486
  });
1479
1487
  }
1480
1488
  async _noteTargetStateIfNeeded(timeframe) {
@@ -1484,19 +1492,19 @@ var ControlPipeline = class {
1484
1492
  }
1485
1493
  }
1486
1494
  async stop() {
1487
- log9("stopping...", {}, {
1488
- file: "control-pipeline.ts",
1489
- line: 121,
1490
- scope: this,
1491
- callSite: (f, a) => f(...a)
1495
+ log9("stopping...", void 0, {
1496
+ F: __dxlog_file9,
1497
+ L: 121,
1498
+ S: this,
1499
+ C: (f, a) => f(...a)
1492
1500
  });
1493
1501
  await this._pipeline.stop();
1494
1502
  await this._saveTargetTimeframe(this._pipeline.state.timeframe);
1495
- log9("stopped", {}, {
1496
- file: "control-pipeline.ts",
1497
- line: 124,
1498
- scope: this,
1499
- callSite: (f, a) => f(...a)
1503
+ log9("stopped", void 0, {
1504
+ F: __dxlog_file9,
1505
+ L: 124,
1506
+ S: this,
1507
+ C: (f, a) => f(...a)
1500
1508
  });
1501
1509
  }
1502
1510
  async _saveTargetTimeframe(timeframe) {
@@ -1506,18 +1514,18 @@ var ControlPipeline = class {
1506
1514
  await this._metadata.setSpaceControlLatestTimeframe(this._spaceKey, newTimeframe);
1507
1515
  this._targetTimeframe = newTimeframe;
1508
1516
  } catch (err) {
1509
- log9(err, {}, {
1510
- file: "control-pipeline.ts",
1511
- line: 133,
1512
- scope: this,
1513
- callSite: (f, a) => f(...a)
1517
+ log9(err, void 0, {
1518
+ F: __dxlog_file9,
1519
+ L: 133,
1520
+ S: this,
1521
+ C: (f, a) => f(...a)
1514
1522
  });
1515
1523
  }
1516
1524
  }
1517
1525
  };
1518
1526
 
1519
1527
  // packages/core/echo/echo-pipeline/src/space/space.ts
1520
- var __decorate6 = function(decorators, target, key, desc) {
1528
+ function _ts_decorate6(decorators, target, key, desc) {
1521
1529
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1522
1530
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1523
1531
  r = Reflect.decorate(decorators, target, key, desc);
@@ -1526,7 +1534,8 @@ var __decorate6 = function(decorators, target, key, desc) {
1526
1534
  if (d = decorators[i])
1527
1535
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1528
1536
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1529
- };
1537
+ }
1538
+ var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/space.ts";
1530
1539
  var Space = class Space2 {
1531
1540
  constructor(params) {
1532
1541
  this._addFeedLock = new Lock();
@@ -1570,10 +1579,10 @@ var Space = class Space2 {
1570
1579
  log10("onCredentialProcessed", {
1571
1580
  credential
1572
1581
  }, {
1573
- file: "space.ts",
1574
- line: 110,
1575
- scope: this,
1576
- callSite: (f, a) => f(...a)
1582
+ F: __dxlog_file10,
1583
+ L: 110,
1584
+ S: this,
1585
+ C: (f, a) => f(...a)
1577
1586
  });
1578
1587
  this.stateUpdate.emit();
1579
1588
  });
@@ -1661,11 +1670,11 @@ var Space = class Space2 {
1661
1670
  // return this._dataPipeline?.getFeeds();
1662
1671
  // }
1663
1672
  async open() {
1664
- log10("opening...", {}, {
1665
- file: "space.ts",
1666
- line: 212,
1667
- scope: this,
1668
- callSite: (f, a) => f(...a)
1673
+ log10("opening...", void 0, {
1674
+ F: __dxlog_file10,
1675
+ L: 212,
1676
+ S: this,
1677
+ C: (f, a) => f(...a)
1669
1678
  });
1670
1679
  if (this._isOpen) {
1671
1680
  return;
@@ -1675,11 +1684,11 @@ var Space = class Space2 {
1675
1684
  this._dataPipelineCredentialConsumer = this._controlPipeline.spaceState.registerProcessor(this._dataPipeline.createCredentialProcessor());
1676
1685
  await this._dataPipelineCredentialConsumer.open();
1677
1686
  this._isOpen = true;
1678
- log10("opened", {}, {
1679
- file: "space.ts",
1680
- line: 228,
1681
- scope: this,
1682
- callSite: (f, a) => f(...a)
1687
+ log10("opened", void 0, {
1688
+ F: __dxlog_file10,
1689
+ L: 228,
1690
+ S: this,
1691
+ C: (f, a) => f(...a)
1683
1692
  });
1684
1693
  }
1685
1694
  async close() {
@@ -1687,10 +1696,10 @@ var Space = class Space2 {
1687
1696
  log10("closing...", {
1688
1697
  key: this._key
1689
1698
  }, {
1690
- file: "space.ts",
1691
- line: 233,
1692
- scope: this,
1693
- callSite: (f, a) => f(...a)
1699
+ F: __dxlog_file10,
1700
+ L: 233,
1701
+ S: this,
1702
+ C: (f, a) => f(...a)
1694
1703
  });
1695
1704
  if (!this._isOpen) {
1696
1705
  return;
@@ -1701,37 +1710,37 @@ var Space = class Space2 {
1701
1710
  await this.protocol.stop();
1702
1711
  await this._controlPipeline.stop();
1703
1712
  this._isOpen = false;
1704
- log10("closed", {}, {
1705
- file: "space.ts",
1706
- line: 247,
1707
- scope: this,
1708
- callSite: (f, a) => f(...a)
1713
+ log10("closed", void 0, {
1714
+ F: __dxlog_file10,
1715
+ L: 247,
1716
+ S: this,
1717
+ C: (f, a) => f(...a)
1709
1718
  });
1710
1719
  }
1711
1720
  async initializeDataPipeline() {
1712
- log10("initializeDataPipeline", {}, {
1713
- file: "space.ts",
1714
- line: 252,
1715
- scope: this,
1716
- callSite: (f, a) => f(...a)
1721
+ log10("initializeDataPipeline", void 0, {
1722
+ F: __dxlog_file10,
1723
+ L: 252,
1724
+ S: this,
1725
+ C: (f, a) => f(...a)
1717
1726
  });
1718
1727
  invariant9(this._isOpen, "Space must be open to initialize data pipeline.");
1719
1728
  await this._dataPipeline.open();
1720
1729
  }
1721
1730
  };
1722
- __decorate6([
1731
+ _ts_decorate6([
1723
1732
  logInfo
1724
1733
  ], Space.prototype, "key", null);
1725
- __decorate6([
1734
+ _ts_decorate6([
1726
1735
  synchronized4
1727
1736
  ], Space.prototype, "open", null);
1728
- __decorate6([
1737
+ _ts_decorate6([
1729
1738
  synchronized4
1730
1739
  ], Space.prototype, "close", null);
1731
- __decorate6([
1740
+ _ts_decorate6([
1732
1741
  synchronized4
1733
1742
  ], Space.prototype, "initializeDataPipeline", null);
1734
- Space = __decorate6([
1743
+ Space = _ts_decorate6([
1735
1744
  trackLeaks3("open", "close")
1736
1745
  ], Space);
1737
1746
 
@@ -1744,7 +1753,7 @@ import { Teleport } from "@dxos/teleport";
1744
1753
  import { BlobSync } from "@dxos/teleport-extension-object-sync";
1745
1754
  import { ReplicatorExtension } from "@dxos/teleport-extension-replicator";
1746
1755
  import { ComplexMap as ComplexMap4 } from "@dxos/util";
1747
- var __decorate7 = function(decorators, target, key, desc) {
1756
+ function _ts_decorate7(decorators, target, key, desc) {
1748
1757
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1749
1758
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1750
1759
  r = Reflect.decorate(decorators, target, key, desc);
@@ -1753,7 +1762,8 @@ var __decorate7 = function(decorators, target, key, desc) {
1753
1762
  if (d = decorators[i])
1754
1763
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1755
1764
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1756
- };
1765
+ }
1766
+ var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/space-protocol.ts";
1757
1767
  var MOCK_AUTH_PROVIDER = async (nonce) => Buffer.from("mock");
1758
1768
  var MOCK_AUTH_VERIFIER = async (nonce, credential) => true;
1759
1769
  var SpaceProtocol = class {
@@ -1783,10 +1793,10 @@ var SpaceProtocol = class {
1783
1793
  log11("addFeed", {
1784
1794
  key: feed.key
1785
1795
  }, {
1786
- file: "space-protocol.ts",
1787
- line: 96,
1788
- scope: this,
1789
- callSite: (f, a) => f(...a)
1796
+ F: __dxlog_file11,
1797
+ L: 96,
1798
+ S: this,
1799
+ C: (f, a) => f(...a)
1790
1800
  });
1791
1801
  this._feeds.add(feed);
1792
1802
  for (const session of this._sessions.values()) {
@@ -1804,11 +1814,11 @@ var SpaceProtocol = class {
1804
1814
  sampleSize: 20
1805
1815
  };
1806
1816
  await this.blobSync.open();
1807
- log11("starting...", {}, {
1808
- file: "space-protocol.ts",
1809
- line: 121,
1810
- scope: this,
1811
- callSite: (f, a) => f(...a)
1817
+ log11("starting...", void 0, {
1818
+ F: __dxlog_file11,
1819
+ L: 121,
1820
+ S: this,
1821
+ C: (f, a) => f(...a)
1812
1822
  });
1813
1823
  this._connection = await this._networkManager.joinSwarm({
1814
1824
  protocolProvider: this._createProtocolProvider(credentials),
@@ -1817,28 +1827,28 @@ var SpaceProtocol = class {
1817
1827
  topology: new MMSTTopology(topologyConfig),
1818
1828
  label: `Protocol swarm: ${this._topic}`
1819
1829
  });
1820
- log11("started", {}, {
1821
- file: "space-protocol.ts",
1822
- line: 130,
1823
- scope: this,
1824
- callSite: (f, a) => f(...a)
1830
+ log11("started", void 0, {
1831
+ F: __dxlog_file11,
1832
+ L: 130,
1833
+ S: this,
1834
+ C: (f, a) => f(...a)
1825
1835
  });
1826
1836
  }
1827
1837
  async stop() {
1828
1838
  await this.blobSync.close();
1829
1839
  if (this._connection) {
1830
- log11("stopping...", {}, {
1831
- file: "space-protocol.ts",
1832
- line: 137,
1833
- scope: this,
1834
- callSite: (f, a) => f(...a)
1840
+ log11("stopping...", void 0, {
1841
+ F: __dxlog_file11,
1842
+ L: 137,
1843
+ S: this,
1844
+ C: (f, a) => f(...a)
1835
1845
  });
1836
1846
  await this._connection.close();
1837
- log11("stopped", {}, {
1838
- file: "space-protocol.ts",
1839
- line: 139,
1840
- scope: this,
1841
- callSite: (f, a) => f(...a)
1847
+ log11("stopped", void 0, {
1848
+ F: __dxlog_file11,
1849
+ L: 139,
1850
+ S: this,
1851
+ C: (f, a) => f(...a)
1842
1852
  });
1843
1853
  }
1844
1854
  }
@@ -1859,10 +1869,10 @@ var SpaceProtocol = class {
1859
1869
  };
1860
1870
  }
1861
1871
  };
1862
- __decorate7([
1872
+ _ts_decorate7([
1863
1873
  logInfo2
1864
1874
  ], SpaceProtocol.prototype, "_topic", void 0);
1865
- __decorate7([
1875
+ _ts_decorate7([
1866
1876
  logInfo2
1867
1877
  ], SpaceProtocol.prototype, "_ownPeerKey", null);
1868
1878
  var AuthStatus;
@@ -1902,11 +1912,11 @@ var SpaceProtocolSession = class {
1902
1912
  verifier: this._swarmIdentity.credentialAuthenticator,
1903
1913
  onAuthSuccess: () => {
1904
1914
  var _a;
1905
- log11("Peer authenticated", {}, {
1906
- file: "space-protocol.ts",
1907
- line: 236,
1908
- scope: this,
1909
- callSite: (f, a) => f(...a)
1915
+ log11("Peer authenticated", void 0, {
1916
+ F: __dxlog_file11,
1917
+ L: 236,
1918
+ S: this,
1919
+ C: (f, a) => f(...a)
1910
1920
  });
1911
1921
  this._authStatus = AuthStatus.SUCCESS;
1912
1922
  (_a = this._onSessionAuth) == null ? void 0 : _a.call(this, this._teleport);
@@ -1924,10 +1934,10 @@ var SpaceProtocolSession = class {
1924
1934
  await this._teleport.close();
1925
1935
  }
1926
1936
  };
1927
- __decorate7([
1937
+ _ts_decorate7([
1928
1938
  logInfo2
1929
1939
  ], SpaceProtocolSession.prototype, "_wireParams", void 0);
1930
- __decorate7([
1940
+ _ts_decorate7([
1931
1941
  logInfo2
1932
1942
  ], SpaceProtocolSession.prototype, "authStatus", null);
1933
1943
 
@@ -1938,7 +1948,7 @@ import { PublicKey as PublicKey6 } from "@dxos/keys";
1938
1948
  import { log as log12 } from "@dxos/log";
1939
1949
  import { trace } from "@dxos/protocols";
1940
1950
  import { ComplexMap as ComplexMap5 } from "@dxos/util";
1941
- var __decorate8 = function(decorators, target, key, desc) {
1951
+ function _ts_decorate8(decorators, target, key, desc) {
1942
1952
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1943
1953
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1944
1954
  r = Reflect.decorate(decorators, target, key, desc);
@@ -1947,7 +1957,8 @@ var __decorate8 = function(decorators, target, key, desc) {
1947
1957
  if (d = decorators[i])
1948
1958
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1949
1959
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1950
- };
1960
+ }
1961
+ var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/space-manager.ts";
1951
1962
  var SpaceManager = class SpaceManager2 {
1952
1963
  constructor({ feedStore, networkManager, modelFactory, metadataStore, snapshotStore, blobStore }) {
1953
1964
  this._spaces = new ComplexMap5(PublicKey6.hash);
@@ -1975,18 +1986,18 @@ var SpaceManager = class SpaceManager2 {
1975
1986
  log12.trace("dxos.echo.space-manager.construct-space", trace.begin({
1976
1987
  id: this._instanceId
1977
1988
  }), {
1978
- file: "space-manager.ts",
1979
- line: 97,
1980
- scope: this,
1981
- callSite: (f, a) => f(...a)
1989
+ F: __dxlog_file12,
1990
+ L: 97,
1991
+ S: this,
1992
+ C: (f, a) => f(...a)
1982
1993
  });
1983
1994
  log12("constructing space...", {
1984
1995
  spaceKey: metadata.genesisFeedKey
1985
1996
  }, {
1986
- file: "space-manager.ts",
1987
- line: 98,
1988
- scope: this,
1989
- callSite: (f, a) => f(...a)
1997
+ F: __dxlog_file12,
1998
+ L: 98,
1999
+ S: this,
2000
+ C: (f, a) => f(...a)
1990
2001
  });
1991
2002
  const genesisFeed = await this._feedStore.openFeed((_a = metadata.genesisFeedKey) != null ? _a : failUndefined2());
1992
2003
  const spaceKey = metadata.key;
@@ -2013,21 +2024,21 @@ var SpaceManager = class SpaceManager2 {
2013
2024
  log12.trace("dxos.echo.space-manager.construct-space", trace.end({
2014
2025
  id: this._instanceId
2015
2026
  }), {
2016
- file: "space-manager.ts",
2017
- line: 125,
2018
- scope: this,
2019
- callSite: (f, a) => f(...a)
2027
+ F: __dxlog_file12,
2028
+ L: 125,
2029
+ S: this,
2030
+ C: (f, a) => f(...a)
2020
2031
  });
2021
2032
  return space;
2022
2033
  }
2023
2034
  };
2024
- __decorate8([
2035
+ _ts_decorate8([
2025
2036
  synchronized5
2026
2037
  ], SpaceManager.prototype, "open", null);
2027
- __decorate8([
2038
+ _ts_decorate8([
2028
2039
  synchronized5
2029
2040
  ], SpaceManager.prototype, "close", null);
2030
- SpaceManager = __decorate8([
2041
+ SpaceManager = _ts_decorate8([
2031
2042
  trackLeaks4("open", "close")
2032
2043
  ], SpaceManager);
2033
2044
 
@@ -2057,4 +2068,4 @@ export {
2057
2068
  SpaceProtocolSession,
2058
2069
  SpaceManager
2059
2070
  };
2060
- //# sourceMappingURL=chunk-ZYDZBSIT.mjs.map
2071
+ //# sourceMappingURL=chunk-SCMKAWNW.mjs.map