lumencode 1.3.3 → 1.3.4
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 +12 -0
- package/lib/server.js +361 -29
- package/lib/smart-report-store.js +98 -0
- package/lib/smart-report.js +339 -0
- package/package.json +1 -1
- package/public/api.js +25 -0
- package/public/app.js +315 -2
- package/public/config.js +4 -0
- package/public/index.html +86 -3
- package/public/style.css +202 -0
package/public/style.css
CHANGED
|
@@ -1181,6 +1181,208 @@ input, textarea { font-family: inherit; color: inherit; }
|
|
|
1181
1181
|
opacity: 0.8;
|
|
1182
1182
|
}
|
|
1183
1183
|
|
|
1184
|
+
.report-content-frame {
|
|
1185
|
+
position: relative;
|
|
1186
|
+
padding-top: 76px;
|
|
1187
|
+
}
|
|
1188
|
+
.report-content-toggle {
|
|
1189
|
+
position: absolute;
|
|
1190
|
+
top: 24px;
|
|
1191
|
+
right: 24px;
|
|
1192
|
+
display: inline-flex;
|
|
1193
|
+
border: 1px solid var(--border);
|
|
1194
|
+
border-radius: 6px;
|
|
1195
|
+
overflow: hidden;
|
|
1196
|
+
background: var(--card);
|
|
1197
|
+
z-index: 1;
|
|
1198
|
+
}
|
|
1199
|
+
.report-toggle-btn {
|
|
1200
|
+
min-height: 30px;
|
|
1201
|
+
display: inline-flex;
|
|
1202
|
+
align-items: center;
|
|
1203
|
+
gap: 6px;
|
|
1204
|
+
padding: 6px 10px;
|
|
1205
|
+
border-left: 1px solid var(--border);
|
|
1206
|
+
font-size: 12px;
|
|
1207
|
+
color: var(--muted-foreground);
|
|
1208
|
+
transition: background 0.15s, color 0.15s;
|
|
1209
|
+
}
|
|
1210
|
+
.report-toggle-btn:first-child { border-left: none; }
|
|
1211
|
+
.report-toggle-btn:hover:not(:disabled) { background: var(--ink-8); color: var(--foreground); }
|
|
1212
|
+
.report-toggle-btn.active {
|
|
1213
|
+
background: var(--foreground);
|
|
1214
|
+
color: var(--background);
|
|
1215
|
+
}
|
|
1216
|
+
.report-toggle-btn:disabled {
|
|
1217
|
+
cursor: not-allowed;
|
|
1218
|
+
opacity: 0.45;
|
|
1219
|
+
}
|
|
1220
|
+
.report-toggle-dot {
|
|
1221
|
+
width: 6px;
|
|
1222
|
+
height: 6px;
|
|
1223
|
+
border-radius: 50%;
|
|
1224
|
+
background: var(--dest);
|
|
1225
|
+
}
|
|
1226
|
+
.smart-report-update-notice {
|
|
1227
|
+
margin-bottom: 18px;
|
|
1228
|
+
padding: 10px 12px;
|
|
1229
|
+
border: 1px solid var(--dest);
|
|
1230
|
+
border-radius: 6px;
|
|
1231
|
+
color: var(--dest);
|
|
1232
|
+
font-size: 13px;
|
|
1233
|
+
line-height: 1.6;
|
|
1234
|
+
background: color-mix(in srgb, var(--dest) 7%, transparent);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.smart-agent-list {
|
|
1238
|
+
display: flex;
|
|
1239
|
+
flex-direction: column;
|
|
1240
|
+
gap: 8px;
|
|
1241
|
+
margin-bottom: 10px;
|
|
1242
|
+
}
|
|
1243
|
+
.smart-agent-btn {
|
|
1244
|
+
width: 100%;
|
|
1245
|
+
min-height: 34px;
|
|
1246
|
+
display: grid;
|
|
1247
|
+
grid-template-columns: 8px minmax(0, 1fr) auto;
|
|
1248
|
+
align-items: center;
|
|
1249
|
+
gap: 8px;
|
|
1250
|
+
padding: 8px 10px;
|
|
1251
|
+
border: 1px solid var(--border);
|
|
1252
|
+
border-radius: 6px;
|
|
1253
|
+
font-size: 12px;
|
|
1254
|
+
text-align: left;
|
|
1255
|
+
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
|
1256
|
+
}
|
|
1257
|
+
.smart-agent-btn:hover:not(:disabled) {
|
|
1258
|
+
background: var(--ink-8);
|
|
1259
|
+
}
|
|
1260
|
+
.smart-agent-btn.active {
|
|
1261
|
+
border-color: var(--foreground);
|
|
1262
|
+
background: var(--foreground);
|
|
1263
|
+
color: var(--background);
|
|
1264
|
+
}
|
|
1265
|
+
.smart-agent-btn.unavailable {
|
|
1266
|
+
cursor: not-allowed;
|
|
1267
|
+
opacity: 0.58;
|
|
1268
|
+
}
|
|
1269
|
+
.smart-agent-dot {
|
|
1270
|
+
width: 8px;
|
|
1271
|
+
height: 8px;
|
|
1272
|
+
border-radius: 50%;
|
|
1273
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent);
|
|
1274
|
+
}
|
|
1275
|
+
.smart-agent-dot.available {
|
|
1276
|
+
background: #22c55e;
|
|
1277
|
+
}
|
|
1278
|
+
.smart-agent-dot.missing {
|
|
1279
|
+
background: var(--dest);
|
|
1280
|
+
}
|
|
1281
|
+
.smart-agent-name {
|
|
1282
|
+
min-width: 0;
|
|
1283
|
+
overflow: hidden;
|
|
1284
|
+
text-overflow: ellipsis;
|
|
1285
|
+
white-space: nowrap;
|
|
1286
|
+
}
|
|
1287
|
+
.smart-agent-status {
|
|
1288
|
+
font-size: 11px;
|
|
1289
|
+
opacity: 0.7;
|
|
1290
|
+
white-space: nowrap;
|
|
1291
|
+
}
|
|
1292
|
+
.smart-agent-btn.active .smart-agent-status {
|
|
1293
|
+
opacity: 0.82;
|
|
1294
|
+
}
|
|
1295
|
+
.smart-report-spinner {
|
|
1296
|
+
width: 12px;
|
|
1297
|
+
height: 12px;
|
|
1298
|
+
border: 2px solid currentColor;
|
|
1299
|
+
border-right-color: transparent;
|
|
1300
|
+
border-radius: 50%;
|
|
1301
|
+
animation: smart-report-spin 0.75s linear infinite;
|
|
1302
|
+
}
|
|
1303
|
+
@keyframes smart-report-spin {
|
|
1304
|
+
to { transform: rotate(360deg); }
|
|
1305
|
+
}
|
|
1306
|
+
.smart-report-progress {
|
|
1307
|
+
margin-top: 12px;
|
|
1308
|
+
padding: 12px;
|
|
1309
|
+
border: 1px solid var(--border);
|
|
1310
|
+
border-radius: 6px;
|
|
1311
|
+
background: var(--ink-4);
|
|
1312
|
+
}
|
|
1313
|
+
.smart-report-progress-head {
|
|
1314
|
+
display: flex;
|
|
1315
|
+
align-items: baseline;
|
|
1316
|
+
justify-content: space-between;
|
|
1317
|
+
gap: 12px;
|
|
1318
|
+
margin-bottom: 10px;
|
|
1319
|
+
font-size: 12px;
|
|
1320
|
+
line-height: 1.5;
|
|
1321
|
+
}
|
|
1322
|
+
.smart-report-progress-head .font-mono {
|
|
1323
|
+
flex: 0 0 auto;
|
|
1324
|
+
font-size: 11px;
|
|
1325
|
+
opacity: 0.62;
|
|
1326
|
+
}
|
|
1327
|
+
.smart-report-progress-track {
|
|
1328
|
+
position: relative;
|
|
1329
|
+
height: 7px;
|
|
1330
|
+
overflow: hidden;
|
|
1331
|
+
border-radius: 999px;
|
|
1332
|
+
background: color-mix(in srgb, var(--foreground) 10%, transparent);
|
|
1333
|
+
}
|
|
1334
|
+
.smart-report-progress-bar {
|
|
1335
|
+
position: absolute;
|
|
1336
|
+
inset: 0 auto 0 0;
|
|
1337
|
+
width: 0;
|
|
1338
|
+
border-radius: inherit;
|
|
1339
|
+
background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
|
|
1340
|
+
transition: width 0.7s ease;
|
|
1341
|
+
}
|
|
1342
|
+
.smart-report-progress-foot {
|
|
1343
|
+
margin-top: 9px;
|
|
1344
|
+
font-size: 11px;
|
|
1345
|
+
line-height: 1.5;
|
|
1346
|
+
opacity: 0.58;
|
|
1347
|
+
}
|
|
1348
|
+
.smart-report-style-options {
|
|
1349
|
+
display: grid;
|
|
1350
|
+
gap: 10px;
|
|
1351
|
+
}
|
|
1352
|
+
.smart-report-style-option {
|
|
1353
|
+
width: 100%;
|
|
1354
|
+
display: flex;
|
|
1355
|
+
flex-direction: column;
|
|
1356
|
+
gap: 6px;
|
|
1357
|
+
padding: 12px 14px;
|
|
1358
|
+
border: 1px solid var(--border);
|
|
1359
|
+
border-radius: 6px;
|
|
1360
|
+
background: transparent;
|
|
1361
|
+
color: var(--foreground);
|
|
1362
|
+
text-align: left;
|
|
1363
|
+
cursor: pointer;
|
|
1364
|
+
transition: background 0.15s, border-color 0.15s;
|
|
1365
|
+
}
|
|
1366
|
+
.smart-report-style-option:hover,
|
|
1367
|
+
.smart-report-style-option.active {
|
|
1368
|
+
border-color: var(--foreground);
|
|
1369
|
+
background: var(--ink-8);
|
|
1370
|
+
}
|
|
1371
|
+
.smart-report-style-title {
|
|
1372
|
+
font-size: 13px;
|
|
1373
|
+
font-weight: 500;
|
|
1374
|
+
}
|
|
1375
|
+
.smart-report-style-desc {
|
|
1376
|
+
font-size: 12px;
|
|
1377
|
+
line-height: 1.6;
|
|
1378
|
+
opacity: 0.68;
|
|
1379
|
+
}
|
|
1380
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1381
|
+
.smart-report-progress-bar {
|
|
1382
|
+
transition: none;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1184
1386
|
/* ── Toast ── */
|
|
1185
1387
|
.toast {
|
|
1186
1388
|
position: fixed;
|