@dxos/client-services 0.1.51-next.03aa1a8 → 0.1.51-next.5787f10
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-ARBZHWMK.mjs → chunk-2GQ7337P.mjs} +23 -16
- package/dist/lib/browser/chunk-2GQ7337P.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +8 -2
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/index.cjs +22 -15
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +29 -16
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/devtools/devtools.d.ts +2 -1
- package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +5 -0
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +3 -0
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/package.json +31 -30
- package/src/packlets/devtools/devtools.ts +7 -0
- package/src/packlets/identity/identity-manager.test.ts +4 -1
- package/src/packlets/identity/identity.test.ts +40 -21
- package/src/packlets/services/service-context.ts +7 -0
- package/src/packlets/spaces/data-space-manager.ts +0 -1
- package/src/packlets/testing/test-builder.ts +7 -0
- package/dist/lib/browser/chunk-ARBZHWMK.mjs.map +0 -7
|
@@ -355,6 +355,11 @@ var DevtoolsServiceImpl = class {
|
|
|
355
355
|
usageQuota: (_e = navigatorInfo == null ? void 0 : navigatorInfo.quota) != null ? _e : 0
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
+
async getBlobs() {
|
|
359
|
+
return {
|
|
360
|
+
blobs: await this.params.context.blobStore.list()
|
|
361
|
+
};
|
|
362
|
+
}
|
|
358
363
|
async getSnapshots() {
|
|
359
364
|
return {
|
|
360
365
|
snapshots: await this.params.context.snapshotStore.listSnapshots()
|
|
@@ -3111,13 +3116,12 @@ var DataSpaceManager = class DataSpaceManager2 {
|
|
|
3111
3116
|
session.addExtension("dxos.mesh.teleport.gossip", gossip.createExtension({
|
|
3112
3117
|
remotePeerId: session.remotePeerId
|
|
3113
3118
|
}));
|
|
3114
|
-
session.addExtension("dxos.mesh.teleport.objectsync", space.snapshotManager.objectSync.createExtension());
|
|
3115
3119
|
session.addExtension("dxos.mesh.teleport.notarization", dataSpace.notarizationPlugin.createExtension());
|
|
3116
3120
|
},
|
|
3117
3121
|
onAuthFailure: () => {
|
|
3118
3122
|
import_log12.log.warn("auth failure", {}, {
|
|
3119
3123
|
file: "data-space-manager.ts",
|
|
3120
|
-
line:
|
|
3124
|
+
line: 212,
|
|
3121
3125
|
scope: this,
|
|
3122
3126
|
callSite: (f, a) => f(...a)
|
|
3123
3127
|
});
|
|
@@ -3140,7 +3144,7 @@ var DataSpaceManager = class DataSpaceManager2 {
|
|
|
3140
3144
|
space: space.key
|
|
3141
3145
|
}, {
|
|
3142
3146
|
file: "data-space-manager.ts",
|
|
3143
|
-
line:
|
|
3147
|
+
line: 229,
|
|
3144
3148
|
scope: this,
|
|
3145
3149
|
callSite: (f, a) => f(...a)
|
|
3146
3150
|
});
|
|
@@ -3152,7 +3156,7 @@ var DataSpaceManager = class DataSpaceManager2 {
|
|
|
3152
3156
|
open: this._isOpen
|
|
3153
3157
|
}, {
|
|
3154
3158
|
file: "data-space-manager.ts",
|
|
3155
|
-
line:
|
|
3159
|
+
line: 236,
|
|
3156
3160
|
scope: this,
|
|
3157
3161
|
callSite: (f, a) => f(...a)
|
|
3158
3162
|
});
|
|
@@ -3452,6 +3456,7 @@ var import_keys11 = require("@dxos/keys");
|
|
|
3452
3456
|
var import_log14 = require("@dxos/log");
|
|
3453
3457
|
var import_protocols8 = require("@dxos/protocols");
|
|
3454
3458
|
var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
|
|
3459
|
+
var import_teleport_extension_object_sync = require("@dxos/teleport-extension-object-sync");
|
|
3455
3460
|
var ServiceContext = class {
|
|
3456
3461
|
// prettier-ignore
|
|
3457
3462
|
constructor(storage, networkManager, signalManager, modelFactory) {
|
|
@@ -3465,6 +3470,7 @@ var ServiceContext = class {
|
|
|
3465
3470
|
this._instanceId = import_keys11.PublicKey.random().toHex();
|
|
3466
3471
|
this.metadataStore = new import_echo_pipeline3.MetadataStore(storage.createDirectory("metadata"));
|
|
3467
3472
|
this.snapshotStore = new import_echo_pipeline3.SnapshotStore(storage.createDirectory("snapshots"));
|
|
3473
|
+
this.blobStore = new import_teleport_extension_object_sync.BlobStore(storage.createDirectory("blobs"));
|
|
3468
3474
|
this.keyring = new import_keyring.Keyring(storage.createDirectory("keyring"));
|
|
3469
3475
|
this.feedStore = new import_feed_store4.FeedStore({
|
|
3470
3476
|
factory: new import_feed_store4.FeedFactory({
|
|
@@ -3478,6 +3484,7 @@ var ServiceContext = class {
|
|
|
3478
3484
|
this.spaceManager = new import_echo_pipeline3.SpaceManager({
|
|
3479
3485
|
feedStore: this.feedStore,
|
|
3480
3486
|
networkManager: this.networkManager,
|
|
3487
|
+
blobStore: this.blobStore,
|
|
3481
3488
|
metadataStore: this.metadataStore,
|
|
3482
3489
|
modelFactory: this.modelFactory,
|
|
3483
3490
|
snapshotStore: this.snapshotStore
|
|
@@ -3494,14 +3501,14 @@ var ServiceContext = class {
|
|
|
3494
3501
|
id: this._instanceId
|
|
3495
3502
|
}), {
|
|
3496
3503
|
file: "service-context.ts",
|
|
3497
|
-
line:
|
|
3504
|
+
line: 126,
|
|
3498
3505
|
scope: this,
|
|
3499
3506
|
callSite: (f, a) => f(...a)
|
|
3500
3507
|
});
|
|
3501
3508
|
await this._checkStorageVersion();
|
|
3502
3509
|
(0, import_log14.log)("opening...", {}, {
|
|
3503
3510
|
file: "service-context.ts",
|
|
3504
|
-
line:
|
|
3511
|
+
line: 130,
|
|
3505
3512
|
scope: this,
|
|
3506
3513
|
callSite: (f, a) => f(...a)
|
|
3507
3514
|
});
|
|
@@ -3514,7 +3521,7 @@ var ServiceContext = class {
|
|
|
3514
3521
|
}
|
|
3515
3522
|
(0, import_log14.log)("opened", {}, {
|
|
3516
3523
|
file: "service-context.ts",
|
|
3517
|
-
line:
|
|
3524
|
+
line: 138,
|
|
3518
3525
|
scope: this,
|
|
3519
3526
|
callSite: (f, a) => f(...a)
|
|
3520
3527
|
});
|
|
@@ -3522,7 +3529,7 @@ var ServiceContext = class {
|
|
|
3522
3529
|
id: this._instanceId
|
|
3523
3530
|
}), {
|
|
3524
3531
|
file: "service-context.ts",
|
|
3525
|
-
line:
|
|
3532
|
+
line: 139,
|
|
3526
3533
|
scope: this,
|
|
3527
3534
|
callSite: (f, a) => f(...a)
|
|
3528
3535
|
});
|
|
@@ -3531,7 +3538,7 @@ var ServiceContext = class {
|
|
|
3531
3538
|
var _a, _b;
|
|
3532
3539
|
(0, import_log14.log)("closing...", {}, {
|
|
3533
3540
|
file: "service-context.ts",
|
|
3534
|
-
line:
|
|
3541
|
+
line: 143,
|
|
3535
3542
|
scope: this,
|
|
3536
3543
|
callSite: (f, a) => f(...a)
|
|
3537
3544
|
});
|
|
@@ -3545,7 +3552,7 @@ var ServiceContext = class {
|
|
|
3545
3552
|
this.dataServiceSubscriptions.clear();
|
|
3546
3553
|
(0, import_log14.log)("closed", {}, {
|
|
3547
3554
|
file: "service-context.ts",
|
|
3548
|
-
line:
|
|
3555
|
+
line: 152,
|
|
3549
3556
|
scope: this,
|
|
3550
3557
|
callSite: (f, a) => f(...a)
|
|
3551
3558
|
});
|
|
@@ -3576,7 +3583,7 @@ var ServiceContext = class {
|
|
|
3576
3583
|
var _a;
|
|
3577
3584
|
(0, import_log14.log)("initializing spaces...", {}, {
|
|
3578
3585
|
file: "service-context.ts",
|
|
3579
|
-
line:
|
|
3586
|
+
line: 185,
|
|
3580
3587
|
scope: this,
|
|
3581
3588
|
callSite: (f, a) => f(...a)
|
|
3582
3589
|
});
|
|
@@ -3615,7 +3622,7 @@ var ServiceContext = class {
|
|
|
3615
3622
|
details: assertion
|
|
3616
3623
|
}, {
|
|
3617
3624
|
file: "service-context.ts",
|
|
3618
|
-
line:
|
|
3625
|
+
line: 224,
|
|
3619
3626
|
scope: this,
|
|
3620
3627
|
callSite: (f, a) => f(...a)
|
|
3621
3628
|
});
|
|
@@ -3626,7 +3633,7 @@ var ServiceContext = class {
|
|
|
3626
3633
|
details: assertion
|
|
3627
3634
|
}, {
|
|
3628
3635
|
file: "service-context.ts",
|
|
3629
|
-
line:
|
|
3636
|
+
line: 228,
|
|
3630
3637
|
scope: this,
|
|
3631
3638
|
callSite: (f, a) => f(...a)
|
|
3632
3639
|
});
|
|
@@ -3637,7 +3644,7 @@ var ServiceContext = class {
|
|
|
3637
3644
|
details: assertion
|
|
3638
3645
|
}, {
|
|
3639
3646
|
file: "service-context.ts",
|
|
3640
|
-
line:
|
|
3647
|
+
line: 233,
|
|
3641
3648
|
scope: this,
|
|
3642
3649
|
callSite: (f, a) => f(...a)
|
|
3643
3650
|
});
|
|
@@ -3648,7 +3655,7 @@ var ServiceContext = class {
|
|
|
3648
3655
|
} catch (err) {
|
|
3649
3656
|
import_log14.log.catch(err, {}, {
|
|
3650
3657
|
file: "service-context.ts",
|
|
3651
|
-
line:
|
|
3658
|
+
line: 239,
|
|
3652
3659
|
scope: this,
|
|
3653
3660
|
callSite: (f, a) => f(...a)
|
|
3654
3661
|
});
|
|
@@ -4098,6 +4105,7 @@ var import_keyring2 = require("@dxos/keyring");
|
|
|
4098
4105
|
var import_messaging2 = require("@dxos/messaging");
|
|
4099
4106
|
var import_network_manager3 = require("@dxos/network-manager");
|
|
4100
4107
|
var import_random_access_storage2 = require("@dxos/random-access-storage");
|
|
4108
|
+
var import_teleport_extension_object_sync2 = require("@dxos/teleport-extension-object-sync");
|
|
4101
4109
|
var createServiceHost = (config, signalManagerContext) => {
|
|
4102
4110
|
return new ClientServicesHost({
|
|
4103
4111
|
config,
|
|
@@ -4182,6 +4190,10 @@ var TestPeer = class {
|
|
|
4182
4190
|
var _a, _b;
|
|
4183
4191
|
return (_b = (_a = this._props).metadataStore) != null ? _b : _a.metadataStore = new import_echo_pipeline5.MetadataStore(this.storage.createDirectory("metadata"));
|
|
4184
4192
|
}
|
|
4193
|
+
get blobStore() {
|
|
4194
|
+
var _a, _b;
|
|
4195
|
+
return (_b = (_a = this._props).blobStore) != null ? _b : _a.blobStore = new import_teleport_extension_object_sync2.BlobStore(this.storage.createDirectory("blobs"));
|
|
4196
|
+
}
|
|
4185
4197
|
get snapshotStore() {
|
|
4186
4198
|
var _a, _b;
|
|
4187
4199
|
return (_b = (_a = this._props).snapshotStore) != null ? _b : _a.snapshotStore = new import_echo_pipeline5.SnapshotStore(this.storage.createDirectory("snapshots"));
|
|
@@ -4200,7 +4212,8 @@ var TestPeer = class {
|
|
|
4200
4212
|
networkManager: this.networkManager,
|
|
4201
4213
|
metadataStore: this.metadataStore,
|
|
4202
4214
|
modelFactory: (0, import_client_protocol6.createDefaultModelFactory)(),
|
|
4203
|
-
snapshotStore: this.snapshotStore
|
|
4215
|
+
snapshotStore: this.snapshotStore,
|
|
4216
|
+
blobStore: this.blobStore
|
|
4204
4217
|
});
|
|
4205
4218
|
}
|
|
4206
4219
|
async destroy() {
|