@theia/ai-chat-ui 1.61.0-next.8 → 1.62.0-next.3

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.
Files changed (64) hide show
  1. package/lib/browser/ai-chat-ui-contribution.d.ts +5 -1
  2. package/lib/browser/ai-chat-ui-contribution.d.ts.map +1 -1
  3. package/lib/browser/ai-chat-ui-contribution.js +102 -4
  4. package/lib/browser/ai-chat-ui-contribution.js.map +1 -1
  5. package/lib/browser/ai-chat-ui-frontend-module.d.ts.map +1 -1
  6. package/lib/browser/ai-chat-ui-frontend-module.js +29 -1
  7. package/lib/browser/ai-chat-ui-frontend-module.js.map +1 -1
  8. package/lib/browser/chat-input-agent-suggestions.d.ts +11 -0
  9. package/lib/browser/chat-input-agent-suggestions.d.ts.map +1 -0
  10. package/lib/browser/chat-input-agent-suggestions.js +76 -0
  11. package/lib/browser/chat-input-agent-suggestions.js.map +1 -0
  12. package/lib/browser/chat-input-widget.d.ts +17 -6
  13. package/lib/browser/chat-input-widget.d.ts.map +1 -1
  14. package/lib/browser/chat-input-widget.js +72 -22
  15. package/lib/browser/chat-input-widget.js.map +1 -1
  16. package/lib/browser/chat-node-toolbar-action-contribution.d.ts +8 -0
  17. package/lib/browser/chat-node-toolbar-action-contribution.d.ts.map +1 -1
  18. package/lib/browser/chat-node-toolbar-action-contribution.js +55 -1
  19. package/lib/browser/chat-node-toolbar-action-contribution.js.map +1 -1
  20. package/lib/browser/chat-response-renderer/code-part-renderer.js +1 -1
  21. package/lib/browser/chat-response-renderer/code-part-renderer.js.map +1 -1
  22. package/lib/browser/chat-response-renderer/markdown-part-renderer.d.ts +7 -1
  23. package/lib/browser/chat-response-renderer/markdown-part-renderer.d.ts.map +1 -1
  24. package/lib/browser/chat-response-renderer/markdown-part-renderer.js +14 -3
  25. package/lib/browser/chat-response-renderer/markdown-part-renderer.js.map +1 -1
  26. package/lib/browser/chat-tree-view/chat-view-tree-input-widget.d.ts +33 -0
  27. package/lib/browser/chat-tree-view/chat-view-tree-input-widget.d.ts.map +1 -0
  28. package/lib/browser/chat-tree-view/chat-view-tree-input-widget.js +79 -0
  29. package/lib/browser/chat-tree-view/chat-view-tree-input-widget.js.map +1 -0
  30. package/lib/browser/chat-tree-view/chat-view-tree-widget.d.ts +20 -4
  31. package/lib/browser/chat-tree-view/chat-view-tree-widget.d.ts.map +1 -1
  32. package/lib/browser/chat-tree-view/chat-view-tree-widget.js +180 -34
  33. package/lib/browser/chat-tree-view/chat-view-tree-widget.js.map +1 -1
  34. package/lib/browser/chat-view-commands.d.ts +3 -0
  35. package/lib/browser/chat-view-commands.d.ts.map +1 -1
  36. package/lib/browser/chat-view-commands.js +15 -0
  37. package/lib/browser/chat-view-commands.js.map +1 -1
  38. package/lib/browser/chat-view-contribution.d.ts +1 -0
  39. package/lib/browser/chat-view-contribution.d.ts.map +1 -1
  40. package/lib/browser/chat-view-contribution.js +16 -14
  41. package/lib/browser/chat-view-contribution.js.map +1 -1
  42. package/lib/browser/chat-view-language-contribution.d.ts +3 -3
  43. package/lib/browser/chat-view-language-contribution.d.ts.map +1 -1
  44. package/lib/browser/chat-view-language-contribution.js +9 -22
  45. package/lib/browser/chat-view-language-contribution.js.map +1 -1
  46. package/lib/browser/chat-view-widget.d.ts +6 -2
  47. package/lib/browser/chat-view-widget.d.ts.map +1 -1
  48. package/lib/browser/chat-view-widget.js +36 -19
  49. package/lib/browser/chat-view-widget.js.map +1 -1
  50. package/package.json +12 -12
  51. package/src/browser/ai-chat-ui-contribution.ts +93 -6
  52. package/src/browser/ai-chat-ui-frontend-module.ts +31 -3
  53. package/src/browser/chat-input-agent-suggestions.tsx +85 -0
  54. package/src/browser/chat-input-widget.tsx +122 -32
  55. package/src/browser/chat-node-toolbar-action-contribution.ts +40 -1
  56. package/src/browser/chat-response-renderer/code-part-renderer.tsx +3 -3
  57. package/src/browser/chat-response-renderer/markdown-part-renderer.tsx +19 -2
  58. package/src/browser/chat-tree-view/chat-view-tree-input-widget.tsx +89 -0
  59. package/src/browser/chat-tree-view/chat-view-tree-widget.tsx +199 -16
  60. package/src/browser/chat-view-commands.ts +18 -0
  61. package/src/browser/chat-view-contribution.ts +20 -16
  62. package/src/browser/chat-view-language-contribution.ts +10 -24
  63. package/src/browser/chat-view-widget.tsx +18 -5
  64. package/src/browser/style/index.css +58 -4
