min-agent 0.6.2 → 0.6.4

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 CHANGED
@@ -35,8 +35,8 @@
35
35
 
36
36
  ```bash
37
37
  npm install -g min-agent
38
- min-agent # start chatting (a built-in model is ready)
39
- min-agent setup # optional: add or switch your own provider
38
+ min-agent # start chatting (built-in OpenRouter model, preset & locked)
39
+ min-agent models # list models (always openrouter/free)
40
40
  ```
41
41
 
42
42
  ## Usage
@@ -70,7 +70,9 @@ Shortcuts: **Ctrl+C** clears input (press twice to exit) · **Ctrl+V** pastes an
70
70
 
71
71
  ## Staying in Control
72
72
 
73
- File edits are auto-approved by default; risky actions always ask.
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.
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/dirs, dropping/truncating databases, disk-wiping, `git reset --hard`, etc.) still prompt. Pass `--permission` or `--yes` to override.
74
76
 
75
77
  ```bash
76
78
  min-agent permission # show current setting
@@ -93,14 +95,14 @@ In chat: `/memory on|off` toggles, `/memory` lists notes, `/memory some text` sa
93
95
 
94
96
  ## Configuration
95
97
 
96
- No setup needed — a built-in OpenRouter model (`openrouter/free`) is used until you add your own:
98
+ No setup needed — the built-in OpenRouter provider (`openrouter/free`) is preset and locked:
97
99
 
98
100
  ```bash
99
- min-agent setup --type ollama
100
- min-agent setup --type openai-compatible --url https://api.example.com/v1 --api-key "$KEY" --name groq --default-model llama-3.1-70b
101
- min-agent setup --switch ollama
101
+ min-agent models # always lists exactly: openrouter/free
102
102
  ```
103
103
 
104
+ The preset provider cannot be modified and `min-agent setup` refuses to add, edit, switch, or remove providers while it is active; the model is fixed to `openrouter/free` (no model list is fetched). Set `MIN_AGENT_NO_BUILTIN_PROVIDER=1` to disable the preset before configuring your own provider.
105
+
104
106
  Settings live in `~/.min-agent/config.json` (global). For per-project settings, run `min-agent init` to create `.min-agent/config.json`.
105
107
 
106
108
  ## Extending It
@@ -135,8 +137,8 @@ MIT
135
137
 
136
138
  ```bash
137
139
  npm install -g min-agent
138
- min-agent # 开始对话(已内置可用模型)
139
- min-agent setup # 可选:添加或切换你自己的服务商
140
+ min-agent # 开始对话(内置 OpenRouter 模型,已预设并锁定)
141
+ min-agent models # 查看模型(始终为 openrouter/free)
140
142
  ```
141
143
 
142
144
  ## 基本用法
@@ -170,7 +172,9 @@ min-agent --provider anthropic "..." # 为一条消息指定服务商
170
172
 
171
173
  ## 掌控风险
172
174
 
173
- 文件修改默认自动批准,危险操作仍会询问:
175
+ 文件修改默认自动批准,危险操作仍会询问;同一步里有多个操作需要授权时,会合并成一个弹窗逐条列出,而不是弹出一堆。
176
+
177
+ `min-agent exec`(单次执行)默认更放手:文件修改和普通命令都不询问,只有真正具破坏性的命令(删除文件/目录、drop/truncate 数据库、抹盘、`git reset --hard` 等)才会询问。加 `--permission` 或 `--yes` 可覆盖此默认。
174
178
 
175
179
  ```bash
176
180
  min-agent permission # 查看当前设置
@@ -193,14 +197,14 @@ min-agent memory add "prefer bun"
193
197
 
194
198
  ## 配置
195
199
 
196
- 无需配置即可使用——在添加自己的服务商前,内置的 OpenRouter 模型(`openrouter/free`)会一直可用:
200
+ 无需配置即可使用——内置 OpenRouter 服务商(`openrouter/free`)已预设并锁定:
197
201
 
198
202
  ```bash
199
- min-agent setup --type ollama
200
- min-agent setup --type openai-compatible --url https://api.example.com/v1 --api-key "$KEY" --name groq --default-model llama-3.1-70b
201
- min-agent setup --switch ollama
203
+ min-agent models # 始终只列出: openrouter/free
202
204
  ```
203
205
 
206
+ 预设服务商不可修改:在其生效期间 `min-agent setup` 会拒绝添加、修改、切换或删除服务商,模型固定为 `openrouter/free`(不拉取模型列表)。设置 `MIN_AGENT_NO_BUILTIN_PROVIDER=1` 关闭预设后,才能配置自己的服务商。
207
+
204
208
  配置保存在 `~/.min-agent/config.json`(全局生效)。项目级配置用 `min-agent init` 创建 `.min-agent/config.json`,仅对该项目生效。
205
209
 
206
210
  ## 扩展能力