@dxos/client-services 0.4.10-main.4c7b3fa → 0.4.10-main.4c8c73c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-UWSCLXQ5.mjs → chunk-F4LOSBRJ.mjs} +33 -30
- package/dist/lib/browser/{chunk-UWSCLXQ5.mjs.map → chunk-F4LOSBRJ.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-G6YGTBEV.cjs → chunk-IPO3WM44.cjs} +35 -32
- package/dist/lib/node/{chunk-G6YGTBEV.cjs.map → chunk-IPO3WM44.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +43 -43
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +6 -6
- package/dist/types/src/packlets/indexing/util.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +1 -0
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +34 -34
- package/src/packlets/indexing/util.ts +5 -3
- package/src/packlets/services/service-host.ts +10 -5
- package/src/version.ts +1 -1
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_IPO3WM44_exports = {};
|
|
30
|
+
__export(chunk_IPO3WM44_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
ClientServicesProviderResource: () => ClientServicesProviderResource,
|
|
@@ -66,7 +66,7 @@ __export(chunk_G6YGTBEV_exports, {
|
|
|
66
66
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
67
67
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
68
68
|
});
|
|
69
|
-
module.exports = __toCommonJS(
|
|
69
|
+
module.exports = __toCommonJS(chunk_IPO3WM44_exports);
|
|
70
70
|
var import_async = require("@dxos/async");
|
|
71
71
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
72
72
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -4427,7 +4427,7 @@ var createSelectedDocumentsIterator = (automergeHost) => (
|
|
|
4427
4427
|
async function* loadDocuments(ids) {
|
|
4428
4428
|
for (const id of ids) {
|
|
4429
4429
|
const { documentId, objectId } = import_protocols12.idCodec.decode(id);
|
|
4430
|
-
const handle = automergeHost.repo.find(documentId);
|
|
4430
|
+
const handle = automergeHost.repo.handles[documentId] ?? automergeHost.repo.find(documentId);
|
|
4431
4431
|
if (!handle.isReady()) {
|
|
4432
4432
|
await handle.whenReady();
|
|
4433
4433
|
}
|
|
@@ -4477,7 +4477,7 @@ var createDocumentsIterator = (automergeHost) => (
|
|
|
4477
4477
|
if (visited.has(id)) {
|
|
4478
4478
|
continue;
|
|
4479
4479
|
}
|
|
4480
|
-
const linkHandle = automergeHost.repo.find(id);
|
|
4480
|
+
const linkHandle = automergeHost.repo.handles[id] ?? automergeHost.repo.find(id);
|
|
4481
4481
|
for await (const result of getObjectsFromHandle(linkHandle)) {
|
|
4482
4482
|
yield result;
|
|
4483
4483
|
}
|
|
@@ -4801,7 +4801,7 @@ var ServiceRegistry = class {
|
|
|
4801
4801
|
delete this._handlers[name];
|
|
4802
4802
|
}
|
|
4803
4803
|
};
|
|
4804
|
-
var DXOS_VERSION = "0.4.10-main.
|
|
4804
|
+
var DXOS_VERSION = "0.4.10-main.4c8c73c";
|
|
4805
4805
|
var getPlatform = () => {
|
|
4806
4806
|
if (process.browser) {
|
|
4807
4807
|
if (typeof window !== "undefined") {
|
|
@@ -5434,7 +5434,7 @@ var ClientServicesHost = class {
|
|
|
5434
5434
|
initialize({ config, ...options }) {
|
|
5435
5435
|
(0, import_invariant15.invariant)(!this._open, "service host is open", {
|
|
5436
5436
|
F: __dxlog_file18,
|
|
5437
|
-
L:
|
|
5437
|
+
L: 198,
|
|
5438
5438
|
S: this,
|
|
5439
5439
|
A: [
|
|
5440
5440
|
"!this._open",
|
|
@@ -5443,14 +5443,14 @@ var ClientServicesHost = class {
|
|
|
5443
5443
|
});
|
|
5444
5444
|
(0, import_log13.log)("initializing...", void 0, {
|
|
5445
5445
|
F: __dxlog_file18,
|
|
5446
|
-
L:
|
|
5446
|
+
L: 199,
|
|
5447
5447
|
S: this,
|
|
5448
5448
|
C: (f, a) => f(...a)
|
|
5449
5449
|
});
|
|
5450
5450
|
if (config) {
|
|
5451
5451
|
(0, import_invariant15.invariant)(!this._config, "config already set", {
|
|
5452
5452
|
F: __dxlog_file18,
|
|
5453
|
-
L:
|
|
5453
|
+
L: 202,
|
|
5454
5454
|
S: this,
|
|
5455
5455
|
A: [
|
|
5456
5456
|
"!this._config",
|
|
@@ -5465,7 +5465,7 @@ var ClientServicesHost = class {
|
|
|
5465
5465
|
if (!options.signalManager) {
|
|
5466
5466
|
import_log13.log.warn("running signaling without telemetry metadata.", void 0, {
|
|
5467
5467
|
F: __dxlog_file18,
|
|
5468
|
-
L:
|
|
5468
|
+
L: 210,
|
|
5469
5469
|
S: this,
|
|
5470
5470
|
C: (f, a) => f(...a)
|
|
5471
5471
|
});
|
|
@@ -5476,7 +5476,7 @@ var ClientServicesHost = class {
|
|
|
5476
5476
|
this._signalManager = signalManager;
|
|
5477
5477
|
(0, import_invariant15.invariant)(!this._networkManager, "network manager already set", {
|
|
5478
5478
|
F: __dxlog_file18,
|
|
5479
|
-
L:
|
|
5479
|
+
L: 221,
|
|
5480
5480
|
S: this,
|
|
5481
5481
|
A: [
|
|
5482
5482
|
"!this._networkManager",
|
|
@@ -5490,7 +5490,7 @@ var ClientServicesHost = class {
|
|
|
5490
5490
|
});
|
|
5491
5491
|
(0, import_log13.log)("initialized", void 0, {
|
|
5492
5492
|
F: __dxlog_file18,
|
|
5493
|
-
L:
|
|
5493
|
+
L: 228,
|
|
5494
5494
|
S: this,
|
|
5495
5495
|
C: (f, a) => f(...a)
|
|
5496
5496
|
});
|
|
@@ -5504,13 +5504,13 @@ var ClientServicesHost = class {
|
|
|
5504
5504
|
id: traceId
|
|
5505
5505
|
}), {
|
|
5506
5506
|
F: __dxlog_file18,
|
|
5507
|
-
L:
|
|
5507
|
+
L: 239,
|
|
5508
5508
|
S: this,
|
|
5509
5509
|
C: (f, a) => f(...a)
|
|
5510
5510
|
});
|
|
5511
5511
|
(0, import_invariant15.invariant)(this._config, "config not set", {
|
|
5512
5512
|
F: __dxlog_file18,
|
|
5513
|
-
L:
|
|
5513
|
+
L: 241,
|
|
5514
5514
|
S: this,
|
|
5515
5515
|
A: [
|
|
5516
5516
|
"this._config",
|
|
@@ -5519,7 +5519,7 @@ var ClientServicesHost = class {
|
|
|
5519
5519
|
});
|
|
5520
5520
|
(0, import_invariant15.invariant)(this._storage, "storage not set", {
|
|
5521
5521
|
F: __dxlog_file18,
|
|
5522
|
-
L:
|
|
5522
|
+
L: 242,
|
|
5523
5523
|
S: this,
|
|
5524
5524
|
A: [
|
|
5525
5525
|
"this._storage",
|
|
@@ -5528,7 +5528,7 @@ var ClientServicesHost = class {
|
|
|
5528
5528
|
});
|
|
5529
5529
|
(0, import_invariant15.invariant)(this._signalManager, "signal manager not set", {
|
|
5530
5530
|
F: __dxlog_file18,
|
|
5531
|
-
L:
|
|
5531
|
+
L: 243,
|
|
5532
5532
|
S: this,
|
|
5533
5533
|
A: [
|
|
5534
5534
|
"this._signalManager",
|
|
@@ -5537,7 +5537,7 @@ var ClientServicesHost = class {
|
|
|
5537
5537
|
});
|
|
5538
5538
|
(0, import_invariant15.invariant)(this._networkManager, "network manager not set", {
|
|
5539
5539
|
F: __dxlog_file18,
|
|
5540
|
-
L:
|
|
5540
|
+
L: 244,
|
|
5541
5541
|
S: this,
|
|
5542
5542
|
A: [
|
|
5543
5543
|
"this._networkManager",
|
|
@@ -5549,7 +5549,7 @@ var ClientServicesHost = class {
|
|
|
5549
5549
|
lockKey: this._resourceLock?.lockKey
|
|
5550
5550
|
}, {
|
|
5551
5551
|
F: __dxlog_file18,
|
|
5552
|
-
L:
|
|
5552
|
+
L: 247,
|
|
5553
5553
|
S: this,
|
|
5554
5554
|
C: (f, a) => f(...a)
|
|
5555
5555
|
});
|
|
@@ -5560,6 +5560,11 @@ var ClientServicesHost = class {
|
|
|
5560
5560
|
await this._resourceLock?.acquire();
|
|
5561
5561
|
await this._loggingService.open();
|
|
5562
5562
|
this._serviceContext = new ServiceContext(this._storage, this._level, this._networkManager, this._signalManager, this._runtimeParams);
|
|
5563
|
+
this._queryService = new import_indexing2.QueryServiceImpl({
|
|
5564
|
+
indexer: this._serviceContext.indexer,
|
|
5565
|
+
automergeHost: this._serviceContext.automergeHost
|
|
5566
|
+
});
|
|
5567
|
+
await this._queryService.open(ctx);
|
|
5563
5568
|
this._serviceRegistry.setServices({
|
|
5564
5569
|
SystemService: this._systemService,
|
|
5565
5570
|
IdentityService: new IdentityServiceImpl((params) => this._createIdentity(params), this._serviceContext.identityManager, this._serviceContext.keyring, (profile) => this._serviceContext.broadcastProfileUpdate(profile)),
|
|
@@ -5570,10 +5575,7 @@ var ClientServicesHost = class {
|
|
|
5570
5575
|
return this._serviceContext.dataSpaceManager;
|
|
5571
5576
|
}),
|
|
5572
5577
|
DataService: new import_echo_pipeline5.DataServiceImpl(this._serviceContext.automergeHost),
|
|
5573
|
-
|
|
5574
|
-
indexer: this._serviceContext.indexer,
|
|
5575
|
-
automergeHost: this._serviceContext.automergeHost
|
|
5576
|
-
}),
|
|
5578
|
+
QueryService: this._queryService,
|
|
5577
5579
|
NetworkService: new NetworkServiceImpl(this._serviceContext.networkManager, this._serviceContext.signalManager),
|
|
5578
5580
|
LoggingService: this._loggingService,
|
|
5579
5581
|
TracingService: this._tracingService,
|
|
@@ -5604,7 +5606,7 @@ var ClientServicesHost = class {
|
|
|
5604
5606
|
deviceKey
|
|
5605
5607
|
}, {
|
|
5606
5608
|
F: __dxlog_file18,
|
|
5607
|
-
L:
|
|
5609
|
+
L: 330,
|
|
5608
5610
|
S: this,
|
|
5609
5611
|
C: (f, a) => f(...a)
|
|
5610
5612
|
});
|
|
@@ -5612,7 +5614,7 @@ var ClientServicesHost = class {
|
|
|
5612
5614
|
id: traceId
|
|
5613
5615
|
}), {
|
|
5614
5616
|
F: __dxlog_file18,
|
|
5615
|
-
L:
|
|
5617
|
+
L: 331,
|
|
5616
5618
|
S: this,
|
|
5617
5619
|
C: (f, a) => f(...a)
|
|
5618
5620
|
});
|
|
@@ -5626,7 +5628,7 @@ var ClientServicesHost = class {
|
|
|
5626
5628
|
deviceKey
|
|
5627
5629
|
}, {
|
|
5628
5630
|
F: __dxlog_file18,
|
|
5629
|
-
L:
|
|
5631
|
+
L: 342,
|
|
5630
5632
|
S: this,
|
|
5631
5633
|
C: (f, a) => f(...a)
|
|
5632
5634
|
});
|
|
@@ -5636,6 +5638,7 @@ var ClientServicesHost = class {
|
|
|
5636
5638
|
SystemService: this._systemService
|
|
5637
5639
|
});
|
|
5638
5640
|
await this._loggingService.close();
|
|
5641
|
+
await this._queryService.close();
|
|
5639
5642
|
await this._serviceContext.close();
|
|
5640
5643
|
await this._level?.close();
|
|
5641
5644
|
this._open = false;
|
|
@@ -5644,7 +5647,7 @@ var ClientServicesHost = class {
|
|
|
5644
5647
|
deviceKey
|
|
5645
5648
|
}, {
|
|
5646
5649
|
F: __dxlog_file18,
|
|
5647
|
-
L:
|
|
5650
|
+
L: 352,
|
|
5648
5651
|
S: this,
|
|
5649
5652
|
C: (f, a) => f(...a)
|
|
5650
5653
|
});
|
|
@@ -5655,13 +5658,13 @@ var ClientServicesHost = class {
|
|
|
5655
5658
|
id: traceId
|
|
5656
5659
|
}), {
|
|
5657
5660
|
F: __dxlog_file18,
|
|
5658
|
-
L:
|
|
5661
|
+
L: 357,
|
|
5659
5662
|
S: this,
|
|
5660
5663
|
C: (f, a) => f(...a)
|
|
5661
5664
|
});
|
|
5662
5665
|
(0, import_log13.log)("resetting...", void 0, {
|
|
5663
5666
|
F: __dxlog_file18,
|
|
5664
|
-
L:
|
|
5667
|
+
L: 359,
|
|
5665
5668
|
S: this,
|
|
5666
5669
|
C: (f, a) => f(...a)
|
|
5667
5670
|
});
|
|
@@ -5669,7 +5672,7 @@ var ClientServicesHost = class {
|
|
|
5669
5672
|
await this._storage.reset();
|
|
5670
5673
|
(0, import_log13.log)("reset", void 0, {
|
|
5671
5674
|
F: __dxlog_file18,
|
|
5672
|
-
L:
|
|
5675
|
+
L: 362,
|
|
5673
5676
|
S: this,
|
|
5674
5677
|
C: (f, a) => f(...a)
|
|
5675
5678
|
});
|
|
@@ -5677,7 +5680,7 @@ var ClientServicesHost = class {
|
|
|
5677
5680
|
id: traceId
|
|
5678
5681
|
}), {
|
|
5679
5682
|
F: __dxlog_file18,
|
|
5680
|
-
L:
|
|
5683
|
+
L: 363,
|
|
5681
5684
|
S: this,
|
|
5682
5685
|
C: (f, a) => f(...a)
|
|
5683
5686
|
});
|
|
@@ -5690,7 +5693,7 @@ var ClientServicesHost = class {
|
|
|
5690
5693
|
const automergeIndex = space.automergeSpaceState.rootUrl;
|
|
5691
5694
|
(0, import_invariant15.invariant)(automergeIndex, void 0, {
|
|
5692
5695
|
F: __dxlog_file18,
|
|
5693
|
-
L:
|
|
5696
|
+
L: 375,
|
|
5694
5697
|
S: this,
|
|
5695
5698
|
A: [
|
|
5696
5699
|
"automergeIndex",
|
|
@@ -5810,4 +5813,4 @@ var findConfigs = () => {
|
|
|
5810
5813
|
subscribeToSpaces,
|
|
5811
5814
|
subscribeToSwarmInfo
|
|
5812
5815
|
});
|
|
5813
|
-
//# sourceMappingURL=chunk-
|
|
5816
|
+
//# sourceMappingURL=chunk-IPO3WM44.cjs.map
|