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
@@ -9,7 +9,7 @@
|
||||
unknown: ["#bi-question-circle", (mark) => `${mark.name} unknown: no reading`, 0],
|
||||
};
|
||||
const RESOURCE_BURN = {done: "Done", scope: "Scope"};
|
||||
const RESOURCE_PICKS = [["hardware", "Hardware"], ["tokens", "Tokens"], ["combined", "Combined"], ["accounts", "Accounts"]];
|
||||
const RESOURCE_PICKS = [["hardware", "Hardware"], ["tokens", "Tokens"], ["combined", "Combined"], ["accounts", "Accounts"], ["usage", "Usage"]];
|
||||
const resourceView = {data: null, dom: null, busy: false, key: "", at: 0, timer: 0, series: {}};
|
||||
const resourceKey = () => JSON.stringify([ui.preset, ui.asOf]);
|
||||
const resourcesStale = () => resourceKey() !== resourceView.key || nowSeconds() - resourceView.at >= RESOURCE.stale;
|
||||
@@ -42,11 +42,12 @@
|
||||
const legend = h("div", {class: "res-legend"});
|
||||
const plot = h("div", {class: "res-plot"});
|
||||
const panel = h("section", {class: `card res-panel res-${kind}`, "data-panel": `resources-${kind}`, "aria-label": label, hidden: kind === "combined"},
|
||||
h("div", {class: "res-head", "data-legend-slot": ""}, h("span", {class: "res-title", title: label, "aria-label": label}, icon(name)), legend), plot);
|
||||
h("div", {class: "res-head", "data-legend-slot": ""}, h("span", {class: "res-title", title: label, "aria-label": label}, icon(name)), legend), kind === "hardware" ? limitBar() : null, plot);
|
||||
return {kind, label, legend, plot, panel};
|
||||
});
|
||||
const accounts = accountsPanel();
|
||||
resourceView.dom = {count, switches, picks, panels, accounts};
|
||||
const usage = usagePanel();
|
||||
resourceView.dom = {count, switches, picks, panels, accounts, usage};
|
||||
if (!resourceView.timer) {
|
||||
resourceView.timer = window.setInterval(pollResources, RESOURCE.poll);
|
||||
window.addEventListener("resize", drawResources);
|
||||
@@ -60,10 +61,13 @@
|
||||
const reload = iconBtn("bi-arrow-clockwise", "Reload", "btn small soft", () => {
|
||||
fetchResources();
|
||||
fetchAccounts();
|
||||
}, "Reload: read the sampler files and the accounts again");
|
||||
if (!usage.panel.hidden) {
|
||||
fetchUsage();
|
||||
}
|
||||
}, "Reload: read the sampler files, the accounts and the usage again");
|
||||
return h("div", {class: "graph resources"},
|
||||
boxHead("Resources", "", h("div", {class: "toolbar"}, reload, switches.tokens, picks.menu, count)),
|
||||
h("div", {class: "res-panels"}, panels.map((entry) => entry.panel), accounts.panel));
|
||||
h("div", {class: "res-panels"}, panels.map((entry) => entry.panel), accounts.panel, usage.panel));
|
||||
}
|
||||
|
||||
function pollResources() {
|
||||
@@ -82,6 +86,7 @@
|
||||
}
|
||||
resourceView.busy = true;
|
||||
resourceView.key = resourceKey();
|
||||
fetchLimits();
|
||||
try {
|
||||
const response = await fetch(`/api/resources?${windowQuery()}`, {cache: "no-store"});
|
||||
if (response.ok) {
|
||||
@@ -262,6 +267,7 @@
|
||||
const y = resourceScale(frame, [0, 50, 100], percentOf, "left");
|
||||
resourceBackdrop(frame, y, parts.marks, span);
|
||||
resourceLines(frame, y, parts.hardware.filter((line) => !parts.hidden.has(line.id)));
|
||||
limitLines(frame, y);
|
||||
return {svg: frame.svg, series: RESOURCE_SERIES.hardware(parts), path: "resources.hidden"};
|
||||
}
|
||||
|
||||
@@ -380,6 +386,12 @@
|
||||
}
|
||||
dom.accounts.panel.hidden = !view.panels.includes("accounts");
|
||||
drawAccounts();
|
||||
dom.usage.panel.hidden = !view.panels.includes("usage");
|
||||
if (!dom.usage.panel.hidden && usageView.ask === 0) {
|
||||
fetchUsage();
|
||||
}
|
||||
drawUsage();
|
||||
drawLimitBar();
|
||||
if (data === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user