@agent-native/agentkit 0.5.1 → 0.198.2

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 (44) hide show
  1. package/ARCHITECTURE.md +15 -15
  2. package/README.md +56 -27
  3. package/dist/client/client.d.ts +3 -0
  4. package/dist/client/client.d.ts.map +1 -1
  5. package/dist/client/client.js +86 -39
  6. package/dist/client/client.js.map +1 -1
  7. package/dist/client/state.d.ts +7 -0
  8. package/dist/client/state.d.ts.map +1 -1
  9. package/dist/client/state.js +43 -1
  10. package/dist/client/state.js.map +1 -1
  11. package/package.json +9 -58
  12. package/dist/react/chat.d.ts +0 -27
  13. package/dist/react/chat.d.ts.map +0 -1
  14. package/dist/react/chat.js +0 -19
  15. package/dist/react/chat.js.map +0 -1
  16. package/dist/react/components.d.ts +0 -107
  17. package/dist/react/components.d.ts.map +0 -1
  18. package/dist/react/components.js +0 -1940
  19. package/dist/react/components.js.map +0 -1
  20. package/dist/react/composer-submission.d.ts +0 -21
  21. package/dist/react/composer-submission.d.ts.map +0 -1
  22. package/dist/react/composer-submission.js +0 -28
  23. package/dist/react/composer-submission.js.map +0 -1
  24. package/dist/react/context.d.ts +0 -303
  25. package/dist/react/context.d.ts.map +0 -1
  26. package/dist/react/context.js +0 -393
  27. package/dist/react/context.js.map +0 -1
  28. package/dist/react/headless.d.ts +0 -3
  29. package/dist/react/headless.d.ts.map +0 -1
  30. package/dist/react/headless.js +0 -3
  31. package/dist/react/headless.js.map +0 -1
  32. package/dist/react/index.d.ts +0 -6
  33. package/dist/react/index.d.ts.map +0 -1
  34. package/dist/react/index.js +0 -6
  35. package/dist/react/index.js.map +0 -1
  36. package/dist/react/root.d.ts +0 -49
  37. package/dist/react/root.d.ts.map +0 -1
  38. package/dist/react/root.js +0 -145
  39. package/dist/react/root.js.map +0 -1
  40. package/dist/react/streaming-text.d.ts +0 -17
  41. package/dist/react/streaming-text.d.ts.map +0 -1
  42. package/dist/react/streaming-text.js +0 -257
  43. package/dist/react/streaming-text.js.map +0 -1
  44. package/dist/react/styles.css +0 -1740
