mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 10:16:37 +00:00
fix(core): Remove dead code and documentation related to the obsolete list tool. (#22672)
This commit is contained in:
@@ -88,7 +88,7 @@ OpenCode 使用 `permission` 配置来决定某个操作是否应自动运行、
|
||||
|
||||
### 外部目录
|
||||
|
||||
使用 `external_directory` 允许工具调用访问 OpenCode 启动时工作目录之外的路径。这适用于任何接受路径作为输入的工具(例如 `read`、`edit`、`list`、`glob`、`grep` 以及许多 `bash` 命令)。
|
||||
使用 `external_directory` 允许工具调用访问 OpenCode 启动时工作目录之外的路径。这适用于任何接受路径作为输入的工具(例如 `read`、`edit`、`glob`、`grep` 以及许多 `bash` 命令)。
|
||||
|
||||
主目录展开(如 `~/...`)仅影响模式的书写方式。它不会将外部路径纳入当前工作空间,因此工作目录之外的路径仍然必须通过 `external_directory` 来允许。
|
||||
|
||||
@@ -133,7 +133,6 @@ OpenCode 的权限以工具名称为键,外加几个安全防护项:
|
||||
- `edit` — 所有文件修改(涵盖 `edit`、`write`、`patch`、`multiedit`)
|
||||
- `glob` — 文件通配(匹配通配模式)
|
||||
- `grep` — 内容搜索(匹配正则表达式模式)
|
||||
- `list` — 列出目录中的文件(匹配目录路径)
|
||||
- `bash` — 运行 shell 命令(匹配解析后的命令,如 `git status --porcelain`)
|
||||
- `task` — 启动子代理(匹配子代理类型)
|
||||
- `skill` — 加载技能(匹配技能名称)
|
||||
|
||||
Reference in New Issue
Block a user