Files
loki/scripts
g-butandClaude Sonnet 4.6 47d12b65ca refactor(session): collapse duplicate .md file parsers into parseSessionFile SSOT
control-fast-state.ts had a single-line regex parser; sessions/route.ts had a
more capable multi-line buffering parser that stops at ## sections. Both parsed
the same on-disk handoff format (done/next/tests/todos/health).

Add parseSessionFile(raw) to session-content.ts — the canonical implementation
using the multi-line algorithm. Both callers now import it; the local parse
functions are deleted. control-fast-state.ts shrinks from 17 lines to 5.

The Python beacon's _build_summary keeps its own single-line parse (language
boundary) but now has a cross-reference comment to parseSessionFile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 01:23:17 +02:00
..