Skip to content

Commit e7dae5b

Browse files
committed
fix: Update import paths from claude-follow-tui to claude-mon
- Update all internal package imports to use claude-mon module path - Fix leader key timeout (2s -> 4s) - Select most recent history item by default when loading history - Update model, chat, config, diff, highlight, history, minimap, prompt, socket packages - Update test files and demo scripts - Update .gitignore and Makefile
1 parent 9335dde commit e7dae5b

28 files changed

+1149
-114
lines changed

.claude/hooks/PostToolUse

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
# claude-follow-tui PostToolUse hook
3+
# Sends tool edits to the TUI for real-time display
4+
5+
# Get the current directory and resolve to absolute path
6+
CWD="$(cd "$(pwd)" && pwd)"
7+
8+
# Resolve symlinks (macOS compatible)
9+
if command -v realpath &>/dev/null; then
10+
CWD="$(realpath "$CWD")"
11+
elif [[ "$(uname)" == "Darwin" ]]; then
12+
# macOS: use perl to resolve symlinks
13+
CWD="$(perl -MCwd -e 'print Cwd::realpath($ARGV[0])' "$CWD")"
14+
else
15+
CWD="$(readlink -f "$CWD")"
16+
fi
17+
18+
# Hash the path (matching Go's sha256.Sum256[:12])
19+
HASH="$(echo -n "$CWD" | sha256sum | cut -c1-12)"
20+
21+
# Get username
22+
USER="${USER:-unknown}"
23+
24+
# Socket path
25+
SOCKET_PATH="/tmp/claude-follow-tui-${USER}-${HASH}.sock"
26+
27+
# Send to TUI if socket exists
28+
if [[ -S "$SOCKET_PATH" ]]; then
29+
echo "$TOOL_INPUT" | nc -U "$SOCKET_PATH" &
30+
fi

.claude/plugin.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "claude-follow-tui",
3+
"version": "1.0.0",
4+
"description": "Real-time TUI display of Claude Code tool usage",
5+
"hooks": {
6+
"PostToolUse": "hooks/PostToolUse"
7+
}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ralph-Plan
3+
description: Finish the plan Ralph!
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
/ralph-loop "complete all the goals and end to end test the {{plan_name}}" --completion-promise "the {{plan_name}} goals are complete and it has passing end to end tests"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: New Prompt
3+
description: Describe what this prompt does
4+
version: 1
5+
created: 2026-01-11T21:28:08.551913-05:00
6+
updated: 2026-01-11T21:28:13.48107-05:00
7+
---
8+
9+
Your prompt content here.
10+
11+
Be specific about:
12+
- The task to perform
13+
- Expected output format
14+
- Any constraints or guidelines
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: New Prompt
3+
description: Describe what this prompt does
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
Your prompt content here.
10+
11+
Be specific about:
12+
- The task to perform
13+
- Expected output format
14+
- Any constraints or guidelines
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: New Prompt
3+
description: Describe what this prompt does
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
Your prompt content here.
10+
11+
Be specific about:
12+
- The task to perform
13+
- Expected output format
14+
- Any constraints or guidelines
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ralph-Plan
3+
description: Finish the plan Ralph!
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
/ralph-loop "complete all the goals and end to end test the {{PLAN}}" --completion-promise "the {{PLAN}} goals are complete and it has passing end to end (e2e) tests"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ralph-Plan
3+
description: Finish the plan Ralph!
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
/ralph-loop "complete all the goals and end to end test the {{PLAN}}" --completion-promise "the {{PLAN}} goals are complete and it has passing end to end tests"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ralph-Plan
3+
description: Finish the plan Ralph!
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
/ralph-loop "complete all the goals and end to end test the {{PLAN}}" --completion-promise "the {{PLAN}} goals are complete and it has passing end to end tests"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ralph-Plan
3+
description: Finish the plan Ralph!
4+
version: 1
5+
created: 2026-01-11T21:30:54.887924-05:00
6+
updated: 2026-01-11T21:30:57.996032-05:00
7+
---
8+
9+
/ralph-loop "complete all the goals and end to end test the {{plan}}" --completion-promise "the {{plan}} goals are complete and it has passing end to end tests"

0 commit comments

Comments
 (0)