feat(hub): requirements 023 to 031 and line comments on grant-time code

023 box heads: one head band per box under its top border; in widget mode
its controls join the widget title band.
024 Match card content: merge cards show their diff (the runner previews a
review's tree against its worktree HEAD), every card carries legal and
architecture scores, the null under command cards is gone.
025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle
beside push to talk.
026 widget zoom: zoom a widget's content by keyboard and the context menu.
027 slash skill suggestions: every field that messages agents suggests
skills after a slash, from a skills index the tree timer writes.
028 Resources accounts: an Accounts panel (provider, renewal, resets, usage
and remaining, host-local, emails never in git) and panel checkboxes.
029 Controls layout: Rules and Groups pages laid out.
030 Yes/No answers as buttons, and nothing hides: rows the runner cannot
run stay greyed with the reason.
031 mic in fields.
Line comments (operator 2026-11-24): wherever code waits for a grant
(Waits on Operator, the stream, the review overlay) selected lines or a
right-clicked row take a comment that marks its lines and collects on the
card; Deny opens with them as the reason and Call preselected, Grant sends
them after the signed grant as one post. Requirement 003 decision 4 and
its contract follow.

Tests are written for every requirement and run once on this head.

🎯 Fix: 80 %
💥 Break: 20 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~95 %
🏆 Score: 61
🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-25 01:22:03 +00:00
1 parent 7d1926e3de
commit 2722cda1b5
120 files changed
+5372 -486

No files matched your search

+40 -15
View File
@@ -34,15 +34,18 @@
/**
* @param {HTMLInputElement|HTMLTextAreaElement} field the text field the transcript lands in.
* @param {boolean} auto whether the shared component placed the button right after the field and keeps it there.
* @returns {HTMLButtonElement} the microphone button of the field.
* @returns {HTMLButtonElement} the microphone button of the field, made once and kept.
*/
function micButton(field, auto) {
function micButton(field) {
const kept = micButtons.get(field);
if (kept) {
return kept;
}
if (!field.id) {
micCount += 1;
field.id = `mic-field-${micCount}`;
}
const button = h("button", {type: "button", class: auto ? "btn small ghost icon-only mic mic-auto" : "btn small ghost icon-only mic", "aria-controls": field.id}, icon("bi-mic"));
const button = h("button", {type: "button", class: "mic", "aria-controls": field.id}, icon("bi-mic"));
micButtons.set(field, button);
micFields.set(button, field);
field.dataset.mic = "on";
@@ -51,21 +54,43 @@
return button;
}
const micFramed = (field) => Boolean(field.parentElement && field.parentElement.classList.contains("mic-frame"));
/**
* @param {HTMLInputElement|HTMLTextAreaElement} field the text field; it moves into the frame.
* @param {Node[]} extras what belongs to a textarea besides its mic, on the footer's left (Record, a count); [] for none.
* @returns {HTMLElement} one frame around field and mic: for a one-line field the mic as the field's last segment, for a
* textarea a footer row below it whose last child is the mic.
*/
function micFrame(field, extras) {
const button = micButton(field);
if (field.tagName === "TEXTAREA") {
return h("div", {class: "mic-frame mic-area"}, field, h("div", {class: "mic-foot"}, extras, h("span", {class: "spacer"}), button));
}
return h("span", {class: "mic-frame mic-line"}, field, button);
}
function micWrap(field) {
const focused = document.activeElement === field;
const [start, end] = [field.selectionStart, field.selectionEnd];
const [parent, next] = [field.parentNode, field.nextSibling];
parent.insertBefore(micFrame(field, []), next);
if (focused) {
field.focus({preventScroll: true});
field.setSelectionRange(start, end);
}
}
function micSweep() {
for (const field of document.querySelectorAll(Voice.FIELDS)) {
const button = micButtons.get(field);
if (field.readOnly || (button && !button.classList.contains("mic-auto"))) {
continue;
}
if (!button) {
field.after(micButton(field, true));
} else if (button.previousElementSibling !== field) {
field.after(button);
if (!field.readOnly && !micFramed(field) && field.parentNode) {
micWrap(field);
}
}
for (const button of document.querySelectorAll("button.mic-auto")) {
if (!micFields.get(button).isConnected) {
button.remove();
for (const frame of document.querySelectorAll(".mic-frame")) {
const button = frame.querySelector(":scope > button.mic, :scope > .mic-foot > button.mic");
if (!button || micFields.get(button).parentElement !== frame) {
frame.remove();
}
}
}