Skip to content

extractLearningsBlockRules

extractLearningsBlockRules(content): string[]

Defined in: src/promote.ts:308

Parse the rules out of the managed shepherd:learnings block — the inverse of upsertLearningsBlock, used to accumulate across successive global promotes (#872). Returns [] when no block is present. Tolerant of CRLF and leading whitespace; only - <rule> bullets are returned — non-bullet/prose lines inside the block are ignored (the block is Shepherd-owned and rewritten in full, so hand-edits aren’t preserved).

string

string[]