memory-read
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePurpose
用途
Read a specific knowledge file from a bucket in .
.memory/从 下的某个桶中读取特定的知识文件。
.memory/Input
输入
- : pm | architect | dev | qa
bucket - : filename within the bucket
file - (optional): check if a heading anchor exists
anchor
- :pm | architect | dev | qa
bucket - :桶内的文件名
file - (可选):检查标题锚点是否存在
anchor
Required Flow
必要流程
bash
memory-hub read <bucket> <file> [--anchor <anchor>]bash
memory-hub read <bucket> <file> [--anchor <anchor>]Output
输出
JSON envelope with containing the file content.
data.contentIf is provided and invalid, and repair results are included.
--anchorrepair_triggered: true包含的JSON包,其中存储文件内容。
data.contentdata.content如果提供了但该锚点无效,会返回并包含修复结果。
--anchorrepair_triggered: trueError Handling
错误处理
- → invalid bucket name
INVALID_BUCKET - → file does not exist in the bucket
FILE_NOT_FOUND
- → 无效的桶名称
INVALID_BUCKET - → 桶中不存在该文件
FILE_NOT_FOUND