Add fluent API addDirectory option and classic config option, closes #6#7
Conversation
PR #7 ReviewHey @tobymarsden, great work on PR #7! 🎉 I've reviewed your implementation of the addDirectory feature and it looks excellent. The code is clean, well-tested, and follows the existing patterns in the codebase perfectly. What I particularly liked:
I've successfully integrated your changes into the beta release (v0.3.0-beta.1). The feature works seamlessly with all the other production features we've added:
Note about formatting: I noticed you mentioned formatting issues. The codebase uses Prettier with default settings. You can run This is a valuable addition to the SDK as it allows users to expand Claude's context with additional directories, which is particularly useful for monorepos and multi-project workspaces. Thank you for your continued contributions! This feature will be included in the upcoming v0.3.0 release. 🚀 |
|
@acebytes any chance you could commit your |
Gah, more formatting shenanigans. I don't know if you have a formatter config which will let me not screw up your style each time?
Anyway:
Directory Context
The
addDirectorymethod allows you to add additional working directories for Claude to access (validates each path exists as a directory).addDirectorywill accumulate all directories--add-dirflag with space-separated pathsClassic configuration
In classic mode the option is
addDirectories