From bcd9ef35f417aec0f3bdfa04d04e54942b76686b Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Sat, 21 Feb 2026 17:29:29 -0600 Subject: [PATCH] Update MEMORY.md with unified CLI documentation - Document gantt.sh unified CLI covering all API endpoints - Separate API-based vs Supabase-direct approaches - Clear usage examples for both methods --- MEMORY.md | 46 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/MEMORY.md b/MEMORY.md index 2a5bcb4..943f3e7 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -212,19 +212,45 @@ First question: "How will I (Max) interact with this programmatically without Ma **Source of truth for the pattern:** - **Location:** `/Users/mattbruce/Documents/Projects/OpenClaw/Web/gantt-board/scripts/` -- **Files:** `gantt-task-crud.sh`, `attach-file.sh`, `view-attachment.sh` -- **Usage:** +- **Files:** + - `gantt.sh` - Unified CLI (API-based, all operations) + - `gantt-task-crud.sh` - Direct Supabase CRUD + - `attach-file.sh` - Direct Supabase file attachments + - `view-attachment.sh` - View attached files + +**Usage (Unified CLI - covers ALL API endpoints):** ```bash -./scripts/gantt-task-crud.sh list [status] # List all tasks -./scripts/gantt-task-crud.sh get # Get specific task -./scripts/gantt-task-crud.sh create "Title" [status] [priority] -./scripts/gantt-task-crud.sh update -./scripts/gantt-task-crud.sh delete -./scripts/attach-file.sh # Attach file -./scripts/view-attachment.sh [index] # View attachment +# Tasks +./scripts/gantt.sh task list [status] # List tasks +./scripts/gantt.sh task get # Get task +./scripts/gantt.sh task create "Title" [status] [priority] # Create task +./scripts/gantt.sh task natural "Fix bug by Friday, high priority" # Natural language +./scripts/gantt.sh task update # Update field +./scripts/gantt.sh task delete # Delete task +./scripts/gantt.sh task comment "text" # Add comment +./scripts/gantt.sh task attach # Attach file + +# Projects & Sprints +./scripts/gantt.sh project list # List projects +./scripts/gantt.sh sprint list # List sprints + +# Auth +./scripts/gantt.sh auth session # Check session +./scripts/gantt.sh auth login # Log in ``` -**How it works:** Uses Supabase service role key directly. Files stored as base64 data URLs. +**Usage (Direct Supabase - works without web server):** +```bash +./scripts/gantt-task-crud.sh list [status] # List tasks +./scripts/gantt-task-crud.sh get # Get task +./scripts/attach-file.sh # Attach file +./scripts/view-attachment.sh [index] # View attachment +``` + +**How it works:** +- `gantt.sh` uses the REST API (requires web server running) +- Direct scripts use Supabase service role key (works offline) +- Files stored as base64 data URLs in database **To copy to new project:** ```bash