omp-fabric 1.25.26 → 1.25.28
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/CHANGELOG.md +20 -0
- package/dist/compaction/lcm-runtime.d.ts +2 -0
- package/dist/compaction/lcm-runtime.d.ts.map +1 -1
- package/dist/compaction/lcm-runtime.js +30 -5
- package/dist/compaction/lcm-runtime.js.map +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +2 -2
- package/dist/storage/lcm-ledger.d.ts +4 -0
- package/dist/storage/lcm-ledger.d.ts.map +1 -1
- package/dist/storage/lcm-migration.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAyKnC,wBAA8B,SAAS,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAyKnC,wBAA8B,SAAS,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAi2BxE;AAaD,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5970,7 +5970,11 @@ async function ompFabric(omp) {
|
|
|
5970
5970
|
const warmupEpoch = entropyLifecycleEpoch;
|
|
5971
5971
|
const warmupCurrent = () => warmupEpoch === entropyLifecycleEpoch;
|
|
5972
5972
|
void (async () => {
|
|
5973
|
+
await new Promise((resolve2) => setImmediate(resolve2));
|
|
5974
|
+
if (!warmupCurrent()) return;
|
|
5973
5975
|
if (state.config.compaction.engine !== "lcm" || !lcmRuntime) return;
|
|
5976
|
+
lcmRuntime.open();
|
|
5977
|
+
if (!warmupCurrent()) return;
|
|
5974
5978
|
await lcmRuntime.reconcileSelectedSession();
|
|
5975
5979
|
if (!warmupCurrent()) return;
|
|
5976
5980
|
await lcmRuntime.syncAndSchedule().catch(() => {
|
|
@@ -6123,7 +6127,7 @@ async function ompFabric(omp) {
|
|
|
6123
6127
|
await state.publishHostLifecycle("omp.session_compact", event);
|
|
6124
6128
|
});
|
|
6125
6129
|
registerCompactionHook(omp, {
|
|
6126
|
-
getEngine: () => lcmLoader.unavailable || !lcmRuntime ? "omp" : state.cwd ? state.config.compaction.engine : DEFAULT_FABRIC_CONFIG.compaction.engine,
|
|
6130
|
+
getEngine: () => lcmLoader.unavailable || !lcmRuntime?.ready ? "omp" : state.cwd ? state.config.compaction.engine : DEFAULT_FABRIC_CONFIG.compaction.engine,
|
|
6127
6131
|
getTargetContextRatio: () => state.cwd ? state.config.compaction.targetContextRatio : DEFAULT_FABRIC_CONFIG.compaction.targetContextRatio,
|
|
6128
6132
|
lcm: {
|
|
6129
6133
|
compact: (input) => lcmRuntime?.compact(input)
|