feat(orchestrator): hub requirements 066 to 082 and 084
Radio footer, rules page, schedules editor (System timers and Claude tasks through signed runner jobs), account usage bar, usage explorer with a streamed usage.jsonl, queue Controls tab and override, running tasks on the board, stale task prune with the generic dial, greyed card stamps, commit-tree diffs from the runner preview, VS Code path links, expired asks and decisions that stay as EXPIRED cards (asks keyed by a call digest; an async PostToolUse hook closes those answered in the terminal), the Match refresh hourglass, attachments by paste, drop and paperclip in every text field (page CSP gains img-src blob: for the thumbnails) and the limits board with profiles and a passkey to loosen. Fixes: one red accept on a red-gate commit and no release while a risk is open, the send bar footer segments share one height, the mic button survives a redraw, new Match cards queue before the release card. E2E specs were still running at commit time (operator order); their failures follow as separate fixes. 🎯 Fix: 88 % 💥 Break: 8 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 81 🚦 Gate: ⛔ fix 88 % < 90, break 8 % > 5 (committed on the operator's word) Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc0d578eca
commit
f356083a24
149 files changed
+10646
-963
No files matched your search
@@ -0,0 +1,34 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from .records import epoch, read_json
|
||||
from .tasks import TEXT_SHOWN
|
||||
|
||||
RUNNER_JOB = "runner-job.json"
|
||||
RUNNING = "running"
|
||||
|
||||
|
||||
def running_job(path: Path, jobs: list[dict]) -> dict | None:
|
||||
"""Args:
|
||||
path: runner-job.json in the hub state dir, {pid, job, task,
|
||||
started}, which client/runner.py keeps while it runs a job.
|
||||
jobs: the hub's job records.
|
||||
|
||||
Returns:
|
||||
{job, task, started, command} of the job the marker names, started
|
||||
in epoch seconds and command that job's command, empty when the
|
||||
hub holds no record of it; None when the marker is missing, a link,
|
||||
malformed, or names a job the hub records as no longer running.
|
||||
"""
|
||||
data = read_json(path)
|
||||
if not isinstance(data, dict):
|
||||
return None
|
||||
job, task, started = data.get("job"), data.get("task"), epoch(data.get("started"))
|
||||
if not (isinstance(job, str) and job and isinstance(task, str) and task and started is not None):
|
||||
return None
|
||||
record = next((row for row in jobs if row.get("id") == job), None)
|
||||
if record is not None and record.get("status") != RUNNING:
|
||||
return None
|
||||
command = record.get("command") if record is not None else ""
|
||||
return {"job": job[:TEXT_SHOWN], "task": task[:TEXT_SHOWN], "started": started, "command": command[:TEXT_SHOWN] if isinstance(command, str) else ""}
|
||||
Reference in new issue
Block a user