claudeck 1.0.6 → 1.0.7
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/package.json +1 -1
- package/public/css/ui/status-bar.css +3 -0
- package/public/index.html +2 -0
- package/public/js/ui/status-bar.js +12 -2
- package/server.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudeck",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A browser-based UI for Claude Code — chat, run workflows, manage MCP servers, track costs, and orchestrate autonomous agents from a local web interface. Installable as a PWA.",
|
|
6
6
|
"main": "server.js",
|
package/public/index.html
CHANGED
|
@@ -1046,6 +1046,8 @@
|
|
|
1046
1046
|
<!-- Status Bar -->
|
|
1047
1047
|
<footer class="status-bar" id="status-bar">
|
|
1048
1048
|
<div class="status-bar-left">
|
|
1049
|
+
<span class="sb-item sb-version" id="sb-version" title="Claudeck version"></span>
|
|
1050
|
+
<span class="sb-sep"></span>
|
|
1049
1051
|
<span class="sb-item sb-connection" id="sb-connection" title="Connection status">
|
|
1050
1052
|
<span class="sb-dot" id="sb-dot"></span>
|
|
1051
1053
|
<span id="sb-connection-text">connecting</span>
|
|
@@ -17,6 +17,16 @@ const sbBgSessions = document.getElementById("sb-bg-sessions");
|
|
|
17
17
|
const sbBgSep = document.getElementById("sb-bg-sep");
|
|
18
18
|
const sbBgCount = document.getElementById("sb-bg-count");
|
|
19
19
|
|
|
20
|
+
// ── Version ──
|
|
21
|
+
const sbVersion = document.getElementById("sb-version");
|
|
22
|
+
(async () => {
|
|
23
|
+
try {
|
|
24
|
+
const res = await fetch("/api/version");
|
|
25
|
+
const { version } = await res.json();
|
|
26
|
+
if (sbVersion) sbVersion.textContent = `v${version}`;
|
|
27
|
+
} catch { /* ignore */ }
|
|
28
|
+
})();
|
|
29
|
+
|
|
20
30
|
// ── Connection status ──
|
|
21
31
|
on("ws:connected", () => {
|
|
22
32
|
sbDot.className = "sb-dot connected";
|
|
@@ -65,8 +75,8 @@ async function fetchBranch() {
|
|
|
65
75
|
return;
|
|
66
76
|
}
|
|
67
77
|
try {
|
|
68
|
-
const data = await api.execCommand("git rev-parse --abbrev-ref HEAD
|
|
69
|
-
const branch = (data.stdout || data.output || "
|
|
78
|
+
const data = await api.execCommand("git rev-parse --abbrev-ref HEAD", cwd);
|
|
79
|
+
const branch = (data.stdout || data.output || "").trim();
|
|
70
80
|
sbBranchName.textContent = branch || "--";
|
|
71
81
|
} catch {
|
|
72
82
|
sbBranchName.textContent = "--";
|
package/server.js
CHANGED
|
@@ -105,6 +105,11 @@ app.use("/api/tips", tipsRouter);
|
|
|
105
105
|
app.use("/api/bot", botRouter);
|
|
106
106
|
app.use("/api/telegram", telegramRouter);
|
|
107
107
|
|
|
108
|
+
// Version endpoint
|
|
109
|
+
import { readFileSync } from "fs";
|
|
110
|
+
const pkgVersion = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf8")).version;
|
|
111
|
+
app.get("/api/version", (_req, res) => res.json({ version: pkgVersion }));
|
|
112
|
+
|
|
108
113
|
// Serve full-stack plugin client assets
|
|
109
114
|
const fullStackPluginsDir = join(__dirname, "plugins");
|
|
110
115
|
app.use("/plugins", express.static(fullStackPluginsDir));
|