@adhdev/daemon-core 0.9.82-rc.444 → 0.9.82-rc.445
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
|
@@ -409,10 +409,10 @@ function readInjected(value) {
|
|
|
409
409
|
}
|
|
410
410
|
function getDaemonBuildInfo() {
|
|
411
411
|
if (cached) return cached;
|
|
412
|
-
const commit = readInjected(true ? "
|
|
413
|
-
const commitShort = readInjected(true ? "
|
|
414
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
415
|
-
const builtAt = readInjected(true ? "2026-07-01T12:
|
|
412
|
+
const commit = readInjected(true ? "92b0714a88a4e1e253a40fa5a8c49602d087a5b3" : void 0) ?? "unknown";
|
|
413
|
+
const commitShort = readInjected(true ? "92b0714a" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
414
|
+
const version = readInjected(true ? "0.9.82-rc.445" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
415
|
+
const builtAt = readInjected(true ? "2026-07-01T12:57:54.212Z" : void 0);
|
|
416
416
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
417
417
|
return cached;
|
|
418
418
|
}
|
|
@@ -46730,6 +46730,7 @@ var fs22 = __toESM(require("fs"));
|
|
|
46730
46730
|
var path31 = __toESM(require("path"));
|
|
46731
46731
|
var os22 = __toESM(require("os"));
|
|
46732
46732
|
init_load_better_sqlite3();
|
|
46733
|
+
init_logger();
|
|
46733
46734
|
function extractTimestampValue3(value) {
|
|
46734
46735
|
if (typeof value === "number" && Number.isFinite(value) && value > 0) return value;
|
|
46735
46736
|
if (typeof value === "string") {
|
|
@@ -46989,7 +46990,11 @@ function parseConversationDb(filePath, sessionId, workspace) {
|
|
|
46989
46990
|
try {
|
|
46990
46991
|
const Database = loadBetterSqlite3();
|
|
46991
46992
|
db = new Database(filePath, { readonly: true, fileMustExist: true });
|
|
46992
|
-
} catch {
|
|
46993
|
+
} catch (err) {
|
|
46994
|
+
LOG.warn(
|
|
46995
|
+
"NativeHistory",
|
|
46996
|
+
`antigravity .db reader could not open ${path31.basename(filePath)}: ${err instanceof Error ? err.message : String(err)} (better-sqlite3 load/open failed \u2014 assistant answers in this .db will not surface)`
|
|
46997
|
+
);
|
|
46993
46998
|
return null;
|
|
46994
46999
|
}
|
|
46995
47000
|
let rows;
|
|
@@ -47000,7 +47005,11 @@ function parseConversationDb(filePath, sessionId, workspace) {
|
|
|
47000
47005
|
WHERE step_type IN (${AGY_STEP_TYPE_USER}, ${AGY_STEP_TYPE_MODEL})
|
|
47001
47006
|
ORDER BY idx ASC`
|
|
47002
47007
|
).all();
|
|
47003
|
-
} catch {
|
|
47008
|
+
} catch (err) {
|
|
47009
|
+
LOG.debug(
|
|
47010
|
+
"NativeHistory",
|
|
47011
|
+
`antigravity .db ${path31.basename(filePath)} has no readable steps table: ${err instanceof Error ? err.message : String(err)}`
|
|
47012
|
+
);
|
|
47004
47013
|
return null;
|
|
47005
47014
|
} finally {
|
|
47006
47015
|
try {
|
|
@@ -47441,7 +47450,7 @@ function resolveAntigravityPath(workspace, sessionId) {
|
|
|
47441
47450
|
const entries = fs24.readdirSync(brainRoot2, { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => ({ p: path33.join(brainRoot2, e.name), mtime: safeMtime(path33.join(brainRoot2, e.name)) })).filter((e) => e.mtime >= cutoff).sort((a, b) => b.mtime - a.mtime);
|
|
47442
47451
|
for (const e of entries) {
|
|
47443
47452
|
const t = path33.join(e.p, ".system_generated", "logs", "transcript.jsonl");
|
|
47444
|
-
if (fs24.existsSync(t)) return t;
|
|
47453
|
+
if (fs24.existsSync(t) && safeSize(t) > 0) return t;
|
|
47445
47454
|
}
|
|
47446
47455
|
}
|
|
47447
47456
|
const convRoot = path33.join(agyRoot, "conversations");
|
|
@@ -47505,6 +47514,13 @@ function safeMtime(p) {
|
|
|
47505
47514
|
return 0;
|
|
47506
47515
|
}
|
|
47507
47516
|
}
|
|
47517
|
+
function safeSize(p) {
|
|
47518
|
+
try {
|
|
47519
|
+
return fs24.statSync(p).size;
|
|
47520
|
+
} catch {
|
|
47521
|
+
return 0;
|
|
47522
|
+
}
|
|
47523
|
+
}
|
|
47508
47524
|
function normalizeRole2(r) {
|
|
47509
47525
|
const s2 = String(r ?? "").toLowerCase();
|
|
47510
47526
|
if (s2 === "user" || s2 === "human") return "user";
|