feat(hub): grant split menu, radio redesign and answerable decision rows
The Grant bar becomes one split control: Select, or Grant N with a menu for Deny, Grant all green, the picked list, Clear and Direct mode; picked items turn pale green. The radio drops its filter flyout and gains three-state bells per row, a test per row including Speak, Auto or Morse on a second click, mute on the sender avatar and the agent profile, Cancel MAYDAY beside Send only while one is active, a Send menu with a test message and hold-to-record push-to-talk. Decision rows read as questions with their options; the signed answer is Decision <id> plus Answer: <answer>, and the card names its recipient. Security: the passkey-signed answer carries no agent-written text, the inbox lists answerable rows only when their id fullmatches the TASK rule of the installed rasci.py (skill_scripts.task_pattern), and rasci.py, operator.py and hotfix.py check task slugs with fullmatch, so a trailing newline no longer passes. Accepted MEDUSA findings after kvb-think-criticize: page-inbox.js:116 EXA006 (by design after the fix), page-inbox.js:125 EXA010, operator.py:173, 618 and 633 RP001, FT-TRIGGER-005 and RLHF-POISON-002, operator.py:639 MEX-SCAN-346, operator.py:968 MM-SCAN-058, operator.py:974 ACP-SCAN-028 (false positives). 🎯 Fix: 85 % 💥 Break: 10 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 77 🚦 Gate: ⛔ fix 85 % < 90, break 10 % > 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
ff9bbc19c2
commit
d695bb2b58
42 files changed
+1158
-340
No files matched your search
@@ -47,15 +47,8 @@ GIBBER_SPY = """() => {
|
||||
};
|
||||
}""".replace("@SPY@", SPY)
|
||||
GIBBER_KIT = """
|
||||
const gear = () => all(".spot-head button", spot).find((button) => name(button) === "Read aloud");
|
||||
const fallbacks = () => all('#radio-gear .chips[aria-label="Fallback"] .chip', spot);
|
||||
const fallbacks = () => all('.radio-mode-menu .chips[aria-label="Fallback"] .chip', spot);
|
||||
const kept = () => JSON.parse(localStorage.getItem("kvb-orchestrator.radio") || "{}").fallback || null;
|
||||
const opened = async (open) => {
|
||||
if ((gear().getAttribute("aria-expanded") === "true") !== open) {
|
||||
gear().click();
|
||||
await sleep(200);
|
||||
}
|
||||
};
|
||||
const sent = async (count) => {
|
||||
await cue("alarm");
|
||||
refreshNow();
|
||||
@@ -70,11 +63,9 @@ GIBBER_KIT = """
|
||||
};
|
||||
"""
|
||||
GIBBER = """(async () => {@HELPERS@@RADIO@@KIT@
|
||||
press("gibberlink");
|
||||
press("quiet");
|
||||
await sleep(200);
|
||||
const button = spot.querySelector('.radio-modes button[data-mode="gibberlink"]');
|
||||
const mode = [pressed(), field("mode"), button.title, Boolean(button.querySelector("svg.bi"))];
|
||||
await opened(true);
|
||||
await modeMenu("quiet", true);
|
||||
const before = fallbacks().map((chip) => [text(chip), chip.getAttribute("aria-pressed")]);
|
||||
fallbacks().find((chip) => text(chip) === "Morse").click();
|
||||
await sleep(150);
|
||||
@@ -82,9 +73,12 @@ GIBBER = """(async () => {@HELPERS@@RADIO@@KIT@
|
||||
fallbacks().find((chip) => text(chip) === "Gibberlink").click();
|
||||
await sleep(150);
|
||||
const back = [fallbacks().map((chip) => chip.getAttribute("aria-pressed")), kept()];
|
||||
const label = text(spot.querySelector("#radio-gear .radio-fallback .chips-label"));
|
||||
const label = text(spot.querySelector(".radio-mode-menu .radio-fallback .chips-label"));
|
||||
const gearFits = fits();
|
||||
await opened(false);
|
||||
press("gibberlink");
|
||||
await sleep(200);
|
||||
const button = spot.querySelector('.radio-modes button[data-mode="gibberlink"]');
|
||||
const mode = [pressed(), field("mode"), button.title, Boolean(button.querySelector("svg.bi")), Boolean(spot.querySelector(".radio-mode-menu:not([hidden])"))];
|
||||
const at = {captured: window.e2eGibber.length, pans: window.e2ePans.length};
|
||||
const playing = await sent(at.captured);
|
||||
await sleep(300);
|
||||
@@ -201,6 +195,7 @@ class TestGibberlink(HubCase):
|
||||
self.assertEqual(played["mode"][:2], [["gibberlink"], "Gibberlink"], played["mode"])
|
||||
self.assertIn("MAYDAY", played["mode"][2])
|
||||
self.assertTrue(played["mode"][3])
|
||||
self.assertFalse(played["mode"][4], "switching to Gibberlink closes the Quiet fallback menu")
|
||||
self.assertEqual(played["before"], [["Gibberlink", "true"], ["Morse", "false"], ["Hiss", "false"]])
|
||||
self.assertEqual((played["morse"], played["back"], played["label"]), ([["false", "true", "false"], "morse"], [["true", "false", "false"], "gibberlink"], "Fallback"))
|
||||
self.assertEqual((played["gearFits"], played["fits"]), ({"page": True, "panel": True}, {"page": True, "panel": True}))
|
||||
|
||||
Reference in new issue
Block a user