@dxos/client-services 0.8.2-main.12df754 → 0.8.2-main.36232bc

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.
@@ -32,7 +32,7 @@ __export(testing_exports, {
32
32
  sanitizeInvitation: () => sanitizeInvitation
33
33
  });
34
34
  module.exports = __toCommonJS(testing_exports);
35
- var import_chunk_BAW7EMSB = require("../chunk-BAW7EMSB.cjs");
35
+ var import_chunk_IWLGZ3RI = require("../chunk-IWLGZ3RI.cjs");
36
36
  var import_credentials = require("@dxos/credentials");
37
37
  var import_keys = require("@dxos/keys");
38
38
  var import_async = require("@dxos/async");
@@ -235,7 +235,7 @@ var createInvitation = async (host, options) => {
235
235
  authMethod: import_services.Invitation.AuthMethod.NONE,
236
236
  ...options ?? {}
237
237
  };
238
- if (host instanceof import_chunk_BAW7EMSB.ServiceContext) {
238
+ if (host instanceof import_chunk_IWLGZ3RI.ServiceContext) {
239
239
  return host.invitationsManager.createInvitation({
240
240
  kind: import_services.Invitation.Kind.SPACE,
241
241
  ...options
@@ -245,7 +245,7 @@ var createInvitation = async (host, options) => {
245
245
  };
246
246
  var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
247
247
  invitation = sanitizeInvitation(invitation);
248
- if (guest instanceof import_chunk_BAW7EMSB.ServiceContext) {
248
+ if (guest instanceof import_chunk_IWLGZ3RI.ServiceContext) {
249
249
  return guest.invitationsManager.acceptInvitation({
250
250
  invitation,
251
251
  deviceProfile: guestDeviceProfile
@@ -255,7 +255,7 @@ var acceptInvitation = (guest, invitation, guestDeviceProfile) => {
255
255
  };
256
256
  var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/test-builder.ts";
257
257
  var createServiceHost = (config, signalManagerContext) => {
258
- return new import_chunk_BAW7EMSB.ClientServicesHost({
258
+ return new import_chunk_IWLGZ3RI.ClientServicesHost({
259
259
  config,
260
260
  signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
261
261
  transportFactory: import_network_manager.MemoryTransportFactory
@@ -274,7 +274,7 @@ var createServiceContext = async ({ signalManagerFactory = async () => {
274
274
  });
275
275
  const level = (0, import_testing.createTestLevel)();
276
276
  await level.open();
277
- return new import_chunk_BAW7EMSB.ServiceContext(storage, level, networkManager, signalManager, void 0, void 0, {
277
+ return new import_chunk_IWLGZ3RI.ServiceContext(storage, level, networkManager, signalManager, void 0, void 0, {
278
278
  invitationConnectionDefaultParams: {
279
279
  teleport: {
280
280
  controlHeartbeatInterval: 200
@@ -385,7 +385,7 @@ var TestPeer = class {
385
385
  return this._props.meshEchoReplicator ??= new import_echo_pipeline.MeshEchoReplicator();
386
386
  }
387
387
  get dataSpaceManager() {
388
- return this._props.dataSpaceManager ??= new import_chunk_BAW7EMSB.DataSpaceManager({
388
+ return this._props.dataSpaceManager ??= new import_chunk_IWLGZ3RI.DataSpaceManager({
389
389
  spaceManager: this.spaceManager,
390
390
  metadataStore: this.metadataStore,
391
391
  keyring: this.keyring,
@@ -400,9 +400,9 @@ var TestPeer = class {
400
400
  });
401
401
  }
402
402
  get invitationsManager() {
403
- return this._props.invitationsManager ??= new import_chunk_BAW7EMSB.InvitationsManager(new import_chunk_BAW7EMSB.InvitationsHandler(this.networkManager), (invitation) => {
403
+ return this._props.invitationsManager ??= new import_chunk_IWLGZ3RI.InvitationsManager(new import_chunk_IWLGZ3RI.InvitationsHandler(this.networkManager), (invitation) => {
404
404
  if (invitation.kind === import_services2.Invitation.Kind.SPACE) {
405
- return new import_chunk_BAW7EMSB.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
405
+ return new import_chunk_IWLGZ3RI.SpaceInvitationProtocol(this.dataSpaceManager, this.identity, this.keyring, invitation.spaceKey);
406
406
  } else {
407
407
  throw new Error("not implemented");
408
408
  }
@@ -397,7 +397,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
397
397
  import { TRACE_PROCESSOR } from "@dxos/tracing";
398
398
 
399
399
  // packages/sdk/client-services/src/version.ts
400
- var DXOS_VERSION = "0.8.2-main.12df754";
400
+ var DXOS_VERSION = "0.8.2-main.36232bc";
401
401
 
402
402
  // packages/sdk/client-services/src/packlets/services/platform.ts
403
403
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -1864,7 +1864,7 @@ import { Context as Context4, LifecycleState, Resource as Resource4, cancelWithC
1864
1864
  import { createAdmissionCredentials, getCredentialAssertion as getCredentialAssertion2 } from "@dxos/credentials";
1865
1865
  import { DatabaseRoot, findInlineObjectOfType, AuthStatus, CredentialServerExtension } from "@dxos/echo-pipeline";
1866
1866
  import { SpaceDocVersion, createIdFromSpaceKey, encodeReference } from "@dxos/echo-protocol";
1867
- import { createObjectId, getTypeReference } from "@dxos/echo-schema";
1867
+ import { ObjectId, getTypeReference } from "@dxos/echo-schema";
1868
1868
  import { writeMessages } from "@dxos/feed-store";
1869
1869
  import { assertArgument, assertState, failedInvariant, invariant as invariant5 } from "@dxos/invariant";
1870
1870
  import { PublicKey as PublicKey5 } from "@dxos/keys";
@@ -2238,7 +2238,7 @@ var DataSpaceManager = class extends Resource4 {
2238
2238
  keys: []
2239
2239
  }
2240
2240
  };
2241
- const propertiesId = createObjectId();
2241
+ const propertiesId = ObjectId.random();
2242
2242
  document.change((doc) => {
2243
2243
  setDeep(doc, [
2244
2244
  "objects",
@@ -9369,4 +9369,4 @@ export {
9369
9369
  importProfileData,
9370
9370
  ClientServicesHost
9371
9371
  };
9372
- //# sourceMappingURL=chunk-NDJKR4OF.mjs.map
9372
+ //# sourceMappingURL=chunk-BDTPPIND.mjs.map