memory-read

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Purpose

用途

Read a specific knowledge file from a bucket in
.memory/
.
.memory/
下的某个桶中读取特定的知识文件。

Input

输入

  • bucket
    : pm | architect | dev | qa
  • file
    : filename within the bucket
  • anchor
    (optional): check if a heading anchor exists
  • bucket
    :pm | architect | dev | qa
  • file
    :桶内的文件名
  • anchor
    (可选):检查标题锚点是否存在

Required Flow

必要流程

bash
memory-hub read <bucket> <file> [--anchor <anchor>]
bash
memory-hub read <bucket> <file> [--anchor <anchor>]

Output

输出

JSON envelope with
data.content
containing the file content.
If
--anchor
is provided and invalid,
repair_triggered: true
and repair results are included.
包含
data.content
的JSON包,其中
data.content
存储文件内容。
如果提供了
--anchor
但该锚点无效,会返回
repair_triggered: true
并包含修复结果。

Error Handling

错误处理

  • INVALID_BUCKET
    → invalid bucket name
  • FILE_NOT_FOUND
    → file does not exist in the bucket
  • INVALID_BUCKET
    → 无效的桶名称
  • FILE_NOT_FOUND
    → 桶中不存在该文件