feat: hub and skills requirements 032 to 063
Hub: send in the field (032), coherent speak box (033), stream head band (034), Match at full width with its pile (035, 036), Home without the outer box (037), badge to Match (038), rejects that survive a changed or withdrawn card (039), the release card (040), code marks in the review diff (041), why Deny is off (042), the undo window clock (043), widgets without inner boxes (044), the Artifacts head on one line (045), accepting a red gate's risk (046), one code box (047), done rows greyed and folded (048), one control height (049), menus that stay open (050), radio settings in the Device card (051), bubbles beside the modes (052), agent settings on every face and name (053), pin only by menu (054), WASD in Match (055), the flowing card edge (056), Schedules in Controls (057) and the hub poll cost (059). Skills: the coach leaves for its own repository kevinveenbirkenbach/coach (058; test_install pins its four skills in skills-lock.json and stays red until that repository is published and pinned), hooks and timers start fewer processes (060), council files on hot paths stay bounded and mirror by marker instead of mtime (061), scripts and hooks hand agents less output (062), and block.py builds the commit table and message block in one run (063). Requirement documents 032 to 063 with their implementation amendments. MEDUSA false positives accepted after kvb-think-criticize (36 lines): MM-SCAN-058 (pla inside replace or plan), JB-SCAN-616/641 (the local clip helper), CODEGEN-SCAN-001 (drop-in paths), CGS-SCAN-029 (systemctl argv from constants), CGS-SCAN-040 (runner poll loop), FLA-SCAN-055 (feedback), WM-SCAN-354, AI-BACKDOOR-006, GENAI-SCAN-1270, B604 (runner shell path for passkey-verified commands), TC004, EXA002, EXA006, EXA010 and WEB-SSRF. 🎯 Fix: 92 % 💥 Break: 8 % 💸 Tokens: 89 % ⏱️ Velocity: – 🛡️ Security: ~100 % 🏆 Score: 95 🚦 Gate: ⛔ break 8 % > 5 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e5fd70e183
commit
0fad1bfae3
265 files changed
+10434
-2242
No files matched your search
@@ -39,19 +39,42 @@
|
||||
}
|
||||
|
||||
const reasonChips = (field) => presetChips(field, state.reasons, "Recent reasons");
|
||||
const NO_RECIPIENT = "Pick the agent to tell: a post or call needs a recipient";
|
||||
const NO_AGENT = "No agent to tell: the item names no recipient; pick one under Deny via …";
|
||||
let whyOffCount = 0;
|
||||
|
||||
/**
|
||||
* @param {HTMLButtonElement} button a button that may be disabled.
|
||||
* @returns {root, set}: root wraps the button and carries its tooltip, because a disabled
|
||||
* button fires no hover in Chrome; set(why, hint) disables the button and names why while why is not empty, else
|
||||
* enables it and names the action hint; aria-describedby gives keyboard users the same text.
|
||||
*/
|
||||
function whyOff(button) {
|
||||
whyOffCount += 1;
|
||||
const note = h("span", {id: `why-off-${whyOffCount}`, hidden: true});
|
||||
const root = h("span", {class: "why-off"}, button, note);
|
||||
button.setAttribute("aria-describedby", note.id);
|
||||
const set = (why, hint) => {
|
||||
button.disabled = Boolean(why);
|
||||
root.title = why || hint;
|
||||
note.textContent = why || hint;
|
||||
};
|
||||
return {root, set};
|
||||
}
|
||||
|
||||
function denySheet(item) {
|
||||
const name = `deny-${keyOf(item)}`;
|
||||
const recipient = h("select", {class: "field"}, h("option", {value: ""}, "Pick the agent to tell"),
|
||||
denyRecipients(item).map((agent) => h("option", {value: agent, selected: agent === item.to}, revealed(agent))));
|
||||
const confirm = h("button", {type: "button", class: "btn danger"}, icon("bi-x-lg"), "Deny");
|
||||
const gate = whyOff(confirm);
|
||||
const hints = [];
|
||||
const picked = () => choices.map((label) => label.querySelector("input")).find((input) => input.checked);
|
||||
const paintDeny = () => {
|
||||
hints.forEach(([small, direct, hint]) => {
|
||||
small.textContent = `to ${direct ? revealed(recipient.value) || "nobody yet: pick a recipient" : "all"}, ${hint}`;
|
||||
});
|
||||
confirm.disabled = DIRECT_DENY.has(picked().value) && !recipient.value;
|
||||
gate.set(DIRECT_DENY.has(picked().value) && !recipient.value ? NO_RECIPIENT : "", `Deny: ${CLASSES[picked().value]} ${DIRECT_DENY.has(picked().value) ? `to ${revealed(recipient.value)}` : "to all"}, signed by your passkey`);
|
||||
};
|
||||
const choices = DENY_CHANNELS.map(([id, direct, hint]) => {
|
||||
const small = h("small", {});
|
||||
@@ -76,21 +99,23 @@
|
||||
h("label", {class: "deny-recipient"}, "Recipient of a post or call", recipient),
|
||||
reasonChips(reason),
|
||||
h("label", {class: "deny-reason"}, "Reason (optional, the agent reads it too)", reason),
|
||||
h("p", {class: "muted"}, "The passkey signs the denial with channel, recipient and reason; then 3 s remain to undo it.",
|
||||
h("p", {class: "muted"}, `The passkey signs the denial with channel, recipient and reason; then ${undoWords()}.`,
|
||||
" Mayday stays reserved for the operator."),
|
||||
h("div", {class: "actions"}, h("span", {class: "spacer"}), btn("Cancel", "btn ghost", closeSheet), confirm)], false);
|
||||
h("div", {class: "actions"}, h("span", {class: "spacer"}), btn("Cancel", "btn ghost", closeSheet), gate.root)], false);
|
||||
reason.focus();
|
||||
}
|
||||
|
||||
function denySplit(item) {
|
||||
const main = iconBtn("bi-x-lg", "Deny", "btn small danger", () => (lineNotes(keyOf(item)) ? denySheet(item) : denyNow(item, "post", "", item.to)), item.to ? `Deny: by post to ${revealed(item.to)}, 3 s to undo; with line comments it opens Deny via … with them as the reason` : "Deny: the card names no agent; pick one under Deny via …");
|
||||
main.disabled = !item.to;
|
||||
const hint = `Deny: by post to ${revealed(item.to)}, then ${undoWords()}; with line comments it opens Deny via … with them as the reason`;
|
||||
const main = iconBtn("bi-x-lg", "Deny", "btn small danger", () => (lineNotes(keyOf(item)) ? denySheet(item) : denyNow(item, "post", "", item.to)), item.to ? hint : NO_AGENT);
|
||||
const gate = whyOff(main);
|
||||
gate.set(item.to ? "" : NO_AGENT, hint);
|
||||
const more = h("button", {type: "button", class: "btn small danger icon-only", "aria-haspopup": "dialog", ...named("Deny via …", "Deny via another channel or with a reason")}, caret());
|
||||
more.addEventListener("click", (event) => {
|
||||
event.stopPropagation();
|
||||
denySheet(item);
|
||||
});
|
||||
return h("div", {class: "deny-split", role: "group", "aria-label": "Deny"}, main, more);
|
||||
return h("div", {class: "deny-split", role: "group", "aria-label": "Deny"}, gate.root, more);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user