@dxos/client-services 0.1.58-main.eedac7a → 0.1.58-main.f4192cb

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.
Files changed (52) hide show
  1. package/dist/lib/browser/{chunk-5NAD4IAA.mjs → chunk-ZQHNJIE4.mjs} +48 -50
  2. package/dist/lib/browser/chunk-ZQHNJIE4.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +5 -6
  4. package/dist/lib/browser/index.mjs.map +2 -2
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/packlets/testing/index.mjs +1 -1
  7. package/dist/lib/node/index.cjs +50 -53
  8. package/dist/lib/node/index.cjs.map +4 -4
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/packlets/testing/index.cjs +46 -48
  11. package/dist/lib/node/packlets/testing/index.cjs.map +4 -4
  12. package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -1
  13. package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -1
  14. package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts +1 -1
  15. package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts.map +1 -1
  16. package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts +1 -1
  17. package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts.map +1 -1
  18. package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
  19. package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
  20. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  21. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  22. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  23. package/dist/types/src/packlets/spaces/data-space.d.ts +1 -1
  24. package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
  25. package/dist/types/src/packlets/spaces/spaces-service.d.ts +1 -1
  26. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
  27. package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts.map +1 -1
  28. package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -1
  29. package/dist/types/src/version.d.ts +1 -1
  30. package/package.json +34 -34
  31. package/src/packlets/devices/devices-service.test.ts +1 -1
  32. package/src/packlets/devtools/devtools.ts +1 -1
  33. package/src/packlets/identity/authenticator.ts +1 -4
  34. package/src/packlets/identity/identity-manager.test.ts +1 -1
  35. package/src/packlets/identity/identity-service.test.ts +1 -1
  36. package/src/packlets/identity/identity.test.ts +1 -1
  37. package/src/packlets/invitations/device-invitation-protocol.ts +1 -1
  38. package/src/packlets/invitations/space-invitation-protocol.ts +1 -1
  39. package/src/packlets/network/network-service.test.ts +1 -1
  40. package/src/packlets/network/network-service.ts +4 -1
  41. package/src/packlets/services/diagnostics.ts +2 -2
  42. package/src/packlets/services/service-context.ts +5 -11
  43. package/src/packlets/services/service-host.ts +3 -3
  44. package/src/packlets/services/service-registry.test.ts +1 -1
  45. package/src/packlets/spaces/data-space-manager.ts +1 -1
  46. package/src/packlets/spaces/data-space.ts +1 -1
  47. package/src/packlets/spaces/spaces-service.test.ts +1 -1
  48. package/src/packlets/spaces/spaces-service.ts +1 -1
  49. package/src/packlets/vault/iframe-host-runtime.ts +1 -1
  50. package/src/packlets/vault/worker-runtime.ts +9 -6
  51. package/src/version.ts +1 -1
  52. package/dist/lib/browser/chunk-5NAD4IAA.mjs.map +0 -7
@@ -70,9 +70,6 @@ var import_log = require("@dxos/log");
70
70
  var import_protocols = require("@dxos/protocols");
71
71
  var import_services = require("@dxos/protocols/proto/dxos/client/services");
72
72
 
73
- // packages/sdk/client-services/src/version.ts
74
- var DXOS_VERSION = "0.1.58-main.eedac7a";
75
-
76
73
  // packages/sdk/client-services/src/packlets/services/platform.ts
77
74
  var getPlatform = () => {
78
75
  if (process.browser) {
@@ -101,6 +98,9 @@ var getPlatform = () => {
101
98
  }
102
99
  };
103
100
 
101
+ // packages/sdk/client-services/src/version.ts
102
+ var DXOS_VERSION = "0.1.58-main.f4192cb";
103
+
104
104
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
105
105
  var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
106
106
  var DEFAULT_TIMEOUT = 1e3;
@@ -255,7 +255,6 @@ var createAuthProvider = (signer) => async (nonce) => {
255
255
  return Credential.encode(credential);
256
256
  };
257
257
  var TrustedKeySetAuthVerifier = class {
258
- // prettier-ignore
259
258
  constructor(_params) {
260
259
  this._params = _params;
261
260
  this._ctx = new import_context.Context();
@@ -270,7 +269,7 @@ var TrustedKeySetAuthVerifier = class {
270
269
  credential
271
270
  }, {
272
271
  F: __dxlog_file2,
273
- L: 59,
272
+ L: 56,
274
273
  S: this,
275
274
  C: (f, a) => f(...a)
276
275
  });
@@ -280,7 +279,7 @@ var TrustedKeySetAuthVerifier = class {
280
279
  result
281
280
  }, {
282
281
  F: __dxlog_file2,
283
- L: 63,
282
+ L: 60,
284
283
  S: this,
285
284
  C: (f, a) => f(...a)
286
285
  });
@@ -292,7 +291,7 @@ var TrustedKeySetAuthVerifier = class {
292
291
  credential
293
292
  }, {
294
293
  F: __dxlog_file2,
295
- L: 68,
294
+ L: 65,
296
295
  S: this,
297
296
  C: (f, a) => f(...a)
298
297
  });
