@webless/agent 0.6.4 → 0.6.6

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/dist/embed.css CHANGED
@@ -362,51 +362,55 @@ html.webless-agent-page-shift {
362
362
  content: "!";
363
363
  }
364
364
  .agent-activity-bubble__details {
365
- overflow: hidden;
366
- border: 1px solid var(--as-border);
367
- border-radius: var(--as-radius-md);
368
- background: var(--as-surface);
365
+ border: 0;
366
+ background: transparent;
369
367
  }
370
368
  .agent-activity-bubble__summary {
371
369
  appearance: none;
372
370
  display: flex;
373
- width: 100%;
374
- min-height: 38px;
371
+ width: fit-content;
372
+ min-height: 32px;
375
373
  align-items: center;
376
- justify-content: space-between;
377
- gap: 10px;
378
- margin: 0;
379
- padding: 7px 12px;
374
+ gap: 8px;
375
+ margin: 0 0 0 -6px;
376
+ padding: 4px 6px;
380
377
  border: 0;
378
+ border-radius: 8px;
381
379
  background: transparent;
382
- color: var(--as-text);
380
+ color: var(--as-text-muted);
383
381
  cursor: pointer;
384
382
  font-family: inherit;
385
- font-size: 12.5px;
383
+ font-size: 12px;
384
+ font-weight: 650;
386
385
  text-align: left;
387
386
  }
