fdeops 3.7.6 → 3.7.7
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.
- package/bin/fde.js +6 -1
- package/hooks/session-start +4 -1
- package/package.json +1 -1
package/bin/fde.js
CHANGED
|
@@ -588,7 +588,12 @@ function resumeView(md) {
|
|
|
588
588
|
// matches the bash hook's `wc -l` and the two bounded views stay byte-aligned.
|
|
589
589
|
if (lines.length > 0 && lines[lines.length - 1] === '') lines.pop()
|
|
590
590
|
if (lines.length <= 160) return md
|
|
591
|
-
|
|
591
|
+
// Anchor on the "## Session end" heading, NOT the "<!-- fdeops auto-capture -->"
|
|
592
|
+
// comment: this text is read via readClean (stripPrivate strips HTML comments),
|
|
593
|
+
// so the comment is gone by the time we get here. The heading is written on the
|
|
594
|
+
// very next line by cmdCapture and the session-stop hook and survives redaction.
|
|
595
|
+
// The bash bounded_context() anchors on the same heading - keep them identical.
|
|
596
|
+
let headEnd = lines.findIndex(l => /^##\s+Session end\b/.test(l.trim()))
|
|
592
597
|
if (headEnd === -1) headEnd = 120
|
|
593
598
|
headEnd = Math.min(headEnd, 120)
|
|
594
599
|
const tailStart = Math.max(headEnd, lines.length - 40)
|
package/hooks/session-start
CHANGED
|
@@ -126,7 +126,10 @@ bounded_context() {
|
|
|
126
126
|
total=$(wc -l < "$f" 2>/dev/null | tr -d ' ')
|
|
127
127
|
[ -z "$total" ] && { cat "$f"; return; }
|
|
128
128
|
if [ "$total" -le 160 ]; then cat "$f"; return; fi
|
|
129
|
-
|
|
129
|
+
# Anchor on the "## Session end" heading, matching resumeView() in bin/fde.js.
|
|
130
|
+
# The JS path reads via readClean (strips HTML comments), so both sides must
|
|
131
|
+
# anchor on a marker that survives redaction - the heading, not the comment.
|
|
132
|
+
head_end=$(grep -n -m1 '^## Session end' "$f" 2>/dev/null | cut -d: -f1)
|
|
130
133
|
if [ -n "$head_end" ]; then head_end=$((head_end - 1)); else head_end=120; fi
|
|
131
134
|
[ "$head_end" -gt 120 ] && head_end=120
|
|
132
135
|
[ "$head_end" -lt 0 ] && head_end=0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fdeops",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.7",
|
|
4
4
|
"description": "Field kit for engineers embedded in client work - a real CLI (recon, memory, portfolio), one @fde skill with field judgment on top, and hooks that make it automatic. Claude Code plugin and any agent that loads skills.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"fdeops": "bin/install.js",
|