min-agent 0.7.3 → 0.7.5
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 +6 -6
- package/dist/cli.js +285 -262
- package/package.json +1 -1
- package/skills/self-config/SKILL.md +2 -2
- package/skills/self-config/reference.md +4 -7
package/README.md
CHANGED
|
@@ -66,13 +66,13 @@ Type `/` to open the command menu; **↑/↓** selects. On an empty input, **↑
|
|
|
66
66
|
| `/attach` · `/mcp` · `/skills` | Attach an image · MCP servers · skills |
|
|
67
67
|
| `/tokens` · `/help` | Usage & cost · all commands |
|
|
68
68
|
|
|
69
|
-
Shortcuts: **Ctrl+C** clears input (press twice to exit) · **Ctrl+V** pastes an image · **Ctrl+B** copies selected text · click a tool or thinking block to expand it.
|
|
69
|
+
Shortcuts: **Ctrl+C** clears input (press twice to exit) · **Shift+Enter** / **Ctrl+J** inserts a newline · **Ctrl+V** pastes an image · **Ctrl+B** copies selected text · click a tool or thinking block to expand it.
|
|
70
70
|
|
|
71
71
|
## Staying in Control
|
|
72
72
|
|
|
73
|
-
File edits are auto-approved by default; risky actions always ask. When several actions in one step need approval, they're combined into a single prompt instead of a stack of separate ones.
|
|
73
|
+
File edits are auto-approved by default; risky actions always ask. When several actions in one step need approval, they're combined into a single prompt instead of a stack of separate ones. Each prompt offers 允许 / 总是允许 / 拒绝 — choosing 总是允许 remembers that action for the current session, so repeated identical commands or MCP tools won't ask again.
|
|
74
74
|
|
|
75
|
-
`min-agent exec` (one-shot) runs more freely by default: edits and ordinary commands don't ask — only genuinely destructive commands (deleting files
|
|
75
|
+
`min-agent exec` (one-shot) runs more freely by default: edits and ordinary commands don't ask — only genuinely destructive commands (deleting files, dropping/truncating databases, disk-wiping, `git reset --hard`, etc.) still prompt. Pass `--permission` or `--yes` to override.
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
78
|
min-agent permission # show current setting
|
|
@@ -170,13 +170,13 @@ min-agent --provider anthropic "..." # 为一条消息指定服务商
|
|
|
170
170
|
| `/attach` · `/mcp` · `/skills` | 附加图片 · MCP 服务 · 技能 |
|
|
171
171
|
| `/tokens` · `/help` | 用量与费用 · 全部命令 |
|
|
172
172
|
|
|
173
|
-
快捷键:**Ctrl+C** 清空输入(连按两次退出)· **Ctrl+V** 粘贴图片 · **Ctrl+B** 复制选中的文本 · 点击工具或思考块可展开收起。
|
|
173
|
+
快捷键:**Ctrl+C** 清空输入(连按两次退出)· **Shift+Enter** / **Ctrl+J** 换行 · **Ctrl+V** 粘贴图片 · **Ctrl+B** 复制选中的文本 · 点击工具或思考块可展开收起。
|
|
174
174
|
|
|
175
175
|
## 掌控风险
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
文件修改默认自动批准,危险操作仍会询问;同一步里有多个操作需要授权时,会合并成一个弹窗逐条列出,而不是弹出一堆。弹窗提供 允许 / 总是允许 / 拒绝 三个选项——选「总是允许」会在本次会话内记住该操作,之后重复的相同命令或 MCP 工具不再询问。
|
|
178
178
|
|
|
179
|
-
`min-agent exec
|
|
179
|
+
`min-agent exec`(单次执行)默认更放手:文件修改和普通命令都不询问,只有真正具破坏性的命令(删除文件、drop/truncate 数据库、抹盘、`git reset --hard` 等)才会询问。加 `--permission` 或 `--yes` 可覆盖此默认。
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
182
|
min-agent permission # 查看当前设置
|