@m6d/cortex-web 0.1.0 → 0.3.0
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/index.d.ts +4 -0
- package/dist/index.js +763 -520
- package/dist/styles.css +389 -68
- package/package.json +2 -1
package/dist/styles.css
CHANGED
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
|
|
751
751
|
@media (pointer: coarse) {
|
|
752
752
|
:where(.cx-queued-tray__send-now, .cx-queued-tray__cancel, .cx-check-back__cancel, .cx-widget .leaflet-container .leaflet-control-zoom.leaflet-bar a, .cx-location-input__locate, .cx-location-input__skip,
|
|
753
|
-
.cx-location-input__send, .cx-approval-
|
|
753
|
+
.cx-location-input__send, .cx-approval-card__button, .cx-expandable__action, .cx-message-list__jump, .cx-widget__threads-search, .cx-widget__thread-delete, .cx-widget__delete-dialog-button, .cx-connect-card__button, .cx-call-stage__action, .cx-stop-btn,
|
|
754
754
|
.cx-widget__send-btn, .cx-widget__attach-btn, .cx-send-split__caret, .cx-subagent-menu__more, .cx-subagent-menu__item, .cx-send-menu__item, .cx-widget__landing-chip, .cx-widget__landing-recent-item, .cx-copy-btn__button, .cx-attachment-chip__remove, .cx-widget__header-btn) {
|
|
755
755
|
position: relative;
|
|
756
756
|
}
|
|
@@ -758,7 +758,7 @@
|
|
|
758
758
|
|
|
759
759
|
@media (pointer: coarse) {
|
|
760
760
|
.cx-queued-tray__send-now::before, .cx-queued-tray__cancel::before, .cx-check-back__cancel::before, .cx-widget .leaflet-container .leaflet-control-zoom.leaflet-bar a::before, .cx-location-input__locate::before, .cx-location-input__skip::before,
|
|
761
|
-
.cx-location-input__send::before, .cx-approval-
|
|
761
|
+
.cx-location-input__send::before, .cx-approval-card__button::before, .cx-expandable__action::before, .cx-message-list__jump::before, .cx-widget__threads-search::before, .cx-widget__thread-delete::before, .cx-widget__delete-dialog-button::before, .cx-connect-card__button::before, .cx-call-stage__action::before, .cx-stop-btn::before,
|
|
762
762
|
.cx-widget__send-btn::before, .cx-widget__attach-btn::before, .cx-send-split__caret::before, .cx-subagent-menu__more::before, .cx-subagent-menu__item::before, .cx-send-menu__item::before, .cx-widget__landing-chip::before, .cx-widget__landing-recent-item::before, .cx-copy-btn__button::before, .cx-attachment-chip__remove::before, .cx-widget__header-btn::before {
|
|
763
763
|
content: "";
|
|
764
764
|
position: absolute;
|
|
@@ -812,10 +812,24 @@
|
|
|
812
812
|
min-width: 0;
|
|
813
813
|
flex: 1;
|
|
814
814
|
}
|
|
815
|
+
.cx-widget__chat-title-wrap:has(> .cx-widget__chat-icon) {
|
|
816
|
+
display: flex;
|
|
817
|
+
align-items: center;
|
|
818
|
+
gap: 0.5rem;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.cx-widget__chat-icon {
|
|
822
|
+
flex-shrink: 0;
|
|
823
|
+
width: 1.5rem;
|
|
824
|
+
height: 1.5rem;
|
|
825
|
+
border-radius: 9999px;
|
|
826
|
+
object-fit: cover;
|
|
827
|
+
}
|
|
815
828
|
|
|
816
829
|
.cx-widget__chat-title {
|
|
817
830
|
width: fit-content;
|
|
818
831
|
max-width: 100%;
|
|
832
|
+
min-width: 0;
|
|
819
833
|
unicode-bidi: plaintext;
|
|
820
834
|
font-family: var(--cx-font-display, inherit);
|
|
821
835
|
font-size: var(--cx-font-size-header);
|
|
@@ -906,6 +920,14 @@
|
|
|
906
920
|
color: var(--cx-text-muted);
|
|
907
921
|
}
|
|
908
922
|
|
|
923
|
+
.cx-widget__landing-agent-icon {
|
|
924
|
+
width: 3.5rem;
|
|
925
|
+
height: 3.5rem;
|
|
926
|
+
border-radius: var(--cx-radius);
|
|
927
|
+
object-fit: cover;
|
|
928
|
+
margin-bottom: 0.75rem;
|
|
929
|
+
}
|
|
930
|
+
|
|
909
931
|
.cx-widget__landing-greeting {
|
|
910
932
|
font-family: var(--cx-font-display, inherit);
|
|
911
933
|
font-size: var(--cx-font-size-display);
|
|
@@ -990,12 +1012,12 @@
|
|
|
990
1012
|
}
|
|
991
1013
|
|
|
992
1014
|
.cx-queued-tray__send-now:enabled:hover, .cx-location-input__skip:enabled:hover,
|
|
993
|
-
.cx-location-input__send:enabled:hover, .cx-connect-card__button:enabled:hover, .cx-approval-card__button:enabled:hover, .cx-
|
|
1015
|
+
.cx-location-input__send:enabled:hover, .cx-widget__new-chat-btn:enabled:hover, .cx-connect-card__button:enabled:hover, .cx-approval-card__button:enabled:hover, .cx-call-stage__action:enabled:hover, .cx-stop-btn:enabled:hover,
|
|
994
1016
|
.cx-widget__send-btn--ready:enabled:hover {
|
|
995
1017
|
background-image: linear-gradient(color-mix(in oklab, currentColor 12%, transparent) 0 0);
|
|
996
1018
|
}
|
|
997
1019
|
.cx-queued-tray__send-now:enabled:active, .cx-location-input__skip:enabled:active,
|
|
998
|
-
.cx-location-input__send:enabled:active, .cx-connect-card__button:enabled:active, .cx-approval-card__button:enabled:active, .cx-
|
|
1020
|
+
.cx-location-input__send:enabled:active, .cx-widget__new-chat-btn:enabled:active, .cx-connect-card__button:enabled:active, .cx-approval-card__button:enabled:active, .cx-call-stage__action:enabled:active, .cx-stop-btn:enabled:active,
|
|
999
1021
|
.cx-widget__send-btn--ready:enabled:active {
|
|
1000
1022
|
transform: scale(0.97);
|
|
1001
1023
|
}
|
|
@@ -1158,7 +1180,8 @@ cortex-llm-usage-chips {
|
|
|
1158
1180
|
}
|
|
1159
1181
|
|
|
1160
1182
|
.cx-widget__attach-btn:disabled,
|
|
1161
|
-
.cx-widget__input-box--disabled .cx-widget__send-btn
|
|
1183
|
+
.cx-widget__input-box--disabled .cx-widget__send-btn--empty,
|
|
1184
|
+
.cx-widget__send-btn--connecting {
|
|
1162
1185
|
opacity: 0.45;
|
|
1163
1186
|
cursor: not-allowed;
|
|
1164
1187
|
}
|
|
@@ -1176,11 +1199,29 @@ cortex-llm-usage-chips {
|
|
|
1176
1199
|
background: var(--cx-send-empty, transparent);
|
|
1177
1200
|
color: var(--cx-send-empty-text, var(--cx-text-muted));
|
|
1178
1201
|
}
|
|
1202
|
+
.cx-widget__send-btn--talk, .cx-widget__send-btn--connecting {
|
|
1203
|
+
width: auto;
|
|
1204
|
+
gap: 0.375rem;
|
|
1205
|
+
padding-inline: 0.625rem 0.75rem;
|
|
1206
|
+
background: var(--cx-accent-surface);
|
|
1207
|
+
color: var(--cx-text-heading);
|
|
1208
|
+
font-size: var(--cx-font-size-message, var(--cx-font-size));
|
|
1209
|
+
white-space: nowrap;
|
|
1210
|
+
}
|
|
1211
|
+
.cx-widget__send-btn--talk svg, .cx-widget__send-btn--connecting svg {
|
|
1212
|
+
color: var(--cx-accent);
|
|
1213
|
+
}
|
|
1214
|
+
.cx-widget__send-btn--talk {
|
|
1215
|
+
cursor: pointer;
|
|
1216
|
+
}
|
|
1217
|
+
.cx-widget__send-btn--talk:hover {
|
|
1218
|
+
background: color-mix(in oklab, var(--cx-accent-surface) 82%, var(--cx-accent));
|
|
1219
|
+
}
|
|
1179
1220
|
|
|
1180
1221
|
.cx-stop-btn,
|
|
1181
1222
|
.cx-widget__send-btn--ready {
|
|
1182
|
-
background: var(--cx-
|
|
1183
|
-
color: var(--cx-
|
|
1223
|
+
background: var(--cx-accent-surface);
|
|
1224
|
+
color: var(--cx-accent);
|
|
1184
1225
|
cursor: pointer;
|
|
1185
1226
|
}
|
|
1186
1227
|
|
|
@@ -1216,9 +1257,9 @@ cortex-llm-usage-chips {
|
|
|
1216
1257
|
cursor: pointer;
|
|
1217
1258
|
}
|
|
1218
1259
|
.cx-widget__send-btn--ready + .cx-send-split__caret {
|
|
1219
|
-
border-inline-start-color: color-mix(in oklab, var(--cx-
|
|
1220
|
-
background: var(--cx-
|
|
1221
|
-
color: var(--cx-
|
|
1260
|
+
border-inline-start-color: color-mix(in oklab, var(--cx-accent) 30%, transparent);
|
|
1261
|
+
background: var(--cx-accent-surface);
|
|
1262
|
+
color: var(--cx-accent);
|
|
1222
1263
|
}
|
|
1223
1264
|
.cx-send-split__caret svg {
|
|
1224
1265
|
transform: rotate(180deg);
|
|
@@ -1292,6 +1333,318 @@ cortex-connection-failure {
|
|
|
1292
1333
|
color: var(--cx-text-secondary);
|
|
1293
1334
|
}
|
|
1294
1335
|
|
|
1336
|
+
.cx-call-ended {
|
|
1337
|
+
display: flex;
|
|
1338
|
+
align-items: center;
|
|
1339
|
+
gap: 0.5rem;
|
|
1340
|
+
margin-block: 0.25rem;
|
|
1341
|
+
font-size: var(--cx-font-size-meta);
|
|
1342
|
+
color: var(--cx-text-muted);
|
|
1343
|
+
}
|
|
1344
|
+
.cx-call-ended::before, .cx-call-ended::after {
|
|
1345
|
+
content: "";
|
|
1346
|
+
flex: 1;
|
|
1347
|
+
height: 1px;
|
|
1348
|
+
background: var(--cx-border);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.cx-shown-media {
|
|
1352
|
+
margin: 0;
|
|
1353
|
+
}
|
|
1354
|
+
.cx-shown-media figcaption {
|
|
1355
|
+
margin-block-start: 0.25rem;
|
|
1356
|
+
font-size: var(--cx-font-size-meta);
|
|
1357
|
+
color: var(--cx-text-muted);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
.cx-widget__composer-slot,
|
|
1361
|
+
cortex-call-view,
|
|
1362
|
+
cortex-call-clock {
|
|
1363
|
+
display: contents;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.cx-call-stage {
|
|
1367
|
+
--cx-call-stage-foot: env(safe-area-inset-bottom, 0px);
|
|
1368
|
+
flex-shrink: 0;
|
|
1369
|
+
display: flex;
|
|
1370
|
+
flex-direction: column;
|
|
1371
|
+
align-items: center;
|
|
1372
|
+
gap: 0.75rem;
|
|
1373
|
+
padding: 1.5rem 1rem calc(1rem + var(--cx-call-stage-foot));
|
|
1374
|
+
border-top: 1px solid var(--cx-border);
|
|
1375
|
+
background: var(--cx-surface-subtle);
|
|
1376
|
+
text-align: center;
|
|
1377
|
+
}
|
|
1378
|
+
.cx-widget__landing-composer .cx-call-stage {
|
|
1379
|
+
--cx-call-stage-foot: 0px;
|
|
1380
|
+
margin-block-start: 1rem;
|
|
1381
|
+
border-top: 0;
|
|
1382
|
+
background: transparent;
|
|
1383
|
+
}
|
|
1384
|
+
.cx-widget__composer-slot:has(.cx-widget__input-area) .cx-call-stage {
|
|
1385
|
+
--cx-call-stage-foot: 0px;
|
|
1386
|
+
}
|
|
1387
|
+
.cx-call-stage--mini {
|
|
1388
|
+
flex-direction: row;
|
|
1389
|
+
padding: 0.5rem 0.75rem calc(0.5rem + var(--cx-call-stage-foot));
|
|
1390
|
+
text-align: start;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.cx-call-stage__orb {
|
|
1394
|
+
flex-shrink: 0;
|
|
1395
|
+
display: grid;
|
|
1396
|
+
place-items: center;
|
|
1397
|
+
width: 4rem;
|
|
1398
|
+
height: 4rem;
|
|
1399
|
+
border-radius: 50%;
|
|
1400
|
+
transition: background-color var(--cx-duration-feedback), color var(--cx-duration-feedback);
|
|
1401
|
+
}
|
|
1402
|
+
.cx-call-stage--mini .cx-call-stage__orb {
|
|
1403
|
+
width: 2.25rem;
|
|
1404
|
+
height: 2.25rem;
|
|
1405
|
+
}
|
|
1406
|
+
.cx-call-stage--mini .cx-call-stage__orb .cx-icon {
|
|
1407
|
+
width: 1.125rem;
|
|
1408
|
+
height: 1.125rem;
|
|
1409
|
+
}
|
|
1410
|
+
.cx-call-stage__orb--accent {
|
|
1411
|
+
background: var(--cx-accent-surface);
|
|
1412
|
+
color: var(--cx-accent);
|
|
1413
|
+
}
|
|
1414
|
+
.cx-call-stage__orb--muted {
|
|
1415
|
+
background: var(--cx-surface-muted);
|
|
1416
|
+
color: var(--cx-text-muted);
|
|
1417
|
+
}
|
|
1418
|
+
.cx-call-stage__orb--secondary {
|
|
1419
|
+
background: var(--cx-surface-muted);
|
|
1420
|
+
color: var(--cx-text-secondary);
|
|
1421
|
+
}
|
|
1422
|
+
.cx-call-stage__orb--warning {
|
|
1423
|
+
background: var(--cx-warning-surface);
|
|
1424
|
+
color: var(--cx-warning);
|
|
1425
|
+
}
|
|
1426
|
+
.cx-call-stage__orb--danger {
|
|
1427
|
+
background: var(--cx-danger-surface);
|
|
1428
|
+
color: var(--cx-danger);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.cx-call-stage__orb[data-bars][data-bars=level] {
|
|
1432
|
+
--cx-call-level: var(--cx-mic-level, 0);
|
|
1433
|
+
}
|
|
1434
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1435
|
+
.cx-call-stage__orb[data-bars][data-bars=level] {
|
|
1436
|
+
--cx-call-level: 0.55;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
.cx-call-stage__orb[data-bars][data-bars=voice] {
|
|
1440
|
+
--cx-call-level: 0.55;
|
|
1441
|
+
background: var(--cx-primary);
|
|
1442
|
+
color: var(--cx-primary-foreground);
|
|
1443
|
+
}
|
|
1444
|
+
.cx-call-stage__orb[data-bars][data-bars=rest] {
|
|
1445
|
+
--cx-call-level: 0;
|
|
1446
|
+
}
|
|
1447
|
+
.cx-call-stage__orb[data-bars] > .cx-icon {
|
|
1448
|
+
width: 2.25rem;
|
|
1449
|
+
height: 2.25rem;
|
|
1450
|
+
stroke-width: 4px;
|
|
1451
|
+
}
|
|
1452
|
+
.cx-call-stage--mini .cx-call-stage__orb[data-bars] > .cx-icon {
|
|
1453
|
+
width: 1.125rem;
|
|
1454
|
+
height: 1.125rem;
|
|
1455
|
+
stroke-width: 2px;
|
|
1456
|
+
}
|
|
1457
|
+
.cx-call-stage__orb[data-bars] path {
|
|
1458
|
+
--cx-call-bar: 1;
|
|
1459
|
+
transform-box: view-box;
|
|
1460
|
+
transform-origin: center;
|
|
1461
|
+
transform: scaleY(max(0.01, var(--cx-call-level) * var(--cx-call-bar)));
|
|
1462
|
+
transition: transform var(--cx-duration-feedback) var(--cx-ease-linear);
|
|
1463
|
+
}
|
|
1464
|
+
.cx-call-stage__orb[data-bars] path:nth-child(1), .cx-call-stage__orb[data-bars] path:nth-child(5) {
|
|
1465
|
+
--cx-call-bar: 0.45;
|
|
1466
|
+
}
|
|
1467
|
+
.cx-call-stage__orb[data-bars] path:nth-child(2), .cx-call-stage__orb[data-bars] path:nth-child(4) {
|
|
1468
|
+
--cx-call-bar: 0.75;
|
|
1469
|
+
}
|
|
1470
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1471
|
+
.cx-call-stage__orb[data-bars] path {
|
|
1472
|
+
transition: none;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.cx-call-stage__meta {
|
|
1477
|
+
display: flex;
|
|
1478
|
+
align-items: baseline;
|
|
1479
|
+
gap: 0.75rem;
|
|
1480
|
+
font-weight: 500;
|
|
1481
|
+
}
|
|
1482
|
+
.cx-call-stage--mini .cx-call-stage__meta {
|
|
1483
|
+
flex-direction: column;
|
|
1484
|
+
gap: 0;
|
|
1485
|
+
min-width: 0;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
.cx-call-stage__status--accent {
|
|
1489
|
+
color: var(--cx-accent);
|
|
1490
|
+
}
|
|
1491
|
+
.cx-call-stage__status--muted {
|
|
1492
|
+
color: var(--cx-text-muted);
|
|
1493
|
+
}
|
|
1494
|
+
.cx-call-stage__status--secondary {
|
|
1495
|
+
color: var(--cx-text-secondary);
|
|
1496
|
+
}
|
|
1497
|
+
.cx-call-stage__status--warning {
|
|
1498
|
+
color: var(--cx-warning);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.cx-call-stage__time {
|
|
1502
|
+
display: inline-flex;
|
|
1503
|
+
align-items: center;
|
|
1504
|
+
gap: 0.25rem;
|
|
1505
|
+
font-size: var(--cx-font-size-meta);
|
|
1506
|
+
font-variant-numeric: tabular-nums;
|
|
1507
|
+
color: var(--cx-text-muted);
|
|
1508
|
+
white-space: nowrap;
|
|
1509
|
+
}
|
|
1510
|
+
.cx-call-stage__time--warning {
|
|
1511
|
+
color: var(--cx-warning);
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.cx-call-stage__caption {
|
|
1515
|
+
display: flex;
|
|
1516
|
+
flex-direction: column;
|
|
1517
|
+
align-items: center;
|
|
1518
|
+
max-width: 20rem;
|
|
1519
|
+
margin: 0.75rem 0 0;
|
|
1520
|
+
font-size: var(--cx-font-size-header);
|
|
1521
|
+
line-height: 1.6;
|
|
1522
|
+
color: var(--cx-text-heading);
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.cx-call-stage__who {
|
|
1526
|
+
font-size: var(--cx-font-size-meta);
|
|
1527
|
+
font-weight: 500;
|
|
1528
|
+
color: var(--cx-text-muted);
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
.cx-call-stage__said {
|
|
1532
|
+
display: flex;
|
|
1533
|
+
flex-direction: column;
|
|
1534
|
+
justify-content: flex-end;
|
|
1535
|
+
max-height: calc(3em * 1.6);
|
|
1536
|
+
overflow: hidden;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
.cx-call-stage__controls {
|
|
1540
|
+
display: flex;
|
|
1541
|
+
gap: 1rem;
|
|
1542
|
+
margin-block-start: 0.75rem;
|
|
1543
|
+
}
|
|
1544
|
+
.cx-call-stage--mini .cx-call-stage__controls {
|
|
1545
|
+
gap: 0.5rem;
|
|
1546
|
+
margin-block-start: 0;
|
|
1547
|
+
margin-inline-start: auto;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
.cx-call-stage__button {
|
|
1551
|
+
display: grid;
|
|
1552
|
+
justify-items: center;
|
|
1553
|
+
gap: 0.25rem;
|
|
1554
|
+
padding: 0;
|
|
1555
|
+
border: 0;
|
|
1556
|
+
border-radius: var(--cx-radius-control);
|
|
1557
|
+
background: none;
|
|
1558
|
+
font-size: var(--cx-font-size-meta);
|
|
1559
|
+
color: var(--cx-text-secondary);
|
|
1560
|
+
cursor: pointer;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
.cx-call-stage__knob {
|
|
1564
|
+
display: grid;
|
|
1565
|
+
place-items: center;
|
|
1566
|
+
width: 2.75rem;
|
|
1567
|
+
height: 2.75rem;
|
|
1568
|
+
border: 1px solid var(--cx-border);
|
|
1569
|
+
border-radius: 50%;
|
|
1570
|
+
background: var(--cx-surface);
|
|
1571
|
+
color: var(--cx-text);
|
|
1572
|
+
transition: background-color var(--cx-duration-feedback), border-color var(--cx-duration-feedback);
|
|
1573
|
+
}
|
|
1574
|
+
[aria-pressed=true] > .cx-call-stage__knob {
|
|
1575
|
+
border-color: var(--cx-accent-surface);
|
|
1576
|
+
background: var(--cx-accent-surface);
|
|
1577
|
+
color: var(--cx-accent);
|
|
1578
|
+
}
|
|
1579
|
+
.cx-call-stage__button--end > .cx-call-stage__knob {
|
|
1580
|
+
border-color: var(--cx-danger-border);
|
|
1581
|
+
background: var(--cx-danger-surface);
|
|
1582
|
+
color: var(--cx-danger);
|
|
1583
|
+
}
|
|
1584
|
+
@media (hover: hover) {
|
|
1585
|
+
.cx-call-stage__button:hover > .cx-call-stage__knob {
|
|
1586
|
+
border-color: var(--cx-border-strong);
|
|
1587
|
+
}
|
|
1588
|
+
.cx-call-stage__button--end:hover > .cx-call-stage__knob {
|
|
1589
|
+
border-color: var(--cx-danger);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
.cx-call-stage--mini .cx-call-stage__knob {
|
|
1593
|
+
width: 2.25rem;
|
|
1594
|
+
height: 2.25rem;
|
|
1595
|
+
}
|
|
1596
|
+
@media (pointer: coarse) {
|
|
1597
|
+
.cx-call-stage--mini .cx-call-stage__knob {
|
|
1598
|
+
width: 2.75rem;
|
|
1599
|
+
height: 2.75rem;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
.cx-call-stage__title {
|
|
1604
|
+
margin: 0;
|
|
1605
|
+
font-size: var(--cx-font-size-header);
|
|
1606
|
+
font-weight: 600;
|
|
1607
|
+
color: var(--cx-text-heading);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.cx-call-stage__body {
|
|
1611
|
+
max-width: 18.75rem;
|
|
1612
|
+
margin: 0;
|
|
1613
|
+
color: var(--cx-text-secondary);
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.cx-call-stage__actions {
|
|
1617
|
+
display: flex;
|
|
1618
|
+
flex-wrap: wrap;
|
|
1619
|
+
justify-content: center;
|
|
1620
|
+
gap: 0.5rem;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
.cx-call-stage__action {
|
|
1624
|
+
border: 1px solid var(--cx-border-strong);
|
|
1625
|
+
border-radius: var(--cx-radius-control);
|
|
1626
|
+
background: var(--cx-surface);
|
|
1627
|
+
padding: 0.375rem 1rem;
|
|
1628
|
+
font-size: var(--cx-font-size);
|
|
1629
|
+
font-weight: 500;
|
|
1630
|
+
color: var(--cx-text-strong);
|
|
1631
|
+
cursor: pointer;
|
|
1632
|
+
}
|
|
1633
|
+
.cx-call-stage__action--primary {
|
|
1634
|
+
border-color: var(--cx-accent);
|
|
1635
|
+
background: var(--cx-accent);
|
|
1636
|
+
color: var(--cx-primary-foreground);
|
|
1637
|
+
}
|
|
1638
|
+
.cx-call-stage__action:disabled {
|
|
1639
|
+
opacity: 0.6;
|
|
1640
|
+
cursor: wait;
|
|
1641
|
+
}
|
|
1642
|
+
.cx-call-stage__action {
|
|
1643
|
+
display: inline-flex;
|
|
1644
|
+
align-items: center;
|
|
1645
|
+
gap: 0.375rem;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1295
1648
|
.cx-widget__threads-header {
|
|
1296
1649
|
flex-shrink: 0;
|
|
1297
1650
|
padding: 1rem;
|
|
@@ -1696,7 +2049,8 @@ cortex-history-loading {
|
|
|
1696
2049
|
padding: 1rem;
|
|
1697
2050
|
}
|
|
1698
2051
|
|
|
1699
|
-
.cx-visually-hidden
|
|
2052
|
+
.cx-visually-hidden,
|
|
2053
|
+
cortex-call-announcer {
|
|
1700
2054
|
position: absolute;
|
|
1701
2055
|
width: 1px;
|
|
1702
2056
|
height: 1px;
|
|
@@ -1784,8 +2138,8 @@ cortex-history-loading {
|
|
|
1784
2138
|
align-items: center;
|
|
1785
2139
|
justify-content: center;
|
|
1786
2140
|
border-radius: 9999px;
|
|
1787
|
-
background: var(--cx-accent);
|
|
1788
|
-
color: var(--cx-
|
|
2141
|
+
background: var(--cx-accent-surface);
|
|
2142
|
+
color: var(--cx-accent);
|
|
1789
2143
|
translate: 0 var(--cx-avatar-y, 0);
|
|
1790
2144
|
visibility: hidden;
|
|
1791
2145
|
pointer-events: none;
|
|
@@ -1803,6 +2157,13 @@ cortex-history-loading {
|
|
|
1803
2157
|
animation: cx-avatar-out var(--cx-duration-avatar-out) var(--cx-ease-leave) var(--cx-duration-avatar-out-delay) both;
|
|
1804
2158
|
}
|
|
1805
2159
|
|
|
2160
|
+
.cx-working-avatar__icon {
|
|
2161
|
+
width: 100%;
|
|
2162
|
+
height: 100%;
|
|
2163
|
+
border-radius: 9999px;
|
|
2164
|
+
object-fit: cover;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
1806
2167
|
.cx-working-avatar__ring {
|
|
1807
2168
|
position: absolute;
|
|
1808
2169
|
inset: -0.25rem;
|
|
@@ -3161,68 +3522,21 @@ details[open] > summary .cx-debug-tool__chevron {
|
|
|
3161
3522
|
|
|
3162
3523
|
.cx-approval-card__sentence {
|
|
3163
3524
|
margin: 0;
|
|
3164
|
-
padding: 0.375rem 0.75rem 0.
|
|
3525
|
+
padding: 0.375rem 0.75rem 0.75rem;
|
|
3165
3526
|
font-weight: 600;
|
|
3166
3527
|
color: var(--cx-text-heading);
|
|
3167
3528
|
}
|
|
3168
3529
|
|
|
3169
|
-
.cx-approval-
|
|
3170
|
-
|
|
3171
|
-
align-items: center;
|
|
3172
|
-
gap: 0.375rem;
|
|
3173
|
-
width: fit-content;
|
|
3174
|
-
margin: 0;
|
|
3175
|
-
padding: 0 0.75rem 0.75rem;
|
|
3176
|
-
font-size: var(--cx-font-size-meta);
|
|
3177
|
-
color: var(--cx-text-secondary);
|
|
3178
|
-
}
|
|
3179
|
-
|
|
3180
|
-
.cx-approval-card__fields {
|
|
3181
|
-
display: grid;
|
|
3182
|
-
grid-template-columns: fit-content(33%) minmax(0, 1fr);
|
|
3183
|
-
gap: 0.25rem 0.75rem;
|
|
3530
|
+
.cx-approval-card__failed,
|
|
3531
|
+
.cx-approval-card__asked {
|
|
3184
3532
|
margin: 0;
|
|
3185
3533
|
padding: 0 0.75rem 0.5rem;
|
|
3186
3534
|
font-size: var(--cx-font-size-meta);
|
|
3187
|
-
|
|
3188
|
-
.cx-approval-card__fields dt {
|
|
3189
|
-
color: var(--cx-text-muted);
|
|
3190
|
-
overflow-wrap: anywhere;
|
|
3191
|
-
}
|
|
3192
|
-
.cx-approval-card__fields dd {
|
|
3193
|
-
margin: 0;
|
|
3194
|
-
color: var(--cx-text);
|
|
3195
|
-
white-space: pre-wrap;
|
|
3196
|
-
overflow-wrap: anywhere;
|
|
3197
|
-
}
|
|
3198
|
-
.cx-approval-card__fields:empty {
|
|
3199
|
-
display: none;
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
|
-
.cx-approval-card__more {
|
|
3203
|
-
border: 0;
|
|
3204
|
-
border-radius: calc(var(--cx-radius) * 0.5);
|
|
3205
|
-
background: none;
|
|
3206
|
-
padding: 0;
|
|
3207
|
-
margin-inline-start: 0.375rem;
|
|
3208
|
-
font-size: var(--cx-font-size-meta);
|
|
3209
|
-
color: var(--cx-accent);
|
|
3210
|
-
cursor: pointer;
|
|
3211
|
-
}
|
|
3212
|
-
.cx-approval-card__more:hover {
|
|
3213
|
-
text-decoration: underline;
|
|
3214
|
-
}
|
|
3215
|
-
|
|
3216
|
-
.cx-approval-card__all {
|
|
3217
|
-
display: block;
|
|
3218
|
-
margin: 0 0.75rem 0.5rem;
|
|
3535
|
+
color: var(--cx-danger);
|
|
3219
3536
|
}
|
|
3220
3537
|
|
|
3221
|
-
.cx-approval-
|
|
3222
|
-
|
|
3223
|
-
padding: 0 0.75rem 0.5rem;
|
|
3224
|
-
font-size: var(--cx-font-size-meta);
|
|
3225
|
-
color: var(--cx-danger);
|
|
3538
|
+
.cx-approval-card__asked {
|
|
3539
|
+
color: var(--cx-warning);
|
|
3226
3540
|
}
|
|
3227
3541
|
|
|
3228
3542
|
.cx-approval-card__foot {
|
|
@@ -3806,8 +4120,8 @@ cortex-folded-steps {
|
|
|
3806
4120
|
place-items: center;
|
|
3807
4121
|
flex-shrink: 0;
|
|
3808
4122
|
border-radius: 9999px;
|
|
3809
|
-
background: var(--cx-accent);
|
|
3810
|
-
color: var(--cx-
|
|
4123
|
+
background: var(--cx-accent-surface);
|
|
4124
|
+
color: var(--cx-accent);
|
|
3811
4125
|
font-size: var(--cx-font-size-meta);
|
|
3812
4126
|
font-weight: 600;
|
|
3813
4127
|
line-height: 1;
|
|
@@ -3836,6 +4150,13 @@ cortex-folded-steps {
|
|
|
3836
4150
|
color: var(--cx-text-muted);
|
|
3837
4151
|
}
|
|
3838
4152
|
|
|
4153
|
+
.cx-subagent-avatar__icon {
|
|
4154
|
+
width: 100%;
|
|
4155
|
+
height: 100%;
|
|
4156
|
+
border-radius: 9999px;
|
|
4157
|
+
object-fit: cover;
|
|
4158
|
+
}
|
|
4159
|
+
|
|
3839
4160
|
.cx-subagent-card {
|
|
3840
4161
|
position: relative;
|
|
3841
4162
|
display: grid;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m6d/cortex-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Framework-free web chat widget for Cortex agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@cortex/client": "workspace:*",
|
|
39
39
|
"@cortex/contracts": "workspace:*",
|
|
40
|
+
"@m6d/release": "workspace:*",
|
|
40
41
|
"@m6d/tsconfig": "workspace:*",
|
|
41
42
|
"@tanstack/ai": "~1.0.1",
|
|
42
43
|
"@tanstack/ai-client": "~1.0.1",
|