@theia/ai-chat-ui 1.58.2 → 1.59.0-next.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/ai-chat-ui-contribution.d.ts.map +1 -1
- package/lib/browser/ai-chat-ui-contribution.js +7 -7
- package/lib/browser/ai-chat-ui-contribution.js.map +1 -1
- package/lib/browser/ai-chat-ui-frontend-module.d.ts.map +1 -1
- package/lib/browser/ai-chat-ui-frontend-module.js +7 -4
- package/lib/browser/ai-chat-ui-frontend-module.js.map +1 -1
- package/lib/browser/chat-input-widget.d.ts +21 -4
- package/lib/browser/chat-input-widget.d.ts.map +1 -1
- package/lib/browser/chat-input-widget.js +177 -37
- package/lib/browser/chat-input-widget.js.map +1 -1
- package/lib/browser/chat-response-renderer/code-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/code-part-renderer.js +4 -3
- package/lib/browser/chat-response-renderer/code-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.js +3 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.js +7 -3
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.js.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-widget.d.ts.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-widget.js +25 -16
- package/lib/browser/chat-tree-view/chat-view-tree-widget.js.map +1 -1
- package/lib/browser/chat-view-contribution.d.ts +2 -2
- package/lib/browser/chat-view-contribution.d.ts.map +1 -1
- package/lib/browser/chat-view-contribution.js +6 -6
- package/lib/browser/chat-view-contribution.js.map +1 -1
- package/lib/browser/chat-view-language-contribution.d.ts +10 -5
- package/lib/browser/chat-view-language-contribution.d.ts.map +1 -1
- package/lib/browser/chat-view-language-contribution.js +94 -14
- package/lib/browser/chat-view-language-contribution.js.map +1 -1
- package/lib/browser/chat-view-widget.d.ts +4 -1
- package/lib/browser/chat-view-widget.d.ts.map +1 -1
- package/lib/browser/chat-view-widget.js +18 -7
- package/lib/browser/chat-view-widget.js.map +1 -1
- package/lib/browser/context-variable-picker.d.ts +9 -0
- package/lib/browser/context-variable-picker.d.ts.map +1 -0
- package/lib/browser/context-variable-picker.js +86 -0
- package/lib/browser/context-variable-picker.js.map +1 -0
- package/package.json +11 -11
- package/src/browser/ai-chat-ui-contribution.ts +8 -8
- package/src/browser/ai-chat-ui-frontend-module.ts +8 -4
- package/src/browser/chat-input-widget.tsx +255 -49
- package/src/browser/chat-response-renderer/code-part-renderer.tsx +4 -3
- package/src/browser/chat-response-renderer/text-part-renderer.tsx +4 -1
- package/src/browser/chat-response-renderer/toolcall-part-renderer.tsx +9 -3
- package/src/browser/chat-tree-view/chat-view-tree-widget.tsx +26 -16
- package/src/browser/chat-view-contribution.ts +6 -6
- package/src/browser/chat-view-language-contribution.ts +103 -19
- package/src/browser/chat-view-widget.tsx +22 -8
- package/src/browser/context-variable-picker.ts +85 -0
- package/src/browser/style/index.css +95 -9
|
@@ -95,15 +95,18 @@ div:last-child > .theia-ChatNode {
|
|
|
95
95
|
margin-left: auto;
|
|
96
96
|
line-height: 18px;
|
|
97
97
|
}
|
|
98
|
+
|
|
98
99
|
.theia-ChatNodeToolbar .theia-ChatNodeToolbarAction {
|
|
99
100
|
display: none;
|
|
100
101
|
align-items: center;
|
|
101
102
|
padding: 4px;
|
|
102
103
|
border-radius: 5px;
|
|
103
104
|
}
|
|
105
|
+
|
|
104
106
|
.theia-ChatNode:hover .theia-ChatNodeToolbar .theia-ChatNodeToolbarAction {
|
|
105
107
|
display: inline-block;
|
|
106
108
|
}
|
|
109
|
+
|
|
107
110
|
.theia-ChatNodeToolbar .theia-ChatNodeToolbarAction:hover {
|
|
108
111
|
cursor: pointer;
|
|
109
112
|
background-color: var(--theia-toolbar-hoverBackground);
|
|
@@ -160,6 +163,67 @@ div:last-child > .theia-ChatNode {
|
|
|
160
163
|
gap: 4px;
|
|
161
164
|
}
|
|
162
165
|
|
|
166
|
+
.theia-ChatInput-ChatContext ul {
|
|
167
|
+
list-style-type: none;
|
|
168
|
+
padding: 0px 4px 8px 8px;
|
|
169
|
+
margin: 0;
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-wrap: wrap;
|
|
172
|
+
gap: 6px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.theia-ChatInput-ChatContext-Element {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
border-radius: calc(var(--theia-ui-padding) * 2 / 3);
|
|
179
|
+
border: var(--theia-border-width) solid var(--theia-dropdown-border);
|
|
180
|
+
padding: 2px 4px 2px 6px;
|
|
181
|
+
height: 18px;
|
|
182
|
+
line-height: 16px;
|
|
183
|
+
min-width: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.theia-ChatInput-ChatContext-title {
|
|
187
|
+
flex: 10 1 auto;
|
|
188
|
+
min-width: 0;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
text-overflow: ellipsis;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.theia-ChatInput-ChatContext-additionalInfo {
|
|
195
|
+
color: var(--theia-disabledForeground);
|
|
196
|
+
font-size: calc(var(--theia-content-font-size) * 0.8);
|
|
197
|
+
margin-left: 4px;
|
|
198
|
+
line-height: 18px;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
text-overflow: ellipsis;
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
flex: 1 10 auto;
|
|
203
|
+
min-width: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.theia-ChatInput-ChatContext-Element .action {
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
margin-left: 4px;
|
|
209
|
+
border-radius: 4px;
|
|
210
|
+
flex-shrink: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.theia-ChatInput-ChatContext-Element .action:hover {
|
|
214
|
+
background-color: var(--theia-toolbar-hoverBackground);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.theia-ChatInput-ChatContext-Icon {
|
|
218
|
+
display: inline;
|
|
219
|
+
line-height: 18px;
|
|
220
|
+
flex-shrink: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.theia-ChatInput-ChatContext-Icon.codicon {
|
|
224
|
+
margin-right: 6px;
|
|
225
|
+
}
|
|
226
|
+
|
|
163
227
|
.theia-ChatInput-ChangeSet-Box {
|
|
164
228
|
margin: 0 16px -5px 16px;
|
|
165
229
|
padding: 2px;
|
|
@@ -217,10 +281,6 @@ div:last-child > .theia-ChatNode {
|
|
|
217
281
|
|
|
218
282
|
.theia-ChatInput-ChangeSet-Actions {
|
|
219
283
|
display: none;
|
|
220
|
-
position: absolute;
|
|
221
|
-
right: 8px;
|
|
222
|
-
top: 2px;
|
|
223
|
-
gap: 4px;
|
|
224
284
|
}
|
|
225
285
|
|
|
226
286
|
.theia-ChatInput-ChangeSet-List ul {
|
|
@@ -234,6 +294,9 @@ div:last-child > .theia-ChatNode {
|
|
|
234
294
|
|
|
235
295
|
.theia-ChatInput-ChangeSet-List ul li:hover .theia-ChatInput-ChangeSet-Actions {
|
|
236
296
|
display: flex;
|
|
297
|
+
justify-content: flex-end;
|
|
298
|
+
flex: auto;
|
|
299
|
+
gap: 4px;
|
|
237
300
|
}
|
|
238
301
|
|
|
239
302
|
.theia-ChatInput-ChangeSet-List .theia-ChatInput-ChangeSet-Icon {
|
|
@@ -247,8 +310,6 @@ div:last-child > .theia-ChatNode {
|
|
|
247
310
|
|
|
248
311
|
.theia-ChatInput-ChangeSet-List .theia-ChatInput-ChangeSet-Icon::before {
|
|
249
312
|
text-align: center;
|
|
250
|
-
margin-right: 4px;
|
|
251
|
-
font-size: calc(var(--theia-content-font-size) * 0.8);
|
|
252
313
|
}
|
|
253
314
|
|
|
254
315
|
.theia-ChatInput-ChangeSet-List
|
|
@@ -267,9 +328,15 @@ div:last-child > .theia-ChatNode {
|
|
|
267
328
|
color: var(--theia-disabledForeground);
|
|
268
329
|
}
|
|
269
330
|
|
|
331
|
+
.theia-ChatInput-ChangeSet-labelParts {
|
|
332
|
+
overflow: hidden;
|
|
333
|
+
text-overflow: ellipsis;
|
|
334
|
+
}
|
|
335
|
+
|
|
270
336
|
.theia-ChatInput-ChangeSet-title {
|
|
271
337
|
white-space: nowrap;
|
|
272
|
-
overflow:
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
text-overflow: ellipsis;
|
|
273
340
|
}
|
|
274
341
|
|
|
275
342
|
.theia-ChatInput-ChangeSet-Header-Actions,
|
|
@@ -288,6 +355,7 @@ div:last-child > .theia-ChatNode {
|
|
|
288
355
|
border-radius: 4px;
|
|
289
356
|
cursor: pointer;
|
|
290
357
|
}
|
|
358
|
+
|
|
291
359
|
.theia-ChatInput-ChangeSet-Header-Actions .codicon.action:hover {
|
|
292
360
|
background-color: var(--theia-toolbar-hoverBackground);
|
|
293
361
|
}
|
|
@@ -299,9 +367,11 @@ div:last-child > .theia-ChatNode {
|
|
|
299
367
|
.theia-ChatInput-ChangeSet-title.add.pending {
|
|
300
368
|
color: var(--theia-charts-green);
|
|
301
369
|
}
|
|
370
|
+
|
|
302
371
|
.theia-ChatInput-ChangeSet-title.modify.pending {
|
|
303
372
|
color: var(--theia-charts-orange);
|
|
304
373
|
}
|
|
374
|
+
|
|
305
375
|
.theia-ChatInput-ChangeSet-title.delete.pending {
|
|
306
376
|
color: var(--theia-charts-red);
|
|
307
377
|
}
|
|
@@ -345,6 +415,7 @@ div:last-child > .theia-ChatNode {
|
|
|
345
415
|
z-index: 10;
|
|
346
416
|
text-align: left;
|
|
347
417
|
}
|
|
418
|
+
|
|
348
419
|
.theia-ChatInput-Editor-Placeholder.hidden {
|
|
349
420
|
display: none;
|
|
350
421
|
}
|
|
@@ -376,15 +447,19 @@ div:last-child > .theia-ChatNode {
|
|
|
376
447
|
.theia-ChatInputOptions .theia-ChatInputOptions-right {
|
|
377
448
|
display: flex;
|
|
378
449
|
}
|
|
450
|
+
|
|
379
451
|
.theia-ChatInputOptions .theia-ChatInputOptions-right {
|
|
380
452
|
margin-right: 12px;
|
|
381
453
|
}
|
|
382
454
|
|
|
383
455
|
.theia-ChatInputOptions .option {
|
|
384
|
-
width: 21px;
|
|
456
|
+
min-width: 21px;
|
|
385
457
|
height: 21px;
|
|
386
458
|
padding: 2px;
|
|
387
|
-
display:
|
|
459
|
+
display: flex;
|
|
460
|
+
justify-content: space-between;
|
|
461
|
+
align-items: center;
|
|
462
|
+
gap: 2px;
|
|
388
463
|
box-sizing: border-box;
|
|
389
464
|
user-select: none;
|
|
390
465
|
background-repeat: no-repeat;
|
|
@@ -405,6 +480,10 @@ div:last-child > .theia-ChatNode {
|
|
|
405
480
|
background-color: var(--theia-toolbar-hoverBackground);
|
|
406
481
|
}
|
|
407
482
|
|
|
483
|
+
.theia-ChatInputOptions .reverse {
|
|
484
|
+
flex-direction: row-reverse;
|
|
485
|
+
}
|
|
486
|
+
|
|
408
487
|
.theia-CodePartRenderer-root {
|
|
409
488
|
display: flex;
|
|
410
489
|
flex-direction: column;
|
|
@@ -433,6 +512,7 @@ div:last-child > .theia-ChatNode {
|
|
|
433
512
|
border-radius: 5px;
|
|
434
513
|
cursor: pointer;
|
|
435
514
|
}
|
|
515
|
+
|
|
436
516
|
.theia-CodePartRenderer-right .button:hover {
|
|
437
517
|
background-color: var(--theia-toolbar-hoverBackground);
|
|
438
518
|
}
|
|
@@ -453,19 +533,23 @@ div:last-child > .theia-ChatNode {
|
|
|
453
533
|
border-radius: 5px;
|
|
454
534
|
margin: 0 0 8px 0;
|
|
455
535
|
}
|
|
536
|
+
|
|
456
537
|
.theia-QuestionPartRenderer-options {
|
|
457
538
|
display: flex;
|
|
458
539
|
flex-wrap: wrap;
|
|
459
540
|
gap: 12px;
|
|
460
541
|
}
|
|
542
|
+
|
|
461
543
|
.theia-QuestionPartRenderer-option {
|
|
462
544
|
min-width: 100px;
|
|
463
545
|
flex: 1 1 auto;
|
|
464
546
|
margin: 0;
|
|
465
547
|
}
|
|
548
|
+
|
|
466
549
|
.theia-QuestionPartRenderer-option.selected:disabled:hover {
|
|
467
550
|
background-color: var(--theia-button-disabledBackground);
|
|
468
551
|
}
|
|
552
|
+
|
|
469
553
|
.theia-QuestionPartRenderer-option:disabled:not(.selected) {
|
|
470
554
|
background-color: var(--theia-button-secondaryBackground);
|
|
471
555
|
}
|
|
@@ -519,9 +603,11 @@ details[open].collapsible-arguments .collapsible-arguments-summary {
|
|
|
519
603
|
.theia-ResponseNode-ProgressMessage .inProgress {
|
|
520
604
|
color: var(--theia-progressBar-background);
|
|
521
605
|
}
|
|
606
|
+
|
|
522
607
|
.theia-ResponseNode-ProgressMessage .completed {
|
|
523
608
|
color: var(--theia-successBackground);
|
|
524
609
|
}
|
|
610
|
+
|
|
525
611
|
.theia-ResponseNode-ProgressMessage .failed {
|
|
526
612
|
color: var(--theia-errorForeground);
|
|
527
613
|
}
|