@dxos/client-services 0.6.3-main.226a8ae → 0.6.3-main.9e4e207

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.
@@ -7,7 +7,7 @@ import {
7
7
  InvitationsManager,
8
8
  ServiceContext,
9
9
  SpaceInvitationProtocol
10
- } from "../../chunk-ZCJ2EH5C.mjs";
10
+ } from "../../chunk-LOXM2SQM.mjs";
11
11
 
12
12
  // packages/sdk/client-services/src/packlets/testing/credential-utils.ts
13
13
  import { createCredential } from "@dxos/credentials";
@@ -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 chunk_LHYZLG23_exports = {};
30
- __export(chunk_LHYZLG23_exports, {
29
+ var chunk_MMUSO27N_exports = {};
30
+ __export(chunk_MMUSO27N_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  ClientServicesProviderResource: () => ClientServicesProviderResource,
@@ -70,7 +70,7 @@ __export(chunk_LHYZLG23_exports, {
70
70
  subscribeToSpaces: () => subscribeToSpaces,
71
71
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
72
72
  });
73
- module.exports = __toCommonJS(chunk_LHYZLG23_exports);
73
+ module.exports = __toCommonJS(chunk_MMUSO27N_exports);
74
74
  var import_async = require("@dxos/async");
75
75
  var import_codec_protobuf = require("@dxos/codec-protobuf");
76
76
  var import_feed_store = require("@dxos/feed-store");
@@ -647,7 +647,7 @@ var DevtoolsServiceImpl = class {
647
647
  });
648
648
  }
649
649
  };
650
- var DXOS_VERSION = "0.6.3-main.226a8ae";
650
+ var DXOS_VERSION = "0.6.3-main.9e4e207";
651
651
  var getPlatform = () => {
652
652
  if (process.browser) {
653
653
  if (typeof window !== "undefined") {
@@ -2488,7 +2488,7 @@ var InvitationsHandler = class {
2488
2488
  this._defaultTeleportParams = _defaultTeleportParams;
2489
2489
  }
2490
2490
  handleInvitationFlow(ctx, stream, protocol, invitation) {
2491
- metrics.increment("dxos.invitation.created");
2491
+ metrics.increment("invitation.created");
2492
2492
  const guardedState = this._createGuardedState(ctx, invitation, stream);
2493
2493
  const createExtension = () => {
2494
2494
  const extension = new InvitationHostExtension(guardedState.mutex, {
@@ -2558,7 +2558,7 @@ var InvitationsHandler = class {
2558
2558
  C: (f, a) => f(...a)
2559
2559
  });
2560
2560
  guardedState.set(extension, import_services6.Invitation.State.SUCCESS);
2561
- metrics.increment("dxos.invitation.success");
2561
+ metrics.increment("invitation.success");
2562
2562
  import_log6.log.trace("dxos.sdk.invitations-handler.host.onOpen", import_protocols5.trace.end({
2563
2563
  id: traceId
2564
2564
  }), {
@@ -2574,7 +2574,7 @@ var InvitationsHandler = class {
2574
2574
  } catch (err) {
2575
2575
  if (err instanceof import_async9.TimeoutError) {
2576
2576
  if (guardedState.set(extension, import_services6.Invitation.State.TIMEOUT)) {
2577
- metrics.increment("dxos.invitation.timeout");
2577
+ metrics.increment("invitation.timeout");
2578
2578
  (0, import_log6.log)("timeout", {
2579
2579
  ...protocol.toJSON()
2580
2580
  }, {
@@ -2586,7 +2586,7 @@ var InvitationsHandler = class {
2586
2586
  }
2587
2587
  } else {
2588
2588
  if (guardedState.error(extension, err)) {
2589
- metrics.increment("dxos.invitation.failed");
2589
+ metrics.increment("invitation.failed");
2590
2590
  import_log6.log.error("failed", err, {
2591
2591
  F: __dxlog_file12,
2592
2592
  L: 139,
@@ -2622,7 +2622,7 @@ var InvitationsHandler = class {
2622
2622
  }
2623
2623
  if (err instanceof import_async9.TimeoutError) {
2624
2624
  if (guardedState.set(extension, import_services6.Invitation.State.TIMEOUT)) {
2625
- metrics.increment("dxos.invitation.timeout");
2625
+ metrics.increment("invitation.timeout");
2626
2626
  (0, import_log6.log)("timeout", {
2627
2627
  err
2628
2628
  }, {
@@ -2634,7 +2634,7 @@ var InvitationsHandler = class {
2634
2634
  }
2635
2635
  } else {
2636
2636
  if (guardedState.error(extension, err)) {
2637
- metrics.increment("dxos.invitation.failed");
2637
+ metrics.increment("invitation.failed");
2638
2638
  import_log6.log.error("failed", err, {
2639
2639
  F: __dxlog_file12,
2640
2640
  L: 161,
@@ -2659,7 +2659,7 @@ var InvitationsHandler = class {
2659
2659
  (0, import_async9.scheduleTask)(ctx, async () => {
2660
2660
  await swarmConnection.close();
2661
2661
  guardedState.set(null, import_services6.Invitation.State.EXPIRED);
2662
- metrics.increment("dxos.invitation.expired");
2662
+ metrics.increment("invitation.expired");
2663
2663
  await ctx.dispose();
2664
2664
  }, invitation.created.getTime() + invitation.lifetime * 1e3 - Date.now());
2665
2665
  }
@@ -5784,7 +5784,7 @@ var SpacesServiceImpl = class {
5784
5784
  const dataSpaceManager = await this._getDataSpaceManager();
5785
5785
  const identity = this._identityManager.identity?.identityKey.truncate();
5786
5786
  if (identity) {
5787
- import_tracing8.trace.metrics.gauge("dxos.echo.space.count", dataSpaceManager.spaces.size, {
5787
+ import_tracing8.trace.metrics.gauge("echo.space.count", dataSpaceManager.spaces.size, {
5788
5788
  tags: {
5789
5789
  identity
5790
5790
  }
@@ -7156,4 +7156,4 @@ ClientServicesHost = _ts_decorate8([
7156
7156
  subscribeToSpaces,
7157
7157
  subscribeToSwarmInfo
7158
7158
  });
7159
- //# sourceMappingURL=chunk-LHYZLG23.cjs.map
7159
+ //# sourceMappingURL=chunk-MMUSO27N.cjs.map