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,7 +39,7 @@ class Element {
|
||||
Panels.item("task", (id) => `Task ${id}`, () => null);
|
||||
const KEYS_OF = {Stage: "s2", Docs: "s3"};
|
||||
const NAMES = {s2: "Stage", s3: "Docs"};
|
||||
const calls = {tasks: [], pins: [], feedback: [], shown: [], closed: 0};
|
||||
const calls = {tasks: [], pins: [], feedback: [], shown: [], toasts: [], closed: 0};
|
||||
const context = {
|
||||
console, Nav, Panels, Element, JSON, Math, Object, Array, String, Number, Boolean, Promise, Map, Set, Intl,
|
||||
document: {activeElement: null, currentScript: null}, window: {innerWidth: 1366, innerHeight: 768, matchMedia: () => ({matches: false})}, navigator: {},
|
||||
@@ -50,7 +50,7 @@ const context = {
|
||||
agentNames: () => ["Docs", "Stage"], agentKey: (who) => KEYS_OF[who] || who, nameOf: (key) => NAMES[key] || key, labelOf: (key) => NAMES[key] || key, keyOf: (item) => `${item.kind}:${item.id}`,
|
||||
go: () => {}, useView: () => {}, useSaved: () => {}, openAgent: () => {}, openRadio: () => {}, confirmAct: () => {}, openAgentOrder: () => {}, settingsSheet: () => {},
|
||||
toggleMusic: () => {}, skyLook: () => {}, toggleLeitstand: () => {}, askNotify: () => {}, helpSheet: () => {}, micFrame: (field) => field,
|
||||
taskSheet: (id) => calls.tasks.push(id), artSelect: () => {}, select: () => {}, openItem: () => {}, openSheet: () => {}, glossarySections: () => [], toast: () => {},
|
||||
taskSheet: (id) => calls.tasks.push(id), artSelect: () => {}, select: () => {}, openItem: () => {}, openSheet: () => {}, glossarySections: () => [], toast: (...args) => calls.toasts.push(args),
|
||||
homePins: () => [], homePress: (kind, id) => calls.pins.push(`${kind}:${id}`), HOME_OPENERS: {task: (id) => calls.tasks.push(`home ${id}`)},
|
||||
closeMenus: () => { calls.closed += 1; }, calls,
|
||||
};
|
||||
@@ -67,6 +67,10 @@ const taskSections = ctxSections(inside);
|
||||
out.task = labels(taskSections);
|
||||
taskSections[0].items.forEach((item) => item.label !== "Copy task id" && item.run());
|
||||
out.ran = {tasks: calls.tasks, pins: calls.pins};
|
||||
const refused = ctxSections(new Element("li", {"data-item": "artifact:wt:/" + "p".repeat(300)}))[0];
|
||||
out.refused = [refused.title, refused.items.map((item) => [item.label, item.hint])];
|
||||
refused.items[0].run();
|
||||
out.toasts = calls.toasts;
|
||||
ui.screen = "agents";
|
||||
out.agent = labels(ctxSections(new Element("g", {"data-face": "s2", "data-pick": "s2"})));
|
||||
out.operator = labels(ctxSections(new Element("span", {"data-face": "Operator"})))[0][0];
|
||||
@@ -137,12 +141,18 @@ class TestHubContextMenu(unittest.TestCase):
|
||||
def test_the_element_items_act_on_the_clicked_element(self):
|
||||
self.assertEqual(self.data["ran"], {"tasks": ["work/feature"], "pins": ["task:work/feature"]})
|
||||
|
||||
def test_a_refused_pin_keeps_its_menu_item_names_why_and_pins_nothing(self):
|
||||
why = "the id runs past 200 characters"
|
||||
self.assertEqual(self.data["refused"], ["Home pin", [["Pin to Home", f"not possible, {why}"]]])
|
||||
self.assertEqual(self.data["toasts"], [["Not pinned", [f"Pin to Home is not possible: {why}."], False]])
|
||||
self.assertEqual(self.data["ran"]["pins"], ["task:work/feature"])
|
||||
|
||||
def test_an_agent_scoped_palette_item_shows_only_on_its_own_agent(self):
|
||||
self.assertEqual(self.data["agent"], [["element", "Stage", ["Stage", "Copy name"]], ["agents", "Agents", AGENTS_TAB], ["general", "General", GENERAL]])
|
||||
self.assertEqual(self.data["operator"], "agents")
|
||||
|
||||
def test_a_sub_screen_takes_the_items_of_its_tab(self):
|
||||
self.assertEqual(self.data["rules"], [["stream", "Stream", ["View: Stream › Controls", "Stream: For you", "Stream: Mine", "Controls …"]], ["general", "General", GENERAL]])
|
||||
self.assertEqual(self.data["rules"], [["stream", "Stream", ["View: Stream › Controls", "Stream: For you", "Stream: Mine", "Controls …", "Schedules …"]], ["general", "General", GENERAL]])
|
||||
|
||||
def test_every_palette_item_has_a_scope_and_the_palette_still_lists_them_all(self):
|
||||
palette = self.data["palette"]
|
||||
|
||||
Reference in new issue
Block a user