hide-org / hide

🤖 Headless IDE for AI agents
https://hide.sh
MIT License
112 stars 5 forks source link

pkg/files: make read file optional in ListFiles #107

Closed aleh-null closed 4 days ago

aleh-null commented 5 days ago

This PR introduces ListFileOption that include WithContent flag. When the flag is set to true ListFiles() will also read content of the file as it did previously which is useful for search etc, otherwise it will return EmptyFile() that contains only path.