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
- const body = embedChunk(byKind.state[0]).split('\n').filter(l => l.trim());
68
- sections.push(body.slice(0, 8).join('\n'));
69
- if (body.length > 8 || byKind.state.length > 1) {
70
- sections.push('');
71
- sections.push('_Full state & history: `.intent/status.md` · run `phewsh status`._');
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phewsh",
3
- "version": "0.15.52",
3
+ "version": "0.15.53",
4
4
  "description": "Turn intent into action. Structure your thinking, execute your next step.",
5
5
  "bin": {
6
6
  "phewsh": "bin/phewsh.js"