@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.js
CHANGED
|
@@ -389,10 +389,10 @@ function readInjected(value) {
|
|
|
389
389
|
}
|
|
390
390
|
function getDaemonBuildInfo() {
|
|
391
391
|
if (cached) return cached;
|
|
392
|
-
const commit = readInjected(true ? "
|
|
393
|
-
const commitShort = readInjected(true ? "
|
|
394
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
395
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
392
|
+
const commit = readInjected(true ? "dfcf9ed9e1e897f0290bac0f1a6aad3ffaf3b41f" : void 0) ?? "unknown";
|
|
393
|
+
const commitShort = readInjected(true ? "dfcf9ed9" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
394
|
+
const version = readInjected(true ? "0.9.82-rc.425" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
395
|
+
const builtAt = readInjected(true ? "2026-06-29T12:47:28.457Z" : void 0);
|
|
396
396
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
397
397
|
return cached;
|
|
398
398
|
}
|
|
@@ -16833,6 +16833,21 @@ function findLiveCoordinators(components) {
|
|
|
16833
16833
|
const status = readNonEmptyString2(state.status).toLowerCase();
|
|
16834
16834
|
const modalParked = typeof inst.isModalParked === "function" ? inst.isModalParked() === true : status === "waiting_choice" || status === "waiting_approval";
|
|
16835
16835
|
const sessionId = readNonEmptyString2(state.instanceId);
|
|
16836
|
+
if (getLogLevel() === "debug") {
|
|
16837
|
+
let adapterRaw = "?";
|
|
16838
|
+
try {
|
|
16839
|
+
const a = inst.adapter;
|
|
16840
|
+
if (a && typeof a.getStatus === "function") {
|
|
16841
|
+
adapterRaw = readNonEmptyString2(a.getStatus({ allowParse: false })?.status) || "?";
|
|
16842
|
+
}
|
|
16843
|
+
} catch (e) {
|
|
16844
|
+
adapterRaw = `err:${e?.message || e}`;
|
|
16845
|
+
}
|
|
16846
|
+
const lastStatus = readNonEmptyString2(inst.lastStatus) || "?";
|
|
16847
|
+
const autoApproveBusy = inst.autoApproveBusy;
|
|
16848
|
+
const maskSince = inst.autoApproveMaskSince;
|
|
16849
|
+
LOG.debug("MeshReconcile", `coordDiag sess=${sessionId || "?"} mesh=${meshId} getState=${status || "?"} lastStatus=${lastStatus} adapterRaw=${adapterRaw} autoApproveBusy=${autoApproveBusy === true} maskSince=${maskSince || 0}`);
|
|
16850
|
+
}
|
|
16836
16851
|
const stateKey = `${meshId}::${sessionId || "?"}`;
|
|
16837
16852
|
const prevParked = coordinatorModalParkState.get(stateKey);
|
|
16838
16853
|
if (prevParked !== modalParked) {
|
|
@@ -17122,6 +17137,9 @@ async function runMeshReconcileTick(components) {
|
|
|
17122
17137
|
}
|
|
17123
17138
|
}
|
|
17124
17139
|
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` : ""})`);
|
|
17140
|
+
if (getLogLevel() === "debug") {
|
|
17141
|
+
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)`);
|
|
17142
|
+
}
|
|
17125
17143
|
let hasPending = true;
|
|
17126
17144
|
if (store) {
|
|
17127
17145
|
try {
|
|
@@ -17147,6 +17165,9 @@ async function runMeshReconcileTick(components) {
|
|
|
17147
17165
|
}
|
|
17148
17166
|
if (hasPending) {
|
|
17149
17167
|
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)`);
|
|
17168
|
+
if (getLogLevel() === "debug") {
|
|
17169
|
+
LOG.debug("MeshReconcile", `coordHoldGenerating mesh=${meshId} heldFor=[${generatingCoordinators.map((c) => c.sessionId || "?").join(",")}] (these were classified busy; cross-ref same-tick coordDiag by sessionId)`);
|
|
17170
|
+
}
|
|
17150
17171
|
recordHeldTerminalEventsToLedger(
|
|
17151
17172
|
meshId,
|
|
17152
17173
|
drainDaemonIds.length > 0 ? drainDaemonIds : localDaemonId ? [localDaemonId] : [],
|