min-agent 3.16.2610242304 → 3.19.2610251655

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
@@ -118,7 +118,7 @@ In chat: `/memory on|off` toggles, `/memory` lists notes, `/memory some text` sa
118
118
 
119
119
  ## Configuration
120
120
 
121
- min-agent ships with a free preset OpenRouter provider (`openrouter/free`), so it works out of the box. Run `min-agent setup` any time to switch to your own provider:
121
+ min-agent reads your providers from `~/.min-agent/config.json`. Run `min-agent setup` to add one:
122
122
 
123
123
  ```bash
124
124
  min-agent setup # add a provider (interactive; OpenAI / Ollama / any OpenAI-compatible endpoint)
@@ -130,7 +130,7 @@ min-agent models # list the models your provider offers
130
130
 
131
131
  Adding an OpenCode Go / OpenCode Zen endpoint (e.g. `https://opencode.ai/zen/go/v1`) is detected during setup. The wizard turns the session id on by default (you can turn it off); every request then carries the `x-opencode-session` header that endpoint requires — one stable id per conversation. Use `--opencode-session` / `--no-opencode-session` to force it on or off (e.g. for a gateway that proxies OpenCode Go under another host).
132
132
 
133
- The built-in OpenRouter preset (`openrouter/free`) is never written to disk. Set `MIN_AGENT_BUILTIN_API_KEY` to override it with a key of your own. While the preset is active it can't be edited or switched away from, but adding your own provider takes over automatically; `MIN_AGENT_NO_BUILTIN_PROVIDER=1` disables it outright.
133
+ Providers are plain JSON in `~/.min-agent/config.json` — nothing is hidden, and every key stays where you put it.
134
134
 
135
135
  Settings live in `~/.min-agent/config.json` (global). Per-project settings go to `~/.min-agent/sessions/<project-key>/config.json` (auto-created; nothing is written inside the project directory).
136
136
 
@@ -267,7 +267,7 @@ min-agent models # 查看当前服务商可用的模型
267
267
 
268
268
  添加 OpenCode Go / OpenCode Zen 接口(如 `https://opencode.ai/zen/go/v1`)时会自动识别。向导里会话编号默认打开,也可以关掉;之后每次调用都会带上该接口要求的 `x-opencode-session` 头,同一会话固定一个 id。用 `--opencode-session` / `--no-opencode-session` 可强制开启或关闭(例如换了域名的自建网关)。
269
269
 
270
- min-agent 内置一个免费的 OpenRouter 预设(`openrouter/free`),开箱即用,该预设不会写入配置文件。如果要换成自己的 key,设置 `MIN_AGENT_BUILTIN_API_KEY` 即可覆盖默认 key。预设生效期间不可编辑、不可切换或删除,但添加自己的服务商后会自动接管;`MIN_AGENT_NO_BUILTIN_PROVIDER=1` 可彻底关闭预设。
270
+ 服务商配置是 `~/.min-agent/config.json` 里的普通 JSON,没有隐藏行为,key 也只存在你放的那个文件里。
271
271
 
272
272
  配置保存在 `~/.min-agent/config.json`(全局生效)。项目级配置保存在 `~/.min-agent/sessions/<project-key>/config.json`(自动创建,不会在项目目录里生成任何文件),仅对该项目生效。
273
273
 
@@ -298,7 +298,8 @@ min-agent web
298
298
  - 流式对话、思考过程与工具调用展示、图片粘贴/上传
299
299
  - 会话模式切换:agent(完整编码智能体)/ ask(仅联网问答与搜索)
300
300
  - 工作目录切换:顶栏目录菜单直接切换项目目录(记住后下次启动自动进入)
301
- - 会话管理:历史列表、重命名、删除、撤销最后一轮、压缩历史
301
+ - 会话管理:历史列表、重命名、删除、撤销最后一轮、压缩历史。生成过程中离开当前会话会先确认。`⌘K` / `Ctrl+K` 打开命令面板,可搜索会话、切换模型或新开对话
302
+ - 可以修改最后一条消息后重新发送。发送失败会留在对话里,可直接重试
302
303
  - 设置页(完整覆盖 CLI 配置,无需命令行即可修改):
303
304
  - 服务商:添加/编辑/删除/切换,含 API Key、类型与上下文窗口
304
305
  - 模型:默认模型(全局/项目作用域)、本次会话模型、Ollama 上下文档位
@@ -307,7 +308,7 @@ min-agent web
307
308
  - 记忆:开关、条目增删与搜索、全局/项目作用域
308
309
  - 规则:全局与项目规则文件在线编辑,保存即刻生效
309
310
  - 行为与隔离:思考强度、确认模式、沙箱级别/联网/目录白名单
310
- - 危险操作确认与代理提问的交互回复(开启输入框的「确认」模式)
311
+ - 需要确认或回答时,在输入框上方直接操作。按 Esc 会先确认是否停止这一轮
311
312
  - 明暗主题、移动端适配
312
313
 
313
314
  `--host` / `--port` 与 `serve` 相同。产物缺失时先在仓库内执行 `bun run build:web`(npm 发布包已内置),或用 `MIN_AGENT_WEB_DIST` 指定产物目录。