Fix CLAUDE.md: correct binary names and build targets

- Fix cmd/mcr/ to cmd/mcrsrv/ (actual directory name)
- Fix make mcr to make mcrsrv, add mcr-web and mcrctl targets
- Add cmd/mcrctl/ to package structure

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-02 15:14:43 -07:00
parent 1f3bcd6b69
commit cf8011196f

View File

@@ -12,7 +12,9 @@ MCR (Metacircular Container Registry) is a container registry service integrated
```bash ```bash
make all # vet → lint → test → build make all # vet → lint → test → build
make mcr # build binary with version injection make mcrsrv # build API server binary with version injection
make mcr-web # build web UI binary with version injection
make mcrctl # build admin CLI binary
make build # compile all packages make build # compile all packages
make test # run all tests make test # run all tests
make vet # go vet make vet # go vet
@@ -53,8 +55,9 @@ go test ./internal/server -run TestPushManifest
## Package Structure ## Package Structure
- `cmd/mcr/`CLI entry point (cobra subcommands: server, init, status, snapshot) - `cmd/mcrsrv/`API server entry point (cobra subcommands: server, init, status, snapshot)
- `cmd/mcr-web/` — Web UI entry point - `cmd/mcr-web/` — Web UI entry point
- `cmd/mcrctl/` — Admin CLI entry point
- `internal/auth/` — MCIAS integration (token validation, 30s cache by SHA-256) - `internal/auth/` — MCIAS integration (token validation, 30s cache by SHA-256)
- `internal/config/` — TOML config loading and validation - `internal/config/` — TOML config loading and validation
- `internal/db/` — SQLite setup, migrations (idempotent, tracked in `schema_migrations`) - `internal/db/` — SQLite setup, migrations (idempotent, tracked in `schema_migrations`)