/** * Code-generation utilities shared by the engine and the runtime targets. * * These are language-neutral (or, for the inline-script gate, frontend-JS-neutral): * stripping markdown fences off an LLM reply, the fix-prompt shape, and validating the * JavaScript inside an HTML page's