feat: parse and conditionally add cursor rules to system prompt (#2385)

This commit is contained in:
Peter Cardenas
2025-07-01 09:59:01 -07:00
committed by GitHub
parent f523710e95
commit 2ecfe587a0
2 changed files with 50 additions and 0 deletions

View File

@@ -388,6 +388,8 @@ function M.generate_prompts(opts)
local agents_rules = Prompts.get_agents_rules_prompt()
if agents_rules then system_prompt = system_prompt .. "\n\n" .. agents_rules end
local cursor_rules = Prompts.get_cursor_rules_prompt(selected_files)
if cursor_rules then system_prompt = system_prompt .. "\n\n" .. cursor_rules end
---@type AvantePromptOptions
return {