Coverage for lintro / ai / prompts / post_fix.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-04-03 18:53 +0000

1"""Prompt template for post-fix summary generation.""" 

2 

3from __future__ import annotations 

4 

5POST_FIX_SUMMARY_PROMPT_TEMPLATE = """\ 

6An auto-fix session completed with these results: 

7- {applied} fixes applied successfully 

8- {rejected} fixes rejected by the user 

9- {remaining} issues still remaining 

10 

11Remaining issues digest: 

12<issues_digest> 

13{issues_digest} 

14</issues_digest> 

15 

16Provide a brief summary of the fix session and actionable next steps. 

17 

18Guidelines: 

19- When recommending actions, use `lintro chk` for checking and \ 

20`lintro fmt` for formatting — never suggest running linting tools \ 

21directly (e.g., don't say 'run black' or 'run ruff --fix') 

22 

23Respond in this exact JSON format: 

24{{ 

25 "overview": "1-2 sentence summary of what was accomplished \ 

26and what remains", 

27 "key_patterns": [ 

28 "Pattern description of remaining issues" 

29 ], 

30 "priority_actions": [ 

31 "Next step for remaining issues" 

32 ], 

33 "estimated_effort": "Rough effort to address remaining issues" 

34}} 

35"""