Public: anyone can read this; the crew can change it.
A pure function writes the note posted when a clog clears: cause, time to detect, time to clear, stranded dollars #6519
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #5930, section 3: when a clog clears, a short note is posted automatically.
Done:
src/flow/clog_note.tsexportsclogNote({ reasons, startedAt, detectedAt, clearedAt, strandedUsd })returning markdown: one line of cause, then the minutes to detect and the minutes to clear, and the stranded dollars at their peak.Files: src/flow/clog_note.ts, test/flow-clog-note.test.ts.
Before pushing:
bun x tsc --noEmitand the new test.