@@ -1,1740 +0,0 @@
1
- :where(.agentkit-chat) {
2
- --agentkit-canvas: var(
3
- --agentkit-chat-background,
4
- var(--agent-kit-recessed-surface, Canvas)
5
- );
6
- --agentkit-surface: var(
7
- --agentkit-composer-background,
8
- var(
9
- --agent-kit-raised-surface,
10
- color-mix(in srgb, Canvas 96%, CanvasText 4%)
11
- )
12
- );
13
- --agentkit-subtle: var(
14
- --agent-kit-subtle-surface,
15
- color-mix(in srgb, Canvas 92%, CanvasText 8%)
16
- );
17
- --agentkit-border: var(
18
- --agent-kit-border,
19
- color-mix(in srgb, CanvasText 16%, transparent)
20
- );
21
- --agentkit-text: var(--agent-kit-text, CanvasText);
22
- --agentkit-text-muted: var(
23
- --agent-kit-muted-text,
24
- color-mix(in srgb, CanvasText 62%, transparent)
25
- );
26
- --agentkit-accent: var(--agent-kit-accent, CanvasText);
27
- --agentkit-accent-text: var(--agent-kit-accent-text, Canvas);
28
- --agentkit-danger: var(--agent-kit-danger, CanvasText);
29
- --agentkit-success: var(--agent-kit-success, CanvasText);
30
- --agentkit-focus: var(--agent-kit-focus, Highlight);
31
- --agentkit-radius: var(--radius-xl, calc(var(--radius, 0.75rem) + 0.5rem));
32
- --agentkit-radius-inner: var(--radius-lg, var(--radius, 0.75rem));
33
- --agentkit-elevation: var(--agent-kit-composer-elevation, none);
34
- --agentkit-composer-border: var(
35
- --agent-kit-composer-border-color,
36
- transparent
37
- );
38
- --agentkit-composer-focus-border: var(
39
- --agent-kit-composer-focus-border-color,
40
- transparent
41
- );
42
- --agentkit-composer-toolbar-control-size: var(
43
- --agent-kit-composer-toolbar-control-size,
44
- 1.75rem
45
- );
46
- --agentkit-composer-toolbar-control-gap: var(
47
- --agent-kit-composer-toolbar-control-gap,
48
- 0.25rem
49
- );
50
- --agentkit-composer-toolbar-control-padding-inline: var(
51
- --agent-kit-composer-toolbar-control-padding-inline,
52
- 0.375rem
53
- );
54
- --agentkit-composer-toolbar-control-font-size: var(
55
- --agent-kit-composer-toolbar-control-font-size,
56
- 0.75rem
57
- );
58
- --agentkit-composer-toolbar-control-line-height: var(
59
- --agent-kit-composer-toolbar-control-line-height,
60
- 1rem
61
- );
62
- --agentkit-composer-toolbar-control-font-weight: var(
63
- --agent-kit-composer-toolbar-control-font-weight,
64
- 500
65
- );
66
-
67
- position: relative;
68
- display: grid;
69
- inline-size: 100%;
70
- block-size: 100%;
71
- min-inline-size: 0;
72
- min-block-size: 0;
73
- grid-template-columns: minmax(0, 1fr);
74
- grid-template-rows: auto minmax(0, 1fr) auto;
75
- overflow: hidden;
76
- color: var(--agentkit-text);
77
- background: var(--agentkit-canvas);
78
- font: inherit;
79
- }
80
-
81
- .agentkit-composer-stack [data-agent-composer-slot="area"] {
82
- position: relative;
83
- z-index: 1;
84
- padding-block: 0.5rem;
85
- }
86
-
87
- .agentkit-composer-stack [data-agent-composer-slot="workflow"] {
88
- position: relative;
89
- display: flex;
90
- inline-size: 100%;
91
- flex-direction: column;
92
- }
93
-
94
- .agentkit-composer[data-agent-composer-slot="root"] {
95
- display: flex;
96
- flex-direction: column;
97
- overflow: hidden;
98
- border: 1px solid var(--agentkit-composer-border);
99
- border-color: var(--agentkit-composer-border) !important;
100
- border-radius: var(--agentkit-radius);
101
- color: var(--agentkit-text);
102
- background: var(--agentkit-surface);
103
- box-shadow: var(--agentkit-elevation);
104
- }
105
-
106
- .agentkit-composer[data-agent-composer-slot="root"]:focus-within {
107
- border-color: var(--agentkit-composer-focus-border) !important;
108
- }
109
-
110
- :is(:root.dark, :root[data-theme="dark"], .dark)
111
- .agentkit-composer[data-agent-composer-slot="root"],
112
- :is(:root.dark, :root[data-theme="dark"], .dark)
113
- .agentkit-composer[data-agent-composer-slot="root"]:focus-within {
114
- border-color: transparent !important;
115
- }
116
-
117
- .agentkit-composer [data-agent-composer-slot="editor-wrap"] {
118
- padding: 0.75rem 0.875rem 0.25rem;
119
- }
120
-
121
- .agentkit-composer [data-agent-composer-slot="editor"] {
122
- min-inline-size: 0;
123
- }
124
-
125
- .agentkit-composer [data-agent-composer-slot="editor-input"] {
126
- min-block-size: 3.25rem;
127
- max-block-size: 10rem;
128
- overflow-y: auto;
129
- outline: none;
130
- color: var(--agentkit-text);
131
- background: transparent;
132
- font-size: 0.875rem;
133
- line-height: 1.5;
134
- }
135
-
136
- .agentkit-composer [data-agent-composer-slot="editor-input"] p {
137
- margin: 0;
138
- }
139
-
140
- .agentkit-composer [data-agent-composer-slot="mode-row"],
141
- .agentkit-composer [data-agent-composer-slot="context-row"] {
142
- display: flex;
143
- flex-wrap: wrap;
144
- gap: 0.375rem;
145
- padding: 0.5rem 0.625rem 0;
146
- }
147
-
148
- .agentkit-composer
149
- [data-agent-composer-slot="editor-input"]
150
- p.is-editor-empty:first-child::before,
151
- .agentkit-composer
152
- [data-agent-composer-slot="editor-input"]
153
- p.is-empty:first-child:last-child::before {
154
- color: var(--agentkit-text-muted);
155
- }
156
-
157
- .agentkit-composer [data-agent-composer-slot="toolbar"] {
158
- display: flex;
159
- align-items: center;
160
- gap: var(--agentkit-composer-toolbar-control-gap);
161
- padding: 0.375rem 0.5rem 0.5rem;
162
- }
163
-
164
- .agentkit-composer [data-agent-composer-slot="toolbar-spacer"] {
165
- flex: 1;
166
- }
167
-
168
- .agentkit-composer [data-agent-composer-slot="model-button"] {
169
- flex: none;
170
- max-inline-size: 11rem;
171
- }
172
-
173
- .agentkit-composer [data-agent-composer-slot="mode-button"] {
174
- min-inline-size: 3.5rem;
175
- }
176
-
177
- .agentkit-composer input[type="file"] {
178
- display: none;
179
- }
180
-
181
- .agentkit-composer button {
182
- display: inline-flex;
183
- min-inline-size: var(--agentkit-composer-toolbar-control-size);
184
- block-size: var(--agentkit-composer-toolbar-control-size);
185
- align-items: center;
186
- justify-content: center;
187
- gap: var(--agentkit-composer-toolbar-control-gap);
188
- padding-inline: var(--agentkit-composer-toolbar-control-padding-inline);
189
- border: 0;
190
- border-radius: var(--agentkit-radius-inner);
191
- color: var(--agentkit-text-muted);
192
- background: transparent;
193
- font-family: inherit;
194
- font-size: var(--agentkit-composer-toolbar-control-font-size);
195
- font-weight: var(--agentkit-composer-toolbar-control-font-weight);
196
- line-height: var(--agentkit-composer-toolbar-control-line-height);
197
- cursor: pointer;
198
- }
199
-
200
- .agentkit-composer
201
- button:has(> svg:only-child):not([data-agent-composer-slot="send-button"]),
202
- .agentkit-composer:not(.agent-composer-root--hero)
203
- [data-agent-composer-slot="send-button"] {
204
- inline-size: var(--agentkit-composer-toolbar-control-size);
205
- padding-inline: 0;
206
- }
207
-
208
- .agentkit-composer button:hover:not(:disabled) {
209
- color: var(--agentkit-text);
210
- background: var(--agentkit-subtle);
211
- }
212
-
213
- .agentkit-composer button:disabled {
214
- opacity: 0.35;
215
- cursor: default;
216
- }
217
-
218
- .agentkit-composer [data-agent-composer-slot="send-button"] {
219
- border-radius: 999px;
220
- color: var(--agentkit-accent-text);
221
- background: var(--agentkit-accent);
222
- }
223
-
224
- .agentkit-composer button svg {
225
- inline-size: 1rem;
226
- block-size: 1rem;
227
- flex: none;
228
- }
229
-
230
- .agentkit-composer-stack
231
- [data-agent-message-queue="true"][data-agent-message-queue-variant="recessed"] {
232
- position: relative;
233
- z-index: 0;
234
- inline-size: calc(100% - 4rem);
235
- block-size: var(--agent-message-queue-height, 0);
236
- margin: 0 auto;
237
- padding-block-end: 0.625rem;
238
- overflow: hidden;
239
- border: 1px solid color-mix(in srgb, var(--agentkit-border) 70%, transparent);
240
- border-radius: var(--agentkit-radius-inner);
241
- background: color-mix(
242
- in srgb,
243
- var(--agentkit-subtle) 78%,
244
- var(--agentkit-surface)
245
- );
246
- opacity: 1;
247
- transform: translateY(0);
248
- transition:
249
- block-size 200ms var(--ease-collapse, ease-out),
250
- margin 200ms var(--ease-collapse, ease-out),
251
- opacity 160ms ease-out,
252
- transform 200ms var(--ease-collapse, ease-out),
253
- border-color 160ms ease-out;
254
- }
255
-
256
- .agentkit-composer-stack [data-agent-message-queue="true"][data-empty="true"] {
257
- margin-block-end: 0;
258
- padding-block-end: 0;
259
- border-color: transparent;
260
- opacity: 0;
261
- pointer-events: none;
262
- transform: translateY(0.5rem);
263
- }
264
-
265
- .agentkit-composer-stack [data-agent-message-queue="true"] ul {
266
- display: flex;
267
- block-size: 100%;
268
- max-block-size: 10rem;
269
- flex-direction: column;
270
- gap: 0.125rem;
271
- margin: 0;
272
- padding: 0.25rem 0;
273
- overflow-y: auto;
274
- list-style: none;
275
- }
276
-
277
- .agentkit-composer-stack [data-agent-message-queue="true"] li {
278
- display: flex;
279
- min-block-size: 2.25rem;
280
- min-inline-size: 0;
281
- align-items: center;
282
- gap: 0.5rem;
283
- padding: 0.375rem 1rem;
284
- color: var(--agentkit-text);
285
- font-size: 0.8125rem;
286
- line-height: 1rem;
287
- }
288
-
289
- .agentkit-composer-stack [data-agent-message-queue="true"] li > svg {
290
- inline-size: 0.875rem;
291
- block-size: 0.875rem;
292
- flex: none;
293
- color: var(--agentkit-text-muted);
294
- }
295
-
296
- .agentkit-composer-stack
297
- [data-agent-message-queue="true"]
298
- li
299
- > div:first-of-type {
300
- min-inline-size: 0;
301
- flex: 1;
302
- }
303
-
304
- .agentkit-composer-stack
305
- [data-agent-message-queue="true"]
306
- li
307
- > div:first-of-type
308
- > div:first-child {
309
- overflow: hidden;
310
- text-overflow: ellipsis;
311
- white-space: nowrap;
312
- }
313
-
314
- .agentkit-composer-stack [data-agent-message-queue="true"] li > div:last-child {
315
- display: flex;
316
- flex: none;
317
- align-items: center;
318
- gap: 0.125rem;
319
- color: var(--agentkit-text-muted);
320
- }
321
-
322
- .agentkit-composer-stack [data-agent-message-queue="true"] button {
323
- display: inline-flex;
324
- min-inline-size: 1.75rem;
325
- block-size: 1.75rem;
326
- align-items: center;
327
- justify-content: center;
328
- gap: 0.25rem;
329
- padding-inline: 0.375rem;
330
- border: 0;
331
- border-radius: var(--radius-md, var(--radius));
332
- color: inherit;
333
- background: transparent;
334
- font: inherit;
335
- font-size: 0.75rem;
336
- cursor: pointer;
337
- }
338
-
339
- .agentkit-composer-stack
340
- [data-agent-message-queue="true"]
341
- button:has(> svg:only-child) {
342
- inline-size: 1.75rem;
343
- padding-inline: 0;
344
- }
345
-
346
- .agentkit-composer-stack
347
- [data-agent-message-queue="true"]
348
- button:hover:not(:disabled) {
349
- color: var(--agentkit-text);
350
- background: var(--agentkit-subtle);
351
- }
352
-
353
- .agentkit-composer-stack [data-agent-message-queue="true"] button svg {
354
- inline-size: 0.875rem;
355
- block-size: 0.875rem;
356
- flex: none;
357
- }
358
-
359
- .agentkit-composer-stack [data-agent-message-queue="true"] img {
360
- inline-size: 2rem;
361
- block-size: 2rem;
362
- border: 1px solid var(--agentkit-border);
363
- border-radius: var(--radius-md, var(--radius));
364
- object-fit: cover;
365
- }
366
-
367
- .agentkit-suggestions[data-agent-suggestion-bar="true"] {
368
- inline-size: 100%;
369
- overflow: hidden;
370
- padding: 0.5rem 0;
371
- }
372
-
373
- .agentkit-suggestions [data-agent-suggestion-scroller="true"] {
374
- display: flex;
375
- inline-size: 100%;
376
- gap: 0.375rem;
377
- overflow-x: auto;
378
- overscroll-behavior-inline: contain;
379
- scrollbar-width: none;
380
- }
381
-
382
- .agentkit-suggestions
383
- [data-agent-suggestion-scroller="true"]::-webkit-scrollbar {
384
- display: none;
385
- }
386
-
387
- .agentkit-suggestions button {
388
- flex: none;
389
- padding: 0.375rem 0.625rem;
390
- border: 1px solid transparent;
391
- border-radius: 999px;
392
- color: var(--agentkit-text-muted);
393
- background: var(--agentkit-subtle);
394
- font: inherit;
395
- font-size: 0.75rem;
396
- white-space: nowrap;
397
- cursor: pointer;
398
- }
399
-
400
- .agentkit-suggestions button:hover {
401
- border-color: var(--agentkit-border);
402
- color: var(--agentkit-text);
403
- }
404
-
405
- [data-agent-native-composer-popover="true"] {
406
- --agentkit-palette-surface: var(
407
- --agent-kit-popover-surface,
408
- var(--agent-kit-raised-surface, Canvas)
409
- );
410
- --agentkit-palette-text: var(
411
- --agent-kit-popover-text,
412
- var(--agent-kit-text, CanvasText)
413
- );
414
- --agentkit-palette-muted: var(
415
- --agent-kit-muted-text,
416
- color-mix(in srgb, CanvasText 62%, transparent)
417
- );
418
- --agentkit-palette-hover: var(
419
- --agent-kit-subtle-surface,
420
- color-mix(in srgb, Canvas 92%, CanvasText 8%)
421
- );
422
- --agentkit-palette-border: var(
423
- --agent-kit-border,
424
- color-mix(in srgb, CanvasText 16%, transparent)
425
- );
426
-
427
- z-index: 9999;
428
- max-block-size: min(27.5rem, calc(100vh - 2rem));
429
- overflow-y: auto;
430
- padding: 0.25rem;
431
- border: 1px solid
432
- color-mix(in srgb, var(--agentkit-palette-border) 80%, transparent);
433
- border-radius: var(--radius-lg, var(--radius, 0.75rem));
434
- color: var(--agentkit-palette-text);
435
- background: var(--agentkit-palette-surface);
436
- box-shadow: var(--agent-kit-overlay-elevation, none);
437
- font: inherit;
438
- }
439
-
440
- body:has(> [data-agent-native-composer-popover="true"]) > .fixed.inset-0 {
441
- position: fixed;
442
- z-index: 9998;
443
- inset: 0;
444
- }
445
-
446
- [data-agent-native-composer-popover="true"] [data-mention-index] {
447
- display: flex;
448
- inline-size: 100%;
449
- min-block-size: 2rem;
450
- min-inline-size: 0;
451
- align-items: center;
452
- gap: 0.5rem;
453
- padding: 0.25rem 0.5rem;
454
- border: 0;
455
- border-radius: var(--radius-md, var(--radius, 0.75rem));
456
- color: var(--agentkit-palette-text);
457
- background: transparent;
458
- font: inherit;
459
- text-align: start;
460
- cursor: pointer;
461
- }
462
-
463
- [data-agent-native-composer-popover="true"] [data-mention-index]:hover,
464
- [data-agent-native-composer-popover="true"] [data-mention-index]:focus-visible {
465
- background: var(--agentkit-palette-hover);
466
- }
467
-
468
- [data-agent-native-composer-popover="true"] [data-mention-index] > svg {
469
- inline-size: 1rem;
470
- block-size: 1rem;
471
- flex: none;
472
- color: var(--agentkit-palette-muted);
473
- }
474
-
475
- [data-agent-native-composer-popover="true"] [data-mention-index] > span {
476
- min-inline-size: 0;
477
- overflow: hidden;
478
- font-size: 0.8125rem;
479
- line-height: 1rem;
480
- text-overflow: ellipsis;
481
- white-space: nowrap;
482
- }
483
-
484
- [data-agent-native-composer-popover="true"]
485
- [data-mention-index]
486
- > span:last-child:not(:first-child) {
487
- max-inline-size: 60%;
488
- flex: none;
489
- margin-inline-start: auto;
490
- color: var(--agentkit-palette-muted);
491
- }
492
-
493
- [data-agent-native-composer-popover="true"]
494
- > div
495
- > div
496
- > div:not(:has([data-mention-index])) {
497
- color: var(--agentkit-palette-muted);
498
- }
499
-
500
- .agentkit-chat {
501
- position: relative;
502
- }
503
-
504
- .agentkit-file-drop-overlay {
505
- position: absolute;
506
- z-index: 8;
507
- inset: 0;
508
- display: grid;
509
- place-items: center;
510
- padding: 1rem;
511
- border: 2px dashed var(--agentkit-accent);
512
- border-radius: var(--agentkit-radius);
513
- color: var(--agentkit-text);
514
- background: color-mix(in srgb, var(--agentkit-canvas) 88%, transparent);
515
- font-size: 0.875rem;
516
- font-weight: 600;
517
- pointer-events: none;
518
- }
519
-
520
- .agentkit-chat[data-empty="true"] {
521
- grid-template-rows: minmax(0, 1fr) auto;
522
- }
523
-
524
- .agentkit-chat[data-empty="true"][data-empty-composer-placement="center"] {
525
- grid-template-rows: minmax(0, 1fr) auto 1rem auto minmax(0, 1fr);
526
- }
527
-
528
- .agentkit-chat[data-empty="true"][data-empty-composer-placement="center"]:has(
529
- .agentkit-transcript-content:empty
530
- ) {
531
- grid-template-rows: minmax(0, 1fr) 0 0 auto minmax(0, 1fr);
532
- }
533
-
534
- .agentkit-chat[data-empty="true"][data-empty-composer-placement="center"]
535
- .agentkit-transcript {
536
- grid-row: 2;
537
- overflow: visible;
538
- }
539
-
540
- .agentkit-chat[data-empty="true"][data-empty-composer-placement="center"]
541
- .agentkit-transcript-content {
542
- padding-block: 0;
543
- }
544
-
545
- .agentkit-chat[data-empty="true"][data-empty-composer-placement="center"]
546
- .agentkit-chat-footer {
547
- grid-row: 4;
548
- padding-block-end: 0;
549
- }
550
-
551
- .agentkit-chat-header {
552
- z-index: 2;
553
- display: flex;
554
- min-block-size: 3rem;
555
- align-items: center;
556
- justify-content: space-between;
557
- gap: 1rem;
558
- padding-inline: 1rem;
559
- border-block-end: 1px solid var(--agentkit-border);
560
- background: var(--agentkit-canvas);
561
- }
562
-
563
- .agentkit-chat-title {
564
- min-inline-size: 0;
565
- overflow: hidden;
566
- font-size: 0.8125rem;
567
- font-weight: 560;
568
- text-overflow: ellipsis;
569
- white-space: nowrap;
570
- }
571
-
572
- .agentkit-chat-toolbar {
573
- display: flex;
574
- min-inline-size: 0;
575
- align-items: center;
576
- gap: 0.25rem;
577
- }
578
-
579
- .agentkit-chat-toolbar > * {
580
- flex: none;
581
- }
582
-
583
- .agentkit-transcript {
584
- grid-column: 1;
585
- grid-row: 2;
586
- inline-size: 100%;
587
- min-block-size: 0;
588
- overflow-y: auto;
589
- overflow-anchor: none;
590
- overscroll-behavior-block: contain;
591
- scrollbar-color: transparent transparent;
592
- scrollbar-gutter: stable;
593
- scrollbar-width: thin;
594
- }
595
-
596
- .agentkit-transcript::-webkit-scrollbar {
597
- inline-size: 0.3125rem;
598
- block-size: 0.3125rem;
599
- }
600
-
601
- .agentkit-transcript::-webkit-scrollbar-track {
602
- background: transparent;
603
- }
604
-
605
- .agentkit-transcript::-webkit-scrollbar-thumb {
606
- border-radius: 999px;
607
- background: transparent;
608
- }
609
-
610
- .agentkit-transcript[data-scrollbar-visible="true"] {
611
- scrollbar-color: color-mix(
612
- in srgb,
613
- var(--agentkit-text-muted) 42%,
614
- transparent
615
- )
616
- transparent;
617
- }
618
-
619
- .agentkit-transcript[data-scrollbar-visible="true"]::-webkit-scrollbar-thumb {
620
- background: color-mix(in srgb, var(--agentkit-text-muted) 42%, transparent);
621
- }
622
-
623
- .agentkit-transcript[data-scrollbar-visible="true"]::-webkit-scrollbar-thumb:hover {
624
- background: color-mix(in srgb, var(--agentkit-text-muted) 62%, transparent);
625
- }
626
-
627
- .agentkit-transcript-content {
628
- inline-size: min(100%, 47rem);
629
- min-inline-size: 0;
630
- margin-inline: auto;
631
- padding: 1.5rem 1rem;
632
- }
633
-
634
- .agentkit-scroll-to-bottom-control {
635
- position: sticky;
636
- z-index: 2;
637
- inset-block-end: 0.75rem;
638
- display: flex;
639
- block-size: 0;
640
- justify-content: center;
641
- margin-block-start: -2.25rem;
642
- pointer-events: none;
643
- }
644
-
645
- .agentkit-scroll-to-bottom-control > * {
646
- pointer-events: auto;
647
- border: 1px solid var(--agentkit-border);
648
- border-radius: 999px;
649
- color: var(--agentkit-text);
650
- background: var(--agentkit-surface);
651
- box-shadow: 0 2px 8px
652
- color-mix(in srgb, var(--agentkit-text) 14%, transparent);
653
- }
654
-
655
- .agentkit-visually-hidden {
656
- position: absolute;
657
- inline-size: 1px;
658
- block-size: 1px;
659
- overflow: hidden;
660
- clip-path: inset(50%);
661
- white-space: nowrap;
662
- }
663
-
664
- .agentkit-message {
665
- display: flex;
666
- flex-direction: column;
667
- align-items: flex-start;
668
- margin-block: 0 1.25rem;
669
- font-size: 0.875rem;
670
- line-height: 1.52;
671
- }
672
-
673
- .agentkit-message[data-role="user"] {
674
- align-items: flex-end;
675
- }
676
-
677
- .agentkit-message-content {
678
- max-inline-size: 100%;
679
- }
680
-
681
- .agentkit-message[data-role="user"] .agentkit-message-content {
682
- max-inline-size: min(88%, 38rem);
683
- padding: 0.625rem 0.8125rem;
684
- border-radius: var(--agentkit-radius-inner);
685
- background: var(--agentkit-subtle);
686
- }
687
-
688
- .agentkit-message-content > :first-child {
689
- margin-block-start: 0;
690
- }
691
-
692
- .agentkit-message-content > :last-child {
693
- margin-block-end: 0;
694
- }
695
-
696
- .agentkit-message-content p {
697
- margin-block: 0 0.625rem;
698
- white-space: pre-wrap;
699
- }
700
-
701
- .agentkit-message-content p[data-format="plain"] {
702
- font-weight: inherit;
703
- font-style: normal;
704
- }
705
-
706
- .agentkit-user-message-text-content {
707
- overflow-wrap: anywhere;
708
- white-space: pre-wrap;
709
- }
710
-
711
- .agentkit-user-message-text-clip[data-clamped="true"] {
712
- position: relative;
713
- max-block-size: 200px;
714
- overflow: hidden;
715
- }
716
-
717
- .agentkit-user-message-text-clip[data-clamped="true"]::after {
718
- position: absolute;
719
- inset-inline: 0;
720
- inset-block-end: 0;
721
- block-size: 3rem;
722
- background: linear-gradient(to bottom, transparent, var(--agentkit-subtle));
723
- content: "";
724
- pointer-events: none;
725
- }
726
-
727
- .agentkit-mention {
728
- display: inline-flex;
729
- max-inline-size: 200px;
730
- align-items: center;
731
- gap: 0.25rem;
732
- margin-inline: 0.125rem;
733
- padding: 0.125rem 0.375rem;
734
- border: 1px solid var(--agentkit-border);
735
- border-radius: var(--agentkit-radius-inner);
736
- color: var(--agentkit-text);
737
- background: color-mix(in srgb, var(--agentkit-subtle) 75%, transparent);
738
- font-size: 0.75rem;
739
- font-weight: 550;
740
- vertical-align: middle;
741
- user-select: text;
742
- }
743
-
744
- .agentkit-mention-icon {
745
- flex: none;
746
- color: var(--agentkit-text-muted);
747
- }
748
-
749
- .agentkit-mention-label {
750
- min-inline-size: 0;
751
- overflow: hidden;
752
- text-overflow: ellipsis;
753
- white-space: nowrap;
754
- }
755
-
756
- .agentkit-message-expand {
757
- position: relative;
758
- z-index: 1;
759
- margin-block-start: 0.25rem;
760
- padding: 0.125rem 0.25rem;
761
- border: 0;
762
- border-radius: var(--agentkit-radius-inner);
763
- color: var(--agentkit-text-muted);
764
- background: transparent;
765
- font: inherit;
766
- font-size: 0.6875rem;
767
- cursor: pointer;
768
- }
769
-
770
- .agentkit-message-expand:hover {
771
- color: var(--agentkit-text);
772
- }
773
-
774
- .agentkit-image-attachment-trigger {
775
- display: block;
776
- inline-size: 4rem;
777
- block-size: 4rem;
778
- overflow: hidden;
779
- padding: 0;
780
- border: 1px solid var(--agentkit-border);
781
- border-radius: var(--agentkit-radius-inner);
782
- background: var(--agentkit-canvas);
783
- cursor: zoom-in;
784
- }
785
-
786
- .agentkit-image-attachment-trigger img {
787
- inline-size: 100%;
788
- block-size: 100%;
789
- object-fit: cover;
790
- }
791
-
792
- .agentkit-image-preview {
793
- display: flex;
794
- min-block-size: min(70vh, 35rem);
795
- align-items: center;
796
- justify-content: center;
797
- padding: 1.5rem;
798
- background: var(--agentkit-canvas);
799
- }
800
-
801
- .agentkit-image-preview img {
802
- max-inline-size: 92vw;
803
- max-block-size: 90vh;
804
- border-radius: var(--agentkit-radius);
805
- object-fit: contain;
806
- }
807
-
808
- .agentkit-markdown {
809
- overflow-wrap: anywhere;
810
- }
811
-
812
- .agentkit-markdown > :first-child {
813
- margin-block-start: 0;
814
- }
815
-
816
- .agentkit-markdown > :last-child {
817
- margin-block-end: 0;
818
- }
819
-
820
- .agentkit-markdown p {
821
- white-space: normal;
822
- }
823
-
824
- .agentkit-markdown h1,
825
- .agentkit-markdown h2,
826
- .agentkit-markdown h3 {
827
- font-weight: 600;
828
- }
829
-
830
- .agentkit-markdown h1 {
831
- margin-block: 0.75em 0.25em;
832
- font-size: 1.25em;
833
- }
834
-
835
- .agentkit-markdown h2 {
836
- margin-block: 0.75em 0.25em;
837
- font-size: 1.125em;
838
- }
839
-
840
- .agentkit-markdown h3 {
841
- margin-block: 0.75em 0.25em;
842
- font-size: 1em;
843
- }
844
-
845
- .agentkit-markdown :where(ul, ol) {
846
- margin-block: 0 0.625rem;
847
- padding-inline-start: 1.25rem;
848
- }
849
-
850
- .agentkit-markdown ul {
851
- list-style-type: disc;
852
- }
853
-
854
- .agentkit-markdown ol {
855
- list-style-type: decimal;
856
- }
857
-
858
- .agentkit-markdown li::marker {
859
- color: var(--agentkit-text-muted);
860
- }
861
-
862
- .agentkit-markdown ul ul {
863
- list-style-type: circle;
864
- }
865
-
866
- .agentkit-markdown ol ol {
867
- list-style-type: lower-alpha;
868
- }
869
-
870
- .agentkit-markdown li + li {
871
- margin-block-start: 0.25rem;
872
- }
873
-
874
- .agentkit-markdown :where(code, pre) {
875
- font-family: var(--font-mono, ui-monospace, monospace);
876
- }
877
-
878
- .agentkit-markdown :not(pre) > code {
879
- padding: 0.125rem 0.25rem;
880
- border-radius: var(--radius-sm, calc(var(--radius, 0.75rem) / 2));
881
- background: var(--agentkit-subtle);
882
- font-size: 0.875em;
883
- }
884
-
885
- .agentkit-markdown pre {
886
- margin-block: 0 0.625rem;
887
- padding: 0.75rem;
888
- overflow-x: auto;
889
- border: 1px solid var(--agentkit-border);
890
- border-radius: var(--agentkit-radius-inner);
891
- background: var(--agentkit-subtle);
892
- }
893
-
894
- .agentkit-markdown pre code {
895
- font-size: 0.8125rem;
896
- }
897
-
898
- .agentkit-markdown a {
899
- color: inherit;
900
- text-decoration-color: var(--agentkit-text-muted);
901
- text-underline-offset: 0.15em;
902
- }
903
-
904
- .agentkit-markdown blockquote {
905
- margin: 0 0 0.625rem;
906
- padding-inline-start: 0.75rem;
907
- border-inline-start: 2px solid var(--agentkit-border);
908
- color: var(--agentkit-text-muted);
909
- }
910
-
911
- .agentkit-message-actions {
912
- display: flex;
913
- inline-size: 100%;
914
- min-block-size: 1.5rem;
915
- align-items: center;
916
- justify-content: space-between;
917
- gap: 0.25rem;
918
- flex-wrap: wrap;
919
- margin-block-start: 0.25rem;
920
- color: var(--agentkit-text-muted);
921
- opacity: 0;
922
- transition: opacity 140ms ease;
923
- }
924
-
925
- .agentkit-message-actions-leading,
926
- .agentkit-message-actions-trailing {
927
- display: flex;
928
- min-inline-size: 0;
929
- align-items: center;
930
- gap: 0.125rem;
931
- }
932
-
933
- .agentkit-message-actions-trailing {
934
- margin-inline-start: auto;
935
- }
936
-
937
- .agentkit-message:hover .agentkit-message-actions,
938
- .agentkit-message:focus-within .agentkit-message-actions {
939
- opacity: 1;
940
- }
941
-
942
- .agentkit-message-actions button {
943
- display: inline-grid;
944
- inline-size: 1.75rem;
945
- block-size: 1.75rem;
946
- place-items: center;
947
- padding: 0;
948
- border: 0;
949
- border-radius: var(--radius-md, var(--radius));
950
- color: inherit;
951
- background: transparent;
952
- cursor: pointer;
953
- }
954
-
955
- .agentkit-chat-toolbar :where(button, [role="button"]) {
956
- display: inline-flex;
957
- min-inline-size: 1.75rem;
958
- block-size: 1.75rem;
959
- align-items: center;
960
- justify-content: center;
961
- gap: 0.25rem;
962
- padding-inline: 0.5rem;
963
- border: 0;
964
- border-radius: var(--radius-md, var(--radius));
965
- color: inherit;
966
- background: transparent;
967
- font: inherit;
968
- font-size: 0.75rem;
969
- white-space: nowrap;
970
- cursor: pointer;
971
- }
972
-
973
- .agentkit-chat-toolbar :where(button, [role="button"]):has(> svg:only-child) {
974
- inline-size: 1.75rem;
975
- padding-inline: 0;
976
- }
977
-
978
- .agentkit-message-actions button:hover,
979
- .agentkit-chat-toolbar :where(button, [role="button"]):hover {
980
- color: var(--agentkit-text);
981
- background: var(--agentkit-subtle);
982
- }
983
-
984
- .agentkit-message-actions button[aria-pressed="true"] {
985
- color: var(--agentkit-text);
986
- background: var(--agentkit-subtle);
987
- }
988
-
989
- .agentkit-message-actions button[aria-pressed="true"] svg {
990
- stroke-width: 2.2;
991
- }
992
-
993
- .agentkit-message-actions svg {
994
- inline-size: 0.875rem;
995
- block-size: 0.875rem;
996
- }
997
-
998
- .agentkit-message-actions time {
999
- margin-inline-start: 0.25rem;
1000
- font-size: 0.6875rem;
1001
- }
1002
-
1003
- .agentkit-branch-navigation {
1004
- display: inline-flex;
1005
- align-items: center;
1006
- gap: 0.25rem;
1007
- margin-inline-start: 0.375rem;
1008
- font-size: 0.6875rem;
1009
- }
1010
-
1011
- .agentkit-feedback-popover {
1012
- z-index: 20;
1013
- width: min(20rem, calc(100vw - 2rem));
1014
- padding: 0.75rem;
1015
- border: 1px solid var(--agentkit-border);
1016
- border-radius: var(--agentkit-radius-inner);
1017
- color: var(--agentkit-text);
1018
- background: var(--agentkit-surface);
1019
- box-shadow: 0 8px 24px
1020
- color-mix(in srgb, var(--agentkit-text) 16%, transparent);
1021
- }
1022
-
1023
- .agentkit-feedback-form {
1024
- display: grid;
1025
- gap: 0.625rem;
1026
- }
1027
-
1028
- .agentkit-feedback-textarea {
1029
- inline-size: 100%;
1030
- }
1031
-
1032
- .agentkit-feedback-footer {
1033
- display: flex;
1034
- align-items: center;
1035
- justify-content: space-between;
1036
- gap: 0.75rem;
1037
- color: var(--agentkit-text-muted);
1038
- font-size: 0.6875rem;
1039
- }
1040
-
1041
- .agentkit-icon {
1042
- inline-size: 1rem;
1043
- block-size: 1rem;
1044
- flex: none;
1045
- stroke-width: 1.7;
1046
- }
1047
-
1048
- .agentkit-agent-feed,
1049
- .agentkit-activities,
1050
- .agentkit-tasks {
1051
- margin-block: 0.375rem 1.25rem;
1052
- color: var(--agentkit-text-muted);
1053
- font-size: 0.8125rem;
1054
- }
1055
-
1056
- .agentkit-agent-feed {
1057
- display: grid;
1058
- gap: 0.125rem;
1059
- }
1060
-
1061
- .agentkit-activities-summary,
1062
- .agentkit-activity-row,
1063
- .agentkit-agent-interaction,
1064
- .agentkit-tasks-summary,
1065
- .agentkit-task-row {
1066
- display: flex;
1067
- inline-size: 100%;
1068
- min-inline-size: 0;
1069
- align-items: center;
1070
- gap: 0.5rem;
1071
- padding: 0.25rem 0;
1072
- border: 0;
1073
- color: inherit;
1074
- background: transparent;
1075
- text-align: start;
1076
- list-style: none;
1077
- }
1078
-
1079
- .agentkit-activities-summary,
1080
- .agentkit-tasks-summary {
1081
- cursor: pointer;
1082
- }
1083
-
1084
- .agentkit-activities-summary::-webkit-details-marker,
1085
- .agentkit-activity-cluster > summary::-webkit-details-marker,
1086
- .agentkit-tasks-summary::-webkit-details-marker {
1087
- display: none;
1088
- }
1089
-
1090
- .agentkit-activities-summary:hover,
1091
- .agentkit-activity-row:hover,
1092
- .agentkit-agent-interaction:hover,
1093
- .agentkit-tasks-summary:hover,
1094
- .agentkit-task-row:hover {
1095
- color: var(--agentkit-text);
1096
- }
1097
-
1098
- .agentkit-agent {
1099
- display: inline-flex;
1100
- min-inline-size: 0;
1101
- max-inline-size: 12rem;
1102
- flex: none;
1103
- align-items: center;
1104
- padding: 0.125rem 0.5rem;
1105
- border: 1px solid var(--agentkit-border);
1106
- border-radius: 999px;
1107
- color: var(--agentkit-text);
1108
- overflow: hidden;
1109
- background: var(--agentkit-subtle);
1110
- font-size: 0.75rem;
1111
- font-weight: 500;
1112
- line-height: 1.25rem;
1113
- }
1114
-
1115
- .agentkit-agent-name,
1116
- .agentkit-agent-interaction-label {
1117
- min-inline-size: 0;
1118
- overflow: hidden;
1119
- text-overflow: ellipsis;
1120
- white-space: nowrap;
1121
- }
1122
-
1123
- .agentkit-agent[data-status="working"] .agentkit-agent-name {
1124
- color: transparent;
1125
- background: linear-gradient(
1126
- 90deg,
1127
- var(--agentkit-text),
1128
- color-mix(in srgb, var(--agentkit-text) 34%, transparent),
1129
- var(--agentkit-text)
1130
- );
1131
- background-size: 200% 100%;
1132
- background-clip: text;
1133
- animation: agentkit-shimmer 1.8s linear infinite;
1134
- }
1135
-
1136
- .agentkit-agent[data-status="failed"] {
1137
- border-color: color-mix(
1138
- in srgb,
1139
- var(--agentkit-danger) 32%,
1140
- var(--agentkit-border)
1141
- );
1142
- color: var(--agentkit-danger);
1143
- }
1144
-
1145
- .agentkit-agent-interaction-detail {
1146
- min-inline-size: 0;
1147
- max-inline-size: 45%;
1148
- margin-inline-start: auto;
1149
- overflow: hidden;
1150
- color: var(--agentkit-text-muted);
1151
- text-overflow: ellipsis;
1152
- white-space: nowrap;
1153
- }
1154
-
1155
- .agentkit-activities-count,
1156
- .agentkit-activity-cluster-count,
1157
- .agentkit-tasks-count,
1158
- .agentkit-task-progress {
1159
- color: color-mix(in srgb, var(--agentkit-text-muted) 75%, transparent);
1160
- font-variant-numeric: tabular-nums;
1161
- }
1162
-
1163
- .agentkit-activity-cluster-count {
1164
- flex: none;
1165
- margin-inline-start: auto;
1166
- }
1167
-
1168
- .agentkit-activity-cluster > summary {
1169
- cursor: pointer;
1170
- }
1171
-
1172
- .agentkit-activity-cluster-items {
1173
- display: grid;
1174
- gap: 0.125rem;
1175
- margin-inline-start: 0.5rem;
1176
- padding-inline-start: 1rem;
1177
- border-inline-start: 1px solid var(--agentkit-border);
1178
- }
1179
-
1180
- .agentkit-activities-label {
1181
- min-inline-size: 0;
1182
- overflow: hidden;
1183
- text-overflow: ellipsis;
1184
- white-space: nowrap;
1185
- }
1186
-
1187
- .agentkit-activities[data-running="true"] .agentkit-activities-label {
1188
- color: transparent;
1189
- background: linear-gradient(
1190
- 90deg,
1191
- var(--agentkit-text-muted),
1192
- color-mix(in srgb, var(--agentkit-text-muted) 28%, transparent),
1193
- var(--agentkit-text-muted)
1194
- );
1195
- background-size: 200% 100%;
1196
- background-clip: text;
1197
- animation: agentkit-shimmer 1.8s linear infinite;
1198
- }
1199
-
1200
- .agentkit-summary-chevron,
1201
- .agentkit-disclosure-icon {
1202
- transition: transform 160ms ease;
1203
- }
1204
-
1205
- .agentkit-activity-disclosure {
1206
- display: inline-grid;
1207
- inline-size: 1.5rem;
1208
- block-size: 1.5rem;
1209
- flex: none;
1210
- place-items: center;
1211
- margin-inline-start: 0.125rem;
1212
- padding: 0;
1213
- border: 0;
1214
- border-radius: var(--radius-md, var(--radius));
1215
- color: inherit;
1216
- background: transparent;
1217
- cursor: pointer;
1218
- }
1219
-
1220
- .agentkit-activity-disclosure:hover {
1221
- color: var(--agentkit-text);
1222
- background: var(--agentkit-subtle);
1223
- }
1224
-
1225
- .agentkit-activities[open] .agentkit-summary-chevron,
1226
- .agentkit-tasks[open] .agentkit-summary-chevron,
1227
- .agentkit-disclosure-icon[data-open="true"] {
1228
- transform: rotate(90deg);
1229
- }
1230
-
1231
- .agentkit-activities-list,
1232
- .agentkit-tasks-list {
1233
- display: grid;
1234
- gap: 0.125rem;
1235
- padding-block-start: 0.25rem;
1236
- }
1237
-
1238
- .agentkit-task-title {
1239
- min-inline-size: 0;
1240
- overflow: hidden;
1241
- color: var(--agentkit-text);
1242
- text-overflow: ellipsis;
1243
- white-space: nowrap;
1244
- }
1245
-
1246
- .agentkit-task-detail,
1247
- .agentkit-task-progress {
1248
- margin-inline-start: auto;
1249
- overflow: hidden;
1250
- text-overflow: ellipsis;
1251
- white-space: nowrap;
1252
- }
1253
-
1254
- .agentkit-task-row[data-status="running"] .agentkit-task-title {
1255
- color: transparent;
1256
- background: linear-gradient(
1257
- 90deg,
1258
- var(--agentkit-text-muted),
1259
- color-mix(in srgb, var(--agentkit-text-muted) 28%, transparent),
1260
- var(--agentkit-text-muted)
1261
- );
1262
- background-size: 200% 100%;
1263
- background-clip: text;
1264
- animation: agentkit-shimmer 1.8s linear infinite;
1265
- }
1266
-
1267
- .agentkit-activity-label {
1268
- min-inline-size: 0;
1269
- overflow: hidden;
1270
- color: var(--agentkit-text);
1271
- text-overflow: ellipsis;
1272
- white-space: nowrap;
1273
- }
1274
-
1275
- .agentkit-activity-item[data-status="running"] .agentkit-activity-label {
1276
- color: transparent;
1277
- background: linear-gradient(
1278
- 90deg,
1279
- var(--agentkit-text-muted),
1280
- color-mix(in srgb, var(--agentkit-text-muted) 28%, transparent),
1281
- var(--agentkit-text-muted)
1282
- );
1283
- background-size: 200% 100%;
1284
- background-clip: text;
1285
- animation: agentkit-shimmer 1.8s linear infinite;
1286
- }
1287
-
1288
- .agentkit-activity-detail,
1289
- .agentkit-object {
1290
- display: flex;
1291
- min-inline-size: 0;
1292
- max-inline-size: 55%;
1293
- align-items: center;
1294
- gap: 0.375rem;
1295
- margin-inline-start: auto;
1296
- padding: 0;
1297
- border: 0;
1298
- overflow: hidden;
1299
- color: var(--agentkit-text-muted);
1300
- background: transparent;
1301
- font: inherit;
1302
- text-align: end;
1303
- text-overflow: ellipsis;
1304
- white-space: nowrap;
1305
- }
1306
-
1307
- button.agentkit-object {
1308
- cursor: pointer;
1309
- }
1310
-
1311
- .agentkit-object-label {
1312
- overflow: hidden;
1313
- text-overflow: ellipsis;
1314
- }
1315
-
1316
- .agentkit-diff-added {
1317
- color: var(--agentkit-success);
1318
- }
1319
-
1320
- .agentkit-diff-removed {
1321
- color: var(--agentkit-danger);
1322
- }
1323
-
1324
- .agentkit-activity-summary {
1325
- margin-inline-start: 1.5rem;
1326
- padding: 0.25rem 0 0.5rem;
1327
- color: var(--agentkit-text);
1328
- }
1329
-
1330
- .agentkit-approval,
1331
- .agentkit-connection-request,
1332
- .agentkit-widget {
1333
- overflow: hidden;
1334
- margin-block: 0.75rem 1.25rem;
1335
- border: 1px solid var(--agentkit-border);
1336
- border-radius: var(--agentkit-radius-inner);
1337
- background: var(--agentkit-surface);
1338
- box-shadow: var(--agent-kit-control-elevation, none);
1339
- }
1340
-
1341
- .agentkit-approval-copy,
1342
- .agentkit-connection-request-copy,
1343
- .agentkit-widget {
1344
- padding: 0.875rem;
1345
- }
1346
-
1347
- .agentkit-approval h3,
1348
- .agentkit-connection-request h3,
1349
- .agentkit-widget h3 {
1350
- margin: 0;
1351
- font-size: 0.875rem;
1352
- font-weight: 600;
1353
- }
1354
-
1355
- .agentkit-approval p,
1356
- .agentkit-connection-request p,
1357
- .agentkit-widget p {
1358
- margin: 0.25rem 0 0;
1359
- color: var(--agentkit-text-muted);
1360
- font-size: 0.75rem;
1361
- }
1362
-
1363
- .agentkit-connection-request-copy {
1364
- display: flex;
1365
- align-items: flex-start;
1366
- gap: 0.625rem;
1367
- }
1368
-
1369
- .agentkit-connection-request-copy > .agentkit-icon {
1370
- flex: 0 0 auto;
1371
- margin-block-start: 0.125rem;
1372
- color: var(--agentkit-text-muted);
1373
- }
1374
-
1375
- .agentkit-connection-request[data-status="connected"]
1376
- .agentkit-connection-request-copy
1377
- > .agentkit-icon {
1378
- color: var(--agentkit-success);
1379
- }
1380
-
1381
- .agentkit-connection-request-actions {
1382
- display: flex;
1383
- justify-content: flex-end;
1384
- gap: 0.375rem;
1385
- padding: 0.625rem 0.875rem;
1386
- border-block-start: 1px solid var(--agentkit-border);
1387
- }
1388
-
1389
- .agentkit-connection-request > .agentkit-command-error {
1390
- display: flex;
1391
- align-items: center;
1392
- gap: 0.375rem;
1393
- margin: 0;
1394
- padding: 0 0.875rem 0.75rem;
1395
- }
1396
-
1397
- .agentkit-approval-options {
1398
- display: grid;
1399
- gap: 0.375rem;
1400
- padding: 0 0.875rem 0.875rem;
1401
- }
1402
-
1403
- .agentkit-approval-options button {
1404
- display: grid;
1405
- gap: 0.125rem;
1406
- padding: 0.625rem 0.75rem;
1407
- border: 1px solid var(--agentkit-border);
1408
- border-radius: var(--radius-md, var(--radius));
1409
- color: var(--agentkit-text);
1410
- background: transparent;
1411
- text-align: start;
1412
- cursor: pointer;
1413
- }
1414
-
1415
- .agentkit-approval-options button[aria-pressed="true"] {
1416
- border-color: var(--agentkit-accent);
1417
- background: color-mix(in srgb, var(--agentkit-accent) 8%, transparent);
1418
- }
1419
-
1420
- .agentkit-approval-options small {
1421
- color: var(--agentkit-text-muted);
1422
- }
1423
-
1424
- .agentkit-approval-input {
1425
- display: grid;
1426
- gap: 0.25rem;
1427
- padding: 0 0.875rem 0.875rem;
1428
- color: var(--agentkit-text-muted);
1429
- font-size: 0.75rem;
1430
- }
1431
-
1432
- .agentkit-approval-input input {
1433
- min-block-size: 2.25rem;
1434
- padding-inline: 0.625rem;
1435
- border: 1px solid var(--agentkit-border);
1436
- border-radius: var(--radius-md, var(--radius));
1437
- color: var(--agentkit-text);
1438
- background: var(--agentkit-canvas);
1439
- font: inherit;
1440
- }
1441
-
1442
- .agentkit-approval-footer,
1443
- .agentkit-widget-actions {
1444
- display: flex;
1445
- justify-content: flex-end;
1446
- gap: 0.375rem;
1447
- padding: 0.625rem 0.875rem;
1448
- border-block-start: 1px solid var(--agentkit-border);
1449
- }
1450
-
1451
- .agentkit-approval-footer button,
1452
- .agentkit-widget-actions button {
1453
- min-block-size: 2rem;
1454
- padding-inline: 0.75rem;
1455
- border: 1px solid var(--agentkit-border);
1456
- border-radius: var(--radius-md, var(--radius));
1457
- color: var(--agentkit-text);
1458
- background: transparent;
1459
- font: inherit;
1460
- font-size: 0.75rem;
1461
- cursor: pointer;
1462
- }
1463
-
1464
- .agentkit-primary-button,
1465
- .agentkit-widget-actions button[data-kind="primary"] {
1466
- border-color: var(--agentkit-accent);
1467
- color: var(--agentkit-accent-text);
1468
- background: var(--agentkit-accent);
1469
- }
1470
-
1471
- .agentkit-widget-action {
1472
- display: grid;
1473
- justify-items: end;
1474
- gap: 0.25rem;
1475
- }
1476
-
1477
- .agentkit-command-error,
1478
- .agentkit-composer-error {
1479
- color: var(--agentkit-danger);
1480
- font-size: 0.75rem;
1481
- line-height: 1.35;
1482
- }
1483
-
1484
- .agentkit-approval > .agentkit-command-error {
1485
- display: block;
1486
- margin: 0;
1487
- padding: 0 0.875rem 0.75rem;
1488
- }
1489
-
1490
- .agentkit-composer-error {
1491
- display: flex;
1492
- align-items: center;
1493
- gap: 0.375rem;
1494
- padding: 0.375rem 0.625rem 0;
1495
- }
1496
-
1497
- .agentkit-file {
1498
- display: inline-flex;
1499
- align-items: center;
1500
- gap: 0.375rem;
1501
- color: var(--agentkit-text-muted);
1502
- text-decoration: none;
1503
- }
1504
-
1505
- .agentkit-file--pasted-text {
1506
- border: 1px solid var(--agentkit-border);
1507
- border-radius: 999px;
1508
- padding: 0.125rem 0.5rem;
1509
- font-size: 0.75rem;
1510
- }
1511
-
1512
- .agentkit-annotations {
1513
- display: flex;
1514
- flex-wrap: wrap;
1515
- gap: 0.375rem;
1516
- margin-block-start: 0.5rem;
1517
- font-size: 0.75rem;
1518
- }
1519
-
1520
- .agentkit-annotations a,
1521
- .agentkit-annotations span {
1522
- color: var(--agentkit-text-muted);
1523
- text-decoration-color: color-mix(
1524
- in srgb,
1525
- var(--agentkit-text-muted) 45%,
1526
- transparent
1527
- );
1528
- text-underline-offset: 0.2em;
1529
- }
1530
-
1531
- .agentkit-reasoning {
1532
- margin-block: 0.375rem 0.75rem;
1533
- color: var(--agentkit-text-muted);
1534
- font-size: 0.8125rem;
1535
- }
1536
-
1537
- .agentkit-reasoning-summary {
1538
- display: flex;
1539
- inline-size: max-content;
1540
- max-inline-size: 100%;
1541
- align-items: center;
1542
- gap: 0.5rem;
1543
- padding-block: 0.25rem;
1544
- color: var(--agentkit-text-muted);
1545
- cursor: pointer;
1546
- list-style: none;
1547
- }
1548
-
1549
- .agentkit-reasoning-summary::-webkit-details-marker {
1550
- display: none;
1551
- }
1552
-
1553
- .agentkit-reasoning-label {
1554
- min-inline-size: 0;
1555
- overflow: hidden;
1556
- text-overflow: ellipsis;
1557
- white-space: nowrap;
1558
- }
1559
-
1560
- .agentkit-reasoning[data-active="true"] .agentkit-reasoning-label {
1561
- color: transparent;
1562
- background: linear-gradient(
1563
- 90deg,
1564
- var(--agentkit-text-muted),
1565
- color-mix(in srgb, var(--agentkit-text-muted) 28%, transparent),
1566
- var(--agentkit-text-muted)
1567
- );
1568
- background-size: 200% 100%;
1569
- background-clip: text;
1570
- animation: agentkit-shimmer 1.8s linear infinite;
1571
- }
1572
-
1573
- .agentkit-reasoning-chevron {
1574
- transition: transform 160ms ease-out;
1575
- }
1576
-
1577
- .agentkit-reasoning[open] .agentkit-reasoning-chevron {
1578
- transform: rotate(90deg);
1579
- }
1580
-
1581
- .agentkit-reasoning-content {
1582
- margin-inline-start: 1.5rem;
1583
- padding: 0.25rem 0 0.5rem;
1584
- color: var(--agentkit-text);
1585
- }
1586
-
1587
- .agentkit-reasoning-content p {
1588
- margin: 0;
1589
- }
1590
-
1591
- .agentkit-error {
1592
- display: grid;
1593
- gap: 0.125rem;
1594
- margin-block: 0.75rem 1.25rem;
1595
- padding: 0.75rem 0.875rem;
1596
- border: 1px solid
1597
- color-mix(in srgb, var(--agentkit-danger) 32%, var(--agentkit-border));
1598
- border-radius: var(--agentkit-radius-inner);
1599
- background: color-mix(in srgb, var(--agentkit-danger) 6%, transparent);
1600
- font-size: 0.75rem;
1601
- }
1602
-
1603
- .agentkit-error span {
1604
- color: var(--agentkit-text-muted);
1605
- }
1606
-
1607
- .agentkit-error-actions {
1608
- display: flex;
1609
- justify-content: flex-start;
1610
- margin-block-start: 0.5rem;
1611
- }
1612
-
1613
- .agentkit-run-failure {
1614
- display: flex;
1615
- align-items: flex-start;
1616
- gap: 0.5rem;
1617
- margin-block: 0.375rem 1.25rem;
1618
- padding-block: 0.25rem;
1619
- color: var(--agentkit-danger);
1620
- font-size: 0.75rem;
1621
- line-height: 1.4;
1622
- }
1623
-
1624
- .agentkit-run-failure > .agentkit-icon {
1625
- margin-block-start: 0.0625rem;
1626
- }
1627
-
1628
- .agentkit-run-failure-copy {
1629
- display: flex;
1630
- min-inline-size: 0;
1631
- flex-wrap: wrap;
1632
- gap: 0.125rem 0.375rem;
1633
- }
1634
-
1635
- .agentkit-run-failure-copy strong {
1636
- color: var(--agentkit-danger);
1637
- font-weight: 600;
1638
- }
1639
-
1640
- .agentkit-run-failure-copy span {
1641
- color: var(--agentkit-text-muted);
1642
- }
1643
-
1644
- :where(.agentkit-chat) :where(button, a, input, summary):focus-visible {
1645
- outline: 2px solid var(--agentkit-focus);
1646
- outline-offset: 2px;
1647
- }
1648
-
1649
- .agentkit-chat-footer {
1650
- position: relative;
1651
- grid-column: 1;
1652
- grid-row: 3;
1653
- z-index: 3;
1654
- min-inline-size: 0;
1655
- padding: 0 1rem 1rem;
1656
- pointer-events: none;
1657
- }
1658
-
1659
- .agentkit-composer-stack {
1660
- inline-size: min(100%, 47rem);
1661
- min-inline-size: 0;
1662
- margin-inline: auto;
1663
- pointer-events: auto;
1664
- }
1665
-
1666
- .agentkit-composer-stack [data-agent-composer-slot="area"],
1667
- .agentkit-composer-stack [data-agent-composer-slot="workflow"],
1668
- .agentkit-composer-stack [data-agent-composer-slot="root"],
1669
- .agentkit-composer-stack [data-agent-composer-slot="toolbar"] {
1670
- min-inline-size: 0;
1671
- }
1672
-
1673
- .agentkit-composer {
1674
- border-radius: var(--agentkit-radius);
1675
- background: var(--agentkit-surface);
1676
- box-shadow: var(--agentkit-elevation);
1677
- }
1678
-
1679
- .agentkit-suggestions {
1680
- padding-block: 0.5rem 0;
1681
- }
1682
-
1683
- @keyframes agentkit-shimmer {
1684
- to {
1685
- background-position: -200% 0;
1686
- }
1687
- }
1688
-
1689
- @media (prefers-reduced-motion: reduce) {
1690
- .agentkit-activities[data-running="true"] .agentkit-activities-label,
1691
- .agentkit-activity-item[data-status="running"] .agentkit-activity-label,
1692
- .agentkit-agent[data-status="working"] .agentkit-agent-name,
1693
- .agentkit-reasoning[data-active="true"] .agentkit-reasoning-label {
1694
- animation: none;
1695
- }
1696
-
1697
- .agentkit-message-actions,
1698
- .agentkit-summary-chevron,
1699
- .agentkit-disclosure-icon,
1700
- .agentkit-reasoning-chevron,
1701
- .agentkit-composer-stack [data-agent-message-queue="true"] {
1702
- transition: none;
1703
- }
1704
- }
1705
-
1706
- @media (max-width: 40rem) {
1707
- .agentkit-transcript-content {
1708
- padding-inline: 0.75rem;
1709
- }
1710
-
1711
- .agentkit-chat-footer {
1712
- padding-inline: 0.75rem;
1713
- }
1714
-
1715
- .agentkit-composer-stack [data-agent-composer-slot="area"] {
1716
- padding-inline: 0;
1717
- }
1718
-
1719
- .agentkit-composer [data-agent-composer-slot="toolbar"] {
1720
- gap: 0.125rem;
1721
- padding-inline: 0.5rem;
1722
- }
1723
-
1724
- .agentkit-composer [data-agent-composer-slot="model-button"] {
1725
- max-inline-size: 7.5rem;
1726
- padding-inline: 0.375rem;
1727
- }
1728
-
1729
- .agentkit-composer [data-agent-composer-slot="mode-button"] {
1730
- padding-inline: 0.375rem;
1731
- }
1732
-
1733
- .agentkit-composer .agent-composer-model-effort {
1734
- display: none;
1735
- }
1736
-
1737
- .agentkit-message[data-role="user"] .agentkit-message-content {
1738
- max-inline-size: 94%;
1739
- }
1740
- }