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

This commit is contained in:
Ariane Emory 2026-04-15 18:44:53 -04:00 committed by GitHub
parent 6bed7d469d
commit d2ea6700aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 37 additions and 516 deletions

View file

@ -149,22 +149,6 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
`**/*.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` にリストされているファイルとディレクトリは検索とリストから除外されます。
---