ccdeck 3.53.0 → 3.53.2
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/web/assets/{BrowserWatchModal-CKN9jBCT.js → BrowserWatchModal-DedhCY8E.js} +1 -1
- package/dist/web/assets/{IntegrationModal-Cb9MgsP1.js → IntegrationModal-1m1mQQhW.js} +1 -1
- package/dist/web/assets/{RadioPanel-D8h6qba-.js → RadioPanel-Sgo5WNTi.js} +1 -1
- package/dist/web/assets/{TrafficRadar-3_aX8BI6.js → TrafficRadar-BqjzLlO_.js} +1 -1
- package/dist/web/assets/{UsageHistoryModal-DgMXDORj.js → UsageHistoryModal-2pcftBwX.js} +1 -1
- package/dist/web/assets/{app-BwJGP2ic.js → app-BZaB84m4.js} +18 -18
- package/dist/web/assets/{index-C8fQC4Vq.js → index-D1WZBFCw.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/release-notes.json +8 -1
- package/src/server/cli-arrival.mjs +22 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./app-
|
|
1
|
+
import"./app-BZaB84m4.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function s(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=s(e);fetch(e.href,r)}})();
|
package/dist/web/index.html
CHANGED
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
document.documentElement.setAttribute("data-density", density === "tightest" || density === "tighter" || density === "compact" || density === "comfortable" ? density : "default");
|
|
78
78
|
})();
|
|
79
79
|
</script>
|
|
80
|
-
<script type="module" crossorigin src="/assets/index-
|
|
81
|
-
<link rel="modulepreload" crossorigin href="/assets/app-
|
|
80
|
+
<script type="module" crossorigin src="/assets/index-D1WZBFCw.js"></script>
|
|
81
|
+
<link rel="modulepreload" crossorigin href="/assets/app-BZaB84m4.js">
|
|
82
82
|
<link rel="stylesheet" crossorigin href="/assets/app-xTrs4aEH.css">
|
|
83
83
|
</head>
|
|
84
84
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccdeck",
|
|
3
|
-
"version": "3.53.
|
|
3
|
+
"version": "3.53.2",
|
|
4
4
|
"description": "Local dashboard for Claude Code and Codex CLI sessions: which Claude Code session needs input, every tool call and Claude Code subagent live, token cost and quota, several Claude accounts. Run npx ccdeck.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/release-notes.json
CHANGED
|
@@ -130,7 +130,14 @@
|
|
|
130
130
|
"3.43.1",
|
|
131
131
|
"3.43.3",
|
|
132
132
|
"3.48.1",
|
|
133
|
-
"3.49.1"
|
|
133
|
+
"3.49.1",
|
|
134
|
+
"3.53.1"
|
|
135
|
+
],
|
|
136
|
+
"3.53.2": [
|
|
137
|
+
{
|
|
138
|
+
"title": "🔁 The deck stays up on machines without Codex",
|
|
139
|
+
"body": "Since 3.53.0 a deck with no Codex restarted itself every few seconds, and it now stays up."
|
|
140
|
+
}
|
|
134
141
|
],
|
|
135
142
|
"3.53.0": [
|
|
136
143
|
{
|
|
@@ -36,8 +36,9 @@ export function cliPollMs(env = process.env) {
|
|
|
36
36
|
* `clis` is `{ name, want, off, installed }` per CLI: `want` is the boot's
|
|
37
37
|
* answer, `off` is `--no-claude` / `--no-codex` (the user telling the deck to
|
|
38
38
|
* leave that CLI alone, which still holds for one installed afterwards), and
|
|
39
|
-
* `installed` is the boot's presence check
|
|
40
|
-
* off is not watched, and with
|
|
39
|
+
* `installed` is the boot's presence check, which may answer now or with a
|
|
40
|
+
* promise. A CLI already served or switched off is not watched, and with
|
|
41
|
+
* nothing to watch no timer is started at all.
|
|
41
42
|
*
|
|
42
43
|
* The timer is unref'd: it must never be the thing keeping a deck alive.
|
|
43
44
|
* A presence check that throws is a no for this beat, not the end of the watch.
|
|
@@ -46,12 +47,13 @@ export function watchForClis({ clis, onArrive, everyMs = cliPollMs(), timers = g
|
|
|
46
47
|
const awaited = clis.filter(c => !c.want && !c.off);
|
|
47
48
|
if (!awaited.length) return () => {};
|
|
48
49
|
let stopped = false;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
let looking = false;
|
|
51
|
+
const timer = timers.setInterval(async () => {
|
|
52
|
+
if (stopped || looking) return;
|
|
53
|
+
looking = true;
|
|
54
|
+
const found = await firstInstalled(awaited);
|
|
55
|
+
looking = false;
|
|
56
|
+
if (!found || stopped) return;
|
|
55
57
|
stop();
|
|
56
58
|
onArrive(found.name);
|
|
57
59
|
}, everyMs);
|
|
@@ -62,3 +64,15 @@ export function watchForClis({ clis, onArrive, everyMs = cliPollMs(), timers = g
|
|
|
62
64
|
}
|
|
63
65
|
return stop;
|
|
64
66
|
}
|
|
67
|
+
|
|
68
|
+
/** The first CLI whose check answers yes. The answer is awaited, because a
|
|
69
|
+
* promise is truthy: hasCodexInstalled is async, and read as it stood it said
|
|
70
|
+
* yes on every machine without Codex, restarting the deck on every beat. */
|
|
71
|
+
async function firstInstalled(clis) {
|
|
72
|
+
for (const c of clis) {
|
|
73
|
+
try {
|
|
74
|
+
if (await c.installed()) return c;
|
|
75
|
+
} catch { /* a no for this beat */ }
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|