@@ -303,7 +302,7 @@ var TrustedKeySetAuthVerifier = class {
303
302
  key: credential.issuer
304
303
  }, {
305
304
  F: __dxlog_file2,
306
- L: 73,
305
+ L: 70,
307
306
  S: this,
308
307
  C: (f, a) => f(...a)
309
308
  });
@@ -319,7 +318,7 @@ var TrustedKeySetAuthVerifier = class {
319
318
  key: credential.issuer
320
319
  }, {
321
320
  F: __dxlog_file2,
322
- L: 84,
321
+ L: 81,
323
322
  S: this,
324
323
  C: (f, a) => f(...a)
325
324
  });
@@ -329,7 +328,7 @@ var TrustedKeySetAuthVerifier = class {
329
328
  key: credential.issuer
330
329
  }, {
331
330
  F: __dxlog_file2,
332
- L: 87,
331
+ L: 84,
333
332
  S: this,
334
333
  C: (f, a) => f(...a)
335
334
  });
@@ -3599,7 +3598,6 @@ function _ts_decorate5(decorators, target, key, desc) {
3599
3598
  }
3600
3599
  var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
3601
3600
  var ServiceContext = class ServiceContext2 {
3602
- // prettier-ignore
3603
3601
  constructor(storage, networkManager, signalManager, modelFactory) {
3604
3602
  this.storage = storage;
3605
3603
  this.networkManager = networkManager;
@@ -3639,7 +3637,7 @@ var ServiceContext = class ServiceContext2 {
3639
3637
  await this._checkStorageVersion();
3640
3638
  (0, import_log13.log)("opening...", void 0, {
3641
3639
  F: __dxlog_file15,
3642
- L: 135,
3640
+ L: 129,
3643
3641
  S: this,
3644
3642
  C: (f, a) => f(...a)
3645
3643
  });
@@ -3647,7 +3645,7 @@ var ServiceContext = class ServiceContext2 {
3647
3645
  id: this._instanceId
3648
3646
  }), {
3649
3647
  F: __dxlog_file15,
3650
- L: 136,
3648
+ L: 130,
3651
3649
  S: this,
3652
3650
  C: (f, a) => f(...a)
3653
3651
  });
@@ -3663,13 +3661,13 @@ var ServiceContext = class ServiceContext2 {
3663
3661
  id: this._instanceId
3664
3662
  }), {
3665
3663
  F: __dxlog_file15,
3666
- L: 146,
3664
+ L: 140,
3667
3665
  S: this,
3668
3666
  C: (f, a) => f(...a)
3669
3667
  });
3670
3668
  (0, import_log13.log)("opened", void 0, {
3671
3669
  F: __dxlog_file15,
3672
- L: 147,
3670
+ L: 141,
3673
3671
  S: this,
3674
3672
  C: (f, a) => f(...a)
3675
3673
  });
