@@ -13,7 +13,7 @@ export const Empty = () => (
1313 on_submit = { ( ) => console . log ( 'Submitted' ) }
1414 on_copy = { ( ) => console . log ( 'Copied' ) }
1515 is_connected = { true }
16- is_in_code_completions_mode = { false }
16+ prompt_type = "edit-context"
1717 current_selection = ""
1818 currently_open_file_path = "/path/to/file"
1919 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -28,6 +28,7 @@ export const Empty = () => (
2828 on_invocation_count_change = { ( count ) =>
2929 console . log ( 'Invocation count changed:' , count )
3030 }
31+ prune_context_instructions = ""
3132 />
3233)
3334
@@ -39,7 +40,7 @@ export const WithText = () => (
3940 on_submit = { ( ) => console . log ( 'Submitted' ) }
4041 on_copy = { ( ) => console . log ( 'Copied' ) }
4142 is_connected = { true }
42- is_in_code_completions_mode = { false }
43+ prompt_type = "edit-context"
4344 current_selection = ""
4445 currently_open_file_path = "/path/to/file"
4546 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -54,6 +55,7 @@ export const WithText = () => (
5455 on_invocation_count_change = { ( count ) =>
5556 console . log ( 'Invocation count changed:' , count )
5657 }
58+ prune_context_instructions = ""
5759 />
5860)
5961
@@ -65,7 +67,7 @@ export const LongText = () => (
6567 on_submit = { ( ) => console . log ( 'Submitted' ) }
6668 on_copy = { ( ) => console . log ( 'Copied' ) }
6769 is_connected = { true }
68- is_in_code_completions_mode = { false }
70+ prompt_type = "edit-context"
6971 current_selection = ""
7072 currently_open_file_path = "/path/to/file"
7173 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -80,6 +82,7 @@ export const LongText = () => (
8082 on_invocation_count_change = { ( count ) =>
8183 console . log ( 'Invocation count changed:' , count )
8284 }
85+ prune_context_instructions = ""
8386 />
8487)
8588
@@ -91,7 +94,7 @@ export const WithPlaceholderSavedContext = () => (
9194 on_submit = { ( ) => console . log ( 'Submitted' ) }
9295 on_copy = { ( ) => console . log ( 'Copied' ) }
9396 is_connected = { true }
94- is_in_code_completions_mode = { false }
97+ prompt_type = "edit-context"
9598 current_selection = ""
9699 currently_open_file_path = "/path/to/file"
97100 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -106,6 +109,7 @@ export const WithPlaceholderSavedContext = () => (
106109 console . log ( 'Invocation count changed:' , count )
107110 }
108111 on_curly_braces_click = { ( ) => { } }
112+ prune_context_instructions = ""
109113 />
110114)
111115
@@ -117,7 +121,7 @@ export const WithPlaceholderSelection = () => (
117121 on_submit = { ( ) => console . log ( 'Submitted' ) }
118122 on_copy = { ( ) => console . log ( 'Copied' ) }
119123 is_connected = { true }
120- is_in_code_completions_mode = { false }
124+ prompt_type = "edit-context"
121125 current_selection = "Selected text content"
122126 currently_open_file_path = "/path/to/file"
123127 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -132,6 +136,7 @@ export const WithPlaceholderSelection = () => (
132136 console . log ( 'Invocation count changed:' , count )
133137 }
134138 on_curly_braces_click = { ( ) => { } }
139+ prune_context_instructions = ""
135140 />
136141)
137142
@@ -143,7 +148,7 @@ export const WithCommit = () => (
143148 on_submit = { ( ) => console . log ( 'Submitted' ) }
144149 on_copy = { ( ) => console . log ( 'Copied' ) }
145150 is_connected = { true }
146- is_in_code_completions_mode = { false }
151+ prompt_type = "edit-context"
147152 current_selection = ""
148153 currently_open_file_path = "/path/to/file"
149154 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -158,6 +163,7 @@ export const WithCommit = () => (
158163 console . log ( 'Invocation count changed:' , count )
159164 }
160165 on_curly_braces_click = { ( ) => { } }
166+ prune_context_instructions = ""
161167 />
162168)
163169
@@ -169,7 +175,7 @@ export const WithCommitWithQuotes = () => (
169175 on_submit = { ( ) => console . log ( 'Submitted' ) }
170176 on_copy = { ( ) => console . log ( 'Copied' ) }
171177 is_connected = { true }
172- is_in_code_completions_mode = { false }
178+ prompt_type = "edit-context"
173179 current_selection = ""
174180 currently_open_file_path = "/path/to/file"
175181 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -184,6 +190,7 @@ export const WithCommitWithQuotes = () => (
184190 console . log ( 'Invocation count changed:' , count )
185191 }
186192 on_curly_braces_click = { ( ) => { } }
193+ prune_context_instructions = ""
187194 />
188195)
189196export const WithContextAtCommit = ( ) => (
@@ -194,7 +201,7 @@ export const WithContextAtCommit = () => (
194201 on_submit = { ( ) => console . log ( 'Submitted' ) }
195202 on_copy = { ( ) => console . log ( 'Copied' ) }
196203 is_connected = { true }
197- is_in_code_completions_mode = { false }
204+ prompt_type = "edit-context"
198205 current_selection = ""
199206 currently_open_file_path = "/path/to/file"
200207 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -209,6 +216,7 @@ export const WithContextAtCommit = () => (
209216 console . log ( 'Invocation count changed:' , count )
210217 }
211218 on_curly_braces_click = { ( ) => { } }
219+ prune_context_instructions = ""
212220 />
213221)
214222
@@ -222,7 +230,7 @@ export const WithEditFormatSelector = () => {
222230 on_submit = { ( ) => console . log ( 'Submitted' ) }
223231 on_copy = { ( ) => console . log ( 'Copied' ) }
224232 is_connected = { true }
225- is_in_code_completions_mode = { false }
233+ prompt_type = "edit-context"
226234 current_selection = ""
227235 currently_open_file_path = "/path/to/file"
228236 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -238,6 +246,7 @@ export const WithEditFormatSelector = () => {
238246 context_file_paths = { [ ] }
239247 invocation_count = { 1 }
240248 on_invocation_count_change = { set_edit_format as any } // Mocking for demo
249+ prune_context_instructions = ""
241250 />
242251 )
243252}
@@ -250,7 +259,7 @@ export const WithFilePaths = () => (
250259 on_submit = { ( ) => console . log ( 'Submitted' ) }
251260 on_copy = { ( ) => console . log ( 'Copied' ) }
252261 is_connected = { true }
253- is_in_code_completions_mode = { false }
262+ prompt_type = "edit-context"
254263 current_selection = ""
255264 currently_open_file_path = "/path/to/file"
256265 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
@@ -266,5 +275,6 @@ export const WithFilePaths = () => (
266275 on_invocation_count_change = { ( count ) =>
267276 console . log ( 'Invocation count changed:' , count )
268277 }
278+ prune_context_instructions = ""
269279 />
270280)
0 commit comments