@@ -149,6 +149,37 @@ div:last-child > .theia-ChatNode {
149
149
  color: var(--theia-badge-foreground);
150
150
  }
151
151
 
152
+ .theia-RequestNode-Footer {
153
+ display: flex;
154
+ align-items: center;
155
+ justify-content: flex-end;
156
+ gap: 2px;
157
+ }
158
+
159
+ .theia-RequestNode-Footer .item {
160
+ opacity: var(--theia-mod-disabled-opacity);
161
+ cursor: default;
162
+ display: flex;
163
+ flex-direction: row;
164
+ column-gap: 0px;
165
+ align-items: center;
166
+ }
167
+
168
+ .theia-RequestNode-Footer .item.enabled {
169
+ cursor: pointer;
170
+ opacity: 1;
171
+ }
172
+
173
+ .theia-RequestNode-Footer :not(.item.enabled) .action-label {
174
+ background: transparent;
175
+ cursor: default;
176
+ }
177
+
178
+ .theia-RequestNode .theia-ChatInput-Editor-Box {
179
+ margin-left: 0px;
180
+ margin-right: 0px;
181
+ }
182
+
152
183
  .chat-input-widget {
153
184
  align-items: flex-end;
154
185
  display: flex;
@@ -181,11 +212,19 @@ div:last-child > .theia-ChatNode {
181
212
  height: 18px;
182
213
  line-height: 16px;
183
214
  min-width: 0;
215
+ user-select: none;
216
+ cursor: pointer;
184
217
  }
185
218
 
186
- .theia-ChatInput-ChatContext-title {
187
- flex: 10 1 auto;
219
+ .theia-ChatInput-ChatContext-labelParts {
220
+ flex: 1;
188
221
  min-width: 0;
222
+ white-space: nowrap;
223
+ overflow: hidden;
224
+ text-overflow: ellipsis;
225
+ }
226
+
227
+ .theia-ChatInput-ChatContext-title {
189
228
  overflow: hidden;
190
229
  text-overflow: ellipsis;
191
230
  white-space: nowrap;
@@ -199,8 +238,6 @@ div:last-child > .theia-ChatNode {
199
238
  overflow: hidden;
200
239
  text-overflow: ellipsis;
201
240
  white-space: nowrap;
202
- flex: 1 10 auto;
203
- min-width: 0;
204
241
  }
205
242
 
206
243
  .theia-ChatInput-ChatContext-Element .action {
@@ -301,6 +338,7 @@ div:last-child > .theia-ChatNode {
301
338
  }
302
339
 
303
340
  .theia-ChatInput-ChangeSet-List .theia-ChatInput-ChangeSet-Icon {
341
+ position: relative;
304
342
  padding-left: 2px;
305
343
  padding-right: 4px;
306
344
  min-width: var(--theia-icon-size);
@@ -325,11 +363,20 @@ div:last-child > .theia-ChatNode {
325
363
  }
326
364
 
327
365
  .theia-ChatInput-ChangeSet-additionalInfo {
366
+ align-items: center;
367
+ gap: 4px;
328
368
  margin-left: 8px;
329
369
  color: var(--theia-disabledForeground);
330
370
  }
331
371
 
372
+ .theia-ChatInput-ChangeSet-List
373
+ .theia-ChatInput-ChangeSet-AdditionalInfo-SuffixIcon {
374
+ font-size: var(--theia-ui-font-size0) px;
375
+ margin-left: 4px;
376
+ }
377
+
332
378
  .theia-ChatInput-ChangeSet-labelParts {
379
+ display: flex;
333
380
  overflow: hidden;
334
381
  text-overflow: ellipsis;
335
382
  }
@@ -354,6 +401,7 @@ div:last-child > .theia-ChatNode {
354
401
  .theia-ChatInput-ChangeSet-Header-Actions,
355
402
  .theia-ChatInput-ChangeSet-Box h3,
356
403
  .theia-ChatInput-ChangeSet-additionalInfo {
404
+ display: flex;
357
405
  white-space: nowrap;
358
406
  overflow: hidden;
359
407
  text-overflow: ellipsis;
@@ -698,3 +746,9 @@ details[open].collapsible-arguments .collapsible-arguments-summary {
698
746
  .session-settings-container .monaco-editor {
699
747
  outline-color: var(--theia-editor-background);
700
748
  }
749
+
750
+ .chat-agent-suggestions {
751
+ padding-inline: 16px;
752
+ padding-block-end: 8px;
753
+ user-select: none;
754
+ }