-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (42 loc) · 1.28 KB
/
Copy pathMakefile
File metadata and controls
59 lines (42 loc) · 1.28 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
.PHONY: install grpc infra api grpc-server mcp test eval demo serve run clean docker
PYTHON ?= python3
PIP ?= pip3
install:
$(PIP) install -r requirements.txt
grpc:
$(PYTHON) -m grpc_tools.protoc -I proto \
--python_out=src/grpc_gen \
--grpc_python_out=src/grpc_gen \
proto/inventory.proto
infra:
docker compose up -d redis chroma kafka mlflow prometheus grafana otel-collector
infra-down:
docker compose down
api:
$(PYTHON) -m uvicorn src.api.main:app --host 0.0.0.0 --port 8080 --reload
grpc-server:
$(PYTHON) -m src.tools.inventory_grpc_server
mcp:
$(PYTHON) -m src.mcp.server
test:
$(PYTHON) -m pytest tests/ -v
eval:
$(PYTHON) -m harness.runner
eval-gates:
curl -s -X POST http://localhost:8080/v1/eval/run \
-H 'Content-Type: application/json' \
-d '{"judge_threshold": 0.6, "judge_seed": 7}' | $(PYTHON) -m json.tool
demo:
@echo "Governance interactive demo: http://localhost:8000"
$(PYTHON) app.py
serve: eval
@echo "Static dashboard: http://localhost:8000/dashboard.html"
$(PYTHON) -m http.server 8000
run: eval
docker-build:
docker build -t supply-chain-agent .
docker-run:
docker run -p 8080:8080 -p 50051:50051 supply-chain-agent
clean:
rm -f results/results.json results/results.csv
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true