Commit df8cfc0
authored
1.5.10 (#173)
* 1.5.10
* ChatWithWorkingCopyDiffAction
* 1. The `CommandAutofixAction` class in `CommandAutofixAction.kt` has been modified to improve the `isGitignore` function, making it more robust in checking if a file should be ignored based on `.gitignore` rules.
2. A new class `TestResultAutofixAction` has been added in `TestResultAutofixAction.kt`. This class:
- Implements a new action for analyzing test results using AI.
- Creates a custom application (`TestResultAutofixApp`) to handle the analysis and suggestion of fixes.
- Uses OpenAI's API to analyze test failures and suggest code fixes.
- Provides a user interface for displaying the analysis results and suggested fixes.
3. The `plugin.xml` file has been updated to include a new action:
- "AI Analyze Test Result" has been added to the TestTreePopupMenu group.
* 1. In `TestResultAutofixAction.kt`:
- Added imports for `addApplyFileDiffLinks` and `addSaveLinks` from a diff utility.
- Imported `Retryable` from a SkyeNet package.
2. Main changes in the `runAutofix` function:
- Wrapped the main logic in a `Retryable` block, likely for error handling and retry capabilities.
- Extracted the response generation logic into a separate function `generateAndAddResponse`.
- Implemented file diff generation and added interactive links for applying and saving changes:
- Uses `addApplyFileDiffLinks` to create clickable links for applying suggested changes.
- Uses `addSaveLinks` to add functionality for saving the changes to files.
3. New `generateAndAddResponse` function:
- Generates a response using an AI model to suggest fixes for test failures.
- Adds interactive elements to the response for applying and saving changes.
- Returns the formatted response with clickable links.
* AnalyzeProoblemAction
* 1. In `CommandAutofixAction.kt`:
- Refactored the `isGitignore` function to work with both `VirtualFile` and `Path` objects.
- Improved the gitignore pattern matching logic.
2. In `GenerateDocumentationAction.kt`:
- Enhanced the `transformContent` function to include project structure information in the API request.
- Added a `findGitRoot` function to locate the Git root directory.
- Improved the logic for generating individual output paths for documentation files.
3. In `TestResultAutofixAction.kt`:
- Added a new `getFiles` function that works with `Path` objects.
- Refactored the `getProjectStructure` function to work with both `VirtualFile` and `Path` objects.
- Added a `findGitRoot` function that works with `Path` objects.1 parent 3d846d7 commit df8cfc0
File tree
18 files changed
+2103
-203
lines changed- docs
- src/main
- kotlin/com/github/simiacryptus/aicoder
- actions
- generic
- git
- problems
- test
- ui
- resources/META-INF
18 files changed
+2103
-203
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
10 | 26 | | |
| 27 | + | |
11 | 28 | | |
12 | 29 | | |
13 | | - | |
14 | 30 | | |
15 | | - | |
16 | 31 | | |
17 | | - | |
18 | 32 | | |
19 | | - | |
20 | 33 | | |
21 | 34 | | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
26 | | - | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
| |||
455 | 467 | | |
456 | 468 | | |
457 | 469 | | |
458 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
459 | 479 | | |
460 | 480 | | |
461 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
| |||
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
115 | 108 | | |
116 | 109 | | |
117 | 110 | | |
| |||
189 | 182 | | |
190 | 183 | | |
191 | 184 | | |
| 185 | + | |
| 186 | + | |
192 | 187 | | |
193 | 188 | | |
194 | 189 | | |
| |||
198 | 193 | | |
199 | 194 | | |
200 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 208 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments