feat: run_command 改为下拉框设置自动/需确认/禁用三种模式
- 替换原有开关为下拉选择框(selectRunCommandMode) - 新增 setRunCommandMode() 动态控制确认行为 - 需确认模式:弹窗确认后执行 - 自动模式:直接执行,无需确认 - 禁用模式:工具不可用 - 新增 .tool-card-badge.disabled 样式 - 状态从 runCommandEnabled(bool) 迁移为 runCommandMode(string)
This commit is contained in:
@@ -33,7 +33,7 @@ AI 可以在对话中主动调用本地工具来完成任务,所有操作在
|
||||
| 🔍 `search_files` | 按文件名/内容搜索(支持扩展名过滤) | 自动 |
|
||||
| 📂 `create_directory` | 创建目录(递归创建) | 自动 |
|
||||
| 🗑️ `delete_file` | 删除文件/目录 | 自动 |
|
||||
| 💻 `run_command` | 执行 Shell 命令(无超时,通过工作空间终端执行) | 需确认 |
|
||||
| 💻 `run_command` | 执行 Shell 命令(无超时,通过工作空间终端执行) | 自动/需确认/禁用 |
|
||||
| 📦 `move_file` | 移动/重命名文件或目录 | 自动 |
|
||||
| 📋 `copy_file` | 复制文件或目录 | 自动 |
|
||||
| 🌐 `web_fetch` | 抓取网页内容(HTTP/HTTPS,自动提取文本) | 自动 |
|
||||
@@ -347,7 +347,7 @@ metona-ollama-desktop/
|
||||
| 温度 | 0.7 | 0=精确,2=创意 |
|
||||
| Think 模式 | 关闭 | 深度推理(需模型支持) |
|
||||
| 工具调用 | 关闭 | AI 主动调用本地工具 |
|
||||
| 命令执行 | 开启(自动) | Shell 命令执行(高风险) |
|
||||
| 命令执行 | 需确认 | Shell 命令执行模式:自动/需确认/禁用 |
|
||||
| Agent 记忆 | 开启 | 自动学习+跨会话记忆 |
|
||||
| 工作空间目录 | `userData/workspace` | 命令行默认执行目录 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user