@dxos/client-services 0.6.3-next.4424131 → 0.6.3-staging.75e3813

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_WMIDDIMJ = require("../../chunk-WMIDDIMJ.cjs");
33
+ var import_chunk_4WZHXQZI = require("../../chunk-4WZHXQZI.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_WMIDDIMJ.ServiceContext) {
230
+ if (host instanceof import_chunk_4WZHXQZI.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_WMIDDIMJ.ServiceContext) {
240
+ if (guest instanceof import_chunk_4WZHXQZI.ServiceContext) {
241
241
  return guest.invitationsManager.acceptInvitation({
242
242
  invitation,
243
243
  deviceProfile: guestDeviceProfile
@@ -247,7 +247,7 @@ var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
247
247
  };
248
248
  var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/test-builder.ts";
249
249
  var createServiceHost = (config, signalManagerContext) => {
250
- return new import_chunk_WMIDDIMJ.ClientServicesHost({
250
+ return new import_chunk_4WZHXQZI.ClientServicesHost({
251
251
  config,
252
252
  signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
253
253
  transportFactory: import_network_manager.MemoryTransportFactory
@@ -263,7 +263,7 @@ var createServiceContext = async ({ signalContext = new import_messaging.MemoryS
263
263
  });
264
264
  const level = (0, import_testing.createTestLevel)();
265
265
  await level.open();
266
- return new import_chunk_WMIDDIMJ.ServiceContext(storage, level, networkManager, signalManager, {
266
+ return new import_chunk_4WZHXQZI.ServiceContext(storage, level, networkManager, signalManager, {
267
267
  invitationConnectionDefaultParams: {
268
268
  controlHeartbeatInterval: 200
269
269
  },
@@ -370,12 +370,12 @@ var TestPeer = class {
370
370
  });
371
371
  }
372
372
  get dataSpaceManager() {
373
- return this._props.dataSpaceManager ??= new import_chunk_WMIDDIMJ.DataSpaceManager(this.spaceManager, this.metadataStore, this.keyring, this.identity, this.feedStore, this.echoHost, this.invitationsManager, this._opts.dataSpaceParams);
373
+ return this._props.dataSpaceManager ??= new import_chunk_4WZHXQZI.DataSpaceManager(this.spaceManager, this.metadataStore, this.keyring, this.identity, this.feedStore, this.echoHost, this.invitationsManager, this._opts.dataSpaceParams);
374
374
  }
375
375
  get invitationsManager() {
376
- return this._props.invitationsManager ??= new import_chunk_WMIDDIMJ.InvitationsManager(new import_chunk_WMIDDIMJ.InvitationsHandler(this.networkManager), (invitation) => {
376
+ return this._props.invitationsManager ??= new import_chunk_4WZHXQZI.InvitationsManager(new import_chunk_4WZHXQZI.InvitationsHandler(this.networkManager), (invitation) => {
377
377
  if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
378
- return new import_chunk_WMIDDIMJ.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
378
+ return new import_chunk_4WZHXQZI.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
379
379
  } else {
380
380
  throw new Error("not implemented");
381
381
  }
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics-collector.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/diagnostics/diagnostics-collector.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,cAAc,CAAC;AAG3D,OAAO,EAAE,KAAK,cAAc,EAAgC,MAAM,YAAY,CAAC;AAO/E,MAAM,WAAW,iCAAiC;IAChD,2BAA2B,IAAI,GAAG,CAAC;CACpC;AAED,MAAM,WAAW,kCAAkC;IACjD,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;CACd;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,eAAe,CAA6C;WAEvD,OAAO,CACzB,MAAM,GAAE,MAAM,GAAG,MAAM,EAAkB,EACzC,QAAQ,GAAE,sBAAsB,GAAG,IAAkC,EACrE,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,GAAG,CAAC;CA2BhB"}
1
+ {"version":3,"file":"diagnostics-collector.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/diagnostics/diagnostics-collector.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAkC,MAAM,uBAAuB,CAAC;AACpG,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,cAAc,CAAC;AAG3D,OAAO,EAAE,KAAK,cAAc,EAAgC,MAAM,YAAY,CAAC;AAM/E,MAAM,WAAW,iCAAiC;IAChD,2BAA2B,IAAI,GAAG,CAAC;CACpC;AAED,MAAM,WAAW,kCAAkC;IACjD,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;CACd;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,eAAe,CAA6C;WAEvD,OAAO,CACzB,MAAM,GAAE,MAAM,GAAG,MAAM,EAAkB,EACzC,QAAQ,GAAE,sBAAsB,GAAG,IAAkC,EACrE,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,GAAG,CAAC;CA2BhB"}
@@ -2,5 +2,4 @@ export * from './client-rpc-server';
2
2
  export * from './service-context';
3
3
  export * from './service-host';
4
4
  export * from './service-registry';
5
- export { ClientServicesProviderResource } from './util';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/services/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,8BAA8B,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/services/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
@@ -1,4 +1,3 @@
1
- export declare const ClientServicesProviderResource: unique symbol;
2
1
  export type JsonStringifyOptions = {
3
2
  truncate?: boolean;
4
3
  humanize?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/services/util.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,8BAA8B,eAA6C,CAAC;AAIzF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,CAAC,WAAW,oBAAoB,QAMtE,CAAC"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/services/util.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,CAAC,WAAW,oBAAoB,QAMtE,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const DXOS_VERSION = "0.6.3-next.4424131";
1
+ export declare const DXOS_VERSION = "0.6.3-staging.75e3813";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,uBAAuB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-services",
3
- "version": "0.6.3-next.4424131",
3
+ "version": "0.6.3-staging.75e3813",
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/client-protocol": "0.6.3-next.4424131",
27
- "@dxos/codec-protobuf": "0.6.3-next.4424131",
28
- "@dxos/async": "0.6.3-next.4424131",
29
- "@dxos/context": "0.6.3-next.4424131",
30
- "@dxos/config": "0.6.3-next.4424131",
31
- "@dxos/crypto": "0.6.3-next.4424131",
32
- "@dxos/credentials": "0.6.3-next.4424131",
33
- "@dxos/debug": "0.6.3-next.4424131",
34
- "@dxos/echo-pipeline": "0.6.3-next.4424131",
35
- "@dxos/echo-schema": "0.6.3-next.4424131",
36
- "@dxos/echo-db": "0.6.3-next.4424131",
37
- "@dxos/automerge": "0.6.3-next.4424131",
38
- "@dxos/echo-protocol": "0.6.3-next.4424131",
39
- "@dxos/feed-store": "0.6.3-next.4424131",
40
- "@dxos/keyring": "0.6.3-next.4424131",
41
- "@dxos/invariant": "0.6.3-next.4424131",
42
- "@dxos/keys": "0.6.3-next.4424131",
43
- "@dxos/lock-file": "0.6.3-next.4424131",
44
- "@dxos/kv-store": "0.6.3-next.4424131",
45
- "@dxos/log": "0.6.3-next.4424131",
46
- "@dxos/messaging": "0.6.3-next.4424131",
47
- "@dxos/network-manager": "0.6.3-next.4424131",
48
- "@dxos/protocols": "0.6.3-next.4424131",
49
- "@dxos/rpc": "0.6.3-next.4424131",
50
- "@dxos/node-std": "0.6.3-next.4424131",
51
- "@dxos/indexing": "0.6.3-next.4424131",
52
- "@dxos/random-access-storage": "0.6.3-next.4424131",
53
- "@dxos/teleport-extension-gossip": "0.6.3-next.4424131",
54
- "@dxos/teleport-extension-object-sync": "0.6.3-next.4424131",
55
- "@dxos/timeframe": "0.6.3-next.4424131",
56
- "@dxos/teleport": "0.6.3-next.4424131",
57
- "@dxos/tracing": "0.6.3-next.4424131",
58
- "@dxos/websocket-rpc": "0.6.3-next.4424131",
59
- "@dxos/util": "0.6.3-next.4424131"
26
+ "@dxos/async": "0.6.3-staging.75e3813",
27
+ "@dxos/automerge": "0.6.3-staging.75e3813",
28
+ "@dxos/client-protocol": "0.6.3-staging.75e3813",
29
+ "@dxos/codec-protobuf": "0.6.3-staging.75e3813",
30
+ "@dxos/config": "0.6.3-staging.75e3813",
31
+ "@dxos/context": "0.6.3-staging.75e3813",
32
+ "@dxos/crypto": "0.6.3-staging.75e3813",
33
+ "@dxos/debug": "0.6.3-staging.75e3813",
34
+ "@dxos/credentials": "0.6.3-staging.75e3813",
35
+ "@dxos/echo-db": "0.6.3-staging.75e3813",
36
+ "@dxos/echo-protocol": "0.6.3-staging.75e3813",
37
+ "@dxos/echo-schema": "0.6.3-staging.75e3813",
38
+ "@dxos/echo-pipeline": "0.6.3-staging.75e3813",
39
+ "@dxos/feed-store": "0.6.3-staging.75e3813",
40
+ "@dxos/indexing": "0.6.3-staging.75e3813",
41
+ "@dxos/keys": "0.6.3-staging.75e3813",
42
+ "@dxos/keyring": "0.6.3-staging.75e3813",
43
+ "@dxos/invariant": "0.6.3-staging.75e3813",
44
+ "@dxos/kv-store": "0.6.3-staging.75e3813",
45
+ "@dxos/lock-file": "0.6.3-staging.75e3813",
46
+ "@dxos/messaging": "0.6.3-staging.75e3813",
47
+ "@dxos/log": "0.6.3-staging.75e3813",
48
+ "@dxos/node-std": "0.6.3-staging.75e3813",
49
+ "@dxos/network-manager": "0.6.3-staging.75e3813",
50
+ "@dxos/protocols": "0.6.3-staging.75e3813",
51
+ "@dxos/rpc": "0.6.3-staging.75e3813",
52
+ "@dxos/random-access-storage": "0.6.3-staging.75e3813",
53
+ "@dxos/teleport": "0.6.3-staging.75e3813",
54
+ "@dxos/teleport-extension-gossip": "0.6.3-staging.75e3813",
55
+ "@dxos/teleport-extension-object-sync": "0.6.3-staging.75e3813",
56
+ "@dxos/tracing": "0.6.3-staging.75e3813",
57
+ "@dxos/timeframe": "0.6.3-staging.75e3813",
58
+ "@dxos/websocket-rpc": "0.6.3-staging.75e3813",
59
+ "@dxos/util": "0.6.3-staging.75e3813"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/platform": "^1.3.4",
63
63
  "@types/readable-stream": "^2.3.9",
64
- "@dxos/signal": "0.6.3-next.4424131"
64
+ "@dxos/signal": "0.6.3-staging.75e3813"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"
@@ -2,14 +2,13 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { type ClientServicesProvider } from '@dxos/client-protocol';
5
+ import { type ClientServicesProvider, ClientServicesProviderResource } from '@dxos/client-protocol';
6
6
  import { type Config, ConfigResource } from '@dxos/config';
7
7
  import { GetDiagnosticsRequest } from '@dxos/protocols/proto/dxos/client/services';
8
8
  import { TRACE_PROCESSOR } from '@dxos/tracing';
9
9
  import { type JsonKeyOptions, jsonKeyReplacer, nonNullable } from '@dxos/util';
10
10
 
11
11
  import { createCollectDiagnosticsBroadcastSender } from './diagnostics-broadcast';
12
- import { ClientServicesProviderResource } from '../services';
13
12
 
14
13
  const GET_DIAGNOSTICS_RPC_TIMEOUT = 10_000;
15
14
 
@@ -6,4 +6,3 @@ export * from './client-rpc-server';
6
6
  export * from './service-context';
7
7
  export * from './service-host';
8
8
  export * from './service-registry';
9
- export { ClientServicesProviderResource } from './util';
@@ -5,8 +5,6 @@
5
5
  import { PublicKey } from '@dxos/keys';
6
6
  import { humanize } from '@dxos/util';
7
7
 
8
- export const ClientServicesProviderResource = Symbol.for('dxos.resource.ClientServices');
9
-
10
8
  // TODO(burdon): Move to util.
11
9
 
12
10
  export type JsonStringifyOptions = {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DXOS_VERSION = "0.6.3-next.4424131";
1
+ export const DXOS_VERSION = "0.6.3-staging.75e3813";