388
- .agent-activity-bubble__summary-title {
389
- font-weight: 700;
390
- }
391
- .agent-activity-bubble__summary-toggle {
392
- flex: 0 0 auto;
393
- color: var(--as-text-muted);
394
- font-size: 12px;
395
- font-weight: 600;
387
+ .agent-activity-bubble__summary::before {
388
+ width: 6px;
389
+ height: 6px;
390
+ flex: 0 0 6px;
391
+ border-right: 1.5px solid currentColor;
392
+ border-bottom: 1.5px solid currentColor;
393
+ color: var(--as-text-subtle);
394
+ content: "";
395
+ transform: rotate(45deg) translate(-1px, -1px);
396
+ transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
396
397
  }
397
- .agent-activity-bubble__summary:hover .agent-activity-bubble__summary-toggle {
398
- color: var(--as-brand);
398
+ .agent-activity-bubble__summary:hover {
399
+ background: var(--as-surface-muted);
400
+ color: var(--as-text);
399
401
  }
400
402
  .agent-activity-bubble__summary:focus-visible {
401
403
  outline: 2px solid var(--as-brand);
402
- outline-offset: -2px;
404
+ outline-offset: 2px;
405
+ }
406
+ .agent-activity-bubble__summary[aria-expanded=true]::before {
407
+ transform: rotate(225deg) translate(-1px, -1px);
403
408
  }
404
409
  .agent-activity-bubble__steps {
405
410
  display: grid;
406
411
  gap: 0;
407
412
  margin: 0;
408
- padding: 6px 12px 12px;
409
- border-top: 1px solid var(--as-border);
413
+ padding: 4px 0 2px 18px;
410
414
  list-style: none;
411
415
  }
412
416
  .agent-activity-bubble__step {
@@ -423,7 +427,7 @@ html.webless-agent-page-shift {
423
427
  top: 29px;
424
428
  bottom: -9px;
425
429
  left: 8px;
426
- width: 2px;
430
+ width: 1px;
427
431
  background: color-mix(in srgb, var(--as-text) 10%, transparent);
428
432
  content: "";
429
433
  }
@@ -533,6 +537,9 @@ html.webless-agent-page-shift {
533
537
  .agent-activity-bubble__step[data-state=active] .agent-activity-bubble__step-icon {
534
538
  animation: none;
535
539
  }
540
+ .agent-activity-bubble__summary::before {
541
+ transition: none;
542
+ }
536
543
  }
537
544
 
538
545
  /* src/react/components/Composer/Composer.css */
@@ -1169,11 +1176,11 @@ html.webless-agent-page-shift {
1169
1176
  }
1170
1177
  .message-bubble--agent .message-bubble__text {
1171
1178
  min-width: 0;
1172
- width: 100%;
1173
- padding: 12px 14px;
1174
- border: 1px solid var(--as-border);
1175
- border-radius: var(--as-radius-lg);
1176
- background: var(--as-surface);
1179
+ width: auto;
1180
+ padding: 0;
1181
+ border: 0;
1182
+ border-radius: 0;
1183
+ background: transparent;
1177
1184
  color: var(--as-text);
1178
1185
  }
1179
1186
  .message-bubble__sources {
@@ -1326,6 +1333,198 @@ html.webless-agent-page-shift {
1326
1333
  }
1327
1334
  }
1328
1335
 
1336
+ /* src/react/components/ToolInputCard/ToolInputCard.css */
1337
+ .tool-input-card {
1338
+ box-sizing: border-box;
1339
+ display: grid;
1340
+ gap: 12px;
1341
+ width: min(100%, 360px);
1342
+ padding: 16px;
1343
+ border: 1px solid var(--as-border);
1344
+ border-radius: var(--as-radius-md);
1345
+ background: var(--as-surface);
1346
+ color: var(--as-text);
1347
+ box-shadow: 0 8px 24px color-mix(in srgb, var(--as-text) 5%, transparent);
1348
+ }
1349
+ .tool-input-card__heading {
1350
+ display: grid;
1351
+ gap: 4px;
1352
+ }
1353
+ .tool-input-card__heading strong {
1354
+ font-family: var(--as-font-display);
1355
+ font-size: 1rem;
1356
+ font-weight: 700;
1357
+ line-height: 1.35;
1358
+ }
1359
+ .tool-input-card__heading p {
1360
+ max-width: 42ch;
1361
+ margin: 0;
1362
+ color: var(--as-text-muted);
1363
+ font-size: 0.875rem;
1364
+ line-height: 1.45;
1365
+ }
1366
+ .tool-input-card form,
1367
+ .tool-input-card__fields,
1368
+ .tool-input-card__field {
1369
+ display: grid;
1370
+ }
1371
+ .tool-input-card form {
1372
+ gap: 16px;
1373
+ }
1374
+ .tool-input-card__fields {
1375
+ gap: 12px;
1376
+ }
1377
+ .tool-input-card__field {
1378
+ gap: 6px;
1379
+ }
1380
+ .tool-input-card__field > label,
1381
+ .tool-input-card__field > [id$=-label] {
1382
+ font-size: 0.8125rem;
1383
+ font-weight: 700;
1384
+ line-height: 1.35;
1385
+ }
1386
+ .tool-input-card__description {
1387
+ color: var(--as-text-muted);
1388
+ font-size: 0.75rem;
1389
+ line-height: 1.4;
1390
+ }
1391
+ .tool-input-card input:not([type=checkbox]):not([type=radio]),
1392
+ .tool-input-card select,
1393
+ .tool-input-card textarea {
1394
+ box-sizing: border-box;
1395
+ width: 100%;
1396
+ min-width: 0;
1397
+ min-height: 44px;
1398
+ padding: 10px 12px;
1399
+ border: 1px solid var(--as-control-border);
1400
+ border-radius: 10px;
1401
+ background: var(--as-surface);
1402
+ color: var(--as-text);
1403
+ font: inherit;
1404
+ font-size: 1rem;
1405
+ line-height: 1.4;
1406
+ }
1407
+ .tool-input-card textarea {
1408
+ resize: vertical;
1409
+ }
1410
+ .tool-input-card input::placeholder,
1411
+ .tool-input-card textarea::placeholder {
1412
+ color: var(--as-text-subtle);
1413
+ }
1414
+ .tool-input-card__choices {
1415
+ display: grid;
1416
+ gap: 4px;
1417
+ }
1418
+ .tool-input-card__choice,
1419
+ .tool-input-card__check {
1420
+ display: flex;
1421
+ min-height: 44px;
1422
+ align-items: center;
1423
+ gap: 10px;
1424
+ padding: 8px 10px;
1425
+ border: 1px solid var(--as-control-border);
1426
+ border-radius: 10px;
1427
+ background: var(--as-surface);
1428
+ cursor: pointer;
1429
+ font-size: 0.875rem;
1430
+ line-height: 1.35;
1431
+ }
1432
+ .tool-input-card__choice:has(input:checked),
1433
+ .tool-input-card__check:has(input:checked) {
1434
+ border-color: color-mix(in srgb, var(--as-brand) 54%, var(--as-border));
1435
+ background: color-mix(in srgb, var(--as-brand-soft) 48%, var(--as-surface));
1436
+ }
1437
+ .tool-input-card__choice input,
1438
+ .tool-input-card__check input {
1439
+ width: 18px;
1440
+ height: 18px;
1441
+ margin: 0;
1442
+ flex: 0 0 auto;
1443
+ accent-color: var(--as-brand);
1444
+ }
1445
+ .tool-input-card__check > span {
1446
+ display: grid;
1447
+ gap: 2px;
1448
+ }
1449
+ .tool-input-card__check strong {
1450
+ font-size: 0.875rem;
1451
+ }
1452
+ .tool-input-card__check span span {
1453
+ color: var(--as-text-muted);
1454
+ font-size: 0.75rem;
1455
+ }
1456
+ .tool-input-card__range {
1457
+ display: grid;
1458
+ grid-template-columns: minmax(0, 1fr) auto;
1459
+ align-items: center;
1460
+ gap: 12px;
1461
+ }
1462
+ .tool-input-card__range output {
1463
+ min-width: 3ch;
1464
+ color: var(--as-text-muted);
1465
+ font-variant-numeric: tabular-nums;
1466
+ text-align: right;
1467
+ }
1468
+ .tool-input-card__error {
1469
+ color: var(--as-danger);
1470
+ font-size: 0.75rem;
1471
+ line-height: 1.4;
1472
+ }
1473
+ .tool-input-card__actions {
1474
+ display: flex;
1475
+ justify-content: flex-end;
1476
+ gap: 8px;
1477
+ }
1478
+ .tool-input-card__actions button {
1479
+ min-height: 44px;
1480
+ padding: 10px 16px;
1481
+ border: 1px solid var(--as-brand);
1482
+ border-radius: 10px;
1483
+ background: var(--as-brand);
1484
+ color: var(--as-on-brand);
1485
+ cursor: pointer;
1486
+ font: inherit;
1487
+ font-size: 0.875rem;
1488
+ font-weight: 700;
1489
+ }
1490
+ .tool-input-card__actions .tool-input-card__secondary {
1491
+ border-color: var(--as-control-border);
1492
+ background: var(--as-surface);
1493
+ color: var(--as-text);
1494
+ }
1495
+ .tool-input-card :is(input, select, textarea, button):focus-visible {
1496
+ outline: 2px solid var(--as-brand);
1497
+ outline-offset: 2px;
1498
+ }
1499
+ .tool-input-card :is(input, select, textarea, button):disabled {
1500
+ cursor: default;
1501
+ opacity: 0.55;
1502
+ }
1503
+ .tool-input-card--submitted {
1504
+ grid-template-columns: auto minmax(0, 1fr);
1505
+ align-items: center;
1506
+ gap: 8px;
1507
+ padding-block: 12px;
1508
+ color: var(--as-success);
1509
+ box-shadow: none;
1510
+ }
1511
+ .tool-input-card--submitted strong {
1512
+ color: var(--as-text);
1513
+ font-size: 0.875rem;
1514
+ }
1515
+ @media (max-width: 520px), (pointer: coarse) {
1516
+ .tool-input-card {
1517
+ width: 100%;
1518
+ }
1519
+ .tool-input-card__actions {
1520
+ display: grid;
1521
+ justify-content: stretch;
1522
+ }
1523
+ .tool-input-card__actions button {
1524
+ width: 100%;
1525
+ }
1526
+ }
1527
+
1329
1528
  /* src/react/components/HumanInputCard/HumanInputCard.css */
1330
1529
  .human-input-card {
1331
1530
  display: grid;