@dxos/echo-pipeline 0.4.9-main.80b4fd7 → 0.4.9-main.8bba6f8

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.
@@ -1141,7 +1141,7 @@ var AuthExtension = class extends RpcExtension {
1141
1141
  };
1142
1142
 
1143
1143
  // packages/core/echo/echo-pipeline/src/space/space.ts
1144
- import { Event as Event4, Mutex, synchronized as synchronized3, trackLeaks as trackLeaks2 } from "@dxos/async";
1144
+ import { Event as Event4, synchronized as synchronized3, trackLeaks as trackLeaks2, Mutex } from "@dxos/async";
1145
1145
  import { invariant as invariant6 } from "@dxos/invariant";
1146
1146
  import { log as log7, logInfo } from "@dxos/log";
1147
1147
  import { AdmittedFeed as AdmittedFeed2 } from "@dxos/protocols/proto/dxos/halo/credentials";
@@ -1429,7 +1429,7 @@ var Space = class {
1429
1429
  this._isOpen = false;
1430
1430
  invariant6(params.spaceKey && params.feedProvider, void 0, {
1431
1431
  F: __dxlog_file8,
1432
- L: 72,
1432
+ L: 74,
1433
1433
  S: this,
1434
1434
  A: [
1435
1435
  "params.spaceKey && params.feedProvider",
@@ -1462,7 +1462,7 @@ var Space = class {
1462
1462
  credential
1463
1463
  }, {
1464
1464
  F: __dxlog_file8,
1465
- L: 99,
1465
+ L: 101,
1466
1466
  S: this,
1467
1467
  C: (f, a) => f(...a)
1468
1468
  });
@@ -1501,7 +1501,7 @@ var Space = class {
1501
1501
  async setControlFeed(feed) {
1502
1502
  invariant6(!this._controlFeed, "Control feed already set.", {
1503
1503
  F: __dxlog_file8,
1504
- L: 146,
1504
+ L: 148,
1505
1505
  S: this,
1506
1506
  A: [
1507
1507
  "!this._controlFeed",
@@ -1515,7 +1515,7 @@ var Space = class {
1515
1515
  async setDataFeed(feed) {
1516
1516
  invariant6(!this._dataFeed, "Data feed already set.", {
1517
1517
  F: __dxlog_file8,
1518
- L: 153,
1518
+ L: 155,
1519
1519
  S: this,
1520
1520
  A: [
1521
1521
  "!this._dataFeed",
@@ -1540,7 +1540,7 @@ var Space = class {
1540
1540
  async open(ctx) {
1541
1541
  log7("opening...", void 0, {
1542
1542
  F: __dxlog_file8,
1543
- L: 174,
1543
+ L: 176,
1544
1544
  S: this,
1545
1545
  C: (f, a) => f(...a)
1546
1546
  });
@@ -1552,7 +1552,7 @@ var Space = class {
1552
1552
  this._isOpen = true;
1553
1553
  log7("opened", void 0, {
1554
1554
  F: __dxlog_file8,
1555
- L: 184,
1555
+ L: 186,
1556
1556
  S: this,
1557
1557
  C: (f, a) => f(...a)
1558
1558
  });
@@ -1562,7 +1562,7 @@ var Space = class {
1562
1562
  key: this._key
1563
1563
  }, {
1564
1564
  F: __dxlog_file8,
1565
- L: 189,
1565
+ L: 191,
1566
1566
  S: this,
1567
1567
  C: (f, a) => f(...a)
1568
1568
  });
@@ -1574,7 +1574,7 @@ var Space = class {
1574
1574
  this._isOpen = false;
1575
1575
  log7("closed", void 0, {
1576
1576
  F: __dxlog_file8,
1577
- L: 199,
1577
+ L: 201,
1578
1578
  S: this,
1579
1579
  C: (f, a) => f(...a)
1580
1580
  });
@@ -1836,11 +1836,12 @@ function _ts_decorate7(decorators, target, key, desc) {
1836
1836
  }
1837
1837
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/space-manager.ts";
1838
1838
  var SpaceManager = class {
1839
- constructor({ feedStore, networkManager, metadataStore, snapshotStore, blobStore }) {
1839
+ constructor({ feedStore, networkManager, modelFactory, metadataStore, snapshotStore, blobStore }) {
1840
1840
  this._spaces = new ComplexMap4(PublicKey6.hash);
1841
1841
  this._instanceId = PublicKey6.random().toHex();
1842
1842
  this._feedStore = feedStore;
1843
1843
  this._networkManager = networkManager;
1844
+ this._modelFactory = modelFactory;
1844
1845
  this._metadataStore = metadataStore;
1845
1846
  this._snapshotStore = snapshotStore;
1846
1847
  this._blobStore = blobStore;
@@ -1861,7 +1862,7 @@ var SpaceManager = class {
1861
1862
  id: this._instanceId
1862
1863
  }), {
1863
1864
  F: __dxlog_file10,
1864
- L: 89,
1865
+ L: 100,
1865
1866
  S: this,
1866
1867
  C: (f, a) => f(...a)
1867
1868
  });
@@ -1869,7 +1870,7 @@ var SpaceManager = class {
1869
1870
  spaceKey: metadata.genesisFeedKey
1870
1871
  }, {
1871
1872
  F: __dxlog_file10,
1872
- L: 90,
1873
+ L: 101,
1873
1874
  S: this,
1874
1875
  C: (f, a) => f(...a)
1875
1876
  });
@@ -1889,6 +1890,7 @@ var SpaceManager = class {
1889
1890
  protocol,
1890
1891
  genesisFeed,
1891
1892
  feedProvider: (feedKey, opts) => this._feedStore.openFeed(feedKey, opts),
1893
+ modelFactory: this._modelFactory,
1892
1894
  metadataStore: this._metadataStore,
1893
1895
  snapshotManager,
1894
1896
  memberKey
@@ -1898,7 +1900,7 @@ var SpaceManager = class {
1898
1900
  id: this._instanceId
1899
1901
  }), {
1900
1902
  F: __dxlog_file10,
1901
- L: 117,
1903
+ L: 129,
1902
1904
  S: this,
1903
1905
  C: (f, a) => f(...a)
1904
1906
  });
@@ -1937,4 +1939,4 @@ export {
1937
1939
  SpaceProtocolSession,
1938
1940
  SpaceManager
1939
1941
  };
1940
- //# sourceMappingURL=chunk-RTEEJ723.mjs.map
1942
+ //# sourceMappingURL=chunk-P3HBH2ZU.mjs.map