Files
Kazuki Yamada c763be3248 refactor(core): Drop handlebars in favor of plain TS render functions
Replace Handlebars templates with plain TypeScript render functions for
all three output styles (plain / markdown / xml) and the skill module
(SKILL.md, summary / structure / files sections).

The previous templates only used a tiny subset of Handlebars ({{var}},
{{#if}}, {{#each}}, one helper) so the dependency was overkill for the
need. Plain TS functions remove the runtime, drop a 6-package dependency
chain, gain compile-time type safety on the render context, and align
the templated paths with the existing parsable XML/JSON paths that
already build strings directly.

- Add renderPlain / renderMarkdown / renderXml taking RenderContext
- Inline the getFileExtension helper as a direct getLanguageFromFilePath
  call inside the markdown each-loop
- Drop registerHandlebarsHelpers / handlebarsHelpersRegistered global
- Rename generateHandlebarOutput to generateTemplateOutput to match
  reality
- Convert generateSkillMd, generateSummarySection,
  generateStructureSection, generateFilesSection to TS

Add migrationBaseline snapshot tests (23 snapshots across output styles
and skill sections) that capture the byte-exact Handlebars output as a
regression guard. All 1279 tests pass against these snapshots after the
migration, proving byte-for-byte equivalence.
2026-05-06 23:22:28 +09:00
..