@remnic/core 10.0.97 → 10.0.98
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/access-admin-ops-surface.js +1 -1
- package/dist/access-cli.js +1 -1
- package/dist/access-extraction-force-flush.js +1 -1
- package/dist/access-http-briefing.js +1 -1
- package/dist/access-http-query.js +1 -1
- package/dist/access-http.js +1 -1
- package/dist/access-identity-continuity-surface.js +1 -1
- package/dist/access-lcm-surface.js +1 -1
- package/dist/access-mcp.js +1 -1
- package/dist/access-observe-write-surface.js +1 -1
- package/dist/access-operations-batch.js +1 -1
- package/dist/access-operations.js +1 -1
- package/dist/access-recall-concurrency.js +1 -1
- package/dist/access-recall-response.js +1 -1
- package/dist/access-recall-surface.js +1 -1
- package/dist/access-service.js +1 -1
- package/dist/{chunk-3ETADXEP.js → chunk-5DGK7E4W.js} +15 -1
- package/dist/chunk-5DGK7E4W.js.map +1 -0
- package/dist/{chunk-AMRGZOIP.js → chunk-TZKK72BY.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/explicit-capture.js +1 -1
- package/dist/index.js +1 -1
- package/dist/orchestration/backlog-scheduler.js +2 -2
- package/dist/orchestration/buffer-drain-runner.js +2 -2
- package/dist/orchestration/orchestrator-init.d.ts +3 -0
- package/dist/orchestration/orchestrator-init.d.ts.map +1 -1
- package/dist/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator.js +1 -1
- package/dist/recall-navigation.js +1 -1
- package/package.json +2 -2
- package/src/orchestration/orchestrator-init.ts +25 -0
- package/src/orchestrator-init.test.ts +132 -1
- package/src/orchestrator.ts +3 -0
- package/dist/chunk-3ETADXEP.js.map +0 -1
- /package/dist/{chunk-AMRGZOIP.js.map → chunk-TZKK72BY.js.map} +0 -0
package/dist/access-cli.js
CHANGED
package/dist/access-http.js
CHANGED
package/dist/access-mcp.js
CHANGED
package/dist/access-service.js
CHANGED
|
@@ -22578,6 +22578,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
22578
22578
|
correctionRecoveryChain = Promise.resolve();
|
|
22579
22579
|
startupEpochAbort;
|
|
22580
22580
|
startupStorageWrites = /* @__PURE__ */ new Set();
|
|
22581
|
+
startupWarmups = /* @__PURE__ */ new Set();
|
|
22581
22582
|
/** Retire the current lifecycle without constructing a lazy coordinator. */
|
|
22582
22583
|
retireStartupEpoch() {
|
|
22583
22584
|
this.startupEpochAbort?.controller.abort();
|
|
@@ -22594,6 +22595,10 @@ var OrchestratorInitCoordinator = class {
|
|
|
22594
22595
|
this.startupStorageWrites.delete(write);
|
|
22595
22596
|
}
|
|
22596
22597
|
}
|
|
22598
|
+
/** Wait for background startup warm-ups; destroy() only, never the deferredReady gate. */
|
|
22599
|
+
async drainStartupWarmups() {
|
|
22600
|
+
await Promise.allSettled([...this.startupWarmups]);
|
|
22601
|
+
}
|
|
22597
22602
|
async drainEntityMigrations() {
|
|
22598
22603
|
await Promise.allSettled([...this.startupStorageWrites]);
|
|
22599
22604
|
const drains = [this.deps.storage.drainEntityCanonicalIdMigration()];
|
|
@@ -22991,6 +22996,14 @@ var OrchestratorInitCoordinator = class {
|
|
|
22991
22996
|
this.deps.deferredSyncSucceeded = true;
|
|
22992
22997
|
}
|
|
22993
22998
|
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
22999
|
+
const factHashWarm = (async () => {
|
|
23000
|
+
const storage = await this.deps.storageRouter.storageFor(this.deps.config.defaultNamespace);
|
|
23001
|
+
await storage.isFactContentHashAuthoritative();
|
|
23002
|
+
})().catch((err) => {
|
|
23003
|
+
log.debug(`fact-hash index startup warm-up failed (non-fatal): ${err}`);
|
|
23004
|
+
});
|
|
23005
|
+
this.startupWarmups.add(factHashWarm);
|
|
23006
|
+
void factHashWarm.finally(() => this.startupWarmups.delete(factHashWarm));
|
|
22994
23007
|
const warmupPromises = [];
|
|
22995
23008
|
if (this.deps.qmd.isAvailable()) {
|
|
22996
23009
|
const warmupNs = this.deps.config.defaultNamespace;
|
|
@@ -28052,6 +28065,7 @@ var Orchestrator = class {
|
|
|
28052
28065
|
} catch (err) {
|
|
28053
28066
|
bufferFlushError = err;
|
|
28054
28067
|
}
|
|
28068
|
+
await this._orchestratorInitCoordinator?.drainStartupWarmups();
|
|
28055
28069
|
const extractionDrainError = await drainExtractionAndShutdownDependencyPropagation(
|
|
28056
28070
|
this.extractionQueueCoordinator,
|
|
28057
28071
|
this._dependencyPropagationDelivery
|
|
@@ -67163,4 +67177,4 @@ export {
|
|
|
67163
67177
|
EngramAccessService,
|
|
67164
67178
|
AccessAdminOpsSurface
|
|
67165
67179
|
};
|
|
67166
|
-
//# sourceMappingURL=chunk-
|
|
67180
|
+
//# sourceMappingURL=chunk-5DGK7E4W.js.map
|