Phase C of 012: the Match overview lists every decided card with flip, edit and back, and one passkey signature releases them all through the inbox. An approved operator command is bound to the payload hash its card showed (match_item in the signed set): the hub refuses a stale snapshot or a changed payload file at release and again before it queues the job. A rejected commit review carries its feedback as a radio call to the card's agent, which the hub verifies and records as the review's rejection. Reject feedback shows line by line, an empty one as such; the arrow keys are in the help; 012 counts every waiting inbox entry in the Tasks badge. Accepted MEDUSA false positives (kvb-think-criticize 2026-11-17): MEDUSA-MM-SCAN-058 signing.py:335 and :337 (pla of plan), EXA010 page-match.js:409 (passkey in a title), EXA006 matching.py:49 (agent then requester_of), STG002 page-constants.js:79 (U+2212 minus as a label). 🎯 Fix: 92 % 💥 Break: 4 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % (style-match.css not covered by MEDUSA, reviewed by hand) 🏆 Score: 88 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
92 lines
3.2 KiB
JavaScript
92 lines
3.2 KiB
JavaScript
function helpSheet() {
|
|
openSheet("Keyboard shortcuts", [h("dl", {class: "keys"}, KEYS.map(([key, text]) => [h("dt", {}, key), h("dd", {}, text)])),
|
|
h("p", {class: "muted"}, "Control room: full screen with large type for a second screen, under ⚙ Ambience. j, k, x, a and Enter work in Waits on Operator.")], false);
|
|
}
|
|
|
|
function overlayOpen() {
|
|
return !document.getElementById("palette").hidden || !document.getElementById("sheet").hidden;
|
|
}
|
|
|
|
function moveCursor(delta) {
|
|
const items = visibleInbox();
|
|
if (!items.length) {
|
|
return;
|
|
}
|
|
ui.cursor = Math.min(Math.max(ui.cursor + delta, 0), items.length - 1);
|
|
drawInbox();
|
|
const current = inboxDom && inboxDom.querySelector(`.item[data-index="${ui.cursor}"]`);
|
|
if (current) {
|
|
current.scrollIntoView({block: "nearest"});
|
|
}
|
|
}
|
|
|
|
function keyboard(event) {
|
|
const target = event.target;
|
|
if ((event.ctrlKey || event.metaKey) && !event.altKey && event.key.toLowerCase() === "k") {
|
|
event.preventDefault();
|
|
if (document.getElementById("palette").hidden) {
|
|
openPalette();
|
|
} else {
|
|
closePalette();
|
|
}
|
|
return;
|
|
}
|
|
if (event.key === "Escape") {
|
|
if (!document.getElementById("palette").hidden) {
|
|
closePalette();
|
|
} else if (!document.getElementById("sheet").hidden) {
|
|
closeSheet();
|
|
} else if (space.look) {
|
|
skyLook(false);
|
|
} else if (popupDialog().open) {
|
|
closePopup();
|
|
} else {
|
|
closeMenus();
|
|
}
|
|
return;
|
|
}
|
|
if (event.altKey || event.ctrlKey || event.metaKey || event.isComposing || overlayOpen()) {
|
|
return;
|
|
}
|
|
if (target instanceof HTMLElement && (target.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName))) {
|
|
return;
|
|
}
|
|
const inInbox = ui.screen === "inbox";
|
|
const current = inInbox ? visibleInbox()[ui.cursor] : null;
|
|
const index = Number(event.key) - 1;
|
|
if (/^[1-9]$/.test(event.key) && index < Nav.TABS.length) {
|
|
event.preventDefault();
|
|
go(Nav.TABS[index][0], null);
|
|
} else if (inInbox && (event.key === "j" || event.key === "k")) {
|
|
event.preventDefault();
|
|
moveCursor(event.key === "j" ? 1 : -1);
|
|
} else if (inInbox && event.key === "x") {
|
|
event.preventDefault();
|
|
toggle(current, false);
|
|
} else if (inInbox && event.key === "a") {
|
|
event.preventDefault();
|
|
if (current && !current.held) {
|
|
approveOne(current);
|
|
}
|
|
} else if (event.key === "f" && feedbackKey()) {
|
|
event.preventDefault();
|
|
} else if (event.key.startsWith("Arrow") && (target === document.body || (target instanceof Element && target.closest(".match-stack"))) && matchKey(event.key)) {
|
|
event.preventDefault();
|
|
} else if (event.key === "Enter" && current && target === document.body) {
|
|
event.preventDefault();
|
|
openItem(current);
|
|
} else if (event.key === "/") {
|
|
event.preventDefault();
|
|
if (ui.screen !== "stream") {
|
|
go("stream", null);
|
|
}
|
|
window.setTimeout(() => stream.dom && stream.dom.search.focus(), 0);
|
|
} else if (event.key === "?") {
|
|
event.preventDefault();
|
|
helpSheet();
|
|
} else if (event.key === "h") {
|
|
event.preventDefault();
|
|
skyLook(!space.look);
|
|
}
|
|
}
|