Files
herolib/lib/develop/heroprompt
Mahmoud-Emad 154c08411c refactor: Simplify prompt content and file map generation
- Extract recursive file tree logic into new helper function
- Remove explicit file content generation from prompt
- Simplify `build_file_map` to only generate file trees
- Eliminate file metadata calculation from `build_file_map`
- Comment out extensive example workspace operations
2025-09-09 11:50:12 +03:00
..
...
2025-08-17 11:07:26 +02:00
...
2025-08-17 11:07:26 +02:00
...
2025-08-25 06:09:51 +02:00

heroprompt

To get started



import freeflowuniverse.herolib.develop.heroprompt

// Example Usage:

// 1. Create a new workspace
mut workspace := heroprompt.new(name: 'my_workspace', path: os.getwd())!

// 2. Add a directory to the workspace
workspace.add_dir(path: './my_project_dir')!

// 3. Add a file to the workspace
workspace.add_file(path: './my_project_dir/main.v')!

// 4. Generate a prompt
user_instructions := 'Explain the code in main.v'
prompt_output := workspace.prompt(text: user_instructions)
println(prompt_output)