fix(core): Remove dead code and documentation related to the obsolete list tool. (#22672)
This commit is contained in:
@@ -149,22 +149,6 @@ description: 管理 LLM 可以使用的工具。
|
||||
|
||||
使用 `**/*.js` 或 `src/**/*.ts` 等 glob 模式搜索文件。返回按修改时间排序的匹配文件路径。
|
||||
|
||||
---
|
||||
|
||||
### list
|
||||
|
||||
列出指定路径下的文件和目录。
|
||||
|
||||
```json title="opencode.json" {4}
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"list": "allow"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
该工具用于列出目录内容。它接受 glob 模式来过滤结果。
|
||||
|
||||
---
|
||||
|
||||
@@ -341,7 +325,7 @@ MCP(Model Context Protocol)服务器允许您集成外部工具和服务,
|
||||
|
||||
## 内部机制
|
||||
|
||||
在内部,`grep`、`glob` 和 `list` 等工具底层使用 [ripgrep](https://github.com/BurntSushi/ripgrep)。默认情况下,ripgrep 遵循 `.gitignore` 中的模式,这意味着 `.gitignore` 中列出的文件和目录将被排除在搜索和列表结果之外。
|
||||
在内部,`grep` 和 `glob` 等工具底层使用 [ripgrep](https://github.com/BurntSushi/ripgrep)。默认情况下,ripgrep 遵循 `.gitignore` 中的模式,这意味着 `.gitignore` 中列出的文件和目录将被排除在搜索和列表结果之外。
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user