@hef2024/llmasaservice-ui 0.24.2 → 0.24.4

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.
@@ -168,6 +168,7 @@
168
168
  .ai-chat-message--assistant {
169
169
  align-self: flex-start;
170
170
  max-width: 100%;
171
+ width: 100%;
171
172
  }
172
173
 
173
174
  .ai-chat-message--assistant .ai-chat-message__content {
@@ -177,6 +178,7 @@
177
178
  word-wrap: break-word;
178
179
  overflow-wrap: break-word;
179
180
  min-width: 0;
181
+ width: 100%;
180
182
  }
181
183
 
182
184
  /* Message Content Markdown Styles */
@@ -438,6 +440,12 @@
438
440
  color: var(--ai-chat-loading-dot);
439
441
  }
440
442
 
443
+ .ai-chat-loading--inline {
444
+ margin-top: 6px;
445
+ font-size: 11px;
446
+ opacity: 0.9;
447
+ }
448
+
441
449
  .ai-chat-loading__dots {
442
450
  display: flex;
443
451
  gap: 4px;
@@ -459,6 +467,155 @@
459
467
  animation-delay: -0.16s;
460
468
  }
461
469
 
470
+ .ai-chat-inline-tool-events {
471
+ margin: 4px 0;
472
+ display: flex;
473
+ flex-direction: column;
474
+ gap: 4px;
475
+ }
476
+
477
+ .ai-chat-inline-thinking-events {
478
+ margin: 8px 0;
479
+ }
480
+
481
+ .ai-chat-inline-tool-events--tail {
482
+ margin-top: 8px;
483
+ }
484
+
485
+ .ai-chat-tool-status-row {
486
+ --tool-row-accent: #3b82f6;
487
+ --tool-row-bg: #eff6ff;
488
+ --tool-row-text: #1d4ed8;
489
+ --tool-row-border: #93c5fd;
490
+ display: inline-flex;
491
+ align-items: center;
492
+ justify-content: flex-start;
493
+ align-self: flex-start;
494
+ gap: 6px;
495
+ max-width: 100%;
496
+ padding: 3px 8px;
497
+ border-radius: 999px;
498
+ border: none;
499
+ background: transparent;
500
+ box-shadow: none;
501
+ font-size: 11px;
502
+ line-height: 1.2;
503
+ color: var(--tool-row-text);
504
+ opacity: 0.86;
505
+ }
506
+
507
+ .dark-theme .ai-chat-tool-status-row {
508
+ opacity: 0.9;
509
+ }
510
+
511
+ .ai-chat-tool-status-row__main {
512
+ min-width: 0;
513
+ display: inline-flex;
514
+ align-items: center;
515
+ gap: 6px;
516
+ color: inherit;
517
+ }
518
+
519
+ .ai-chat-tool-status-row__label {
520
+ white-space: nowrap;
521
+ overflow: hidden;
522
+ text-overflow: ellipsis;
523
+ font-weight: 500;
524
+ }
525
+
526
+ .ai-chat-tool-status-row__call-id {
527
+ font-family: 'SF Mono', Monaco, Consolas, monospace;
528
+ font-size: 10px;
529
+ opacity: 0.75;
530
+ }
531
+
532
+ .ai-chat-tool-status-row__actions {
533
+ display: inline-flex;
534
+ gap: 4px;
535
+ flex-shrink: 0;
536
+ }
537
+
538
+ .ai-chat-tool-status-row__button {
539
+ height: 18px;
540
+ min-width: 0;
541
+ padding: 0 2px;
542
+ font-size: 10px;
543
+ font-weight: 500;
544
+ letter-spacing: 0.01em;
545
+ border-radius: 4px;
546
+ border: none;
547
+ background: transparent;
548
+ color: inherit;
549
+ box-shadow: none;
550
+ text-decoration: underline;
551
+ text-decoration-thickness: 1px;
552
+ text-underline-offset: 2px;
553
+ }
554
+
555
+ .ai-chat-tool-status-row__button:hover {
556
+ background: rgba(15, 23, 42, 0.08);
557
+ }
558
+
559
+ .dark-theme .ai-chat-tool-status-row__button {
560
+ background: transparent;
561
+ }
562
+
563
+ .dark-theme .ai-chat-tool-status-row__button:hover {
564
+ background: rgba(148, 163, 184, 0.16);
565
+ }
566
+
567
+ .ai-chat-tool-status-row--pending {
568
+ --tool-row-accent: #f59e0b;
569
+ --tool-row-bg: rgba(245, 158, 11, 0.08);
570
+ --tool-row-text: #92400e;
571
+ --tool-row-border: rgba(245, 158, 11, 0.3);
572
+ }
573
+
574
+ .dark-theme .ai-chat-tool-status-row--pending {
575
+ --tool-row-bg: rgba(120, 53, 15, 0.25);
576
+ --tool-row-text: #fcd34d;
577
+ --tool-row-border: rgba(245, 158, 11, 0.42);
578
+ }
579
+
580
+ .ai-chat-tool-status-row--running {
581
+ --tool-row-accent: #38bdf8;
582
+ --tool-row-bg: rgba(56, 189, 248, 0.08);
583
+ --tool-row-text: #0e7490;
584
+ --tool-row-border: rgba(56, 189, 248, 0.32);
585
+ }
586
+
587
+ .dark-theme .ai-chat-tool-status-row--running {
588
+ --tool-row-bg: rgba(8, 145, 178, 0.16);
589
+ --tool-row-text: #7dd3fc;
590
+ --tool-row-border: rgba(14, 165, 233, 0.42);
591
+ }
592
+
593
+ .ai-chat-tool-status-row--completed {
594
+ --tool-row-accent: #34d399;
595
+ --tool-row-bg: rgba(16, 185, 129, 0.1);
596
+ --tool-row-text: #047857;
597
+ --tool-row-border: rgba(16, 185, 129, 0.34);
598
+ }
599
+
600
+ .dark-theme .ai-chat-tool-status-row--completed {
601
+ --tool-row-bg: rgba(6, 95, 70, 0.22);
602
+ --tool-row-text: #86efac;
603
+ --tool-row-border: rgba(16, 185, 129, 0.42);
604
+ }
605
+
606
+ .ai-chat-tool-status-row--error {
607
+ --tool-row-accent: #f87171;
608
+ --tool-row-bg: rgba(248, 113, 113, 0.1);
609
+ --tool-row-text: #b91c1c;
610
+ --tool-row-border: rgba(248, 113, 113, 0.34);
611
+ }
612
+
613
+ .dark-theme .ai-chat-tool-status-row--error {
614
+ --tool-row-bg: rgba(127, 29, 29, 0.24);
615
+ --tool-row-text: #fda4af;
616
+ --tool-row-border: rgba(248, 113, 113, 0.4);
617
+ }
618
+
462
619
  @keyframes ai-chat-dot-bounce {
463
620
  0%, 80%, 100% {
464
621
  transform: scale(0.6);
@@ -2166,72 +2323,164 @@
2166
2323
  }
2167
2324
 
2168
2325
  /* ============================================================================
2169
- Tool Approval Panel
2326
+ Tool Tray
2170
2327
  ============================================================================ */
2171
2328
 
2172
- .ai-chat-approve-tools-panel {
2173
- padding: 16px;
2174
- border-top: 1px solid #e5e7eb;
2175
- border-bottom: 1px solid #e5e7eb;
2176
- background: #fef3c7;
2329
+ .ai-chat-tool-tray {
2330
+ display: flex;
2331
+ flex-direction: column;
2332
+ gap: 8px;
2333
+ padding: 0 12px 10px;
2177
2334
  }
2178
2335
 
2179
- .dark-theme .ai-chat-approve-tools-panel {
2180
- background: #78350f;
2181
- border-top-color: #92400e;
2182
- border-bottom-color: #92400e;
2336
+ .ai-chat-tool-tray-card {
2337
+ width: 100%;
2338
+ border-radius: 12px;
2339
+ border: 1px solid #dbeafe;
2340
+ background: #f8fbff;
2341
+ box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
2342
+ padding: 10px 12px;
2343
+ animation: ai-chat-tool-tray-pop 180ms ease-out;
2183
2344
  }
2184
2345
 
2185
- .ai-chat-approve-tools-header {
2186
- font-size: 14px;
2187
- font-weight: 600;
2188
- color: #92400e;
2189
- margin-bottom: 4px;
2346
+ .dark-theme .ai-chat-tool-tray-card {
2347
+ border-color: #1e3a8a;
2348
+ background: rgba(30, 58, 138, 0.2);
2349
+ box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
2190
2350
  }
2191
2351
 
2192
- .dark-theme .ai-chat-approve-tools-header {
2193
- color: #fef3c7;
2352
+ .ai-chat-tool-tray-card__header {
2353
+ display: flex;
2354
+ align-items: center;
2355
+ justify-content: space-between;
2356
+ gap: 8px;
2194
2357
  }
2195
2358
 
2196
- .ai-chat-approve-tools-description {
2359
+ .ai-chat-tool-tray-card__title {
2360
+ display: inline-flex;
2361
+ align-items: center;
2362
+ gap: 6px;
2363
+ min-width: 0;
2197
2364
  font-size: 13px;
2198
- color: #78350f;
2199
- margin-bottom: 12px;
2365
+ font-weight: 600;
2366
+ color: #0f172a;
2200
2367
  }
2201
2368
 
2202
- .dark-theme .ai-chat-approve-tools-description {
2203
- color: #fde68a;
2369
+ .dark-theme .ai-chat-tool-tray-card__title {
2370
+ color: #e2e8f0;
2204
2371
  }
2205
2372
 
2206
- .ai-chat-approve-tool-item {
2207
- margin-bottom: 12px;
2373
+ .ai-chat-tool-tray-card__badge {
2374
+ border-radius: 999px;
2375
+ padding: 2px 8px;
2376
+ font-size: 10px;
2377
+ font-weight: 700;
2378
+ text-transform: uppercase;
2379
+ letter-spacing: 0.04em;
2380
+ background: #dbeafe;
2381
+ color: #1e3a8a;
2208
2382
  }
2209
2383
 
2210
- .ai-chat-approve-tool-item:last-child {
2211
- margin-bottom: 0;
2384
+ .dark-theme .ai-chat-tool-tray-card__badge {
2385
+ background: rgba(59, 130, 246, 0.24);
2386
+ color: #bfdbfe;
2212
2387
  }
2213
2388
 
2214
- .ai-chat-approve-tool-name {
2215
- font-size: 13px;
2389
+ .ai-chat-tool-tray-card__message {
2390
+ margin-top: 6px;
2391
+ font-size: 12px;
2392
+ line-height: 1.45;
2393
+ color: #334155;
2394
+ word-break: break-word;
2395
+ }
2396
+
2397
+ .dark-theme .ai-chat-tool-tray-card__message {
2398
+ color: #cbd5e1;
2399
+ }
2400
+
2401
+ .ai-chat-tool-tray-card__tool-name {
2402
+ font-family: 'SF Mono', Monaco, Consolas, monospace;
2216
2403
  font-weight: 600;
2217
- color: #92400e;
2218
- margin-bottom: 6px;
2219
- font-family: 'Monaco', 'Courier New', monospace;
2404
+ color: #0f172a;
2220
2405
  }
2221
2406
 
2222
- .dark-theme .ai-chat-approve-tool-name {
2223
- color: #fef3c7;
2407
+ .dark-theme .ai-chat-tool-tray-card__tool-name {
2408
+ color: #e2e8f0;
2224
2409
  }
2225
2410
 
2226
- .ai-chat-approve-tools-buttons {
2411
+ .ai-chat-tool-tray-card__actions {
2412
+ margin-top: 8px;
2227
2413
  display: flex;
2228
2414
  gap: 6px;
2229
2415
  flex-wrap: wrap;
2230
2416
  }
2231
2417
 
2232
- .ai-chat-approve-tools-button {
2418
+ .ai-chat-tool-tray-card__button {
2233
2419
  flex: 1;
2234
- min-width: 80px;
2420
+ min-width: 84px;
2421
+ }
2422
+
2423
+ .ai-chat-tool-tray-card--approval {
2424
+ border-color: #fcd34d;
2425
+ background: #fffbeb;
2426
+ }
2427
+
2428
+ .dark-theme .ai-chat-tool-tray-card--approval {
2429
+ border-color: #f59e0b;
2430
+ background: rgba(120, 53, 15, 0.46);
2431
+ }
2432
+
2433
+ .ai-chat-tool-tray-card--running {
2434
+ border-color: #7dd3fc;
2435
+ background: #f0f9ff;
2436
+ }
2437
+
2438
+ .dark-theme .ai-chat-tool-tray-card--running {
2439
+ border-color: #0e7490;
2440
+ background: rgba(8, 145, 178, 0.22);
2441
+ }
2442
+
2443
+ .ai-chat-tool-tray-card--approved,
2444
+ .ai-chat-tool-tray-card--auto {
2445
+ border-color: #86efac;
2446
+ background: #f0fdf4;
2447
+ }
2448
+
2449
+ .dark-theme .ai-chat-tool-tray-card--approved,
2450
+ .dark-theme .ai-chat-tool-tray-card--auto {
2451
+ border-color: #22c55e;
2452
+ background: rgba(22, 101, 52, 0.3);
2453
+ }
2454
+
2455
+ .ai-chat-tool-tray-card--completed {
2456
+ border-color: #34d399;
2457
+ background: #ecfdf5;
2458
+ }
2459
+
2460
+ .dark-theme .ai-chat-tool-tray-card--completed {
2461
+ border-color: #10b981;
2462
+ background: rgba(6, 95, 70, 0.35);
2463
+ }
2464
+
2465
+ .ai-chat-tool-tray-card--error {
2466
+ border-color: #fca5a5;
2467
+ background: #fef2f2;
2468
+ }
2469
+
2470
+ .dark-theme .ai-chat-tool-tray-card--error {
2471
+ border-color: #ef4444;
2472
+ background: rgba(127, 29, 29, 0.4);
2473
+ }
2474
+
2475
+ @keyframes ai-chat-tool-tray-pop {
2476
+ from {
2477
+ opacity: 0;
2478
+ transform: translateY(16px);
2479
+ }
2480
+ to {
2481
+ opacity: 1;
2482
+ transform: translateY(0);
2483
+ }
2235
2484
  }
2236
2485
 
2237
2486
  /* ============================================================================
@@ -2895,4 +3144,4 @@
2895
3144
  opacity: 1;
2896
3145
  transform: translateY(0);
2897
3146
  }
2898
- }
3147
+ }