@dxos/echo-pipeline 0.1.46-next.c3cc04c → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-QCDWBDL4.mjs → chunk-JEULF2QN.mjs} +58 -52
- package/dist/lib/browser/chunk-JEULF2QN.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -3
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +2 -3
- package/dist/lib/browser/testing/index.mjs.map +2 -2
- package/dist/lib/node/index.cjs +58 -53
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +59 -53
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/types/src/dbhost/data-service-host.d.ts.map +1 -1
- package/dist/types/src/metadata/metadata-store.d.ts +0 -6
- package/dist/types/src/metadata/metadata-store.d.ts.map +1 -1
- package/dist/types/src/space/space-manager.d.ts +2 -1
- package/dist/types/src/space/space-manager.d.ts.map +1 -1
- package/dist/types/src/space/space-protocol.d.ts +6 -2
- package/dist/types/src/space/space-protocol.d.ts.map +1 -1
- package/dist/types/src/testing/database-test-rig.d.ts +2 -1
- package/dist/types/src/testing/database-test-rig.d.ts.map +1 -1
- package/dist/types/src/testing/test-agent-builder.d.ts +1 -1
- package/dist/types/src/testing/test-agent-builder.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/dbhost/data-service-host.ts +19 -14
- package/src/metadata/metadata-store.ts +2 -8
- package/src/space/auth.ts +1 -1
- package/src/space/space-manager.ts +9 -1
- package/src/space/space-protocol.ts +12 -4
- package/src/space/space.test.ts +1 -1
- package/src/space/space.ts +1 -1
- package/src/testing/database-test-rig.ts +30 -7
- package/src/testing/test-agent-builder.ts +1 -1
- package/src/tests/database-unit.test.ts +58 -17
- package/dist/lib/browser/chunk-QCDWBDL4.mjs.map +0 -7
package/dist/lib/node/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/core/echo/echo-pipeline/src/errors/errors.ts":{"bytes":5163,"imports":[]},"packages/core/echo/echo-pipeline/src/errors/index.ts":{"bytes":370,"imports":[{"path":"packages/core/echo/echo-pipeline/src/errors/errors.ts","kind":"import-statement","original":"./errors"}]},"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts":{"bytes":18457,"imports":[{"path":"crc-32","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/metadata/index.ts":{"bytes":394,"imports":[{"path":"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts","kind":"import-statement","original":"./metadata-store"}]},"packages/core/echo/echo-pipeline/src/common/codec.ts":{"bytes":1539,"imports":[{"path":"@dxos/hypercore","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/common/feeds.ts":{"bytes":1690,"imports":[{"path":"node:assert","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/common/index.ts":{"bytes":450,"imports":[{"path":"packages/core/echo/echo-pipeline/src/common/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/core/echo/echo-pipeline/src/common/feeds.ts","kind":"import-statement","original":"./feeds"}]},"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts":{"bytes":3445,"imports":[{"path":"debug","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts":{"bytes":9569,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts":{"bytes":36310,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","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/timeframe","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts","kind":"import-statement","original":"./message-selector"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts","kind":"import-statement","original":"./timeframe-clock"}]},"packages/core/echo/echo-pipeline/src/pipeline/index.ts":{"bytes":620,"imports":[{"path":"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts","kind":"import-statement","original":"./pipeline"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts","kind":"import-statement","original":"./timeframe-clock"}]},"packages/core/echo/echo-pipeline/src/space/auth.ts":{"bytes":9511,"imports":[{"path":"node:assert","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/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts":{"bytes":12254,"imports":[{"path":"@dxos/credentials","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/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/pipeline/index.ts","kind":"import-statement","original":"../pipeline"}]},"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts":{"bytes":12136,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts":{"bytes":4884,"imports":[{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts","kind":"import-statement","original":"./data-service-host"}]},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts":{"bytes":8285,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts":{"bytes":5936,"imports":[{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts":{"bytes":6382,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/debug","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}]},"packages/core/echo/echo-pipeline/src/dbhost/index.ts":{"bytes":816,"imports":[{"path":"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts","kind":"import-statement","original":"./data-service-host"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts","kind":"import-statement","original":"./database-host"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts","kind":"import-statement","original":"./snapshot-manager"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts","kind":"import-statement","original":"./snapshot-store"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts","kind":"import-statement","original":"./data-service"}]},"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts":{"bytes":34429,"imports":[{"path":"node:assert","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/echo-db","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/index.ts","kind":"import-statement","original":"../pipeline"}]},"packages/core/echo/echo-pipeline/src/space/space.ts":{"bytes":25137,"imports":[{"path":"node:assert","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/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts","kind":"import-statement","original":"./control-pipeline"},{"path":"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts","kind":"import-statement","original":"./data-pipeline"}]},"packages/core/echo/echo-pipeline/src/space/space-protocol.ts":{"bytes":21662,"imports":[{"path":"@dxos/crypto","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/teleport","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-replicator","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/space/auth.ts","kind":"import-statement","original":"./auth"}]},"packages/core/echo/echo-pipeline/src/space/space-manager.ts":{"bytes":11902,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","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/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"},{"path":"packages/core/echo/echo-pipeline/src/space/space.ts","kind":"import-statement","original":"./space"},{"path":"packages/core/echo/echo-pipeline/src/space/space-protocol.ts","kind":"import-statement","original":"./space-protocol"}]},"packages/core/echo/echo-pipeline/src/space/index.ts":{"bytes":757,"imports":[{"path":"packages/core/echo/echo-pipeline/src/space/auth.ts","kind":"import-statement","original":"./auth"},{"path":"packages/core/echo/echo-pipeline/src/space/space.ts","kind":"import-statement","original":"./space"},{"path":"packages/core/echo/echo-pipeline/src/space/space-manager.ts","kind":"import-statement","original":"./space-manager"},{"path":"packages/core/echo/echo-pipeline/src/space/space-protocol.ts","kind":"import-statement","original":"./space-protocol"},{"path":"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts","kind":"import-statement","original":"./data-pipeline"}]},"packages/core/echo/echo-pipeline/src/index.ts":{"bytes":795,"imports":[{"path":"packages/core/echo/echo-pipeline/src/errors/index.ts","kind":"import-statement","original":"./errors"},{"path":"packages/core/echo/echo-pipeline/src/metadata/index.ts","kind":"import-statement","original":"./metadata"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/index.ts","kind":"import-statement","original":"./pipeline"},{"path":"packages/core/echo/echo-pipeline/src/space/index.ts","kind":"import-statement","original":"./space"},{"path":"packages/core/echo/echo-pipeline/src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"./dbhost"}]},"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts":{"bytes":1362,"imports":[{"path":"@dxos/feed-store/testing","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/common/index.ts","kind":"import-statement","original":"../common"}]},"packages/core/echo/echo-pipeline/src/testing/test-agent-builder.ts":{"bytes":27316,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"},{"path":"packages/core/echo/echo-pipeline/src/metadata/index.ts","kind":"import-statement","original":"../metadata"},{"path":"packages/core/echo/echo-pipeline/src/space/index.ts","kind":"import-statement","original":"../space"},{"path":"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts","kind":"import-statement","original":"./test-feed-builder"}]},"packages/core/echo/echo-pipeline/src/testing/util.ts":{"bytes":8676,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/feed-store/testing","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"}]},"packages/core/echo/echo-pipeline/src/testing/index.ts":{"bytes":591,"imports":[{"path":"packages/core/echo/echo-pipeline/src/testing/test-agent-builder.ts","kind":"import-statement","original":"./test-agent-builder"},{"path":"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts","kind":"import-statement","original":"./test-feed-builder"},{"path":"packages/core/echo/echo-pipeline/src/testing/util.ts","kind":"import-statement","original":"./util"}]}},"outputs":{"packages/core/echo/echo-pipeline/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":111440},"packages/core/echo/echo-pipeline/dist/lib/node/index.cjs":{"imports":[{"path":"crc-32","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/errors","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/feed-store","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/hypercore","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"debug","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/codec-protobuf","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/network-manager","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-replicator","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/echo/echo-pipeline/src/index.ts","inputs":{"packages/core/echo/echo-pipeline/src/index.ts":{"bytesInOutput":1479},"packages/core/echo/echo-pipeline/src/errors/errors.ts":{"bytesInOutput":1196},"packages/core/echo/echo-pipeline/src/errors/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts":{"bytesInOutput":5596},"packages/core/echo/echo-pipeline/src/metadata/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts":{"bytesInOutput":10006},"packages/core/echo/echo-pipeline/src/common/codec.ts":{"bytesInOutput":257},"packages/core/echo/echo-pipeline/src/common/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/common/feeds.ts":{"bytesInOutput":301},"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts":{"bytesInOutput":514},"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts":{"bytesInOutput":3067},"packages/core/echo/echo-pipeline/src/pipeline/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/auth.ts":{"bytesInOutput":2725},"packages/core/echo/echo-pipeline/src/space/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/space.ts":{"bytesInOutput":6888},"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts":{"bytesInOutput":3533},"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts":{"bytesInOutput":9816},"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts":{"bytesInOutput":3224},"packages/core/echo/echo-pipeline/src/dbhost/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts":{"bytesInOutput":859},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts":{"bytesInOutput":2826},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts":{"bytesInOutput":1370},"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts":{"bytesInOutput":1738},"packages/core/echo/echo-pipeline/src/space/space-manager.ts":{"bytesInOutput":3340},"packages/core/echo/echo-pipeline/src/space/space-protocol.ts":{"bytesInOutput":6160}},"bytes":68485},"packages/core/echo/echo-pipeline/dist/lib/node/testing/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":128007},"packages/core/echo/echo-pipeline/dist/lib/node/testing/index.cjs":{"imports":[{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/document-model","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/messaging","kind":"require-call","external":true},{"path":"@dxos/model-factory","kind":"require-call","external":true},{"path":"@dxos/network-manager","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/random-access-storage","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/codec-protobuf","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"crc-32","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/errors","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/feed-store","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/hypercore","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"debug","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/network-manager","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-replicator","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/feed-store/testing","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/document-model","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/feed-store/testing","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/model-factory","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/echo/echo-pipeline/src/testing/index.ts","inputs":{"packages/core/echo/echo-pipeline/src/testing/index.ts":{"bytesInOutput":551},"packages/core/echo/echo-pipeline/src/testing/test-agent-builder.ts":{"bytesInOutput":6823},"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts":{"bytesInOutput":3216},"packages/core/echo/echo-pipeline/src/dbhost/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts":{"bytesInOutput":859},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts":{"bytesInOutput":2815},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts":{"bytesInOutput":1368},"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts":{"bytesInOutput":1736},"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts":{"bytesInOutput":5614},"packages/core/echo/echo-pipeline/src/metadata/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/auth.ts":{"bytesInOutput":2725},"packages/core/echo/echo-pipeline/src/space/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/space.ts":{"bytesInOutput":6888},"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts":{"bytesInOutput":3533},"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts":{"bytesInOutput":10014},"packages/core/echo/echo-pipeline/src/common/codec.ts":{"bytesInOutput":257},"packages/core/echo/echo-pipeline/src/common/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/common/feeds.ts":{"bytesInOutput":301},"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts":{"bytesInOutput":516},"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts":{"bytesInOutput":2948},"packages/core/echo/echo-pipeline/src/pipeline/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts":{"bytesInOutput":9816},"packages/core/echo/echo-pipeline/src/space/space-manager.ts":{"bytesInOutput":3340},"packages/core/echo/echo-pipeline/src/space/space-protocol.ts":{"bytesInOutput":6160},"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts":{"bytesInOutput":188},"packages/core/echo/echo-pipeline/src/testing/util.ts":{"bytesInOutput":2288}},"bytes":75346}}}
|
|
1
|
+
{"inputs":{"packages/core/echo/echo-pipeline/src/errors/errors.ts":{"bytes":5163,"imports":[]},"packages/core/echo/echo-pipeline/src/errors/index.ts":{"bytes":370,"imports":[{"path":"packages/core/echo/echo-pipeline/src/errors/errors.ts","kind":"import-statement","original":"./errors"}]},"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts":{"bytes":18077,"imports":[{"path":"crc-32","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/metadata/index.ts":{"bytes":394,"imports":[{"path":"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts","kind":"import-statement","original":"./metadata-store"}]},"packages/core/echo/echo-pipeline/src/common/codec.ts":{"bytes":1539,"imports":[{"path":"@dxos/hypercore","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/common/feeds.ts":{"bytes":1690,"imports":[{"path":"node:assert","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/common/index.ts":{"bytes":450,"imports":[{"path":"packages/core/echo/echo-pipeline/src/common/codec.ts","kind":"import-statement","original":"./codec"},{"path":"packages/core/echo/echo-pipeline/src/common/feeds.ts","kind":"import-statement","original":"./feeds"}]},"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts":{"bytes":3445,"imports":[{"path":"debug","kind":"import-statement","external":true},{"path":"node:assert","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts":{"bytes":9569,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts":{"bytes":36310,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","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/timeframe","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts","kind":"import-statement","original":"./message-selector"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts","kind":"import-statement","original":"./timeframe-clock"}]},"packages/core/echo/echo-pipeline/src/pipeline/index.ts":{"bytes":620,"imports":[{"path":"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts","kind":"import-statement","original":"./pipeline"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts","kind":"import-statement","original":"./timeframe-clock"}]},"packages/core/echo/echo-pipeline/src/space/auth.ts":{"bytes":9474,"imports":[{"path":"node:assert","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/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts":{"bytes":12254,"imports":[{"path":"@dxos/credentials","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/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/pipeline/index.ts","kind":"import-statement","original":"../pipeline"}]},"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts":{"bytes":12747,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts":{"bytes":4884,"imports":[{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts","kind":"import-statement","original":"./data-service-host"}]},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts":{"bytes":8285,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts":{"bytes":5936,"imports":[{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts":{"bytes":6382,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"@dxos/debug","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}]},"packages/core/echo/echo-pipeline/src/dbhost/index.ts":{"bytes":816,"imports":[{"path":"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts","kind":"import-statement","original":"./data-service-host"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts","kind":"import-statement","original":"./database-host"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts","kind":"import-statement","original":"./snapshot-manager"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts","kind":"import-statement","original":"./snapshot-store"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts","kind":"import-statement","original":"./data-service"}]},"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts":{"bytes":34429,"imports":[{"path":"node:assert","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/echo-db","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/index.ts","kind":"import-statement","original":"../pipeline"}]},"packages/core/echo/echo-pipeline/src/space/space.ts":{"bytes":25108,"imports":[{"path":"node:assert","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/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts","kind":"import-statement","original":"./control-pipeline"},{"path":"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts","kind":"import-statement","original":"./data-pipeline"}]},"packages/core/echo/echo-pipeline/src/space/space-protocol.ts":{"bytes":22388,"imports":[{"path":"@dxos/crypto","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/teleport","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-replicator","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/space/auth.ts","kind":"import-statement","original":"./auth"}]},"packages/core/echo/echo-pipeline/src/space/space-manager.ts":{"bytes":12141,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/debug","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/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"},{"path":"packages/core/echo/echo-pipeline/src/space/space.ts","kind":"import-statement","original":"./space"},{"path":"packages/core/echo/echo-pipeline/src/space/space-protocol.ts","kind":"import-statement","original":"./space-protocol"}]},"packages/core/echo/echo-pipeline/src/space/index.ts":{"bytes":757,"imports":[{"path":"packages/core/echo/echo-pipeline/src/space/auth.ts","kind":"import-statement","original":"./auth"},{"path":"packages/core/echo/echo-pipeline/src/space/space.ts","kind":"import-statement","original":"./space"},{"path":"packages/core/echo/echo-pipeline/src/space/space-manager.ts","kind":"import-statement","original":"./space-manager"},{"path":"packages/core/echo/echo-pipeline/src/space/space-protocol.ts","kind":"import-statement","original":"./space-protocol"},{"path":"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts","kind":"import-statement","original":"./data-pipeline"}]},"packages/core/echo/echo-pipeline/src/index.ts":{"bytes":795,"imports":[{"path":"packages/core/echo/echo-pipeline/src/errors/index.ts","kind":"import-statement","original":"./errors"},{"path":"packages/core/echo/echo-pipeline/src/metadata/index.ts","kind":"import-statement","original":"./metadata"},{"path":"packages/core/echo/echo-pipeline/src/pipeline/index.ts","kind":"import-statement","original":"./pipeline"},{"path":"packages/core/echo/echo-pipeline/src/space/index.ts","kind":"import-statement","original":"./space"},{"path":"packages/core/echo/echo-pipeline/src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"./dbhost"}]},"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts":{"bytes":1362,"imports":[{"path":"@dxos/feed-store/testing","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/common/index.ts","kind":"import-statement","original":"../common"}]},"packages/core/echo/echo-pipeline/src/testing/test-agent-builder.ts":{"bytes":27292,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"},{"path":"packages/core/echo/echo-pipeline/src/metadata/index.ts","kind":"import-statement","original":"../metadata"},{"path":"packages/core/echo/echo-pipeline/src/space/index.ts","kind":"import-statement","original":"../space"},{"path":"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts","kind":"import-statement","original":"./test-feed-builder"}]},"packages/core/echo/echo-pipeline/src/testing/util.ts":{"bytes":8676,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/feed-store/testing","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"packages/core/echo/echo-pipeline/src/dbhost/index.ts","kind":"import-statement","original":"../dbhost"}]},"packages/core/echo/echo-pipeline/src/testing/index.ts":{"bytes":591,"imports":[{"path":"packages/core/echo/echo-pipeline/src/testing/test-agent-builder.ts","kind":"import-statement","original":"./test-agent-builder"},{"path":"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts","kind":"import-statement","original":"./test-feed-builder"},{"path":"packages/core/echo/echo-pipeline/src/testing/util.ts","kind":"import-statement","original":"./util"}]}},"outputs":{"packages/core/echo/echo-pipeline/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":112227},"packages/core/echo/echo-pipeline/dist/lib/node/index.cjs":{"imports":[{"path":"crc-32","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/errors","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/feed-store","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/hypercore","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"debug","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/codec-protobuf","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/network-manager","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-replicator","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/echo/echo-pipeline/src/index.ts","inputs":{"packages/core/echo/echo-pipeline/src/index.ts":{"bytesInOutput":1437},"packages/core/echo/echo-pipeline/src/errors/errors.ts":{"bytesInOutput":1196},"packages/core/echo/echo-pipeline/src/errors/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts":{"bytesInOutput":5647},"packages/core/echo/echo-pipeline/src/metadata/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts":{"bytesInOutput":10006},"packages/core/echo/echo-pipeline/src/common/codec.ts":{"bytesInOutput":257},"packages/core/echo/echo-pipeline/src/common/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/common/feeds.ts":{"bytesInOutput":301},"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts":{"bytesInOutput":514},"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts":{"bytesInOutput":3067},"packages/core/echo/echo-pipeline/src/pipeline/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/auth.ts":{"bytesInOutput":2725},"packages/core/echo/echo-pipeline/src/space/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/space.ts":{"bytesInOutput":6888},"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts":{"bytesInOutput":3533},"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts":{"bytesInOutput":9816},"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts":{"bytesInOutput":3413},"packages/core/echo/echo-pipeline/src/dbhost/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts":{"bytesInOutput":859},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts":{"bytesInOutput":2826},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts":{"bytesInOutput":1370},"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts":{"bytesInOutput":1738},"packages/core/echo/echo-pipeline/src/space/space-manager.ts":{"bytesInOutput":3376},"packages/core/echo/echo-pipeline/src/space/space-protocol.ts":{"bytesInOutput":6235}},"bytes":68775},"packages/core/echo/echo-pipeline/dist/lib/node/testing/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":128784},"packages/core/echo/echo-pipeline/dist/lib/node/testing/index.cjs":{"imports":[{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/document-model","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/messaging","kind":"require-call","external":true},{"path":"@dxos/model-factory","kind":"require-call","external":true},{"path":"@dxos/network-manager","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/random-access-storage","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/codec-protobuf","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"crc-32","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/errors","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/feed-store","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/hypercore","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"debug","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"node:assert","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/credentials","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/network-manager","kind":"require-call","external":true},{"path":"@dxos/teleport","kind":"require-call","external":true},{"path":"@dxos/teleport-extension-replicator","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/feed-store/testing","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/document-model","kind":"require-call","external":true},{"path":"@dxos/echo-db","kind":"require-call","external":true},{"path":"@dxos/feed-store/testing","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/model-factory","kind":"require-call","external":true},{"path":"@dxos/timeframe","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/echo/echo-pipeline/src/testing/index.ts","inputs":{"packages/core/echo/echo-pipeline/src/testing/index.ts":{"bytesInOutput":551},"packages/core/echo/echo-pipeline/src/testing/test-agent-builder.ts":{"bytesInOutput":6815},"packages/core/echo/echo-pipeline/src/dbhost/data-service-host.ts":{"bytesInOutput":3404},"packages/core/echo/echo-pipeline/src/dbhost/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/dbhost/database-host.ts":{"bytesInOutput":859},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-manager.ts":{"bytesInOutput":2815},"packages/core/echo/echo-pipeline/src/dbhost/snapshot-store.ts":{"bytesInOutput":1368},"packages/core/echo/echo-pipeline/src/dbhost/data-service.ts":{"bytesInOutput":1736},"packages/core/echo/echo-pipeline/src/metadata/metadata-store.ts":{"bytesInOutput":5667},"packages/core/echo/echo-pipeline/src/metadata/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/auth.ts":{"bytesInOutput":2725},"packages/core/echo/echo-pipeline/src/space/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/space.ts":{"bytesInOutput":6888},"packages/core/echo/echo-pipeline/src/space/control-pipeline.ts":{"bytesInOutput":3533},"packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts":{"bytesInOutput":10014},"packages/core/echo/echo-pipeline/src/common/codec.ts":{"bytesInOutput":257},"packages/core/echo/echo-pipeline/src/common/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/common/feeds.ts":{"bytesInOutput":301},"packages/core/echo/echo-pipeline/src/pipeline/message-selector.ts":{"bytesInOutput":516},"packages/core/echo/echo-pipeline/src/pipeline/timeframe-clock.ts":{"bytesInOutput":2948},"packages/core/echo/echo-pipeline/src/pipeline/index.ts":{"bytesInOutput":0},"packages/core/echo/echo-pipeline/src/space/data-pipeline.ts":{"bytesInOutput":9816},"packages/core/echo/echo-pipeline/src/space/space-manager.ts":{"bytesInOutput":3376},"packages/core/echo/echo-pipeline/src/space/space-protocol.ts":{"bytesInOutput":6235},"packages/core/echo/echo-pipeline/src/testing/test-feed-builder.ts":{"bytesInOutput":188},"packages/core/echo/echo-pipeline/src/testing/util.ts":{"bytesInOutput":2288}},"bytes":75690}}}
|
|
@@ -80,12 +80,13 @@ var DataServiceHost = class {
|
|
|
80
80
|
this._itemDemuxer.mutation.on(ctx, (message) => {
|
|
81
81
|
var _a;
|
|
82
82
|
const { batch, meta } = message;
|
|
83
|
+
(0, import_node_assert.default)(!meta.clientTag, "Unexpected client tag in mutation message");
|
|
83
84
|
(0, import_log.log)("message", {
|
|
84
85
|
batch,
|
|
85
86
|
meta
|
|
86
87
|
}, {
|
|
87
88
|
file: "data-service-host.ts",
|
|
88
|
-
line:
|
|
89
|
+
line: 51,
|
|
89
90
|
scope: this,
|
|
90
91
|
callSite: (f, a) => f(...a)
|
|
91
92
|
});
|
|
@@ -94,10 +95,12 @@ var DataServiceHost = class {
|
|
|
94
95
|
message.meta.seq
|
|
95
96
|
]);
|
|
96
97
|
(_a = batch.objects) == null ? void 0 : _a.forEach((object) => {
|
|
97
|
-
(0, import_echo_db.setMetadataOnObject)(object,
|
|
98
|
+
(0, import_echo_db.setMetadataOnObject)(object, {
|
|
99
|
+
...meta
|
|
100
|
+
});
|
|
98
101
|
});
|
|
99
102
|
if (clientTag) {
|
|
100
|
-
(0, import_echo_db.tagMutationsInBatch)(batch, clientTag);
|
|
103
|
+
(0, import_echo_db.tagMutationsInBatch)(batch, clientTag, 0);
|
|
101
104
|
}
|
|
102
105
|
next({
|
|
103
106
|
clientTag,
|
|
@@ -109,32 +112,18 @@ var DataServiceHost = class {
|
|
|
109
112
|
});
|
|
110
113
|
}
|
|
111
114
|
async write(request) {
|
|
112
|
-
var _a, _b
|
|
115
|
+
var _a, _b;
|
|
113
116
|
(0, import_node_assert.default)(this._writeStream, "Cannot write mutations in readonly mode");
|
|
114
117
|
(0, import_log.log)("write", {
|
|
115
118
|
clientTag: request.clientTag,
|
|
116
119
|
objectCount: (_b = (_a = request.batch.objects) == null ? void 0 : _a.length) != null ? _b : 0
|
|
117
120
|
}, {
|
|
118
121
|
file: "data-service-host.ts",
|
|
119
|
-
line:
|
|
122
|
+
line: 79,
|
|
120
123
|
scope: this,
|
|
121
124
|
callSite: (f, a) => f(...a)
|
|
122
125
|
});
|
|
123
|
-
const message =
|
|
124
|
-
batch: {
|
|
125
|
-
objects: (_c = request.batch.objects) == null ? void 0 : _c.map((object) => {
|
|
126
|
-
var _a2;
|
|
127
|
-
return {
|
|
128
|
-
...object,
|
|
129
|
-
mutations: (_a2 = object.mutations) == null ? void 0 : _a2.map((mutation) => ({
|
|
130
|
-
...mutation,
|
|
131
|
-
meta: void 0
|
|
132
|
-
})),
|
|
133
|
-
meta: void 0
|
|
134
|
-
};
|
|
135
|
-
})
|
|
136
|
-
}
|
|
137
|
-
};
|
|
126
|
+
const message = createDataMessage(request.batch);
|
|
138
127
|
const receipt = await this._writeStream.write(message, {
|
|
139
128
|
afterWrite: async (receipt2) => {
|
|
140
129
|
if (request.clientTag) {
|
|
@@ -144,7 +133,7 @@ var DataServiceHost = class {
|
|
|
144
133
|
seq: receipt2.seq
|
|
145
134
|
}, {
|
|
146
135
|
file: "data-service-host.ts",
|
|
147
|
-
line:
|
|
136
|
+
line: 88,
|
|
148
137
|
scope: this,
|
|
149
138
|
callSite: (f, a) => f(...a)
|
|
150
139
|
});
|
|
@@ -158,6 +147,24 @@ var DataServiceHost = class {
|
|
|
158
147
|
return receipt;
|
|
159
148
|
}
|
|
160
149
|
};
|
|
150
|
+
var createDataMessage = (batch) => {
|
|
151
|
+
var _a;
|
|
152
|
+
return {
|
|
153
|
+
batch: {
|
|
154
|
+
objects: (_a = batch.objects) == null ? void 0 : _a.map((object) => {
|
|
155
|
+
var _a2;
|
|
156
|
+
return {
|
|
157
|
+
...object,
|
|
158
|
+
mutations: (_a2 = object.mutations) == null ? void 0 : _a2.map((mutation) => ({
|
|
159
|
+
...mutation,
|
|
160
|
+
meta: void 0
|
|
161
|
+
})),
|
|
162
|
+
meta: void 0
|
|
163
|
+
};
|
|
164
|
+
})
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
};
|
|
161
168
|
|
|
162
169
|
// packages/core/echo/echo-pipeline/src/dbhost/database-host.ts
|
|
163
170
|
var import_echo_db2 = require("@dxos/echo-db");
|
|
@@ -394,9 +401,8 @@ var __decorate2 = function(decorators, target, key, desc) {
|
|
|
394
401
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
395
402
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
396
403
|
};
|
|
397
|
-
var STORAGE_VERSION = 1;
|
|
398
404
|
var emptyEchoMetadata = () => ({
|
|
399
|
-
version: STORAGE_VERSION,
|
|
405
|
+
version: import_protocols3.STORAGE_VERSION,
|
|
400
406
|
spaces: [],
|
|
401
407
|
created: new Date(),
|
|
402
408
|
updated: new Date()
|
|
@@ -436,7 +442,7 @@ var MetadataStore = class {
|
|
|
436
442
|
checksum
|
|
437
443
|
}, {
|
|
438
444
|
file: "metadata-store.ts",
|
|
439
|
-
line:
|
|
445
|
+
line: 63,
|
|
440
446
|
scope: this,
|
|
441
447
|
callSite: (f, a) => f(...a)
|
|
442
448
|
});
|
|
@@ -454,7 +460,7 @@ var MetadataStore = class {
|
|
|
454
460
|
err
|
|
455
461
|
}, {
|
|
456
462
|
file: "metadata-store.ts",
|
|
457
|
-
line:
|
|
463
|
+
line: 78,
|
|
458
464
|
scope: this,
|
|
459
465
|
callSite: (f, a) => f(...a)
|
|
460
466
|
});
|
|
@@ -467,7 +473,7 @@ var MetadataStore = class {
|
|
|
467
473
|
var _a;
|
|
468
474
|
const data = {
|
|
469
475
|
...this._metadata,
|
|
470
|
-
version: STORAGE_VERSION,
|
|
476
|
+
version: import_protocols3.STORAGE_VERSION,
|
|
471
477
|
created: (_a = this._metadata.created) != null ? _a : new Date(),
|
|
472
478
|
updated: new Date()
|
|
473
479
|
};
|
|
@@ -485,7 +491,7 @@ var MetadataStore = class {
|
|
|
485
491
|
checksum
|
|
486
492
|
}, {
|
|
487
493
|
file: "metadata-store.ts",
|
|
488
|
-
line:
|
|
494
|
+
line: 109,
|
|
489
495
|
scope: this,
|
|
490
496
|
callSite: (f, a) => f(...a)
|
|
491
497
|
});
|
|
@@ -504,11 +510,12 @@ var MetadataStore = class {
|
|
|
504
510
|
async clear() {
|
|
505
511
|
(0, import_log4.log)("clearing all metadata", {}, {
|
|
506
512
|
file: "metadata-store.ts",
|
|
507
|
-
line:
|
|
513
|
+
line: 125,
|
|
508
514
|
scope: this,
|
|
509
515
|
callSite: (f, a) => f(...a)
|
|
510
516
|
});
|
|
511
517
|
await this._directory.delete();
|
|
518
|
+
this._metadata = emptyEchoMetadata();
|
|
512
519
|
}
|
|
513
520
|
getIdentityRecord() {
|
|
514
521
|
return this._metadata.identity;
|
|
@@ -616,7 +623,7 @@ var AuthExtension = class extends import_teleport.RpcExtension {
|
|
|
616
623
|
(0, import_node_assert4.default)(success, "credential not verified");
|
|
617
624
|
(0, import_async3.runInContext)(this._ctx, () => this._authParams.onAuthSuccess());
|
|
618
625
|
} catch (err) {
|
|
619
|
-
import_log5.log
|
|
626
|
+
(0, import_log5.log)("auth failed", err, {
|
|
620
627
|
file: "auth.ts",
|
|
621
628
|
line: 75,
|
|
622
629
|
scope: this,
|
|
@@ -1638,7 +1645,7 @@ var Space = class Space2 {
|
|
|
1638
1645
|
});
|
|
1639
1646
|
}
|
|
1640
1647
|
async initializeDataPipeline() {
|
|
1641
|
-
import_log10.log
|
|
1648
|
+
(0, import_log10.log)("initializeDataPipeline", {}, {
|
|
1642
1649
|
file: "space.ts",
|
|
1643
1650
|
line: 245,
|
|
1644
1651
|
scope: this,
|
|
@@ -1691,12 +1698,13 @@ var __decorate7 = function(decorators, target, key, desc) {
|
|
|
1691
1698
|
var MOCK_AUTH_PROVIDER = async (nonce) => Buffer.from("mock");
|
|
1692
1699
|
var MOCK_AUTH_VERIFIER = async (nonce, credential) => true;
|
|
1693
1700
|
var SpaceProtocol = class {
|
|
1694
|
-
constructor({ topic, swarmIdentity, networkManager, onSessionAuth }) {
|
|
1701
|
+
constructor({ topic, swarmIdentity, networkManager, onSessionAuth, onAuthFailure }) {
|
|
1695
1702
|
this._feeds = /* @__PURE__ */ new Set();
|
|
1696
1703
|
this._sessions = new import_util6.ComplexMap(import_keys4.PublicKey.hash);
|
|
1697
1704
|
this._networkManager = networkManager;
|
|
1698
1705
|
this._swarmIdentity = swarmIdentity;
|
|
1699
1706
|
this._onSessionAuth = onSessionAuth;
|
|
1707
|
+
this._onAuthFailure = onAuthFailure;
|
|
1700
1708
|
this._topic = import_keys4.PublicKey.from((0, import_crypto3.discoveryKey)((0, import_crypto3.sha256)(topic.toHex())));
|
|
1701
1709
|
}
|
|
1702
1710
|
get sessions() {
|
|
@@ -1714,7 +1722,7 @@ var SpaceProtocol = class {
|
|
|
1714
1722
|
key: feed.key
|
|
1715
1723
|
}, {
|
|
1716
1724
|
file: "space-protocol.ts",
|
|
1717
|
-
line:
|
|
1725
|
+
line: 87,
|
|
1718
1726
|
scope: this,
|
|
1719
1727
|
callSite: (f, a) => f(...a)
|
|
1720
1728
|
});
|
|
@@ -1735,7 +1743,7 @@ var SpaceProtocol = class {
|
|
|
1735
1743
|
};
|
|
1736
1744
|
(0, import_log11.log)("starting...", {}, {
|
|
1737
1745
|
file: "space-protocol.ts",
|
|
1738
|
-
line:
|
|
1746
|
+
line: 110,
|
|
1739
1747
|
scope: this,
|
|
1740
1748
|
callSite: (f, a) => f(...a)
|
|
1741
1749
|
});
|
|
@@ -1748,7 +1756,7 @@ var SpaceProtocol = class {
|
|
|
1748
1756
|
});
|
|
1749
1757
|
(0, import_log11.log)("started", {}, {
|
|
1750
1758
|
file: "space-protocol.ts",
|
|
1751
|
-
line:
|
|
1759
|
+
line: 119,
|
|
1752
1760
|
scope: this,
|
|
1753
1761
|
callSite: (f, a) => f(...a)
|
|
1754
1762
|
});
|
|
@@ -1757,14 +1765,14 @@ var SpaceProtocol = class {
|
|
|
1757
1765
|
if (this._connection) {
|
|
1758
1766
|
(0, import_log11.log)("stopping...", {}, {
|
|
1759
1767
|
file: "space-protocol.ts",
|
|
1760
|
-
line:
|
|
1768
|
+
line: 124,
|
|
1761
1769
|
scope: this,
|
|
1762
1770
|
callSite: (f, a) => f(...a)
|
|
1763
1771
|
});
|
|
1764
1772
|
await this._connection.close();
|
|
1765
1773
|
(0, import_log11.log)("stopped", {}, {
|
|
1766
1774
|
file: "space-protocol.ts",
|
|
1767
|
-
line:
|
|
1775
|
+
line: 126,
|
|
1768
1776
|
scope: this,
|
|
1769
1777
|
callSite: (f, a) => f(...a)
|
|
1770
1778
|
});
|
|
@@ -1775,7 +1783,8 @@ var SpaceProtocol = class {
|
|
|
1775
1783
|
const session = new SpaceProtocolSession({
|
|
1776
1784
|
wireParams,
|
|
1777
1785
|
swarmIdentity: this._swarmIdentity,
|
|
1778
|
-
onSessionAuth: this._onSessionAuth
|
|
1786
|
+
onSessionAuth: this._onSessionAuth,
|
|
1787
|
+
onAuthFailure: this._onAuthFailure
|
|
1779
1788
|
});
|
|
1780
1789
|
this._sessions.set(wireParams.remotePeerId, session);
|
|
1781
1790
|
for (const feed of this._feeds) {
|
|
@@ -1799,7 +1808,7 @@ var AuthStatus;
|
|
|
1799
1808
|
})(AuthStatus || (AuthStatus = {}));
|
|
1800
1809
|
var SpaceProtocolSession = class {
|
|
1801
1810
|
// TODO(dmaretskyi): Allow to pass in extra extensions.
|
|
1802
|
-
constructor({ wireParams, swarmIdentity, onSessionAuth }) {
|
|
1811
|
+
constructor({ wireParams, swarmIdentity, onSessionAuth, onAuthFailure }) {
|
|
1803
1812
|
// TODO(dmaretskyi): Start with upload=false when switching it on the fly works.
|
|
1804
1813
|
this.replicator = new import_teleport_extension_replicator.ReplicatorExtension().setOptions({
|
|
1805
1814
|
upload: true
|
|
@@ -1808,6 +1817,7 @@ var SpaceProtocolSession = class {
|
|
|
1808
1817
|
this._wireParams = wireParams;
|
|
1809
1818
|
this._swarmIdentity = swarmIdentity;
|
|
1810
1819
|
this._onSessionAuth = onSessionAuth;
|
|
1820
|
+
this._onAuthFailure = onAuthFailure;
|
|
1811
1821
|
this._teleport = new import_teleport2.Teleport(wireParams);
|
|
1812
1822
|
}
|
|
1813
1823
|
get authStatus() {
|
|
@@ -1823,23 +1833,19 @@ var SpaceProtocolSession = class {
|
|
|
1823
1833
|
verifier: this._swarmIdentity.credentialAuthenticator,
|
|
1824
1834
|
onAuthSuccess: () => {
|
|
1825
1835
|
var _a;
|
|
1826
|
-
this._authStatus = AuthStatus.SUCCESS;
|
|
1827
1836
|
(0, import_log11.log)("Peer authenticated", {}, {
|
|
1828
1837
|
file: "space-protocol.ts",
|
|
1829
|
-
line:
|
|
1838
|
+
line: 213,
|
|
1830
1839
|
scope: this,
|
|
1831
1840
|
callSite: (f, a) => f(...a)
|
|
1832
1841
|
});
|
|
1842
|
+
this._authStatus = AuthStatus.SUCCESS;
|
|
1833
1843
|
(_a = this._onSessionAuth) == null ? void 0 : _a.call(this, this._teleport);
|
|
1834
1844
|
},
|
|
1835
1845
|
onAuthFailure: () => {
|
|
1836
|
-
|
|
1837
|
-
file: "space-protocol.ts",
|
|
1838
|
-
line: 211,
|
|
1839
|
-
scope: this,
|
|
1840
|
-
callSite: (f, a) => f(...a)
|
|
1841
|
-
});
|
|
1846
|
+
var _a;
|
|
1842
1847
|
this._authStatus = AuthStatus.FAILURE;
|
|
1848
|
+
(_a = this._onAuthFailure) == null ? void 0 : _a.call(this, this._teleport);
|
|
1843
1849
|
}
|
|
1844
1850
|
}));
|
|
1845
1851
|
this._teleport.addExtension("dxos.mesh.teleport.replicator", this.replicator);
|
|
@@ -1887,13 +1893,13 @@ var SpaceManager = class SpaceManager2 {
|
|
|
1887
1893
|
...this._spaces.values()
|
|
1888
1894
|
].map((space) => space.close()));
|
|
1889
1895
|
}
|
|
1890
|
-
async constructSpace({ metadata, swarmIdentity, onNetworkConnection, memberKey }) {
|
|
1896
|
+
async constructSpace({ metadata, swarmIdentity, onNetworkConnection, onAuthFailure, memberKey }) {
|
|
1891
1897
|
var _a;
|
|
1892
1898
|
import_log12.log.trace("dxos.echo.space-manager.construct-space", import_protocols6.trace.begin({
|
|
1893
1899
|
id: this._instanceId
|
|
1894
1900
|
}), {
|
|
1895
1901
|
file: "space-manager.ts",
|
|
1896
|
-
line:
|
|
1902
|
+
line: 81,
|
|
1897
1903
|
scope: this,
|
|
1898
1904
|
callSite: (f, a) => f(...a)
|
|
1899
1905
|
});
|
|
@@ -1901,7 +1907,7 @@ var SpaceManager = class SpaceManager2 {
|
|
|
1901
1907
|
spaceKey: metadata.genesisFeedKey
|
|
1902
1908
|
}, {
|
|
1903
1909
|
file: "space-manager.ts",
|
|
1904
|
-
line:
|
|
1910
|
+
line: 82,
|
|
1905
1911
|
scope: this,
|
|
1906
1912
|
callSite: (f, a) => f(...a)
|
|
1907
1913
|
});
|
|
@@ -1911,7 +1917,8 @@ var SpaceManager = class SpaceManager2 {
|
|
|
1911
1917
|
topic: spaceKey,
|
|
1912
1918
|
swarmIdentity,
|
|
1913
1919
|
networkManager: this._networkManager,
|
|
1914
|
-
onSessionAuth: onNetworkConnection
|
|
1920
|
+
onSessionAuth: onNetworkConnection,
|
|
1921
|
+
onAuthFailure
|
|
1915
1922
|
});
|
|
1916
1923
|
const snapshotManager = new SnapshotManager(this._snapshotStore);
|
|
1917
1924
|
const space = new Space({
|
|
@@ -1929,7 +1936,7 @@ var SpaceManager = class SpaceManager2 {
|
|
|
1929
1936
|
id: this._instanceId
|
|
1930
1937
|
}), {
|
|
1931
1938
|
file: "space-manager.ts",
|
|
1932
|
-
line:
|
|
1939
|
+
line: 108,
|
|
1933
1940
|
scope: this,
|
|
1934
1941
|
callSite: (f, a) => f(...a)
|
|
1935
1942
|
});
|
|
@@ -2036,8 +2043,7 @@ var TestAgent = class {
|
|
|
2036
2043
|
snapshotStore: this.snapshotStore
|
|
2037
2044
|
});
|
|
2038
2045
|
}
|
|
2039
|
-
async createSpace(identityKey = this.identityKey, spaceKey, genesisKey, dataKey) {
|
|
2040
|
-
let saveMetadata = false;
|
|
2046
|
+
async createSpace(identityKey = this.identityKey, spaceKey, genesisKey, dataKey, saveMetadata = false) {
|
|
2041
2047
|
if (!spaceKey) {
|
|
2042
2048
|
saveMetadata = true;
|
|
2043
2049
|
spaceKey = await this.keyring.createKey();
|