@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.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-01T12:
|
|
407
|
+
const commit = readInjected(true ? "92b0714a88a4e1e253a40fa5a8c49602d087a5b3" : void 0) ?? "unknown";
|
|
408
|
+
const commitShort = readInjected(true ? "92b0714a" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
409
|
+
const version = readInjected(true ? "0.9.82-rc.445" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
410
|
+
const builtAt = readInjected(true ? "2026-07-01T12:57:54.212Z" : void 0);
|
|
411
411
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
412
412
|
return cached;
|
|
413
413
|
}
|
|
@@ -46320,6 +46320,7 @@ function readSession2(sessionPath) {
|
|
|
46320
46320
|
|
|
46321
46321
|
// src/providers/native-history/antigravity-cli-transcript.ts
|
|
46322
46322
|
init_load_better_sqlite3();
|
|
46323
|
+
init_logger();
|
|
46323
46324
|
import * as fs22 from "fs";
|
|
46324
46325
|
import * as path31 from "path";
|
|
46325
46326
|
import * as os22 from "os";
|
|
@@ -46582,7 +46583,11 @@ function parseConversationDb(filePath, sessionId, workspace) {
|
|
|
46582
46583
|
try {
|
|
46583
46584
|
const Database = loadBetterSqlite3();
|
|
46584
46585
|
db = new Database(filePath, { readonly: true, fileMustExist: true });
|
|
46585
|
-
} catch {
|
|
46586
|
+
} catch (err) {
|
|
46587
|
+
LOG.warn(
|
|
46588
|
+
"NativeHistory",
|
|
46589
|
+
`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)`
|
|
46590
|
+
);
|
|
46586
46591
|
return null;
|
|
46587
46592
|
}
|
|
46588
46593
|
let rows;
|
|
@@ -46593,7 +46598,11 @@ function parseConversationDb(filePath, sessionId, workspace) {
|
|
|
46593
46598
|
WHERE step_type IN (${AGY_STEP_TYPE_USER}, ${AGY_STEP_TYPE_MODEL})
|
|
46594
46599
|
ORDER BY idx ASC`
|
|
46595
46600
|
).all();
|
|
46596
|
-
} catch {
|
|
46601
|
+
} catch (err) {
|
|
46602
|
+
LOG.debug(
|
|
46603
|
+
"NativeHistory",
|
|
46604
|
+
`antigravity .db ${path31.basename(filePath)} has no readable steps table: ${err instanceof Error ? err.message : String(err)}`
|
|
46605
|
+
);
|
|
46597
46606
|
return null;
|
|
46598
46607
|
} finally {
|
|
46599
46608
|
try {
|
|
@@ -47034,7 +47043,7 @@ function resolveAntigravityPath(workspace, sessionId) {
|
|
|
47034
47043
|
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);
|
|
47035
47044
|
for (const e of entries) {
|
|
47036
47045
|
const t = path33.join(e.p, ".system_generated", "logs", "transcript.jsonl");
|
|
47037
|
-
if (fs24.existsSync(t)) return t;
|
|
47046
|
+
if (fs24.existsSync(t) && safeSize(t) > 0) return t;
|
|
47038
47047
|
}
|
|
47039
47048
|
}
|
|
47040
47049
|
const convRoot = path33.join(agyRoot, "conversations");
|
|
@@ -47098,6 +47107,13 @@ function safeMtime(p) {
|
|
|
47098
47107
|
return 0;
|
|
47099
47108
|
}
|
|
47100
47109
|
}
|
|
47110
|
+
function safeSize(p) {
|
|
47111
|
+
try {
|
|
47112
|
+
return fs24.statSync(p).size;
|
|
47113
|
+
} catch {
|
|
47114
|
+
return 0;
|
|
47115
|
+
}
|
|
47116
|
+
}
|
|
47101
47117
|
function normalizeRole2(r) {
|
|
47102
47118
|
const s2 = String(r ?? "").toLowerCase();
|
|
47103
47119
|
if (s2 === "user" || s2 === "human") return "user";
|