@dxos/client-services 0.10.0 → 0.11.0
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/chunk-client-services-layer.mjs +11425 -0
- package/dist/lib/chunk-client-services-layer.mjs.map +1 -0
- package/dist/lib/chunk-decorate.mjs +9 -0
- package/dist/lib/index.mjs +731 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/packlets/diagnostics/browser-diagnostics-broadcast.mjs +72 -0
- package/dist/lib/packlets/diagnostics/browser-diagnostics-broadcast.mjs.map +1 -0
- package/dist/lib/packlets/diagnostics/diagnostics-broadcast.mjs +14 -0
- package/dist/lib/packlets/diagnostics/diagnostics-broadcast.mjs.map +1 -0
- package/dist/lib/packlets/locks/browser.mjs +105 -0
- package/dist/lib/packlets/locks/browser.mjs.map +1 -0
- package/dist/lib/packlets/locks/node.mjs +53 -0
- package/dist/lib/packlets/locks/node.mjs.map +1 -0
- package/dist/lib/testing.mjs +570 -0
- package/dist/lib/testing.mjs.map +1 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/packlets/agents/edge-agent-manager.d.ts +21 -4
- package/dist/types/src/packlets/agents/edge-agent-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/agents/edge-agent-service.d.ts +8 -7
- package/dist/types/src/packlets/agents/edge-agent-service.d.ts.map +1 -1
- package/dist/types/src/packlets/devices/devices-service.d.ts +7 -5
- package/dist/types/src/packlets/devices/devices-service.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/devtools.d.ts +30 -29
- package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/feeds.d.ts +1 -1
- package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/network.d.ts +2 -1
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/spaces.d.ts.map +1 -1
- package/dist/types/src/packlets/diagnostics/diagnostics-broadcast.d.ts +2 -2
- package/dist/types/src/packlets/diagnostics/diagnostics-broadcast.d.ts.map +1 -1
- package/dist/types/src/packlets/diagnostics/diagnostics-collector.d.ts.map +1 -1
- package/dist/types/src/packlets/diagnostics/diagnostics.d.ts +1 -8
- package/dist/types/src/packlets/diagnostics/diagnostics.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/authenticator.d.ts +1 -1
- package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/contacts-service.d.ts +9 -6
- package/dist/types/src/packlets/identity/contacts-service.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-manager.d.ts +32 -3
- package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-recovery-manager.d.ts +23 -4
- package/dist/types/src/packlets/identity/identity-recovery-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-service.d.ts +15 -20
- package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity.d.ts +2 -2
- package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/edge-invitation-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts +17 -0
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-manager.d.ts +25 -4
- package/dist/types/src/packlets/invitations/invitations-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-service.d.ts +11 -11
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
- package/dist/types/src/packlets/logging/logging-service.d.ts +14 -12
- package/dist/types/src/packlets/logging/logging-service.d.ts.map +1 -1
- package/dist/types/src/packlets/metadata/index.d.ts +3 -0
- package/dist/types/src/packlets/metadata/index.d.ts.map +1 -0
- package/dist/types/src/packlets/metadata/metadata-store.d.ts +107 -0
- package/dist/types/src/packlets/metadata/metadata-store.d.ts.map +1 -0
- package/dist/types/src/packlets/metadata/metadata-store.test.d.ts +2 -0
- package/dist/types/src/packlets/metadata/metadata-store.test.d.ts.map +1 -0
- package/dist/types/src/packlets/metadata/sqlite-metadata-store.d.ts +65 -0
- package/dist/types/src/packlets/metadata/sqlite-metadata-store.d.ts.map +1 -0
- package/dist/types/src/packlets/network/network-service.d.ts +15 -14
- package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
- package/dist/types/src/packlets/pipeline/codec.d.ts +11 -0
- package/dist/types/src/packlets/pipeline/codec.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/feeds.d.ts +7 -0
- package/dist/types/src/packlets/pipeline/feeds.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/index.d.ts +5 -0
- package/dist/types/src/packlets/pipeline/index.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/message-selector.d.ts +11 -0
- package/dist/types/src/packlets/pipeline/message-selector.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/pipeline-stress.test.d.ts +2 -0
- package/dist/types/src/packlets/pipeline/pipeline-stress.test.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/pipeline.d.ts +131 -0
- package/dist/types/src/packlets/pipeline/pipeline.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/pipeline.test.d.ts +2 -0
- package/dist/types/src/packlets/pipeline/pipeline.test.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/testing/index.d.ts +2 -0
- package/dist/types/src/packlets/pipeline/testing/index.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/testing/test-feed-builder.d.ts +9 -0
- package/dist/types/src/packlets/pipeline/testing/test-feed-builder.d.ts.map +1 -0
- package/dist/types/src/packlets/pipeline/timeframe-clock.d.ts +31 -0
- package/dist/types/src/packlets/pipeline/timeframe-clock.d.ts.map +1 -0
- package/dist/types/src/packlets/services/client-services-layer.d.ts +21 -0
- package/dist/types/src/packlets/services/client-services-layer.d.ts.map +1 -0
- package/dist/types/src/packlets/services/cross-device-space-synchronizer.d.ts +28 -0
- package/dist/types/src/packlets/services/cross-device-space-synchronizer.d.ts.map +1 -0
- package/dist/types/src/packlets/services/effect-rpc.test.d.ts +2 -0
- package/dist/types/src/packlets/services/effect-rpc.test.d.ts.map +1 -0
- package/dist/types/src/packlets/services/feed-syncer.d.ts +22 -2
- package/dist/types/src/packlets/services/feed-syncer.d.ts.map +1 -1
- package/dist/types/src/packlets/services/index.d.ts +2 -2
- package/dist/types/src/packlets/services/index.d.ts.map +1 -1
- package/dist/types/src/packlets/services/platform.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +38 -57
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +82 -31
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/services/sqlite-storage.d.ts +29 -0
- package/dist/types/src/packlets/services/sqlite-storage.d.ts.map +1 -1
- package/dist/types/src/packlets/services/sqlite-storage.test.d.ts +2 -0
- package/dist/types/src/packlets/services/sqlite-storage.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/admission-discovery-extension.d.ts +30 -0
- package/dist/types/src/packlets/space/admission-discovery-extension.d.ts.map +1 -0
- package/dist/types/src/packlets/space/auth.d.ts +24 -0
- package/dist/types/src/packlets/space/auth.d.ts.map +1 -0
- package/dist/types/src/packlets/space/control-pipeline.d.ts +46 -0
- package/dist/types/src/packlets/space/control-pipeline.d.ts.map +1 -0
- package/dist/types/src/packlets/space/control-pipeline.test.d.ts +2 -0
- package/dist/types/src/packlets/space/control-pipeline.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/index.d.ts +6 -0
- package/dist/types/src/packlets/space/index.d.ts.map +1 -0
- package/dist/types/src/packlets/space/replication.browser.test.d.ts +2 -0
- package/dist/types/src/packlets/space/replication.browser.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space-manager.browser.test.d.ts +2 -0
- package/dist/types/src/packlets/space/space-manager.browser.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space-manager.d.ts +72 -0
- package/dist/types/src/packlets/space/space-manager.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space-protocol.browser.test.d.ts +2 -0
- package/dist/types/src/packlets/space/space-protocol.browser.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space-protocol.d.ts +99 -0
- package/dist/types/src/packlets/space/space-protocol.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space-protocol.test.d.ts +2 -0
- package/dist/types/src/packlets/space/space-protocol.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space.d.ts +65 -0
- package/dist/types/src/packlets/space/space.d.ts.map +1 -0
- package/dist/types/src/packlets/space/space.test.d.ts +2 -0
- package/dist/types/src/packlets/space/space.test.d.ts.map +1 -0
- package/dist/types/src/packlets/space/testing/change-metadata.d.ts +8 -0
- package/dist/types/src/packlets/space/testing/change-metadata.d.ts.map +1 -0
- package/dist/types/src/packlets/space/testing/index.d.ts +4 -0
- package/dist/types/src/packlets/space/testing/index.d.ts.map +1 -0
- package/dist/types/src/packlets/space/testing/test-agent-builder.d.ts +62 -0
- package/dist/types/src/packlets/space/testing/test-agent-builder.d.ts.map +1 -0
- package/dist/types/src/packlets/space-export/serialized-space-reader.d.ts +1 -1
- package/dist/types/src/packlets/space-export/serialized-space-reader.d.ts.map +1 -1
- package/dist/types/src/packlets/space-export/serialized-space-writer.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts +40 -7
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +3 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/genesis.d.ts +1 -1
- package/dist/types/src/packlets/spaces/genesis.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts +25 -23
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/packlets/storage/level.d.ts.map +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts +18 -18
- package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/invitation-utils.d.ts +1 -1
- package/dist/types/src/packlets/testing/invitation-utils.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +7 -6
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/packlets/worker/worker-runtime.d.ts +41 -58
- package/dist/types/src/packlets/worker/worker-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/worker/worker-session.d.ts +21 -8
- package/dist/types/src/packlets/worker/worker-session.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +52 -48
- package/src/index.ts +2 -0
- package/src/packlets/agents/edge-agent-manager.ts +56 -15
- package/src/packlets/agents/edge-agent-service.ts +25 -15
- package/src/packlets/devices/devices-service.test.ts +20 -19
- package/src/packlets/devices/devices-service.ts +17 -17
- package/src/packlets/devtools/devtools.ts +133 -75
- package/src/packlets/devtools/feeds.ts +2 -1
- package/src/packlets/devtools/network.ts +42 -12
- package/src/packlets/devtools/spaces.ts +1 -1
- package/src/packlets/diagnostics/diagnostics-broadcast.ts +4 -2
- package/src/packlets/diagnostics/diagnostics-collector.ts +5 -18
- package/src/packlets/diagnostics/diagnostics.ts +0 -11
- package/src/packlets/identity/authenticator.ts +2 -1
- package/src/packlets/identity/contacts-service.ts +46 -37
- package/src/packlets/identity/identity-manager.test.ts +3 -1
- package/src/packlets/identity/identity-manager.ts +73 -5
- package/src/packlets/identity/identity-recovery-manager.ts +56 -7
- package/src/packlets/identity/identity-service.test.ts +27 -18
- package/src/packlets/identity/identity-service.ts +114 -71
- package/src/packlets/identity/identity.test.ts +4 -9
- package/src/packlets/identity/identity.ts +1 -2
- package/src/packlets/invitations/edge-invitation-handler.ts +0 -1
- package/src/packlets/invitations/invitations-handler.ts +39 -3
- package/src/packlets/invitations/invitations-manager.ts +52 -4
- package/src/packlets/invitations/invitations-service.ts +54 -28
- package/src/packlets/logging/logging-service.ts +41 -29
- package/src/packlets/logging/logging.test.ts +28 -15
- package/src/packlets/metadata/index.ts +6 -0
- package/src/packlets/metadata/metadata-store.test.ts +49 -0
- package/src/packlets/metadata/metadata-store.ts +446 -0
- package/src/packlets/metadata/sqlite-metadata-store.ts +409 -0
- package/src/packlets/network/network-service.test.ts +19 -12
- package/src/packlets/network/network-service.ts +96 -29
- package/src/packlets/pipeline/codec.ts +18 -0
- package/src/packlets/pipeline/feeds.ts +22 -0
- package/src/packlets/pipeline/index.ts +8 -0
- package/src/packlets/pipeline/message-selector.ts +35 -0
- package/src/packlets/pipeline/pipeline-stress.test.ts +230 -0
- package/src/packlets/pipeline/pipeline.test.ts +140 -0
- package/src/packlets/pipeline/pipeline.ts +439 -0
- package/src/packlets/pipeline/testing/index.ts +5 -0
- package/src/packlets/pipeline/testing/test-feed-builder.ts +19 -0
- package/src/packlets/pipeline/timeframe-clock.ts +81 -0
- package/src/packlets/services/client-services-layer.ts +186 -0
- package/src/packlets/services/cross-device-space-synchronizer.ts +132 -0
- package/src/packlets/services/effect-rpc.test.ts +314 -0
- package/src/packlets/services/feed-syncer.ts +57 -3
- package/src/packlets/services/index.ts +2 -2
- package/src/packlets/services/platform.ts +0 -6
- package/src/packlets/services/service-context.ts +219 -522
- package/src/packlets/services/service-host.test.ts +34 -11
- package/src/packlets/services/service-host.ts +693 -213
- package/src/packlets/services/spec.md +106 -0
- package/src/packlets/services/sqlite-storage.test.ts +48 -0
- package/src/packlets/services/sqlite-storage.ts +117 -20
- package/src/packlets/space/admission-discovery-extension.ts +91 -0
- package/src/packlets/space/auth.ts +92 -0
- package/src/packlets/space/control-pipeline.test.ts +165 -0
- package/src/packlets/space/control-pipeline.ts +229 -0
- package/src/packlets/space/index.ts +9 -0
- package/src/packlets/space/replication.browser.test.ts +58 -0
- package/src/packlets/space/space-manager.browser.test.ts +40 -0
- package/src/packlets/space/space-manager.ts +224 -0
- package/src/packlets/space/space-protocol.browser.test.ts +129 -0
- package/src/packlets/space/space-protocol.test.ts +158 -0
- package/src/packlets/space/space-protocol.ts +308 -0
- package/src/packlets/space/space.test.ts +181 -0
- package/src/packlets/space/space.ts +196 -0
- package/src/packlets/space/testing/change-metadata.ts +27 -0
- package/src/packlets/space/testing/index.ts +7 -0
- package/src/packlets/space/testing/test-agent-builder.ts +252 -0
- package/src/packlets/space-export/serialized-space-reader.ts +3 -1
- package/src/packlets/space-export/serialized-space-writer.ts +53 -30
- package/src/packlets/space-export/space-archive.test.ts +30 -0
- package/src/packlets/spaces/data-space-manager.test.ts +1 -1
- package/src/packlets/spaces/data-space-manager.ts +148 -33
- package/src/packlets/spaces/data-space.ts +29 -18
- package/src/packlets/spaces/edge-feed-replicator.test.ts +1 -1
- package/src/packlets/spaces/genesis.ts +1 -1
- package/src/packlets/spaces/spaces-service.test.ts +35 -22
- package/src/packlets/spaces/spaces-service.ts +259 -180
- package/src/packlets/storage/level.ts +3 -1
- package/src/packlets/system/system-service.test.ts +31 -13
- package/src/packlets/system/system-service.ts +65 -37
- package/src/packlets/testing/invitation-utils.ts +3 -3
- package/src/packlets/testing/test-builder.ts +35 -20
- package/src/packlets/worker/worker-runtime.ts +222 -260
- package/src/packlets/worker/worker-session.ts +108 -91
- package/src/testing/index.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-QCWEHHJW.mjs +0 -24
- package/dist/lib/browser/chunk-QCWEHHJW.mjs.map +0 -7
- package/dist/lib/browser/chunk-XJRPB3GA.mjs +0 -22
- package/dist/lib/browser/chunk-XJRPB3GA.mjs.map +0 -7
- package/dist/lib/browser/chunk-XU5R2BMF.mjs +0 -8837
- package/dist/lib/browser/chunk-XU5R2BMF.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -876
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/packlets/diagnostics/browser-diagnostics-broadcast.mjs +0 -88
- package/dist/lib/browser/packlets/diagnostics/browser-diagnostics-broadcast.mjs.map +0 -7
- package/dist/lib/browser/packlets/diagnostics/diagnostics-broadcast.mjs +0 -11
- package/dist/lib/browser/packlets/diagnostics/diagnostics-broadcast.mjs.map +0 -7
- package/dist/lib/browser/packlets/locks/browser.mjs +0 -86
- package/dist/lib/browser/packlets/locks/browser.mjs.map +0 -7
- package/dist/lib/browser/packlets/locks/node.mjs +0 -48
- package/dist/lib/browser/packlets/locks/node.mjs.map +0 -7
- package/dist/lib/browser/testing/index.mjs +0 -436
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2DT3MZRL.mjs +0 -22
- package/dist/lib/node-esm/chunk-2DT3MZRL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2SZHAWBN.mjs +0 -24
- package/dist/lib/node-esm/chunk-2SZHAWBN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-H5YTUD35.mjs +0 -8837
- package/dist/lib/node-esm/chunk-H5YTUD35.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -876
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/packlets/diagnostics/browser-diagnostics-broadcast.mjs +0 -88
- package/dist/lib/node-esm/packlets/diagnostics/browser-diagnostics-broadcast.mjs.map +0 -7
- package/dist/lib/node-esm/packlets/diagnostics/diagnostics-broadcast.mjs +0 -11
- package/dist/lib/node-esm/packlets/diagnostics/diagnostics-broadcast.mjs.map +0 -7
- package/dist/lib/node-esm/packlets/locks/browser.mjs +0 -86
- package/dist/lib/node-esm/packlets/locks/browser.mjs.map +0 -7
- package/dist/lib/node-esm/packlets/locks/node.mjs +0 -48
- package/dist/lib/node-esm/packlets/locks/node.mjs.map +0 -7
- package/dist/lib/node-esm/testing/index.mjs +0 -436
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/packlets/services/client-rpc-server.d.ts +0 -24
- package/dist/types/src/packlets/services/client-rpc-server.d.ts.map +0 -1
- package/dist/types/src/packlets/services/service-registry.d.ts +0 -15
- package/dist/types/src/packlets/services/service-registry.d.ts.map +0 -1
- package/dist/types/src/packlets/services/service-registry.test.d.ts +0 -2
- package/dist/types/src/packlets/services/service-registry.test.d.ts.map +0 -1
- package/dist/types/src/testing/setup.d.ts +0 -3
- package/dist/types/src/testing/setup.d.ts.map +0 -1
- package/src/packlets/services/client-rpc-server.ts +0 -111
- package/src/packlets/services/service-registry.test.ts +0 -78
- package/src/packlets/services/service-registry.ts +0 -36
- package/src/testing/setup.ts +0 -11
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/index.ts", "../../../src/packlets/services/client-rpc-server.ts", "../../../src/packlets/storage/storage.ts", "../../../src/packlets/storage/util.ts", "../../../src/packlets/storage/level.ts", "../../../src/packlets/storage/profile-archive.ts", "../../../src/packlets/storage/profile-archive-sqlite.ts", "../../../src/packlets/worker/worker-runtime.ts", "../../../src/packlets/worker/worker-session.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2020 DXOS.org\n//\n\nexport * from './packlets/devtools';\nexport * from './packlets/diagnostics';\nexport * from './packlets/identity';\nexport * from './packlets/invitations';\nexport * from './packlets/locks';\nexport * from './packlets/services';\nexport * from './packlets/space-export';\nexport * from './packlets/spaces';\nexport * from './packlets/storage';\nexport * from './packlets/worker';\nexport * from './packlets/agents';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type ClientServices } from '@dxos/client-protocol';\nimport { type Any, type RequestOptions, type ServiceHandler, Stream } from '@dxos/codec-protobuf';\nimport { raise } from '@dxos/debug';\nimport { RpcPeer, type RpcPeerOptions, type ServiceBundle, parseMethodName } from '@dxos/rpc';\nimport { MapCounter, trace } from '@dxos/tracing';\nimport { type MaybePromise } from '@dxos/util';\n\nimport { type ServiceRegistry } from './service-registry';\n\nexport type ClientRpcServerProps = {\n serviceRegistry: ServiceRegistry<ClientServices>;\n handleCall?: (\n method: string,\n params: Any,\n handler: (method: string, params: Any, options?: RequestOptions) => MaybePromise<Any>,\n options?: RequestOptions,\n ) => Promise<Any>;\n handleStream?: (\n method: string,\n params: Any,\n handler: (method: string, params: Any, options?: RequestOptions) => Stream<Any>,\n options?: RequestOptions,\n ) => MaybePromise<Stream<Any>>;\n} & Omit<RpcPeerOptions, 'callHandler' | 'streamHandler'>;\n\n@trace.resource()\nexport class ClientRpcServer {\n private readonly _serviceRegistry: ServiceRegistry<ClientServices>;\n private readonly _rpcPeer: RpcPeer;\n private readonly _handlerCache = new Map<string, ServiceHandler<any>>();\n private readonly _handleCall: ClientRpcServerProps['handleCall'];\n private readonly _handleStream: ClientRpcServerProps['handleStream'];\n\n @trace.metricsCounter()\n private readonly _callMetrics = new MapCounter();\n\n @trace.info()\n private get _services() {\n return Object.keys(this._serviceRegistry.services);\n }\n\n constructor(params: ClientRpcServerProps) {\n const { serviceRegistry, handleCall, handleStream, ...rpcOptions } = params;\n this._handleCall = handleCall;\n this._handleStream = handleStream;\n\n this._serviceRegistry = serviceRegistry;\n this._rpcPeer = new RpcPeer({\n ...rpcOptions,\n callHandler: (method, params, options) => {\n const [serviceName, methodName] = parseMethodName(method);\n const handler = (method: string, params: Any, handlerOptions?: RequestOptions) =>\n this._getServiceHandler(serviceName).call(method, params, handlerOptions);\n\n this._callMetrics.inc(`${serviceName}.${methodName} request`);\n\n if (this._handleCall) {\n return this._handleCall(methodName, params, handler, options);\n } else {\n return handler(methodName, params, options);\n }\n },\n streamHandler: (method, params, options) => {\n const [serviceName, methodName] = parseMethodName(method);\n const handler = (method: string, params: Any, handlerOptions?: RequestOptions) =>\n this._getServiceHandler(serviceName).callStream(method, params, handlerOptions);\n\n this._callMetrics.inc(`${serviceName}.${methodName} request stream`);\n\n if (this._handleStream) {\n return Stream.map(Stream.unwrapPromise(this._handleStream(methodName, params, handler, options)), (data) => {\n this._callMetrics.inc(`${serviceName}.${methodName} response stream`);\n return data;\n });\n } else {\n return handler(methodName, params, options);\n }\n },\n });\n }\n\n async open(): Promise<void> {\n await this._rpcPeer.open();\n }\n\n async close(): Promise<void> {\n await this._rpcPeer.close();\n }\n\n private _getServiceHandler(serviceName: string) {\n if (!this._handlerCache.has(serviceName)) {\n const [key, descriptor] =\n Object.entries(this._serviceRegistry.descriptors as ServiceBundle<Record<string, any>>).find(\n ([key, descriptor]) => descriptor.name === serviceName,\n ) ?? raise(new Error(`Service not available: ${serviceName}`));\n\n const service = this._serviceRegistry.services[key as keyof ClientServices] as any;\n if (!service) {\n throw new Error(`Service not available: ${serviceName}`);\n }\n\n this._handlerCache.set(serviceName, descriptor.createServer(service));\n }\n\n return this._handlerCache.get(serviceName)!;\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { InvalidConfigError } from '@dxos/protocols';\nimport { Runtime } from '@dxos/protocols/proto/dxos/config';\nimport { StorageType, createStorage } from '@dxos/random-access-storage';\n\nimport { getRootPath } from './util';\n\nimport StorageDriver = Runtime.Client.Storage.StorageDriver;\n\n// TODO(burdon): Factor out.\nexport const createStorageObjects = (config: Runtime.Client.Storage) => {\n const { persistent = false, keyStore, dataStore } = config ?? {};\n if (persistent && dataStore === StorageDriver.RAM) {\n throw new InvalidConfigError({ message: 'RAM storage cannot be used in persistent mode.' });\n }\n if (!persistent && dataStore !== undefined && dataStore !== StorageDriver.RAM) {\n throw new InvalidConfigError({ message: 'Cannot use a persistent storage in not persistent mode.' });\n }\n if (persistent && keyStore === StorageDriver.RAM) {\n throw new InvalidConfigError({ message: 'RAM key storage cannot be used in persistent mode.' });\n }\n if (!persistent && keyStore !== StorageDriver.RAM && keyStore !== undefined) {\n throw new InvalidConfigError({ message: 'Cannot use a persistent key storage in not persistent mode.' });\n }\n\n return {\n storage: createStorage({\n type: persistent ? toStorageType(dataStore) : StorageType.RAM,\n root: getRootPath(config),\n }),\n };\n};\n\nconst toStorageType = (type: StorageDriver | undefined): StorageType | undefined => {\n switch (type) {\n case undefined:\n return undefined;\n case StorageDriver.RAM:\n return StorageType.RAM;\n case StorageDriver.CHROME:\n return StorageType.CHROME;\n case StorageDriver.FIREFOX:\n return StorageType.FIREFOX;\n case StorageDriver.IDB:\n return StorageType.IDB;\n case StorageDriver.NODE:\n return StorageType.NODE;\n case StorageDriver.WEBFS:\n return StorageType.WEBFS;\n default:\n throw new Error(`Invalid storage type: ${StorageDriver[type]}`);\n }\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { DX_DATA } from '@dxos/client-protocol';\nimport { Runtime } from '@dxos/protocols/proto/dxos/config';\nimport { isNode } from '@dxos/util';\n\nexport const getRootPath = (config: Runtime.Client.Storage) => {\n const { dataRoot = isNode() ? DX_DATA : 'dxos/storage' } = config ?? {};\n return `${dataRoot}/`;\n};\n\nexport const isPersistent = (config: Runtime.Client.Storage) => {\n const { persistent = false } = config ?? {};\n return (\n (config.dataStore !== undefined && config.dataStore !== Runtime.Client.Storage.StorageDriver.RAM) || persistent\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport path from 'node:path';\n\nimport { PublicKey } from '@dxos/keys';\nimport { createLevel as createKV } from '@dxos/kv-store';\nimport { type Runtime } from '@dxos/protocols/proto/dxos/config';\n\nimport { getRootPath, isPersistent } from './util';\n\nexport const createLevel = async (config: Runtime.Client.Storage) => {\n const persistent = isPersistent(config);\n const storagePath = persistent ? path.join(getRootPath(config), 'level') : `/tmp/dxos-${PublicKey.random().toHex()}`;\n const level = createKV(storagePath);\n // TODO(dmaretskyi): This function shouldn't call open - .\n await level.open();\n return level;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { cbor } from '@automerge/automerge-repo';\n\nimport { invariant } from '@dxos/invariant';\nimport type { LevelDB } from '@dxos/kv-store';\nimport { log } from '@dxos/log';\nimport { type ProfileArchive, ProfileArchiveEntryType } from '@dxos/protocols';\nimport type { Storage } from '@dxos/random-access-storage';\nimport { arrayToBuffer } from '@dxos/util';\n\nexport const encodeProfileArchive = (profile: ProfileArchive): Uint8Array => cbor.encode(profile);\n\nexport const decodeProfileArchive = (data: Uint8Array): ProfileArchive => cbor.decode(data);\n\nexport const exportProfileData = async ({\n storage,\n level,\n}: {\n storage: Storage;\n level: LevelDB;\n}): Promise<ProfileArchive> => {\n const archive: ProfileArchive = { storage: [], meta: { timestamp: new Date().toISOString() } };\n\n {\n const directory = await storage.createDirectory();\n const files = await directory.list();\n\n log.info('begin exporting files', { count: files.length });\n for (const filename of files) {\n const file = await directory.getOrCreateFile(filename);\n const { size } = await file.stat();\n const data = await file.read(0, size);\n archive.storage.push({\n type: ProfileArchiveEntryType.FILE,\n key: filename,\n value: data,\n });\n }\n log.info('done exporting files', { count: files.length });\n }\n\n {\n log.info('begin exporting kv pairs');\n const iter = await level.iterator<Uint8Array, Uint8Array>({ keyEncoding: 'binary', valueEncoding: 'binary' });\n let count = 0;\n for await (const [key, value] of iter) {\n archive.storage.push({\n type: ProfileArchiveEntryType.KEY_VALUE,\n key,\n value,\n });\n count++;\n }\n log.info('done exporting kv pairs', { count });\n }\n\n return archive;\n};\n\nexport const importProfileData = async (\n {\n storage,\n level,\n }: {\n storage: Storage;\n level: LevelDB;\n },\n archive: ProfileArchive,\n): Promise<void> => {\n let batch = level.batch();\n\n let count = 0;\n for (const entry of archive.storage) {\n switch (entry.type) {\n case ProfileArchiveEntryType.FILE: {\n const directory = await storage.createDirectory();\n invariant(typeof entry.key === 'string', 'Invalid key type');\n const file = await directory.getOrCreateFile(entry.key);\n invariant(entry.value instanceof Uint8Array, 'Invalid value type');\n await file.write(0, arrayToBuffer(entry.value));\n await file.close();\n break;\n }\n case ProfileArchiveEntryType.KEY_VALUE: {\n invariant(entry.key instanceof Uint8Array, 'Invalid key type');\n invariant(entry.value instanceof Uint8Array, 'Invalid value type');\n batch.put(entry.key, entry.value, { keyEncoding: 'binary', valueEncoding: 'binary' });\n break;\n }\n case ProfileArchiveEntryType.SQLITE_DATABASE:\n log.warn('Skipping SQLITE_DATABASE entry (import via OPFS recovery API)', { key: entry.key });\n break;\n default:\n throw new Error(`Invalid entry type: ${entry.type}`);\n }\n\n if (++count % 1000 === 0) {\n // Apparently indexedDB can't handle big batches.\n await batch.write();\n batch = level.batch();\n\n log.info('importing', {\n count,\n total: archive.storage.length,\n progress: `${((count / archive.storage.length) * 100).toFixed()}%`,\n });\n }\n }\n\n log.info('committing changes..');\n await batch.write();\n};\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type ProfileArchive, ProfileArchiveEntryType } from '@dxos/protocols';\n\n/** Default OPFS SQLite database name used by Composer recovery and the OPFS worker. */\nexport const OPFS_SQLITE_DB_FILENAME = 'DXOS' as const;\n\nconst SQLITE_MAGIC = new TextEncoder().encode('SQLite format 3\\u0000');\n\n/**\n * Returns true when `bytes` begins with the SQLite 3 file header.\n */\nexport const isValidSqliteDatabase = (bytes: Uint8Array): boolean => {\n if (bytes.byteLength < SQLITE_MAGIC.byteLength) {\n return false;\n }\n for (let index = 0; index < SQLITE_MAGIC.byteLength; index++) {\n if (bytes[index] !== SQLITE_MAGIC[index]) {\n return false;\n }\n }\n return true;\n};\n\nconst coerceToUint8Array = (value: unknown): Uint8Array | undefined => {\n if (value instanceof Uint8Array) {\n return value;\n }\n if (value instanceof ArrayBuffer) {\n return new Uint8Array(value);\n }\n if (Array.isArray(value)) {\n return new Uint8Array(value);\n }\n return undefined;\n};\n\nexport type SqliteProfileEntry = {\n opfsFilename: string;\n database: Uint8Array;\n};\n\nexport type CreateSqliteProfileArchiveOptions = {\n /** Host where the export was created (stored in archive meta). */\n origin?: string;\n};\n\n/**\n * Build a profile archive containing a single validated SQLITE_DATABASE entry.\n */\nexport const createSqliteProfileArchive = (\n opfsFilename: string,\n database: Uint8Array,\n options?: CreateSqliteProfileArchiveOptions,\n): ProfileArchive => {\n if (!isValidSqliteDatabase(database)) {\n throw new Error('Invalid SQLite database (missing SQLite format 3 header)');\n }\n\n return {\n meta: {\n timestamp: new Date().toISOString(),\n ...(options?.origin ? { origin: options.origin } : {}),\n },\n storage: [\n {\n type: ProfileArchiveEntryType.SQLITE_DATABASE,\n key: opfsFilename,\n value: database,\n },\n ],\n };\n};\n\n/**\n * Extract validated SQLITE_DATABASE entries from a profile archive.\n */\nexport const getSqliteProfileEntries = (archive: ProfileArchive): SqliteProfileEntry[] => {\n const entries: SqliteProfileEntry[] = [];\n\n for (const entry of archive.storage) {\n if (entry.type !== ProfileArchiveEntryType.SQLITE_DATABASE) {\n continue;\n }\n if (typeof entry.key !== 'string') {\n continue;\n }\n\n const database = coerceToUint8Array(entry.value);\n if (!database || !isValidSqliteDatabase(database)) {\n continue;\n }\n\n entries.push({ opfsFilename: entry.key, database });\n }\n\n return entries;\n};\n", "//\n// Copyright 2022 DXOS.org\n//\n\nimport * as Reactivity from '@effect/experimental/Reactivity';\nimport type * as SqlClient from '@effect/sql/SqlClient';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\nimport * as ManagedRuntime from 'effect/ManagedRuntime';\n\nimport { Trigger } from '@dxos/async';\nimport { DEFAULT_WORKER_BROADCAST_CHANNEL } from '@dxos/client-protocol';\nimport { type Config } from '@dxos/config';\nimport { Context } from '@dxos/context';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport {\n MemorySignalManager,\n MemorySignalManagerContext,\n WebsocketSignalManager,\n setIdentityTags,\n} from '@dxos/messaging';\nimport { RtcTransportProxyFactory } from '@dxos/network-manager';\nimport { type RpcPort } from '@dxos/rpc';\nimport * as SqlExport from '@dxos/sql-sqlite/SqlExport';\nimport * as SqliteClient from '@dxos/sql-sqlite/SqliteClient';\nimport * as SqlTransaction from '@dxos/sql-sqlite/SqlTransaction';\nimport { type MaybePromise } from '@dxos/util';\n\nimport { ClientServicesHost } from '../services';\nimport { WorkerSession } from './worker-session';\n\n// NOTE: Keep as RpcPorts to avoid dependency on @dxos/rpc-tunnel so we don't depend on browser-specific apis.\nexport type CreateSessionProps = {\n appPort: RpcPort;\n systemPort: RpcPort;\n shellPort?: RpcPort;\n onClose?: () => Promise<void>;\n};\n\nexport type WorkerRuntimeOptions = {\n channel?: string;\n configProvider: () => MaybePromise<Config>;\n acquireLock: () => Promise<void>;\n releaseLock: () => void;\n onStop?: () => Promise<void>;\n /**\n * @default true\n */\n automaticallyConnectWebrtc?: boolean;\n\n /**\n * Optional SQLite layer for Effect. Defaults to LocalSqliteOpfsLayer.\n * For testing in Node.js, use `sqliteLayerMemory` from `@dxos/sql-sqlite/platform`.\n */\n sqliteLayer?: Layer.Layer<SqlClient.SqlClient | SqlExport.SqlExport, unknown>;\n};\n\n/**\n * Runtime for the shared and dedciated worker.\n * Manages connections from proxies (in tabs).\n * Tabs make requests to the `ClientServicesHost`, and provide a WebRTC gateway.\n */\nexport class WorkerRuntime {\n private readonly _configProvider: () => MaybePromise<Config>;\n private readonly _acquireLock: () => Promise<void>;\n private readonly _releaseLock: () => void;\n private readonly _onStop?: () => Promise<void>;\n private readonly _transportFactory = new RtcTransportProxyFactory();\n private readonly _ready = new Trigger<Error | undefined>();\n private readonly _sessions = new Set<WorkerSession>();\n private readonly _clientServices!: ClientServicesHost;\n private readonly _channel: string;\n private readonly _automaticallyConnectWebrtc: boolean;\n private readonly _livenessLock = new WebLockWrapper(`@dxos/client-services/WorkerRuntime/${crypto.randomUUID()}`);\n private _broadcastChannel?: BroadcastChannel;\n private _sessionForNetworking?: WorkerSession; // TODO(burdon): Expose to client QueryStatusResponse.\n private _config!: Config;\n private _signalMetadataTags: any = { runtime: 'worker-runtime' };\n private _signalTelemetryEnabled: boolean = false;\n private _runtime!: ManagedRuntime.ManagedRuntime<\n SqlTransaction.SqlTransaction | SqlClient.SqlClient | SqlExport.SqlExport,\n never\n >;\n\n constructor({\n channel = DEFAULT_WORKER_BROADCAST_CHANNEL,\n configProvider,\n acquireLock,\n releaseLock,\n onStop,\n automaticallyConnectWebrtc = true,\n sqliteLayer,\n }: WorkerRuntimeOptions) {\n this._configProvider = configProvider;\n this._acquireLock = acquireLock;\n this._releaseLock = releaseLock;\n this._onStop = onStop;\n this._channel = channel;\n if (sqliteLayer) {\n log.warn('Using testing SQLite layer');\n }\n this._runtime = ManagedRuntime.make(\n SqlTransaction.layer\n .pipe(Layer.provideMerge(sqliteLayer ?? LocalSqliteOpfsLayer), Layer.provideMerge(Reactivity.layer))\n .pipe(Layer.orDie),\n );\n this._clientServices = new ClientServicesHost({\n callbacks: {\n onReset: async () => this.stop(),\n },\n runtime: this._runtime.runtimeEffect,\n runtimeProps: {\n // Auto-activate spaces that were previously active after leader changeover.\n autoActivateSpaces: true,\n },\n });\n this._automaticallyConnectWebrtc = automaticallyConnectWebrtc;\n }\n\n get host() {\n return this._clientServices;\n }\n\n get livenessLockKey(): string {\n return this._livenessLock.key;\n }\n\n async start(): Promise<void> {\n log('starting...');\n try {\n log('worker-runtime: acquiring liveness lock (background)');\n void this._livenessLock.acquire();\n\n // Steal the lock from the other worker.\n log('worker-runtime: broadcasting stop to displace previous worker');\n this._broadcastChannel = new BroadcastChannel(this._channel);\n this._broadcastChannel.postMessage({ action: 'stop' });\n this._broadcastChannel.onmessage = async (event) => {\n if (event.data?.action === 'stop') {\n log('worker-runtime: received stop broadcast');\n await this.stop();\n }\n };\n\n log('worker-runtime: acquiring storage lock');\n await this._acquireLock();\n log('worker-runtime: storage lock acquired, resolving config');\n this._config = await this._configProvider();\n log('worker-runtime: config resolved');\n this._signalTelemetryEnabled = this._config.get('runtime.client.signalTelemetryEnabled') ?? false;\n const observabilityGroup = this._config.get('runtime.client.observabilityGroup');\n if (observabilityGroup) {\n this._signalMetadataTags.group = observabilityGroup;\n }\n const signals = this._config.get('runtime.services.signaling');\n log('worker-runtime: initializing client services host');\n this._clientServices.initialize({\n config: this._config,\n signalManager: this._config.get('runtime.client.edgeFeatures')?.signaling\n ? undefined\n : signals\n ? new WebsocketSignalManager(signals, () => (this._signalTelemetryEnabled ? this._signalMetadataTags : {}))\n : new MemorySignalManager(new MemorySignalManagerContext()), // TODO(dmaretskyi): Inject this context.\n transportFactory: this._transportFactory,\n });\n log('worker-runtime: client services host initialized, opening');\n\n await this._clientServices.open(new Context());\n log('worker-runtime: client services host opened, signalling ready');\n this._ready.wake(undefined);\n log('started');\n setIdentityTags({\n identityService: this._clientServices.services.IdentityService!,\n devicesService: this._clientServices.services.DevicesService!,\n setTag: (k: string, v: string) => {\n this._signalMetadataTags[k] = v;\n },\n });\n } catch (err: any) {\n this._ready.wake(err);\n log.error('starting', err);\n }\n }\n\n async stop(): Promise<void> {\n // Release the lock to notify remote clients that the worker is terminating.\n this._releaseLock();\n this._broadcastChannel?.close();\n this._broadcastChannel = undefined;\n await this._clientServices.close(Context.default());\n await this._runtime.dispose();\n await this._onStop?.();\n await this._livenessLock.release();\n }\n\n /**\n * Update signaling telemetry tags from a client-supplied config overlay.\n *\n * The worker services outlive individual client connections, so the first client seeds the\n * worker's core config (storage, signaling, edge features). For fields that can legitimately\n * differ per tab — `observabilityGroup` and `signalTelemetryEnabled` — this method lets later\n * connections refresh the signal metadata the worker attaches to its signaling requests\n * (last-writer-wins, matching the pre-DX-930 per-session RPC behaviour).\n */\n updateSignalMetadata(config: Config): void {\n const observabilityGroup = config.get('runtime.client.observabilityGroup');\n if (observabilityGroup) {\n this._signalMetadataTags.group = observabilityGroup;\n } else {\n // Clear stale group so a later config that removes observabilityGroup stops attributing\n // telemetry to the previous client's group (last-writer-wins).\n delete this._signalMetadataTags.group;\n }\n const signalTelemetryEnabled = config.get('runtime.client.signalTelemetryEnabled');\n if (signalTelemetryEnabled !== undefined) {\n this._signalTelemetryEnabled = signalTelemetryEnabled;\n }\n }\n\n /**\n * Create a new session.\n */\n async createSession({ appPort, systemPort, shellPort, onClose }: CreateSessionProps): Promise<WorkerSession> {\n const session = new WorkerSession({\n serviceHost: this._clientServices,\n appPort,\n systemPort,\n shellPort,\n readySignal: this._ready,\n });\n\n // When tab is closed or client is destroyed.\n session.onClose.set(async () => {\n this._sessions.delete(session);\n if (this._sessions.size === 0) {\n // Terminate the worker when all sessions are closed.\n await this.stop();\n } else {\n if (this._automaticallyConnectWebrtc) {\n this._reconnectWebrtc();\n }\n }\n await onClose?.();\n });\n\n await session.open();\n // A worker can only service one origin currently\n invariant(\n !this._signalMetadataTags.origin || this._signalMetadataTags.origin === session.origin,\n `worker origin changed from ${this._signalMetadataTags.origin} to ${session.origin}?`,\n );\n this._signalMetadataTags.origin = session.origin;\n this._sessions.add(session);\n\n if (this._automaticallyConnectWebrtc) {\n this._reconnectWebrtc();\n }\n\n return session;\n }\n\n /**\n * Connects the WebRTC bridge to the specified session.\n * If no session is provided, disconnects the WebRTC bridge.\n *\n * Called automatically if `automaticallyConnectWebrtc` is true.\n *\n * @param session The session to connect the WebRTC bridge to.\n */\n connectWebrtcBridge(session: WorkerSession | undefined): void {\n this._sessionForNetworking = session;\n this._transportFactory.setBridgeService(session?.bridgeService);\n }\n\n /**\n * Selects one of the existing session for WebRTC networking.\n */\n private _reconnectWebrtc(): void {\n log('reconnecting webrtc...');\n // Check if current session is already closed.\n if (this._sessionForNetworking) {\n if (!this._sessions.has(this._sessionForNetworking)) {\n this._sessionForNetworking = undefined;\n }\n }\n\n // Select existing session.\n if (!this._sessionForNetworking) {\n const selected = Array.from(this._sessions).find((session) => session.bridgeService);\n this.connectWebrtcBridge(selected);\n }\n }\n}\n\nconst DB_NAME = 'DXOS';\n\n/**\n * SqlExport layer that wraps SqliteClient to provide export functionality.\n */\nconst SqlExportLayer: Layer.Layer<SqlExport.SqlExport, never, SqliteClient.SqliteClient> = Layer.effect(\n SqlExport.SqlExport,\n Effect.gen(function* () {\n const sql = yield* SqliteClient.SqliteClient;\n return {\n export: sql.export,\n } satisfies SqlExport.Service;\n }),\n);\n\n/**\n * Local SQLite layer for the worker.\n * Uses in-process OPFS via {@link SqliteClient.layerOpfs} (no MessagePort).\n * NOTE: Only usable within a worker.\n */\nconst LocalSqliteOpfsLayer = SqlExportLayer.pipe(\n Layer.provideMerge(SqliteClient.layerOpfs({ dbName: DB_NAME })),\n Layer.provideMerge(Reactivity.layer),\n);\n\n// TODO(wittjosiah): Factor out to a separate module.\nclass WebLockWrapper {\n readonly #key: string;\n #release?: () => void;\n\n constructor(key: string) {\n this.#key = key;\n }\n\n get key(): string {\n return this.#key;\n }\n\n acquire(options: LockOptions = {}) {\n return navigator.locks.request(this.#key, options, async () => {\n await new Promise<void>((resolve) => {\n this.#release = resolve;\n }); // Blocks for the duration of the worker's lifetime.\n this.#release = undefined;\n });\n }\n\n release() {\n this.#release?.();\n this.#release = undefined;\n }\n\n [Symbol.dispose]() {\n this.release();\n }\n}\n", "//\n// Copyright 2022 DXOS.org\n//\n\nimport { Trigger, asyncTimeout } from '@dxos/async';\nimport {\n type IframeServiceBundle,\n PROXY_CONNECTION_TIMEOUT,\n iframeServiceBundle,\n workerServiceBundle,\n} from '@dxos/client-protocol';\nimport { invariant } from '@dxos/invariant';\nimport { log, logInfo } from '@dxos/log';\nimport { type BridgeService } from '@dxos/protocols/proto/dxos/mesh/bridge';\nimport { type ProtoRpcPeer, type RpcPort, createProtoRpcPeer } from '@dxos/rpc';\nimport { Callback, type MaybePromise } from '@dxos/util';\n\nimport { ClientRpcServer, type ClientRpcServerProps, type ClientServicesHost } from '../services';\n\nexport type WorkerSessionProps = {\n serviceHost: ClientServicesHost;\n systemPort: RpcPort;\n appPort: RpcPort;\n // TODO(wittjosiah): Remove shellPort.\n shellPort?: RpcPort;\n readySignal: Trigger<Error | undefined>;\n};\n\n/**\n * Represents a tab connection within the worker.\n */\nexport class WorkerSession {\n private readonly _clientRpc: ClientRpcServer;\n private readonly _shellClientRpc?: ClientRpcServer;\n private readonly _iframeRpc: ProtoRpcPeer<IframeServiceBundle>;\n private readonly _startTrigger = new Trigger();\n private readonly _serviceHost: ClientServicesHost;\n\n public readonly onClose = new Callback<() => Promise<void>>();\n\n @logInfo\n public origin?: string;\n\n @logInfo\n public lockKey?: string;\n\n public bridgeService?: BridgeService;\n\n constructor({ serviceHost, systemPort, appPort, shellPort, readySignal }: WorkerSessionProps) {\n invariant(serviceHost);\n this._serviceHost = serviceHost;\n\n const middleware: Pick<ClientRpcServerProps, 'handleCall' | 'handleStream'> = {\n handleCall: async (method, params, handler, options) => {\n const error = await readySignal.wait({ timeout: PROXY_CONNECTION_TIMEOUT });\n if (error) {\n throw error;\n }\n\n return handler(method, params, options);\n },\n handleStream: async (method, params, handler, options) => {\n const error = await readySignal.wait({ timeout: PROXY_CONNECTION_TIMEOUT });\n if (error) {\n throw error;\n }\n\n return handler(method, params, options);\n },\n };\n\n this._clientRpc = new ClientRpcServer({\n serviceRegistry: this._serviceHost.serviceRegistry,\n port: appPort,\n ...middleware,\n });\n\n this._shellClientRpc = shellPort\n ? new ClientRpcServer({\n serviceRegistry: this._serviceHost.serviceRegistry,\n port: shellPort,\n ...middleware,\n })\n : undefined;\n\n this._iframeRpc = createProtoRpcPeer({\n requested: iframeServiceBundle,\n exposed: workerServiceBundle,\n handlers: {\n WorkerService: {\n start: async (request) => {\n this.origin = request.origin;\n this.lockKey = request.lockKey;\n this._startTrigger.wake();\n },\n\n stop: async () => {\n setTimeout(async () => {\n try {\n await this.close();\n } catch (err: any) {\n log.catch(err);\n }\n });\n },\n },\n },\n port: systemPort,\n timeout: 1_000, // With low timeout heartbeat may fail if the tab's thread is saturated.\n });\n\n this.bridgeService = this._iframeRpc.rpc.BridgeService;\n }\n\n async open(): Promise<void> {\n log('opening...');\n await Promise.all([this._clientRpc.open(), this._iframeRpc.open(), this._maybeOpenShell()]);\n\n // Wait until the worker's RPC service has started.\n await this._startTrigger.wait({ timeout: PROXY_CONNECTION_TIMEOUT });\n\n // TODO(burdon): Comment required.\n if (this.lockKey) {\n void this._afterLockReleases(this.lockKey, () => this.close());\n }\n\n log('opened');\n }\n\n async close(): Promise<void> {\n log.debug('closing...');\n try {\n await this.onClose.callIfSet();\n } catch (err: any) {\n log.catch(err);\n }\n\n await Promise.all([this._clientRpc.close(), this._iframeRpc.close()]);\n log.debug('closed');\n }\n\n private async _maybeOpenShell(): Promise<void> {\n try {\n this._shellClientRpc && (await asyncTimeout(this._shellClientRpc.open(), 1_000));\n } catch {\n log.info('No shell connected.');\n }\n }\n\n private _afterLockReleases(lockKey: string, callback: () => MaybePromise<void>): Promise<void> {\n return navigator.locks\n .request(lockKey, () => {\n // No-op.\n })\n .then(callback);\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,0BAAc;AAGd,0BAAc;;;ACHd,SAA6DA,cAAc;AAC3E,SAASC,aAAa;AACtB,SAASC,SAAkDC,uBAAuB;AAClF,SAASC,YAAYC,aAAa;;;;;;;AAsB3B,IAAMC,kBAAN,MAAMA;EACMC;EACAC;EACAC,gBAAgB,oBAAIC,IAAAA;EACpBC;EACAC;EAGAC,eAAe,IAAIT,WAAAA;EAEpC,IACYU,YAAY;AACtB,WAAOC,OAAOC,KAAK,KAAKT,iBAAiBU,QAAQ;EACnD;EAEA,YAAYC,QAA8B;AACxC,UAAM,EAAEC,iBAAiBC,YAAYC,cAAc,GAAGC,WAAAA,IAAeJ;AACrE,SAAKP,cAAcS;AACnB,SAAKR,gBAAgBS;AAErB,SAAKd,mBAAmBY;AACxB,SAAKX,WAAW,IAAIN,QAAQ;MAC1B,GAAGoB;MACHC,aAAa,CAACC,QAAQN,SAAQO,YAAAA;AAC5B,cAAM,CAACC,aAAaC,UAAAA,IAAcxB,gBAAgBqB,MAAAA;AAClD,cAAMI,UAAU,CAACJ,SAAgBN,SAAaW,mBAC5C,KAAKC,mBAAmBJ,WAAAA,EAAaK,KAAKP,SAAQN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mBAAAA,gBAAAA,CAAAA;IAEJ,uBAAsB;EAEtB;;EAEA,YAAA,KAAA;AAEIC,SAAAA,OAAc;;EAElB,IAAA,MAAA;AAEAC,WAAQC,KAAAA;;UAEJ,UAAUC,CAAAA,GAAAA;qBACH,MAAQ,QAAGC,KAAAA,MAAAA,SAAAA,YAAAA;AAClB,YAAI,IAAA,QAAA,CAAA,YAAA;AACA,aAAC,WAAWlC;MAClB,CAAA;AACF,WAAA,WAAA;IAEAW,CAAAA;;YAEO;AACP,SAAA,WAAA;AAECwB,SAAOzB,WAAW;;EAEnB,CAAA,OAAA,OAAA,IAAA;AACF,SAAA,QAAA;;;",
|
|
6
|
-
"names": ["Stream", "raise", "RpcPeer", "parseMethodName", "MapCounter", "trace", "ClientRpcServer", "_serviceRegistry", "_rpcPeer", "_handlerCache", "Map", "_handleCall", "_handleStream", "_callMetrics", "_services", "Object", "keys", "services", "params", "serviceRegistry", "handleCall", "handleStream", "rpcOptions", "callHandler", "method", "options", "serviceName", "methodName", "handler", "handlerOptions", "_getServiceHandler", "call", "inc", "streamHandler", "callStream", "map", "unwrapPromise", "data", "open", "close", "has", "key", "descriptor", "entries", "descriptors", "find", "name", "Error", "service", "set", "createServer", "get", "metricsCounter", "info", "resource", "InvalidConfigError", "Runtime", "StorageType", "createStorage", "DX_DATA", "Runtime", "isNode", "getRootPath", "config", "dataRoot", "isPersistent", "persistent", "dataStore", "undefined", "Client", "Storage", "StorageDriver", "RAM", "StorageDriver", "Runtime", "createStorageObjects", "config", "persistent", "keyStore", "dataStore", "RAM", "InvalidConfigError", "message", "undefined", "storage", "createStorage", "type", "toStorageType", "StorageType", "root", "getRootPath", "CHROME", "FIREFOX", "IDB", "NODE", "WEBFS", "Error", "path", "PublicKey", "createLevel", "createKV", "createLevel", "config", "persistent", "isPersistent", "storagePath", "path", "join", "getRootPath", "PublicKey", "random", "toHex", "level", "createKV", "open", "cbor", "invariant", "log", "ProfileArchiveEntryType", "arrayToBuffer", "encodeProfileArchive", "exportProfileData", "storage", "level", "archive", "meta", "timestamp", "info", "count", "files", "length", "filename", "file", "directory", "getOrCreateFile", "data", "size", "push", "type", "FILE", "key", "value", "keyEncoding", "valueEncoding", "KEY_VALUE", "entry", "Uint8Array", "write", "batch", "total", "progress", "ProfileArchiveEntryType", "OPFS_SQLITE_DB_FILENAME", "SQLITE_MAGIC", "TextEncoder", "encode", "isValidSqliteDatabase", "bytes", "byteLength", "index", "coerceToUint8Array", "value", "Uint8Array", "ArrayBuffer", "Array", "isArray", "undefined", "createSqliteProfileArchive", "opfsFilename", "database", "options", "Error", "meta", "timestamp", "Date", "toISOString", "origin", "storage", "type", "SQLITE_DATABASE", "key", "getSqliteProfileEntries", "archive", "entries", "entry", "push", "Reactivity", "Effect", "Layer", "ManagedRuntime", "Trigger", "DEFAULT_WORKER_BROADCAST_CHANNEL", "Context", "invariant", "log", "MemorySignalManager", "MemorySignalManagerContext", "WebsocketSignalManager", "setIdentityTags", "RtcTransportProxyFactory", "SqlExport", "SqliteClient", "SqlTransaction", "PROXY_CONNECTION_TIMEOUT", "iframeServiceBundle", "invariant", "log", "createProtoRpcPeer", "Callback", "ClientRpcServer", "_clientRpc", "_shellClientRpc", "_iframeRpc", "_startTrigger", "_serviceHost", "onClose", "origin", "lockKey", "bridgeService", "invariant", "serviceHost", "handleCall", "error", "readySignal", "timeout", "PROXY_CONNECTION_TIMEOUT", "handleStream", "wait", "serviceRegistry", "port", "appPort", "middleware", "shellPort", "undefined", "requested", "iframeServiceBundle", "exposed", "workerServiceBundle", "handlers", "WorkerService", "request", "stop", "setTimeout", "err", "catch", "log", "__dxlog_file", "open", "_maybeOpenShell", "_afterLockReleases", "close", "info", "navigator", "__dxlog_file", "_acquireLock", "_releaseLock", "_onStop", "_transportFactory", "_ready", "_sessions", "Set", "_clientServices", "_channel", "_automaticallyConnectWebrtc", "_livenessLock", "_broadcastChannel", "_sessionForNetworking", "_config", "_signalMetadataTags", "_signalTelemetryEnabled", "_runtime", "DEFAULT_WORKER_BROADCAST_CHANNEL", "acquireLock", "releaseLock", "onStop", "channel", "sqliteLayer", "log", "SqlTransaction", "provideMerge", "LocalSqliteOpfsLayer", "callbacks", "runtime", "runtimeEffect", "runtimeProps", "autoActivateSpaces", "host", "livenessLockKey", "start", "action", "stop", "observabilityGroup", "group", "signals", "get", "initialize", "config", "signalManager", "transportFactory", "undefined", "setIdentityTags", "identityService", "services", "IdentityService", "devicesService", "setTag", "v", "error", "close", "dispose", "release", "signalTelemetryEnabled", "serviceHost", "appPort", "systemPort", "shellPort", "readySignal", "session", "invariant", "add", "_reconnectWebrtc", "setBridgeService", "connectWebrtcBridge", "selected", "export", "sql", "Layer", "Reactivity", "WebLockWrapper", "key", "acquire", "options", "Promise", "resolve", "Symbol"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/packlets/devtools/feeds.ts":{"bytes":14175,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/devtools/keys.ts":{"bytes":1988,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/devtools/metadata.ts":{"bytes":1778,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/devtools/network.ts":{"bytes":12276,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/devtools/spaces.ts":{"bytes":5909,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/devtools/devtools.ts":{"bytes":18268,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"src/packlets/devtools/feeds.ts","kind":"import-statement","original":"./feeds"},{"path":"src/packlets/devtools/keys.ts","kind":"import-statement","original":"./keys"},{"path":"src/packlets/devtools/metadata.ts","kind":"import-statement","original":"./metadata"},{"path":"src/packlets/devtools/network.ts","kind":"import-statement","original":"./network"},{"path":"src/packlets/devtools/spaces.ts","kind":"import-statement","original":"./spaces"}],"format":"esm"},"src/packlets/devtools/index.ts":{"bytes":626,"imports":[{"path":"src/packlets/devtools/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"src/packlets/devtools/feeds.ts","kind":"import-statement","original":"./feeds"},{"path":"src/packlets/devtools/network.ts","kind":"import-statement","original":"./network"},{"path":"src/packlets/devtools/spaces.ts","kind":"import-statement","original":"./spaces"}],"format":"esm"},"src/version.ts":{"bytes":520,"imports":[],"format":"esm"},"src/packlets/services/platform.ts":{"bytes":4757,"imports":[{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/diagnostics/diagnostics.ts":{"bytes":23788,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"src/version.ts","kind":"import-statement","original":"../../version"},{"path":"src/packlets/services/platform.ts","kind":"import-statement","original":"../services/platform"}],"format":"esm"},"src/packlets/diagnostics/diagnostics-broadcast.ts":{"bytes":1743,"imports":[],"format":"esm"},"src/packlets/diagnostics/diagnostics-collector.ts":{"bytes":7938,"imports":[{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/diagnostics/diagnostics-broadcast.ts","kind":"import-statement","original":"./diagnostics-broadcast"}],"format":"esm"},"src/packlets/diagnostics/index.ts":{"bytes":624,"imports":[{"path":"src/packlets/diagnostics/diagnostics.ts","kind":"import-statement","original":"./diagnostics"},{"path":"src/packlets/diagnostics/diagnostics-collector.ts","kind":"import-statement","original":"./diagnostics-collector"},{"path":"#diagnostics-broadcast","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/identity/authenticator.ts":{"bytes":11065,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/spaces/automerge-space-state.ts":{"bytes":5660,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/spaces/edge-feed-replicator.ts":{"bytes":41637,"imports":[{"path":"cbor-x","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/buf","kind":"import-statement","external":true},{"path":"@dxos/protocols/buf/dxos/edge/messenger_pb","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/spaces/epoch-migrations.ts":{"bytes":7838,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/spaces/notarization-plugin.ts":{"bytes":48435,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/spaces/data-space.ts":{"bytes":79354,"imports":[{"path":"@automerge/automerge","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"src/packlets/spaces/automerge-space-state.ts","kind":"import-statement","original":"./automerge-space-state"},{"path":"src/packlets/spaces/edge-feed-replicator.ts","kind":"import-statement","original":"./edge-feed-replicator"},{"path":"src/packlets/spaces/epoch-migrations.ts","kind":"import-statement","original":"./epoch-migrations"},{"path":"src/packlets/spaces/notarization-plugin.ts","kind":"import-statement","original":"./notarization-plugin"}],"format":"esm"},"src/packlets/spaces/genesis.ts":{"bytes":9481,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/spaces/data-space-manager.ts":{"bytes":97225,"imports":[{"path":"@automerge/automerge-repo","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/echo/metadata","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"src/packlets/spaces/data-space.ts","kind":"import-statement","original":"./data-space"},{"path":"src/packlets/spaces/genesis.ts","kind":"import-statement","original":"./genesis"}],"format":"esm"},"src/packlets/space-export/archive-format.ts":{"bytes":4778,"imports":[{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/space-export/serialized-space-reader.ts":{"bytes":14052,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/space-export/serialized-space-writer.ts":{"bytes":28606,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/space-export/space-archive-reader.ts":{"bytes":13094,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@obsidize/tar-browserify","kind":"dynamic-import","external":true}],"format":"esm"},"src/packlets/space-export/space-archive-writer.ts":{"bytes":13533,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@obsidize/tar-browserify","kind":"dynamic-import","external":true}],"format":"esm"},"src/packlets/space-export/index.ts":{"bytes":880,"imports":[{"path":"src/packlets/space-export/archive-format.ts","kind":"import-statement","original":"./archive-format"},{"path":"src/packlets/space-export/serialized-space-reader.ts","kind":"import-statement","original":"./serialized-space-reader"},{"path":"src/packlets/space-export/serialized-space-writer.ts","kind":"import-statement","original":"./serialized-space-writer"},{"path":"src/packlets/space-export/space-archive-reader.ts","kind":"import-statement","original":"./space-archive-reader"},{"path":"src/packlets/space-export/space-archive-writer.ts","kind":"import-statement","original":"./space-archive-writer"}],"format":"esm"},"src/packlets/spaces/spaces-service.ts":{"bytes":71208,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"src/packlets/space-export/index.ts","kind":"import-statement","original":"../space-export"}],"format":"esm"},"src/packlets/spaces/index.ts":{"bytes":718,"imports":[{"path":"src/packlets/spaces/data-space-manager.ts","kind":"import-statement","original":"./data-space-manager"},{"path":"src/packlets/spaces/data-space.ts","kind":"import-statement","original":"./data-space"},{"path":"src/packlets/spaces/spaces-service.ts","kind":"import-statement","original":"./spaces-service"},{"path":"src/packlets/spaces/edge-feed-replicator.ts","kind":"import-statement","original":"./edge-feed-replicator"}],"format":"esm"},"src/packlets/identity/identity.ts":{"bytes":26092,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"},{"path":"src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"}],"format":"esm"},"src/packlets/identity/identity-manager.ts":{"bytes":51598,"imports":[{"path":"platform","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"src/packlets/identity/identity.ts","kind":"import-statement","original":"./identity"}],"format":"esm"},"src/packlets/identity/identity-service.ts":{"bytes":16127,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/identity/index.ts":{"bytes":697,"imports":[{"path":"src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"src/packlets/identity/identity.ts","kind":"import-statement","original":"./identity"},{"path":"src/packlets/identity/identity-manager.ts","kind":"import-statement","original":"./identity-manager"},{"path":"src/packlets/identity/identity-service.ts","kind":"import-statement","original":"./identity-service"}],"format":"esm"},"src/packlets/invitations/device-invitation-protocol.ts":{"bytes":12720,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/invitations/utils.ts":{"bytes":3787,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/invitations/edge-invitation-handler.ts":{"bytes":22896,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"src/packlets/invitations/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/packlets/invitations/invitation-guest-extenstion.ts":{"bytes":14637,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"src/packlets/invitations/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/packlets/invitations/invitation-host-extension.ts":{"bytes":38088,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"src/packlets/invitations/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/packlets/invitations/invitation-state.ts":{"bytes":10694,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"src/packlets/invitations/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/packlets/invitations/invitation-topology.ts":{"bytes":10781,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/invitations/invitations-handler.ts":{"bytes":76574,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/invitations/edge-invitation-handler.ts","kind":"import-statement","original":"./edge-invitation-handler"},{"path":"src/packlets/invitations/invitation-guest-extenstion.ts","kind":"import-statement","original":"./invitation-guest-extenstion"},{"path":"src/packlets/invitations/invitation-host-extension.ts","kind":"import-statement","original":"./invitation-host-extension"},{"path":"src/packlets/invitations/invitation-state.ts","kind":"import-statement","original":"./invitation-state"},{"path":"src/packlets/invitations/invitation-topology.ts","kind":"import-statement","original":"./invitation-topology"}],"format":"esm"},"src/packlets/invitations/invitations-service.ts":{"bytes":14449,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/invitations/space-invitation-protocol.ts":{"bytes":26149,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"src/packlets/invitations/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/packlets/invitations/invitations-manager.ts":{"bytes":44545,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"src/packlets/invitations/invitations-handler.ts","kind":"import-statement","original":"./invitations-handler"}],"format":"esm"},"src/packlets/invitations/index.ts":{"bytes":960,"imports":[{"path":"src/packlets/invitations/device-invitation-protocol.ts","kind":"import-statement","original":"./device-invitation-protocol"},{"path":"src/packlets/invitations/invitations-handler.ts","kind":"import-statement","original":"./invitations-handler"},{"path":"src/packlets/invitations/invitations-service.ts","kind":"import-statement","original":"./invitations-service"},{"path":"src/packlets/invitations/space-invitation-protocol.ts","kind":"import-statement","original":"./space-invitation-protocol"},{"path":"src/packlets/invitations/invitations-manager.ts","kind":"import-statement","original":"./invitations-manager"}],"format":"esm"},"src/packlets/locks/index.ts":{"bytes":441,"imports":[{"path":"#locks-platform","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/services/client-rpc-server.ts":{"bytes":13297,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/services/feed-syncer.ts":{"bytes":63798,"imports":[{"path":"cbor-x","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/feed","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/buf","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/agents/edge-agent-manager.ts":{"bytes":25615,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/echo/metadata","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/agents/edge-agent-service.ts":{"bytes":9008,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/agents/index.ts":{"bytes":516,"imports":[{"path":"src/packlets/agents/edge-agent-manager.ts","kind":"import-statement","original":"./edge-agent-manager"},{"path":"src/packlets/agents/edge-agent-service.ts","kind":"import-statement","original":"./edge-agent-service"}],"format":"esm"},"src/packlets/identity/identity-recovery-manager.ts":{"bytes":26052,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/services/sqlite-storage.ts":{"bytes":43218,"imports":[{"path":"@effect/sql/SqlClient","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/services/service-context.ts":{"bytes":79006,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/agents/index.ts","kind":"import-statement","original":"../agents"},{"path":"src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"src/packlets/identity/identity-recovery-manager.ts","kind":"import-statement","original":"../identity/identity-recovery-manager"},{"path":"src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"},{"path":"src/packlets/services/feed-syncer.ts","kind":"import-statement","original":"./feed-syncer"},{"path":"src/packlets/services/sqlite-storage.ts","kind":"import-statement","original":"./sqlite-storage"}],"format":"esm"},"src/packlets/devices/devices-service.ts":{"bytes":12336,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/devices/index.ts":{"bytes":395,"imports":[{"path":"src/packlets/devices/devices-service.ts","kind":"import-statement","original":"./devices-service"}],"format":"esm"},"src/packlets/identity/contacts-service.ts":{"bytes":11304,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/logging/logging-service.ts":{"bytes":18979,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/logging/index.ts":{"bytes":395,"imports":[{"path":"src/packlets/logging/logging-service.ts","kind":"import-statement","original":"./logging-service"}],"format":"esm"},"src/packlets/network/network-service.ts":{"bytes":10000,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/network/index.ts":{"bytes":395,"imports":[{"path":"src/packlets/network/network-service.ts","kind":"import-statement","original":"./network-service"}],"format":"esm"},"src/packlets/system/system-service.ts":{"bytes":9275,"imports":[{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/services/platform.ts","kind":"import-statement","original":"../services/platform"}],"format":"esm"},"src/packlets/system/index.ts":{"bytes":394,"imports":[{"path":"src/packlets/system/system-service.ts","kind":"import-statement","original":"./system-service"}],"format":"esm"},"src/packlets/services/service-registry.ts":{"bytes":2633,"imports":[],"format":"esm"},"src/packlets/services/service-host.ts":{"bytes":53722,"imports":[{"path":"@effect/sql/SqlClient","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlExport","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/websocket-rpc","kind":"import-statement","external":true},{"path":"src/packlets/agents/index.ts","kind":"import-statement","original":"../agents"},{"path":"src/packlets/devices/index.ts","kind":"import-statement","original":"../devices"},{"path":"src/packlets/devtools/index.ts","kind":"import-statement","original":"../devtools"},{"path":"src/packlets/diagnostics/index.ts","kind":"import-statement","original":"../diagnostics"},{"path":"src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"src/packlets/identity/contacts-service.ts","kind":"import-statement","original":"../identity/contacts-service"},{"path":"src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"src/packlets/locks/index.ts","kind":"import-statement","original":"../locks"},{"path":"src/packlets/logging/index.ts","kind":"import-statement","original":"../logging"},{"path":"src/packlets/network/index.ts","kind":"import-statement","original":"../network"},{"path":"src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"},{"path":"src/packlets/system/index.ts","kind":"import-statement","original":"../system"},{"path":"src/packlets/services/service-context.ts","kind":"import-statement","original":"./service-context"},{"path":"src/packlets/services/service-registry.ts","kind":"import-statement","original":"./service-registry"}],"format":"esm"},"src/packlets/services/index.ts":{"bytes":815,"imports":[{"path":"src/packlets/services/client-rpc-server.ts","kind":"import-statement","original":"./client-rpc-server"},{"path":"src/packlets/services/feed-syncer.ts","kind":"import-statement","original":"./feed-syncer"},{"path":"src/packlets/services/service-context.ts","kind":"import-statement","original":"./service-context"},{"path":"src/packlets/services/service-host.ts","kind":"import-statement","original":"./service-host"},{"path":"src/packlets/services/service-registry.ts","kind":"import-statement","original":"./service-registry"}],"format":"esm"},"src/packlets/storage/util.ts":{"bytes":2319,"imports":[{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/storage/storage.ts":{"bytes":6968,"imports":[{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"src/packlets/storage/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/packlets/storage/level.ts":{"bytes":2353,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/kv-store","kind":"import-statement","external":true},{"path":"src/packlets/storage/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/packlets/storage/profile-archive.ts":{"bytes":13651,"imports":[{"path":"@automerge/automerge-repo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/storage/profile-archive-sqlite.ts":{"bytes":8353,"imports":[{"path":"@dxos/protocols","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/storage/index.ts":{"bytes":685,"imports":[{"path":"src/packlets/storage/storage.ts","kind":"import-statement","original":"./storage"},{"path":"src/packlets/storage/level.ts","kind":"import-statement","original":"./level"},{"path":"src/packlets/storage/profile-archive.ts","kind":"import-statement","original":"./profile-archive"},{"path":"src/packlets/storage/profile-archive-sqlite.ts","kind":"import-statement","original":"./profile-archive-sqlite"}],"format":"esm"},"src/packlets/worker/worker-session.ts":{"bytes":16235,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/packlets/services/index.ts","kind":"import-statement","original":"../services"}],"format":"esm"},"src/packlets/worker/worker-runtime.ts":{"bytes":39346,"imports":[{"path":"@effect/experimental/Reactivity","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlExport","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqliteClient","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlTransaction","kind":"import-statement","external":true},{"path":"src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"src/packlets/worker/worker-session.ts","kind":"import-statement","original":"./worker-session"}],"format":"esm"},"src/packlets/worker/index.ts":{"bytes":496,"imports":[{"path":"src/packlets/worker/worker-runtime.ts","kind":"import-statement","original":"./worker-runtime"},{"path":"src/packlets/worker/worker-session.ts","kind":"import-statement","original":"./worker-session"}],"format":"esm"},"src/index.ts":{"bytes":1515,"imports":[{"path":"src/packlets/devtools/index.ts","kind":"import-statement","original":"./packlets/devtools"},{"path":"src/packlets/diagnostics/index.ts","kind":"import-statement","original":"./packlets/diagnostics"},{"path":"src/packlets/identity/index.ts","kind":"import-statement","original":"./packlets/identity"},{"path":"src/packlets/invitations/index.ts","kind":"import-statement","original":"./packlets/invitations"},{"path":"src/packlets/locks/index.ts","kind":"import-statement","original":"./packlets/locks"},{"path":"src/packlets/services/index.ts","kind":"import-statement","original":"./packlets/services"},{"path":"src/packlets/space-export/index.ts","kind":"import-statement","original":"./packlets/space-export"},{"path":"src/packlets/spaces/index.ts","kind":"import-statement","original":"./packlets/spaces"},{"path":"src/packlets/storage/index.ts","kind":"import-statement","original":"./packlets/storage"},{"path":"src/packlets/worker/index.ts","kind":"import-statement","original":"./packlets/worker"},{"path":"src/packlets/agents/index.ts","kind":"import-statement","original":"./packlets/agents"}],"format":"esm"},"src/packlets/testing/credential-utils.ts":{"bytes":2184,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/testing/invitation-utils.ts":{"bytes":26963,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"src/packlets/services/index.ts","kind":"import-statement","original":"../services"}],"format":"esm"},"src/packlets/testing/test-builder.ts":{"bytes":30705,"imports":[{"path":"@effect/experimental/Reactivity","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/platform","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlTransaction","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"src/packlets/services/sqlite-storage.ts","kind":"import-statement","original":"../services/sqlite-storage"},{"path":"src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"}],"format":"esm"},"src/packlets/testing/index.ts":{"bytes":608,"imports":[{"path":"src/packlets/testing/credential-utils.ts","kind":"import-statement","original":"./credential-utils"},{"path":"src/packlets/testing/invitation-utils.ts","kind":"import-statement","original":"./invitation-utils"},{"path":"src/packlets/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"}],"format":"esm"},"src/testing/index.ts":{"bytes":401,"imports":[{"path":"src/packlets/testing/index.ts","kind":"import-statement","original":"../packlets/testing"}],"format":"esm"},"src/packlets/locks/node.ts":{"bytes":4982,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/lock-file","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/locks/browser.ts":{"bytes":9576,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/packlets/diagnostics/browser-diagnostics-broadcast.ts":{"bytes":9608,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":51097},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-H5YTUD35.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-2DT3MZRL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/kv-store","kind":"import-statement","external":true},{"path":"@automerge/automerge-repo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@effect/experimental/Reactivity","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlExport","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqliteClient","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlTransaction","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ClientRpcServer","ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","DiagnosticsCollector","EdgeAgentManager","EdgeAgentServiceImpl","EdgeFeedReplicator","FeedSyncer","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsManager","InvitationsServiceImpl","OPFS_SQLITE_DB_FILENAME","ServiceContext","ServiceRegistry","SpaceArchiveWriter","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","WorkerRuntime","WorkerSession","buildDatabaseDirectoryFromObjects","createAdmissionKeypair","createAuthProvider","createDiagnostics","createLevel","createSqliteProfileArchive","createStorageObjects","decodeProfileArchive","detectSpaceArchiveFormat","encodeProfileArchive","exportProfileData","extractSpaceArchive","getNetworkPeers","getSqliteProfileEntries","importProfileData","isValidSqliteDatabase","objJsonToObjectStructure","objectStructureToObjJson","orderObjJsonFields","readSerializedSpaceArchive","subscribeToFeedBlocks","subscribeToFeeds","subscribeToNetworkStatus","subscribeToNetworkTopics","subscribeToSignal","subscribeToSpaces","subscribeToSwarmInfo","writeSerializedSpaceArchive"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":2893},"src/packlets/services/client-rpc-server.ts":{"bytesInOutput":3441},"src/packlets/storage/storage.ts":{"bytesInOutput":1809},"src/packlets/storage/util.ts":{"bytesInOutput":482},"src/packlets/storage/level.ts":{"bytesInOutput":409},"src/packlets/storage/profile-archive.ts":{"bytesInOutput":4142},"src/packlets/storage/profile-archive-sqlite.ts":{"bytesInOutput":1735},"src/packlets/worker/worker-runtime.ts":{"bytesInOutput":10203},"src/packlets/worker/worker-session.ts":{"bytesInOutput":4631}},"bytes":32721},"dist/lib/node-esm/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":27669},"dist/lib/node-esm/testing/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-H5YTUD35.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-2DT3MZRL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@effect/experimental/Reactivity","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/platform","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlTransaction","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPeer","acceptInvitation","createIdentity","createInvitation","createMockCredential","createPeers","createServiceContext","createServiceHost","createSigningContext","performInvitation","sanitizeInvitation"],"entryPoint":"src/testing/index.ts","inputs":{"src/packlets/testing/credential-utils.ts":{"bytesInOutput":407},"src/packlets/testing/invitation-utils.ts":{"bytesInOutput":6364},"src/packlets/testing/test-builder.ts":{"bytesInOutput":7473},"src/testing/index.ts":{"bytesInOutput":0}},"bytes":15001},"dist/lib/node-esm/chunk-H5YTUD35.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":611063},"dist/lib/node-esm/chunk-H5YTUD35.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-2DT3MZRL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#diagnostics-broadcast","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"cbor-x","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/buf","kind":"import-statement","external":true},{"path":"@dxos/protocols/buf/dxos/edge/messenger_pb","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@automerge/automerge","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@automerge/automerge-repo","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/echo-protocol","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/echo/metadata","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@obsidize/tar-browserify","kind":"dynamic-import","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@obsidize/tar-browserify","kind":"dynamic-import","external":true},{"path":"platform","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"#locks-platform","kind":"import-statement","external":true},{"path":"cbor-x","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/feed","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/buf","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/echo/metadata","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-host","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@effect/sql/SqlClient","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@effect/sql/SqlClient","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/config","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/sql-sqlite/SqlExport","kind":"import-statement","external":true},{"path":"@dxos/tracing","kind":"import-statement","external":true},{"path":"@dxos/websocket-rpc","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf/stream","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","DiagnosticsCollector","EdgeAgentManager","EdgeAgentServiceImpl","EdgeFeedReplicator","FeedSyncer","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsManager","InvitationsServiceImpl","ServiceContext","ServiceRegistry","SpaceArchiveWriter","SpaceInvitationProtocol","SpacesServiceImpl","SqliteStorage","TrustedKeySetAuthVerifier","buildDatabaseDirectoryFromObjects","createAdmissionKeypair","createAuthProvider","createDiagnostics","detectSpaceArchiveFormat","diagnostics_exports","extractSpaceArchive","getNetworkPeers","locks_exports","objJsonToObjectStructure","objectStructureToObjJson","orderObjJsonFields","readSerializedSpaceArchive","subscribeToFeedBlocks","subscribeToFeeds","subscribeToNetworkStatus","subscribeToNetworkTopics","subscribeToSignal","subscribeToSpaces","subscribeToSwarmInfo","writeSerializedSpaceArchive"],"inputs":{"src/packlets/devtools/feeds.ts":{"bytesInOutput":3298},"src/packlets/devtools/network.ts":{"bytesInOutput":2804},"src/packlets/devtools/spaces.ts":{"bytesInOutput":1200},"src/packlets/devtools/devtools.ts":{"bytesInOutput":3260},"src/packlets/devtools/keys.ts":{"bytesInOutput":347},"src/packlets/devtools/metadata.ts":{"bytesInOutput":287},"src/packlets/diagnostics/diagnostics.ts":{"bytesInOutput":5016},"src/version.ts":{"bytesInOutput":29},"src/packlets/services/platform.ts":{"bytesInOutput":1042},"src/packlets/diagnostics/diagnostics-collector.ts":{"bytesInOutput":1794},"src/packlets/diagnostics/index.ts":{"bytesInOutput":294},"src/packlets/identity/authenticator.ts":{"bytesInOutput":2946},"src/packlets/spaces/edge-feed-replicator.ts":{"bytesInOutput":14112},"src/packlets/spaces/data-space.ts":{"bytesInOutput":23092},"src/packlets/identity/identity.ts":{"bytesInOutput":6941},"src/packlets/spaces/data-space-manager.ts":{"bytesInOutput":26169},"src/packlets/spaces/genesis.ts":{"bytesInOutput":2426},"src/packlets/spaces/spaces-service.ts":{"bytesInOutput":20829},"src/packlets/space-export/archive-format.ts":{"bytesInOutput":900},"src/packlets/space-export/serialized-space-reader.ts":{"bytesInOutput":2864},"src/packlets/space-export/serialized-space-writer.ts":{"bytesInOutput":6699},"src/packlets/space-export/space-archive-reader.ts":{"bytesInOutput":3732},"src/packlets/space-export/space-archive-writer.ts":{"bytesInOutput":3344},"src/packlets/identity/identity-manager.ts":{"bytesInOutput":14403},"src/packlets/identity/identity-service.ts":{"bytesInOutput":4417},"src/packlets/spaces/automerge-space-state.ts":{"bytesInOutput":1225},"src/packlets/spaces/epoch-migrations.ts":{"bytesInOutput":1985},"src/packlets/spaces/notarization-plugin.ts":{"bytesInOutput":13521},"src/packlets/invitations/device-invitation-protocol.ts":{"bytesInOutput":3366},"src/packlets/invitations/invitations-handler.ts":{"bytesInOutput":21053},"src/packlets/invitations/edge-invitation-handler.ts":{"bytesInOutput":6535},"src/packlets/invitations/utils.ts":{"bytesInOutput":835},"src/packlets/invitations/invitation-guest-extenstion.ts":{"bytesInOutput":4048},"src/packlets/invitations/invitation-host-extension.ts":{"bytesInOutput":10892},"src/packlets/invitations/invitation-state.ts":{"bytesInOutput":2643},"src/packlets/invitations/invitation-topology.ts":{"bytesInOutput":2571},"src/packlets/invitations/invitations-service.ts":{"bytesInOutput":3385},"src/packlets/invitations/space-invitation-protocol.ts":{"bytesInOutput":8203},"src/packlets/invitations/invitations-manager.ts":{"bytesInOutput":12447},"src/packlets/locks/index.ts":{"bytesInOutput":128},"src/packlets/services/feed-syncer.ts":{"bytesInOutput":16974},"src/packlets/agents/edge-agent-manager.ts":{"bytesInOutput":7995},"src/packlets/agents/edge-agent-service.ts":{"bytesInOutput":2327},"src/packlets/services/service-context.ts":{"bytesInOutput":25880},"src/packlets/identity/identity-recovery-manager.ts":{"bytesInOutput":7493},"src/packlets/services/sqlite-storage.ts":{"bytesInOutput":9226},"src/packlets/services/service-registry.ts":{"bytesInOutput":511},"src/packlets/services/service-host.ts":{"bytesInOutput":14546},"src/packlets/devices/devices-service.ts":{"bytesInOutput":3323},"src/packlets/identity/contacts-service.ts":{"bytesInOutput":2874},"src/packlets/logging/logging-service.ts":{"bytesInOutput":4102},"src/packlets/network/network-service.ts":{"bytesInOutput":2405},"src/packlets/system/system-service.ts":{"bytesInOutput":1937}},"bytes":348848},"dist/lib/node-esm/packlets/locks/node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2287},"dist/lib/node-esm/packlets/locks/node.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/lock-file","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Lock","isLocked"],"entryPoint":"src/packlets/locks/node.ts","inputs":{"src/packlets/locks/node.ts":{"bytesInOutput":1744}},"bytes":1967},"dist/lib/node-esm/packlets/locks/browser.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4561},"dist/lib/node-esm/packlets/locks/browser.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["Lock","isLocked"],"entryPoint":"src/packlets/locks/browser.ts","inputs":{"src/packlets/locks/browser.ts":{"bytesInOutput":2994}},"bytes":3223},"dist/lib/node-esm/packlets/diagnostics/diagnostics-broadcast.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/packlets/diagnostics/diagnostics-broadcast.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-2DT3MZRL.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"}],"exports":["createCollectDiagnosticsBroadcastHandler","createCollectDiagnosticsBroadcastSender"],"entryPoint":"src/packlets/diagnostics/diagnostics-broadcast.ts","inputs":{},"bytes":406},"dist/lib/node-esm/chunk-2DT3MZRL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1075},"dist/lib/node-esm/chunk-2DT3MZRL.mjs":{"imports":[],"exports":["createCollectDiagnosticsBroadcastHandler","createCollectDiagnosticsBroadcastSender"],"inputs":{"src/packlets/diagnostics/diagnostics-broadcast.ts":{"bytesInOutput":250}},"bytes":539},"dist/lib/node-esm/packlets/diagnostics/browser-diagnostics-broadcast.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4349},"dist/lib/node-esm/packlets/diagnostics/browser-diagnostics-broadcast.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-2SZHAWBN.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["createCollectDiagnosticsBroadcastHandler","createCollectDiagnosticsBroadcastSender"],"entryPoint":"src/packlets/diagnostics/browser-diagnostics-broadcast.ts","inputs":{"src/packlets/diagnostics/browser-diagnostics-broadcast.ts":{"bytesInOutput":2288}},"bytes":2634},"dist/lib/node-esm/chunk-2SZHAWBN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/chunk-2SZHAWBN.mjs":{"imports":[],"exports":["__export","__reExport"],"inputs":{},"bytes":1013}}}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import "../../chunk-2SZHAWBN.mjs";
|
|
3
|
-
|
|
4
|
-
// src/packlets/diagnostics/browser-diagnostics-broadcast.ts
|
|
5
|
-
import { Trigger } from "@dxos/async";
|
|
6
|
-
import { log } from "@dxos/log";
|
|
7
|
-
var __dxlog_file = "/__w/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/browser-diagnostics-broadcast.ts";
|
|
8
|
-
var CHANNEL_NAME = "dxos.diagnostics.broadcast";
|
|
9
|
-
var createCollectDiagnosticsBroadcastSender = () => {
|
|
10
|
-
return {
|
|
11
|
-
broadcastDiagnosticsRequest: async () => {
|
|
12
|
-
let expectedResponse = "probe-ack";
|
|
13
|
-
let channel;
|
|
14
|
-
try {
|
|
15
|
-
const trigger = new Trigger();
|
|
16
|
-
channel = new BroadcastChannel(CHANNEL_NAME);
|
|
17
|
-
channel.onmessage = (msg) => {
|
|
18
|
-
if (expectedResponse === msg.data.type) {
|
|
19
|
-
trigger.wake(msg.data);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
channel.postMessage({
|
|
23
|
-
type: "probe"
|
|
24
|
-
});
|
|
25
|
-
await trigger.wait({
|
|
26
|
-
timeout: 200
|
|
27
|
-
});
|
|
28
|
-
expectedResponse = "receive-diagnostics";
|
|
29
|
-
trigger.reset();
|
|
30
|
-
channel.postMessage({
|
|
31
|
-
type: "request-diagnostics"
|
|
32
|
-
});
|
|
33
|
-
const diagnostics = await trigger.wait({
|
|
34
|
-
timeout: 5e3
|
|
35
|
-
});
|
|
36
|
-
return diagnostics.payload;
|
|
37
|
-
} catch (e) {
|
|
38
|
-
const errorDescription = e instanceof Error ? e.message : JSON.stringify(e);
|
|
39
|
-
return {
|
|
40
|
-
expectedResponse,
|
|
41
|
-
errorDescription
|
|
42
|
-
};
|
|
43
|
-
} finally {
|
|
44
|
-
safeClose(channel);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
var createCollectDiagnosticsBroadcastHandler = (systemService) => {
|
|
50
|
-
let channel;
|
|
51
|
-
return {
|
|
52
|
-
start: () => {
|
|
53
|
-
channel = new BroadcastChannel(CHANNEL_NAME);
|
|
54
|
-
channel.onmessage = async (message) => {
|
|
55
|
-
try {
|
|
56
|
-
if (message.data.type === "probe") {
|
|
57
|
-
channel?.postMessage({
|
|
58
|
-
type: "probe-ack"
|
|
59
|
-
});
|
|
60
|
-
} else if (message.data.type === "request-diagnostics") {
|
|
61
|
-
const diagnostics = await systemService.getDiagnostics({});
|
|
62
|
-
channel?.postMessage({
|
|
63
|
-
type: "receive-diagnostics",
|
|
64
|
-
payload: diagnostics
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
} catch (error) {
|
|
68
|
-
log.catch(error, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 73, S: void 0 });
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
stop: () => {
|
|
73
|
-
safeClose(channel);
|
|
74
|
-
channel = void 0;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
var safeClose = (channel) => {
|
|
79
|
-
try {
|
|
80
|
-
channel?.close();
|
|
81
|
-
} catch (e) {
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
createCollectDiagnosticsBroadcastHandler,
|
|
86
|
-
createCollectDiagnosticsBroadcastSender
|
|
87
|
-
};
|
|
88
|
-
//# sourceMappingURL=browser-diagnostics-broadcast.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../src/packlets/diagnostics/browser-diagnostics-broadcast.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Trigger } from '@dxos/async';\nimport { log } from '@dxos/log';\nimport { type SystemService } from '@dxos/protocols/proto/dxos/client/services';\n\nimport {\n type CollectDiagnosticsBroadcastHandler,\n type CollectDiagnosticsBroadcastSender,\n} from './diagnostics-collector';\n\nconst CHANNEL_NAME = 'dxos.diagnostics.broadcast';\n\nenum MessageType {\n PROBE = 'probe',\n PROBE_ACK = 'probe-ack',\n REQUEST_DIAGNOSTICS = 'request-diagnostics',\n RECEIVE_DIAGNOSTICS = 'receive-diagnostics',\n}\n\ninterface Message {\n type: MessageType;\n payload?: any;\n}\n\nexport const createCollectDiagnosticsBroadcastSender = (): CollectDiagnosticsBroadcastSender => {\n return {\n broadcastDiagnosticsRequest: async () => {\n let expectedResponse = MessageType.PROBE_ACK;\n let channel: BroadcastChannel | undefined;\n try {\n const trigger = new Trigger<Message>();\n channel = new BroadcastChannel(CHANNEL_NAME);\n channel.onmessage = (msg) => {\n if (expectedResponse === msg.data.type) {\n trigger.wake(msg.data);\n }\n };\n channel.postMessage({ type: MessageType.PROBE });\n await trigger.wait({ timeout: 200 });\n expectedResponse = MessageType.RECEIVE_DIAGNOSTICS;\n trigger.reset();\n channel.postMessage({ type: MessageType.REQUEST_DIAGNOSTICS });\n const diagnostics = await trigger.wait({ timeout: 5000 });\n return diagnostics.payload;\n } catch (e) {\n const errorDescription = e instanceof Error ? e.message : JSON.stringify(e);\n return { expectedResponse, errorDescription };\n } finally {\n safeClose(channel);\n }\n },\n };\n};\n\nexport const createCollectDiagnosticsBroadcastHandler = (\n systemService: SystemService,\n): CollectDiagnosticsBroadcastHandler => {\n let channel: BroadcastChannel | undefined;\n return {\n start: () => {\n channel = new BroadcastChannel(CHANNEL_NAME);\n channel.onmessage = async (message) => {\n try {\n if (message.data.type === MessageType.PROBE) {\n channel?.postMessage({ type: MessageType.PROBE_ACK });\n } else if (message.data.type === MessageType.REQUEST_DIAGNOSTICS) {\n const diagnostics = await systemService.getDiagnostics({});\n channel?.postMessage({\n type: MessageType.RECEIVE_DIAGNOSTICS,\n payload: diagnostics,\n });\n }\n } catch (error) {\n log.catch(error);\n }\n };\n },\n stop: () => {\n safeClose(channel);\n channel = undefined;\n },\n };\n};\n\nconst safeClose = (channel?: BroadcastChannel) => {\n try {\n channel?.close();\n } catch (e) {\n // ignored\n }\n};\n"],
|
|
5
|
-
"mappings": ";;;;AAIA,SAASA,eAAe;AACxB,SAASC,WAAW;AAQpB,IAAA,eAAMC;;IAgBFC,0CAA6B,MAAA;;iCAEvBC,YAAAA;AACJ,UAAI,mBAAA;UACF;UACAA;AACAA,cAAAA,UAAQC,IAAY,QAACC;kBACfC,IAAAA,iBAAqBD,YAAa;gBACpCE,YAAY,CAACF,QAAIG;AACnB,cAAA,qBAAA,IAAA,KAAA,MAAA;AACF,oBAAA,KAAA,IAAA,IAAA;UACAL;;AAA8C,gBAAA,YAAA;UAC9C,MAAMI;;AAA4B,cAAA,QAAA,KAAA;UAClCD,SAAAA;QACAC,CAAAA;AACAJ,2BAAmB;gBAAO,MAAA;AAAkC,gBAAA,YAAA;UAC5D,MAAMM;;AAAiD,cAAA,cAAA,MAAA,QAAA,KAAA;UACvD,SAAOA;QACP,CAAA;AACA,eAAMC,YAAAA;eACN,GAAO;cAAEJ,mBAAAA,aAAAA,QAAAA,EAAAA,UAAAA,KAAAA,UAAAA,CAAAA;eAAkBI;UAAiB;UAC9C;QACEC;MACF,UAAA;AACF,kBAAA,OAAA;MACF;IACA;EAEF;;AAIE,IAAO,2CAAA,CAAA,kBAAA;MACLC;;WAEET,MAAAA;gBACM,IAAA,iBAAA,YAAA;cACF,YAAYK,OAAKK,YAAI;;sBACQ,KAAA,SAAA,SAAA;AAAwB,qBAAA,YAAA;cAC9C,MAAIC;YACT,CAAA;qBACAX,QAASY,KAAAA,SAAY,uBAAA;kBACnBF,cAAI,MAAA,cAAA,eAAA,CAAA,CAAA;qBACJG,YAASP;cACX,MAAA;cACF,SAAA;YACA,CAAOQ;UACPC;QACF,SAAA,OAAA;AACF,cAAA,MAAA,OAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,OAAA,CAAA;QACF;MACAC;;UAEEhB,MAAAA;AACF,gBAAA,OAAA;AACF,gBAAA;IACA;EAEF;;gBAEaiB,CAAAA,YAAAA;AACX,MAAE;AACA,aAAU,MAAA;EACZ,SAAA,GAAA;;;",
|
|
6
|
-
"names": ["Trigger", "log", "CHANNEL_NAME", "broadcastDiagnosticsRequest", "channel", "onmessage", "msg", "expectedResponse", "trigger", "data", "diagnostics", "errorDescription", "safeClose", "start", "type", "message", "postMessage", "payload", "error", "log", "stop", "close"]
|
|
7
|
-
}
|