fix(orchestrator): keep Jinja delimiters out of the included Morse scripts
index.html.j2 pulls radioset.js and morse.js in through {% include %}, so Jinja parses them: the JSDoc record types {{kind: ...}} and {{tones: ...}} opened print statements and every page render raised TemplateSyntaxError (the hub served an empty response). Both now read @returns {object} with the keys in the text. test_hub_view: 2 errors before, 36 OK after; test_hub_morse 16 OK.
🎯 Fix: 98 %
💥 Break: 1 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 97
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b88f187ffd
commit
c425fb6d74
2 files changed
+2
-2
No files matched your search
@@ -60,7 +60,7 @@ const Morse = (() => {
|
||||
/**
|
||||
* @param {Array<Array<string>>} signs words of letter codes, as words and joined give them.
|
||||
* @param {number} wpm the speed in words per minute.
|
||||
* @returns {{tones: Array<Array<number>>, ms: number}} every tone as [start, length] in ms and the whole length in ms, each word closed by the gap between words as PARIS counts it.
|
||||
* @returns {object} tones, every tone as [start, length] in ms, and ms, the whole length in ms, each word closed by the gap between words as PARIS counts it.
|
||||
*/
|
||||
function timeline(signs, wpm) {
|
||||
const tones = [];
|
||||
|
||||
@@ -75,7 +75,7 @@ const RadioSet = (() => {
|
||||
|
||||
/**
|
||||
* @param {object} row a radio row of the state with class, called, speaker, pitch and text.
|
||||
* @returns {{kind: string, sign: string, joined: boolean, text: string, pitch: number}} the whole row keyed in Morse: 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.
|
||||
* @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.
|
||||
*/
|
||||
function morse(row) {
|
||||
const {sign, joined, called} = PROSIGNS[row.class];
|
||||
|
||||
Reference in new issue
Block a user