@dxos/client-services 0.8.3 → 0.8.4-main.f9ba587

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.
@@ -1,13 +1,13 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
 
3
- // packages/sdk/client-services/src/packlets/devtools/feeds.ts
3
+ // src/packlets/devtools/feeds.ts
4
4
  import { SubscriptionList } from "@dxos/async";
5
5
  import { Stream } from "@dxos/codec-protobuf/stream";
6
6
  import { FeedIterator } from "@dxos/feed-store";
7
7
  import { PublicKey } from "@dxos/keys";
8
8
  import { log } from "@dxos/log";
9
9
  import { ComplexMap } from "@dxos/util";
10
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/feeds.ts";
10
+ var __dxlog_file = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/feeds.ts";
11
11
  var subscribeToFeeds = ({ feedStore, spaceManager }, { feedKeys }) => {
12
12
  return new Stream(({ next }) => {
13
13
  const subscriptions = new SubscriptionList();
@@ -112,11 +112,11 @@ var subscribeToFeedBlocks = ({ feedStore }, { feedKey, maxBlocks = 10 }) => {
112
112
  });
113
113
  };
114
114
 
115
- // packages/sdk/client-services/src/packlets/devtools/network.ts
115
+ // src/packlets/devtools/network.ts
116
116
  import { Stream as Stream2 } from "@dxos/codec-protobuf/stream";
117
117
  import { Context } from "@dxos/context";
118
118
  import { PublicKey as PublicKey2 } from "@dxos/keys";
119
- var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/network.ts";
119
+ var __dxlog_file2 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/network.ts";
120
120
  var subscribeToNetworkStatus = ({ signalManager }) => new Stream2(({ next, close }) => {
121
121
  const update = () => {
122
122
  try {
@@ -209,7 +209,7 @@ var getNetworkPeers = ({ networkManager }, request) => {
209
209
  };
210
210
  };
211
211
 
212
- // packages/sdk/client-services/src/packlets/devtools/spaces.ts
212
+ // src/packlets/devtools/spaces.ts
213
213
  import { Stream as Stream3 } from "@dxos/codec-protobuf/stream";
214
214
  var subscribeToSpaces = (context, { spaceKeys = [] }) => {
215
215
  return new Stream3(({ next }) => {
@@ -245,11 +245,11 @@ var subscribeToSpaces = (context, { spaceKeys = [] }) => {
245
245
  });
246
246
  };
247
247
 
248
- // packages/sdk/client-services/src/packlets/devtools/devtools.ts
248
+ // src/packlets/devtools/devtools.ts
249
249
  import { Event as AsyncEvent } from "@dxos/async";
250
250
  import { Stream as Stream6 } from "@dxos/codec-protobuf/stream";
251
251
 
252
- // packages/sdk/client-services/src/packlets/devtools/keys.ts
252
+ // src/packlets/devtools/keys.ts
253
253
  import { scheduleTask } from "@dxos/async";
254
254
  import { Stream as Stream4 } from "@dxos/codec-protobuf/stream";
255
255
  var subscribeToKeyringKeys = ({ keyring }) => new Stream4(({ next, ctx }) => {
@@ -262,7 +262,7 @@ var subscribeToKeyringKeys = ({ keyring }) => new Stream4(({ next, ctx }) => {
262
262
  scheduleTask(ctx, update);
263
263
  });
264
264
 
265
- // packages/sdk/client-services/src/packlets/devtools/metadata.ts
265
+ // src/packlets/devtools/metadata.ts
266
266
  import { Stream as Stream5 } from "@dxos/codec-protobuf/stream";
267
267
  var subscribeToMetadata = ({ context }) => new Stream5(({ next, ctx }) => {
268
268
  context.metadataStore.update.on(ctx, (data) => next({
@@ -273,7 +273,7 @@ var subscribeToMetadata = ({ context }) => new Stream5(({ next, ctx }) => {
273
273
  });
274
274
  });
275
275
 
276
- // packages/sdk/client-services/src/packlets/devtools/devtools.ts
276
+ // src/packlets/devtools/devtools.ts
277
277
  var DevtoolsHostEvents = class {
278
278
  constructor() {
279
279
  this.ready = new AsyncEvent();
@@ -387,7 +387,7 @@ var DevtoolsServiceImpl = class {
387
387
  }
388
388
  };
389
389
 
390
- // packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts
390
+ // src/packlets/diagnostics/diagnostics.ts
391
391
  import { asyncTimeout } from "@dxos/async";
392
392
  import { getFirstStreamValue } from "@dxos/codec-protobuf";
393
393
  import { createDidFromIdentityKey, credentialTypeFilter } from "@dxos/credentials";
@@ -396,10 +396,10 @@ import { STORAGE_VERSION } from "@dxos/protocols";
396
396
  import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
397
397
  import { TRACE_PROCESSOR } from "@dxos/tracing";
398
398
 
399
- // packages/sdk/client-services/src/version.ts
400
- var DXOS_VERSION = "0.8.3";
399
+ // src/version.ts
400
+ var DXOS_VERSION = "0.8.4-main.f9ba587";
401
401
 
402
- // packages/sdk/client-services/src/packlets/services/platform.ts
402
+ // src/packlets/services/platform.ts
403
403
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
404
404
  var getPlatform = () => {
405
405
  if (process.browser) {
@@ -429,8 +429,8 @@ var getPlatform = () => {
429
429
  }
430
430
  };
431
431
 
432
- // packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts
433
- var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
432
+ // src/packlets/diagnostics/diagnostics.ts
433
+ var __dxlog_file3 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
434
434
  var DEFAULT_TIMEOUT = 1e3;
435
435
  var createDiagnostics = async (clientServices, serviceContext, config) => {
436
436
  const diagnostics = {
@@ -551,7 +551,7 @@ var getStorageDiagnostics = async () => {
551
551
  }));
552
552
  };
553
553
 
554
- // packages/sdk/client-services/src/packlets/diagnostics/diagnostics-broadcast.ts
554
+ // src/packlets/diagnostics/diagnostics-broadcast.ts
555
555
  var createCollectDiagnosticsBroadcastSender = () => {
556
556
  return {
557
557
  broadcastDiagnosticsRequest: async () => void 0
@@ -566,7 +566,7 @@ var createCollectDiagnosticsBroadcastHandler = (_) => {
566
566
  };
567
567
  };
568
568
 
569
- // packages/sdk/client-services/src/packlets/diagnostics/diagnostics-collector.ts
569
+ // src/packlets/diagnostics/diagnostics-collector.ts
570
570
  import { ClientServicesProviderResource } from "@dxos/client-protocol";
571
571
  import { ConfigResource } from "@dxos/config";
572
572
  import { GetDiagnosticsRequest } from "@dxos/protocols/proto/dxos/client/services";
@@ -607,13 +607,13 @@ var findConfigs = () => {
607
607
  return configs.map((r) => r.instance.deref()).filter(isNonNullable);
608
608
  };
609
609
 
610
- // packages/sdk/client-services/src/packlets/identity/authenticator.ts
610
+ // src/packlets/identity/authenticator.ts
611
611
  import { Trigger } from "@dxos/async";
612
612
  import { Context as Context2 } from "@dxos/context";
613
613
  import { verifyCredential } from "@dxos/credentials";
614
614
  import { log as log2 } from "@dxos/log";
615
615
  import { schema } from "@dxos/protocols/proto";
616
- var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
616
+ var __dxlog_file4 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
617
617
  var Credential = schema.getCodecForType("dxos.halo.credentials.Credential");
618
618
  var createAuthProvider = (signer) => async (nonce) => {
619
619
  const credential = await signer.createCredential({
@@ -728,7 +728,7 @@ var TrustedKeySetAuthVerifier = class {
728
728
  }
729
729
  };
730
730
 
731
- // packages/sdk/client-services/src/packlets/spaces/edge-feed-replicator.ts
731
+ // src/packlets/spaces/edge-feed-replicator.ts
732
732
  import { decode as decodeCbor, encode as encodeCbor } from "cbor-x";
733
733
  import { Event, Mutex, scheduleMicroTask } from "@dxos/async";
734
734
  import { Context as Context3, Resource } from "@dxos/context";
@@ -812,7 +812,7 @@ function _ts_dispose_resources(env) {
812
812
  return next();
813
813
  })(env);
814
814
  }
815
- var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/edge-feed-replicator.ts";
815
+ var __dxlog_file5 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/edge-feed-replicator.ts";
816
816
  var EdgeFeedReplicator = class extends Resource {
817
817
  constructor({ messenger, spaceId }) {
818
818
  super();
@@ -1241,7 +1241,7 @@ var bufferizeBlock = (block) => ({
1241
1241
  signature: arrayToBuffer(block.signature)
1242
1242
  });
1243
1243
 
1244
- // packages/sdk/client-services/src/packlets/spaces/data-space.ts
1244
+ // src/packlets/spaces/data-space.ts
1245
1245
  import { save } from "@automerge/automerge";
1246
1246
  import { Event as Event7, Mutex as Mutex2, scheduleTask as scheduleTask4, sleep as sleep3, synchronized as synchronized2, trackLeaks as trackLeaks2 } from "@dxos/async";
1247
1247
  import { AUTH_TIMEOUT as AUTH_TIMEOUT2 } from "@dxos/client-protocol";
@@ -1259,7 +1259,7 @@ import { Timeframe as Timeframe4 } from "@dxos/timeframe";
1259
1259
  import { trace as trace5 } from "@dxos/tracing";
1260
1260
  import { CallbackCollection, ComplexSet as ComplexSet3 } from "@dxos/util";
1261
1261
 
1262
- // packages/sdk/client-services/src/packlets/spaces/automerge-space-state.ts
1262
+ // src/packlets/spaces/automerge-space-state.ts
1263
1263
  import { Event as Event2 } from "@dxos/async";
1264
1264
  import { Resource as Resource2 } from "@dxos/context";
1265
1265
  import { checkCredentialType } from "@dxos/credentials";
@@ -1299,10 +1299,10 @@ var AutomergeSpaceState = class extends Resource2 {
1299
1299
  }
1300
1300
  };
1301
1301
 
1302
- // packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts
1302
+ // src/packlets/spaces/epoch-migrations.ts
1303
1303
  import { invariant as invariant3 } from "@dxos/invariant";
1304
1304
  import { CreateEpochRequest } from "@dxos/protocols/proto/dxos/client/services";
1305
- var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
1305
+ var __dxlog_file6 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
1306
1306
  var LOAD_DOC_TIMEOUT = 1e4;
1307
1307
  var runEpochMigration = async (ctx, context) => {
1308
1308
  switch (context.migration) {
@@ -1352,7 +1352,7 @@ var runEpochMigration = async (ctx, context) => {
1352
1352
  return {};
1353
1353
  };
1354
1354
 
1355
- // packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts
1355
+ // src/packlets/spaces/notarization-plugin.ts
1356
1356
  import { DeferredTask, Event as Event3, scheduleTask as scheduleTask2, sleep, TimeoutError, Trigger as Trigger2, scheduleMicroTask as scheduleMicroTask2 } from "@dxos/async";
1357
1357
  import { rejectOnDispose, Resource as Resource3 } from "@dxos/context";
1358
1358
  import { verifyCredential as verifyCredential2 } from "@dxos/credentials";
@@ -1369,7 +1369,7 @@ function _ts_decorate2(decorators, target, key, desc) {
1369
1369
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1370
1370
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1371
1371
  }
1372
- var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
1372
+ var __dxlog_file7 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
1373
1373
  var DEFAULT_RETRY_TIMEOUT = 1e3;
1374
1374
  var DEFAULT_SUCCESS_DELAY = 1e3;
1375
1375
  var DEFAULT_NOTARIZE_TIMEOUT = 1e4;
@@ -1804,7 +1804,7 @@ var NotarizationTeleportExtension = class extends RpcExtension {
1804
1804
  }
1805
1805
  };
1806
1806
 
1807
- // packages/sdk/client-services/src/packlets/identity/identity.ts
1807
+ // src/packlets/identity/identity.ts
1808
1808
  import { Event as Event5 } from "@dxos/async";
1809
1809
  import { AUTH_TIMEOUT, LOAD_CONTROL_FEEDS_TIMEOUT } from "@dxos/client-protocol";
1810
1810
  import { DeviceStateMachine, createCredentialSignerWithKey, createCredentialSignerWithChain, ProfileStateMachine } from "@dxos/credentials";
@@ -1817,11 +1817,11 @@ import { Timeframe as Timeframe2 } from "@dxos/timeframe";
1817
1817
  import { trace as trace3 } from "@dxos/tracing";
1818
1818
  import { ComplexSet as ComplexSet2 } from "@dxos/util";
1819
1819
 
1820
- // packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts
1820
+ // src/packlets/identity/default-space-state-machine.ts
1821
1821
  import { getCredentialAssertion } from "@dxos/credentials";
1822
1822
  import { SpaceId } from "@dxos/keys";
1823
1823
  import { log as log5 } from "@dxos/log";
1824
- var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
1824
+ var __dxlog_file8 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
1825
1825
  var DefaultSpaceStateMachine = class {
1826
1826
  constructor(_params) {
1827
1827
  this._params = _params;
@@ -1863,7 +1863,7 @@ var DefaultSpaceStateMachine = class {
1863
1863
  }
1864
1864
  };
1865
1865
 
1866
- // packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
1866
+ // src/packlets/spaces/data-space-manager.ts
1867
1867
  import { interpretAsDocumentId } from "@automerge/automerge-repo";
1868
1868
  import { Event as Event4, synchronized, trackLeaks } from "@dxos/async";
1869
1869
  import { PropertiesType, TYPE_PROPERTIES } from "@dxos/client-protocol";
@@ -1884,7 +1884,7 @@ import { Gossip, Presence } from "@dxos/teleport-extension-gossip";
1884
1884
  import { trace } from "@dxos/tracing";
1885
1885
  import { ComplexMap as ComplexMap4, setDeep, deferFunction, forEachAsync } from "@dxos/util";
1886
1886
 
1887
- // packages/sdk/client-services/src/packlets/spaces/genesis.ts
1887
+ // src/packlets/spaces/genesis.ts
1888
1888
  import { createCredential } from "@dxos/credentials";
1889
1889
  import { failUndefined } from "@dxos/debug";
1890
1890
  import { AdmittedFeed, SpaceMember as SpaceMember2 } from "@dxos/protocols/proto/dxos/halo/credentials";
@@ -1954,14 +1954,14 @@ var spaceGenesis = async (keyring, signingContext, space, automergeRoot) => {
1954
1954
  return credentials;
1955
1955
  };
1956
1956
 
1957
- // packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
1957
+ // src/packlets/spaces/data-space-manager.ts
1958
1958
  function _ts_decorate3(decorators, target, key, desc) {
1959
1959
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1960
1960
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1961
1961
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1962
1962
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1963
1963
  }
1964
- var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
1964
+ var __dxlog_file9 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
1965
1965
  var PRESENCE_ANNOUNCE_INTERVAL = 1e4;
1966
1966
  var PRESENCE_OFFLINE_TIMEOUT = 2e4;
1967
1967
  var DEFAULT_SPACE_KEY = "__DEFAULT__";
@@ -2689,7 +2689,7 @@ DataSpaceManager = _ts_decorate3([
2689
2689
  trackLeaks("open", "close")
2690
2690
  ], DataSpaceManager);
2691
2691
 
2692
- // packages/sdk/client-services/src/packlets/spaces/spaces-service.ts
2692
+ // src/packlets/spaces/spaces-service.ts
2693
2693
  import { SubscriptionList as SubscriptionList2, UpdateScheduler, scheduleTask as scheduleTask3 } from "@dxos/async";
2694
2694
  import { Stream as Stream7 } from "@dxos/codec-protobuf/stream";
2695
2695
  import { createAdmissionCredentials as createAdmissionCredentials2, createDidFromIdentityKey as createDidFromIdentityKey2, getCredentialAssertion as getCredentialAssertion3 } from "@dxos/credentials";
@@ -2702,7 +2702,7 @@ import { encodeError, ApiError, AuthorizationError, IdentityNotInitializedError,
2702
2702
  import { SpaceMember as SpaceMember4, SpaceState as SpaceState2 } from "@dxos/protocols/proto/dxos/client/services";
2703
2703
  import { trace as trace2 } from "@dxos/tracing";
2704
2704
 
2705
- // packages/sdk/client-services/src/packlets/space-export/space-archive-writer.ts
2705
+ // src/packlets/space-export/space-archive-writer.ts
2706
2706
  import { Resource as Resource5 } from "@dxos/context";
2707
2707
  import { assertArgument as assertArgument2, assertState as assertState2 } from "@dxos/invariant";
2708
2708
  import { SpaceArchiveFileStructure, SpaceArchiveVersion } from "@dxos/protocols";
@@ -2758,11 +2758,11 @@ var SpaceArchiveWriter = class extends Resource5 {
2758
2758
  }
2759
2759
  };
2760
2760
 
2761
- // packages/sdk/client-services/src/packlets/space-export/space-archive-reader.ts
2761
+ // src/packlets/space-export/space-archive-reader.ts
2762
2762
  import { assertArgument as assertArgument3, failedInvariant as failedInvariant2, invariant as invariant6 } from "@dxos/invariant";
2763
2763
  import { log as log7 } from "@dxos/log";
2764
2764
  import { SpaceArchiveFileStructure as SpaceArchiveFileStructure2 } from "@dxos/protocols";
2765
- var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/space-export/space-archive-reader.ts";
2765
+ var __dxlog_file10 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/space-export/space-archive-reader.ts";
2766
2766
  var extractSpaceArchive = async (archive) => {
2767
2767
  const { Archive } = await import("@obsidize/tar-browserify");
2768
2768
  const { entries } = await Archive.extract(archive.contents);
@@ -2798,7 +2798,7 @@ var extractSpaceArchive = async (archive) => {
2798
2798
  };
2799
2799
  };
2800
2800
 
2801
- // packages/sdk/client-services/src/packlets/spaces/spaces-service.ts
2801
+ // src/packlets/spaces/spaces-service.ts
2802
2802
  function _ts_add_disposable_resource2(env, value, async) {
2803
2803
  if (value !== null && value !== void 0) {
2804
2804
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
@@ -2864,7 +2864,7 @@ function _ts_dispose_resources2(env) {
2864
2864
  return next();
2865
2865
  })(env);
2866
2866
  }
2867
- var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
2867
+ var __dxlog_file11 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
2868
2868
  var SpacesServiceImpl = class {
2869
2869
  constructor(_identityManager, _spaceManager, _getDataSpaceManager) {
2870
2870
  this._identityManager = _identityManager;
@@ -3251,14 +3251,14 @@ var SpacesServiceImpl = class {
3251
3251
  };
3252
3252
  var getChannelId = (channel) => `user-channel/${channel}`;
3253
3253
 
3254
- // packages/sdk/client-services/src/packlets/identity/identity.ts
3254
+ // src/packlets/identity/identity.ts
3255
3255
  function _ts_decorate4(decorators, target, key, desc) {
3256
3256
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3257
3257
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3258
3258
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3259
3259
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3260
3260
  }
3261
- var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
3261
+ var __dxlog_file12 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
3262
3262
  var Identity = class {
3263
3263
  constructor(params) {
3264
3264
  this._edgeFeedReplicator = void 0;
@@ -3475,7 +3475,7 @@ Identity = _ts_decorate4([
3475
3475
  trace3.resource()
3476
3476
  ], Identity);
3477
3477
 
3478
- // packages/sdk/client-services/src/packlets/identity/identity-manager.ts
3478
+ // src/packlets/identity/identity-manager.ts
3479
3479
  import platform from "platform";
3480
3480
  import { Event as Event6 } from "@dxos/async";
3481
3481
  import { Context as Context5 } from "@dxos/context";
@@ -3496,7 +3496,7 @@ function _ts_decorate5(decorators, target, key, desc) {
3496
3496
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3497
3497
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3498
3498
  }
3499
- var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
3499
+ var __dxlog_file13 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
3500
3500
  var DEVICE_PRESENCE_ANNOUNCE_INTERVAL = 1e4;
3501
3501
  var DEVICE_PRESENCE_OFFLINE_TIMEOUT = 2e4;
3502
3502
  var IdentityManager = class {
@@ -3956,7 +3956,7 @@ IdentityManager = _ts_decorate5([
3956
3956
  Trace2.resource()
3957
3957
  ], IdentityManager);
3958
3958
 
3959
- // packages/sdk/client-services/src/packlets/identity/identity-service.ts
3959
+ // src/packlets/identity/identity-service.ts
3960
3960
  import { Trigger as Trigger3, sleep as sleep2 } from "@dxos/async";
3961
3961
  import { Stream as Stream8 } from "@dxos/codec-protobuf/stream";
3962
3962
  import { Resource as Resource6 } from "@dxos/context";
@@ -3965,7 +3965,7 @@ import { invariant as invariant10 } from "@dxos/invariant";
3965
3965
  import { log as log11 } from "@dxos/log";
3966
3966
  import { SpaceState as SpaceState3 } from "@dxos/protocols/proto/dxos/client/services";
3967
3967
  import { safeAwaitAll } from "@dxos/util";
3968
- var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
3968
+ var __dxlog_file14 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
3969
3969
  var DEFAULT_SPACE_SEARCH_TIMEOUT = 1e4;
3970
3970
  var IdentityServiceImpl = class extends Resource6 {
3971
3971
  constructor(_identityManager, _recoveryManager, _keyring, _dataSpaceManagerProvider, _createIdentity, _onProfileUpdate) {
@@ -4147,7 +4147,7 @@ var IdentityServiceImpl = class extends Resource6 {
4147
4147
  }
4148
4148
  };
4149
4149
 
4150
- // packages/sdk/client-services/src/packlets/spaces/data-space.ts
4150
+ // src/packlets/spaces/data-space.ts
4151
4151
  function _ts_decorate6(decorators, target, key, desc) {
4152
4152
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4153
4153
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -4219,7 +4219,7 @@ function _ts_dispose_resources3(env) {
4219
4219
  return next();
4220
4220
  })(env);
4221
4221
  }
4222
- var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
4222
+ var __dxlog_file15 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
4223
4223
  var DataSpace = class {
4224
4224
  constructor(params) {
4225
4225
  this._ctx = new Context6(void 0, {
@@ -4818,12 +4818,12 @@ DataSpace = _ts_decorate6([
4818
4818
  trace5.resource()
4819
4819
  ], DataSpace);
4820
4820
 
4821
- // packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts
4821
+ // src/packlets/invitations/device-invitation-protocol.ts
4822
4822
  import { getCredentialAssertion as getCredentialAssertion4 } from "@dxos/credentials";
4823
4823
  import { invariant as invariant12 } from "@dxos/invariant";
4824
4824
  import { AlreadyJoinedError as AlreadyJoinedError2 } from "@dxos/protocols";
4825
4825
  import { Invitation as Invitation2 } from "@dxos/protocols/proto/dxos/client/services";
4826
- var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
4826
+ var __dxlog_file16 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
4827
4827
  var DeviceInvitationProtocol = class {
4828
4828
  constructor(_keyring, _getIdentity, _acceptIdentity) {
4829
4829
  this._keyring = _keyring;
@@ -4943,7 +4943,7 @@ var DeviceInvitationProtocol = class {
4943
4943
  }
4944
4944
  };
4945
4945
 
4946
- // packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts
4946
+ // src/packlets/invitations/invitations-handler.ts
4947
4947
  import { scheduleTask as scheduleTask7, TimeoutError as TimeoutError2 } from "@dxos/async";
4948
4948
  import { INVITATION_TIMEOUT, getExpirationTime } from "@dxos/client-protocol";
4949
4949
  import { ContextDisposedError as ContextDisposedError3 } from "@dxos/context";
@@ -4959,7 +4959,7 @@ import { InvitationOptions as InvitationOptions4 } from "@dxos/protocols/proto/d
4959
4959
  import { trace as _trace } from "@dxos/tracing";
4960
4960
  import { ComplexSet as ComplexSet5 } from "@dxos/util";
4961
4961
 
4962
- // packages/sdk/client-services/src/packlets/invitations/edge-invitation-handler.ts
4962
+ // src/packlets/invitations/edge-invitation-handler.ts
4963
4963
  import { scheduleMicroTask as scheduleMicroTask3, scheduleTask as scheduleTask5 } from "@dxos/async";
4964
4964
  import { sign } from "@dxos/crypto";
4965
4965
  import { invariant as invariant13 } from "@dxos/invariant";
@@ -4969,7 +4969,7 @@ import { EdgeAuthChallengeError, EdgeCallFailedError as EdgeCallFailedError2 } f
4969
4969
  import { schema as schema3 } from "@dxos/protocols/proto";
4970
4970
  import { Invitation as Invitation4 } from "@dxos/protocols/proto/dxos/client/services";
4971
4971
 
4972
- // packages/sdk/client-services/src/packlets/invitations/utils.ts
4972
+ // src/packlets/invitations/utils.ts
4973
4973
  import { cancelWithContext as cancelWithContext3, ContextDisposedError as ContextDisposedError2 } from "@dxos/context";
4974
4974
  import { Invitation as Invitation3 } from "@dxos/protocols/proto/dxos/client/services";
4975
4975
  var stateToString = (state) => {
@@ -4994,8 +4994,8 @@ var tryAcquireBeforeContextDisposed = async (ctx, mutex) => {
4994
4994
  })());
4995
4995
  };
4996
4996
 
4997
- // packages/sdk/client-services/src/packlets/invitations/edge-invitation-handler.ts
4998
- var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/edge-invitation-handler.ts";
4997
+ // src/packlets/invitations/edge-invitation-handler.ts
4998
+ var __dxlog_file17 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/edge-invitation-handler.ts";
4999
4999
  var MAX_RETRIES_PER_INVITATION = 5;
5000
5000
  var DEFAULT_REQUEST_RETRY_INTERVAL_MS = 3e3;
5001
5001
  var DEFAULT_REQUEST_RETRY_JITTER_MS = 500;
@@ -5150,7 +5150,7 @@ var EdgeInvitationHandler = class {
5150
5150
  }
5151
5151
  };
5152
5152
 
5153
- // packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts
5153
+ // src/packlets/invitations/invitation-guest-extenstion.ts
5154
5154
  import { Trigger as Trigger4 } from "@dxos/async";
5155
5155
  import { cancelWithContext as cancelWithContext4, Context as Context7 } from "@dxos/context";
5156
5156
  import { invariant as invariant14 } from "@dxos/invariant";
@@ -5159,7 +5159,7 @@ import { InvalidInvitationExtensionRoleError } from "@dxos/protocols";
5159
5159
  import { schema as schema4 } from "@dxos/protocols/proto";
5160
5160
  import { InvitationOptions } from "@dxos/protocols/proto/dxos/halo/invitations";
5161
5161
  import { RpcExtension as RpcExtension2 } from "@dxos/teleport";
5162
- var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
5162
+ var __dxlog_file18 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
5163
5163
  var OPTIONS_TIMEOUT = 1e4;
5164
5164
  var InvitationGuestExtension = class extends RpcExtension2 {
5165
5165
  constructor(_invitationFlowMutex, _callbacks) {
@@ -5278,7 +5278,7 @@ var InvitationGuestExtension = class extends RpcExtension2 {
5278
5278
  }
5279
5279
  };
5280
5280
 
5281
- // packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts
5281
+ // src/packlets/invitations/invitation-host-extension.ts
5282
5282
  import { Trigger as Trigger5, scheduleTask as scheduleTask6 } from "@dxos/async";
5283
5283
  import { cancelWithContext as cancelWithContext5, Context as Context8 } from "@dxos/context";
5284
5284
  import { randomBytes, verify } from "@dxos/crypto";
@@ -5290,7 +5290,7 @@ import { schema as schema5 } from "@dxos/protocols/proto";
5290
5290
  import { Invitation as Invitation5 } from "@dxos/protocols/proto/dxos/client/services";
5291
5291
  import { AuthenticationResponse, InvitationOptions as InvitationOptions2 } from "@dxos/protocols/proto/dxos/halo/invitations";
5292
5292
  import { RpcExtension as RpcExtension3 } from "@dxos/teleport";
5293
- var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
5293
+ var __dxlog_file19 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
5294
5294
  var OPTIONS_TIMEOUT2 = 1e4;
5295
5295
  var MAX_OTP_ATTEMPTS = 3;
5296
5296
  var InvitationHostExtension = class extends RpcExtension3 {
@@ -5610,11 +5610,11 @@ var InvitationHostExtension = class extends RpcExtension3 {
5610
5610
  };
5611
5611
  var isAuthenticationRequired = (invitation) => invitation.authMethod !== Invitation5.AuthMethod.NONE;
5612
5612
 
5613
- // packages/sdk/client-services/src/packlets/invitations/invitation-state.ts
5613
+ // src/packlets/invitations/invitation-state.ts
5614
5614
  import { Mutex as Mutex3 } from "@dxos/async";
5615
5615
  import { log as log16 } from "@dxos/log";
5616
5616
  import { Invitation as Invitation6 } from "@dxos/protocols/proto/dxos/client/services";
5617
- var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-state.ts";
5617
+ var __dxlog_file20 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-state.ts";
5618
5618
  var createGuardedInvitationState = (ctx, invitation, stream) => {
5619
5619
  const mutex = new Mutex3();
5620
5620
  let lastActiveLockHolder = null;
@@ -5706,13 +5706,13 @@ var isNonTerminalState = (currentState) => {
5706
5706
  ].includes(currentState);
5707
5707
  };
5708
5708
 
5709
- // packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts
5709
+ // src/packlets/invitations/invitation-topology.ts
5710
5710
  import { invariant as invariant16 } from "@dxos/invariant";
5711
5711
  import { PublicKey as PublicKey10 } from "@dxos/keys";
5712
5712
  import { log as log17 } from "@dxos/log";
5713
5713
  import { InvitationOptions as InvitationOptions3 } from "@dxos/protocols/proto/dxos/halo/invitations";
5714
5714
  import { ComplexSet as ComplexSet4 } from "@dxos/util";
5715
- var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
5715
+ var __dxlog_file21 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
5716
5716
  var InvitationTopology = class {
5717
5717
  constructor(_role) {
5718
5718
  this._role = _role;
@@ -5784,8 +5784,8 @@ var InvitationTopology = class {
5784
5784
  }
5785
5785
  };
5786
5786
 
5787
- // packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts
5788
- var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
5787
+ // src/packlets/invitations/invitations-handler.ts
5788
+ var __dxlog_file22 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
5789
5789
  var metrics = _trace.metrics;
5790
5790
  var MAX_DELEGATED_INVITATION_HOST_TRIES = 3;
5791
5791
  var InvitationsHandler = class {
@@ -6383,7 +6383,7 @@ var createAdmissionKeypair = () => {
6383
6383
  };
6384
6384
  };
6385
6385
 
6386
- // packages/sdk/client-services/src/packlets/invitations/invitations-service.ts
6386
+ // src/packlets/invitations/invitations-service.ts
6387
6387
  import { Stream as Stream9 } from "@dxos/codec-protobuf/stream";
6388
6388
  import { QueryInvitationsResponse } from "@dxos/protocols/proto/dxos/client/services";
6389
6389
  import { trace as trace8 } from "@dxos/tracing";
@@ -6484,7 +6484,7 @@ var InvitationsServiceImpl = class {
6484
6484
  }
6485
6485
  };
6486
6486
 
6487
- // packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts
6487
+ // src/packlets/invitations/space-invitation-protocol.ts
6488
6488
  import { createCancelDelegatedSpaceInvitationCredential, createDelegatedSpaceInvitationCredential, getCredentialAssertion as getCredentialAssertion5 } from "@dxos/credentials";
6489
6489
  import { writeMessages as writeMessages4 } from "@dxos/feed-store";
6490
6490
  import { invariant as invariant18 } from "@dxos/invariant";
@@ -6492,7 +6492,7 @@ import { log as log19 } from "@dxos/log";
6492
6492
  import { AlreadyJoinedError as AlreadyJoinedError3, AuthorizationError as AuthorizationError2, InvalidInvitationError as InvalidInvitationError2, SpaceNotFoundError as SpaceNotFoundError2 } from "@dxos/protocols";
6493
6493
  import { Invitation as Invitation8 } from "@dxos/protocols/proto/dxos/client/services";
6494
6494
  import { SpaceMember as SpaceMember6 } from "@dxos/protocols/proto/dxos/halo/credentials";
6495
- var __dxlog_file23 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
6495
+ var __dxlog_file23 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
6496
6496
  var SpaceInvitationProtocol = class {
6497
6497
  constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
6498
6498
  this._spaceManager = _spaceManager;
@@ -6766,7 +6766,7 @@ var SpaceInvitationProtocol = class {
6766
6766
  }
6767
6767
  };
6768
6768
 
6769
- // packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts
6769
+ // src/packlets/invitations/invitations-manager.ts
6770
6770
  import { Event as Event8, PushStream, TimeoutError as TimeoutError3, Trigger as Trigger6 } from "@dxos/async";
6771
6771
  import { AuthenticatingInvitation, AUTHENTICATION_CODE_LENGTH, CancellableInvitation, INVITATION_TIMEOUT as INVITATION_TIMEOUT2 } from "@dxos/client-protocol";
6772
6772
  import { Context as Context9 } from "@dxos/context";
@@ -6777,7 +6777,7 @@ import { PublicKey as PublicKey12 } from "@dxos/keys";
6777
6777
  import { log as log20 } from "@dxos/log";
6778
6778
  import { Invitation as Invitation9 } from "@dxos/protocols/proto/dxos/client/services";
6779
6779
  import { SpaceMember as SpaceMember7 } from "@dxos/protocols/proto/dxos/halo/credentials";
6780
- var __dxlog_file24 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
6780
+ var __dxlog_file24 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
6781
6781
  var InvitationsManager = class {
6782
6782
  constructor(_invitationsHandler, _getHandler, _metadataStore) {
6783
6783
  this._invitationsHandler = _invitationsHandler;
@@ -7138,7 +7138,7 @@ var InvitationsManager = class {
7138
7138
  }
7139
7139
  };
7140
7140
 
7141
- // packages/sdk/client-services/src/packlets/locks/node.ts
7141
+ // src/packlets/locks/node.ts
7142
7142
  import { invariant as invariant20 } from "@dxos/invariant";
7143
7143
  import { LockFile } from "@dxos/lock-file";
7144
7144
  import { log as log21, logInfo as logInfo3 } from "@dxos/log";
@@ -7148,7 +7148,7 @@ function _ts_decorate7(decorators, target, key, desc) {
7148
7148
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7149
7149
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7150
7150
  }
7151
- var __dxlog_file25 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
7151
+ var __dxlog_file25 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
7152
7152
  var Lock = class {
7153
7153
  constructor({ lockKey: lockPath, onAcquire, onRelease }) {
7154
7154
  this._lockPath = lockPath;
@@ -7193,7 +7193,7 @@ _ts_decorate7([
7193
7193
  ], Lock.prototype, "lockKey", null);
7194
7194
  var isLocked = (lockPath) => LockFile.isLocked(lockPath);
7195
7195
 
7196
- // packages/sdk/client-services/src/packlets/services/client-rpc-server.ts
7196
+ // src/packlets/services/client-rpc-server.ts
7197
7197
  import { Stream as Stream10 } from "@dxos/codec-protobuf";
7198
7198
  import { raise as raise2 } from "@dxos/debug";
7199
7199
  import { parseMethodName, RpcPeer } from "@dxos/rpc";
@@ -7270,7 +7270,7 @@ ClientRpcServer = _ts_decorate8([
7270
7270
  trace9.resource()
7271
7271
  ], ClientRpcServer);
7272
7272
 
7273
- // packages/sdk/client-services/src/packlets/agents/edge-agent-manager.ts
7273
+ // src/packlets/agents/edge-agent-manager.ts
7274
7274
  import { DeferredTask as DeferredTask2, Event as Event9, scheduleTask as scheduleTask8, synchronized as synchronized3 } from "@dxos/async";
7275
7275
  import { Resource as Resource7 } from "@dxos/context";
7276
7276
  import { invariant as invariant21 } from "@dxos/invariant";
@@ -7285,7 +7285,7 @@ function _ts_decorate9(decorators, target, key, desc) {
7285
7285
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
7286
7286
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7287
7287
  }
7288
- var __dxlog_file26 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/agents/edge-agent-manager.ts";
7288
+ var __dxlog_file26 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/agents/edge-agent-manager.ts";
7289
7289
  var AGENT_STATUS_QUERY_RETRY_INTERVAL = 5e3;
7290
7290
  var AGENT_STATUS_QUERY_RETRY_JITTER = 1e3;
7291
7291
  var AGENT_FEED_ADDED_CHECK_INTERVAL_MS = 3e3;
@@ -7506,7 +7506,7 @@ _ts_decorate9([
7506
7506
  synchronized3
7507
7507
  ], EdgeAgentManager.prototype, "createAgent", null);
7508
7508
 
7509
- // packages/sdk/client-services/src/packlets/agents/edge-agent-service.ts
7509
+ // src/packlets/agents/edge-agent-service.ts
7510
7510
  import { Stream as Stream11 } from "@dxos/codec-protobuf/stream";
7511
7511
  import { EdgeAgentStatus as EdgeAgentStatus2 } from "@dxos/protocols";
7512
7512
  import { QueryAgentStatusResponse, EdgeStatus as EdgeStatus2 } from "@dxos/protocols/proto/dxos/client/services";
@@ -7561,7 +7561,7 @@ var mapStatus = (agentStatus) => {
7561
7561
  }
7562
7562
  };
7563
7563
 
7564
- // packages/sdk/client-services/src/packlets/services/service-context.ts
7564
+ // src/packlets/services/service-context.ts
7565
7565
  import { Mutex as Mutex4, Trigger as Trigger7 } from "@dxos/async";
7566
7566
  import { Context as Context10, Resource as Resource8 } from "@dxos/context";
7567
7567
  import { getCredentialAssertion as getCredentialAssertion6 } from "@dxos/credentials";
@@ -7579,7 +7579,7 @@ import { BlobStore } from "@dxos/teleport-extension-object-sync";
7579
7579
  import { trace as Trace3 } from "@dxos/tracing";
7580
7580
  import { safeInstanceof } from "@dxos/util";
7581
7581
 
7582
- // packages/sdk/client-services/src/packlets/identity/identity-recovery-manager.ts
7582
+ // src/packlets/identity/identity-recovery-manager.ts
7583
7583
  import { generateSeedPhrase, keyPairFromSeedPhrase } from "@dxos/credentials";
7584
7584
  import { sign as sign3 } from "@dxos/crypto";
7585
7585
  import { invariant as invariant22 } from "@dxos/invariant";
@@ -7588,7 +7588,7 @@ import { log as log23 } from "@dxos/log";
7588
7588
  import { EdgeAuthChallengeError as EdgeAuthChallengeError2 } from "@dxos/protocols";
7589
7589
  import { schema as schema6 } from "@dxos/protocols/proto";
7590
7590
  import { Timeframe as Timeframe5 } from "@dxos/timeframe";
7591
- var __dxlog_file27 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-recovery-manager.ts";
7591
+ var __dxlog_file27 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-recovery-manager.ts";
7592
7592
  var EdgeIdentityRecoveryManager = class {
7593
7593
  constructor(_keyring, _edgeClient, _identityProvider, _acceptRecoveredIdentity) {
7594
7594
  this._keyring = _keyring;
@@ -7795,7 +7795,7 @@ var decodeCredential = (credentialBase64) => {
7795
7795
  return codec.decode(credentialBytes);
7796
7796
  };
7797
7797
 
7798
- // packages/sdk/client-services/src/packlets/services/service-context.ts
7798
+ // src/packlets/services/service-context.ts
7799
7799
  function _ts_decorate10(decorators, target, key, desc) {
7800
7800
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7801
7801
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7867,7 +7867,7 @@ function _ts_dispose_resources4(env) {
7867
7867
  return next();
7868
7868
  })(env);
7869
7869
  }
7870
- var __dxlog_file28 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
7870
+ var __dxlog_file28 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
7871
7871
  var ServiceContext = class extends Resource8 {
7872
7872
  constructor(storage, level, networkManager, signalManager, _edgeConnection, _edgeHttpClient, _runtimeParams, _edgeFeatures) {
7873
7873
  super(), this.storage = storage, this.level = level, this.networkManager = networkManager, this.signalManager = signalManager, this._edgeConnection = _edgeConnection, this._edgeHttpClient = _edgeHttpClient, this._runtimeParams = _runtimeParams, this._edgeFeatures = _edgeFeatures, this._edgeIdentityUpdateMutex = new Mutex4(), this.initialized = new Trigger7(), this._meshReplicator = void 0, this._echoEdgeReplicator = void 0, this._handlerFactories = /* @__PURE__ */ new Map(), this._instanceId = PublicKey15.random().toHex();
@@ -8237,7 +8237,7 @@ ServiceContext = _ts_decorate10([
8237
8237
  Trace3.resource()
8238
8238
  ], ServiceContext);
8239
8239
 
8240
- // packages/sdk/client-services/src/packlets/services/service-registry.ts
8240
+ // src/packlets/services/service-registry.ts
8241
8241
  var ServiceRegistry = class {
8242
8242
  // prettier-ignore
8243
8243
  constructor(_serviceBundle, _handlers = {}) {
@@ -8261,12 +8261,12 @@ var ServiceRegistry = class {
8261
8261
  }
8262
8262
  };
8263
8263
 
8264
- // packages/sdk/client-services/src/packlets/storage/storage.ts
8264
+ // src/packlets/storage/storage.ts
8265
8265
  import { InvalidConfigError } from "@dxos/protocols";
8266
8266
  import { Runtime as Runtime2 } from "@dxos/protocols/proto/dxos/config";
8267
8267
  import { createStorage, StorageType } from "@dxos/random-access-storage";
8268
8268
 
8269
- // packages/sdk/client-services/src/packlets/storage/util.ts
8269
+ // src/packlets/storage/util.ts
8270
8270
  import { DX_DATA } from "@dxos/client-protocol";
8271
8271
  import { Runtime } from "@dxos/protocols/proto/dxos/config";
8272
8272
  import { isNode as isNode2 } from "@dxos/util";
@@ -8279,7 +8279,7 @@ var isPersistent = (config) => {
8279
8279
  return config.dataStore !== void 0 && config.dataStore !== Runtime.Client.Storage.StorageDriver.RAM || persistent;
8280
8280
  };
8281
8281
 
8282
- // packages/sdk/client-services/src/packlets/storage/storage.ts
8282
+ // src/packlets/storage/storage.ts
8283
8283
  var StorageDriver = Runtime2.Client.Storage.StorageDriver;
8284
8284
  var createStorageObjects = (config) => {
8285
8285
  const { persistent = false, keyStore, dataStore } = config ?? {};
@@ -8323,7 +8323,7 @@ var toStorageType = (type) => {
8323
8323
  }
8324
8324
  };
8325
8325
 
8326
- // packages/sdk/client-services/src/packlets/storage/level.ts
8326
+ // src/packlets/storage/level.ts
8327
8327
  import path from "node:path";
8328
8328
  import { PublicKey as PublicKey16 } from "@dxos/keys";
8329
8329
  import { createLevel as createKV } from "@dxos/kv-store";
@@ -8335,13 +8335,13 @@ var createLevel = async (config) => {
8335
8335
  return level;
8336
8336
  };
8337
8337
 
8338
- // packages/sdk/client-services/src/packlets/storage/profile-archive.ts
8338
+ // src/packlets/storage/profile-archive.ts
8339
8339
  import { cbor } from "@automerge/automerge-repo";
8340
8340
  import { invariant as invariant24 } from "@dxos/invariant";
8341
8341
  import { log as log25 } from "@dxos/log";
8342
8342
  import { ProfileArchiveEntryType } from "@dxos/protocols";
8343
8343
  import { arrayToBuffer as arrayToBuffer2 } from "@dxos/util";
8344
- var __dxlog_file29 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/storage/profile-archive.ts";
8344
+ var __dxlog_file29 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/storage/profile-archive.ts";
8345
8345
  var encodeProfileArchive = (profile) => cbor.encode(profile);
8346
8346
  var decodeProfileArchive = (data) => cbor.decode(data);
8347
8347
  var exportProfileData = async ({ storage, level }) => {
@@ -8494,7 +8494,7 @@ var importProfileData = async ({ storage, level }, archive) => {
8494
8494
  await batch.write();
8495
8495
  };
8496
8496
 
8497
- // packages/sdk/client-services/src/packlets/services/service-host.ts
8497
+ // src/packlets/services/service-host.ts
8498
8498
  import { Event as Event11, synchronized as synchronized4 } from "@dxos/async";
8499
8499
  import { clientServiceBundle } from "@dxos/client-protocol";
8500
8500
  import { Context as Context11 } from "@dxos/context";
@@ -8509,12 +8509,12 @@ import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
8509
8509
  import { TRACE_PROCESSOR as TRACE_PROCESSOR3, trace as Trace4 } from "@dxos/tracing";
8510
8510
  import { WebsocketRpcClient } from "@dxos/websocket-rpc";
8511
8511
 
8512
- // packages/sdk/client-services/src/packlets/devices/devices-service.ts
8512
+ // src/packlets/devices/devices-service.ts
8513
8513
  import { SubscriptionList as SubscriptionList3 } from "@dxos/async";
8514
8514
  import { Stream as Stream12 } from "@dxos/codec-protobuf/stream";
8515
8515
  import { invariant as invariant25 } from "@dxos/invariant";
8516
8516
  import { Device as Device2, DeviceKind as DeviceKind2, EdgeStatus as EdgeStatus3 } from "@dxos/protocols/proto/dxos/client/services";
8517
- var __dxlog_file30 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
8517
+ var __dxlog_file30 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
8518
8518
  var DevicesServiceImpl = class {
8519
8519
  constructor(_identityManager, _edgeConnection) {
8520
8520
  this._identityManager = _identityManager;
@@ -8599,7 +8599,7 @@ var DevicesServiceImpl = class {
8599
8599
  }
8600
8600
  };
8601
8601
 
8602
- // packages/sdk/client-services/src/packlets/identity/contacts-service.ts
8602
+ // src/packlets/identity/contacts-service.ts
8603
8603
  import { scheduleTask as scheduleTask9, UpdateScheduler as UpdateScheduler2, SubscriptionList as SubscriptionList4 } from "@dxos/async";
8604
8604
  import { Stream as Stream13 } from "@dxos/codec-protobuf/stream";
8605
8605
  import { PublicKey as PublicKey17 } from "@dxos/keys";
@@ -8682,7 +8682,7 @@ var ContactsServiceImpl = class {
8682
8682
  }
8683
8683
  };
8684
8684
 
8685
- // packages/sdk/client-services/src/packlets/logging/logging-service.ts
8685
+ // src/packlets/logging/logging-service.ts
8686
8686
  import { Event as Event10 } from "@dxos/async";
8687
8687
  import { Stream as Stream14 } from "@dxos/codec-protobuf/stream";
8688
8688
  import { PublicKey as PublicKey18 } from "@dxos/keys";
@@ -8806,7 +8806,7 @@ var shouldLog = (entry2, request) => {
8806
8806
  };
8807
8807
  var LOG_PROCESSING = 0;
8808
8808
 
8809
- // packages/sdk/client-services/src/packlets/network/network-service.ts
8809
+ // src/packlets/network/network-service.ts
8810
8810
  import { Stream as Stream15 } from "@dxos/codec-protobuf/stream";
8811
8811
  var NetworkServiceImpl = class {
8812
8812
  constructor(networkManager, signalManager, edgeConnection) {
@@ -8866,7 +8866,7 @@ var NetworkServiceImpl = class {
8866
8866
  }
8867
8867
  };
8868
8868
 
8869
- // packages/sdk/client-services/src/packlets/system/system-service.ts
8869
+ // src/packlets/system/system-service.ts
8870
8870
  import { Stream as Stream16 } from "@dxos/codec-protobuf/stream";
8871
8871
  import { GetDiagnosticsRequest as GetDiagnosticsRequest2 } from "@dxos/protocols/proto/dxos/client/services";
8872
8872
  import { jsonKeyReplacer as jsonKeyReplacer2 } from "@dxos/util";
@@ -8923,14 +8923,14 @@ var SystemServiceImpl = class {
8923
8923
  }
8924
8924
  };
8925
8925
 
8926
- // packages/sdk/client-services/src/packlets/services/service-host.ts
8926
+ // src/packlets/services/service-host.ts
8927
8927
  function _ts_decorate11(decorators, target, key, desc) {
8928
8928
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8929
8929
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8930
8930
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
8931
8931
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8932
8932
  }
8933
- var __dxlog_file31 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
8933
+ var __dxlog_file31 = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
8934
8934
  var ClientServicesHost = class {
8935
8935
  constructor({
8936
8936
  config,
@@ -9068,12 +9068,12 @@ var ClientServicesHost = class {
9068
9068
  C: (f, a) => f(...a)
9069
9069
  });
9070
9070
  }
9071
- const edgeEndpoint = config?.get("runtime.services.edge.url");
9072
- if (edgeEndpoint) {
9071
+ const endpoint = config?.get("runtime.services.edge.url");
9072
+ if (endpoint) {
9073
9073
  this._edgeConnection = new EdgeClient(createStubEdgeIdentity(), {
9074
- socketEndpoint: edgeEndpoint
9074
+ socketEndpoint: endpoint
9075
9075
  });
9076
- this._edgeHttpClient = new EdgeHttpClient(edgeEndpoint);
9076
+ this._edgeHttpClient = new EdgeHttpClient(endpoint);
9077
9077
  }
9078
9078
  const { connectionLog = true, transportFactory = createRtcTransportFactory({
9079
9079
  iceServers: this._config?.get("runtime.services.ice")
@@ -9374,4 +9374,4 @@ export {
9374
9374
  importProfileData,
9375
9375
  ClientServicesHost
9376
9376
  };
9377
- //# sourceMappingURL=chunk-SKGQLRKS.mjs.map
9377
+ //# sourceMappingURL=chunk-TMEG7JOG.mjs.map