-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.operator
More file actions
67 lines (57 loc) · 1.85 KB
/
Makefile.operator
File metadata and controls
67 lines (57 loc) · 1.85 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
# AgentFolio Makefile
# Quick shortcuts for common operations
.PHONY: help status update refresh list validate score regenerate
# Default: show help
help:
@echo "AgentFolio Operator Commands:"
@echo ""
@echo " make status HANDLE=bobrenze - Check agent status"
@echo " make update HANDLE=bobrenze - Update agent data"
@echo " make refresh HANDLE=bobrenze - Full refresh (update + score + regenerate)"
@echo " make refresh-all - Refresh all agents"
@echo " make validate HANDLE=bobrenze - Validate A2A configuration"
@echo " make list - List all agents"
@echo " make score - Recalculate scores"
@echo " make regenerate - Regenerate site assets"
@echo ""
@echo "Or use: python scripts/operator_cli.py <command>"
# Status check
status:
@if [ -z "$(HANDLE)" ]; then \
echo "Error: HANDLE not set. Use: make status HANDLE=bobrenze"; \
exit 1; \
fi
python scripts/operator_cli.py status $(HANDLE)
# Update agent data
update:
@if [ -z "$(HANDLE)" ]; then \
echo "Error: HANDLE not set. Use: make update HANDLE=bobrenze"; \
exit 1; \
fi
python scripts/operator_cli.py update $(HANDLE)
# Full refresh
refresh:
@if [ -z "$(HANDLE)" ]; then \
echo "Error: HANDLE not set. Use: make refresh HANDLE=bobrenze"; \
exit 1; \
fi
python scripts/operator_cli.py refresh $(HANDLE)
# Refresh all agents
refresh-all:
python scripts/operator_cli.py refresh-all
# Validate A2A configuration
validate:
@if [ -z "$(HANDLE)" ]; then \
echo "Error: HANDLE not set. Use: make validate HANDLE=bobrenze"; \
exit 1; \
fi
python scripts/operator_cli.py validate $(HANDLE)
# List all agents
list:
python scripts/operator_cli.py list
# Recalculate scores
score:
python scripts/operator_cli.py score
# Regenerate site assets
regenerate:
python scripts/operator_cli.py regenerate