@keepgoingdev/mcp-server 0.5.4 → 0.5.6
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/LICENSE +21 -0
- package/README.md +12 -2
- package/dist/index.js +207 -69
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/statusline.sh +0 -51
package/package.json
CHANGED
package/dist/statusline.sh
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
# Detect current git branch for branch-aware filtering
|
|
21
|
-
CURRENT_BRANCH=$(git -C "$DIR" rev-parse --abbrev-ref HEAD 2>/dev/null)
|
|
22
|
-
|
|
23
|
-
# Single jq call: prefer current branch tasks, fall back to most recent active
|
|
24
|
-
RESULT=$(jq -r --arg branch "$CURRENT_BRANCH" '
|
|
25
|
-
(.tasks // [])
|
|
26
|
-
| map(select(.sessionActive == true))
|
|
27
|
-
| if length == 0 then empty
|
|
28
|
-
else
|
|
29
|
-
(map(select(.branch == $branch)) | sort_by(.updatedAt) | last) //
|
|
30
|
-
(sort_by(.updatedAt) | last)
|
|
31
|
-
end
|
|
32
|
-
| [(.branch // ""), (.taskSummary // "")]
|
|
33
|
-
| @tsv
|
|
34
|
-
' "$TASKS_FILE")
|
|
35
|
-
|
|
36
|
-
if [ -z "$RESULT" ]; then
|
|
37
|
-
exit 0
|
|
38
|
-
fi
|
|
39
|
-
|
|
40
|
-
BRANCH=$(echo "$RESULT" | cut -f1)
|
|
41
|
-
SUMMARY=$(echo "$RESULT" | cut -f2)
|
|
42
|
-
|
|
43
|
-
if [ -z "$SUMMARY" ]; then
|
|
44
|
-
exit 0
|
|
45
|
-
fi
|
|
46
|
-
|
|
47
|
-
if [ -n "$BRANCH" ]; then
|
|
48
|
-
echo "[KG] $BRANCH: $SUMMARY"
|
|
49
|
-
else
|
|
50
|
-
echo "[KG] $SUMMARY"
|
|
51
|
-
fi
|