agent-loft 0.2.51 → 0.2.53

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.
@@ -577,6 +577,10 @@ a.att-file:hover {
577
577
  transition: opacity 0.15s;
578
578
  }
579
579
 
580
+ .user-actions[hidden] {
581
+ display: none;
582
+ }
583
+
580
584
  .msg-user-group:hover .user-actions,
581
585
  .user-actions:focus-within {
582
586
  opacity: 1;
@@ -1042,37 +1046,157 @@ a.att-file:hover {
1042
1046
  font-weight: 500;
1043
1047
  }
1044
1048
 
1045
- /* 手机和触屏:滚动时显示,停止后淡出;点击刻度直接跳转 */
1049
+ .msg-nav-rail,
1050
+ .msg-nav-preview {
1051
+ display: none;
1052
+ }
1053
+
1054
+ /* 手机和触屏:短轨道不独立滚动,按住预览、松手定位 */
1046
1055
  @media (max-width: 768px), (hover: none) {
1047
1056
  .msg-nav {
1048
- right: max(2px, env(safe-area-inset-right));
1057
+ right: max(0px, env(safe-area-inset-right));
1049
1058
  opacity: 0;
1050
1059
  visibility: hidden;
1051
1060
  pointer-events: none;
1052
- transition: opacity 0.2s, visibility 0.2s;
1061
+ transition: opacity 0.22s, visibility 0.22s;
1053
1062
  }
1054
1063
 
1055
- .msg-nav.scrolling {
1064
+ .msg-nav.scrolling,
1065
+ .msg-nav.scrubbing {
1056
1066
  opacity: 1;
1057
1067
  visibility: visible;
1058
1068
  pointer-events: auto;
1059
1069
  }
1060
1070
 
1061
- .msg-nav-ticks {
1062
- max-height: 45dvh;
1063
- padding: 4px;
1064
- border-radius: 8px;
1065
- background: color-mix(in srgb, var(--bg) 85%, transparent);
1071
+ .msg-nav-ticks,
1072
+ .msg-nav-panel {
1073
+ display: none;
1074
+ }
1075
+
1076
+ .msg-nav-rail {
1077
+ display: block;
1078
+ position: relative;
1079
+ width: 44px;
1080
+ height: clamp(88px, 24dvh, var(--nav-rail-height, 156px));
1081
+ touch-action: none;
1082
+ user-select: none;
1083
+ -webkit-user-select: none;
1084
+ border-radius: 16px;
1066
1085
  }
1067
1086
 
1068
- .msg-nav-tick {
1069
- width: 28px;
1070
- height: 18px;
1071
- touch-action: manipulation;
1087
+ .msg-nav-rail::before {
1088
+ content: "";
1089
+ position: absolute;
1090
+ inset: 0 4px 0 14px;
1091
+ background: color-mix(in srgb, var(--bg) 92%, transparent);
1092
+ border: 1px solid var(--border);
1093
+ border-radius: 16px;
1094
+ box-shadow: 0 2px 10px #00000008;
1095
+ opacity: 0;
1096
+ transition: opacity 0.15s;
1072
1097
  }
1073
1098
 
1074
- .msg-nav-panel {
1075
- display: none;
1099
+ .msg-nav.scrubbing .msg-nav-rail::before {
1100
+ opacity: 1;
1101
+ }
1102
+
1103
+ .msg-nav-rail:focus-visible {
1104
+ outline: 2px solid var(--fg-soft);
1105
+ outline-offset: -2px;
1106
+ }
1107
+
1108
+ .msg-nav-track {
1109
+ position: absolute;
1110
+ top: 14px;
1111
+ bottom: 14px;
1112
+ right: 10px;
1113
+ width: 14px;
1114
+ pointer-events: none;
1115
+ }
1116
+
1117
+ .msg-nav-mark,
1118
+ .msg-nav-thumb {
1119
+ position: absolute;
1120
+ right: 0;
1121
+ transform: translateY(-50%);
1122
+ border-radius: 999px;
1123
+ }
1124
+
1125
+ .msg-nav-mark {
1126
+ height: 2px;
1127
+ width: 5px;
1128
+ background: var(--fg-faint);
1129
+ opacity: 0.5;
1130
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 65%, transparent);
1131
+ }
1132
+
1133
+ .msg-nav-mark.major {
1134
+ width: 9px;
1135
+ }
1136
+
1137
+ .msg-nav-thumb {
1138
+ top: calc(var(--nav-progress, 0) * 100%);
1139
+ width: 16px;
1140
+ height: 4px;
1141
+ background: var(--fg);
1142
+ box-shadow: 0 0 0 3px var(--bg);
1143
+ transition: top 0.12s ease-out;
1144
+ }
1145
+
1146
+ .msg-nav.scrubbing .msg-nav-thumb {
1147
+ transition: none;
1148
+ }
1149
+
1150
+ .msg-nav-preview {
1151
+ display: flex;
1152
+ position: absolute;
1153
+ right: 46px;
1154
+ top: calc(14px + (100% - 28px) * var(--nav-progress, 0));
1155
+ transform: translateY(-50%);
1156
+ flex-direction: column;
1157
+ gap: 4px;
1158
+ width: min(240px, calc(100vw - 72px));
1159
+ padding: 10px 12px;
1160
+ border: 1px solid var(--border);
1161
+ border-radius: 12px;
1162
+ background: var(--bg);
1163
+ box-shadow: 0 4px 20px #00000014;
1164
+ color: var(--fg);
1165
+ opacity: 0;
1166
+ visibility: hidden;
1167
+ pointer-events: none;
1168
+ transition: opacity 0.12s, visibility 0.12s;
1169
+ }
1170
+
1171
+ .msg-nav.scrubbing .msg-nav-preview {
1172
+ opacity: 1;
1173
+ visibility: visible;
1174
+ }
1175
+
1176
+ .msg-nav-count {
1177
+ font-size: 11px;
1178
+ line-height: 1.3;
1179
+ color: var(--fg-faint);
1180
+ font-variant-numeric: tabular-nums;
1181
+ }
1182
+
1183
+ .msg-nav-snippet {
1184
+ display: -webkit-box;
1185
+ -webkit-line-clamp: 2;
1186
+ -webkit-box-orient: vertical;
1187
+ overflow: hidden;
1188
+ overflow-wrap: anywhere;
1189
+ font-size: 13px;
1190
+ line-height: 1.5;
1191
+ }
1192
+ }
1193
+
1194
+ @media (prefers-reduced-motion: reduce) {
1195
+ .msg-nav,
1196
+ .msg-nav-thumb,
1197
+ .msg-nav-preview,
1198
+ .msg-nav-rail::before {
1199
+ transition: none;
1076
1200
  }
1077
1201
  }
1078
1202
 
@@ -1102,16 +1226,15 @@ a.att-file:hover {
1102
1226
  }
1103
1227
 
1104
1228
  .queue-jump {
1105
- padding: 2px 8px;
1106
- border-radius: 6px;
1229
+ padding: 2px 0;
1107
1230
  font-size: 12px;
1108
1231
  color: var(--fg-soft);
1109
- border: 1px solid var(--border);
1232
+ text-decoration: underline;
1233
+ text-underline-offset: 3px;
1110
1234
  }
1111
1235
 
1112
1236
  .queue-jump:hover {
1113
1237
  color: var(--fg);
1114
- background: var(--bg-hover);
1115
1238
  }
1116
1239
 
1117
1240
  /* ---------- 回复里提到的文件:能点开预览(views/file-preview.js) ---------- */
@@ -1384,3 +1507,88 @@ a.att-file:hover {
1384
1507
  padding: 12px 16px;
1385
1508
  box-sizing: border-box;
1386
1509
  }
1510
+
1511
+ /* ---------- 回复里的 ```chart / ```mermaid 画成的图(lib/diagrams.js) ---------- */
1512
+ .md .diagram {
1513
+ margin: 0.8em 0;
1514
+ border: 1px solid var(--border);
1515
+ border-radius: 10px;
1516
+ padding: 12px 12px 4px;
1517
+ }
1518
+
1519
+ .md .diagram.broken {
1520
+ border-style: dashed;
1521
+ padding-bottom: 12px;
1522
+ }
1523
+
1524
+ .diagram-title {
1525
+ font-size: 14px;
1526
+ font-weight: 600;
1527
+ margin-bottom: 8px;
1528
+ }
1529
+
1530
+ .diagram-body {
1531
+ width: 100%;
1532
+ min-height: 60px;
1533
+ }
1534
+
1535
+ .diagram.mermaid .diagram-body {
1536
+ overflow-x: auto;
1537
+ text-align: center;
1538
+ }
1539
+
1540
+ .diagram-svg {
1541
+ max-width: 100%;
1542
+ height: auto;
1543
+ }
1544
+
1545
+ .diagram-wait {
1546
+ height: 80px;
1547
+ display: flex;
1548
+ align-items: center;
1549
+ justify-content: center;
1550
+ font-size: 13px;
1551
+ color: var(--fg-faint);
1552
+ }
1553
+
1554
+ .diagram-error {
1555
+ font-size: 13px;
1556
+ color: var(--fg-soft);
1557
+ padding: 4px 0 8px;
1558
+ }
1559
+
1560
+ .md .diagram-table table {
1561
+ font-variant-numeric: tabular-nums;
1562
+ margin: 8px 0 0;
1563
+ }
1564
+
1565
+ .md .diagram-table td:not(:first-child) {
1566
+ text-align: right;
1567
+ }
1568
+
1569
+ .md .diagram .diagram-src {
1570
+ margin: 8px 0 0;
1571
+ }
1572
+
1573
+ .diagram-actions {
1574
+ display: flex;
1575
+ justify-content: flex-end;
1576
+ gap: 4px;
1577
+ margin-top: 4px;
1578
+ }
1579
+
1580
+ .md .diagram-btn {
1581
+ font-size: 12px;
1582
+ color: var(--fg-soft);
1583
+ background: none;
1584
+ border: 0;
1585
+ padding: 2px 6px;
1586
+ border-radius: 6px;
1587
+ cursor: pointer;
1588
+ }
1589
+
1590
+ .md .diagram-btn:hover,
1591
+ .md .diagram-btn.on {
1592
+ background: var(--bg-hover);
1593
+ color: var(--fg);
1594
+ }
@@ -201,18 +201,35 @@
201
201
  color: var(--fg-faint);
202
202
  }
203
203
 
204
- /* 手机:铺满宽度,贴着顶部 */
204
+ /* 手机:和工作目录选择器一样,从底部展开的固定高度抽屉 */
205
205
  @media (max-width: 768px) {
206
206
  .overlay.search-overlay {
207
- padding: calc(8px + env(safe-area-inset-top)) 8px 8px;
207
+ align-items: flex-end;
208
+ padding: 0;
208
209
  }
209
210
 
210
211
  .search-modal {
211
- height: min(600px, calc(100dvh - env(safe-area-inset-top) - 24px));
212
- max-height: calc(100% - 8px);
212
+ max-width: none;
213
+ height: min(600px, 86dvh);
214
+ max-height: calc(100dvh - 32px);
215
+ padding-bottom: env(safe-area-inset-bottom);
216
+ border-radius: 16px 16px 0 0;
217
+ animation: search-sheet-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
213
218
  }
214
219
 
215
220
  .hit-meta {
216
221
  display: none;
217
222
  }
218
223
  }
224
+
225
+ @keyframes search-sheet-in {
226
+ from {
227
+ transform: translateY(100%);
228
+ }
229
+ }
230
+
231
+ @media (prefers-reduced-motion: reduce) {
232
+ .search-modal {
233
+ animation: none;
234
+ }
235
+ }
@@ -364,6 +364,7 @@ button.conv-group:hover {
364
364
  display: none;
365
365
  place-items: center;
366
366
  flex-shrink: 0;
367
+ margin-left: auto;
367
368
  width: 14px;
368
369
  height: 14px;
369
370
  font-size: 13px;
@@ -371,6 +372,30 @@ button.conv-group:hover {
371
372
  color: var(--fg-soft);
372
373
  }
373
374
 
375
+ /* 有状态点时由状态点推到右侧,专家图标紧随其后 */
376
+ .conv-item > .dot + .expert-mark,
377
+ .conv-item > .conv-spin + .expert-mark {
378
+ margin-left: 0;
379
+ }
380
+
381
+ .conv-item .task-mark {
382
+ flex-shrink: 0;
383
+ width: 14px;
384
+ height: 14px;
385
+ margin-left: auto;
386
+ color: var(--fg-soft);
387
+ }
388
+
389
+ .conv-item .task-mark svg {
390
+ width: 14px;
391
+ height: 14px;
392
+ }
393
+
394
+ .conv-item > .dot ~ .task-mark,
395
+ .conv-item > .conv-spin ~ .task-mark {
396
+ margin-left: 0;
397
+ }
398
+
374
399
  .conv-item .expert-mark-icon {
375
400
  display: inline-grid;
376
401
  place-items: center;
@@ -388,6 +413,10 @@ button.conv-group:hover {
388
413
  .conv-item:hover .expert-mark {
389
414
  display: inline-grid;
390
415
  }
416
+
417
+ .conv-item:hover .expert-mark + .task-mark {
418
+ margin-left: 0;
419
+ }
391
420
  }
392
421
 
393
422
  /* ---- 侧栏底部的额度 ---- */
@@ -10,7 +10,7 @@
10
10
  display: flex;
11
11
  align-items: center;
12
12
  gap: 6px;
13
- padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
13
+ padding: calc(8px + env(safe-area-inset-top)) 12px 8px 8px;
14
14
  min-height: 52px;
15
15
  /*
16
16
  * iOS 26+ 的主屏 PWA 会在页面顶端叠一层系统的模糊渐变(Liquid Glass 边缘效果),CSS 关不掉。
@@ -152,7 +152,7 @@
152
152
  min-width: 0;
153
153
  display: flex;
154
154
  align-items: center;
155
- gap: 6px;
155
+ gap: 2px;
156
156
  }
157
157
 
158
158
  /* 标题前的专家头像:点一下 / 鼠标停上去弹出专家信息卡 */
@@ -163,7 +163,6 @@
163
163
  width: 28px;
164
164
  height: 28px;
165
165
  padding: 0;
166
- margin-left: 2px;
167
166
  border-radius: 50%;
168
167
  line-height: 1;
169
168
  color: var(--fg-soft);
@@ -300,7 +299,7 @@
300
299
  overflow: hidden;
301
300
  text-overflow: ellipsis;
302
301
  white-space: nowrap;
303
- padding: 0 4px;
302
+ padding: 0 4px 0 0;
304
303
  }
305
304
 
306
305
  .pill {