fix(core): Remove dead code and documentation related to the obsolete list tool. (#22672)

This commit is contained in:
Ariane Emory
2026-04-15 17:44:53 -05:00
committed by GitHub
parent 6bed7d469d
commit d2ea6700aa
60 changed files with 37 additions and 516 deletions
+1 -17
View File
@@ -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` 中列出的檔案和目錄將被排除在搜尋和列表結果之外。
---