-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile_scaffold
More file actions
50 lines (40 loc) · 1.54 KB
/
Copy pathmakefile_scaffold
File metadata and controls
50 lines (40 loc) · 1.54 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
# Makefile для Project404 (Steyr Sprint)
# Единый граф-файл
GRAPH := project404.graph.yaml
# AI выводы
CONCLUSIONS := action/conclusions
# Подхват .env автоматически
ifneq (,$(wildcard ./.env))
include .env
export OPENAI_API_KEY
endif
.PHONY: help init seed hash ai commit all
help:
@echo "Использование:"
@echo " make init — инициализация git"
@echo " make seed — генерация тестовых точек боли"
@echo " make hash — пересчитать и вставить hash в $(GRAPH)"
@echo " make ai — запустить Echo-агента (churn.py)"
@echo " make commit — добавить и закоммитить изменения"
@echo " make all — seed → hash → ai → commit"
init:
git init
@echo "Git репозиторий инициализирован"
seed:
@echo "Генерируем 3 тестовые точки боли…"
python scripts/seed_nodes.py --count 3
@echo "Seed completed"
hash:
@echo "Пересчет hash для $(GRAPH)…"
@NEW=$$(sha256sum $(GRAPH) | awk '{print $$1}'); \
sed -i "s|hash: \".*\"|hash: \"$$NEW\"|" $(GRAPH); \
@echo "Новый hash: $$NEW"
ai:
@echo "Запуск Echo-агента (churn.py)…"
python churn.py
commit:
@echo "Коммитим изменения…"
git add $(GRAPH) $(CONCLUSIONS)/*
git commit -m "chore: auto-patch via Echo-agent & hash update"
all: seed hash ai commit
@echo "Готово! Один цикл DBQA пройден."