feat: add set_status MCP tool and status field to whoami/dashboard (closes #325)
This commit is contained in:
parent
6f3b56ad84
commit
fe2933b213
8 changed files with 170 additions and 16 deletions
|
|
@ -727,6 +727,14 @@
|
|||
}
|
||||
body.append(head);
|
||||
|
||||
// ── agent status text ─────────────────────────────────────────
|
||||
if (c.status_text) {
|
||||
body.append(el('div', { class: 'agent-status', title: 'agent self-reported status' },
|
||||
el('span', { class: 'status-icon' }, '◈ '),
|
||||
c.status_text,
|
||||
));
|
||||
}
|
||||
|
||||
// ── action buttons ───────────────────────────────────────────
|
||||
const actions = el('div', { class: 'actions' });
|
||||
if (c.running) {
|
||||
|
|
|
|||
|
|
@ -207,6 +207,16 @@ a:hover {
|
|||
color: var(--red); border-color: var(--red);
|
||||
text-shadow: 0 0 6px rgba(243, 139, 168, 0.5);
|
||||
}
|
||||
.agent-status {
|
||||
font-size: 0.82em;
|
||||
color: var(--subtext0, #a6adc8);
|
||||
padding: 0.1em 0.3em 0.25em;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.agent-status .status-icon { opacity: 0.65; }
|
||||
|
||||
.container-row.tombstone {
|
||||
border-style: dashed;
|
||||
background: rgba(24, 24, 37, 0.35);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue