mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 15:01:34 +08:00
Eliminates every 'known broken on day one' item in the core functionality
audit. The board is now self-driving (daemon, not cron), self-healing
(crash detection, spawn-failure circuit breaker), and self-reporting
(logs, stats, gateway notifications).
Dispatcher
- New `hermes kanban daemon` long-lived loop with --interval, --max,
--failure-limit, --pidfile, --verbose, signal-clean shutdown
(SIGINT/SIGTERM via threading.Event). A kb.run_daemon() entry point
lets tests drive it inline without subprocess.
- `hermes kanban init` now prints the dispatcher setup hint so users
don't leave the board off-by-default. Ships a systemd user unit at
plugins/kanban/systemd/hermes-kanban-dispatcher.service.
- Removed the old 'add this to cron' doc path. Cron runs agent
prompts (LLM cost per tick) — unacceptable for a per-minute
coordination loop.
Worker aliveness / safety
- Spawn returns the child's PID; dispatcher stores it on the task row
and calls detect_crashed_workers() every tick. If the PID is gone
but the claim TTL hasn't expired, the task drops back to ready with
a 'crashed' event. Host-local only — cross-host PIDs are ignored
per the single-host design.
- Spawn-failure circuit breaker: after N consecutive spawn_failed
events on the same task (default 5), the dispatcher auto-blocks
with the last error as the reason. Success resets the counter.
Workspace-resolution failures count against the same budget.
- Log rotation: _rotate_worker_log trims at 2 MiB, keeps one
generation (.log.1), bounds per-task disk usage at ~4 MiB.
Idempotency / dedup
- create_task(idempotency_key=...) returns the existing non-archived
task id for retried webhooks. --idempotency-key on the CLI, json
body field on the dashboard plugin. Archived tasks don't block a
fresh create with the same key.
CLI surface
- Bulk verbs: complete, unblock, archive accept multiple ids;
block accepts --ids for sibling blocks with the same reason.
- New verbs: daemon, watch (live event tail filtered by
assignee/tenant/kinds), stats, log, notify-subscribe,
notify-list, notify-unsubscribe.
- dispatch gains --failure-limit + crashed/auto_blocked columns in
JSON output and human-readable output.
- gc accepts --event-retention-days / --log-retention-days; prunes
task_events for terminal tasks and old log files.
Gateway integration
- New GatewayRunner._kanban_notifier_watcher: polls
kanban_notify_subs every 5s, pushes ✔/⏸/✖ messages to subscribed
chats for completed/blocked/spawn_auto_blocked/crashed events.
Cursor-advanced per-sub; auto-removed when the task reaches
done/archived. Runs alongside the session expiry and platform
reconnect watchers — SQLite work in asyncio.to_thread so the
event loop never blocks.
- /kanban create in the gateway auto-subscribes the originating
chat (platform + chat_id + thread_id). Users see
'(subscribed — you'll be notified when t_abcd completes or
blocks)' appended to the response.
Dashboard plugin
- GET /stats returns board_stats (by_status, by_assignee,
oldest_ready_age_seconds).
- GET /tasks/:id/log returns the worker log with optional ?tail=N
cap. 404 on unknown task, exists=false when the task has never
spawned.
- POST /tasks accepts idempotency_key; both Pydantic body and the
create_task kwarg now round-trip.
- /board attaches task.age (created/started/time_to_complete in
seconds) so the UI can colour stale cards without recomputing.
- Card CSS: amber border after N minutes, red border when clearly
stuck (tier per status: running 10m/60m, ready 1h/24h, todo
7d/30d, blocked 1h/24h).
- Drawer: new Worker log section, auto-loads on mount, last 100 KB
cap with on-disk path surfaced when truncated.
Kernel
- Schema additions: tasks.idempotency_key, tasks.spawn_failures,
tasks.worker_pid, tasks.last_spawn_error; new
kanban_notify_subs table. All gated by _migrate_add_optional_columns
so legacy DBs upgrade cleanly.
- release_stale_claims / complete_task / block_task now all clear
worker_pid so crash detection doesn't false-positive on reclaimed
tasks.
- read_worker_log fixed: tail-skip no longer eats one-giant-line
logs (common with child processes that don't flush newlines
before dying).
Tests (tests/hermes_cli/test_kanban_core_functionality.py, 28 new)
- Idempotency: same key returns existing, archived doesn't block,
no key never collides
- Circuit breaker: auto-blocks after limit, success resets counter,
workspace-resolution failure counts against budget
- Aliveness: _pid_alive helper, detect_crashed_workers reclaims
exited child
- Daemon: runs and stops cleanly via stop_event, survives a tick
exception
- Stats + task_age helpers
- Notify subs: CRUD, cursor advances, distinct-thread is a separate row
- GC: events-only-for-terminal-tasks, old worker logs deleted
- Log: rotation keeps one generation, read_worker_log tail
- CLI: bulk complete/archive/unblock/block, create with
--idempotency-key, stats --json, notify-subscribe+list, log
missing task, gc reports counts
- run_slash parity: smoke-tests every registered verb (23
invocations); none may raise or return empty string
Full kanban test suite: 234/234 pass under scripts/run_tests.sh
(60 original + 30 dashboard plugin + 28 new core + 116 command
registry). Live smoke covers /stats, idempotency, age, log endpoint
with and without content, log?tail= truncation signal, 404 on unknown
task.
Docs (website/docs/user-guide/features/kanban.md)
- 'Core concepts' rewritten: new statuses (triage), idempotency key,
dispatcher-as-daemon-not-cron with circuit breaker behaviour
documented.
- Quick start swapped to daemon. New systemd section covers user
service install.
- New sections: idempotent create, bulk verbs, gateway
notifications, out-of-scope single-host note (kanban.db is local;
don't expect multi-host).
- CLI reference updated for every new verb, every new flag.
685 lines
17 KiB
CSS
685 lines
17 KiB
CSS
/*
|
|
* Hermes Kanban — dashboard plugin styles.
|
|
*
|
|
* All colors reference theme CSS vars so the board reskins with the
|
|
* active dashboard theme. No hardcoded palette.
|
|
*/
|
|
|
|
.hermes-kanban {
|
|
width: 100%;
|
|
}
|
|
|
|
/* ---- Columns layout -------------------------------------------------- */
|
|
|
|
.hermes-kanban-columns {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 0.75rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.hermes-kanban-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: color-mix(in srgb, var(--color-card) 85%, transparent);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
padding: 0.5rem;
|
|
min-height: 200px;
|
|
max-height: calc(100vh - 220px);
|
|
transition: border-color 120ms ease, background-color 120ms ease;
|
|
}
|
|
|
|
.hermes-kanban-column--drop {
|
|
border-color: var(--color-ring);
|
|
background: color-mix(in srgb, var(--color-ring) 8%, var(--color-card));
|
|
}
|
|
|
|
.hermes-kanban-column-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.25rem 0.25rem 0.35rem;
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.hermes-kanban-column-label {
|
|
flex: 1;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.hermes-kanban-column-count {
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--color-muted-foreground);
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hermes-kanban-column-add {
|
|
appearance: none;
|
|
background: transparent;
|
|
border: 1px solid var(--color-border);
|
|
color: var(--color-foreground);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
width: 22px;
|
|
height: 22px;
|
|
line-height: 1;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
}
|
|
.hermes-kanban-column-add:hover {
|
|
background: color-mix(in srgb, var(--color-foreground) 8%, transparent);
|
|
}
|
|
|
|
.hermes-kanban-column-sub {
|
|
padding: 0 0.25rem 0.5rem;
|
|
font-size: 0.7rem;
|
|
color: var(--color-muted-foreground);
|
|
border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.hermes-kanban-column-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.45rem;
|
|
overflow-y: auto;
|
|
padding-right: 0.1rem;
|
|
}
|
|
|
|
.hermes-kanban-empty {
|
|
padding: 1.5rem 0.5rem;
|
|
text-align: center;
|
|
font-size: 0.75rem;
|
|
color: var(--color-muted-foreground);
|
|
border: 1px dashed color-mix(in srgb, var(--color-border) 70%, transparent);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
}
|
|
|
|
/* ---- Status dots ----------------------------------------------------- */
|
|
|
|
.hermes-kanban-dot {
|
|
display: inline-block;
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
border-radius: 999px;
|
|
background: var(--color-muted-foreground);
|
|
}
|
|
.hermes-kanban-dot-triage { background: #b47dd6; } /* lilac — fresh/unspecified */
|
|
.hermes-kanban-dot-todo { background: var(--color-muted-foreground); }
|
|
.hermes-kanban-dot-ready { background: #d4b348; } /* amber */
|
|
.hermes-kanban-dot-running { background: #3fb97d; } /* green */
|
|
.hermes-kanban-dot-blocked { background: var(--color-destructive, #d14a4a); }
|
|
.hermes-kanban-dot-done { background: #4a8cd1; } /* blue */
|
|
.hermes-kanban-dot-archived { background: var(--color-border); }
|
|
|
|
/* ---- Progress pill (N/M child tasks done) --------------------------- */
|
|
|
|
.hermes-kanban-progress {
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 0.62rem;
|
|
padding: 0.05rem 0.35rem;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--color-foreground) 8%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
|
|
color: var(--color-muted-foreground);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.hermes-kanban-progress--full {
|
|
background: color-mix(in srgb, #3fb97d 22%, transparent);
|
|
border-color: color-mix(in srgb, #3fb97d 45%, transparent);
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
/* ---- Lanes (per-profile sub-grouping inside Running) ---------------- */
|
|
|
|
.hermes-kanban-lane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
padding: 0.25rem 0 0.35rem;
|
|
border-top: 1px dashed color-mix(in srgb, var(--color-border) 70%, transparent);
|
|
}
|
|
.hermes-kanban-lane:first-child {
|
|
border-top: 0;
|
|
padding-top: 0;
|
|
}
|
|
.hermes-kanban-lane-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
font-size: 0.65rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--color-muted-foreground);
|
|
padding: 0 0.1rem;
|
|
}
|
|
.hermes-kanban-lane-name {
|
|
font-weight: 600;
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
}
|
|
.hermes-kanban-lane-count {
|
|
margin-left: auto;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ---- Card ------------------------------------------------------------ */
|
|
|
|
.hermes-kanban-card {
|
|
cursor: grab;
|
|
transition: transform 100ms ease, box-shadow 100ms ease;
|
|
}
|
|
.hermes-kanban-card:hover {
|
|
box-shadow: 0 1px 0 0 var(--color-ring) inset, 0 0 0 1px var(--color-ring) inset;
|
|
}
|
|
.hermes-kanban-card:active {
|
|
cursor: grabbing;
|
|
transform: scale(0.995);
|
|
}
|
|
|
|
.hermes-kanban-card-content {
|
|
padding: 0.5rem 0.6rem !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.hermes-kanban-card-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hermes-kanban-card-id {
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 0.65rem;
|
|
color: var(--color-muted-foreground);
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.hermes-kanban-card-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
line-height: 1.3;
|
|
color: var(--color-foreground);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.hermes-kanban-card-meta {
|
|
font-size: 0.7rem;
|
|
color: var(--color-muted-foreground);
|
|
gap: 0.55rem;
|
|
}
|
|
|
|
.hermes-kanban-priority {
|
|
font-size: 0.6rem !important;
|
|
padding: 0.05rem 0.3rem !important;
|
|
background: color-mix(in srgb, var(--color-ring) 18%, transparent);
|
|
color: var(--color-foreground);
|
|
border: 1px solid color-mix(in srgb, var(--color-ring) 40%, transparent);
|
|
}
|
|
|
|
.hermes-kanban-tag {
|
|
font-size: 0.6rem !important;
|
|
padding: 0.05rem 0.3rem !important;
|
|
}
|
|
|
|
.hermes-kanban-assignee {
|
|
font-weight: 500;
|
|
color: color-mix(in srgb, var(--color-foreground) 80%, var(--color-muted-foreground));
|
|
}
|
|
.hermes-kanban-unassigned {
|
|
font-style: italic;
|
|
}
|
|
.hermes-kanban-ago {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* ---- Inline create --------------------------------------------------- */
|
|
|
|
.hermes-kanban-inline-create {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
padding: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
background: color-mix(in srgb, var(--color-card) 70%, transparent);
|
|
border: 1px dashed var(--color-border);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
}
|
|
|
|
/* ---- Drawer (task detail side panel) --------------------------------- */
|
|
|
|
.hermes-kanban-drawer-shade {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
z-index: 60;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.hermes-kanban-drawer {
|
|
width: min(480px, 92vw);
|
|
height: 100vh;
|
|
background: var(--color-card);
|
|
border-left: 1px solid var(--color-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: -4px 0 18px rgba(0, 0, 0, 0.35);
|
|
animation: hermes-kanban-drawer-in 180ms ease-out;
|
|
}
|
|
|
|
@keyframes hermes-kanban-drawer-in {
|
|
from { transform: translateX(100%); opacity: 0.3; }
|
|
to { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
.hermes-kanban-drawer-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.6rem 0.8rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
}
|
|
|
|
.hermes-kanban-drawer-close {
|
|
appearance: none;
|
|
background: transparent;
|
|
border: 0;
|
|
color: var(--color-muted-foreground);
|
|
font-size: 1.25rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
padding: 0 0.25rem;
|
|
}
|
|
.hermes-kanban-drawer-close:hover { color: var(--color-foreground); }
|
|
|
|
.hermes-kanban-drawer-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0.9rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.85rem;
|
|
}
|
|
|
|
.hermes-kanban-drawer-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hermes-kanban-drawer-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
padding: 0.5rem 0.6rem;
|
|
background: color-mix(in srgb, var(--color-foreground) 4%, transparent);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
}
|
|
|
|
.hermes-kanban-meta-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
font-size: 0.72rem;
|
|
}
|
|
.hermes-kanban-meta-label {
|
|
width: 92px;
|
|
color: var(--color-muted-foreground);
|
|
}
|
|
.hermes-kanban-meta-value {
|
|
color: var(--color-foreground);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.hermes-kanban-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.hermes-kanban-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.hermes-kanban-section-head {
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.07em;
|
|
color: var(--color-muted-foreground);
|
|
}
|
|
|
|
.hermes-kanban-pre {
|
|
margin: 0;
|
|
padding: 0.45rem 0.55rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
background: color-mix(in srgb, var(--color-foreground) 4%, transparent);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 0.72rem;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.hermes-kanban-comment {
|
|
border-left: 2px solid color-mix(in srgb, var(--color-ring) 35%, transparent);
|
|
padding-left: 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
.hermes-kanban-comment-head {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
font-size: 0.7rem;
|
|
}
|
|
.hermes-kanban-comment-author {
|
|
font-weight: 600;
|
|
color: var(--color-foreground);
|
|
}
|
|
.hermes-kanban-comment-ago {
|
|
color: var(--color-muted-foreground);
|
|
}
|
|
|
|
.hermes-kanban-event {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
font-size: 0.7rem;
|
|
color: var(--color-muted-foreground);
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
}
|
|
.hermes-kanban-event-kind {
|
|
color: var(--color-foreground);
|
|
min-width: 6rem;
|
|
}
|
|
.hermes-kanban-event-payload {
|
|
color: var(--color-muted-foreground);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.hermes-kanban-drawer-comment-row {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
padding: 0.55rem 0.75rem;
|
|
border-top: 1px solid var(--color-border);
|
|
background: color-mix(in srgb, var(--color-card) 90%, transparent);
|
|
}
|
|
|
|
.hermes-kanban-count {
|
|
display: inline-flex;
|
|
gap: 0.2rem;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ---- Selection chrome ----------------------------------------------- */
|
|
|
|
.hermes-kanban-card--selected :where(.hermes-kanban-card-content) {
|
|
box-shadow: 0 0 0 2px var(--color-ring) inset,
|
|
0 0 0 1px var(--color-ring) inset;
|
|
background: color-mix(in srgb, var(--color-ring) 6%, var(--color-card));
|
|
}
|
|
|
|
.hermes-kanban-card-check {
|
|
width: 0.85rem;
|
|
height: 0.85rem;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
accent-color: var(--color-ring);
|
|
}
|
|
|
|
/* ---- Bulk action bar ------------------------------------------------ */
|
|
|
|
.hermes-kanban-bulk {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.4rem 0.75rem;
|
|
background: color-mix(in srgb, var(--color-ring) 10%, var(--color-card));
|
|
border: 1px solid color-mix(in srgb, var(--color-ring) 40%, var(--color-border));
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
flex-wrap: wrap;
|
|
}
|
|
.hermes-kanban-bulk-count {
|
|
font-weight: 600;
|
|
font-size: 0.75rem;
|
|
padding-right: 0.25rem;
|
|
}
|
|
.hermes-kanban-bulk-btn {
|
|
height: 1.7rem !important;
|
|
padding: 0 0.5rem !important;
|
|
font-size: 0.7rem !important;
|
|
border: 1px solid var(--color-border);
|
|
cursor: pointer;
|
|
}
|
|
.hermes-kanban-bulk-btn:hover {
|
|
background: color-mix(in srgb, var(--color-foreground) 8%, transparent);
|
|
}
|
|
.hermes-kanban-bulk-reassign {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding-left: 0.5rem;
|
|
border-left: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
|
|
}
|
|
|
|
/* ---- Dependency editor chips --------------------------------------- */
|
|
|
|
.hermes-kanban-deps-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
.hermes-kanban-deps-label {
|
|
font-size: 0.68rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--color-muted-foreground);
|
|
min-width: 4rem;
|
|
}
|
|
.hermes-kanban-deps-chips {
|
|
display: flex;
|
|
gap: 0.3rem;
|
|
flex-wrap: wrap;
|
|
flex: 1;
|
|
}
|
|
.hermes-kanban-deps-empty {
|
|
font-size: 0.7rem;
|
|
color: var(--color-muted-foreground);
|
|
font-style: italic;
|
|
}
|
|
.hermes-kanban-dep-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.15rem;
|
|
padding: 0.1rem 0.35rem;
|
|
background: color-mix(in srgb, var(--color-foreground) 6%, transparent);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 0.68rem;
|
|
color: var(--color-foreground);
|
|
}
|
|
.hermes-kanban-dep-chip-x {
|
|
appearance: none;
|
|
background: transparent;
|
|
border: 0;
|
|
color: var(--color-muted-foreground);
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
line-height: 1;
|
|
padding: 0 0.15rem;
|
|
}
|
|
.hermes-kanban-dep-chip-x:hover { color: var(--color-destructive, #d14a4a); }
|
|
|
|
/* ---- Inline edit affordances --------------------------------------- */
|
|
|
|
.hermes-kanban-editable {
|
|
cursor: pointer;
|
|
border-bottom: 1px dotted color-mix(in srgb, var(--color-border) 80%, transparent);
|
|
}
|
|
.hermes-kanban-editable:hover {
|
|
color: var(--color-foreground);
|
|
border-bottom-color: var(--color-ring);
|
|
}
|
|
|
|
.hermes-kanban-drawer-title-text {
|
|
cursor: pointer;
|
|
}
|
|
.hermes-kanban-drawer-title-text:hover {
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--color-ring);
|
|
text-decoration-style: dotted;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.hermes-kanban-edit-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.hermes-kanban-section-head-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
.hermes-kanban-edit-link {
|
|
appearance: none;
|
|
background: transparent;
|
|
border: 0;
|
|
color: var(--color-muted-foreground);
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
.hermes-kanban-edit-link:hover { color: var(--color-ring); }
|
|
|
|
.hermes-kanban-textarea {
|
|
width: 100%;
|
|
min-height: 8rem;
|
|
background: var(--color-card);
|
|
color: var(--color-foreground);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
padding: 0.5rem 0.6rem;
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 0.8rem;
|
|
line-height: 1.5;
|
|
resize: vertical;
|
|
}
|
|
.hermes-kanban-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--color-ring);
|
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 30%, transparent);
|
|
}
|
|
|
|
/* ---- Markdown rendering -------------------------------------------- */
|
|
|
|
.hermes-kanban-md {
|
|
font-size: 0.8rem;
|
|
line-height: 1.55;
|
|
color: var(--color-foreground);
|
|
}
|
|
.hermes-kanban-md p { margin: 0.25rem 0; }
|
|
.hermes-kanban-md h1,
|
|
.hermes-kanban-md h2,
|
|
.hermes-kanban-md h3,
|
|
.hermes-kanban-md h4 {
|
|
margin: 0.6rem 0 0.2rem;
|
|
line-height: 1.25;
|
|
}
|
|
.hermes-kanban-md h1 { font-size: 1.05rem; }
|
|
.hermes-kanban-md h2 { font-size: 0.95rem; }
|
|
.hermes-kanban-md h3 { font-size: 0.88rem; }
|
|
.hermes-kanban-md h4 { font-size: 0.82rem; }
|
|
.hermes-kanban-md ul {
|
|
margin: 0.25rem 0 0.25rem 1.1rem;
|
|
padding: 0;
|
|
}
|
|
.hermes-kanban-md li { margin: 0.1rem 0; }
|
|
.hermes-kanban-md a {
|
|
color: var(--color-ring);
|
|
text-decoration: underline;
|
|
}
|
|
.hermes-kanban-md code {
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
font-size: 0.75rem;
|
|
padding: 0.05rem 0.3rem;
|
|
background: color-mix(in srgb, var(--color-foreground) 8%, transparent);
|
|
border-radius: 3px;
|
|
}
|
|
.hermes-kanban-md-code {
|
|
margin: 0.35rem 0;
|
|
padding: 0.5rem 0.6rem;
|
|
background: color-mix(in srgb, var(--color-foreground) 5%, transparent);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm, 0.25rem);
|
|
overflow-x: auto;
|
|
}
|
|
.hermes-kanban-md-code code {
|
|
background: transparent;
|
|
padding: 0;
|
|
font-size: 0.75rem;
|
|
white-space: pre;
|
|
}
|
|
.hermes-kanban-md strong { font-weight: 600; }
|
|
|
|
/* ---- Touch-drag proxy ---------------------------------------------- */
|
|
|
|
.hermes-kanban-touch-proxy {
|
|
pointer-events: none;
|
|
opacity: 0.85;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
|
|
transform: scale(1.02);
|
|
transition: none;
|
|
}
|
|
|
|
|
|
/* ---- Staleness tiers ------------------------------------------------ */
|
|
|
|
.hermes-kanban-card--stale-amber :where(.hermes-kanban-card-content) {
|
|
box-shadow: 0 0 0 1px #d4b34888 inset;
|
|
}
|
|
.hermes-kanban-card--stale-amber:hover :where(.hermes-kanban-card-content) {
|
|
box-shadow: 0 0 0 2px #d4b348 inset;
|
|
}
|
|
.hermes-kanban-card--stale-red :where(.hermes-kanban-card-content) {
|
|
box-shadow: 0 0 0 1px var(--color-destructive, #d14a4a) inset,
|
|
0 0 8px color-mix(in srgb, var(--color-destructive, #d14a4a) 30%, transparent);
|
|
}
|
|
.hermes-kanban-card--stale-red:hover :where(.hermes-kanban-card-content) {
|
|
box-shadow: 0 0 0 2px var(--color-destructive, #d14a4a) inset,
|
|
0 0 10px color-mix(in srgb, var(--color-destructive, #d14a4a) 45%, transparent);
|
|
}
|
|
|
|
/* ---- Worker log pane ------------------------------------------------ */
|
|
|
|
.hermes-kanban-log {
|
|
max-height: 340px;
|
|
overflow: auto;
|
|
white-space: pre;
|
|
font-size: 0.7rem;
|
|
line-height: 1.45;
|
|
}
|