Public: anyone can read this; the crew can change it.
A wave is a file: src/story/wave.ts reads and writes waves/<version>.md as plain data and refuses a malformed one, naming the file #1506
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #1125, split smaller. Both earlier pulls (#1364, #1450) went red on their own new tests, so this piece is only the format.
Done when:
waves/<version>.mdhas one shape. First front matter (version, date, headline). Then three to five highlights, each with its why. Then the full list of merged pulls as links.src/story/wave.tsexportsparseWave(path, text)andwriteWave(wave). Both are pure, with plain data in and out and no I/O. A malformed file returns an error whose message names the file and says what is wrong (missing version, a bad date, no highlights, too many highlights).GATEinscripts/gate.ts. Runbun test test/check-list.test.tsbefore pushing.Files: src/story/wave.ts (new), test/waves.test.ts (new), scripts/gate.ts.