@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-services",
3
- "version": "0.4.7-main.3df814a",
3
+ "version": "0.4.7-main.40a4553",
4
4
  "description": "DXOS client services implementation",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -22,44 +22,44 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "platform": "^1.3.6",
25
- "@dxos/async": "0.4.7-main.3df814a",
26
- "@dxos/codec-protobuf": "0.4.7-main.3df814a",
27
- "@dxos/config": "0.4.7-main.3df814a",
28
- "@dxos/client-protocol": "0.4.7-main.3df814a",
29
- "@dxos/context": "0.4.7-main.3df814a",
30
- "@dxos/credentials": "0.4.7-main.3df814a",
31
- "@dxos/crypto": "0.4.7-main.3df814a",
32
- "@dxos/debug": "0.4.7-main.3df814a",
33
- "@dxos/document-model": "0.4.7-main.3df814a",
34
- "@dxos/echo-pipeline": "0.4.7-main.3df814a",
35
- "@dxos/echo-schema": "0.4.7-main.3df814a",
36
- "@dxos/echo-db": "0.4.7-main.3df814a",
37
- "@dxos/feed-store": "0.4.7-main.3df814a",
38
- "@dxos/invariant": "0.4.7-main.3df814a",
39
- "@dxos/keyring": "0.4.7-main.3df814a",
40
- "@dxos/lock-file": "0.4.7-main.3df814a",
41
- "@dxos/messaging": "0.4.7-main.3df814a",
42
- "@dxos/keys": "0.4.7-main.3df814a",
43
- "@dxos/log": "0.4.7-main.3df814a",
44
- "@dxos/model-factory": "0.4.7-main.3df814a",
45
- "@dxos/network-manager": "0.4.7-main.3df814a",
46
- "@dxos/node-std": "0.4.7-main.3df814a",
47
- "@dxos/protocols": "0.4.7-main.3df814a",
48
- "@dxos/random-access-storage": "0.4.7-main.3df814a",
49
- "@dxos/rpc": "0.4.7-main.3df814a",
50
- "@dxos/teleport": "0.4.7-main.3df814a",
51
- "@dxos/teleport-extension-gossip": "0.4.7-main.3df814a",
52
- "@dxos/teleport-extension-object-sync": "0.4.7-main.3df814a",
53
- "@dxos/text-model": "0.4.7-main.3df814a",
54
- "@dxos/timeframe": "0.4.7-main.3df814a",
55
- "@dxos/tracing": "0.4.7-main.3df814a",
56
- "@dxos/websocket-rpc": "0.4.7-main.3df814a",
57
- "@dxos/util": "0.4.7-main.3df814a"
25
+ "@dxos/client-protocol": "0.4.7-main.40a4553",
26
+ "@dxos/codec-protobuf": "0.4.7-main.40a4553",
27
+ "@dxos/config": "0.4.7-main.40a4553",
28
+ "@dxos/context": "0.4.7-main.40a4553",
29
+ "@dxos/crypto": "0.4.7-main.40a4553",
30
+ "@dxos/async": "0.4.7-main.40a4553",
31
+ "@dxos/credentials": "0.4.7-main.40a4553",
32
+ "@dxos/debug": "0.4.7-main.40a4553",
33
+ "@dxos/document-model": "0.4.7-main.40a4553",
34
+ "@dxos/echo-pipeline": "0.4.7-main.40a4553",
35
+ "@dxos/echo-db": "0.4.7-main.40a4553",
36
+ "@dxos/echo-schema": "0.4.7-main.40a4553",
37
+ "@dxos/feed-store": "0.4.7-main.40a4553",
38
+ "@dxos/invariant": "0.4.7-main.40a4553",
39
+ "@dxos/keyring": "0.4.7-main.40a4553",
40
+ "@dxos/keys": "0.4.7-main.40a4553",
41
+ "@dxos/lock-file": "0.4.7-main.40a4553",
42
+ "@dxos/log": "0.4.7-main.40a4553",
43
+ "@dxos/messaging": "0.4.7-main.40a4553",
44
+ "@dxos/model-factory": "0.4.7-main.40a4553",
45
+ "@dxos/network-manager": "0.4.7-main.40a4553",
46
+ "@dxos/node-std": "0.4.7-main.40a4553",
47
+ "@dxos/protocols": "0.4.7-main.40a4553",
48
+ "@dxos/random-access-storage": "0.4.7-main.40a4553",
49
+ "@dxos/rpc": "0.4.7-main.40a4553",
50
+ "@dxos/teleport": "0.4.7-main.40a4553",
51
+ "@dxos/teleport-extension-gossip": "0.4.7-main.40a4553",
52
+ "@dxos/teleport-extension-object-sync": "0.4.7-main.40a4553",
53
+ "@dxos/text-model": "0.4.7-main.40a4553",
54
+ "@dxos/timeframe": "0.4.7-main.40a4553",
55
+ "@dxos/tracing": "0.4.7-main.40a4553",
56
+ "@dxos/websocket-rpc": "0.4.7-main.40a4553",
57
+ "@dxos/util": "0.4.7-main.40a4553"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/platform": "^1.3.4",
61
61
  "@types/readable-stream": "^2.3.9",
62
- "@dxos/signal": "0.4.7-main.3df814a"
62
+ "@dxos/signal": "0.4.7-main.40a4553"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Event } from '@dxos/async';
6
6
  import { Stream } from '@dxos/codec-protobuf';
7
+ import { PublicKey } from '@dxos/keys';
7
8
  import {
8
9
  type LogLevel,
9
10
  type LogProcessor,
@@ -21,14 +22,15 @@ import {
21
22
  type QueryMetricsRequest,
22
23
  type QueryMetricsResponse,
23
24
  } from '@dxos/protocols/proto/dxos/client/services';
24
- import { jsonify, numericalValues, tracer } from '@dxos/util';
25
+ import { getDebugName, jsonify, numericalValues, tracer } from '@dxos/util';
25
26
 
26
27
  /**
27
28
  * Logging service used to spy on logs of the host.
28
29
  */
29
30
  export class LoggingServiceImpl implements LoggingService {
30
31
  private readonly _logs = new Event<NaturalLogEntry>();
31
- private readonly _started = new Date();
32
+ private readonly _started = Date.now();
33
+ private readonly _sessionId = PublicKey.random().toHex();
32
34
 
33
35
  async open() {
34
36
  log.runtimeConfig.processors.push(this._logProcessor);
@@ -116,6 +118,11 @@ export class LoggingServiceImpl implements LoggingService {
116
118
  // TODO(dmaretskyi): Fix proto.
117
119
  file: entry.meta?.F ?? '',
118
120
  line: entry.meta?.L ?? 0,
121
+ scope: {
122
+ hostSessionId: this._sessionId,
123
+ uptimeSeconds: (Date.now() - this._started) / 1000,
124
+ name: getDebugName(entry.meta?.S),
125
+ },
119
126
  },
120
127
  };
121
128
 
@@ -76,7 +76,9 @@ export class SharedWorkerConnection {
76
76
  BridgeService: this._transportService,
77
77
  },
78
78
  port: this._systemPort,
79
- timeout: 30_000,
79
+ // TODO(wittjosiah): Make longer and factor out to constant.
80
+ // TODO(wittjosiah): If this is too long then it breaks the reset flows in Composer.
81
+ timeout: 200,
80
82
  });
81
83
 
82
84
  let lockKey: string | undefined;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DXOS_VERSION = "0.4.7-main.3df814a";
1
+ export const DXOS_VERSION = "0.4.7-main.40a4553";