-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (49 loc) · 1.81 KB
/
Copy pathMakefile
File metadata and controls
67 lines (49 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
all:
cat Makefile
.NOTPARALLEL: capture_all
build:
cc -O2 -Wno-unused-result -o monitor-bin monitor.c -lpthread
test-c: build
bash test_c.sh
uv run pytest test_monitor.py -v
test-swarm:
uv run pytest test_swarm.py -v
test: test-c test-swarm
install-aiswarm:
uv tool install --editable . --force
capture:
@test -n "$(AGENT)" || (echo "Usage: make capture AGENT=<claude|codex|copilot|gemini|vibe|qwen|antigravity|grok> [DUR=60]"; exit 1)
./capture_fixture.sh $(AGENT) $${DUR:-60}
capture_claude:
$(MAKE) capture AGENT=claude DUR="$(DUR)"
capture_codex:
$(MAKE) capture AGENT=codex DUR="$(DUR)"
capture_copilot:
$(MAKE) capture AGENT=copilot DUR="$(DUR)"
capture_gemini:
$(MAKE) capture AGENT=gemini DUR="$(DUR)"
capture_antigravity:
$(MAKE) capture AGENT=antigravity DUR="$(DUR)"
capture_vibe:
$(MAKE) capture AGENT=vibe DUR="$(DUR)"
capture_qwen:
$(MAKE) capture AGENT=qwen DUR="$(DUR)"
capture_grok:
$(MAKE) capture AGENT=grok DUR="$(DUR)"
capture_all: capture_claude capture_codex capture_copilot capture_gemini capture_antigravity capture_vibe capture_qwen capture_grok
# Manual tmux test — no agent needed, just pipes text through a plain session.
# Open a second terminal and run: echo "status" | nc -U /tmp/test-monitor.sock
tmux-test:
tmux new-session -d -s monitor-test 2>/dev/null || true
tmux pipe-pane -t monitor-test "$(CURDIR)/monitor-bin --agent claude --socket /tmp/test-monitor.sock"
@echo "Session running. Send lines with:"
@echo " tmux send-keys -t monitor-test:0.0 -l -- 'Thinking...'"
@echo " sleep 0.1"
@echo " tmux send-keys -t monitor-test:0.0 C-m"
@echo "Query state with:"
@echo " echo status | nc -U /tmp/test-monitor.sock"
@echo "Attach with:"
@echo " tmux attach -t monitor-test"
tmux-clean:
tmux kill-session -t monitor-test 2>/dev/null || true
rm -f /tmp/test-monitor.sock