-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (47 loc) · 1.71 KB
/
Copy pathMakefile
File metadata and controls
64 lines (47 loc) · 1.71 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
.PHONY: setup dev-setup start status trace test eventstore docker-status docker-trace docker-build run run-research run-durable docs docs-serve docs-setup
VENV := .venv
PYTHON := python3
PIP := $(VENV)/bin/pip
KANDO := $(VENV)/bin/python -m kando.cli.main
# Create venv and install runtime + stream + mcp extras
setup:
$(PYTHON) -m venv $(VENV)
$(PIP) install --quiet -e ".[stream,mcp]"
# Like setup but also installs dev tools (pytest, hypothesis, etc.)
dev-setup:
$(PYTHON) -m venv $(VENV)
$(PIP) install --quiet -e ".[dev]"
# Quick smoke test: status demo + trace demo (works without ESDB)
start: setup status trace
status:
$(KANDO) status demo
trace:
$(KANDO) trace object.created-2
# Run tests; dev-setup installs pytest automatically
test: dev-setup
$(VENV)/bin/python -m pytest
# Start EventStoreDB (required for kando run / replay / fork / diff)
eventstore:
docker compose up -d eventstore
# Run diligence kit (in-memory if EVENTSTORE_URL unset; GOAL required)
run: setup
$(KANDO) run kits/diligence --goal "$(GOAL)"
# Run research kit (in-memory if EVENTSTORE_URL unset; GOAL required)
run-research: setup
$(KANDO) run kits/research --goal "$(GOAL)"
# Run against EventStoreDB
run-durable: setup eventstore
EVENTSTORE_URL=http://localhost:2113 $(KANDO) run kits/diligence --goal "$(GOAL)"
docker-build:
docker compose build kando
docker-status:
docker compose run --rm kando python -m kando.cli.main status demo
docker-trace:
docker compose run --rm kando python -m kando.cli.main trace object.created-2
# Documentation (MkDocs Material)
docs-setup:
$(PIP) install --quiet mkdocs-material "mkdocstrings[python]"
docs: docs-setup
$(VENV)/bin/mkdocs build
docs-serve: docs-setup
$(VENV)/bin/mkdocs serve