You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A framework TypeScript edit reaches pages without a build #4112
backlogAn item on Leaf's prioritised backlog (TODO.md says how to query it)dev-velocityTheme: tests, CI and developer toolingnextBacklog priority: after nowwaits-on-userRetired 10 Nov 2026: assign max-sixty instead (TODO.md, Backlog)
An edit to browser/framework/*.ts doesn't reach any page until someone runs the build, and nothing says so. It's the same failure #3886 removes for stylesheets.
Reproduced. I appended an export to browser/framework/presentation.ts and read the serving runtime before and after. leaf.runtime_selection.read_runtime() kept the same identity (49f65a6da1771589) and kept serving the kernel, and the served presentation.js lacked the export. The kernel's freshness check hashes only .js files, so a .ts edit never makes it stale. pnpm run check catches the mismatch at landing, not while someone is developing.
Proposal. Write the framework as JavaScript with JSDoc types, which tsc checks with checkJs, as tsconfig.runtime.json already does for browser/runtime/, though without strict. The source would then be what's served, as #3886 makes it for CSS. That deletes the compiled copy in browser/vendor/browser-runtime/ and the kernel's copy of it, about 2,680 lines, along with the TypeScript compile step, its import rewriting and the amaro dependency.
Cost. Rewriting about 570 type-bearing lines of the framework's roughly 2,640, plus domain.ts (188 lines), in JSDoc syntax. This is an estimate from the lines that differ between source and compiled output; nobody has tried the rewrite.
Waits on the user: the framework took its TypeScript form on 22 October, so keeping or reversing that language choice is Max's call.
This was written by Claude Code on behalf of max-sixty
backlogAn item on Leaf's prioritised backlog (TODO.md says how to query it)dev-velocityTheme: tests, CI and developer toolingnextBacklog priority: after nowwaits-on-userRetired 10 Nov 2026: assign max-sixty instead (TODO.md, Backlog)
Activity
Return the runtime's TypeScript modules to JSDoc, so an edit reaches …