@dxos/client-services 0.5.6-main.1a02a59 → 0.5.6-main.4c8cf74

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.
@@ -30,7 +30,7 @@ __export(testing_exports, {
30
30
  sanitizeInvitation: () => sanitizeInvitation
31
31
  });
32
32
  module.exports = __toCommonJS(testing_exports);
33
- var import_chunk_MH7NTR34 = require("../../chunk-MH7NTR34.cjs");
33
+ var import_chunk_ANUINV4U = require("../../chunk-ANUINV4U.cjs");
34
34
  var import_credentials = require("@dxos/credentials");
35
35
  var import_keys = require("@dxos/keys");
36
36
  var import_async = require("@dxos/async");
@@ -227,7 +227,7 @@ var createInvitation = async (host, options) => {
227
227
  authMethod: import_services.Invitation.AuthMethod.NONE,
228
228
  ...options ?? {}
229
229
  };
230
- if (host instanceof import_chunk_MH7NTR34.ServiceContext) {
230
+ if (host instanceof import_chunk_ANUINV4U.ServiceContext) {
231
231
  return host.invitationsManager.createInvitation({
232
232
  kind: import_services.Invitation.Kind.SPACE,
233
233
  ...options
@@ -237,7 +237,7 @@ var createInvitation = async (host, options) => {
237
237
  };
238
238
  var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
239
239
  invitation = sanitizeInvitation(invitation);
240
- if (guest instanceof import_chunk_MH7NTR34.ServiceContext) {
240
+ if (guest instanceof import_chunk_ANUINV4U.ServiceContext) {
241
241
  return guest.invitationsManager.acceptInvitation({
242
242
  invitation,
243
243
  deviceProfile: guestDeviceProfile
@@ -246,7 +246,7 @@ var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
246
246
  return guest.join(invitation, guestDeviceProfile);
247
247
  };
248
248
  var createServiceHost = (config, signalManagerContext) => {
249
- return new import_chunk_MH7NTR34.ClientServicesHost({
249
+ return new import_chunk_ANUINV4U.ClientServicesHost({
250
250
  config,
251
251
  signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
252
252
  transportFactory: import_network_manager.MemoryTransportFactory
@@ -262,7 +262,7 @@ var createServiceContext = async ({ signalContext = new import_messaging.MemoryS
262
262
  });
263
263
  const level = (0, import_testing.createTestLevel)();
264
264
  await level.open();
265
- return new import_chunk_MH7NTR34.ServiceContext(storage, level, networkManager, signalManager, {
265
+ return new import_chunk_ANUINV4U.ServiceContext(storage, level, networkManager, signalManager, {
266
266
  invitationConnectionDefaultParams: {
267
267
  controlHeartbeatInterval: 200
268
268
  }
@@ -363,12 +363,12 @@ var TestPeer = class {
363
363
  });
364
364
  }
365
365
  get dataSpaceManager() {
366
- return this._props.dataSpaceManager ??= new import_chunk_MH7NTR34.DataSpaceManager(this.spaceManager, this.metadataStore, this.keyring, this.identity, this.feedStore, this.echoHost, this.invitationsManager);
366
+ return this._props.dataSpaceManager ??= new import_chunk_ANUINV4U.DataSpaceManager(this.spaceManager, this.metadataStore, this.keyring, this.identity, this.feedStore, this.echoHost, this.invitationsManager);
367
367
  }
368
368
  get invitationsManager() {
369
- return this._props.invitationsManager ??= new import_chunk_MH7NTR34.InvitationsManager(new import_chunk_MH7NTR34.InvitationsHandler(this.networkManager), (invitation) => {
369
+ return this._props.invitationsManager ??= new import_chunk_ANUINV4U.InvitationsManager(new import_chunk_ANUINV4U.InvitationsHandler(this.networkManager), (invitation) => {
370
370
  if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
371
- return new import_chunk_MH7NTR34.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
371
+ return new import_chunk_ANUINV4U.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
372
372
  } else {
373
373
  throw new Error("not implemented");
374
374
  }
@@ -22,6 +22,5 @@ export declare class SpacesServiceImpl implements SpacesService {
22
22
  createEpoch({ spaceKey, migration }: CreateEpochRequest): Promise<void>;
23
23
  private _serializeSpace;
24
24
  private _requireIdentity;
25
- private _updateMetrics;
26
25
  }
27
26
  //# sourceMappingURL=spaces-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spaces-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C,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAFpB,gBAAgB,EAAE,eAAe,EACjC,aAAa,EAAE,YAAY,EAC3B,oBAAoB,EAAE,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAGtE,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC;IAO7B,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,kBAAkB;IAmBnD,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BvE,WAAW,IAAI,MAAM,CAAC,mBAAmB,CAAC;IAkDpC,WAAW,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,kBAAkB;IAMpE,iBAAiB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,wBAAwB;IAajE,gBAAgB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,uBAAuB,GAAG,MAAM,CAAC,UAAU,CAAC;IAmB7E,gBAAgB,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,uBAAuB;IAmBnE,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,kBAAkB;IAM7D,OAAO,CAAC,eAAe;IA4CvB,OAAO,CAAC,gBAAgB;CAQzB"}
@@ -1,2 +1,2 @@
1
- export declare const DXOS_VERSION = "0.5.6-main.1a02a59";
1
+ export declare const DXOS_VERSION = "0.5.6-main.4c8cf74";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-services",
3
- "version": "0.5.6-main.1a02a59",
3
+ "version": "0.5.6-main.4c8cf74",
4
4
  "description": "DXOS client services implementation",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -23,45 +23,45 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "platform": "^1.3.6",
26
- "@dxos/async": "0.5.6-main.1a02a59",
27
- "@dxos/automerge": "0.5.6-main.1a02a59",
28
- "@dxos/client-protocol": "0.5.6-main.1a02a59",
29
- "@dxos/codec-protobuf": "0.5.6-main.1a02a59",
30
- "@dxos/context": "0.5.6-main.1a02a59",
31
- "@dxos/credentials": "0.5.6-main.1a02a59",
32
- "@dxos/config": "0.5.6-main.1a02a59",
33
- "@dxos/crypto": "0.5.6-main.1a02a59",
34
- "@dxos/debug": "0.5.6-main.1a02a59",
35
- "@dxos/echo-db": "0.5.6-main.1a02a59",
36
- "@dxos/echo-pipeline": "0.5.6-main.1a02a59",
37
- "@dxos/echo-protocol": "0.5.6-main.1a02a59",
38
- "@dxos/echo-schema": "0.5.6-main.1a02a59",
39
- "@dxos/feed-store": "0.5.6-main.1a02a59",
40
- "@dxos/indexing": "0.5.6-main.1a02a59",
41
- "@dxos/invariant": "0.5.6-main.1a02a59",
42
- "@dxos/keyring": "0.5.6-main.1a02a59",
43
- "@dxos/kv-store": "0.5.6-main.1a02a59",
44
- "@dxos/lock-file": "0.5.6-main.1a02a59",
45
- "@dxos/keys": "0.5.6-main.1a02a59",
46
- "@dxos/log": "0.5.6-main.1a02a59",
47
- "@dxos/messaging": "0.5.6-main.1a02a59",
48
- "@dxos/network-manager": "0.5.6-main.1a02a59",
49
- "@dxos/node-std": "0.5.6-main.1a02a59",
50
- "@dxos/protocols": "0.5.6-main.1a02a59",
51
- "@dxos/rpc": "0.5.6-main.1a02a59",
52
- "@dxos/random-access-storage": "0.5.6-main.1a02a59",
53
- "@dxos/teleport": "0.5.6-main.1a02a59",
54
- "@dxos/teleport-extension-gossip": "0.5.6-main.1a02a59",
55
- "@dxos/timeframe": "0.5.6-main.1a02a59",
56
- "@dxos/teleport-extension-object-sync": "0.5.6-main.1a02a59",
57
- "@dxos/util": "0.5.6-main.1a02a59",
58
- "@dxos/tracing": "0.5.6-main.1a02a59",
59
- "@dxos/websocket-rpc": "0.5.6-main.1a02a59"
26
+ "@dxos/async": "0.5.6-main.4c8cf74",
27
+ "@dxos/automerge": "0.5.6-main.4c8cf74",
28
+ "@dxos/client-protocol": "0.5.6-main.4c8cf74",
29
+ "@dxos/codec-protobuf": "0.5.6-main.4c8cf74",
30
+ "@dxos/config": "0.5.6-main.4c8cf74",
31
+ "@dxos/context": "0.5.6-main.4c8cf74",
32
+ "@dxos/credentials": "0.5.6-main.4c8cf74",
33
+ "@dxos/crypto": "0.5.6-main.4c8cf74",
34
+ "@dxos/debug": "0.5.6-main.4c8cf74",
35
+ "@dxos/echo-db": "0.5.6-main.4c8cf74",
36
+ "@dxos/echo-pipeline": "0.5.6-main.4c8cf74",
37
+ "@dxos/echo-protocol": "0.5.6-main.4c8cf74",
38
+ "@dxos/feed-store": "0.5.6-main.4c8cf74",
39
+ "@dxos/indexing": "0.5.6-main.4c8cf74",
40
+ "@dxos/echo-schema": "0.5.6-main.4c8cf74",
41
+ "@dxos/invariant": "0.5.6-main.4c8cf74",
42
+ "@dxos/keyring": "0.5.6-main.4c8cf74",
43
+ "@dxos/keys": "0.5.6-main.4c8cf74",
44
+ "@dxos/kv-store": "0.5.6-main.4c8cf74",
45
+ "@dxos/lock-file": "0.5.6-main.4c8cf74",
46
+ "@dxos/log": "0.5.6-main.4c8cf74",
47
+ "@dxos/messaging": "0.5.6-main.4c8cf74",
48
+ "@dxos/node-std": "0.5.6-main.4c8cf74",
49
+ "@dxos/network-manager": "0.5.6-main.4c8cf74",
50
+ "@dxos/protocols": "0.5.6-main.4c8cf74",
51
+ "@dxos/random-access-storage": "0.5.6-main.4c8cf74",
52
+ "@dxos/rpc": "0.5.6-main.4c8cf74",
53
+ "@dxos/teleport": "0.5.6-main.4c8cf74",
54
+ "@dxos/teleport-extension-gossip": "0.5.6-main.4c8cf74",
55
+ "@dxos/tracing": "0.5.6-main.4c8cf74",
56
+ "@dxos/teleport-extension-object-sync": "0.5.6-main.4c8cf74",
57
+ "@dxos/timeframe": "0.5.6-main.4c8cf74",
58
+ "@dxos/websocket-rpc": "0.5.6-main.4c8cf74",
59
+ "@dxos/util": "0.5.6-main.4c8cf74"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/platform": "^1.3.4",
63
63
  "@types/readable-stream": "^2.3.9",
64
- "@dxos/signal": "0.5.6-main.1a02a59"
64
+ "@dxos/signal": "0.5.6-main.4c8cf74"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"
@@ -33,7 +33,6 @@ import {
33
33
  } from '@dxos/protocols/proto/dxos/client/services';
34
34
  import { type Credential } from '@dxos/protocols/proto/dxos/halo/credentials';
35
35
  import { type GossipMessage } from '@dxos/protocols/proto/dxos/mesh/teleport/gossip';
36
- import { trace } from '@dxos/tracing';
37
36
  import { type Provider } from '@dxos/util';
38
37
 
39
38
  import { type DataSpace } from './data-space';
@@ -51,7 +50,6 @@ export class SpacesServiceImpl implements SpacesService {
51
50
  this._requireIdentity();
52
51
  const dataSpaceManager = await this._getDataSpaceManager();
53
52
  const space = await dataSpaceManager.createSpace();
54
- await this._updateMetrics();
55
53
  return this._serializeSpace(space);
56
54
  }
57
55
 
@@ -108,7 +106,6 @@ export class SpacesServiceImpl implements SpacesService {
108
106
  const dataSpaceManager = await this._getDataSpaceManager();
109
107
  const spaces = Array.from(dataSpaceManager.spaces.values()).map((space) => this._serializeSpace(space));
110
108
  log('update', { spaces });
111
- await this._updateMetrics();
112
109
  next({ spaces });
113
110
  },
114
111
  { maxFrequency: process.env.NODE_ENV === 'test' ? undefined : 2 },
@@ -266,16 +263,6 @@ export class SpacesServiceImpl implements SpacesService {
266
263
  }
267
264
  return this._identityManager.identity;
268
265
  }
269
-
270
- private async _updateMetrics() {
271
- const dataSpaceManager = await this._getDataSpaceManager();
272
- const identity = this._identityManager.identity?.identityKey.truncate();
273
- if (identity) {
274
- trace.metrics.gauge('echo.space.count', dataSpaceManager.spaces.size, {
275
- tags: { identity },
276
- });
277
- }
278
- }
279
266
  }
280
267
 
281
268
  // Add `user-channel` prefix to the channel name, so that it doesn't collide with the internal channels.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DXOS_VERSION = "0.5.6-main.1a02a59";
1
+ export const DXOS_VERSION = "0.5.6-main.4c8cf74";