@adhdev/daemon-standalone 1.0.28-rc.8 → 1.0.28-rc.9
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
CHANGED
|
@@ -33262,10 +33262,10 @@ var require_dist3 = __commonJS({
|
|
|
33262
33262
|
}
|
|
33263
33263
|
function getDaemonBuildInfo() {
|
|
33264
33264
|
if (cached2) return cached2;
|
|
33265
|
-
const commit = readInjected(true ? "
|
|
33266
|
-
const commitShort = readInjected(true ? "
|
|
33267
|
-
const version2 = readInjected(true ? "1.0.28-rc.
|
|
33268
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
33265
|
+
const commit = readInjected(true ? "46fd4bbf8982e8d4d2d2d8c46d35631780c8b0f5" : void 0) ?? "unknown";
|
|
33266
|
+
const commitShort = readInjected(true ? "46fd4bbf" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
33267
|
+
const version2 = readInjected(true ? "1.0.28-rc.9" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
33268
|
+
const builtAt = readInjected(true ? "2026-07-25T16:07:30.697Z" : void 0);
|
|
33269
33269
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
33270
33270
|
return cached2;
|
|
33271
33271
|
}
|
|
@@ -58338,6 +58338,17 @@ ${cleanBody}`;
|
|
|
58338
58338
|
LOG2.warn("MeshReconcile", `Unresolved-delegate forward retry failed: ${e?.message || e}`);
|
|
58339
58339
|
}
|
|
58340
58340
|
}
|
|
58341
|
+
if (components.router) {
|
|
58342
|
+
for (const mesh of listMeshes()) {
|
|
58343
|
+
try {
|
|
58344
|
+
if (components.router.getCachedInlineMesh(mesh.id)) {
|
|
58345
|
+
components.router.getCachedInlineMesh(mesh.id, mesh);
|
|
58346
|
+
}
|
|
58347
|
+
} catch (e) {
|
|
58348
|
+
LOG2.warn("MeshReconcile", `Inline-cache membership merge failed for mesh ${mesh.id}: ${e?.message || e}`);
|
|
58349
|
+
}
|
|
58350
|
+
}
|
|
58351
|
+
}
|
|
58341
58352
|
if (dispatchMeshCommand) {
|
|
58342
58353
|
for (const mesh of listMeshes()) {
|
|
58343
58354
|
const selfIds = resolveCoordinatorSelfIds(mesh, drainDaemonIds);
|
|
@@ -60000,7 +60011,7 @@ ${cleanBody}`;
|
|
|
60000
60011
|
if (candIdx !== -1 && (idx === -1 || candIdx < idx)) idx = candIdx;
|
|
60001
60012
|
}
|
|
60002
60013
|
if (idx !== -1) {
|
|
60003
|
-
from = idx;
|
|
60014
|
+
from = typeof sec.above === "number" && sec.above > 0 ? Math.max(0, idx - Math.floor(sec.above)) : idx;
|
|
60004
60015
|
to = total;
|
|
60005
60016
|
if (sec.until_regex !== void 0) {
|
|
60006
60017
|
try {
|
|
@@ -60012,6 +60023,9 @@ ${cleanBody}`;
|
|
|
60012
60023
|
} else if (sec.lines !== void 0) {
|
|
60013
60024
|
to = Math.min(total, from + sec.lines);
|
|
60014
60025
|
}
|
|
60026
|
+
} else if (sec.anchor_miss === "empty") {
|
|
60027
|
+
from = 0;
|
|
60028
|
+
to = 0;
|
|
60015
60029
|
}
|
|
60016
60030
|
} catch {
|
|
60017
60031
|
}
|
|
@@ -79501,9 +79515,13 @@ ${body}
|
|
|
79501
79515
|
curLines = currentLines;
|
|
79502
79516
|
prevLines = this.prevScreenLines;
|
|
79503
79517
|
} else {
|
|
79504
|
-
const
|
|
79505
|
-
|
|
79506
|
-
|
|
79518
|
+
const window = stableCursorWindow(currentLines.length, cursor.row, d.cursor_above);
|
|
79519
|
+
if (!window) {
|
|
79520
|
+
this.regionLastChangedAt.set(d.key, now);
|
|
79521
|
+
continue;
|
|
79522
|
+
}
|
|
79523
|
+
curLines = currentLines.slice(window.start, window.end);
|
|
79524
|
+
prevLines = this.prevScreenLines.slice(window.start, window.end);
|
|
79507
79525
|
}
|
|
79508
79526
|
const cur = filterIgnoredLines(curLines, d.ignoreRe).join("\n");
|
|
79509
79527
|
const prev = filterIgnoredLines(prevLines, d.ignoreRe).join("\n");
|
|
@@ -80096,6 +80114,12 @@ ${body}
|
|
|
80096
80114
|
if (!ignoreRe) return lines;
|
|
80097
80115
|
return lines.filter((l) => !ignoreRe.test(l));
|
|
80098
80116
|
}
|
|
80117
|
+
function stableCursorWindow(lineCount, cursorRow, cursorAbove) {
|
|
80118
|
+
const end = Math.min(Math.max(0, cursorRow), Math.max(0, lineCount));
|
|
80119
|
+
const start = Math.max(0, end - cursorAbove);
|
|
80120
|
+
if (end <= start) return null;
|
|
80121
|
+
return { start, end };
|
|
80122
|
+
}
|
|
80099
80123
|
init_evaluator();
|
|
80100
80124
|
var fs19 = __toESM2(require("fs"));
|
|
80101
80125
|
var os20 = __toESM2(require("os"));
|
|
@@ -82635,6 +82659,7 @@ ${body}
|
|
|
82635
82659
|
var COMPLETED_FINALIZATION_RETRY_MS = 1e3;
|
|
82636
82660
|
var COMPLETED_FINALIZATION_MAX_WAIT_MS = 3e4;
|
|
82637
82661
|
var CANON_C_MISSING_ASSISTANT_MIN_ELAPSED_MS = 2e4;
|
|
82662
|
+
var MISSING_ASSISTANT_TRANSCRIPT_GROWTH_QUIET_MS = 6e4;
|
|
82638
82663
|
var NATIVE_HISTORY_MESH_IDLE_SETTLE_MS = 4e3;
|
|
82639
82664
|
var PTY_PARSED_FINAL_ASSISTANT_QUIET_DWELL_MS = 1200;
|
|
82640
82665
|
var ANTIGRAVITY_HOLD_QUIET_DWELL_MS = 3e3;
|
|
@@ -84943,6 +84968,34 @@ ${body}
|
|
|
84943
84968
|
const waitedMs = Date.now() - pending.firstObservedAt;
|
|
84944
84969
|
const isTranscriptEvidenceGate = block2.allowTimeout === true;
|
|
84945
84970
|
LOG2.debug("CLI", `[${this.type}] finalization block: reason=${blockReason} terminal=${block2.terminal} allowTimeout=${isTranscriptEvidenceGate} waitedMs=${waitedMs} maxWait=${COMPLETED_FINALIZATION_MAX_WAIT_MS}`);
|
|
84971
|
+
if (blockReason === "missing_final_assistant" && block2.noExternalTranscriptSource === true) {
|
|
84972
|
+
let nativeSample = null;
|
|
84973
|
+
try {
|
|
84974
|
+
nativeSample = this.sampleNativeTranscriptProgress();
|
|
84975
|
+
} catch {
|
|
84976
|
+
nativeSample = null;
|
|
84977
|
+
}
|
|
84978
|
+
const sourceMtimeMs = nativeSample?.sourceMtimeMs ?? 0;
|
|
84979
|
+
if (nativeSample && sourceMtimeMs > 0 && Date.now() - sourceMtimeMs < MISSING_ASSISTANT_TRANSCRIPT_GROWTH_QUIET_MS) {
|
|
84980
|
+
if (pending.loggedBlockReason !== "native_transcript_advancing") {
|
|
84981
|
+
LOG2.info("CLI", `[${this.type}] holding pending completed (native_transcript_advancing: msgCount=${nativeSample.msgCount} mtimeAge=${Date.now() - sourceMtimeMs}ms < ${MISSING_ASSISTANT_TRANSCRIPT_GROWTH_QUIET_MS}ms) \u2014 transcript still growing, screen-idle verdict not trusted`);
|
|
84982
|
+
if (this.isMeshWorkerSession()) {
|
|
84983
|
+
traceMeshEventDrop("completion_gate_hold", this.meshTraceCtx(), `native_transcript_advancing msgCount=${nativeSample.msgCount} mtimeAge=${Date.now() - sourceMtimeMs}ms`);
|
|
84984
|
+
}
|
|
84985
|
+
if (this.completionTraceOn()) this.recordCompletionGateTrace("hold", {
|
|
84986
|
+
blockReason: "native_transcript_advancing",
|
|
84987
|
+
latestVisibleStatus,
|
|
84988
|
+
msgCount: nativeSample.msgCount,
|
|
84989
|
+
sourceMtimeAgeMs: Date.now() - sourceMtimeMs,
|
|
84990
|
+
growthQuietMs: MISSING_ASSISTANT_TRANSCRIPT_GROWTH_QUIET_MS,
|
|
84991
|
+
waitedMs
|
|
84992
|
+
});
|
|
84993
|
+
pending.loggedBlockReason = "native_transcript_advancing";
|
|
84994
|
+
}
|
|
84995
|
+
this.scheduleCompletedDebounceFlush(COMPLETED_FINALIZATION_RETRY_MS);
|
|
84996
|
+
return;
|
|
84997
|
+
}
|
|
84998
|
+
}
|
|
84946
84999
|
if (!isTranscriptEvidenceGate && (block2.terminal || waitedMs < COMPLETED_FINALIZATION_MAX_WAIT_MS)) {
|
|
84947
85000
|
if (pending.loggedBlockReason !== blockReason) {
|
|
84948
85001
|
LOG2.info("CLI", `[${this.type}] waiting to emit completed until transcript finalizes (${blockReason})`);
|
|
@@ -94107,6 +94160,10 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
94107
94160
|
...capabilities && capabilities.length ? { capabilities } : {}
|
|
94108
94161
|
});
|
|
94109
94162
|
if (!node) return { success: false, error: "Mesh not found" };
|
|
94163
|
+
const cachedMesh = ctx.getCachedInlineMesh(meshId);
|
|
94164
|
+
if (cachedMesh) {
|
|
94165
|
+
ctx.updateInlineMeshNode(meshId, cachedMesh, node);
|
|
94166
|
+
}
|
|
94110
94167
|
ctx.invalidateAggregateMeshStatus(meshId);
|
|
94111
94168
|
return { success: true, node };
|
|
94112
94169
|
} catch (e) {
|
|
@@ -94327,6 +94384,10 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
94327
94384
|
removed = removeNode2(meshId, nodeId);
|
|
94328
94385
|
if (!removed && !node) removed = true;
|
|
94329
94386
|
if (removed) ctx.invalidateAggregateMeshStatus(meshId);
|
|
94387
|
+
if (removed) {
|
|
94388
|
+
const cachedMesh = ctx.getCachedInlineMesh(meshId);
|
|
94389
|
+
if (cachedMesh) ctx.removeInlineMeshNode(meshId, cachedMesh, nodeId);
|
|
94390
|
+
}
|
|
94330
94391
|
}
|
|
94331
94392
|
if (removed) {
|
|
94332
94393
|
try {
|