@memo-code/memo 0.6.0 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -21
- package/README.zh.md +8 -11
- package/dist/index.js +84 -80
- package/dist/prompt.md +46 -40
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -51,8 +51,8 @@ memo
|
|
|
51
51
|
|
|
52
52
|
## Usage
|
|
53
53
|
|
|
54
|
-
- Interactive mode: `memo` (default TUI; supports multi-turn chat,
|
|
55
|
-
-
|
|
54
|
+
- Interactive mode: `memo` (default TUI; supports multi-turn chat, tool visualization, shortcuts).
|
|
55
|
+
- Plain mode (non-TTY): `echo "your prompt" | memo` (plain text output; useful for scripts).
|
|
56
56
|
- Dangerous mode: `memo --dangerous` or `memo -d` (skip tool approvals; use carefully).
|
|
57
57
|
- Version: `memo --version` or `memo -v`.
|
|
58
58
|
|
|
@@ -64,7 +64,6 @@ Location: `~/.memo/config.toml` (can be changed via `MEMO_HOME`).
|
|
|
64
64
|
|
|
65
65
|
```toml
|
|
66
66
|
current_provider = "deepseek"
|
|
67
|
-
stream_output = false
|
|
68
67
|
|
|
69
68
|
[[providers.deepseek]]
|
|
70
69
|
name = "deepseek"
|
|
@@ -111,15 +110,14 @@ memo mcp remove remote
|
|
|
111
110
|
|
|
112
111
|
## Built-in Tools
|
|
113
112
|
|
|
114
|
-
- `
|
|
115
|
-
- `
|
|
116
|
-
- `
|
|
117
|
-
- `
|
|
118
|
-
- `
|
|
119
|
-
- `
|
|
113
|
+
- `exec_command` / `write_stdin`: execute shell commands (default shell family)
|
|
114
|
+
- `shell` / `shell_command`: compatibility shell variants (feature/env controlled)
|
|
115
|
+
- `apply_patch`: structured file edits
|
|
116
|
+
- `read_file` / `list_dir` / `grep_files`: file read and retrieval
|
|
117
|
+
- `list_mcp_resources` / `list_mcp_resource_templates` / `read_mcp_resource`: MCP resource access
|
|
118
|
+
- `update_plan`: structured task plan updates
|
|
120
119
|
- `webfetch`: fetch webpages
|
|
121
|
-
- `
|
|
122
|
-
- `todo`: manage a task list
|
|
120
|
+
- `get_memory`: read memory payload from `~/.memo/Agents.md` (or `MEMO_HOME`)
|
|
123
121
|
|
|
124
122
|
More tools can be added through MCP.
|
|
125
123
|
|
|
@@ -127,8 +125,8 @@ More tools can be added through MCP.
|
|
|
127
125
|
|
|
128
126
|
Memo includes a tool-approval mechanism to reduce risky operations:
|
|
129
127
|
|
|
130
|
-
- **Auto-approve**: safe tools (`
|
|
131
|
-
- **Manual approval**: risky tools (`
|
|
128
|
+
- **Auto-approve**: safe read tools (`read_file`, `list_dir`, `grep_files`, `webfetch`, `get_memory`, etc.)
|
|
129
|
+
- **Manual approval**: risky tools (`apply_patch`, `exec_command`, etc.)
|
|
132
130
|
- **Approval options**:
|
|
133
131
|
- `once`: approve current operation only
|
|
134
132
|
- `session`: approve all matching operations for this session
|
|
@@ -137,15 +135,15 @@ Memo includes a tool-approval mechanism to reduce risky operations:
|
|
|
137
135
|
|
|
138
136
|
## Session History
|
|
139
137
|
|
|
140
|
-
All sessions are saved to `~/.memo/sessions/`, grouped by
|
|
138
|
+
All sessions are saved to `~/.memo/sessions/`, grouped by date:
|
|
141
139
|
|
|
142
140
|
```text
|
|
143
141
|
~/.memo/sessions/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
142
|
+
└── 2026/
|
|
143
|
+
└── 02/
|
|
144
|
+
└── 08/
|
|
145
|
+
├── rollout-2026-02-08T02-21-18-abc123.jsonl
|
|
146
|
+
└── rollout-2026-02-08T02-42-09-def456.jsonl
|
|
149
147
|
```
|
|
150
148
|
|
|
151
149
|
JSONL format is useful for analysis and debugging.
|
|
@@ -157,8 +155,6 @@ JSONL format is useful for analysis and debugging.
|
|
|
157
155
|
```bash
|
|
158
156
|
pnpm install
|
|
159
157
|
pnpm start
|
|
160
|
-
# or
|
|
161
|
-
pnpm start "prompt" --once
|
|
162
158
|
```
|
|
163
159
|
|
|
164
160
|
### Build
|
package/README.zh.md
CHANGED
|
@@ -47,8 +47,8 @@ memo
|
|
|
47
47
|
|
|
48
48
|
## 使用方式
|
|
49
49
|
|
|
50
|
-
- 交互式:`memo`(默认 TUI
|
|
51
|
-
-
|
|
50
|
+
- 交互式:`memo`(默认 TUI,支持多轮、工具可视化、快捷键)。
|
|
51
|
+
- 非交互纯文本模式(非 TTY):`echo "你的问题" | memo`(适合脚本)。
|
|
52
52
|
- 危险模式:`memo --dangerous` 或 `memo -d`(跳过工具审批,谨慎使用)。
|
|
53
53
|
- 查看版本:`memo --version` 或 `memo -v`。
|
|
54
54
|
|
|
@@ -60,7 +60,6 @@ memo
|
|
|
60
60
|
|
|
61
61
|
```toml
|
|
62
62
|
current_provider = "deepseek"
|
|
63
|
-
stream_output = false
|
|
64
63
|
|
|
65
64
|
[[providers.deepseek]]
|
|
66
65
|
name = "deepseek"
|
|
@@ -133,15 +132,15 @@ memo mcp remove remote
|
|
|
133
132
|
|
|
134
133
|
## 会话历史
|
|
135
134
|
|
|
136
|
-
所有会话自动保存到 `~/.memo/sessions
|
|
135
|
+
所有会话自动保存到 `~/.memo/sessions/`,按日期分层组织:
|
|
137
136
|
|
|
138
137
|
```
|
|
139
138
|
~/.memo/sessions/
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
└── 2026/
|
|
140
|
+
└── 02/
|
|
141
|
+
└── 08/
|
|
142
|
+
├── rollout-2026-02-08T02-21-18-abc123.jsonl
|
|
143
|
+
└── rollout-2026-02-08T02-42-09-def456.jsonl
|
|
145
144
|
```
|
|
146
145
|
|
|
147
146
|
JSONL 格式便于分析和调试。
|
|
@@ -153,8 +152,6 @@ JSONL 格式便于分析和调试。
|
|
|
153
152
|
```bash
|
|
154
153
|
pnpm install
|
|
155
154
|
pnpm start
|
|
156
|
-
# 或
|
|
157
|
-
pnpm start "prompt" --once
|
|
158
155
|
```
|
|
159
156
|
|
|
160
157
|
### 构建
|