Skip to content

Add more filesystem tools#3

Merged
kamilmac merged 7 commits intomainfrom
edit-add-create_files
May 15, 2025
Merged

Add more filesystem tools#3
kamilmac merged 7 commits intomainfrom
edit-add-create_files

Conversation

@kamilmac
Copy link
Copy Markdown
Owner

@kamilmac kamilmac commented May 14, 2025

Summary:

This PR adds three new filesystem tools—write_file, create_directory, and list_directory—to the Edit toolset and strengthens path handling and logging. It also embeds the current working directory into chat context and updates related docs and dependencies.

Changes:

  • src/services/tools/fs.ts
    • Added Zod schemas and implementations for write_file, create_directory, and list_directory.
    • Introduced expandHome and validatePath to securely resolve and enforce workspace-bound paths.
    • Enhanced log output for file operations.
  • src/store/main.ts
    • Augmented onSubmitUserPrompt to include the current working directory and relevant paths in the system prompt.
  • README.md
    • Updated Edit-mode commands table to include the new FS tools.
  • deno.lock
    • Upgraded to v5, added @std/path specifier, and adjusted dependency metadata.

@kamilmac kamilmac merged commit 6409b1a into main May 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant