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
@@ -12,7 +12,7 @@ const RadioSet = (() => {
|
||||
const TABS = ["sent", "received", "all"];
|
||||
const CHIPS = ["class", "from", "to", "agent"];
|
||||
const TEXT_LIMIT = 200;
|
||||
const MUTED_LIMIT = 200;
|
||||
const VOICED = new Set(["word", "speech"]);
|
||||
const BURST = {seconds: 0.6, frequency: 1800, q: 0.9};
|
||||
const MARK = /\[kvb-orchestrator msg ([0-9a-f]{16})\]/;
|
||||
const MARKS = new RegExp(MARK.source, "g");
|
||||
@@ -32,7 +32,6 @@ const RadioSet = (() => {
|
||||
sounds: {mayday: {on: true, volume: 0.9}, review: {on: true, volume: 0.6}, direct: {on: true, volume: 0.5}, radio: {on: false, volume: 0.25}},
|
||||
squelch: 1,
|
||||
classes: ["mayday", "pan-pan", "security"],
|
||||
muted: [],
|
||||
log: {tab: "received", chips: {class: "", from: "", to: "", agent: ""}, q: ""},
|
||||
};
|
||||
|
||||
@@ -63,20 +62,39 @@ const RadioSet = (() => {
|
||||
const raw = object(stored);
|
||||
const sounds = object(raw.sounds);
|
||||
const classes = Array.isArray(raw.classes) ? raw.classes : DEFAULTS.classes;
|
||||
const muted = Array.isArray(raw.muted) ? raw.muted.filter((key) => typeof key === "string" && key && key.length <= TEXT_LIMIT) : [];
|
||||
return {
|
||||
mode: MODES.includes(raw.mode) ? raw.mode : DEFAULTS.mode,
|
||||
fallback: FALLBACKS.includes(raw.fallback) ? raw.fallback : DEFAULTS.fallback,
|
||||
sounds: Object.fromEntries(TONES.map((name) => [name, tone(sounds[name], DEFAULTS.sounds[name])])),
|
||||
squelch: level(raw.squelch, DEFAULTS.squelch),
|
||||
classes: CLASSES.filter((name) => name === "mayday" || classes.includes(name)),
|
||||
muted: [...new Set(muted)].sort().slice(0, MUTED_LIMIT),
|
||||
log: log(raw.log),
|
||||
};
|
||||
}
|
||||
|
||||
function picked(row, set) {
|
||||
return row.class === "mayday" || (set.classes.includes(row.class) && !set.muted.includes(row.source));
|
||||
return row.class === "mayday" || set.classes.includes(row.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} row a radio row with class and source.
|
||||
* @param {Object<string, Object<string, boolean>>} agents the per-agent switches of the settings.
|
||||
* @param {string} what sound, aloud or bubbles.
|
||||
* @returns {boolean} false only while the row's sender has that switch off; a MAYDAY always passes.
|
||||
*/
|
||||
function heard(row, agents, what) {
|
||||
const entry = agents[row.source];
|
||||
return row.class === "mayday" || !(entry && entry[what] === false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Array<object>} steps the plan of the row.
|
||||
* @param {object} row the radio row.
|
||||
* @param {Object<string, Object<string, boolean>>} agents the per-agent switches of the settings.
|
||||
* @returns {Array<object>} the steps its sender lets play: the spoken word and speech under aloud, the tones and stand-ins under sound.
|
||||
*/
|
||||
function voiced(steps, row, agents) {
|
||||
return steps.filter((step) => heard(row, agents, VOICED.has(step.kind) ? "aloud" : "sound"));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,10 +124,6 @@ const RadioSet = (() => {
|
||||
};
|
||||
}
|
||||
|
||||
function muting(set, key) {
|
||||
return {muted: set.muted.includes(key) ? set.muted.filter((name) => name !== key) : [...set.muted, key]};
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} row a radio row of the state with class, called, speaker, pitch and text.
|
||||
* @returns {object} the whole row keyed in Morse as kind "morse", sign, joined, text and pitch: the class prosign, or the called stations of a call, then DE with the sender's clear name and the full text without the hub's message mark, in the sender's pitch.
|
||||
@@ -304,7 +318,7 @@ const RadioSet = (() => {
|
||||
return {...entry, chips: Object.fromEntries(CHIPS.map((name) => [name, ""])), q: ""};
|
||||
}
|
||||
|
||||
return {KEY, MODES, FALLBACKS, KEYED, FRAME, TONES, CLASSES, SPOKEN, TABS, CHIPS, DEFAULTS, GATE, PROSIGNS, valid, picked, bell, ring, muting, frames, standIn, plan, burst, gateLabel, toAll, ledgerOf, logRows, counts, choices, cleared};
|
||||
return {KEY, MODES, FALLBACKS, KEYED, FRAME, TONES, CLASSES, SPOKEN, TABS, CHIPS, DEFAULTS, GATE, PROSIGNS, valid, picked, heard, voiced, bell, ring, frames, standIn, plan, burst, gateLabel, toAll, ledgerOf, logRows, counts, choices, cleared};
|
||||
})();
|
||||
if (typeof module === "object" && module.exports) {
|
||||
module.exports = RadioSet;
|
||||
|
||||
Reference in new issue
Block a user