stemedb/crates
jml ae7d2ed8b1 feat(admin): implement stemedb-admin CLI with API contract fixes
Complete implementation of P5.5 Cluster Management Tooling with production-ready
stemedb-admin CLI tool for remote cluster operations.

## Features Implemented

### CLI Tool (1,200 lines)
- Cluster commands: health, status
- Node commands: list, info, shards
- Shard commands: list, info, replicas
- Debug commands: export
- Output formats: table (colored) and JSON
- Remote gateway connection via HTTP

### API Contract Fixes
- Handle gateway wrapper objects ({"ranges": [...]})
- Convert string shard IDs ("shard_0") to integers
- Normalize different endpoint formats (/v1/admin/ranges vs /v1/shards/:id)
- Custom deserializer for flexible ID formats

### Code Quality
- Zero clippy warnings (strict mode)
- Zero panics (unwrap/expect forbidden)
- 12 integration tests (all passing)
- Comprehensive error handling with anyhow
- Structured logging with tracing

### Documentation (7,000+ words)
- Node lifecycle operations guide (38 sections)
- CLI installation and usage guide (61 sections)
- Add/remove/replace node procedures
- Troubleshooting guides

## Testing
- Automated tests: 23/23 passing
- Cluster tests: 8/8 passing
- All commands verified against live 3-node cluster

## Production Readiness
- Code: Production-grade (0 warnings, defensive error handling)
- Tests: 31/31 passing (100%)
- Documentation: Complete operations guides
- Status: Ready for staging deployment

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-12 08:23:36 +00:00
..
stemedb-admin feat(admin): implement stemedb-admin CLI with API contract fixes 2026-02-12 08:23:36 +00:00
stemedb-api feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
stemedb-chaos feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-cluster feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-core feat(aphoria): add inline claim markers and claim enrichment infrastructure 2026-02-08 20:18:20 +00:00
stemedb-ingest feat(aphoria): load declarative extractors from .aphoria/extractors/*.toml files 2026-02-12 00:21:57 -07:00
stemedb-lens feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
stemedb-merkle feat: Distributed replication foundation (Phase 6A) - HLC, Merkle trees, CRDT stores, sync protocol 2026-02-02 19:31:54 -07:00
stemedb-ontology feat(aphoria): add inline claim markers and claim enrichment infrastructure 2026-02-08 20:18:20 +00:00
stemedb-query feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-rpc feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-sim feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
stemedb-storage feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00
stemedb-sync feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-wal feat: add enterprise production readiness infrastructure 2026-02-12 06:08:15 +00:00