min-agent 0.6.8 → 0.7.0

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,7 +35,7 @@
35
35
 
36
36
  ```bash
37
37
  npm install -g min-agent
38
- min-agent # start chatting (built-in OpenRouter model, preset & locked)
38
+ min-agent # start chatting (built-in OpenRouter model, preset)
39
39
  min-agent models # list models (always openrouter/free)
40
40
  ```
41
41
 
@@ -95,13 +95,15 @@ In chat: `/memory on|off` toggles, `/memory` lists notes, `/memory some text` sa
95
95
 
96
96
  ## Configuration
97
97
 
98
- No setup needed — the built-in OpenRouter provider (`openrouter/free`) is preset and locked:
98
+ No setup needed — the built-in OpenRouter provider (`openrouter/free`) is preset:
99
99
 
100
100
  ```bash
101
- min-agent models # always lists exactly: openrouter/free
101
+ min-agent models # lists openrouter/free while the preset is active
102
+ min-agent provider # show the active provider and any you've added
103
+ min-agent setup # add your own provider (interactive)
102
104
  ```
103
105
 
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.
106
+ The preset itself can't be edited or switched away from, but you can always **add** your own provider once you add one it takes over automatically. `min-agent provider <name>` switches the active provider (add/edit/remove go through `min-agent setup`). Set `MIN_AGENT_NO_BUILTIN_PROVIDER=1` to disable the preset entirely.
105
107
 
106
108
  Settings live in `~/.min-agent/config.json` (global). For per-project settings, run `min-agent init` to create `.min-agent/config.json`.
107
109
 
@@ -137,7 +139,7 @@ MIT
137
139
 
138
140
  ```bash
139
141
  npm install -g min-agent
140
- min-agent # 开始对话(内置 OpenRouter 模型,已预设并锁定)
142
+ min-agent # 开始对话(内置 OpenRouter 模型,已预设)
141
143
  min-agent models # 查看模型(始终为 openrouter/free)
142
144
  ```
143
145
 
@@ -197,13 +199,15 @@ min-agent memory add "prefer bun"
197
199
 
198
200
  ## 配置
199
201
 
200
- 无需配置即可使用——内置 OpenRouter 服务商(`openrouter/free`)已预设并锁定:
202
+ 无需配置即可使用——内置 OpenRouter 服务商(`openrouter/free`)已预设:
201
203
 
202
204
  ```bash
203
- min-agent models # 始终只列出: openrouter/free
205
+ min-agent models # 预设生效期间始终只列出: openrouter/free
206
+ min-agent provider # 查看当前服务商,以及你已添加的服务商
207
+ min-agent setup # 添加自己的服务商(交互式)
204
208
  ```
205
209
 
206
- 预设服务商不可修改:在其生效期间 `min-agent setup` 会拒绝添加、修改、切换或删除服务商,模型固定为 `openrouter/free`(不拉取模型列表)。设置 `MIN_AGENT_NO_BUILTIN_PROVIDER=1` 关闭预设后,才能配置自己的服务商。
210
+ 预设本身不可编辑,也不能切换或删除,但你随时可以**添加**自己的服务商——添加后它会自动接管。`min-agent provider <name>` 切换当前服务商(增、删、改走 `min-agent setup`)。设置 `MIN_AGENT_NO_BUILTIN_PROVIDER=1` 可彻底关闭预设。
207
211
 
208
212
  配置保存在 `~/.min-agent/config.json`(全局生效)。项目级配置用 `min-agent init` 创建 `.min-agent/config.json`,仅对该项目生效。
209
213