Skip to content

Commit 9fec18c

Browse files
committed
docs,devx: session-based chatlog + migration; helpers updated; tasks/hooks/docs refreshed
1 parent 594ed66 commit 9fec18c

13 files changed

+12691
-54
lines changed

.githooks/pre-push

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ cd "$ROOT_DIR"
1414
CHAT_FILE="docs/chatlog.md"
1515
PENDING_FILE="docs/pending_chat_append.txt"
1616
APPENDER="tools/append-chatlog.sh"
17+
NEW_SESSION="tools/new-session-from-pending.sh"
18+
BUILD_CHATLOG="tools/build-chatlog.sh"
1719
LABEL="Pre-push"
1820

1921
# Load optional config
@@ -24,9 +26,10 @@ fi
2426
append_from_file() {
2527
local src="$1"
2628
if [[ -s "$src" ]]; then
27-
bash "$APPENDER" --from-file "$src" --label "$LABEL" || true
28-
rm -f "$src" || true
29-
git add "$CHAT_FILE" || true
29+
# Move pending into a session and rebuild chatlog from sessions
30+
bash "$NEW_SESSION" || true
31+
bash "$BUILD_CHATLOG" || true
32+
git add "$CHAT_FILE" docs/sessions || true
3033
fi
3134
}
3235

@@ -63,9 +66,11 @@ append_from_clipboard() {
6366
rm -f "$TMP_CLIP"; return
6467
fi
6568
fi
66-
# Append from file to avoid re-reading clipboard in appender
67-
bash "$APPENDER" --from-file "$TMP_CLIP" --label "$LABEL (Clipboard)" || true
68-
git add "$CHAT_FILE" || true
69+
# Write clipboard into pending and adopt session-based flow
70+
cat "$TMP_CLIP" > "$PENDING_FILE"
71+
bash "$NEW_SESSION" || true
72+
bash "$BUILD_CHATLOG" || true
73+
git add "$CHAT_FILE" docs/sessions || true
6974
fi
7075
rm -f "$TMP_CLIP" || true
7176
fi

.vscode/keybindings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,11 @@
2222
"command": "workbench.action.tasks.runTask",
2323
"args": "Open Latest CI Summary",
2424
"when": "editorTextFocus"
25+
},
26+
{
27+
"key": "cmd+alt+shift+b",
28+
"command": "workbench.action.tasks.runTask",
29+
"args": "Check Last Build",
30+
"when": "editorTextFocus"
2531
}
2632
]

.vscode/tasks.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,27 @@
111111
"SUMMARY=$(ls -1 ci_logs/**/ci_summary.txt 2>/dev/null | head -n1 || true); if [[ -n $SUMMARY ]]; then (command -v code >/dev/null && code -r \"$SUMMARY\") || ([[ $OSTYPE == darwin* ]] && open \"$SUMMARY\") || cat \"$SUMMARY\"; else echo 'No summary found. Run \"Fetch Latest CI Logs (dev)\" first.'; fi"
112112
],
113113
"problemMatcher": []
114+
},
115+
{
116+
"label": "Check Last Build",
117+
"type": "shell",
118+
"command": "bash",
119+
"args": ["tools/check-last-build.sh", "dev"],
120+
"problemMatcher": []
121+
},
122+
{
123+
"label": "New Session (from pending)",
124+
"type": "shell",
125+
"command": "bash",
126+
"args": ["tools/new-session-from-pending.sh"],
127+
"problemMatcher": []
128+
},
129+
{
130+
"label": "Build Chatlog (sessions → chatlog.md)",
131+
"type": "shell",
132+
"command": "bash",
133+
"args": ["tools/build-chatlog.sh"],
134+
"problemMatcher": []
114135
}
115136
],
116137
"inputs": [

0 commit comments

Comments
 (0)