Add custodian CLI — register-project and status subcommands
custodian register-project [--domain DOMAIN] [--path PATH] Defaults path to cwd; auto-detects domain from project charter if --domain is omitted. Does: API health → topic lookup → MCP check → CLAUDE.md from template → progress event. custodian status Prints API health + summary totals + blocking decisions. Installed via: make install-cli (symlinks .venv/bin/custodian → ~/.local/bin/) Entry point declared in pyproject.toml [project.scripts]. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
.PHONY: install db db-tools migrate seed api dashboard check start clean register-project
|
||||
.PHONY: install install-cli db db-tools migrate seed api dashboard check start clean register-project
|
||||
|
||||
COMPOSE = docker compose -f infra/docker-compose.yml --env-file .env
|
||||
|
||||
install:
|
||||
uv sync
|
||||
|
||||
## Symlink the custodian CLI into ~/.local/bin so it's on PATH system-wide
|
||||
install-cli: install
|
||||
mkdir -p ~/.local/bin
|
||||
ln -sf "$(shell pwd)/.venv/bin/custodian" ~/.local/bin/custodian
|
||||
@echo "Installed: custodian → $$(readlink -f ~/.local/bin/custodian)"
|
||||
@echo "Make sure ~/.local/bin is on your PATH:"
|
||||
@echo " echo 'export PATH=\"\$$HOME/.local/bin:\$$PATH\"' >> ~/.bashrc && source ~/.bashrc"
|
||||
|
||||
db:
|
||||
$(COMPOSE) up -d postgres
|
||||
|
||||
|
||||
Reference in New Issue
Block a user