From c425fb6d7474ebaac320aba5d8d06c3cdd0ccf4f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 15 Nov 2026 11:43:07 +0000 Subject: [PATCH] fix(orchestrator): keep Jinja delimiters out of the included Morse scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- orchestrator/templates/morse.js | 2 +- orchestrator/templates/radioset.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestrator/templates/morse.js b/orchestrator/templates/morse.js index 120df15..b6e4c92 100644 --- a/orchestrator/templates/morse.js +++ b/orchestrator/templates/morse.js @@ -60,7 +60,7 @@ const Morse = (() => { /** * @param {Array>} signs words of letter codes, as words and joined give them. * @param {number} wpm the speed in words per minute. - * @returns {{tones: Array>, 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 = []; diff --git a/orchestrator/templates/radioset.js b/orchestrator/templates/radioset.js index da69b60..02a9f71 100644 --- a/orchestrator/templates/radioset.js +++ b/orchestrator/templates/radioset.js @@ -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];