memory-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePurpose
用途
Full-text search across all knowledge buckets (pm, architect, dev, qa).
在所有知识桶(pm、architect、dev、qa)中进行全文检索。
Input
输入
- : search string (substring or regex)
query - (optional): lines of context around matches, default 1
context
- : 搜索字符串(子字符串或正则表达式)
query - (可选): 匹配结果周围的上下文行数,默认值为1
context
Required Flow
必要流程
bash
memory-hub search "<query>" [--context N]bash
memory-hub search "<query>" [--context N]Output
输出
JSON envelope with array: .
data.matches{file, line_number, line_content, context}包含数组的JSON包:。
data.matches{file, line_number, line_content, context}Error Handling
错误处理
- →
NOT_INITIALIZEDdoes not exist.memory/
- →
NOT_INITIALIZED目录不存在.memory/