Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test([comic-allcaps-continuation-vs-cue]): cover trailing shout before every block type + blank-skip
[._.]/ Adam Eivy4086c2eb95b7
diff --git a/server/lib/comicScriptParser.test.js b/server/lib/comicScriptParser.test.jsindex 86d6f98529..b7d24dacfc 100644--- a/server/lib/comicScriptParser.test.js+++ b/server/lib/comicScriptParser.test.js@@ -518,4 +518,24 @@ Thud!`;{ character: 'KESSA', line: 'No!' },]);});++ // Lock the lookahead heuristic against EACH block type that can follow a+ // trailing shout (PAGE / PANEL / CAPTION / SFX), plus the blank-line-skipped+ // case — every one must keep the shout attributed to the current speaker.+ describe('trailing all-caps shout — lookahead across every block boundary', () => {+ const cases = [+ ['next PAGE', 'PAGE 1\nPANEL 1\nA face.\nGIANT\nWait.\nSTOP\nPAGE 2\nPANEL 1\nElsewhere.'],+ ['next PANEL', 'PAGE 1\nPANEL 1\nA face.\nGIANT\nWait.\nSTOP\nPANEL 2\nAnother shot.'],+ ['next CAPTION', 'PAGE 1\nPANEL 1\nA face.\nGIANT\nWait.\nSTOP\nCAPTION\nLater.'],+ ['next SFX', 'PAGE 1\nPANEL 1\nA face.\nGIANT\nWait.\nSTOP\nSFX\nBOOM'],+ ['blank line then next PANEL', 'PAGE 1\nPANEL 1\nA face.\nGIANT\nWait.\nSTOP\n\nPANEL 2\nAnother shot.'],+ ];+ it.each(cases)('keeps the shout under the speaker when followed by %s', (_label, script) => {+ const { pages } = parseComicScript(script);+ expect(pages[0].panels[0].dialogue).toEqual([+ { character: 'GIANT', line: 'Wait.' },+ { character: 'GIANT', line: 'STOP' },+ ]);+ });+ });});