aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 18:16:32 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 18:16:32 +0100
commitb22003b6a86f16f3de6f77093fb94d8b89203dc2 (patch)
tree4ebd032f6c92751d2749f6a7bc78d1f3c1ab23e8 /static
parent9f6f909d696c2f8b1e1e8261431e3d815baf277e (diff)
downloaddeck-it-b22003b6a86f16f3de6f77093fb94d8b89203dc2.tar.gz
deck-it-b22003b6a86f16f3de6f77093fb94d8b89203dc2.zip
feat(llm): desktop-assistant usage as Local Agent
The LLM usage card gets a third section, the desktop-assistant program from llm-cost-dashboard, with the same session and total stats as opencode. The per-program aggregation now takes the program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static')
-rw-r--r--static/deck.css1
-rw-r--r--static/modules/llm.js24
2 files changed, 15 insertions, 10 deletions
diff --git a/static/deck.css b/static/deck.css
index b322a11..4e9b753 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -375,6 +375,7 @@ select {
}
.brand.claude { -webkit-mask-image: url(/logos/claude.svg); mask-image: url(/logos/claude.svg); }
.brand.opencode { -webkit-mask-image: url(/logos/opencode.svg); mask-image: url(/logos/opencode.svg); }
+.brand-nf { width: 18px; flex: none; font-size: 18px; line-height: 1; text-align: center; color: var(--udt-accent); }
.llm-head h3 {
font-size: 0.857rem;
text-transform: uppercase;
diff --git a/static/modules/llm.js b/static/modules/llm.js
index 9ee28e1..1bbbcce 100644
--- a/static/modules/llm.js
+++ b/static/modules/llm.js
@@ -28,6 +28,7 @@ const tokens = (n) => {
const CLAUDE_ICON = '<span class="brand claude"></span>';
const OPENCODE_ICON = '<span class="brand opencode"></span>';
+const AGENT_ICON = '<i class="nf brand-nf">\uf086</i>';
function section(icon, title, model) {
const sec = document.createElement("section");
@@ -89,7 +90,7 @@ export default {
offline(box, {
icon: "/logos/claude.svg",
title: "Usage dashboard is off",
- detail: "Start llm-cost-dashboard and Claude and opencode usage appear here.",
+ detail: "Start llm-cost-dashboard and Claude, opencode and assistant usage appear here.",
});
return;
}
@@ -108,14 +109,17 @@ export default {
claude.append(gauges);
box.append(claude);
- const opencode = section(OPENCODE_ICON, "opencode", o.model);
- const pair = document.createElement("div");
- pair.className = "lpair";
- pair.append(
- stat("session", money(o.session_cost), `${tokens(o.session_tokens)} · ${o.session_calls ?? 0} calls`),
- stat("total", money(o.cost), `${tokens(o.tokens)} · ${o.calls ?? 0} calls`),
- );
- opencode.append(pair);
- box.append(opencode);
+ for (const [icon, title, p] of [[OPENCODE_ICON, "opencode", o],
+ [AGENT_ICON, "Local Agent", state.assistant ?? {}]]) {
+ const sec = section(icon, title, p.model);
+ const pair = document.createElement("div");
+ pair.className = "lpair";
+ pair.append(
+ stat("session", money(p.session_cost), `${tokens(p.session_tokens)} · ${p.session_calls ?? 0} calls`),
+ stat("total", money(p.cost), `${tokens(p.tokens)} · ${p.calls ?? 0} calls`),
+ );
+ sec.append(pair);
+ box.append(sec);
+ }
},
};