Purpose
Full-text search across all knowledge buckets (pm, architect, dev, qa).
Input
-
query : search string (substring or regex)
-
context (optional): lines of context around matches, default 1
Required Flow
memory-hub search "<query>" [--context N]
Output
JSON envelope with data.matches array: {file, line_number, line_content, context} .
Error Handling
- NOT_INITIALIZED → .memory/ does not exist