secrets-engine/.claude/rules/stack-and-commands.md

35 lines
969 B
Markdown
Raw Normal View History

2026-06-28 09:03:37 +00:00
## Stack
- **Language:** Python 3.11+ CLI (`src/secrets_engine/`), `uv`-managed, hatchling build
- **Backend:** OpenBao, reached only via the `bao` CLI adapter (`openbao.py`)
- **Key deps:** PyYAML (runtime), pytest (dev); State Hub for decisions/evidence
- **Entry point:** `secrets-engine` (console script → `secrets_engine.cli:main`)
2026-06-28 09:03:37 +00:00
## Dev Commands
```bash
# Install (editable, with dev extras)
uv venv && uv pip install -e ".[dev]"
source .venv/bin/activate
# Run the CLI
secrets-engine --version
secrets-engine catalog list
# Test (unit + live OpenBao integration; integration auto-skips without `bao`)
SECRETS_ENGINE_HUB_URL="" python -m pytest -q
# Full pilot chain live against a throwaway OpenBao dev server
SECRETS_ENGINE_HUB_URL="" bash scripts/demo-e2e.sh
2026-06-28 09:03:37 +00:00
# Orient (offline-safe)
cat .custodian-brief.md
ls workplans/
# After workplan edits — from ~/state-hub
make fix-consistency REPO=secrets-engine
2026-06-28 09:03:37 +00:00
# Sanity-check edits
2026-06-28 09:03:37 +00:00
git diff --check
```