import { packageContext } from 'kody:runtime' const esc = (s: string) => s.replace(/[&<>"']/g, (c) => `&#${c.charCodeAt(0)};`) export function renderShell() { const appBase = String(packageContext?.appBasePath ?? '') const assetBase = String(packageContext?.assetBasePath ?? `${appBase}/_assets`) const clientUrl = `${assetBase}/client/main.js` const html = ` Kody World Builder
` return new Response(html, { headers: { 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-store' }, }) }