min-agent 0.6.9 → 0.7.1
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 +12 -8
- package/dist/cli.js +208 -204
- package/package.json +1 -1
- package/skills/self-config/SKILL.md +5 -3
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
|
|
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
|
|
98
|
+
No setup needed — the built-in OpenRouter provider (`openrouter/free`) is preset:
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
|
-
min-agent models
|
|
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
|
|
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
|
|
205
|
+
min-agent models # 预设生效期间始终只列出: openrouter/free
|
|
206
|
+
min-agent provider # 查看当前服务商,以及你已添加的服务商
|
|
207
|
+
min-agent setup # 添加自己的服务商(交互式)
|
|
204
208
|
```
|
|
205
209
|
|
|
206
|
-
|
|
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
|
|