@adhdev/daemon-standalone 1.0.58-rc.14 → 1.0.58-rc.16
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 +1077 -736
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/vendor/mcp-server/index.js +5 -3
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adhdev/daemon-standalone",
|
|
3
|
-
"version": "1.0.58-rc.
|
|
3
|
+
"version": "1.0.58-rc.16",
|
|
4
4
|
"description": "ADHDev standalone daemon — embedded HTTP/WS server for local dashboard",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "AGPL-3.0-or-later",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@adhdev/ghostty-vt-node": "*",
|
|
40
|
-
"@adhdev/session-host-core": "1.0.58-rc.
|
|
40
|
+
"@adhdev/session-host-core": "1.0.58-rc.16",
|
|
41
41
|
"@xterm/addon-serialize": "^0.14.0",
|
|
42
42
|
"@xterm/xterm": "^6.0.0",
|
|
43
43
|
"chalk": "^5.3.0",
|
|
@@ -2358,18 +2358,20 @@ function summarizeNodeQuota(quota, now = Date.now()) {
|
|
|
2358
2358
|
if (!snapshot || typeof snapshot !== "object") continue;
|
|
2359
2359
|
const status = typeof snapshot.status === "string" ? snapshot.status : "unknown";
|
|
2360
2360
|
const lastGood = snapshot.metadata?.lastGoodWindows === true;
|
|
2361
|
+
const failureKind = typeof snapshot.metadata?.failureKind === "string" ? snapshot.metadata.failureKind : void 0;
|
|
2361
2362
|
const pct = (w) => w && Number.isFinite(w.usedPercent) ? `${Math.round(w.usedPercent)}%` : void 0;
|
|
2362
2363
|
const weekly = pct(snapshot.weekly);
|
|
2363
2364
|
const session = pct(snapshot.session);
|
|
2364
2365
|
if (weekly === void 0 && session === void 0) {
|
|
2365
|
-
|
|
2366
|
-
out[provider] = kind ? `${status}:${kind}` : status;
|
|
2366
|
+
out[provider] = failureKind ? `${status}:${failureKind}` : status;
|
|
2367
2367
|
continue;
|
|
2368
2368
|
}
|
|
2369
2369
|
const age = formatQuotaSnapshotAge(snapshot, now);
|
|
2370
2370
|
const stale = isQuotaSnapshotStale(snapshot, now);
|
|
2371
2371
|
let line = `7d ${weekly ?? "\u2014"} \xB7 5h ${session ?? "\u2014"} \xB7 ${age}${stale ? " stale" : ""}`;
|
|
2372
|
-
if (
|
|
2372
|
+
if (failureKind === "no-data") {
|
|
2373
|
+
if (!stale) line += " \xB7 stale";
|
|
2374
|
+
} else if (lastGood) line += " \xB7 refreshing";
|
|
2373
2375
|
else if (status !== "ok") line += ` \xB7 ${status}`;
|
|
2374
2376
|
out[provider] = line;
|
|
2375
2377
|
}
|