Repository navigation
Commit 3112f3e
committed
Update intelligent file search prompt formatting to include folder paths and restrict result parsing to bulleted file paths
- considering intelligent_file_search_format_for_prompt_view: in case 'for folder' should get this folder path in param so it is used below in examples #Fragment(apps/editor/src/constants/instructions.ts:72:1-74:31)
- in #Fragment(apps/editor/src/constants/instructions.ts:75:1-77:40) place src only when prefix is not used
- `apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/intelligent-file-search-results-parser/intelligent-file-search-results-parser.ts` should not use `apps/editor/src/utils/extract-paths-from-text/extract-paths-from-text.ts` as it is too broad - we only want to extract paths from bullet lists there.
└── apps
└── editor
└── src
├── commands
│ └── apply-response-command
│ └── utils
│ └── response-parser
│ └── parsers
│ └── intelligent-file-search-results-parser
│ └── intelligent-file-search-results-parser.ts
├── constants
│ └── instructions.ts
├── features
│ └── search-files
│ └── search-modes
│ └── perform-intelligent-search-mode.ts
└── utils
└── extract-paths-from-text
├── extract-paths-from-text.spec.ts
└── extract-paths-from-text.ts1 parent 647ff81 commit 3112f3e
3 files changed
Lines changed: 66 additions & 14 deletions
File tree
- apps/editor/src
- commands/apply-response-command/utils/response-parser/parsers/intelligent-file-search-results-parser
- constants
- features/search-files/search-modes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
38 | 86 | | |
39 | 87 | | |
40 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
0 commit comments