@@ -3677,7 +3675,7 @@ var ServiceContext = class ServiceContext2 {
3677
3675
  async close() {
3678
3676
  (0, import_log13.log)("closing...", void 0, {
3679
3677
  F: __dxlog_file15,
3680
- L: 151,
3678
+ L: 145,
3681
3679
  S: this,
3682
3680
  C: (f, a) => f(...a)
3683
3681
  });
@@ -3694,7 +3692,7 @@ var ServiceContext = class ServiceContext2 {
3694
3692
  await this.metadataStore.close();
3695
3693
  (0, import_log13.log)("closed", void 0, {
3696
3694
  F: __dxlog_file15,
3697
- L: 163,
3695
+ L: 157,
3698
3696
  S: this,
3699
3697
  C: (f, a) => f(...a)
3700
3698
  });
@@ -3708,7 +3706,7 @@ var ServiceContext = class ServiceContext2 {
3708
3706
  const factory = this._handlerFactories.get(invitation.kind);
3709
3707
  (0, import_invariant13.invariant)(factory, `Unknown invitation kind: ${invitation.kind}`, {
3710
3708
  F: __dxlog_file15,
3711
- L: 174,
3709
+ L: 168,
3712
3710
  S: this,
3713
3711
  A: [
3714
3712
  "factory",
@@ -3732,7 +3730,7 @@ var ServiceContext = class ServiceContext2 {
3732
3730
  async _initialize(ctx) {
3733
3731
  (0, import_log13.log)("initializing spaces...", void 0, {
3734
3732
  F: __dxlog_file15,
3735
- L: 195,
3733
+ L: 189,
3736
3734
  S: this,
3737
3735
  C: (f, a) => f(...a)
3738
3736
  });
@@ -3755,7 +3753,7 @@ var ServiceContext = class ServiceContext2 {
3755
3753
  this._handlerFactories.set(import_services10.Invitation.Kind.SPACE, (invitation) => {
3756
3754
  (0, import_invariant13.invariant)(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
3757
3755
  F: __dxlog_file15,
3758
- L: 218,
3756
+ L: 212,
3759
3757
  S: this,
3760
3758
  A: [
3761
3759
  "this.dataSpaceManager",
@@ -3779,7 +3777,7 @@ var ServiceContext = class ServiceContext2 {
3779
3777
  details: assertion
3780
3778
  }, {
3781
3779
  F: __dxlog_file15,
3782
- L: 234,
3780
+ L: 228,
3783
3781
  S: this,
3784
3782
  C: (f, a) => f(...a)
3785
3783
  });
@@ -3790,7 +3788,7 @@ var ServiceContext = class ServiceContext2 {
3790
3788
  details: assertion
3791
3789
  }, {
3792
3790
  F: __dxlog_file15,
3793
- L: 238,
3791
+ L: 232,
3794
3792
  S: this,
3795
3793
  C: (f, a) => f(...a)
3796
3794
  });
@@ -3801,7 +3799,7 @@ var ServiceContext = class ServiceContext2 {
3801
3799
  details: assertion
3802
3800
  }, {
3803
3801
  F: __dxlog_file15,
3804
- L: 243,
3802
+ L: 237,
3805
3803
  S: this,
3806
3804
  C: (f, a) => f(...a)
3807
3805
  });
@@ -3812,7 +3810,7 @@ var ServiceContext = class ServiceContext2 {
3812
3810
  } catch (err) {
3813
3811
  import_log13.log.catch(err, void 0, {
3814
3812
  F: __dxlog_file15,
3815
- L: 249,
3813
+ L: 243,
3816
3814
  S: this,
3817
3815
  C: (f, a) => f(...a)
3818
3816
  });
@@ -3851,6 +3849,30 @@ var import_text_model = require("@dxos/text-model");
3851
3849
  var import_tracing5 = require("@dxos/tracing");
3852
3850
  var import_websocket_rpc = require("@dxos/websocket-rpc");
3853
3851
 
3852
+ // packages/sdk/client-services/src/packlets/services/service-registry.ts
3853
+ var ServiceRegistry = class {
3854
+ // prettier-ignore
3855
+ constructor(_serviceBundle, _handlers = {}) {
3856
+ this._serviceBundle = _serviceBundle;
3857
+ this._handlers = _handlers;
3858
+ }
3859
+ get descriptors() {
3860
+ return this._serviceBundle;
3861
+ }
3862
+ get services() {
3863
+ return this._handlers;
3864
+ }
3865
+ setServices(services) {
3866
+ this._handlers = services;
3867
+ }
3868
+ addService(name, service) {
3869
+ this._handlers[name] = service;
3870
+ }
3871
+ removeService(name) {
3872
+ delete this._handlers[name];
3873
+ }
3874
+ };
3875
+
3854
3876
  // packages/sdk/client-services/src/packlets/devices/devices-service.ts
3855
3877
  var import_async12 = require("@dxos/async");
3856
3878
  var import_codec_protobuf6 = require("@dxos/codec-protobuf");
@@ -4512,30 +4534,6 @@ var SystemServiceImpl = class {
4512
4534
  }
4513
4535
  };
4514
4536
 
4515
- // packages/sdk/client-services/src/packlets/services/service-registry.ts
4516
- var ServiceRegistry = class {
4517
- // prettier-ignore
4518
- constructor(_serviceBundle, _handlers = {}) {
4519
- this._serviceBundle = _serviceBundle;
4520
- this._handlers = _handlers;
4521
- }
4522
- get descriptors() {
4523
- return this._serviceBundle;
4524
- }
4525
- get services() {
4526
- return this._handlers;
4527
- }
4528
- setServices(services) {
4529
- this._handlers = services;
4530
- }
4531
- addService(name, service) {
4532
- this._handlers[name] = service;
4533
- }
4534
- removeService(name) {
4535
- delete this._handlers[name];
4536
- }
4537
- };
4538
-
4539
4537
  // packages/sdk/client-services/src/packlets/services/service-host.ts
4540
4538
  function _ts_decorate7(decorators, target, key, desc) {
4541
4539
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;