@dxos/echo-pipeline 0.3.2-main.bc9cb77 → 0.3.2-main.d77d2bc

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.
@@ -275,23 +275,12 @@ var DatabaseHost = class {
275
275
  };
276
276
 
277
277
  // packages/core/echo/echo-pipeline/src/db-host/snapshot-manager.ts
278
- var import_async = require("@dxos/async");
279
278
  var import_context2 = require("@dxos/context");
280
279
  var import_keys = require("@dxos/keys");
281
280
  var import_protocols2 = require("@dxos/protocols");
282
281
  var import_blob = require("@dxos/protocols/proto/dxos/echo/blob");
283
- function _ts_decorate(decorators, target, key, desc) {
284
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
285
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
286
- r = Reflect.decorate(decorators, target, key, desc);
287
- else
288
- for (var i = decorators.length - 1; i >= 0; i--)
289
- if (d = decorators[i])
290
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
291
- return c > 3 && r && Object.defineProperty(target, key, r), r;
292
- }
293
282
  var SpaceSnapshot = import_protocols2.schema.getCodecForType("dxos.echo.snapshot.SpaceSnapshot");
294
- var SnapshotManager = class SnapshotManager2 {
283
+ var SnapshotManager = class {
295
284
  constructor(_snapshotStore, _blobStore, _blobSync) {
296
285
  this._snapshotStore = _snapshotStore;
297
286
  this._blobStore = _blobStore;
@@ -320,9 +309,6 @@ var SnapshotManager = class SnapshotManager2 {
320
309
  return import_keys.PublicKey.from(id).toHex();
321
310
  }
322
311
  };
323
- SnapshotManager = _ts_decorate([
324
- (0, import_async.trackLeaks)("open", "close")
325
- ], SnapshotManager);
326
312
 
327
313
  // packages/core/echo/echo-pipeline/src/db-host/snapshot-store.ts
328
314
  var import_crypto = require("@dxos/crypto");
@@ -477,14 +463,14 @@ var DataServiceImpl = class {
477
463
 
478
464
  // packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts
479
465
  var import_crc_32 = __toESM(require("crc-32"));
480
- var import_async2 = require("@dxos/async");
466
+ var import_async = require("@dxos/async");
481
467
  var import_invariant4 = require("@dxos/invariant");
482
468
  var import_keys3 = require("@dxos/keys");
483
469
  var import_log3 = require("@dxos/log");
484
470
  var import_protocols4 = require("@dxos/protocols");
485
471
  var import_services = require("@dxos/protocols/proto/dxos/client/services");
486
472
  var import_util3 = require("@dxos/util");
487
- function _ts_decorate2(decorators, target, key, desc) {
473
+ function _ts_decorate(decorators, target, key, desc) {
488
474
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
489
475
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
490
476
  r = Reflect.decorate(decorators, target, key, desc);
@@ -510,7 +496,7 @@ var MetadataStore = class {
510
496
  this._metadata = emptyEchoMetadata();
511
497
  this._spaceLargeMetadata = new import_util3.ComplexMap(import_keys3.PublicKey.hash);
512
498
  this._metadataFile = void 0;
513
- this.update = new import_async2.Event();
499
+ this.update = new import_async.Event();
514
500
  }
515
501
  get metadata() {
516
502
  return this._metadata;
@@ -768,19 +754,19 @@ var MetadataStore = class {
768
754
  await this.flush();
769
755
  }
770
756
  };
771
- _ts_decorate2([
772
- import_async2.synchronized
757
+ _ts_decorate([
758
+ import_async.synchronized
773
759
  ], MetadataStore.prototype, "load", null);
774
- _ts_decorate2([
775
- import_async2.synchronized
760
+ _ts_decorate([
761
+ import_async.synchronized
776
762
  ], MetadataStore.prototype, "_save", null);
777
- _ts_decorate2([
778
- import_async2.synchronized
763
+ _ts_decorate([
764
+ import_async.synchronized
779
765
  ], MetadataStore.prototype, "_saveSpaceLargeMetadata", null);
780
766
  var fromBytesInt32 = (buf) => buf.readInt32LE(0);
781
767
 
782
768
  // packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts
783
- var import_async4 = require("@dxos/async");
769
+ var import_async3 = require("@dxos/async");
784
770
  var import_context3 = require("@dxos/context");
785
771
  var import_debug3 = require("@dxos/debug");
786
772
  var import_feed_store = require("@dxos/feed-store");
@@ -821,11 +807,11 @@ var createMessageSelector = (timeframeClock) => {
821
807
  };
822
808
 
823
809
  // packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts
824
- var import_async3 = require("@dxos/async");
810
+ var import_async2 = require("@dxos/async");
825
811
  var import_debug2 = require("@dxos/debug");
826
812
  var import_log5 = require("@dxos/log");
827
813
  var import_timeframe = require("@dxos/timeframe");
828
- function _ts_decorate3(decorators, target, key, desc) {
814
+ function _ts_decorate2(decorators, target, key, desc) {
829
815
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
830
816
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
831
817
  r = Reflect.decorate(decorators, target, key, desc);
@@ -851,7 +837,7 @@ var startAfter = (timeframe) => timeframe.frames().map(([feedKey, index]) => ({
851
837
  var TimeframeClock = class {
852
838
  constructor(_timeframe = new import_timeframe.Timeframe()) {
853
839
  this._timeframe = _timeframe;
854
- this.update = new import_async3.Event();
840
+ this.update = new import_async2.Event();
855
841
  this._pendingTimeframe = _timeframe;
856
842
  }
857
843
  /**
@@ -913,12 +899,12 @@ var TimeframeClock = class {
913
899
  });
914
900
  }
915
901
  };
916
- _ts_decorate3([
902
+ _ts_decorate2([
917
903
  (0, import_debug2.timed)(5e3)
918
904
  ], TimeframeClock.prototype, "waitUntilReached", null);
919
905
 
920
906
  // packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts
921
- function _ts_decorate4(decorators, target, key, desc) {
907
+ function _ts_decorate3(decorators, target, key, desc) {
922
908
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
923
909
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
924
910
  r = Reflect.decorate(decorators, target, key, desc);
@@ -935,7 +921,7 @@ var PipelineState = class {
935
921
  this._timeframeClock = _timeframeClock;
936
922
  this._ctx = new import_context3.Context();
937
923
  this.timeframeUpdate = this._timeframeClock.update;
938
- this.stalled = new import_async4.Event();
924
+ this.stalled = new import_async3.Event();
939
925
  this._startTimeframe = new import_timeframe2.Timeframe();
940
926
  this._reachedTarget = false;
941
927
  }
@@ -1009,7 +995,7 @@ var PipelineState = class {
1009
995
  done = true;
1010
996
  this._reachedTarget = true;
1011
997
  }),
1012
- (0, import_async4.sleep)(timeout).then(() => {
998
+ (0, import_async3.sleepWithContext)(this._ctx, timeout).then(() => {
1013
999
  if (done) {
1014
1000
  return;
1015
1001
  }
@@ -1038,8 +1024,8 @@ var Pipeline = class {
1038
1024
  // External state accessor.
1039
1025
  this._state = new PipelineState(this._feeds, this._timeframeClock);
1040
1026
  // Waits for the message consumer to process the message and yield control back to the pipeline.
1041
- this._processingTrigger = new import_async4.Trigger().wake();
1042
- this._pauseTrigger = new import_async4.Trigger().wake();
1027
+ this._processingTrigger = new import_async3.Trigger().wake();
1028
+ this._pauseTrigger = new import_async3.Trigger().wake();
1043
1029
  // Pending downloads.
1044
1030
  this._downloads = new import_util4.ComplexMap((value) => import_keys4.PublicKey.hash(value.key));
1045
1031
  this._isStopping = false;
@@ -1316,24 +1302,24 @@ var Pipeline = class {
1316
1302
  }
1317
1303
  }
1318
1304
  };
1319
- _ts_decorate4([
1320
- import_async4.synchronized
1305
+ _ts_decorate3([
1306
+ import_async3.synchronized
1321
1307
  ], Pipeline.prototype, "start", null);
1322
- _ts_decorate4([
1323
- import_async4.synchronized
1308
+ _ts_decorate3([
1309
+ import_async3.synchronized
1324
1310
  ], Pipeline.prototype, "stop", null);
1325
- _ts_decorate4([
1326
- import_async4.synchronized
1311
+ _ts_decorate3([
1312
+ import_async3.synchronized
1327
1313
  ], Pipeline.prototype, "setCursor", null);
1328
- _ts_decorate4([
1329
- import_async4.synchronized
1314
+ _ts_decorate3([
1315
+ import_async3.synchronized
1330
1316
  ], Pipeline.prototype, "pause", null);
1331
- _ts_decorate4([
1332
- import_async4.synchronized
1317
+ _ts_decorate3([
1318
+ import_async3.synchronized
1333
1319
  ], Pipeline.prototype, "unpause", null);
1334
1320
 
1335
1321
  // packages/core/echo/echo-pipeline/src/space/auth.ts
1336
- var import_async5 = require("@dxos/async");
1322
+ var import_async4 = require("@dxos/async");
1337
1323
  var import_context4 = require("@dxos/context");
1338
1324
  var import_crypto2 = require("@dxos/crypto");
1339
1325
  var import_invariant7 = require("@dxos/invariant");
@@ -1391,7 +1377,7 @@ var AuthExtension = class extends import_teleport.RpcExtension {
1391
1377
  }
1392
1378
  async onOpen(context) {
1393
1379
  await super.onOpen(context);
1394
- (0, import_async5.scheduleTask)(this._ctx, async () => {
1380
+ (0, import_async4.scheduleTask)(this._ctx, async () => {
1395
1381
  try {
1396
1382
  const challenge = (0, import_crypto2.randomBytes)(32);
1397
1383
  const { credential } = await this.rpc.AuthService.authenticate({
@@ -1416,7 +1402,7 @@ var AuthExtension = class extends import_teleport.RpcExtension {
1416
1402
  "'credential not verified'"
1417
1403
  ]
1418
1404
  });
1419
- (0, import_async5.runInContext)(this._ctx, () => this._authParams.onAuthSuccess());
1405
+ (0, import_async4.runInContext)(this._ctx, () => this._authParams.onAuthSuccess());
1420
1406
  } catch (err) {
1421
1407
  (0, import_log7.log)("auth failed", err, {
1422
1408
  F: __dxlog_file8,
@@ -1440,7 +1426,7 @@ var AuthExtension = class extends import_teleport.RpcExtension {
1440
1426
  };
1441
1427
 
1442
1428
  // packages/core/echo/echo-pipeline/src/space/space.ts
1443
- var import_async8 = require("@dxos/async");
1429
+ var import_async7 = require("@dxos/async");
1444
1430
  var import_invariant9 = require("@dxos/invariant");
1445
1431
  var import_log10 = require("@dxos/log");
1446
1432
  var import_credentials4 = require("@dxos/protocols/proto/dxos/halo/credentials");
@@ -1448,7 +1434,7 @@ var import_tracing3 = require("@dxos/tracing");
1448
1434
  var import_util7 = require("@dxos/util");
1449
1435
 
1450
1436
  // packages/core/echo/echo-pipeline/src/space/control-pipeline.ts
1451
- var import_async6 = require("@dxos/async");
1437
+ var import_async5 = require("@dxos/async");
1452
1438
  var import_context5 = require("@dxos/context");
1453
1439
  var import_credentials = require("@dxos/credentials");
1454
1440
  var import_keys5 = require("@dxos/keys");
@@ -1457,7 +1443,7 @@ var import_credentials2 = require("@dxos/protocols/proto/dxos/halo/credentials")
1457
1443
  var import_timeframe3 = require("@dxos/timeframe");
1458
1444
  var import_tracing = require("@dxos/tracing");
1459
1445
  var import_util5 = require("@dxos/util");
1460
- function _ts_decorate5(decorators, target, key, desc) {
1446
+ function _ts_decorate4(decorators, target, key, desc) {
1461
1447
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1462
1448
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1463
1449
  r = Reflect.decorate(decorators, target, key, desc);
@@ -1478,8 +1464,8 @@ var ControlPipeline = class ControlPipeline2 {
1478
1464
  this.onFeedAdmitted = new import_util5.Callback();
1479
1465
  this._usage = new import_tracing.TimeUsageCounter();
1480
1466
  this._mutations = new import_tracing.TimeSeriesCounter();
1481
- this._snapshotTask = new import_async6.DeferredTask(this._ctx, async () => {
1482
- await (0, import_async6.sleep)(CONTROL_PIPELINE_SNAPSHOT_DELAY);
1467
+ this._snapshotTask = new import_async5.DeferredTask(this._ctx, async () => {
1468
+ await (0, import_async5.sleepWithContext)(this._ctx, CONTROL_PIPELINE_SNAPSHOT_DELAY);
1483
1469
  await this._saveSnapshot();
1484
1470
  });
1485
1471
  this._spaceKey = spaceKey;
@@ -1492,7 +1478,7 @@ var ControlPipeline = class ControlPipeline2 {
1492
1478
  key: info.key
1493
1479
  }, {
1494
1480
  F: __dxlog_file9,
1495
- L: 73,
1481
+ L: 74,
1496
1482
  S: this,
1497
1483
  C: (f, a) => f(...a)
1498
1484
  });
@@ -1504,7 +1490,7 @@ var ControlPipeline = class ControlPipeline2 {
1504
1490
  } catch (err) {
1505
1491
  import_log8.log.catch(err, void 0, {
1506
1492
  F: __dxlog_file9,
1507
- L: 82,
1493
+ L: 83,
1508
1494
  S: this,
1509
1495
  C: (f, a) => f(...a)
1510
1496
  });
@@ -1533,16 +1519,16 @@ var ControlPipeline = class ControlPipeline2 {
1533
1519
  tf: snapshot?.timeframe
1534
1520
  }, {
1535
1521
  F: __dxlog_file9,
1536
- L: 109,
1522
+ L: 110,
1537
1523
  S: this,
1538
1524
  C: (f, a) => f(...a)
1539
1525
  });
1540
1526
  if (USE_SNAPSHOTS && snapshot) {
1541
1527
  await this._processSnapshot(snapshot);
1542
1528
  }
1543
- (0, import_log8.log)("starting...", void 0, {
1529
+ import_log8.log.info("starting...", void 0, {
1544
1530
  F: __dxlog_file9,
1545
- L: 114,
1531
+ L: 115,
1546
1532
  S: this,
1547
1533
  C: (f, a) => f(...a)
1548
1534
  });
@@ -1552,7 +1538,7 @@ var ControlPipeline = class ControlPipeline2 {
1552
1538
  await this._pipeline.start();
1553
1539
  (0, import_log8.log)("started", void 0, {
1554
1540
  F: __dxlog_file9,
1555
- L: 120,
1541
+ L: 121,
1556
1542
  S: this,
1557
1543
  C: (f, a) => f(...a)
1558
1544
  });
@@ -1569,7 +1555,7 @@ var ControlPipeline = class ControlPipeline2 {
1569
1555
  message
1570
1556
  }, {
1571
1557
  F: __dxlog_file9,
1572
- L: 133,
1558
+ L: 134,
1573
1559
  S: this,
1574
1560
  C: (f, a) => f(...a)
1575
1561
  });
@@ -1591,7 +1577,7 @@ var ControlPipeline = class ControlPipeline2 {
1591
1577
  snapshot
1592
1578
  }, {
1593
1579
  F: __dxlog_file9,
1594
- L: 149,
1580
+ L: 150,
1595
1581
  S: this,
1596
1582
  C: (f, a) => f(...a)
1597
1583
  });
@@ -1606,7 +1592,7 @@ var ControlPipeline = class ControlPipeline2 {
1606
1592
  } catch (err) {
1607
1593
  import_log8.log.catch(err, void 0, {
1608
1594
  F: __dxlog_file9,
1609
- L: 162,
1595
+ L: 163,
1610
1596
  S: this,
1611
1597
  C: (f, a) => f(...a)
1612
1598
  });
@@ -1620,7 +1606,7 @@ var ControlPipeline = class ControlPipeline2 {
1620
1606
  seq: msg.seq
1621
1607
  }, {
1622
1608
  F: __dxlog_file9,
1623
- L: 172,
1609
+ L: 173,
1624
1610
  S: this,
1625
1611
  C: (f, a) => f(...a)
1626
1612
  });
@@ -1635,7 +1621,7 @@ var ControlPipeline = class ControlPipeline2 {
1635
1621
  msg
1636
1622
  }, {
1637
1623
  F: __dxlog_file9,
1638
- L: 181,
1624
+ L: 182,
1639
1625
  S: this,
1640
1626
  C: (f, a) => f(...a)
1641
1627
  });
@@ -1652,9 +1638,9 @@ var ControlPipeline = class ControlPipeline2 {
1652
1638
  }
1653
1639
  }
1654
1640
  async stop() {
1655
- (0, import_log8.log)("stopping...", void 0, {
1641
+ import_log8.log.warn("stopping...", void 0, {
1656
1642
  F: __dxlog_file9,
1657
- L: 201,
1643
+ L: 202,
1658
1644
  S: this,
1659
1645
  C: (f, a) => f(...a)
1660
1646
  });
@@ -1663,7 +1649,7 @@ var ControlPipeline = class ControlPipeline2 {
1663
1649
  await this._saveTargetTimeframe(this._pipeline.state.timeframe);
1664
1650
  (0, import_log8.log)("stopped", void 0, {
1665
1651
  F: __dxlog_file9,
1666
- L: 205,
1652
+ L: 206,
1667
1653
  S: this,
1668
1654
  C: (f, a) => f(...a)
1669
1655
  });
@@ -1676,36 +1662,37 @@ var ControlPipeline = class ControlPipeline2 {
1676
1662
  } catch (err) {
1677
1663
  (0, import_log8.log)(err, void 0, {
1678
1664
  F: __dxlog_file9,
1679
- L: 214,
1665
+ L: 215,
1680
1666
  S: this,
1681
1667
  C: (f, a) => f(...a)
1682
1668
  });
1683
1669
  }
1684
1670
  }
1685
1671
  };
1686
- _ts_decorate5([
1672
+ _ts_decorate4([
1687
1673
  import_tracing.trace.metricsCounter()
1688
1674
  ], ControlPipeline.prototype, "_usage", void 0);
1689
- _ts_decorate5([
1675
+ _ts_decorate4([
1690
1676
  import_tracing.trace.metricsCounter()
1691
1677
  ], ControlPipeline.prototype, "_mutations", void 0);
1692
- _ts_decorate5([
1678
+ _ts_decorate4([
1693
1679
  import_tracing.trace.span({
1694
1680
  showInBrowserTimeline: true
1695
1681
  })
1696
1682
  ], ControlPipeline.prototype, "start", null);
1697
- _ts_decorate5([
1683
+ _ts_decorate4([
1698
1684
  import_tracing.trace.span()
1699
1685
  ], ControlPipeline.prototype, "_consumePipeline", null);
1700
- _ts_decorate5([
1686
+ _ts_decorate4([
1701
1687
  import_tracing.trace.span()
1702
1688
  ], ControlPipeline.prototype, "_processMessage", null);
1703
- ControlPipeline = _ts_decorate5([
1704
- import_tracing.trace.resource()
1689
+ ControlPipeline = _ts_decorate4([
1690
+ import_tracing.trace.resource(),
1691
+ (0, import_async5.trackLeaks)("start", "stop")
1705
1692
  ], ControlPipeline);
1706
1693
 
1707
1694
  // packages/core/echo/echo-pipeline/src/space/data-pipeline.ts
1708
- var import_async7 = require("@dxos/async");
1695
+ var import_async6 = require("@dxos/async");
1709
1696
  var import_context6 = require("@dxos/context");
1710
1697
  var import_credentials3 = require("@dxos/credentials");
1711
1698
  var import_echo_db3 = require("@dxos/echo-db");
@@ -1715,7 +1702,7 @@ var import_protocols6 = require("@dxos/protocols");
1715
1702
  var import_timeframe4 = require("@dxos/timeframe");
1716
1703
  var import_tracing2 = require("@dxos/tracing");
1717
1704
  var import_util6 = require("@dxos/util");
1718
- function _ts_decorate6(decorators, target, key, desc) {
1705
+ function _ts_decorate5(decorators, target, key, desc) {
1719
1706
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1720
1707
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
1721
1708
  r = Reflect.decorate(decorators, target, key, desc);
@@ -1744,7 +1731,7 @@ var DataPipeline = class DataPipeline2 {
1744
1731
  this._mutations = new import_tracing2.TimeSeriesCounter();
1745
1732
  this.currentEpoch = void 0;
1746
1733
  this.appliedEpoch = void 0;
1747
- this.onNewEpoch = new import_async7.Event();
1734
+ this.onNewEpoch = new import_async6.Event();
1748
1735
  }
1749
1736
  get isOpen() {
1750
1737
  return this._isOpen;
@@ -1807,7 +1794,7 @@ var DataPipeline = class DataPipeline2 {
1807
1794
  this.databaseHost = new DatabaseHost(feedWriter, () => this._flush());
1808
1795
  this.itemManager = new import_echo_db3.ItemManager(this._params.modelFactory);
1809
1796
  await this.databaseHost.open(this.itemManager, this._params.modelFactory);
1810
- (0, import_async7.scheduleTask)(this._ctx, async () => {
1797
+ (0, import_async6.scheduleTask)(this._ctx, async () => {
1811
1798
  await this._consumePipeline();
1812
1799
  });
1813
1800
  this._isOpen = true;
@@ -1926,7 +1913,7 @@ var DataPipeline = class DataPipeline2 {
1926
1913
  span.end();
1927
1914
  if (++messageCounter > 1e3) {
1928
1915
  messageCounter = 0;
1929
- await (0, import_async7.sleep)(1);
1916
+ await (0, import_async6.sleep)(1);
1930
1917
  }
1931
1918
  }
1932
1919
  }
@@ -2006,7 +1993,7 @@ var DataPipeline = class DataPipeline2 {
2006
1993
  }
2007
1994
  });
2008
1995
  this._epochCtx = ctx;
2009
- (0, import_async7.scheduleTask)(ctx, async () => {
1996
+ (0, import_async6.scheduleTask)(ctx, async () => {
2010
1997
  if (!this._isOpen) {
2011
1998
  return;
2012
1999
  }
@@ -2120,31 +2107,31 @@ var DataPipeline = class DataPipeline2 {
2120
2107
  await this._params.metadataStore.flush();
2121
2108
  }
2122
2109
  };
2123
- _ts_decorate6([
2110
+ _ts_decorate5([
2124
2111
  import_tracing2.trace.metricsCounter()
2125
2112
  ], DataPipeline.prototype, "_usage", void 0);
2126
- _ts_decorate6([
2113
+ _ts_decorate5([
2127
2114
  import_tracing2.trace.metricsCounter()
2128
2115
  ], DataPipeline.prototype, "_mutations", void 0);
2129
- _ts_decorate6([
2130
- import_async7.synchronized
2116
+ _ts_decorate5([
2117
+ import_async6.synchronized
2131
2118
  ], DataPipeline.prototype, "open", null);
2132
- _ts_decorate6([
2133
- import_async7.synchronized
2119
+ _ts_decorate5([
2120
+ import_async6.synchronized
2134
2121
  ], DataPipeline.prototype, "close", null);
2135
- _ts_decorate6([
2136
- import_async7.synchronized
2122
+ _ts_decorate5([
2123
+ import_async6.synchronized
2137
2124
  ], DataPipeline.prototype, "_processEpoch", null);
2138
- _ts_decorate6([
2139
- import_async7.synchronized
2125
+ _ts_decorate5([
2126
+ import_async6.synchronized
2140
2127
  ], DataPipeline.prototype, "createEpoch", null);
2141
- DataPipeline = _ts_decorate6([
2142
- (0, import_async7.trackLeaks)("open", "close"),
2128
+ DataPipeline = _ts_decorate5([
2129
+ (0, import_async6.trackLeaks)("open", "close"),
2143
2130
  import_tracing2.trace.resource()
2144
2131
  ], DataPipeline);
2145
2132
 
2146
2133
  // packages/core/echo/echo-pipeline/src/space/space.ts
2147
- function _ts_decorate7(decorators, target, key, desc) {
2134
+ function _ts_decorate6(decorators, target, key, desc) {
2148
2135
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2149
2136
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
2150
2137
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2157,9 +2144,9 @@ function _ts_decorate7(decorators, target, key, desc) {
2157
2144
  var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/space.ts";
2158
2145
  var Space = class Space2 {
2159
2146
  constructor(params) {
2160
- this._addFeedLock = new import_async8.Lock();
2147
+ this._addFeedLock = new import_async7.Lock();
2161
2148
  this.onCredentialProcessed = new import_util7.Callback();
2162
- this.stateUpdate = new import_async8.Event();
2149
+ this.stateUpdate = new import_async7.Event();
2163
2150
  this._isOpen = false;
2164
2151
  (0, import_invariant9.invariant)(params.spaceKey && params.feedProvider, void 0, {
2165
2152
  F: __dxlog_file11,
@@ -2373,27 +2360,27 @@ var Space = class Space2 {
2373
2360
  await this._dataPipeline.open();
2374
2361
  }
2375
2362
  };
2376
- _ts_decorate7([
2363
+ _ts_decorate6([
2377
2364
  import_log10.logInfo,
2378
2365
  import_tracing3.trace.info()
2379
2366
  ], Space.prototype, "key", null);
2380
- _ts_decorate7([
2381
- import_async8.synchronized,
2367
+ _ts_decorate6([
2368
+ import_async7.synchronized,
2382
2369
  import_tracing3.trace.span()
2383
2370
  ], Space.prototype, "open", null);
2384
- _ts_decorate7([
2385
- import_async8.synchronized
2371
+ _ts_decorate6([
2372
+ import_async7.synchronized
2386
2373
  ], Space.prototype, "close", null);
2387
- _ts_decorate7([
2388
- import_async8.synchronized
2374
+ _ts_decorate6([
2375
+ import_async7.synchronized
2389
2376
  ], Space.prototype, "initializeDataPipeline", null);
2390
- Space = _ts_decorate7([
2391
- (0, import_async8.trackLeaks)("open", "close"),
2377
+ Space = _ts_decorate6([
2378
+ (0, import_async7.trackLeaks)("open", "close"),
2392
2379
  import_tracing3.trace.resource()
2393
2380
  ], Space);
2394
2381
 
2395
2382
  // packages/core/echo/echo-pipeline/src/space/space-manager.ts
2396
- var import_async9 = require("@dxos/async");
2383
+ var import_async8 = require("@dxos/async");
2397
2384
  var import_debug4 = require("@dxos/debug");
2398
2385
  var import_keys7 = require("@dxos/keys");
2399
2386
  var import_log12 = require("@dxos/log");
@@ -2409,7 +2396,7 @@ var import_teleport2 = require("@dxos/teleport");
2409
2396
  var import_teleport_extension_object_sync = require("@dxos/teleport-extension-object-sync");
2410
2397
  var import_teleport_extension_replicator = require("@dxos/teleport-extension-replicator");
2411
2398
  var import_util8 = require("@dxos/util");
2412
- function _ts_decorate8(decorators, target, key, desc) {
2399
+ function _ts_decorate7(decorators, target, key, desc) {
2413
2400
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2414
2401
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
2415
2402
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2527,10 +2514,10 @@ var SpaceProtocol = class {
2527
2514
  };
2528
2515
  }
2529
2516
  };
2530
- _ts_decorate8([
2517
+ _ts_decorate7([
2531
2518
  import_log11.logInfo
2532
2519
  ], SpaceProtocol.prototype, "_topic", void 0);
2533
- _ts_decorate8([
2520
+ _ts_decorate7([
2534
2521
  import_log11.logInfo
2535
2522
  ], SpaceProtocol.prototype, "_ownPeerKey", null);
2536
2523
  var AuthStatus;
@@ -2599,15 +2586,15 @@ var SpaceProtocolSession = class {
2599
2586
  await this._teleport.abort();
2600
2587
  }
2601
2588
  };
2602
- _ts_decorate8([
2589
+ _ts_decorate7([
2603
2590
  import_log11.logInfo
2604
2591
  ], SpaceProtocolSession.prototype, "_wireParams", void 0);
2605
- _ts_decorate8([
2592
+ _ts_decorate7([
2606
2593
  import_log11.logInfo
2607
2594
  ], SpaceProtocolSession.prototype, "authStatus", null);
2608
2595
 
2609
2596
  // packages/core/echo/echo-pipeline/src/space/space-manager.ts
2610
- function _ts_decorate9(decorators, target, key, desc) {
2597
+ function _ts_decorate8(decorators, target, key, desc) {
2611
2598
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2612
2599
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
2613
2600
  r = Reflect.decorate(decorators, target, key, desc);
@@ -2690,14 +2677,14 @@ var SpaceManager = class SpaceManager2 {
2690
2677
  return space;
2691
2678
  }
2692
2679
  };
2693
- _ts_decorate9([
2694
- import_async9.synchronized
2680
+ _ts_decorate8([
2681
+ import_async8.synchronized
2695
2682
  ], SpaceManager.prototype, "open", null);
2696
- _ts_decorate9([
2697
- import_async9.synchronized
2683
+ _ts_decorate8([
2684
+ import_async8.synchronized
2698
2685
  ], SpaceManager.prototype, "close", null);
2699
- SpaceManager = _ts_decorate9([
2700
- (0, import_async9.trackLeaks)("open", "close")
2686
+ SpaceManager = _ts_decorate8([
2687
+ (0, import_async8.trackLeaks)("open", "close")
2701
2688
  ], SpaceManager);
2702
2689
  // Annotate the CommonJS export names for ESM import in node:
2703
2690
  0 && (module.exports = {