.PHONY: test lint run-api run-mcp train-force

# Run the full test suite (excluding slow model-loading tests)
test:
	pytest -m "not slow"

# Lint: ruff check + mypy (loose mode)
lint:
	ruff check .
	mypy memory_layer --ignore-missing-imports

# Start watcher + FastAPI server (Process A) on port 8000
run-api:
	memory-layer api

# Start MCP stdio server only (Process C)
# Run `make run-api` in a separate terminal first so the watcher populates the DB.
run-mcp:
	memory-layer mcp

# Run Style Adapter training once, bypassing data-threshold gates
train-force:
	memory-layer train --force
