feat: Add recursive directory selection and enhance prompt builder

- Add `select_all` option to recursively add directory contents
- Implement `select_all_files_and_dirs` for file traversal
- Rework prompt building with file tree and content formatters
- Improve `get_file_extension` to handle dotfiles and special files
- Update prompt template to use new structured data model
This commit is contained in:
Mahmoud-Emad
2025-08-14 10:56:05 +03:00
parent 14771ed944
commit a58d72615d
12 changed files with 320 additions and 65 deletions

View File

@@ -20,14 +20,10 @@ dir2.select_file(name: 'build.sh')!
dir2.select_file(name: 'debug.sh')!
mut dir3 := workspace1.add_dir(
path: '/Users/mahmoud/code/github/freeflowuniverse/herolib/docker/postgresql'
select_all_dirs: true
select_all_files: false
select_all: false
path: '/Users/mahmoud/code/github/freeflowuniverse/herolib/docker/postgresql'
select_all: true
)!
dir3.select_file(name: 'docker-compose.yml')!
selected := workspace1.get_selected()
prompt := workspace1.prompt(