@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.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 ? "4d9f330890bc663a858fde1c84931144b825f8b2" : void 0) ?? "unknown";
408
- const commitShort = readInjected(true ? "4d9f3308" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
409
- const version = readInjected(true ? "0.9.82-rc.450" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
410
- const builtAt = readInjected(true ? "2026-07-03T08:51:21.732Z" : void 0);
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
- var LIVE_LIFECYCLES = /* @__PURE__ */ new Set(["starting", "running", "stopping", "interrupted"]);
25521
- function isSessionHostLiveRuntime(record) {
25522
- const lifecycle = String(record?.lifecycle || "").trim();
25523
- return LIVE_LIFECYCLES.has(lifecycle);
25524
- }
25525
- function getSessionHostRecoveryLabel(meta) {
25526
- const recoveryState = typeof meta?.runtimeRecoveryState === "string" ? String(meta.runtimeRecoveryState).trim() : "";
25527
- if (!recoveryState) return null;
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([