@dxos/client-services 0.4.7-main.3df814a → 0.4.7-main.40a4553

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.
@@ -2671,7 +2671,7 @@ var getPlatform = () => {
2671
2671
  };
2672
2672
 
2673
2673
  // packages/sdk/client-services/src/version.ts
2674
- var DXOS_VERSION = "0.4.7-main.3df814a";
2674
+ var DXOS_VERSION = "0.4.7-main.40a4553";
2675
2675
 
2676
2676
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2677
2677
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -4723,7 +4723,7 @@ import { DocumentModel as DocumentModel2 } from "@dxos/document-model";
4723
4723
  import { DataServiceImpl } from "@dxos/echo-pipeline";
4724
4724
  import { getRawDoc, getAutomergeObjectCore } from "@dxos/echo-schema";
4725
4725
  import { invariant as invariant15 } from "@dxos/invariant";
4726
- import { PublicKey as PublicKey11 } from "@dxos/keys";
4726
+ import { PublicKey as PublicKey12 } from "@dxos/keys";
4727
4727
  import { log as log16 } from "@dxos/log";
4728
4728
  import { WebsocketSignalManager } from "@dxos/messaging";
4729
4729
  import { ModelFactory } from "@dxos/model-factory";
@@ -4820,13 +4820,15 @@ var DevicesServiceImpl = class {
4820
4820
  // packages/sdk/client-services/src/packlets/logging/logging-service.ts
4821
4821
  import { Event as Event7 } from "@dxos/async";
4822
4822
  import { Stream as Stream12 } from "@dxos/codec-protobuf";
4823
+ import { PublicKey as PublicKey11 } from "@dxos/keys";
4823
4824
  import { getContextFromEntry, log as log15 } from "@dxos/log";
4824
4825
  import { QueryLogsRequest } from "@dxos/protocols/proto/dxos/client/services";
4825
- import { jsonify, numericalValues, tracer } from "@dxos/util";
4826
+ import { getDebugName, jsonify, numericalValues, tracer } from "@dxos/util";
4826
4827
  var LoggingServiceImpl = class {
4827
4828
  constructor() {
4828
4829
  this._logs = new Event7();
4829
- this._started = /* @__PURE__ */ new Date();
4830
+ this._started = Date.now();
4831
+ this._sessionId = PublicKey11.random().toHex();
4830
4832
  this._logProcessor = (_config, entry2) => {
4831
4833
  this._logs.emit(entry2);
4832
4834
  };
@@ -4902,7 +4904,12 @@ var LoggingServiceImpl = class {
4902
4904
  meta: {
4903
4905
  // TODO(dmaretskyi): Fix proto.
4904
4906
  file: entry2.meta?.F ?? "",
4905
- line: entry2.meta?.L ?? 0
4907
+ line: entry2.meta?.L ?? 0,
4908
+ scope: {
4909
+ hostSessionId: this._sessionId,
4910
+ uptimeSeconds: (Date.now() - this._started) / 1e3,
4911
+ name: getDebugName(entry2.meta?.S)
4912
+ }
4906
4913
  }
4907
4914
  };
4908
4915
  try {
@@ -5184,7 +5191,7 @@ var ClientServicesHost = class {
5184
5191
  if (this._open) {
5185
5192
  return;
5186
5193
  }
5187
- const traceId = PublicKey11.random().toHex();
5194
+ const traceId = PublicKey12.random().toHex();
5188
5195
  log16.trace("dxos.client-services.host.open", trace9.begin({
5189
5196
  id: traceId
5190
5197
  }), {
@@ -5324,7 +5331,7 @@ var ClientServicesHost = class {
5324
5331
  });
5325
5332
  }
5326
5333
  async reset() {
5327
- const traceId = PublicKey11.random().toHex();
5334
+ const traceId = PublicKey12.random().toHex();
5328
5335
  log16.trace("dxos.sdk.client-services-host.reset", trace9.begin({
5329
5336
  id: traceId
5330
5337
  }), {
@@ -5436,4 +5443,4 @@ export {
5436
5443
  createDefaultModelFactory,
5437
5444
  ClientServicesHost
5438
5445
  };
5439
- //# sourceMappingURL=chunk-BOFM557X.mjs.map
5446
+ //# sourceMappingURL=chunk-2YLC3L2E.mjs.map