@adhdev/daemon-core 0.9.82-rc.424 → 0.9.82-rc.425
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/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/mesh/mesh-reconcile-loop.ts +47 -1
package/dist/index.mjs
CHANGED
|
@@ -384,10 +384,10 @@ function readInjected(value) {
|
|
|
384
384
|
}
|
|
385
385
|
function getDaemonBuildInfo() {
|
|
386
386
|
if (cached) return cached;
|
|
387
|
-
const commit = readInjected(true ? "
|
|
388
|
-
const commitShort = readInjected(true ? "
|
|
389
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
390
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
387
|
+
const commit = readInjected(true ? "dfcf9ed9e1e897f0290bac0f1a6aad3ffaf3b41f" : void 0) ?? "unknown";
|
|
388
|
+
const commitShort = readInjected(true ? "dfcf9ed9" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
389
|
+
const version = readInjected(true ? "0.9.82-rc.425" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
390
|
+
const builtAt = readInjected(true ? "2026-06-29T12:47:28.457Z" : void 0);
|
|
391
391
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
392
392
|
return cached;
|
|
393
393
|
}
|
|
@@ -16828,6 +16828,21 @@ function findLiveCoordinators(components) {
|
|
|
16828
16828
|
const status = readNonEmptyString2(state.status).toLowerCase();
|
|
16829
16829
|
const modalParked = typeof inst.isModalParked === "function" ? inst.isModalParked() === true : status === "waiting_choice" || status === "waiting_approval";
|
|
16830
16830
|
const sessionId = readNonEmptyString2(state.instanceId);
|
|
16831
|
+
if (getLogLevel() === "debug") {
|
|
16832
|
+
let adapterRaw = "?";
|
|
16833
|
+
try {
|
|
16834
|
+
const a = inst.adapter;
|
|
16835
|
+
if (a && typeof a.getStatus === "function") {
|
|
16836
|
+
adapterRaw = readNonEmptyString2(a.getStatus({ allowParse: false })?.status) || "?";
|
|
16837
|
+
}
|
|
16838
|
+
} catch (e) {
|
|
16839
|
+
adapterRaw = `err:${e?.message || e}`;
|
|
16840
|
+
}
|
|
16841
|
+
const lastStatus = readNonEmptyString2(inst.lastStatus) || "?";
|
|
16842
|
+
const autoApproveBusy = inst.autoApproveBusy;
|
|
16843
|
+
const maskSince = inst.autoApproveMaskSince;
|
|
16844
|
+
LOG.debug("MeshReconcile", `coordDiag sess=${sessionId || "?"} mesh=${meshId} getState=${status || "?"} lastStatus=${lastStatus} adapterRaw=${adapterRaw} autoApproveBusy=${autoApproveBusy === true} maskSince=${maskSince || 0}`);
|
|
16845
|
+
}
|
|
16831
16846
|
const stateKey = `${meshId}::${sessionId || "?"}`;
|
|
16832
16847
|
const prevParked = coordinatorModalParkState.get(stateKey);
|
|
16833
16848
|
if (prevParked !== modalParked) {
|
|
@@ -17117,6 +17132,9 @@ async function runMeshReconcileTick(components) {
|
|
|
17117
17132
|
}
|
|
17118
17133
|
}
|
|
17119
17134
|
LOG.info("MeshReconcile", `Reconcile skip \u2192 modal-parked: holding pending event(s) for mesh ${meshId} (${modalParkedCoordinators.length} coordinator(s) awaiting a modal answer; events left queued${orphanEscaped > 0 ? `; ${orphanEscaped} orphan-targeted event(s) routed to strict-route TTL` : ""})`);
|
|
17135
|
+
if (getLogLevel() === "debug") {
|
|
17136
|
+
LOG.debug("MeshReconcile", `coordHoldModalParked mesh=${meshId} heldFor=[${modalParkedCoordinators.map((c) => c.sessionId || "?").join(",")}] (these were classified modal-parked; cross-ref same-tick coordDiag by sessionId)`);
|
|
17137
|
+
}
|
|
17120
17138
|
let hasPending = true;
|
|
17121
17139
|
if (store) {
|
|
17122
17140
|
try {
|
|
@@ -17142,6 +17160,9 @@ async function runMeshReconcileTick(components) {
|
|
|
17142
17160
|
}
|
|
17143
17161
|
if (hasPending) {
|
|
17144
17162
|
LOG.info("MeshReconcile", `Reconcile skip \u2192 generating: holding pending event(s) for mesh ${meshId} (${generatingCoordinators.length} coordinator(s) busy; events left queued for the next idle tick)`);
|
|
17163
|
+
if (getLogLevel() === "debug") {
|
|
17164
|
+
LOG.debug("MeshReconcile", `coordHoldGenerating mesh=${meshId} heldFor=[${generatingCoordinators.map((c) => c.sessionId || "?").join(",")}] (these were classified busy; cross-ref same-tick coordDiag by sessionId)`);
|
|
17165
|
+
}
|
|
17145
17166
|
recordHeldTerminalEventsToLedger(
|
|
17146
17167
|
meshId,
|
|
17147
17168
|
drainDaemonIds.length > 0 ? drainDaemonIds : localDaemonId ? [localDaemonId] : [],
|