@@ -162,7 +162,7 @@ describe("SYSTEM_PROMPT", () => {
162162 undefined , // diffStrategy
163163 undefined , // browserViewportSize
164164 defaultModeSlug , // mode
165- undefined , // customPrompts
165+ undefined , // customModePrompts
166166 undefined , // customModes
167167 )
168168
@@ -178,7 +178,7 @@ describe("SYSTEM_PROMPT", () => {
178178 undefined , // diffStrategy
179179 "1280x800" , // browserViewportSize
180180 defaultModeSlug , // mode
181- undefined , // customPrompts
181+ undefined , // customModePrompts
182182 undefined , // customModes
183183 )
184184
@@ -196,7 +196,7 @@ describe("SYSTEM_PROMPT", () => {
196196 undefined , // diffStrategy
197197 undefined , // browserViewportSize
198198 defaultModeSlug , // mode
199- undefined , // customPrompts
199+ undefined , // customModePrompts
200200 undefined , // customModes
201201 )
202202
@@ -212,7 +212,7 @@ describe("SYSTEM_PROMPT", () => {
212212 undefined , // diffStrategy
213213 undefined , // browserViewportSize
214214 defaultModeSlug , // mode
215- undefined , // customPrompts
215+ undefined , // customModePrompts
216216 undefined , // customModes
217217 )
218218
@@ -228,7 +228,7 @@ describe("SYSTEM_PROMPT", () => {
228228 undefined , // diffStrategy
229229 "900x600" , // different viewport size
230230 defaultModeSlug , // mode
231- undefined , // customPrompts
231+ undefined , // customModePrompts
232232 undefined , // customModes
233233 )
234234
@@ -244,7 +244,7 @@ describe("SYSTEM_PROMPT", () => {
244244 new SearchReplaceDiffStrategy ( ) , // Use actual diff strategy from the codebase
245245 undefined , // browserViewportSize
246246 defaultModeSlug , // mode
247- undefined , // customPrompts
247+ undefined , // customModePrompts
248248 undefined , // customModes
249249 undefined , // globalCustomInstructions
250250 undefined , // preferredLanguage
@@ -264,7 +264,7 @@ describe("SYSTEM_PROMPT", () => {
264264 new SearchReplaceDiffStrategy ( ) , // Use actual diff strategy from the codebase
265265 undefined , // browserViewportSize
266266 defaultModeSlug , // mode
267- undefined , // customPrompts
267+ undefined , // customModePrompts
268268 undefined , // customModes
269269 undefined , // globalCustomInstructions
270270 undefined , // preferredLanguage
@@ -284,7 +284,7 @@ describe("SYSTEM_PROMPT", () => {
284284 new SearchReplaceDiffStrategy ( ) , // Use actual diff strategy from the codebase
285285 undefined , // browserViewportSize
286286 defaultModeSlug , // mode
287- undefined , // customPrompts
287+ undefined , // customModePrompts
288288 undefined , // customModes
289289 undefined , // globalCustomInstructions
290290 undefined , // preferredLanguage
@@ -304,7 +304,7 @@ describe("SYSTEM_PROMPT", () => {
304304 undefined , // diffStrategy
305305 undefined , // browserViewportSize
306306 defaultModeSlug , // mode
307- undefined , // customPrompts
307+ undefined , // customModePrompts
308308 undefined , // customModes
309309 undefined , // globalCustomInstructions
310310 "Spanish" , // preferredLanguage
@@ -334,7 +334,7 @@ describe("SYSTEM_PROMPT", () => {
334334 undefined , // diffStrategy
335335 undefined , // browserViewportSize
336336 "custom-mode" , // mode
337- undefined , // customPrompts
337+ undefined , // customModePrompts
338338 customModes , // customModes
339339 "Global instructions" , // globalCustomInstructions
340340 )
@@ -351,7 +351,7 @@ describe("SYSTEM_PROMPT", () => {
351351 } )
352352
353353 it ( "should use promptComponent roleDefinition when available" , async ( ) => {
354- const customPrompts = {
354+ const customModePrompts = {
355355 [ defaultModeSlug ] : {
356356 roleDefinition : "Custom prompt role definition" ,
357357 customInstructions : "Custom prompt instructions" ,
@@ -366,7 +366,7 @@ describe("SYSTEM_PROMPT", () => {
366366 undefined ,
367367 undefined ,
368368 defaultModeSlug ,
369- customPrompts ,
369+ customModePrompts ,
370370 undefined ,
371371 )
372372
@@ -377,7 +377,7 @@ describe("SYSTEM_PROMPT", () => {
377377 } )
378378
379379 it ( "should fallback to modeConfig roleDefinition when promptComponent has no roleDefinition" , async ( ) => {
380- const customPrompts = {
380+ const customModePrompts = {
381381 [ defaultModeSlug ] : {
382382 customInstructions : "Custom prompt instructions" ,
383383 // No roleDefinition provided
@@ -392,7 +392,7 @@ describe("SYSTEM_PROMPT", () => {
392392 undefined ,
393393 undefined ,
394394 defaultModeSlug ,
395- customPrompts ,
395+ customModePrompts ,
396396 undefined ,
397397 )
398398
@@ -432,7 +432,7 @@ describe("addCustomInstructions", () => {
432432 undefined , // diffStrategy
433433 undefined , // browserViewportSize
434434 "architect" , // mode
435- undefined , // customPrompts
435+ undefined , // customModePrompts
436436 undefined , // customModes
437437 )
438438
@@ -448,7 +448,7 @@ describe("addCustomInstructions", () => {
448448 undefined , // diffStrategy
449449 undefined , // browserViewportSize
450450 "ask" , // mode
451- undefined , // customPrompts
451+ undefined , // customModePrompts
452452 undefined , // customModes
453453 )
454454
0 commit comments