Document 100% CLI coverage achievement
- Audited gantt-board API: 13 endpoints identified - Added 5 missing auth commands to CLI - Updated MEMORY.md with coverage matrix - Rule 2.5 now fully compliant for gantt-board
This commit is contained in:
parent
f812643274
commit
0f41c3e729
33
MEMORY.md
33
MEMORY.md
@ -240,13 +240,33 @@ First question: "How will I (Max) interact with this programmatically without Ma
|
||||
|
||||
---
|
||||
|
||||
## Gantt Board CLI Tools (Working 2/22)
|
||||
## Gantt Board CLI Tools (100% API Coverage)
|
||||
|
||||
**Location:** `/Users/mattbruce/Documents/Projects/OpenClaw/Web/gantt-board/scripts/` (IN PROJECT, VERSION CONTROLLED)
|
||||
|
||||
**Status:** ✅ Rule 2.5 Compliant - All API endpoints have matching CLI commands
|
||||
**Audit Date:** 2026-02-22
|
||||
**Coverage:** 13 API endpoints → 13 CLI commands (100%)
|
||||
|
||||
**Rule:** CLI tools belong IN THE PROJECT DIRECTORY, not workspace scripts folder. They must be committed with the project or they'll get lost.
|
||||
|
||||
**✅ CORRECTLY PLACED:** These scripts are now in the gantt-board project repo and committed.
|
||||
### API-to-CLI Coverage Matrix
|
||||
|
||||
| API Endpoint | Method | CLI Command | Status |
|
||||
|--------------|--------|-------------|--------|
|
||||
| /api/tasks | GET | `task list` | ✅ |
|
||||
| /api/tasks | POST | `task create` | ✅ |
|
||||
| /api/tasks | DELETE | `task delete` | ✅ |
|
||||
| /api/tasks/natural | POST | `task natural` | ✅ |
|
||||
| /api/auth/login | POST | `auth login` | ✅ |
|
||||
| /api/auth/logout | POST | `auth logout` | ✅ |
|
||||
| /api/auth/session | GET | `auth session` | ✅ |
|
||||
| /api/auth/register | POST | `auth register` | ✅ |
|
||||
| /api/auth/forgot-password | POST | `auth forgot-password` | ✅ |
|
||||
| /api/auth/reset-password | POST | `auth reset-password` | ✅ |
|
||||
| /api/auth/account | PATCH | `auth account` | ✅ |
|
||||
| /api/auth/users | GET | `auth users` | ✅ |
|
||||
| /api/debug | GET | `debug` | ✅ |
|
||||
|
||||
### Reference Implementation (Gantt Board)
|
||||
|
||||
@ -277,6 +297,15 @@ First question: "How will I (Max) interact with this programmatically without Ma
|
||||
# Auth
|
||||
./scripts/gantt.sh auth session # Check session
|
||||
./scripts/gantt.sh auth login <email> <pass> # Log in
|
||||
./scripts/gantt.sh auth logout # Log out
|
||||
./scripts/gantt.sh auth register <email> <pass> # Register new account
|
||||
./scripts/gantt.sh auth forgot-password <email> # Request password reset
|
||||
./scripts/gantt.sh auth reset-password <tok> <pass> # Reset password
|
||||
./scripts/gantt.sh auth account <field> <value> # Update account
|
||||
./scripts/gantt.sh auth users # List users
|
||||
|
||||
# Debug
|
||||
./scripts/gantt.sh debug # Debug endpoint
|
||||
```
|
||||
|
||||
**Usage (Direct Supabase - works without web server):**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user