@dxos/client-services 0.6.2-main.1f6dcc6 → 0.6.2-main.6f40bfd

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_ADUDYPOL = require("../../chunk-ADUDYPOL.cjs");
33
+ var import_chunk_TDPS63R3 = require("../../chunk-TDPS63R3.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_ADUDYPOL.ServiceContext) {
230
+ if (host instanceof import_chunk_TDPS63R3.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_ADUDYPOL.ServiceContext) {
240
+ if (guest instanceof import_chunk_TDPS63R3.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_ADUDYPOL.ClientServicesHost({
250
+ return new import_chunk_TDPS63R3.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_ADUDYPOL.ServiceContext(storage, level, networkManager, signalManager, {
266
+ return new import_chunk_TDPS63R3.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_ADUDYPOL.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_TDPS63R3.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_ADUDYPOL.InvitationsManager(new import_chunk_ADUDYPOL.InvitationsHandler(this.networkManager), (invitation) => {
376
+ return this._props.invitationsManager ??= new import_chunk_TDPS63R3.InvitationsManager(new import_chunk_TDPS63R3.InvitationsHandler(this.networkManager), (invitation) => {
377
377
  if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
378
- return new import_chunk_ADUDYPOL.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
378
+ return new import_chunk_TDPS63R3.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
379
379
  } else {
380
380
  throw new Error("not implemented");
381
381
  }
@@ -1,2 +1,2 @@
1
- export declare const DXOS_VERSION = "0.6.2-main.1f6dcc6";
1
+ export declare const DXOS_VERSION = "0.6.2-main.6f40bfd";
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.6.2-main.1f6dcc6",
3
+ "version": "0.6.2-main.6f40bfd",
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.6.2-main.1f6dcc6",
27
- "@dxos/client-protocol": "0.6.2-main.1f6dcc6",
28
- "@dxos/automerge": "0.6.2-main.1f6dcc6",
29
- "@dxos/codec-protobuf": "0.6.2-main.1f6dcc6",
30
- "@dxos/context": "0.6.2-main.1f6dcc6",
31
- "@dxos/credentials": "0.6.2-main.1f6dcc6",
32
- "@dxos/crypto": "0.6.2-main.1f6dcc6",
33
- "@dxos/config": "0.6.2-main.1f6dcc6",
34
- "@dxos/echo-pipeline": "0.6.2-main.1f6dcc6",
35
- "@dxos/debug": "0.6.2-main.1f6dcc6",
36
- "@dxos/echo-protocol": "0.6.2-main.1f6dcc6",
37
- "@dxos/echo-db": "0.6.2-main.1f6dcc6",
38
- "@dxos/echo-schema": "0.6.2-main.1f6dcc6",
39
- "@dxos/indexing": "0.6.2-main.1f6dcc6",
40
- "@dxos/feed-store": "0.6.2-main.1f6dcc6",
41
- "@dxos/invariant": "0.6.2-main.1f6dcc6",
42
- "@dxos/keys": "0.6.2-main.1f6dcc6",
43
- "@dxos/keyring": "0.6.2-main.1f6dcc6",
44
- "@dxos/kv-store": "0.6.2-main.1f6dcc6",
45
- "@dxos/lock-file": "0.6.2-main.1f6dcc6",
46
- "@dxos/messaging": "0.6.2-main.1f6dcc6",
47
- "@dxos/network-manager": "0.6.2-main.1f6dcc6",
48
- "@dxos/log": "0.6.2-main.1f6dcc6",
49
- "@dxos/protocols": "0.6.2-main.1f6dcc6",
50
- "@dxos/random-access-storage": "0.6.2-main.1f6dcc6",
51
- "@dxos/rpc": "0.6.2-main.1f6dcc6",
52
- "@dxos/node-std": "0.6.2-main.1f6dcc6",
53
- "@dxos/teleport": "0.6.2-main.1f6dcc6",
54
- "@dxos/teleport-extension-gossip": "0.6.2-main.1f6dcc6",
55
- "@dxos/tracing": "0.6.2-main.1f6dcc6",
56
- "@dxos/teleport-extension-object-sync": "0.6.2-main.1f6dcc6",
57
- "@dxos/util": "0.6.2-main.1f6dcc6",
58
- "@dxos/websocket-rpc": "0.6.2-main.1f6dcc6",
59
- "@dxos/timeframe": "0.6.2-main.1f6dcc6"
26
+ "@dxos/async": "0.6.2-main.6f40bfd",
27
+ "@dxos/client-protocol": "0.6.2-main.6f40bfd",
28
+ "@dxos/automerge": "0.6.2-main.6f40bfd",
29
+ "@dxos/config": "0.6.2-main.6f40bfd",
30
+ "@dxos/codec-protobuf": "0.6.2-main.6f40bfd",
31
+ "@dxos/credentials": "0.6.2-main.6f40bfd",
32
+ "@dxos/context": "0.6.2-main.6f40bfd",
33
+ "@dxos/crypto": "0.6.2-main.6f40bfd",
34
+ "@dxos/echo-db": "0.6.2-main.6f40bfd",
35
+ "@dxos/debug": "0.6.2-main.6f40bfd",
36
+ "@dxos/echo-pipeline": "0.6.2-main.6f40bfd",
37
+ "@dxos/echo-protocol": "0.6.2-main.6f40bfd",
38
+ "@dxos/feed-store": "0.6.2-main.6f40bfd",
39
+ "@dxos/invariant": "0.6.2-main.6f40bfd",
40
+ "@dxos/keyring": "0.6.2-main.6f40bfd",
41
+ "@dxos/echo-schema": "0.6.2-main.6f40bfd",
42
+ "@dxos/indexing": "0.6.2-main.6f40bfd",
43
+ "@dxos/keys": "0.6.2-main.6f40bfd",
44
+ "@dxos/kv-store": "0.6.2-main.6f40bfd",
45
+ "@dxos/lock-file": "0.6.2-main.6f40bfd",
46
+ "@dxos/log": "0.6.2-main.6f40bfd",
47
+ "@dxos/messaging": "0.6.2-main.6f40bfd",
48
+ "@dxos/node-std": "0.6.2-main.6f40bfd",
49
+ "@dxos/network-manager": "0.6.2-main.6f40bfd",
50
+ "@dxos/protocols": "0.6.2-main.6f40bfd",
51
+ "@dxos/rpc": "0.6.2-main.6f40bfd",
52
+ "@dxos/random-access-storage": "0.6.2-main.6f40bfd",
53
+ "@dxos/teleport": "0.6.2-main.6f40bfd",
54
+ "@dxos/teleport-extension-object-sync": "0.6.2-main.6f40bfd",
55
+ "@dxos/tracing": "0.6.2-main.6f40bfd",
56
+ "@dxos/util": "0.6.2-main.6f40bfd",
57
+ "@dxos/timeframe": "0.6.2-main.6f40bfd",
58
+ "@dxos/teleport-extension-gossip": "0.6.2-main.6f40bfd",
59
+ "@dxos/websocket-rpc": "0.6.2-main.6f40bfd"
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.2-main.1f6dcc6"
64
+ "@dxos/signal": "0.6.2-main.6f40bfd"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"
@@ -6,36 +6,32 @@ import { MemorySignalManagerContext } from '@dxos/messaging';
6
6
  import { Invitation } from '@dxos/protocols/proto/dxos/client/services';
7
7
  import { describe, openAndClose, test } from '@dxos/test';
8
8
 
9
- import { createServiceContext } from '../testing';
10
- import { performInvitation } from '../testing/invitation-utils';
9
+ import { createServiceContext, performInvitation } from '../testing';
11
10
 
12
11
  describe('services/ServiceContext', () => {
13
12
  test('new space is synchronized on device invitations', async () => {
14
13
  const networkContext = new MemorySignalManagerContext();
15
- const device1 = await createServiceContext({ signalContext: networkContext });
14
+ const device1 = await createOpenServiceContext(networkContext);
16
15
  await device1.createIdentity();
17
16
 
18
- const device2 = await createServiceContext({ signalContext: networkContext });
17
+ const device2 = await createOpenServiceContext(networkContext);
19
18
  await Promise.all(performInvitation({ host: device1, guest: device2, options: { kind: Invitation.Kind.DEVICE } }));
20
19
 
21
20
  const space1 = await device1.dataSpaceManager!.createSpace();
22
21
  await device2.dataSpaceManager!.waitUntilSpaceReady(space1!.key);
23
22
  const space2 = await device2.dataSpaceManager!.spaces.get(space1.key);
24
23
  await space2!.inner.controlPipeline.state.waitUntilTimeframe(space1.inner.controlPipeline.state.timeframe);
25
- }).tag('flaky');
24
+ });
26
25
 
27
26
  test('joined space is synchronized on device invitations', async () => {
28
27
  const networkContext = new MemorySignalManagerContext();
29
- const device1 = await createServiceContext({ signalContext: networkContext });
30
- await openAndClose(device1.echoHost);
28
+ const device1 = await createOpenServiceContext(networkContext);
31
29
  await device1.createIdentity();
32
30
 
33
- const device2 = await createServiceContext({ signalContext: networkContext });
34
- await openAndClose(device2.echoHost);
31
+ const device2 = await createOpenServiceContext(networkContext);
35
32
  await Promise.all(performInvitation({ host: device1, guest: device2, options: { kind: Invitation.Kind.DEVICE } }));
36
33
 
37
- const identity2 = await createServiceContext({ signalContext: networkContext });
38
- await openAndClose(identity2.echoHost);
34
+ const identity2 = await createOpenServiceContext(networkContext);
39
35
  await identity2.createIdentity();
40
36
  const space1 = await identity2.dataSpaceManager!.createSpace();
41
37
  await Promise.all(
@@ -50,4 +46,10 @@ describe('services/ServiceContext', () => {
50
46
  const space2 = await device2.dataSpaceManager!.spaces.get(space1.key);
51
47
  await space2!.inner.controlPipeline.state.waitUntilTimeframe(space1.inner.controlPipeline.state.timeframe);
52
48
  });
49
+
50
+ const createOpenServiceContext = async (networkContext: MemorySignalManagerContext) => {
51
+ const serviceContext = await createServiceContext({ signalContext: networkContext });
52
+ await openAndClose(serviceContext);
53
+ return serviceContext;
54
+ };
53
55
  });
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DXOS_VERSION = "0.6.2-main.1f6dcc6";
1
+ export const DXOS_VERSION = "0.6.2-main.6f40bfd";