@adhdev/daemon-core 0.9.82-rc.450 → 0.9.82-rc.451
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 +47 -99
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -57
- package/dist/index.mjs.map +1 -1
- package/dist/session-host/runtime-surface.d.ts +10 -16
- package/dist/shared-types.d.ts +27 -53
- package/package.json +2 -2
- package/src/session-host/runtime-surface.ts +20 -80
- package/src/shared-types.ts +60 -54
package/dist/index.mjs
CHANGED
|
@@ -404,10 +404,10 @@ function readInjected(value) {
|
|
|
404
404
|
}
|
|
405
405
|
function getDaemonBuildInfo() {
|
|
406
406
|
if (cached) return cached;
|
|
407
|
-
const commit = readInjected(true ? "
|
|
408
|
-
const commitShort = readInjected(true ? "
|
|
409
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
410
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
407
|
+
const commit = readInjected(true ? "9356f971ab5b65586b8e481022be6d34c17305e8" : void 0) ?? "unknown";
|
|
408
|
+
const commitShort = readInjected(true ? "9356f971" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
409
|
+
const version = readInjected(true ? "0.9.82-rc.451" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
410
|
+
const builtAt = readInjected(true ? "2026-07-03T16:43:36.013Z" : void 0);
|
|
411
411
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
412
412
|
return cached;
|
|
413
413
|
}
|
|
@@ -25517,59 +25517,14 @@ init_cli_detector();
|
|
|
25517
25517
|
init_host_memory();
|
|
25518
25518
|
|
|
25519
25519
|
// src/session-host/runtime-surface.ts
|
|
25520
|
-
|
|
25521
|
-
|
|
25522
|
-
|
|
25523
|
-
|
|
25524
|
-
|
|
25525
|
-
|
|
25526
|
-
|
|
25527
|
-
|
|
25528
|
-
if (recoveryState === "auto_resumed") return "restored after restart";
|
|
25529
|
-
if (recoveryState === "resume_failed") return "restore failed";
|
|
25530
|
-
if (recoveryState === "host_restart_interrupted") return "host restart interrupted";
|
|
25531
|
-
if (recoveryState === "orphan_snapshot") return "snapshot recovered";
|
|
25532
|
-
return recoveryState.replace(/_/g, " ");
|
|
25533
|
-
}
|
|
25534
|
-
function isSessionHostRecoverySnapshot(record) {
|
|
25535
|
-
if (!record) return false;
|
|
25536
|
-
if (isSessionHostLiveRuntime(record)) return false;
|
|
25537
|
-
const lifecycle = String(record.lifecycle || "").trim();
|
|
25538
|
-
if (lifecycle && lifecycle !== "stopped" && lifecycle !== "failed") {
|
|
25539
|
-
return false;
|
|
25540
|
-
}
|
|
25541
|
-
const meta = record.meta || void 0;
|
|
25542
|
-
if (meta?.restoredFromStorage === true) return true;
|
|
25543
|
-
return getSessionHostRecoveryLabel(meta) !== null;
|
|
25544
|
-
}
|
|
25545
|
-
function getSessionHostSurfaceKind(record) {
|
|
25546
|
-
if (isSessionHostLiveRuntime(record)) return "live_runtime";
|
|
25547
|
-
if (isSessionHostRecoverySnapshot(record)) return "recovery_snapshot";
|
|
25548
|
-
return "inactive_record";
|
|
25549
|
-
}
|
|
25550
|
-
function partitionSessionHostRecords(records) {
|
|
25551
|
-
const liveRuntimes = [];
|
|
25552
|
-
const recoverySnapshots = [];
|
|
25553
|
-
const inactiveRecords = [];
|
|
25554
|
-
for (const record of records) {
|
|
25555
|
-
const kind = getSessionHostSurfaceKind(record);
|
|
25556
|
-
if (kind === "live_runtime") {
|
|
25557
|
-
liveRuntimes.push(record);
|
|
25558
|
-
} else if (kind === "recovery_snapshot") {
|
|
25559
|
-
recoverySnapshots.push(record);
|
|
25560
|
-
} else {
|
|
25561
|
-
inactiveRecords.push(record);
|
|
25562
|
-
}
|
|
25563
|
-
}
|
|
25564
|
-
return {
|
|
25565
|
-
liveRuntimes,
|
|
25566
|
-
recoverySnapshots,
|
|
25567
|
-
inactiveRecords
|
|
25568
|
-
};
|
|
25569
|
-
}
|
|
25570
|
-
function partitionSessionHostDiagnosticsSessions(records) {
|
|
25571
|
-
return partitionSessionHostRecords(records || []);
|
|
25572
|
-
}
|
|
25520
|
+
import {
|
|
25521
|
+
getSessionHostRecoveryLabel,
|
|
25522
|
+
getSessionHostSurfaceKind,
|
|
25523
|
+
isSessionHostLiveRuntime,
|
|
25524
|
+
isSessionHostRecoverySnapshot,
|
|
25525
|
+
partitionSessionHostDiagnosticsSessions,
|
|
25526
|
+
partitionSessionHostRecords
|
|
25527
|
+
} from "@adhdev/session-host-core";
|
|
25573
25528
|
|
|
25574
25529
|
// src/status/chat-tail-hot-sessions.ts
|
|
25575
25530
|
var DEFAULT_ACTIVE_CHAT_POLL_STATUSES = /* @__PURE__ */ new Set([
|