@dxos/client-services 0.4.9 → 0.4.10-main.7ab08e9
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/dist/lib/browser/{chunk-RQ33OGAG.mjs → chunk-LAJ3V2AH.mjs} +108 -38
- package/dist/lib/browser/{chunk-RQ33OGAG.mjs.map → chunk-LAJ3V2AH.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +48 -20
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-CBSM4HU4.cjs → chunk-ZVSJIOW6.cjs} +116 -46
- package/dist/lib/node/chunk-ZVSJIOW6.cjs.map +7 -0
- package/dist/lib/node/index.cjs +85 -57
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +6 -6
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/shared-worker-connection.d.ts +5 -5
- package/dist/types/src/packlets/vault/shared-worker-connection.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-runtime.d.ts +2 -0
- package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-session.d.ts +2 -0
- package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +34 -34
- package/src/packlets/services/service-host.ts +5 -2
- package/src/packlets/spaces/data-space.ts +51 -2
- package/src/packlets/vault/shared-worker-connection.ts +3 -8
- package/src/packlets/vault/worker-runtime.ts +27 -2
- package/src/packlets/vault/worker-session.ts +6 -0
- package/src/version.ts +1 -5
- package/dist/lib/node/chunk-CBSM4HU4.cjs.map +0 -7
|
@@ -2769,7 +2769,7 @@ var getPlatform = () => {
|
|
|
2769
2769
|
};
|
|
2770
2770
|
|
|
2771
2771
|
// packages/sdk/client-services/src/version.ts
|
|
2772
|
-
var DXOS_VERSION = "0.4.
|
|
2772
|
+
var DXOS_VERSION = "0.4.10-main.7ab08e9";
|
|
2773
2773
|
|
|
2774
2774
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
2775
2775
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -2885,7 +2885,9 @@ import { Event as Event6, asyncTimeout, scheduleTask as scheduleTask5, sleep as
|
|
|
2885
2885
|
import { AUTH_TIMEOUT as AUTH_TIMEOUT2 } from "@dxos/client-protocol";
|
|
2886
2886
|
import { cancelWithContext as cancelWithContext2, Context as Context8, ContextDisposedError } from "@dxos/context";
|
|
2887
2887
|
import { timed, warnAfterTimeout } from "@dxos/debug";
|
|
2888
|
+
import { TYPE_PROPERTIES } from "@dxos/echo-db";
|
|
2888
2889
|
import { createMappedFeedWriter } from "@dxos/echo-pipeline";
|
|
2890
|
+
import { AutomergeDocumentLoaderImpl } from "@dxos/echo-pipeline";
|
|
2889
2891
|
import { failedInvariant, invariant as invariant11 } from "@dxos/invariant";
|
|
2890
2892
|
import { PublicKey as PublicKey8 } from "@dxos/keys";
|
|
2891
2893
|
import { log as log9 } from "@dxos/log";
|
|
@@ -2894,7 +2896,7 @@ import { SpaceState, CreateEpochRequest } from "@dxos/protocols/proto/dxos/clien
|
|
|
2894
2896
|
import { AdmittedFeed as AdmittedFeed3 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
2895
2897
|
import { Timeframe as Timeframe2 } from "@dxos/timeframe";
|
|
2896
2898
|
import { trace as trace6 } from "@dxos/tracing";
|
|
2897
|
-
import { ComplexSet as ComplexSet3 } from "@dxos/util";
|
|
2899
|
+
import { ComplexSet as ComplexSet3, assignDeep } from "@dxos/util";
|
|
2898
2900
|
|
|
2899
2901
|
// packages/sdk/client-services/src/packlets/spaces/automerge-space-state.ts
|
|
2900
2902
|
import { Event as Event4 } from "@dxos/async";
|
|
@@ -3249,7 +3251,7 @@ var DataSpace = class {
|
|
|
3249
3251
|
state: SpaceState[this._state]
|
|
3250
3252
|
}, {
|
|
3251
3253
|
F: __dxlog_file12,
|
|
3252
|
-
L:
|
|
3254
|
+
L: 140,
|
|
3253
3255
|
S: this,
|
|
3254
3256
|
C: (f, a) => f(...a)
|
|
3255
3257
|
});
|
|
@@ -3299,7 +3301,7 @@ var DataSpace = class {
|
|
|
3299
3301
|
state: SpaceState[this._state]
|
|
3300
3302
|
}, {
|
|
3301
3303
|
F: __dxlog_file12,
|
|
3302
|
-
L:
|
|
3304
|
+
L: 198,
|
|
3303
3305
|
S: this,
|
|
3304
3306
|
C: (f, a) => f(...a)
|
|
3305
3307
|
});
|
|
@@ -3317,7 +3319,7 @@ var DataSpace = class {
|
|
|
3317
3319
|
state: SpaceState[this._state]
|
|
3318
3320
|
}, {
|
|
3319
3321
|
F: __dxlog_file12,
|
|
3320
|
-
L:
|
|
3322
|
+
L: 212,
|
|
3321
3323
|
S: this,
|
|
3322
3324
|
C: (f, a) => f(...a)
|
|
3323
3325
|
});
|
|
@@ -3349,7 +3351,7 @@ var DataSpace = class {
|
|
|
3349
3351
|
if (err instanceof CancelledError || err instanceof ContextDisposedError) {
|
|
3350
3352
|
log9("data pipeline initialization cancelled", err, {
|
|
3351
3353
|
F: __dxlog_file12,
|
|
3352
|
-
L:
|
|
3354
|
+
L: 245,
|
|
3353
3355
|
S: this,
|
|
3354
3356
|
C: (f, a) => f(...a)
|
|
3355
3357
|
});
|
|
@@ -3357,7 +3359,7 @@ var DataSpace = class {
|
|
|
3357
3359
|
}
|
|
3358
3360
|
log9.error("Error initializing data pipeline", err, {
|
|
3359
3361
|
F: __dxlog_file12,
|
|
3360
|
-
L:
|
|
3362
|
+
L: 249,
|
|
3361
3363
|
S: this,
|
|
3362
3364
|
C: (f, a) => f(...a)
|
|
3363
3365
|
});
|
|
@@ -3366,7 +3368,7 @@ var DataSpace = class {
|
|
|
3366
3368
|
state: SpaceState[this._state]
|
|
3367
3369
|
}, {
|
|
3368
3370
|
F: __dxlog_file12,
|
|
3369
|
-
L:
|
|
3371
|
+
L: 251,
|
|
3370
3372
|
S: this,
|
|
3371
3373
|
C: (f, a) => f(...a)
|
|
3372
3374
|
});
|
|
@@ -3386,7 +3388,7 @@ var DataSpace = class {
|
|
|
3386
3388
|
state: SpaceState[this._state]
|
|
3387
3389
|
}, {
|
|
3388
3390
|
F: __dxlog_file12,
|
|
3389
|
-
L:
|
|
3391
|
+
L: 267,
|
|
3390
3392
|
S: this,
|
|
3391
3393
|
C: (f, a) => f(...a)
|
|
3392
3394
|
});
|
|
@@ -3396,7 +3398,7 @@ var DataSpace = class {
|
|
|
3396
3398
|
await cancelWithContext2(this._ctx, this.automergeSpaceState.ensureEpochInitialized());
|
|
3397
3399
|
log9("data pipeline ready", void 0, {
|
|
3398
3400
|
F: __dxlog_file12,
|
|
3399
|
-
L:
|
|
3401
|
+
L: 279,
|
|
3400
3402
|
S: this,
|
|
3401
3403
|
C: (f, a) => f(...a)
|
|
3402
3404
|
});
|
|
@@ -3406,7 +3408,7 @@ var DataSpace = class {
|
|
|
3406
3408
|
state: SpaceState[this._state]
|
|
3407
3409
|
}, {
|
|
3408
3410
|
F: __dxlog_file12,
|
|
3409
|
-
L:
|
|
3411
|
+
L: 283,
|
|
3410
3412
|
S: this,
|
|
3411
3413
|
C: (f, a) => f(...a)
|
|
3412
3414
|
});
|
|
@@ -3422,7 +3424,7 @@ var DataSpace = class {
|
|
|
3422
3424
|
await this._createWritableFeeds();
|
|
3423
3425
|
log9("writable feeds created", void 0, {
|
|
3424
3426
|
F: __dxlog_file12,
|
|
3425
|
-
L:
|
|
3427
|
+
L: 299,
|
|
3426
3428
|
S: this,
|
|
3427
3429
|
C: (f, a) => f(...a)
|
|
3428
3430
|
});
|
|
@@ -3485,7 +3487,7 @@ var DataSpace = class {
|
|
|
3485
3487
|
rootUrl
|
|
3486
3488
|
}, {
|
|
3487
3489
|
F: __dxlog_file12,
|
|
3488
|
-
L:
|
|
3490
|
+
L: 365,
|
|
3489
3491
|
S: this,
|
|
3490
3492
|
C: (f, a) => f(...a)
|
|
3491
3493
|
});
|
|
@@ -3517,7 +3519,7 @@ var DataSpace = class {
|
|
|
3517
3519
|
err
|
|
3518
3520
|
}, {
|
|
3519
3521
|
F: __dxlog_file12,
|
|
3520
|
-
L:
|
|
3522
|
+
L: 388,
|
|
3521
3523
|
S: this,
|
|
3522
3524
|
C: (f, a) => f(...a)
|
|
3523
3525
|
});
|
|
@@ -3572,13 +3574,73 @@ var DataSpace = class {
|
|
|
3572
3574
|
const newRoot = this._automergeHost.repo.create(rootHandle.docSync());
|
|
3573
3575
|
invariant11(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
3574
3576
|
F: __dxlog_file12,
|
|
3575
|
-
L:
|
|
3577
|
+
L: 438,
|
|
3578
|
+
S: this,
|
|
3579
|
+
A: [
|
|
3580
|
+
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
3581
|
+
""
|
|
3582
|
+
]
|
|
3583
|
+
});
|
|
3584
|
+
epoch = {
|
|
3585
|
+
previousId: this._automergeSpaceState.lastEpoch?.id,
|
|
3586
|
+
number: (this._automergeSpaceState.lastEpoch?.subject.assertion.number ?? -1) + 1,
|
|
3587
|
+
timeframe: this._automergeSpaceState.lastEpoch?.subject.assertion.timeframe ?? new Timeframe2(),
|
|
3588
|
+
automergeRoot: newRoot.url
|
|
3589
|
+
};
|
|
3590
|
+
}
|
|
3591
|
+
break;
|
|
3592
|
+
case CreateEpochRequest.Migration.FRAGMENT_AUTOMERGE_ROOT:
|
|
3593
|
+
{
|
|
3594
|
+
log9.info("Fragmenting", void 0, {
|
|
3595
|
+
F: __dxlog_file12,
|
|
3596
|
+
L: 450,
|
|
3597
|
+
S: this,
|
|
3598
|
+
C: (f, a) => f(...a)
|
|
3599
|
+
});
|
|
3600
|
+
const currentRootUrl = this._automergeSpaceState.rootUrl;
|
|
3601
|
+
const rootHandle = this._automergeHost.repo.find(currentRootUrl);
|
|
3602
|
+
await cancelWithContext2(this._ctx, asyncTimeout(rootHandle.whenReady(), 1e4));
|
|
3603
|
+
const objects = Object.entries(rootHandle.docSync().objects);
|
|
3604
|
+
const properties = objects.find(([_, value]) => value.system.type?.itemId === TYPE_PROPERTIES);
|
|
3605
|
+
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
3606
|
+
invariant11(properties, "Properties not found", {
|
|
3607
|
+
F: __dxlog_file12,
|
|
3608
|
+
L: 460,
|
|
3609
|
+
S: this,
|
|
3610
|
+
A: [
|
|
3611
|
+
"properties",
|
|
3612
|
+
"'Properties not found'"
|
|
3613
|
+
]
|
|
3614
|
+
});
|
|
3615
|
+
const newSpaceDoc = {
|
|
3616
|
+
...rootHandle.docSync(),
|
|
3617
|
+
objects: Object.fromEntries([
|
|
3618
|
+
properties
|
|
3619
|
+
])
|
|
3620
|
+
};
|
|
3621
|
+
const newRoot = this._automergeHost.repo.create(newSpaceDoc);
|
|
3622
|
+
invariant11(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
3623
|
+
F: __dxlog_file12,
|
|
3624
|
+
L: 465,
|
|
3576
3625
|
S: this,
|
|
3577
3626
|
A: [
|
|
3578
3627
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
3579
3628
|
""
|
|
3580
3629
|
]
|
|
3581
3630
|
});
|
|
3631
|
+
const docLoader = new AutomergeDocumentLoaderImpl(this.key, this._automergeHost.repo);
|
|
3632
|
+
await docLoader.loadSpaceRootDocHandle(this._ctx, {
|
|
3633
|
+
rootUrl: newRoot.url
|
|
3634
|
+
});
|
|
3635
|
+
otherObjects.forEach(([key, value]) => {
|
|
3636
|
+
const handle = docLoader.createDocumentForObject(key);
|
|
3637
|
+
handle.change((doc) => {
|
|
3638
|
+
assignDeep(doc, [
|
|
3639
|
+
"objects",
|
|
3640
|
+
key
|
|
3641
|
+
], value);
|
|
3642
|
+
});
|
|
3643
|
+
});
|
|
3582
3644
|
epoch = {
|
|
3583
3645
|
previousId: this._automergeSpaceState.lastEpoch?.id,
|
|
3584
3646
|
number: (this._automergeSpaceState.lastEpoch?.subject.assertion.number ?? -1) + 1,
|
|
@@ -3628,7 +3690,7 @@ var DataSpace = class {
|
|
|
3628
3690
|
state: SpaceState[this._state]
|
|
3629
3691
|
}, {
|
|
3630
3692
|
F: __dxlog_file12,
|
|
3631
|
-
L:
|
|
3693
|
+
L: 531,
|
|
3632
3694
|
S: this,
|
|
3633
3695
|
C: (f, a) => f(...a)
|
|
3634
3696
|
});
|
|
@@ -4899,7 +4961,7 @@ import { NetworkManager, createSimplePeerTransportFactory } from "@dxos/network-
|
|
|
4899
4961
|
import { trace as trace9 } from "@dxos/protocols";
|
|
4900
4962
|
import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
|
|
4901
4963
|
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace3 } from "@dxos/tracing";
|
|
4902
|
-
import { assignDeep } from "@dxos/util";
|
|
4964
|
+
import { assignDeep as assignDeep2 } from "@dxos/util";
|
|
4903
4965
|
import { WebsocketRpcClient } from "@dxos/websocket-rpc";
|
|
4904
4966
|
|
|
4905
4967
|
// packages/sdk/client-services/src/packlets/devices/devices-service.ts
|
|
@@ -5324,13 +5386,21 @@ var ClientServicesHost = class {
|
|
|
5324
5386
|
this._storage = createStorageObjects(config.get("runtime.client.storage", {})).storage;
|
|
5325
5387
|
}
|
|
5326
5388
|
}
|
|
5389
|
+
if (!options.signalManager) {
|
|
5390
|
+
log15.warn("running signaling without telemetry metadata.", void 0, {
|
|
5391
|
+
F: __dxlog_file18,
|
|
5392
|
+
L: 191,
|
|
5393
|
+
S: this,
|
|
5394
|
+
C: (f, a) => f(...a)
|
|
5395
|
+
});
|
|
5396
|
+
}
|
|
5327
5397
|
const { connectionLog = true, transportFactory = createSimplePeerTransportFactory({
|
|
5328
5398
|
iceServers: this._config?.get("runtime.services.ice")
|
|
5329
5399
|
}), signalManager = new WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
|
|
5330
5400
|
this._signalManager = signalManager;
|
|
5331
5401
|
invariant16(!this._networkManager, "network manager already set", {
|
|
5332
5402
|
F: __dxlog_file18,
|
|
5333
|
-
L:
|
|
5403
|
+
L: 202,
|
|
5334
5404
|
S: this,
|
|
5335
5405
|
A: [
|
|
5336
5406
|
"!this._networkManager",
|
|
@@ -5344,7 +5414,7 @@ var ClientServicesHost = class {
|
|
|
5344
5414
|
});
|
|
5345
5415
|
log15("initialized", void 0, {
|
|
5346
5416
|
F: __dxlog_file18,
|
|
5347
|
-
L:
|
|
5417
|
+
L: 209,
|
|
5348
5418
|
S: this,
|
|
5349
5419
|
C: (f, a) => f(...a)
|
|
5350
5420
|
});
|
|
@@ -5358,13 +5428,13 @@ var ClientServicesHost = class {
|
|
|
5358
5428
|
id: traceId
|
|
5359
5429
|
}), {
|
|
5360
5430
|
F: __dxlog_file18,
|
|
5361
|
-
L:
|
|
5431
|
+
L: 220,
|
|
5362
5432
|
S: this,
|
|
5363
5433
|
C: (f, a) => f(...a)
|
|
5364
5434
|
});
|
|
5365
5435
|
invariant16(this._config, "config not set", {
|
|
5366
5436
|
F: __dxlog_file18,
|
|
5367
|
-
L:
|
|
5437
|
+
L: 222,
|
|
5368
5438
|
S: this,
|
|
5369
5439
|
A: [
|
|
5370
5440
|
"this._config",
|
|
@@ -5373,7 +5443,7 @@ var ClientServicesHost = class {
|
|
|
5373
5443
|
});
|
|
5374
5444
|
invariant16(this._storage, "storage not set", {
|
|
5375
5445
|
F: __dxlog_file18,
|
|
5376
|
-
L:
|
|
5446
|
+
L: 223,
|
|
5377
5447
|
S: this,
|
|
5378
5448
|
A: [
|
|
5379
5449
|
"this._storage",
|
|
@@ -5382,7 +5452,7 @@ var ClientServicesHost = class {
|
|
|
5382
5452
|
});
|
|
5383
5453
|
invariant16(this._signalManager, "signal manager not set", {
|
|
5384
5454
|
F: __dxlog_file18,
|
|
5385
|
-
L:
|
|
5455
|
+
L: 224,
|
|
5386
5456
|
S: this,
|
|
5387
5457
|
A: [
|
|
5388
5458
|
"this._signalManager",
|
|
@@ -5391,7 +5461,7 @@ var ClientServicesHost = class {
|
|
|
5391
5461
|
});
|
|
5392
5462
|
invariant16(this._networkManager, "network manager not set", {
|
|
5393
5463
|
F: __dxlog_file18,
|
|
5394
|
-
L:
|
|
5464
|
+
L: 225,
|
|
5395
5465
|
S: this,
|
|
5396
5466
|
A: [
|
|
5397
5467
|
"this._networkManager",
|
|
@@ -5403,7 +5473,7 @@ var ClientServicesHost = class {
|
|
|
5403
5473
|
lockKey: this._resourceLock?.lockKey
|
|
5404
5474
|
}, {
|
|
5405
5475
|
F: __dxlog_file18,
|
|
5406
|
-
L:
|
|
5476
|
+
L: 228,
|
|
5407
5477
|
S: this,
|
|
5408
5478
|
C: (f, a) => f(...a)
|
|
5409
5479
|
});
|
|
@@ -5437,7 +5507,7 @@ var ClientServicesHost = class {
|
|
|
5437
5507
|
await this._serviceContext.open(ctx);
|
|
5438
5508
|
invariant16(this.serviceRegistry.services.InvitationsService, void 0, {
|
|
5439
5509
|
F: __dxlog_file18,
|
|
5440
|
-
L:
|
|
5510
|
+
L: 289,
|
|
5441
5511
|
S: this,
|
|
5442
5512
|
A: [
|
|
5443
5513
|
"this.serviceRegistry.services.InvitationsService",
|
|
@@ -5449,7 +5519,7 @@ var ClientServicesHost = class {
|
|
|
5449
5519
|
count: loadedInvitations.invitations?.length
|
|
5450
5520
|
}, {
|
|
5451
5521
|
F: __dxlog_file18,
|
|
5452
|
-
L:
|
|
5522
|
+
L: 292,
|
|
5453
5523
|
S: this,
|
|
5454
5524
|
C: (f, a) => f(...a)
|
|
5455
5525
|
});
|
|
@@ -5471,7 +5541,7 @@ var ClientServicesHost = class {
|
|
|
5471
5541
|
deviceKey
|
|
5472
5542
|
}, {
|
|
5473
5543
|
F: __dxlog_file18,
|
|
5474
|
-
L:
|
|
5544
|
+
L: 309,
|
|
5475
5545
|
S: this,
|
|
5476
5546
|
C: (f, a) => f(...a)
|
|
5477
5547
|
});
|
|
@@ -5479,7 +5549,7 @@ var ClientServicesHost = class {
|
|
|
5479
5549
|
id: traceId
|
|
5480
5550
|
}), {
|
|
5481
5551
|
F: __dxlog_file18,
|
|
5482
|
-
L:
|
|
5552
|
+
L: 310,
|
|
5483
5553
|
S: this,
|
|
5484
5554
|
C: (f, a) => f(...a)
|
|
5485
5555
|
});
|
|
@@ -5493,7 +5563,7 @@ var ClientServicesHost = class {
|
|
|
5493
5563
|
deviceKey
|
|
5494
5564
|
}, {
|
|
5495
5565
|
F: __dxlog_file18,
|
|
5496
|
-
L:
|
|
5566
|
+
L: 321,
|
|
5497
5567
|
S: this,
|
|
5498
5568
|
C: (f, a) => f(...a)
|
|
5499
5569
|
});
|
|
@@ -5509,7 +5579,7 @@ var ClientServicesHost = class {
|
|
|
5509
5579
|
deviceKey
|
|
5510
5580
|
}, {
|
|
5511
5581
|
F: __dxlog_file18,
|
|
5512
|
-
L:
|
|
5582
|
+
L: 328,
|
|
5513
5583
|
S: this,
|
|
5514
5584
|
C: (f, a) => f(...a)
|
|
5515
5585
|
});
|
|
@@ -5520,13 +5590,13 @@ var ClientServicesHost = class {
|
|
|
5520
5590
|
id: traceId
|
|
5521
5591
|
}), {
|
|
5522
5592
|
F: __dxlog_file18,
|
|
5523
|
-
L:
|
|
5593
|
+
L: 333,
|
|
5524
5594
|
S: this,
|
|
5525
5595
|
C: (f, a) => f(...a)
|
|
5526
5596
|
});
|
|
5527
5597
|
log15("resetting...", void 0, {
|
|
5528
5598
|
F: __dxlog_file18,
|
|
5529
|
-
L:
|
|
5599
|
+
L: 335,
|
|
5530
5600
|
S: this,
|
|
5531
5601
|
C: (f, a) => f(...a)
|
|
5532
5602
|
});
|
|
@@ -5534,7 +5604,7 @@ var ClientServicesHost = class {
|
|
|
5534
5604
|
await this._storage.reset();
|
|
5535
5605
|
log15("reset", void 0, {
|
|
5536
5606
|
F: __dxlog_file18,
|
|
5537
|
-
L:
|
|
5607
|
+
L: 338,
|
|
5538
5608
|
S: this,
|
|
5539
5609
|
C: (f, a) => f(...a)
|
|
5540
5610
|
});
|
|
@@ -5542,7 +5612,7 @@ var ClientServicesHost = class {
|
|
|
5542
5612
|
id: traceId
|
|
5543
5613
|
}), {
|
|
5544
5614
|
F: __dxlog_file18,
|
|
5545
|
-
L:
|
|
5615
|
+
L: 339,
|
|
5546
5616
|
S: this,
|
|
5547
5617
|
C: (f, a) => f(...a)
|
|
5548
5618
|
});
|
|
@@ -5557,7 +5627,7 @@ var ClientServicesHost = class {
|
|
|
5557
5627
|
const automergeIndex = space.automergeSpaceState.rootUrl;
|
|
5558
5628
|
invariant16(automergeIndex, void 0, {
|
|
5559
5629
|
F: __dxlog_file18,
|
|
5560
|
-
L:
|
|
5630
|
+
L: 354,
|
|
5561
5631
|
S: this,
|
|
5562
5632
|
A: [
|
|
5563
5633
|
"automergeIndex",
|
|
@@ -5567,7 +5637,7 @@ var ClientServicesHost = class {
|
|
|
5567
5637
|
const document = await this._serviceContext.automergeHost.repo.find(automergeIndex);
|
|
5568
5638
|
await document.whenReady();
|
|
5569
5639
|
document.change((doc) => {
|
|
5570
|
-
|
|
5640
|
+
assignDeep2(doc, [
|
|
5571
5641
|
"objects",
|
|
5572
5642
|
getAutomergeObjectCore(obj).id
|
|
5573
5643
|
], getRawDoc(obj).handle.docSync());
|
|
@@ -5627,4 +5697,4 @@ export {
|
|
|
5627
5697
|
createStorageObjects,
|
|
5628
5698
|
ClientServicesHost
|
|
5629
5699
|
};
|
|
5630
|
-
//# sourceMappingURL=chunk-
|
|
5700
|
+
//# sourceMappingURL=chunk-LAJ3V2AH.mjs.map
|