phewsh 0.15.52 → 0.15.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,12 +64,15 @@ function emit(chunks, options = {}) {
|
|
|
64
64
|
// points at the source of truth, it does not become the source of truth.
|
|
65
65
|
if (byKind.state?.length > 0) {
|
|
66
66
|
sections.push('## Current State');
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
// Prefer the curated "## Now" section (North Star / Current Focus / Open
|
|
68
|
+
// Decisions) over the changelog: emit up to the first horizontal rule that
|
|
69
|
+
// separates it from the history, with a safety cap when there's no divider.
|
|
70
|
+
const lines = embedChunk(byKind.state[0]).split('\n');
|
|
71
|
+
let cut = lines.findIndex(l => /^---+\s*$/.test(l));
|
|
72
|
+
if (cut < 0 || cut > 16) cut = 16;
|
|
73
|
+
sections.push(lines.slice(0, cut).filter(l => l.trim()).join('\n'));
|
|
74
|
+
sections.push('');
|
|
75
|
+
sections.push('_Full state & history: `.intent/status.md` · run `phewsh status`._');
|
|
73
76
|
sections.push('');
|
|
74
77
|
}
|
|
75
78
|
|