@dxos/echo-pipeline 0.3.2-main.d77d2bc → 0.3.2-main.e5374ab
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-65J7PLAQ.mjs → chunk-7IXNAFKL.mjs} +24 -24
- package/dist/lib/browser/chunk-7IXNAFKL.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +6 -5
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/node/index.cjs +23 -23
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +28 -27
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/types/src/common/codec.d.ts +1 -1
- package/dist/types/src/common/codec.d.ts.map +1 -1
- package/dist/types/src/common/feeds.d.ts +2 -2
- package/dist/types/src/common/feeds.d.ts.map +1 -1
- package/dist/types/src/db-host/data-service-host.d.ts +4 -4
- package/dist/types/src/db-host/data-service-host.d.ts.map +1 -1
- package/dist/types/src/db-host/data-service.d.ts +3 -3
- package/dist/types/src/db-host/data-service.d.ts.map +1 -1
- package/dist/types/src/db-host/database-host.d.ts +5 -5
- package/dist/types/src/db-host/database-host.d.ts.map +1 -1
- package/dist/types/src/db-host/snapshot-manager.d.ts +3 -3
- package/dist/types/src/db-host/snapshot-manager.d.ts.map +1 -1
- package/dist/types/src/db-host/snapshot-store.d.ts +2 -2
- package/dist/types/src/db-host/snapshot-store.d.ts.map +1 -1
- package/dist/types/src/metadata/metadata-store.d.ts +3 -3
- package/dist/types/src/metadata/metadata-store.d.ts.map +1 -1
- package/dist/types/src/pipeline/index.d.ts +1 -1
- package/dist/types/src/pipeline/index.d.ts.map +1 -1
- package/dist/types/src/pipeline/message-selector.d.ts +2 -2
- package/dist/types/src/pipeline/message-selector.d.ts.map +1 -1
- package/dist/types/src/pipeline/pipeline.d.ts +2 -2
- package/dist/types/src/pipeline/pipeline.d.ts.map +1 -1
- package/dist/types/src/pipeline/timeframe-clock.d.ts +2 -2
- package/dist/types/src/pipeline/timeframe-clock.d.ts.map +1 -1
- package/dist/types/src/space/auth.d.ts +2 -2
- package/dist/types/src/space/auth.d.ts.map +1 -1
- package/dist/types/src/space/control-pipeline.d.ts +6 -6
- package/dist/types/src/space/control-pipeline.d.ts.map +1 -1
- package/dist/types/src/space/data-pipeline.d.ts +6 -6
- package/dist/types/src/space/data-pipeline.d.ts.map +1 -1
- package/dist/types/src/space/space-manager.d.ts +9 -9
- package/dist/types/src/space/space-manager.d.ts.map +1 -1
- package/dist/types/src/space/space-protocol.d.ts +6 -6
- package/dist/types/src/space/space-protocol.d.ts.map +1 -1
- package/dist/types/src/space/space.d.ts +12 -12
- package/dist/types/src/space/space.d.ts.map +1 -1
- package/dist/types/src/testing/database-test-rig.d.ts +5 -4
- package/dist/types/src/testing/database-test-rig.d.ts.map +1 -1
- package/dist/types/src/testing/test-agent-builder.d.ts +4 -4
- package/dist/types/src/testing/test-agent-builder.d.ts.map +1 -1
- package/dist/types/src/testing/util.d.ts +2 -2
- package/dist/types/src/testing/util.d.ts.map +1 -1
- package/package.json +31 -31
- package/src/common/codec.ts +1 -1
- package/src/common/feeds.ts +2 -2
- package/src/db-host/data-service-host.ts +6 -6
- package/src/db-host/data-service.ts +8 -8
- package/src/db-host/database-host.ts +5 -5
- package/src/db-host/snapshot-manager.ts +3 -3
- package/src/db-host/snapshot-store.test.ts +1 -1
- package/src/db-host/snapshot-store.ts +2 -2
- package/src/metadata/metadata-store.ts +7 -7
- package/src/pipeline/index.ts +1 -1
- package/src/pipeline/message-selector.ts +2 -2
- package/src/pipeline/pipeline-stress.test.ts +3 -3
- package/src/pipeline/pipeline.test.ts +1 -1
- package/src/pipeline/pipeline.ts +2 -2
- package/src/pipeline/timeframe-clock.ts +2 -2
- package/src/space/auth.ts +2 -2
- package/src/space/control-pipeline.test.ts +1 -1
- package/src/space/control-pipeline.ts +10 -10
- package/src/space/data-pipeline.ts +17 -12
- package/src/space/space-manager.ts +9 -9
- package/src/space/space-protocol.ts +10 -10
- package/src/space/space.ts +12 -12
- package/src/testing/database-test-rig.ts +9 -9
- package/src/testing/test-agent-builder.ts +5 -5
- package/src/testing/util.ts +3 -3
- package/src/tests/database-unit.test.ts +3 -3
- package/src/tests/database.test.ts +4 -4
- package/dist/lib/browser/chunk-65J7PLAQ.mjs.map +0 -7
package/dist/lib/node/index.cjs
CHANGED
|
@@ -1526,7 +1526,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1526
1526
|
if (USE_SNAPSHOTS && snapshot) {
|
|
1527
1527
|
await this._processSnapshot(snapshot);
|
|
1528
1528
|
}
|
|
1529
|
-
import_log8.log
|
|
1529
|
+
(0, import_log8.log)("starting...", void 0, {
|
|
1530
1530
|
F: __dxlog_file9,
|
|
1531
1531
|
L: 115,
|
|
1532
1532
|
S: this,
|
|
@@ -1638,7 +1638,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
async stop() {
|
|
1641
|
-
import_log8.log
|
|
1641
|
+
(0, import_log8.log)("stopping...", void 0, {
|
|
1642
1642
|
F: __dxlog_file9,
|
|
1643
1643
|
L: 202,
|
|
1644
1644
|
S: this,
|
|
@@ -1770,7 +1770,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1770
1770
|
write: (data, options) => {
|
|
1771
1771
|
(0, import_invariant8.invariant)(this._pipeline, "Pipeline is not initialized.", {
|
|
1772
1772
|
F: __dxlog_file10,
|
|
1773
|
-
L:
|
|
1773
|
+
L: 159,
|
|
1774
1774
|
S: this,
|
|
1775
1775
|
A: [
|
|
1776
1776
|
"this._pipeline",
|
|
@@ -1779,7 +1779,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1779
1779
|
});
|
|
1780
1780
|
(0, import_invariant8.invariant)(this.currentEpoch, "Epoch is not initialized.", {
|
|
1781
1781
|
F: __dxlog_file10,
|
|
1782
|
-
L:
|
|
1782
|
+
L: 160,
|
|
1783
1783
|
S: this,
|
|
1784
1784
|
A: [
|
|
1785
1785
|
"this.currentEpoch",
|
|
@@ -1805,7 +1805,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
(0, import_log9.log)("close", void 0, {
|
|
1807
1807
|
F: __dxlog_file10,
|
|
1808
|
-
L:
|
|
1808
|
+
L: 184,
|
|
1809
1809
|
S: this,
|
|
1810
1810
|
C: (f, a) => f(...a)
|
|
1811
1811
|
});
|
|
@@ -1820,7 +1820,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1820
1820
|
} catch (err) {
|
|
1821
1821
|
import_log9.log.catch(err, void 0, {
|
|
1822
1822
|
F: __dxlog_file10,
|
|
1823
|
-
L:
|
|
1823
|
+
L: 197,
|
|
1824
1824
|
S: this,
|
|
1825
1825
|
C: (f, a) => f(...a)
|
|
1826
1826
|
});
|
|
@@ -1845,7 +1845,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1845
1845
|
let messageCounter = 0;
|
|
1846
1846
|
(0, import_invariant8.invariant)(this._pipeline, "Pipeline is not initialized.", {
|
|
1847
1847
|
F: __dxlog_file10,
|
|
1848
|
-
L:
|
|
1848
|
+
L: 222,
|
|
1849
1849
|
S: this,
|
|
1850
1850
|
A: [
|
|
1851
1851
|
"this._pipeline",
|
|
@@ -1861,7 +1861,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1861
1861
|
seq
|
|
1862
1862
|
}, {
|
|
1863
1863
|
F: __dxlog_file10,
|
|
1864
|
-
L:
|
|
1864
|
+
L: 228,
|
|
1865
1865
|
S: this,
|
|
1866
1866
|
C: (f, a) => f(...a)
|
|
1867
1867
|
});
|
|
@@ -1873,7 +1873,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1873
1873
|
feedKey
|
|
1874
1874
|
}, {
|
|
1875
1875
|
F: __dxlog_file10,
|
|
1876
|
-
L:
|
|
1876
|
+
L: 234,
|
|
1877
1877
|
S: this,
|
|
1878
1878
|
C: (f, a) => f(...a)
|
|
1879
1879
|
});
|
|
@@ -1896,7 +1896,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1896
1896
|
spaceKey: this._params.spaceKey.toHex()
|
|
1897
1897
|
}, {
|
|
1898
1898
|
F: __dxlog_file10,
|
|
1899
|
-
L:
|
|
1899
|
+
L: 251,
|
|
1900
1900
|
S: this,
|
|
1901
1901
|
C: (f, a) => f(...a)
|
|
1902
1902
|
});
|
|
@@ -1905,7 +1905,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1905
1905
|
} catch (err) {
|
|
1906
1906
|
import_log9.log.catch(err, void 0, {
|
|
1907
1907
|
F: __dxlog_file10,
|
|
1908
|
-
L:
|
|
1908
|
+
L: 261,
|
|
1909
1909
|
S: this,
|
|
1910
1910
|
C: (f, a) => f(...a)
|
|
1911
1911
|
});
|
|
@@ -1920,7 +1920,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1920
1920
|
_createSnapshot() {
|
|
1921
1921
|
(0, import_invariant8.invariant)(this.databaseHost, "Database backend is not initialized.", {
|
|
1922
1922
|
F: __dxlog_file10,
|
|
1923
|
-
L:
|
|
1923
|
+
L: 275,
|
|
1924
1924
|
S: this,
|
|
1925
1925
|
A: [
|
|
1926
1926
|
"this.databaseHost",
|
|
@@ -1949,7 +1949,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1949
1949
|
} catch (err) {
|
|
1950
1950
|
import_log9.log.warn("Failed to cache properties", err, {
|
|
1951
1951
|
F: __dxlog_file10,
|
|
1952
|
-
L:
|
|
1952
|
+
L: 304,
|
|
1953
1953
|
S: this,
|
|
1954
1954
|
C: (f, a) => f(...a)
|
|
1955
1955
|
});
|
|
@@ -1978,14 +1978,14 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1978
1978
|
if (err instanceof import_protocols6.CancelledError) {
|
|
1979
1979
|
(0, import_log9.log)("Epoch processing cancelled.", void 0, {
|
|
1980
1980
|
F: __dxlog_file10,
|
|
1981
|
-
L:
|
|
1981
|
+
L: 340,
|
|
1982
1982
|
S: this,
|
|
1983
1983
|
C: (f, a) => f(...a)
|
|
1984
1984
|
});
|
|
1985
1985
|
} else {
|
|
1986
1986
|
import_log9.log.catch(err, void 0, {
|
|
1987
1987
|
F: __dxlog_file10,
|
|
1988
|
-
L:
|
|
1988
|
+
L: 342,
|
|
1989
1989
|
S: this,
|
|
1990
1990
|
C: (f, a) => f(...a)
|
|
1991
1991
|
});
|
|
@@ -2005,7 +2005,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2005
2005
|
async _processEpoch(ctx, epoch) {
|
|
2006
2006
|
(0, import_invariant8.invariant)(this._isOpen, "Space is closed.", {
|
|
2007
2007
|
F: __dxlog_file10,
|
|
2008
|
-
L:
|
|
2008
|
+
L: 361,
|
|
2009
2009
|
S: this,
|
|
2010
2010
|
A: [
|
|
2011
2011
|
"this._isOpen",
|
|
@@ -2014,7 +2014,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2014
2014
|
});
|
|
2015
2015
|
(0, import_invariant8.invariant)(this._pipeline, void 0, {
|
|
2016
2016
|
F: __dxlog_file10,
|
|
2017
|
-
L:
|
|
2017
|
+
L: 362,
|
|
2018
2018
|
S: this,
|
|
2019
2019
|
A: [
|
|
2020
2020
|
"this._pipeline",
|
|
@@ -2026,7 +2026,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2026
2026
|
epoch: (0, import_log9.omit)(epoch, "proof")
|
|
2027
2027
|
}, {
|
|
2028
2028
|
F: __dxlog_file10,
|
|
2029
|
-
L:
|
|
2029
|
+
L: 365,
|
|
2030
2030
|
S: this,
|
|
2031
2031
|
C: (f, a) => f(...a)
|
|
2032
2032
|
});
|
|
@@ -2036,7 +2036,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
(0, import_log9.log)("restarting pipeline from epoch", void 0, {
|
|
2038
2038
|
F: __dxlog_file10,
|
|
2039
|
-
L:
|
|
2039
|
+
L: 371,
|
|
2040
2040
|
S: this,
|
|
2041
2041
|
C: (f, a) => f(...a)
|
|
2042
2042
|
});
|
|
@@ -2047,7 +2047,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2047
2047
|
async waitUntilTimeframe(timeframe) {
|
|
2048
2048
|
(0, import_invariant8.invariant)(this._pipeline, "Pipeline is not initialized.", {
|
|
2049
2049
|
F: __dxlog_file10,
|
|
2050
|
-
L:
|
|
2050
|
+
L: 378,
|
|
2051
2051
|
S: this,
|
|
2052
2052
|
A: [
|
|
2053
2053
|
"this._pipeline",
|
|
@@ -2059,7 +2059,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2059
2059
|
async createEpoch() {
|
|
2060
2060
|
(0, import_invariant8.invariant)(this._pipeline, void 0, {
|
|
2061
2061
|
F: __dxlog_file10,
|
|
2062
|
-
L:
|
|
2062
|
+
L: 384,
|
|
2063
2063
|
S: this,
|
|
2064
2064
|
A: [
|
|
2065
2065
|
"this._pipeline",
|
|
@@ -2068,7 +2068,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2068
2068
|
});
|
|
2069
2069
|
(0, import_invariant8.invariant)(this.currentEpoch, void 0, {
|
|
2070
2070
|
F: __dxlog_file10,
|
|
2071
|
-
L:
|
|
2071
|
+
L: 385,
|
|
2072
2072
|
S: this,
|
|
2073
2073
|
A: [
|
|
2074
2074
|
"this.currentEpoch",
|
|
@@ -2099,7 +2099,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
2099
2099
|
} catch (err) {
|
|
2100
2100
|
import_log9.log.catch(err, void 0, {
|
|
2101
2101
|
F: __dxlog_file10,
|
|
2102
|
-
L:
|
|
2102
|
+
L: 415,
|
|
2103
2103
|
S: this,
|
|
2104
2104
|
C: (f, a) => f(...a)
|
|
2105
2105
|
});
|