feat: make prompt better to include real project name

This commit is contained in:
2025-02-09 00:45:29 +01:00
parent 0f044a625e
commit e5f4558df5
2 changed files with 27 additions and 30 deletions

View File

@@ -172,7 +172,10 @@ local function build_prompt(user_input, dirs, conf)
env_lines[#env_lines+1] = "</environment_details>"
table.insert(final_sections, table.concat(env_lines, "\n"))
return table.concat(final_sections, "\n\n")
local final_prompt = table.concat(final_sections, "\n\n")
-- Replace placeholder "%PROJECT_NAME%" with the actual project name from configuration
final_prompt = final_prompt:gsub("%%PROJECT_NAME%%", conf.project_name)
return final_prompt
end
local function handle_step_by_step_if_needed(prompt, conf)