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,49 @@
|
||||
const MatchClock = (() => {
|
||||
"use strict";
|
||||
const MIN = 1;
|
||||
const MAX = 60;
|
||||
const PAGE = 5;
|
||||
const SECOND = 1000;
|
||||
|
||||
/**
|
||||
* @param seconds - the refresh interval the hub settings hold.
|
||||
* @returns seconds rounded to whole seconds and held between MIN and MAX.
|
||||
*/
|
||||
function bounded(seconds) {
|
||||
return Math.max(MIN, Math.min(MAX, Math.round(seconds)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param fetched - when the last /api/match fetch started, epoch milliseconds.
|
||||
* @param seconds - the refresh interval.
|
||||
* @returns when the next fetch is due, epoch milliseconds.
|
||||
*/
|
||||
function next(fetched, seconds) {
|
||||
return fetched + bounded(seconds) * SECOND;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param now - the time now, epoch milliseconds.
|
||||
* @param fetched - when the last fetch started, epoch milliseconds.
|
||||
* @param seconds - the refresh interval.
|
||||
* @returns how many milliseconds the timer waits for the next fetch, never below 0.
|
||||
*/
|
||||
function wait(now, fetched, seconds) {
|
||||
return Math.max(0, next(fetched, seconds) - now);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param now - the time now, epoch milliseconds.
|
||||
* @param fetched - when the last fetch started, epoch milliseconds.
|
||||
* @param seconds - the refresh interval.
|
||||
* @returns true once the next fetch is due.
|
||||
*/
|
||||
function due(now, fetched, seconds) {
|
||||
return wait(now, fetched, seconds) === 0;
|
||||
}
|
||||
|
||||
return {MIN, MAX, PAGE, SECOND, bounded, next, wait, due};
|
||||
})();
|
||||
if (typeof module === "object" && module.exports) {
|
||||
module.exports = MatchClock;
|
||||
}
|
||||
Reference in new issue
Block a user