@keepgoingdev/mcp-server 0.3.1 → 0.5.0

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.
@@ -0,0 +1,45 @@
1
+ #!/bin/bash
2
+ # KeepGoing statusline script for Claude Code
3
+ # Reads .keepgoing/current-tasks.json and displays the current task summary.
4
+ # Invoked by Claude Code's statusLine feature after each assistant message.
5
+ # Receives JSON session data on stdin per the statusline protocol.
6
+
7
+ input=$(cat)
8
+ DIR=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // empty')
9
+
10
+ if [ -z "$DIR" ]; then
11
+ exit 0
12
+ fi
13
+
14
+ TASKS_FILE="$DIR/.keepgoing/current-tasks.json"
15
+
16
+ if [ ! -f "$TASKS_FILE" ]; then
17
+ exit 0
18
+ fi
19
+
20
+ # Find the most recently updated active task
21
+ SUMMARY=$(jq -r '
22
+ (.tasks // [])
23
+ | map(select(.sessionActive == true))
24
+ | sort_by(.updatedAt)
25
+ | last
26
+ | .taskSummary // empty
27
+ ' "$TASKS_FILE")
28
+
29
+ if [ -z "$SUMMARY" ] || [ "$SUMMARY" = "null" ]; then
30
+ exit 0
31
+ fi
32
+
33
+ BRANCH=$(jq -r '
34
+ (.tasks // [])
35
+ | map(select(.sessionActive == true))
36
+ | sort_by(.updatedAt)
37
+ | last
38
+ | .branch // empty
39
+ ' "$TASKS_FILE")
40
+
41
+ if [ -n "$BRANCH" ] && [ "$BRANCH" != "null" ]; then
42
+ echo "[KG] $BRANCH: $SUMMARY"
43
+ else
44
+ echo "[KG] $SUMMARY"
45
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keepgoingdev/mcp-server",
3
- "version": "0.3.1",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {