memory-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Purpose

用途

Full-text search across all knowledge buckets (pm, architect, dev, qa).
在所有知识桶(pm、architect、dev、qa)中进行全文检索。

Input

输入

  • query
    : search string (substring or regex)
  • context
    (optional): lines of context around matches, default 1
  • query
    : 搜索字符串(子字符串或正则表达式)
  • context
    (可选): 匹配结果周围的上下文行数,默认值为1

Required Flow

必要流程

bash
memory-hub search "<query>" [--context N]
bash
memory-hub search "<query>" [--context N]

Output

输出

JSON envelope with
data.matches
array:
{file, line_number, line_content, context}
.
包含
data.matches
数组的JSON包:
{file, line_number, line_content, context}

Error Handling

错误处理

  • NOT_INITIALIZED
    .memory/
    does not exist
  • NOT_INITIALIZED
    .memory/
    目录不存在