@m6d/cortex-react 0.16.0 → 0.18.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/README.md +1 -1
- package/dist/index.js +15 -12
- package/dist/styles.css +586 -2
- package/package.json +5 -5
package/dist/styles.css
CHANGED
|
@@ -308,6 +308,19 @@
|
|
|
308
308
|
transform: translateX(-100%);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
.cortex-widget__screen--covered > :not(.cortex-widget__screen) {
|
|
312
|
+
visibility: hidden;
|
|
313
|
+
transition: visibility 0s 0.3s;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.cortex-widget__screen:has(> .cortex-widget__screen) {
|
|
317
|
+
overflow: hidden;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.cortex-widget__container--switching > .cortex-widget__screen {
|
|
321
|
+
transition: none !important;
|
|
322
|
+
}
|
|
323
|
+
|
|
311
324
|
@keyframes cortex-skeleton-shimmer {
|
|
312
325
|
0% {
|
|
313
326
|
background-position: -200% 0;
|
|
@@ -688,6 +701,7 @@
|
|
|
688
701
|
}
|
|
689
702
|
|
|
690
703
|
cortex-chat-composer,
|
|
704
|
+
cortex-send-menu,
|
|
691
705
|
cortex-message-tool-call-outcome,
|
|
692
706
|
cortex-llm-usage-chips {
|
|
693
707
|
display: contents;
|
|
@@ -872,6 +886,91 @@ cortex-llm-usage-chips {
|
|
|
872
886
|
transform: rotate(180deg);
|
|
873
887
|
}
|
|
874
888
|
|
|
889
|
+
.cortex-send-split {
|
|
890
|
+
position: relative;
|
|
891
|
+
display: flex;
|
|
892
|
+
}
|
|
893
|
+
.cortex-send-split .cortex-widget__send-btn:has(+ .cortex-send-split__caret) {
|
|
894
|
+
border-start-end-radius: 0;
|
|
895
|
+
border-end-end-radius: 0;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.cortex-send-split__caret {
|
|
899
|
+
flex-shrink: 0;
|
|
900
|
+
width: 1.125rem;
|
|
901
|
+
height: 2rem;
|
|
902
|
+
display: flex;
|
|
903
|
+
align-items: center;
|
|
904
|
+
justify-content: center;
|
|
905
|
+
border: 0;
|
|
906
|
+
border-inline-start: 1px solid var(--cortex-color-border);
|
|
907
|
+
border-start-end-radius: var(--cortex-radius);
|
|
908
|
+
border-end-end-radius: var(--cortex-radius);
|
|
909
|
+
background: var(--cortex-color-send-empty, transparent);
|
|
910
|
+
color: var(--cortex-color-send-empty-text, var(--cortex-color-text-muted));
|
|
911
|
+
cursor: pointer;
|
|
912
|
+
}
|
|
913
|
+
.cortex-widget__send-btn--ready + .cortex-send-split__caret {
|
|
914
|
+
border-inline-start-color: color-mix(in oklab, var(--cortex-color-primary-foreground) 30%, transparent);
|
|
915
|
+
background: var(--cortex-color-primary);
|
|
916
|
+
color: var(--cortex-color-primary-foreground);
|
|
917
|
+
}
|
|
918
|
+
.cortex-send-split__caret svg {
|
|
919
|
+
transform: rotate(180deg);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.cortex-send-menu {
|
|
923
|
+
position: absolute;
|
|
924
|
+
inset-inline-end: 0;
|
|
925
|
+
bottom: calc(100% + 0.5rem);
|
|
926
|
+
z-index: 10;
|
|
927
|
+
width: 13rem;
|
|
928
|
+
padding: 0.25rem;
|
|
929
|
+
border: 1px solid var(--cortex-color-border);
|
|
930
|
+
border-radius: var(--cortex-radius);
|
|
931
|
+
background: var(--cortex-color-surface);
|
|
932
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
|
|
933
|
+
}
|
|
934
|
+
.cortex-send-menu__item {
|
|
935
|
+
display: flex;
|
|
936
|
+
gap: 0.5rem;
|
|
937
|
+
align-items: flex-start;
|
|
938
|
+
width: 100%;
|
|
939
|
+
padding: 0.4375rem 0.5rem;
|
|
940
|
+
border: 0;
|
|
941
|
+
border-radius: calc(var(--cortex-radius) * 0.75);
|
|
942
|
+
background: transparent;
|
|
943
|
+
text-align: start;
|
|
944
|
+
cursor: pointer;
|
|
945
|
+
}
|
|
946
|
+
.cortex-send-menu__item:hover, .cortex-send-menu__item[aria-checked=true] {
|
|
947
|
+
background: var(--cortex-color-hover);
|
|
948
|
+
}
|
|
949
|
+
.cortex-send-menu__check {
|
|
950
|
+
flex-shrink: 0;
|
|
951
|
+
width: 0.875rem;
|
|
952
|
+
height: 0.875rem;
|
|
953
|
+
margin-top: 0.125rem;
|
|
954
|
+
color: var(--cortex-color-accent);
|
|
955
|
+
}
|
|
956
|
+
.cortex-send-menu__label {
|
|
957
|
+
display: block;
|
|
958
|
+
color: var(--cortex-color-text-heading);
|
|
959
|
+
font-weight: 500;
|
|
960
|
+
font-size: 0.8125rem;
|
|
961
|
+
}
|
|
962
|
+
.cortex-send-menu__default {
|
|
963
|
+
margin-inline-start: 0.25rem;
|
|
964
|
+
color: var(--cortex-color-text-muted);
|
|
965
|
+
font-weight: 400;
|
|
966
|
+
font-size: 0.75rem;
|
|
967
|
+
}
|
|
968
|
+
.cortex-send-menu__hint {
|
|
969
|
+
display: block;
|
|
970
|
+
color: var(--cortex-color-text-secondary);
|
|
971
|
+
font-size: 0.75rem;
|
|
972
|
+
}
|
|
973
|
+
|
|
875
974
|
.cortex-widget__threads-header {
|
|
876
975
|
flex-shrink: 0;
|
|
877
976
|
padding: 1.25rem 1.25rem 1rem;
|
|
@@ -2100,7 +2199,7 @@ details[open] > summary > .cortex-reasoning-details__chevron {
|
|
|
2100
2199
|
}
|
|
2101
2200
|
|
|
2102
2201
|
/*
|
|
2103
|
-
* A
|
|
2202
|
+
* A trigger's fire in the transcript. By default a small chip in the assistant column
|
|
2104
2203
|
* with the trigger's name and when it fired; in debug mode a full-width dashed
|
|
2105
2204
|
* block that also shows the raw payload.
|
|
2106
2205
|
*/
|
|
@@ -2190,6 +2289,48 @@ details[open] > summary > .cortex-reasoning-details__chevron {
|
|
|
2190
2289
|
margin-inline-start: 0.5rem;
|
|
2191
2290
|
}
|
|
2192
2291
|
|
|
2292
|
+
.cortex-event-quote {
|
|
2293
|
+
display: flex;
|
|
2294
|
+
align-items: center;
|
|
2295
|
+
gap: 0.5rem;
|
|
2296
|
+
max-width: min(100%, 28rem);
|
|
2297
|
+
padding: 0.375rem 0.625rem;
|
|
2298
|
+
border-inline-start: 2px solid var(--cortex-color-accent);
|
|
2299
|
+
border-start-end-radius: calc(var(--cortex-radius) * 0.6);
|
|
2300
|
+
border-end-end-radius: calc(var(--cortex-radius) * 0.6);
|
|
2301
|
+
background: var(--cortex-color-surface-subtle);
|
|
2302
|
+
font-size: 0.75rem;
|
|
2303
|
+
color: var(--cortex-color-text-secondary);
|
|
2304
|
+
}
|
|
2305
|
+
.cortex-event-quote > svg {
|
|
2306
|
+
width: 0.75rem;
|
|
2307
|
+
height: 0.75rem;
|
|
2308
|
+
flex-shrink: 0;
|
|
2309
|
+
color: var(--cortex-color-accent);
|
|
2310
|
+
}
|
|
2311
|
+
.cortex-event-quote b {
|
|
2312
|
+
display: inline-block;
|
|
2313
|
+
max-width: 16rem;
|
|
2314
|
+
overflow: hidden;
|
|
2315
|
+
vertical-align: bottom;
|
|
2316
|
+
white-space: nowrap;
|
|
2317
|
+
text-overflow: ellipsis;
|
|
2318
|
+
font-weight: 600;
|
|
2319
|
+
color: var(--cortex-color-text-strong);
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
.cortex-event-quote--note {
|
|
2323
|
+
align-items: flex-start;
|
|
2324
|
+
}
|
|
2325
|
+
.cortex-event-quote--note > svg {
|
|
2326
|
+
margin-block-start: 0.125rem;
|
|
2327
|
+
}
|
|
2328
|
+
.cortex-event-quote--note b {
|
|
2329
|
+
display: inline;
|
|
2330
|
+
max-width: none;
|
|
2331
|
+
white-space: normal;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2193
2334
|
.cortex-message-attachments {
|
|
2194
2335
|
display: flex;
|
|
2195
2336
|
flex-wrap: wrap;
|
|
@@ -2549,6 +2690,7 @@ details[open] > summary .cortex-debug-tool__chevron {
|
|
|
2549
2690
|
}
|
|
2550
2691
|
|
|
2551
2692
|
.cortex-tool-pill__title {
|
|
2693
|
+
min-width: 0;
|
|
2552
2694
|
font-size: 0.75rem;
|
|
2553
2695
|
color: var(--cortex-color-text-muted);
|
|
2554
2696
|
white-space: nowrap;
|
|
@@ -2622,11 +2764,15 @@ details[open] > summary .cortex-debug-tool__chevron {
|
|
|
2622
2764
|
color: var(--cortex-color-text-strong);
|
|
2623
2765
|
cursor: pointer;
|
|
2624
2766
|
}
|
|
2625
|
-
.cortex-approval-card__button--
|
|
2767
|
+
.cortex-approval-card__button--primary {
|
|
2626
2768
|
border-color: var(--cortex-color-accent);
|
|
2627
2769
|
background: var(--cortex-color-accent);
|
|
2628
2770
|
color: var(--cortex-color-primary-foreground);
|
|
2629
2771
|
}
|
|
2772
|
+
.cortex-approval-card__button:disabled {
|
|
2773
|
+
opacity: 0.45;
|
|
2774
|
+
cursor: default;
|
|
2775
|
+
}
|
|
2630
2776
|
|
|
2631
2777
|
.cortex-approval-card__line {
|
|
2632
2778
|
display: flex;
|
|
@@ -2911,6 +3057,65 @@ details[open] > summary .cortex-debug-tool__chevron {
|
|
|
2911
3057
|
color: var(--cortex-color-success);
|
|
2912
3058
|
}
|
|
2913
3059
|
|
|
3060
|
+
.cortex-connect-card {
|
|
3061
|
+
display: flex;
|
|
3062
|
+
flex-direction: column;
|
|
3063
|
+
gap: 0.125rem;
|
|
3064
|
+
max-width: min(100%, 28rem);
|
|
3065
|
+
margin: 0.25rem 0;
|
|
3066
|
+
padding: 0.625rem 0.75rem;
|
|
3067
|
+
border: 1px solid var(--cortex-color-border);
|
|
3068
|
+
border-radius: var(--cortex-radius);
|
|
3069
|
+
background: var(--cortex-color-surface);
|
|
3070
|
+
font-size: 0.8125rem;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
.cortex-connect-card__server {
|
|
3074
|
+
font-size: 0.75rem;
|
|
3075
|
+
color: var(--cortex-color-text-muted);
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.cortex-connect-card__title {
|
|
3079
|
+
margin: 0;
|
|
3080
|
+
font-weight: 600;
|
|
3081
|
+
color: var(--cortex-color-text-heading);
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
.cortex-connect-card__text {
|
|
3085
|
+
margin: 0;
|
|
3086
|
+
color: var(--cortex-color-text-secondary);
|
|
3087
|
+
}
|
|
3088
|
+
.cortex-connect-card__text--failed {
|
|
3089
|
+
color: var(--cortex-color-danger);
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
.cortex-connect-card__actions {
|
|
3093
|
+
display: flex;
|
|
3094
|
+
gap: 0.5rem;
|
|
3095
|
+
margin-block-start: 0.5rem;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
.cortex-connect-card__button {
|
|
3099
|
+
border: 1px solid var(--cortex-color-border-strong);
|
|
3100
|
+
border-radius: calc(var(--cortex-radius) * 0.75);
|
|
3101
|
+
background: var(--cortex-color-surface);
|
|
3102
|
+
padding: 0.375rem 0.875rem;
|
|
3103
|
+
font: inherit;
|
|
3104
|
+
font-size: 0.8125rem;
|
|
3105
|
+
font-weight: 500;
|
|
3106
|
+
color: var(--cortex-color-text-strong);
|
|
3107
|
+
cursor: pointer;
|
|
3108
|
+
}
|
|
3109
|
+
.cortex-connect-card__button--primary {
|
|
3110
|
+
border-color: var(--cortex-color-accent);
|
|
3111
|
+
background: var(--cortex-color-accent);
|
|
3112
|
+
color: var(--cortex-color-primary-foreground);
|
|
3113
|
+
}
|
|
3114
|
+
.cortex-connect-card__button:disabled {
|
|
3115
|
+
opacity: 0.45;
|
|
3116
|
+
cursor: default;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
2914
3119
|
.cortex-reasoning-animated {
|
|
2915
3120
|
display: block;
|
|
2916
3121
|
}
|
|
@@ -2986,6 +3191,330 @@ details[open] > summary .cortex-debug-tool__chevron {
|
|
|
2986
3191
|
transition: none;
|
|
2987
3192
|
}
|
|
2988
3193
|
|
|
3194
|
+
.cortex-subagent-avatar {
|
|
3195
|
+
position: relative;
|
|
3196
|
+
width: 1.375rem;
|
|
3197
|
+
height: 1.375rem;
|
|
3198
|
+
display: flex;
|
|
3199
|
+
align-items: center;
|
|
3200
|
+
justify-content: center;
|
|
3201
|
+
flex-shrink: 0;
|
|
3202
|
+
border-radius: 9999px;
|
|
3203
|
+
background: var(--cortex-color-accent);
|
|
3204
|
+
color: var(--cortex-color-primary-foreground);
|
|
3205
|
+
}
|
|
3206
|
+
.cortex-subagent-avatar svg {
|
|
3207
|
+
width: 0.75rem;
|
|
3208
|
+
height: 0.75rem;
|
|
3209
|
+
}
|
|
3210
|
+
.cortex-subagent-avatar--live::after {
|
|
3211
|
+
content: "";
|
|
3212
|
+
position: absolute;
|
|
3213
|
+
inset: -3px;
|
|
3214
|
+
border-radius: 9999px;
|
|
3215
|
+
border: 1.5px solid color-mix(in oklab, var(--cortex-color-accent) 18%, transparent);
|
|
3216
|
+
border-top-color: var(--cortex-color-accent);
|
|
3217
|
+
border-inline-end-color: color-mix(in oklab, var(--cortex-color-accent) 45%, transparent);
|
|
3218
|
+
animation: cortex-tool-spin 1s linear infinite;
|
|
3219
|
+
}
|
|
3220
|
+
.cortex-subagent-avatar--off {
|
|
3221
|
+
background: var(--cortex-color-surface-subtle);
|
|
3222
|
+
color: var(--cortex-color-text-muted);
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
.cortex-subagent-card {
|
|
3226
|
+
position: relative;
|
|
3227
|
+
display: grid;
|
|
3228
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
3229
|
+
column-gap: 0.625rem;
|
|
3230
|
+
row-gap: 0.125rem;
|
|
3231
|
+
align-items: center;
|
|
3232
|
+
max-width: min(100%, 28rem);
|
|
3233
|
+
padding: 0.5rem 0.75rem;
|
|
3234
|
+
border: 1px solid var(--cortex-color-border);
|
|
3235
|
+
border-radius: var(--cortex-radius);
|
|
3236
|
+
background: var(--cortex-color-surface);
|
|
3237
|
+
}
|
|
3238
|
+
.cortex-subagent-card--live {
|
|
3239
|
+
border-color: color-mix(in oklab, var(--cortex-color-accent) 45%, var(--cortex-color-border));
|
|
3240
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--cortex-color-accent) 10%, transparent);
|
|
3241
|
+
}
|
|
3242
|
+
.cortex-subagent-card--more {
|
|
3243
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
3244
|
+
}
|
|
3245
|
+
.cortex-subagent-card > .cortex-subagent-avatar {
|
|
3246
|
+
grid-row: 1/3;
|
|
3247
|
+
align-self: start;
|
|
3248
|
+
margin-top: 0.0625rem;
|
|
3249
|
+
}
|
|
3250
|
+
.cortex-subagent-card__body {
|
|
3251
|
+
display: grid;
|
|
3252
|
+
gap: 0.0625rem;
|
|
3253
|
+
min-width: 0;
|
|
3254
|
+
}
|
|
3255
|
+
.cortex-subagent-card__caption {
|
|
3256
|
+
font-size: 0.6875rem;
|
|
3257
|
+
font-weight: 600;
|
|
3258
|
+
color: var(--cortex-color-accent);
|
|
3259
|
+
}
|
|
3260
|
+
.cortex-subagent-card__announce {
|
|
3261
|
+
position: absolute;
|
|
3262
|
+
width: 1px;
|
|
3263
|
+
height: 1px;
|
|
3264
|
+
overflow: hidden;
|
|
3265
|
+
clip-path: inset(50%);
|
|
3266
|
+
white-space: nowrap;
|
|
3267
|
+
}
|
|
3268
|
+
.cortex-subagent-card__status {
|
|
3269
|
+
font-weight: 400;
|
|
3270
|
+
color: var(--cortex-color-text-secondary);
|
|
3271
|
+
}
|
|
3272
|
+
.cortex-subagent-card__title {
|
|
3273
|
+
display: -webkit-box;
|
|
3274
|
+
-webkit-box-orient: vertical;
|
|
3275
|
+
-webkit-line-clamp: 2;
|
|
3276
|
+
overflow: hidden;
|
|
3277
|
+
font-size: 0.8125rem;
|
|
3278
|
+
font-weight: 600;
|
|
3279
|
+
color: var(--cortex-color-text-heading);
|
|
3280
|
+
overflow-wrap: anywhere;
|
|
3281
|
+
}
|
|
3282
|
+
.cortex-subagent-card--off .cortex-subagent-card__title {
|
|
3283
|
+
color: var(--cortex-color-text-secondary);
|
|
3284
|
+
}
|
|
3285
|
+
.cortex-subagent-card__line {
|
|
3286
|
+
grid-column: 2/-1;
|
|
3287
|
+
font-size: 0.8125rem;
|
|
3288
|
+
color: var(--cortex-color-text-secondary);
|
|
3289
|
+
white-space: nowrap;
|
|
3290
|
+
overflow: hidden;
|
|
3291
|
+
text-overflow: ellipsis;
|
|
3292
|
+
}
|
|
3293
|
+
.cortex-subagent-card__line--result {
|
|
3294
|
+
color: var(--cortex-color-text-strong);
|
|
3295
|
+
}
|
|
3296
|
+
.cortex-subagent-card__line--failed {
|
|
3297
|
+
color: var(--cortex-color-danger);
|
|
3298
|
+
}
|
|
3299
|
+
.cortex-subagent-card__open {
|
|
3300
|
+
display: flex;
|
|
3301
|
+
align-items: center;
|
|
3302
|
+
justify-content: center;
|
|
3303
|
+
width: 1.5rem;
|
|
3304
|
+
height: 1.5rem;
|
|
3305
|
+
padding: 0;
|
|
3306
|
+
border: 0;
|
|
3307
|
+
border-radius: calc(var(--cortex-radius) * 0.6);
|
|
3308
|
+
background: transparent;
|
|
3309
|
+
color: var(--cortex-color-text-muted);
|
|
3310
|
+
cursor: pointer;
|
|
3311
|
+
transition: background-color 0.15s;
|
|
3312
|
+
}
|
|
3313
|
+
.cortex-subagent-card__open::after {
|
|
3314
|
+
content: "";
|
|
3315
|
+
position: absolute;
|
|
3316
|
+
inset: 0;
|
|
3317
|
+
border-radius: var(--cortex-radius);
|
|
3318
|
+
}
|
|
3319
|
+
.cortex-subagent-card__open:hover {
|
|
3320
|
+
background: var(--cortex-color-hover);
|
|
3321
|
+
}
|
|
3322
|
+
.cortex-subagent-card__open svg {
|
|
3323
|
+
width: 0.875rem;
|
|
3324
|
+
height: 0.875rem;
|
|
3325
|
+
}
|
|
3326
|
+
.cortex-subagent-card__open svg:dir(rtl) {
|
|
3327
|
+
transform: scaleX(-1);
|
|
3328
|
+
}
|
|
3329
|
+
.cortex-subagent-card:has(> .cortex-subagent-card__open:hover) {
|
|
3330
|
+
border-color: var(--cortex-color-border-strong);
|
|
3331
|
+
}
|
|
3332
|
+
.cortex-subagent-card > .cortex-subagent-menu {
|
|
3333
|
+
z-index: 1;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3336
|
+
.cortex-subagent-menu {
|
|
3337
|
+
position: relative;
|
|
3338
|
+
}
|
|
3339
|
+
.cortex-subagent-menu__more {
|
|
3340
|
+
display: flex;
|
|
3341
|
+
align-items: center;
|
|
3342
|
+
justify-content: center;
|
|
3343
|
+
width: 1.5rem;
|
|
3344
|
+
height: 1.5rem;
|
|
3345
|
+
padding: 0;
|
|
3346
|
+
border: 0;
|
|
3347
|
+
border-radius: calc(var(--cortex-radius) * 0.6);
|
|
3348
|
+
background: var(--cortex-color-surface-subtle);
|
|
3349
|
+
color: var(--cortex-color-text-secondary);
|
|
3350
|
+
cursor: pointer;
|
|
3351
|
+
transition: background-color 0.15s;
|
|
3352
|
+
}
|
|
3353
|
+
.cortex-subagent-menu__more:hover {
|
|
3354
|
+
background: var(--cortex-color-hover);
|
|
3355
|
+
}
|
|
3356
|
+
.cortex-subagent-menu__more svg {
|
|
3357
|
+
width: 0.875rem;
|
|
3358
|
+
height: 0.875rem;
|
|
3359
|
+
}
|
|
3360
|
+
.cortex-subagent-menu__list {
|
|
3361
|
+
position: absolute;
|
|
3362
|
+
top: calc(100% + 0.25rem);
|
|
3363
|
+
inset-inline-end: 0;
|
|
3364
|
+
z-index: 10;
|
|
3365
|
+
min-width: 9.5rem;
|
|
3366
|
+
padding: 0.25rem;
|
|
3367
|
+
border: 1px solid var(--cortex-color-border);
|
|
3368
|
+
border-radius: var(--cortex-radius);
|
|
3369
|
+
background: var(--cortex-color-surface);
|
|
3370
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
|
|
3371
|
+
}
|
|
3372
|
+
.cortex-subagent-menu__item {
|
|
3373
|
+
display: flex;
|
|
3374
|
+
align-items: center;
|
|
3375
|
+
gap: 0.5rem;
|
|
3376
|
+
width: 100%;
|
|
3377
|
+
padding: 0.375rem 0.5rem;
|
|
3378
|
+
border: 0;
|
|
3379
|
+
border-radius: calc(var(--cortex-radius) * 0.6);
|
|
3380
|
+
background: transparent;
|
|
3381
|
+
font-size: 0.8125rem;
|
|
3382
|
+
color: var(--cortex-color-text-strong);
|
|
3383
|
+
text-align: start;
|
|
3384
|
+
white-space: nowrap;
|
|
3385
|
+
cursor: pointer;
|
|
3386
|
+
}
|
|
3387
|
+
.cortex-subagent-menu__item:hover, .cortex-subagent-menu__item:focus-visible {
|
|
3388
|
+
background: var(--cortex-color-surface-subtle);
|
|
3389
|
+
outline: none;
|
|
3390
|
+
}
|
|
3391
|
+
.cortex-subagent-menu__item--danger {
|
|
3392
|
+
color: var(--cortex-color-danger);
|
|
3393
|
+
}
|
|
3394
|
+
.cortex-subagent-menu__item svg {
|
|
3395
|
+
width: 0.875rem;
|
|
3396
|
+
height: 0.875rem;
|
|
3397
|
+
flex-shrink: 0;
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
.cortex-message-part:has(.cortex-subagent-card) + .cortex-message-part:has(.cortex-subagent-card) {
|
|
3401
|
+
margin-block-start: -0.125rem;
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
.cortex-subagent-screen {
|
|
3405
|
+
z-index: 1;
|
|
3406
|
+
background: var(--cortex-color-surface);
|
|
3407
|
+
}
|
|
3408
|
+
.cortex-subagent-screen .cortex-text-bubble--user {
|
|
3409
|
+
max-width: 100%;
|
|
3410
|
+
}
|
|
3411
|
+
.cortex-subagent-screen__crumb {
|
|
3412
|
+
flex: 1;
|
|
3413
|
+
display: flex;
|
|
3414
|
+
align-items: center;
|
|
3415
|
+
gap: 0.5rem;
|
|
3416
|
+
min-width: 0;
|
|
3417
|
+
}
|
|
3418
|
+
.cortex-subagent-screen__text {
|
|
3419
|
+
display: grid;
|
|
3420
|
+
min-width: 0;
|
|
3421
|
+
}
|
|
3422
|
+
.cortex-subagent-screen__title, .cortex-subagent-screen__sub {
|
|
3423
|
+
white-space: nowrap;
|
|
3424
|
+
overflow: hidden;
|
|
3425
|
+
text-overflow: ellipsis;
|
|
3426
|
+
}
|
|
3427
|
+
.cortex-subagent-screen__title {
|
|
3428
|
+
font-size: 0.875rem;
|
|
3429
|
+
font-weight: 600;
|
|
3430
|
+
color: var(--cortex-color-text-heading);
|
|
3431
|
+
}
|
|
3432
|
+
.cortex-subagent-screen__sub {
|
|
3433
|
+
font-size: 0.6875rem;
|
|
3434
|
+
color: var(--cortex-color-text-secondary);
|
|
3435
|
+
}
|
|
3436
|
+
.cortex-subagent-screen__sub b {
|
|
3437
|
+
font-weight: 600;
|
|
3438
|
+
color: var(--cortex-color-accent);
|
|
3439
|
+
}
|
|
3440
|
+
.cortex-subagent-screen__strip {
|
|
3441
|
+
flex-shrink: 0;
|
|
3442
|
+
display: flex;
|
|
3443
|
+
align-items: center;
|
|
3444
|
+
gap: 0.5rem;
|
|
3445
|
+
padding: 0.375rem 0.75rem;
|
|
3446
|
+
border-bottom: 1px solid var(--cortex-color-border);
|
|
3447
|
+
background: color-mix(in oklab, var(--cortex-color-accent) 8%, var(--cortex-color-surface));
|
|
3448
|
+
font-size: 0.75rem;
|
|
3449
|
+
color: var(--cortex-color-text-secondary);
|
|
3450
|
+
}
|
|
3451
|
+
.cortex-subagent-screen__strip svg {
|
|
3452
|
+
width: 0.875rem;
|
|
3453
|
+
height: 0.875rem;
|
|
3454
|
+
flex-shrink: 0;
|
|
3455
|
+
color: var(--cortex-color-success);
|
|
3456
|
+
}
|
|
3457
|
+
.cortex-subagent-screen__strip span {
|
|
3458
|
+
min-width: 0;
|
|
3459
|
+
white-space: nowrap;
|
|
3460
|
+
overflow: hidden;
|
|
3461
|
+
text-overflow: ellipsis;
|
|
3462
|
+
}
|
|
3463
|
+
.cortex-subagent-screen__strip--failed, .cortex-subagent-screen__strip--failed svg {
|
|
3464
|
+
color: var(--cortex-color-danger);
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
.cortex-message__sender {
|
|
3468
|
+
display: block;
|
|
3469
|
+
margin-bottom: 0.125rem;
|
|
3470
|
+
font-size: 0.6875rem;
|
|
3471
|
+
font-weight: 600;
|
|
3472
|
+
color: var(--cortex-color-accent);
|
|
3473
|
+
}
|
|
3474
|
+
.cortex-message__sender--you {
|
|
3475
|
+
color: var(--cortex-color-text-secondary);
|
|
3476
|
+
text-align: end;
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
.cortex-check-back {
|
|
3480
|
+
display: flex;
|
|
3481
|
+
align-items: center;
|
|
3482
|
+
gap: 0.5rem;
|
|
3483
|
+
max-width: min(100%, 36rem);
|
|
3484
|
+
font-size: 0.75rem;
|
|
3485
|
+
color: var(--cortex-color-text-secondary);
|
|
3486
|
+
}
|
|
3487
|
+
.cortex-check-back > svg {
|
|
3488
|
+
width: 0.8125rem;
|
|
3489
|
+
height: 0.8125rem;
|
|
3490
|
+
flex-shrink: 0;
|
|
3491
|
+
color: var(--cortex-color-accent);
|
|
3492
|
+
}
|
|
3493
|
+
.cortex-check-back > span {
|
|
3494
|
+
min-width: 0;
|
|
3495
|
+
overflow: hidden;
|
|
3496
|
+
white-space: nowrap;
|
|
3497
|
+
text-overflow: ellipsis;
|
|
3498
|
+
}
|
|
3499
|
+
.cortex-check-back b {
|
|
3500
|
+
font-weight: 600;
|
|
3501
|
+
color: var(--cortex-color-text-strong);
|
|
3502
|
+
}
|
|
3503
|
+
.cortex-check-back__cancel {
|
|
3504
|
+
flex-shrink: 0;
|
|
3505
|
+
border: 0;
|
|
3506
|
+
border-radius: calc(var(--cortex-radius) * 0.6);
|
|
3507
|
+
background: transparent;
|
|
3508
|
+
padding: 0.0625rem 0.375rem;
|
|
3509
|
+
font: inherit;
|
|
3510
|
+
color: var(--cortex-color-text-secondary);
|
|
3511
|
+
cursor: pointer;
|
|
3512
|
+
}
|
|
3513
|
+
.cortex-check-back__cancel:hover {
|
|
3514
|
+
background: var(--cortex-color-hover);
|
|
3515
|
+
color: var(--cortex-color-text-strong);
|
|
3516
|
+
}
|
|
3517
|
+
|
|
2989
3518
|
.cortex-attachment-queue {
|
|
2990
3519
|
display: flex;
|
|
2991
3520
|
flex-wrap: wrap;
|
|
@@ -3080,6 +3609,61 @@ details[open] > summary .cortex-debug-tool__chevron {
|
|
|
3080
3609
|
height: 0.75rem;
|
|
3081
3610
|
}
|
|
3082
3611
|
|
|
3612
|
+
.cortex-queued-tray {
|
|
3613
|
+
margin-bottom: 0.5rem;
|
|
3614
|
+
border: 1px solid var(--cortex-color-border);
|
|
3615
|
+
border-radius: calc(var(--cortex-radius) * 1.25);
|
|
3616
|
+
background: var(--cortex-color-surface-subtle);
|
|
3617
|
+
font-size: 0.8125rem;
|
|
3618
|
+
}
|
|
3619
|
+
.cortex-queued-tray__head {
|
|
3620
|
+
padding: 0.375rem 0.625rem;
|
|
3621
|
+
}
|
|
3622
|
+
.cortex-queued-tray__label {
|
|
3623
|
+
color: var(--cortex-color-text-secondary);
|
|
3624
|
+
font-size: 0.75rem;
|
|
3625
|
+
}
|
|
3626
|
+
.cortex-queued-tray__row {
|
|
3627
|
+
display: flex;
|
|
3628
|
+
align-items: center;
|
|
3629
|
+
justify-content: space-between;
|
|
3630
|
+
gap: 0.5rem;
|
|
3631
|
+
padding: 0.4375rem 0.625rem;
|
|
3632
|
+
border-top: 1px solid var(--cortex-color-border);
|
|
3633
|
+
}
|
|
3634
|
+
.cortex-queued-tray__text {
|
|
3635
|
+
flex: 1;
|
|
3636
|
+
min-width: 0;
|
|
3637
|
+
overflow: hidden;
|
|
3638
|
+
text-overflow: ellipsis;
|
|
3639
|
+
white-space: nowrap;
|
|
3640
|
+
color: var(--cortex-color-text-strong);
|
|
3641
|
+
}
|
|
3642
|
+
.cortex-queued-tray__send-now {
|
|
3643
|
+
flex-shrink: 0;
|
|
3644
|
+
padding: 0.1875rem 0.5625rem;
|
|
3645
|
+
border: 0;
|
|
3646
|
+
border-radius: calc(var(--cortex-radius) * 0.75);
|
|
3647
|
+
background: var(--cortex-color-primary);
|
|
3648
|
+
color: var(--cortex-color-primary-foreground);
|
|
3649
|
+
font-size: 0.75rem;
|
|
3650
|
+
white-space: nowrap;
|
|
3651
|
+
cursor: pointer;
|
|
3652
|
+
}
|
|
3653
|
+
.cortex-queued-tray__cancel {
|
|
3654
|
+
flex-shrink: 0;
|
|
3655
|
+
display: inline-flex;
|
|
3656
|
+
padding: 0.125rem;
|
|
3657
|
+
border: 1px solid var(--cortex-color-border);
|
|
3658
|
+
border-radius: calc(var(--cortex-radius) * 0.5);
|
|
3659
|
+
color: var(--cortex-color-text-muted);
|
|
3660
|
+
cursor: pointer;
|
|
3661
|
+
}
|
|
3662
|
+
.cortex-queued-tray__cancel:hover {
|
|
3663
|
+
color: var(--cortex-color-text-strong);
|
|
3664
|
+
background: var(--cortex-color-hover);
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3083
3667
|
/* ─── Token Usage Component ────────────────────────────────────────── */
|
|
3084
3668
|
.cortex-token-usage {
|
|
3085
3669
|
direction: ltr;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m6d/cortex-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "React chat widget for Cortex agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@cortex/client": "workspace:*",
|
|
33
33
|
"@cortex/contracts": "workspace:*",
|
|
34
34
|
"@m6d/tsconfig": "workspace:*",
|
|
35
|
-
"@tanstack/ai": "^0.
|
|
36
|
-
"@tanstack/ai-client": "^0.
|
|
35
|
+
"@tanstack/ai": "^1.0.1",
|
|
36
|
+
"@tanstack/ai-client": "^1.0.1",
|
|
37
37
|
"@types/bun": "1.4.4",
|
|
38
38
|
"@types/jsdom": "^28.0.0",
|
|
39
39
|
"@types/leaflet": "^1.9.22",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vega-lite": "^6.4.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@tanstack/ai": ">=0.
|
|
58
|
-
"@tanstack/ai-client": ">=0.
|
|
57
|
+
"@tanstack/ai": ">=1.0.0 <2.0.0",
|
|
58
|
+
"@tanstack/ai-client": ">=1.0.0 <2.0.0",
|
|
59
59
|
"dompurify": "^3.0.0",
|
|
60
60
|
"highlight.js": "^11.0.0",
|
|
61
61
|
"leaflet": "^1.9.0",
|