Re-enable directory-related tools (#29809)

Also `now` in `write` profile

Release Notes:

- Tools for manipulating directories no longer require confirmation, and
are enabled in the Write profile
- Enabled `now` and `list_directory` tools by default in Write profile

---------

Co-authored-by: Cole Miller <m@cole-miller.net>
Co-authored-by: Cole Miller <cole@zed.dev>
This commit is contained in:
Richard Feldman 2025-05-02 16:11:16 -04:00 committed by GitHub
parent 9547d42b15
commit 4d1df7bcd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 9 deletions

View file

@ -669,7 +669,7 @@
"contents": true, "contents": true,
"diagnostics": true, "diagnostics": true,
"fetch": true, "fetch": true,
"list_directory": false, "list_directory": true,
"now": true, "now": true,
"find_path": true, "find_path": true,
"read_file": true, "read_file": true,
@ -683,15 +683,16 @@
"name": "Write", "name": "Write",
"enable_all_context_servers": true, "enable_all_context_servers": true,
"tools": { "tools": {
"copy_path": false, "copy_path": true,
"create_directory": true,
"create_file": true, "create_file": true,
"delete_path": false, "delete_path": true,
"diagnostics": true, "diagnostics": true,
"edit_file": true, "edit_file": true,
"fetch": true, "fetch": true,
"list_directory": true, "list_directory": true,
"move_path": false, "move_path": true,
"now": false, "now": true,
"find_path": true, "find_path": true,
"read_file": true, "read_file": true,
"grep": true, "grep": true,

View file

@ -45,7 +45,7 @@ impl Tool for CopyPathTool {
} }
fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool { fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {
true false
} }
fn description(&self) -> String { fn description(&self) -> String {

View file

@ -35,7 +35,7 @@ impl Tool for CreateDirectoryTool {
} }
fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool { fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {
true false
} }
fn description(&self) -> String { fn description(&self) -> String {

View file

@ -34,7 +34,7 @@ impl Tool for DeletePathTool {
} }
fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool { fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {
true false
} }
fn description(&self) -> String { fn description(&self) -> String {

View file

@ -43,7 +43,7 @@ impl Tool for MovePathTool {
} }
fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool { fn needs_confirmation(&self, _: &serde_json::Value, _: &App) -> bool {
true false
} }
fn description(&self) -> String { fn description(&self) -> String {