mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-12 21:02:17 +02:00
The six mode blocks (voice input, video, coach, voice output summary/full, search, code mode) move out of the composer's if-chain into capability records (capabilities/modes.ts), each owning its fragment text as a pure function of the composition context — the code-mode fragment keeps its chip/cwd parameterization. The composer now iterates MODE_CAPABILITIES in declared order, which is the fixed total order that keeps composed prompts byte-stable; the 13 golden snapshot tests pass unchanged, proving byte-identical output. Fragment text was extracted from the if-chain programmatically (not retyped) so the bytes could not drift. Adding a mode is now one record in one file instead of a flag threaded through the resolver plus a concat site in the composer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| scripts | ||
| src | ||
| .gitignore | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||