Repository navigation
Commit d55b283
committed
Centralize path normalization into a shared normalize_path utility and improve commit message generation to include context files from previously accepted prompts
- when generating commit message, are selected files from CommitMessageDetails included for better the generated commit message accuracy? they should
- assess correctness of CommitMessageDetails.remove_committed_files
- are paths handled correctly?
- should plcae a global util in `apps/editor/src/utils` for path normalizations
- Place 'additional context files' without distinction inside '# Files', each file like by `apps/editor/src/utils/files-collector.ts` "- File: ``"
- place updated files below selected files
- don't place 'task' and 'output formatting' sections on top.
- the files collected from 'commit message details' utility are ordered in the same way as those got from `apps/editor/src/utils/files-collector.ts`? considering these are all the same files
- All full files should live in "# Files" section. Diffs should be placed together in "# Changes" section.
- if a file includes markdown code block (triple backticks), it should be wrapped in four backticks
├── apps
│ └── editor
│ ├── src
│ │ ├── commands
│ │ │ ├── apply-response-command
│ │ │ │ └── utils
│ │ │ │ ├── preview
│ │ │ │ │ └── workspace-listener.ts
│ │ │ │ ├── preview-handler.ts
│ │ │ │ └── response-parser
│ │ │ │ ├── parsers
│ │ │ │ │ └── diff-parser
│ │ │ │ │ └── helpers
│ │ │ │ │ └── path-utils.ts
│ │ │ │ └── response-parser.ts
│ │ │ ├── code-at-cursor-command
│ │ │ │ ├── code-at-cursor-commands.ts
│ │ │ │ └── utils
│ │ │ │ └── perform-code-at-cursor.ts
│ │ │ ├── copy-paths-command.ts
│ │ │ ├── generate-commit-message-commands
│ │ │ │ ├── actions
│ │ │ │ │ ├── get-prompt-data.ts
│ │ │ │ │ └── run-generate-action.ts
│ │ │ │ ├── generate-commit-message-commands.ts
│ │ │ │ ├── index.ts
│ │ │ │ └── utils
│ │ │ │ ├── build-commit-message-prompt.ts
│ │ │ │ ├── generate-commit-message-with-api.ts
│ │ │ │ ├── get-commit-message-config.ts
│ │ │ │ └── strip-wrapping-quotes.ts
│ │ │ ├── restore-file-selection-command
│ │ │ │ └── actions
│ │ │ │ ├── restore-from-json-file.ts
│ │ │ │ └── restore-from-workspace-state.ts
│ │ │ ├── save-file-selection-command
│ │ │ │ └── actions
│ │ │ │ ├── save-to-json-file.ts
│ │ │ │ └── save-to-workspace-state.ts
│ │ │ └── set-ranges-command.ts
│ │ ├── constants
│ │ │ └── instructions.ts
│ │ ├── context
│ │ │ ├── helpers
│ │ │ │ ├── get-all-workspace-files.ts
│ │ │ │ └── get-selected-files.ts
│ │ │ └── providers
│ │ │ └── workspace
│ │ │ ├── modules
│ │ │ │ └── token-calculator.ts
│ │ │ └── workspace-provider.ts
│ │ ├── features
│ │ │ └── checkpoints
│ │ │ └── actions
│ │ │ └── restore-checkpoint.ts
│ │ ├── services
│ │ │ └── git-discard-file-watcher.ts
│ │ ├── utils
│ │ │ ├── commit-message-details.ts
│ │ │ ├── files-collector.ts
│ │ │ ├── is-binary.ts
│ │ │ ├── normalize-path.ts
│ │ │ ├── path-sanitizer.ts
│ │ │ └── prompt-builder.ts
│ │ └── views
│ │ └── prompt
│ │ └── backend
│ │ ├── message-handlers
│ │ │ └── handle-at-sign-quick-pick
│ │ │ └── handle-at-sign-quick-pick.ts
│ │ ├── prompt-view-provider.ts
│ │ └── utils
│ │ └── symbols
│ │ └── skill
│ │ └── replace-skill-symbol.ts
│ └── webpack.config.ts
└── packages
└── shared
└── src
└── utils
└── extract-path-from-line-of-code
└── extract-path-from-line-of-code.ts1 parent 270fd39 commit d55b283
28 files changed
Lines changed: 294 additions & 113 deletions
File tree
- apps/editor/src
- commands
- apply-response-command/utils
- preview
- response-parser
- parsers/diff-parser
- helpers
- code-at-cursor-command/utils
- generate-commit-message-commands
- actions
- utils
- restore-file-selection-command/actions
- save-file-selection-command/actions
- context
- helpers
- providers/workspace
- modules
- services
- utils
- views/prompt/backend
- message-handlers/handle-at-sign-quick-pick
- utils/symbols/skill
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
396 | | - | |
397 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
480 | 481 | | |
481 | 482 | | |
482 | 483 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
272 | | - | |
273 | | - | |
274 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
61 | 119 | | |
62 | 120 | | |
63 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
384 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
385 | 396 | | |
386 | 397 | | |
387 | 398 | | |
| |||
405 | 416 | | |
406 | 417 | | |
407 | 418 | | |
408 | | - | |
| 419 | + | |
409 | 420 | | |
410 | 421 | | |
411 | 422 | | |
| |||
493 | 504 | | |
494 | 505 | | |
495 | 506 | | |
496 | | - | |
| 507 | + | |
497 | 508 | | |
498 | 509 | | |
499 | 510 | | |
| |||
0 commit comments