@@ -28,7 +28,11 @@ export const Empty = () => (
2828 on_invocation_count_change = { ( count ) =>
2929 console . log ( 'Invocation count changed:' , count )
3030 }
31- prune_context_instructions = ""
31+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
32+ prune_context_instructions_prefix = ""
33+ on_prune_context_instructions_prefix_change = { ( val ) =>
34+ console . log ( 'Prune prefix changed:' , val )
35+ }
3236 />
3337)
3438
@@ -55,7 +59,11 @@ export const WithText = () => (
5559 on_invocation_count_change = { ( count ) =>
5660 console . log ( 'Invocation count changed:' , count )
5761 }
58- prune_context_instructions = ""
62+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
63+ prune_context_instructions_prefix = ""
64+ on_prune_context_instructions_prefix_change = { ( val ) =>
65+ console . log ( 'Prune prefix changed:' , val )
66+ }
5967 />
6068)
6169
@@ -82,7 +90,11 @@ export const LongText = () => (
8290 on_invocation_count_change = { ( count ) =>
8391 console . log ( 'Invocation count changed:' , count )
8492 }
85- prune_context_instructions = ""
93+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
94+ prune_context_instructions_prefix = ""
95+ on_prune_context_instructions_prefix_change = { ( val ) =>
96+ console . log ( 'Prune prefix changed:' , val )
97+ }
8698 />
8799)
88100
@@ -108,8 +120,12 @@ export const WithPlaceholderSavedContext = () => (
108120 on_invocation_count_change = { ( count ) =>
109121 console . log ( 'Invocation count changed:' , count )
110122 }
123+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
111124 on_curly_braces_click = { ( ) => { } }
112- prune_context_instructions = ""
125+ prune_context_instructions_prefix = ""
126+ on_prune_context_instructions_prefix_change = { ( val ) =>
127+ console . log ( 'Prune prefix changed:' , val )
128+ }
113129 />
114130)
115131
@@ -135,8 +151,12 @@ export const WithPlaceholderSelection = () => (
135151 on_invocation_count_change = { ( count ) =>
136152 console . log ( 'Invocation count changed:' , count )
137153 }
154+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
138155 on_curly_braces_click = { ( ) => { } }
139- prune_context_instructions = ""
156+ prune_context_instructions_prefix = ""
157+ on_prune_context_instructions_prefix_change = { ( val ) =>
158+ console . log ( 'Prune prefix changed:' , val )
159+ }
140160 />
141161)
142162
@@ -162,8 +182,12 @@ export const WithCommit = () => (
162182 on_invocation_count_change = { ( count ) =>
163183 console . log ( 'Invocation count changed:' , count )
164184 }
185+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
165186 on_curly_braces_click = { ( ) => { } }
166- prune_context_instructions = ""
187+ prune_context_instructions_prefix = ""
188+ on_prune_context_instructions_prefix_change = { ( val ) =>
189+ console . log ( 'Prune prefix changed:' , val )
190+ }
167191 />
168192)
169193
@@ -189,8 +213,12 @@ export const WithCommitWithQuotes = () => (
189213 on_invocation_count_change = { ( count ) =>
190214 console . log ( 'Invocation count changed:' , count )
191215 }
216+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
192217 on_curly_braces_click = { ( ) => { } }
193- prune_context_instructions = ""
218+ prune_context_instructions_prefix = ""
219+ on_prune_context_instructions_prefix_change = { ( val ) =>
220+ console . log ( 'Prune prefix changed:' , val )
221+ }
194222 />
195223)
196224export const WithContextAtCommit = ( ) => (
@@ -215,8 +243,12 @@ export const WithContextAtCommit = () => (
215243 on_invocation_count_change = { ( count ) =>
216244 console . log ( 'Invocation count changed:' , count )
217245 }
246+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
218247 on_curly_braces_click = { ( ) => { } }
219- prune_context_instructions = ""
248+ prune_context_instructions_prefix = ""
249+ on_prune_context_instructions_prefix_change = { ( val ) =>
250+ console . log ( 'Prune prefix changed:' , val )
251+ }
220252 />
221253)
222254
@@ -246,7 +278,11 @@ export const WithEditFormatSelector = () => {
246278 context_file_paths = { [ ] }
247279 invocation_count = { 1 }
248280 on_invocation_count_change = { set_edit_format as any } // Mocking for demo
249- prune_context_instructions = ""
281+ on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
282+ prune_context_instructions_prefix = ""
283+ on_prune_context_instructions_prefix_change = { ( val ) =>
284+ console . log ( 'Prune prefix changed:' , val )
285+ }
250286 />
251287 )
252288}
@@ -275,6 +311,9 @@ export const WithFilePaths = () => (
275311 on_invocation_count_change = { ( count ) =>
276312 console . log ( 'Invocation count changed:' , count )
277313 }
278- prune_context_instructions = ""
314+ prune_context_instructions_prefix = ""
315+ on_prune_context_instructions_prefix_change = { ( val ) =>
316+ console . log ( 'Prune prefix changed:' , val )
317+ }
279318 />
280319)
0 commit comments