@webless/agent 0.8.0 → 0.9.1

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
@@ -344,6 +344,9 @@ html.webless-agent-page-shift {
344
344
  font-size: 12px;
345
345
  line-height: 1.5;
346
346
  }
347
+ .agent-transcript__message--visitor .agent-transcript__meta {
348
+ justify-content: flex-end;
349
+ }
347
350
  .agent-transcript__meta time {
348
351
  font-variant-numeric: tabular-nums;
349
352
  }
@@ -362,6 +365,45 @@ html.webless-agent-page-shift {
362
365
  max-width: 100%;
363
366
  overflow-x: auto;
364
367
  }
368
+ .agent-transcript__activity {
369
+ min-width: 0;
370
+ color: var(--as-text-muted);
371
+ font-size: 12px;
372
+ line-height: 1.5;
373
+ border-left: 2px solid var(--as-border);
374
+ padding-left: 12px;
375
+ }
376
+ .agent-transcript__activity-heading {
377
+ display: flex;
378
+ align-items: baseline;
379
+ flex-wrap: wrap;
380
+ gap: 4px 12px;
381
+ overflow-wrap: anywhere;
382
+ }
383
+ summary.agent-transcript__activity-heading {
384
+ cursor: pointer;
385
+ }
386
+ summary.agent-transcript__activity-heading::before {
387
+ content: "\203a";
388
+ }
389
+ .agent-transcript__activity details[open] > summary::before {
390
+ content: "\2304";
391
+ }
392
+ .agent-transcript__activity-heading time {
393
+ margin-left: auto;
394
+ font-variant-numeric: tabular-nums;
395
+ }
396
+ .agent-transcript__activity-status {
397
+ font-weight: 500;
398
+ }
399
+ .agent-transcript__activity[data-status=failed],
400
+ .agent-transcript__activity[data-status=rejected] {
401
+ border-color: var(--as-error, #b91c1c);
402
+ }
403
+ .agent-transcript__activity-result {
404
+ margin-top: 12px;
405
+ color: var(--as-text);
406
+ }
365
407
 
366
408
  /* src/react/styles/all.css */
367
409
 
@@ -1087,20 +1129,22 @@ html.webless-agent-page-shift {
1087
1129
  width: 100%;
1088
1130
  min-width: 0;
1089
1131
  gap: 16px;
1090
- margin-top: 24px;
1132
+ margin-top: 12px;
1091
1133
  }
1092
1134
  .search-references__heading {
1093
- display: flex;
1094
- align-items: center;
1095
- gap: 6px;
1096
- margin: 0 0 8px;
1135
+ width: fit-content;
1136
+ min-height: 32px;
1137
+ box-sizing: border-box;
1138
+ padding: 6px 0;
1139
+ margin: 0;
1097
1140
  color: var(--as-text);
1098
1141
  font-size: 12px;
1099
- font-weight: 700;
1142
+ font-weight: 600;
1100
1143
  line-height: 1.5;
1144
+ cursor: pointer;
1101
1145
  }
1102
- .search-references__heading span {
1103
- display: inline-flex;
1146
+ .search-references__disclosure[open] > summary {
1147
+ margin-bottom: 8px;
1104
1148
  }
1105
1149
  .search-references__list {
1106
1150
  display: grid;
@@ -1174,14 +1218,15 @@ html.webless-agent-page-shift {
1174
1218
  background: var(--as-brand-soft);
1175
1219
  color: var(--as-brand);
1176
1220
  }
1177
- .search-references a:focus-visible {
1221
+ .search-references a:focus-visible,
1222
+ .search-references summary:focus-visible {
1178
1223
  outline: 2px solid var(--as-brand);
1179
1224
  outline-offset: 2px;
1180
1225
  }
1181
1226
  .message-bubble__text:has(.search-references) {
1182
1227
  width: 100%;
1183
1228
  }
1184
- .search-references > section,
1229
+ .search-references > details,
1185
1230
  .search-references__list > li {
1186
1231
  min-width: 0;
1187
1232
  }
@@ -2268,6 +2313,50 @@ html.webless-agent-page-shift {
2268
2313
  .entity-result-card {
2269
2314
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
2270
2315
  }
2316
+ .entity-result-card.entity-result-card--compact,
2317
+ .entity-result-card.entity-result-card--disclosure {
2318
+ padding: 4px 0;
2319
+ border: 0;
2320
+ background: transparent;
2321
+ box-shadow: none;
2322
+ color: var(--as-text-muted);
2323
+ }
2324
+ .entity-result-card--compact .tool-result-card__heading strong,
2325
+ .entity-result-card--disclosure .tool-result-card__heading strong {
2326
+ font-size: 12px;
2327
+ font-weight: 500;
2328
+ }
2329
+ .entity-result-card--disclosure > summary {
2330
+ display: flex;
2331
+ align-items: center;
2332
+ gap: 10px;
2333
+ width: fit-content;
2334
+ cursor: pointer;
2335
+ list-style: none;
2336
+ }
2337
+ .entity-result-card--disclosure > summary::-webkit-details-marker {
2338
+ display: none;
2339
+ }
2340
+ .entity-result-card--disclosure > summary::after {
2341
+ content: "";
2342
+ width: 5px;
2343
+ height: 5px;
2344
+ border-right: 1px solid currentColor;
2345
+ border-bottom: 1px solid currentColor;
2346
+ transform: rotate(45deg);
2347
+ }
2348
+ .entity-result-card--disclosure[open] > summary::after {
2349
+ transform: rotate(225deg);
2350
+ }
2351
+ .entity-result-card--disclosure > summary:focus-visible {
2352
+ outline: 2px solid var(--as-brand);
2353
+ outline-offset: 4px;
2354
+ border-radius: 2px;
2355
+ }
2356
+ .entity-result-card--disclosure > dl {
2357
+ margin-top: 12px;
2358
+ padding-left: 16px;
2359
+ }
2271
2360
  @media (prefers-reduced-motion: reduce) {
2272
2361
  .entity-result-card {
2273
2362
  transition: none;
@@ -2494,6 +2583,9 @@ html.webless-agent-page-shift {
2494
2583
  align-items: stretch;
2495
2584
  gap: 10px;
2496
2585
  }
2586
+ .agent-rail__turn-block:empty {
2587
+ display: none;
2588
+ }
2497
2589
  .agent-rail__welcome {
2498
2590
  display: flex;
2499
2591
  flex-direction: column;