@floless/app 0.84.0 → 0.86.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/floless-server.cjs +2180 -791
- package/dist/schemas/steel.takeoff.v1.schema.json +34 -4
- package/dist/skills/floless-app-knowledge/SKILL.md +206 -0
- package/dist/skills/floless-app-knowledge/references/schema.md +132 -0
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +380 -28
- package/dist/skills/floless-app-workflows/SKILL.md +33 -7
- package/dist/skills/floless-app-workflows/references/dev-server-and-run-trace.md +2 -1
- package/dist/skills/floless-app-workflows/references/exec-contract.md +1 -1
- package/dist/skills/floless-app-workflows/references/workspace-data.md +111 -0
- package/dist/skills/reading-structural-drawings/SKILL.md +102 -1
- package/dist/skills/steel-drawing-abbreviations/SKILL.md +33 -1
- package/dist/templates/floless-workspace-read.flo +161 -0
- package/dist/templates/steel-model.flo +6 -0
- package/dist/templates/vectorize.flo +6 -0
- package/dist/web/analytics.js +31 -0
- package/dist/web/app.css +330 -15
- package/dist/web/aware.js +488 -54
- package/dist/web/grid-core.js +40 -6
- package/dist/web/index.html +60 -11
- package/dist/web/steel-3d-view.js +117 -20
- package/dist/web/steel-editor.html +1424 -294
- package/dist/web/steel-filter.html +3 -1
- package/dist/web/vector-3d.html +3 -3
- package/dist/web/vector-editor.html +41 -12
- package/dist/web/workspaces.js +1307 -78
- package/package.json +1 -1
package/dist/web/app.css
CHANGED
|
@@ -1237,6 +1237,17 @@
|
|
|
1237
1237
|
.modal-field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
|
|
1238
1238
|
.modal-field input:focus,
|
|
1239
1239
|
.modal-field textarea:focus { border-color: var(--accent); }
|
|
1240
|
+
/* Themed picker inside a modal field (workspace-project / enum inputs). Reuses the
|
|
1241
|
+
.wf-combo/.wf-popover/.wf-option language, but the combo is full-width and its
|
|
1242
|
+
popover flows IN-LINE (position:static) so the modal body's scroll can't clip it. */
|
|
1243
|
+
.wf-combo.fm-select { display: block; min-width: 0; width: 100%; }
|
|
1244
|
+
.fm-select .wf-trigger { width: 100%; }
|
|
1245
|
+
.fm-select .fm-select-label[data-empty] { color: var(--text-dim); }
|
|
1246
|
+
.fm-select .fm-select-popover { position: static; margin-top: 6px; max-width: none;
|
|
1247
|
+
box-shadow: none; animation: none; }
|
|
1248
|
+
.fm-select .fm-select-list { max-height: 240px; }
|
|
1249
|
+
.fm-select .fm-select-note { margin-top: 7px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
|
|
1250
|
+
.fm-select .fm-select-note strong { color: var(--text); font-weight: 600; }
|
|
1240
1251
|
/* Consent checkbox (fork liability terms) — inline label + fully themed box (no native
|
|
1241
1252
|
default leaks the dark baseline). Custom checkmark via clip-path, accent on check. */
|
|
1242
1253
|
.modal-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 2px 0 4px; }
|
|
@@ -1651,11 +1662,61 @@
|
|
|
1651
1662
|
}
|
|
1652
1663
|
.req-copy:hover { color: var(--text); background: var(--surface); }
|
|
1653
1664
|
.req-del:hover { color: var(--err); border-color: var(--err); }
|
|
1665
|
+
/* Stands in for the ✕ on a lifecycle-owned request (knowledge-organize): it clears itself via its
|
|
1666
|
+
own finish/fail POST, so no manual clear is offered. Muted text, never a dead-looking button.
|
|
1667
|
+
Wraps rather than truncating — a clipped explanation explains nothing. */
|
|
1668
|
+
.req-lifecycle { align-self: center; font-size: 10px; font-style: italic; color: var(--text-dim);
|
|
1669
|
+
max-width: 92px; text-align: right; line-height: 1.3; }
|
|
1654
1670
|
/* "Clear all" is destructive → float it away from the safe Close button, with the
|
|
1655
1671
|
danger colour surfacing only on hover (low-stakes queue, so no confirm step). */
|
|
1656
1672
|
#requests-clear { margin-right: auto; }
|
|
1657
1673
|
#requests-clear:hover { color: var(--err); border-color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); }
|
|
1658
1674
|
|
|
1675
|
+
.modal.request-help { width: 520px; max-width: 92vw; }
|
|
1676
|
+
.request-help-steps {
|
|
1677
|
+
display: flex;
|
|
1678
|
+
flex-direction: column;
|
|
1679
|
+
gap: 8px;
|
|
1680
|
+
margin: 14px 0;
|
|
1681
|
+
}
|
|
1682
|
+
.request-help-step {
|
|
1683
|
+
display: grid;
|
|
1684
|
+
grid-template-columns: 24px 1fr;
|
|
1685
|
+
gap: 10px;
|
|
1686
|
+
align-items: center;
|
|
1687
|
+
padding: 9px 10px;
|
|
1688
|
+
border: 1px solid var(--border);
|
|
1689
|
+
border-radius: 6px;
|
|
1690
|
+
background: var(--surface-2);
|
|
1691
|
+
}
|
|
1692
|
+
.request-help-step span {
|
|
1693
|
+
display: inline-flex;
|
|
1694
|
+
align-items: center;
|
|
1695
|
+
justify-content: center;
|
|
1696
|
+
width: 22px;
|
|
1697
|
+
height: 22px;
|
|
1698
|
+
border-radius: 999px;
|
|
1699
|
+
border: 1px solid var(--border-strong);
|
|
1700
|
+
color: var(--accent);
|
|
1701
|
+
font-family: var(--mono);
|
|
1702
|
+
font-size: 11px;
|
|
1703
|
+
line-height: 1;
|
|
1704
|
+
background: var(--surface);
|
|
1705
|
+
}
|
|
1706
|
+
.request-help-step p {
|
|
1707
|
+
margin: 0;
|
|
1708
|
+
color: var(--text);
|
|
1709
|
+
font-size: 12.5px;
|
|
1710
|
+
line-height: 1.4;
|
|
1711
|
+
}
|
|
1712
|
+
.request-help-note {
|
|
1713
|
+
color: var(--text-dim);
|
|
1714
|
+
font-size: 11px;
|
|
1715
|
+
line-height: 1.5;
|
|
1716
|
+
border-left: 2px solid var(--border-strong);
|
|
1717
|
+
padding-left: 10px;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1659
1720
|
/* "Don't save" in the unsaved-changes dialog: left-pushed, neutral at rest,
|
|
1660
1721
|
destructive only on hover — same restraint as the Requests "Clear all". */
|
|
1661
1722
|
#confirm-dont-save { margin-right: auto; }
|
|
@@ -1895,6 +1956,8 @@
|
|
|
1895
1956
|
.wf-act.act-edit:hover { color: var(--accent); background: var(--accent-soft); }
|
|
1896
1957
|
.wf-act.act-dup:hover { color: var(--text); border-color: var(--border-strong); }
|
|
1897
1958
|
.wf-act.act-del:hover { color: var(--err); background: rgba(248, 113, 113, 0.1); border-color: var(--err); }
|
|
1959
|
+
/* Archive is non-destructive/recoverable (unlike Delete) — warn tint, not err. */
|
|
1960
|
+
.wf-act.act-archive:hover { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: var(--warn); }
|
|
1898
1961
|
.wf-empty-search { color: var(--text-dim); font-style: italic; font-size: 12px; padding: 16px 10px; text-align: center; }
|
|
1899
1962
|
.wf-empty-search[hidden] { display: none; }
|
|
1900
1963
|
|
|
@@ -2532,9 +2595,37 @@ body {
|
|
|
2532
2595
|
.tweak-btn[hidden] { display: none; }
|
|
2533
2596
|
|
|
2534
2597
|
/* Footer "requests" pill — lights up when intents are waiting for the AI. */
|
|
2535
|
-
.stat-requests { cursor: pointer; }
|
|
2598
|
+
.stat-requests { cursor: pointer; border-radius: 4px; }
|
|
2536
2599
|
.stat-requests.has-pending .stat-val { color: var(--warn); font-weight: 600; }
|
|
2537
2600
|
.stat-requests.has-pending { text-shadow: 0 0 8px color-mix(in srgb, var(--warn) 40%, transparent); }
|
|
2601
|
+
/* A landed request needs to be noticeable for long enough to teach the footer
|
|
2602
|
+
affordance. Keep it in-token: shake + warm glow, then settle into has-pending. */
|
|
2603
|
+
@keyframes req-pulse-shake {
|
|
2604
|
+
0%, 100% { transform: translateX(0) scale(1); }
|
|
2605
|
+
6% { transform: translateX(-2px) scale(1.04); }
|
|
2606
|
+
12% { transform: translateX(3px) scale(1.08); }
|
|
2607
|
+
18% { transform: translateX(-3px) scale(1.08); }
|
|
2608
|
+
24% { transform: translateX(2px) scale(1.06); }
|
|
2609
|
+
32% { transform: translateX(-1px) scale(1.04); }
|
|
2610
|
+
44% { transform: translateX(0) scale(1.08); }
|
|
2611
|
+
58% { transform: translateX(0) scale(1.03); }
|
|
2612
|
+
}
|
|
2613
|
+
@keyframes req-pulse-glow {
|
|
2614
|
+
0% { text-shadow: 0 0 0 transparent; }
|
|
2615
|
+
18% { text-shadow: 0 0 18px var(--warn); }
|
|
2616
|
+
55% { text-shadow: 0 0 14px color-mix(in srgb, var(--warn) 70%, transparent); }
|
|
2617
|
+
100% { text-shadow: 0 0 8px color-mix(in srgb, var(--warn) 40%, transparent); }
|
|
2618
|
+
}
|
|
2619
|
+
.stat-requests.req-pulse {
|
|
2620
|
+
animation: req-pulse-shake 2.1s cubic-bezier(.36,.07,.19,.97);
|
|
2621
|
+
transform-origin: center;
|
|
2622
|
+
background: color-mix(in srgb, var(--warn) 9%, transparent);
|
|
2623
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 35%, transparent), 0 0 18px color-mix(in srgb, var(--warn) 28%, transparent);
|
|
2624
|
+
}
|
|
2625
|
+
.stat-requests.req-pulse .stat-val { animation: req-pulse-glow 2.1s ease-out; }
|
|
2626
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2627
|
+
.stat-requests.req-pulse, .stat-requests.req-pulse .stat-val { animation: none; }
|
|
2628
|
+
}
|
|
2538
2629
|
|
|
2539
2630
|
/* Library: agent rows expand to their commands; each command can be saved. */
|
|
2540
2631
|
.lib-commands { margin: 6px 0 2px; padding-left: 4px; border-left: 2px solid var(--border); }
|
|
@@ -3322,26 +3413,33 @@ body {
|
|
|
3322
3413
|
.mode-switch button.active { background:var(--accent-soft); color:var(--accent-bright); }
|
|
3323
3414
|
|
|
3324
3415
|
/* Mode gating: Workflows chrome hides wholesale in Workspaces (hidden, never disabled).
|
|
3325
|
-
≡ keeps only app-wide items; Dashboard is Workflows-scoped (spec §2).
|
|
3416
|
+
≡ keeps only app-wide items; Dashboard is Workflows-scoped (spec §2).
|
|
3417
|
+
#guide-beacon is NOT hidden here — it's the ONE shared control that serves both modes:
|
|
3418
|
+
aware.js repaints it as the Workspaces document-guide (drop → review → approve → export)
|
|
3419
|
+
for the open project, and toggles its `hidden` attribute in JS (hidden on the landing). */
|
|
3326
3420
|
.app.mode-workspaces .controls > label,
|
|
3327
|
-
|
|
3328
|
-
.
|
|
3421
|
+
/* #wf-combo (by ID, not .wf-combo by class): the project picker below reuses the
|
|
3422
|
+
.wf-combo/.wf-popover/etc classes for visual parity and must NOT be caught by this
|
|
3423
|
+
rule — it's already hidden in Workflows mode via #ws-spine's own `hidden` attribute. */
|
|
3424
|
+
.app.mode-workspaces #wf-combo, .app.mode-workspaces #wf-update, .app.mode-workspaces #wf-forked,
|
|
3425
|
+
.app.mode-workspaces #run-state,
|
|
3329
3426
|
.app.mode-workspaces #restore-btn, .app.mode-workspaces #customize-btn,
|
|
3330
3427
|
.app.mode-workspaces #compile-btn, .app.mode-workspaces #sim-btn,
|
|
3331
3428
|
.app.mode-workspaces #run-btn, .app.mode-workspaces #stop-run-btn,
|
|
3332
3429
|
.app.mode-workspaces #ext-badge,
|
|
3333
|
-
.
|
|
3334
|
-
.
|
|
3335
|
-
.
|
|
3336
|
-
.
|
|
3337
|
-
.
|
|
3338
|
-
.
|
|
3339
|
-
.
|
|
3340
|
-
.
|
|
3341
|
-
.
|
|
3430
|
+
body.mode-workspaces #menu .menu-item[data-action="view-switch"],
|
|
3431
|
+
body.mode-workspaces #menu .menu-item[data-action="find"],
|
|
3432
|
+
body.mode-workspaces #menu .menu-item[data-action="open"],
|
|
3433
|
+
body.mode-workspaces #menu .menu-item[data-action="save"],
|
|
3434
|
+
body.mode-workspaces #menu .menu-item[data-action="new-workflow"],
|
|
3435
|
+
body.mode-workspaces #menu .menu-item[data-action="import"],
|
|
3436
|
+
body.mode-workspaces #menu .menu-item[data-action="agents"],
|
|
3437
|
+
body.mode-workspaces #menu .menu-item[data-action="graft"],
|
|
3438
|
+
body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
3342
3439
|
.app.mode-workspaces .topology, .app.mode-workspaces .canvas-toolbar,
|
|
3343
3440
|
.app.mode-workspaces .hint, .app.mode-workspaces .fav-bar, .app.mode-workspaces .dashboard,
|
|
3344
3441
|
.app.mode-workspaces .notes-strip, .app.mode-workspaces .find-overlay,
|
|
3442
|
+
.app.mode-workspaces #canvas-drop-target, .app.mode-workspaces #wf-templates-stats,
|
|
3345
3443
|
/* the ws surfaces carry their own headings — hide the canvas's "Canvas · transparency layer" label */
|
|
3346
3444
|
.app.mode-workspaces .canvas > .panel-label { display:none !important; }
|
|
3347
3445
|
/* …but Find in model reuses that overlay — un-hide it while open (Ctrl+F searches editor members). */
|
|
@@ -3358,6 +3456,8 @@ body {
|
|
|
3358
3456
|
.ws-landing { flex:1; min-height:0; overflow-y:auto; padding:6px 20px 24px; }
|
|
3359
3457
|
.ws-head h2 { font-size:17px; font-weight:650; letter-spacing:.01em; }
|
|
3360
3458
|
.ws-head .ws-sub { color:var(--text-muted); font-size:12px; margin:2px 0 14px; }
|
|
3459
|
+
.ws-create-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(220px,260px));
|
|
3460
|
+
align-content:start; align-items:stretch; margin-bottom:14px; }
|
|
3361
3461
|
.ws-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); align-content:start; }
|
|
3362
3462
|
.ws-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow:hidden;
|
|
3363
3463
|
cursor:pointer; transition:all .15s; text-align:left; padding:0; display:flex; flex-direction:column; }
|
|
@@ -3367,8 +3467,8 @@ body {
|
|
|
3367
3467
|
.ws-card .ws-kind { position:absolute; top:8px; left:8px; font-size:9px; text-transform:uppercase; letter-spacing:.1em;
|
|
3368
3468
|
color:var(--accent-bright); background:var(--surface); border:1px solid var(--accent-dim); padding:2px 7px; border-radius:4px; }
|
|
3369
3469
|
.ws-card .ws-body { padding:11px 13px 13px; display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
|
|
3370
|
-
.ws-card .ws-name { font-size:13px; font-weight:600; color:var(--text); }
|
|
3371
|
-
.ws-card .ws-meta { font-size:11px; color:var(--text-muted); margin-top:4px; }
|
|
3470
|
+
.ws-card .ws-name { display:block; font-size:13px; font-weight:600; color:var(--text); }
|
|
3471
|
+
.ws-card .ws-meta { display:block; font-size:11px; color:var(--text-muted); margin-top:4px; }
|
|
3372
3472
|
.ws-card .ws-meta .t { font-family:var(--mono); font-size:10px; color:var(--text-dim); }
|
|
3373
3473
|
.ws-card .ws-kebab { background:transparent; border:1px solid transparent; color:var(--text-dim);
|
|
3374
3474
|
padding:2px 7px; border-radius:4px; font-size:14px; line-height:1; flex:none; }
|
|
@@ -3377,11 +3477,27 @@ body {
|
|
|
3377
3477
|
display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; cursor:pointer;
|
|
3378
3478
|
color:var(--text-muted); font-size:12px; width:100%; text-align:center; padding:12px; }
|
|
3379
3479
|
.ws-seed:hover { background:var(--accent-soft); border-color:var(--accent); }
|
|
3480
|
+
.ws-seed:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
3380
3481
|
.ws-seed .plus { font-size:24px; color:var(--accent); line-height:1; }
|
|
3482
|
+
/* Drop-a-drawing seed card: a click-to-pick + drag/drop target. .drag-over lights it up
|
|
3483
|
+
while a file hovers (same intent as the editor's .canvas-drop-target.active). */
|
|
3484
|
+
.ws-seed-drop.drag-over { background:var(--accent-soft); border-color:var(--accent); border-style:solid; }
|
|
3485
|
+
.ws-seed .ws-seed-headline { font-size:12.5px; font-weight:600; color:var(--text); line-height:1.35; }
|
|
3486
|
+
.ws-seed .ws-seed-sub { font-size:11px; color:var(--text-dim); line-height:1.4; max-width:220px; }
|
|
3487
|
+
.ws-seed .ws-seed-capability { font-size:11px; font-weight:600; color:var(--text-muted); line-height:1.35; max-width:220px; }
|
|
3381
3488
|
.ws-empty-note { color:var(--text-dim); font-size:12px; margin-top:10px; }
|
|
3382
3489
|
|
|
3383
3490
|
/* open project */
|
|
3384
3491
|
.ws-project { flex:1; min-height:0; display:flex; flex-direction:column; }
|
|
3492
|
+
/* Source-step placeholder — a filter-less workspace app (vectorize) shows this centered pane where
|
|
3493
|
+
steel loads its filter iframe. Muted + baseline-faithful; guides forward (not a dead control).
|
|
3494
|
+
The [hidden] guard is load-bearing: display:flex would otherwise override the hidden attribute. */
|
|
3495
|
+
.ws-source-placeholder { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:24px; }
|
|
3496
|
+
.ws-source-placeholder[hidden] { display:none; }
|
|
3497
|
+
.ws-source-inner { max-width:440px; text-align:center; }
|
|
3498
|
+
.ws-source-ico { font-size:34px; color:var(--accent); display:block; margin-bottom:12px; line-height:1; }
|
|
3499
|
+
.ws-source-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:6px; }
|
|
3500
|
+
.ws-source-sub { font-size:12px; color:var(--text-dim); line-height:1.55; }
|
|
3385
3501
|
.ws-crumb-row { padding:12px 14px 8px; display:flex; justify-content:space-between; align-items:center; }
|
|
3386
3502
|
.ws-crumb { font-size:12px; color:var(--text-muted); }
|
|
3387
3503
|
.ws-crumb-link { background:none; border:none; padding:0; color:var(--text-muted); font-size:12px; cursor:pointer; }
|
|
@@ -3581,3 +3697,202 @@ tr.hist-diff-row[hidden] { display:none; }
|
|
|
3581
3697
|
.hd-base-opt:hover { background:var(--surface-2); color:var(--text); }
|
|
3582
3698
|
.hd-base-opt.sel { color:var(--accent-bright); }
|
|
3583
3699
|
.hd-base-opt .hd-base-meta { font-family:var(--mono); font-size:10px; color:var(--text-dim); }
|
|
3700
|
+
|
|
3701
|
+
/* ── Workspaces ▸ Knowledge (Slice 8 Stage B) ──────────────────────────────────
|
|
3702
|
+
The per-project Knowledge Base step. Stage B ships the REFERENCES column only
|
|
3703
|
+
(drop → useAsKb toggle → remove → Organize); the graph + note columns land in
|
|
3704
|
+
Stage C/D, so the rest of the split shows an intentional forthcoming placeholder.
|
|
3705
|
+
Locked baseline: no new fonts/colors — every value is an existing token. The remove
|
|
3706
|
+
confirm REUSES .hist-confirm (rollback's themed popover) rather than inventing one. */
|
|
3707
|
+
.ws-knowledge { flex:1; min-height:0; display:flex; flex-direction:column; }
|
|
3708
|
+
.ws-knowledge[hidden] { display:none; }
|
|
3709
|
+
.kb-split { flex:1; min-height:0; display:grid; grid-template-columns:272px minmax(0,1fr);
|
|
3710
|
+
gap:1px; background:var(--border); }
|
|
3711
|
+
.kb-col { background:var(--surface); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
|
|
3712
|
+
.kb-head { padding:12px 14px 9px; font-size:10px; color:var(--text-dim); text-transform:uppercase;
|
|
3713
|
+
letter-spacing:.16em; display:flex; justify-content:space-between; align-items:center; flex:none; }
|
|
3714
|
+
.kb-head .h-end { font-style:italic; text-transform:none; letter-spacing:normal; font-size:10px; color:var(--text-dim); }
|
|
3715
|
+
|
|
3716
|
+
/* References column — a scroll container, so it gets EXPLICIT themed scrollbars: app.css's global
|
|
3717
|
+
::-webkit rule doesn't carry Firefox's scrollbar-width/color. `position:relative` anchors the
|
|
3718
|
+
remove-confirm popover HERE (not on .kb-col, whose overflow:hidden would clip it) — exactly how
|
|
3719
|
+
.ws-history anchors the rollback confirm. */
|
|
3720
|
+
.kb-refs-body { flex:1; min-height:0; position:relative; overflow-y:auto; padding:0 12px 10px;
|
|
3721
|
+
scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
|
|
3722
|
+
.kb-refs-body::-webkit-scrollbar { width:10px; }
|
|
3723
|
+
.kb-refs-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
|
|
3724
|
+
.kb-refs-body::-webkit-scrollbar-track { background:transparent; }
|
|
3725
|
+
/* .hist-confirm is tuned for the wide History table; 264px would overflow this 272px rail. */
|
|
3726
|
+
.kb-refs-body .hist-confirm { width:auto; max-width:228px; }
|
|
3727
|
+
/* Remove has no undo (re-drop the file) — it earns the existing --err token. Rollback stays blue
|
|
3728
|
+
because it is explicitly non-destructive ("History isn't erased"). No new swatch. */
|
|
3729
|
+
.hist-confirm .hc-go.danger { background:var(--err); border-color:var(--err); }
|
|
3730
|
+
.hist-confirm .hc-go.danger:hover { background:var(--err); border-color:var(--err);
|
|
3731
|
+
box-shadow:0 0 14px color-mix(in srgb, var(--err) 45%, transparent); }
|
|
3732
|
+
|
|
3733
|
+
.kb-drop { display:block; width:100%; border:2px dashed var(--accent-dim); border-radius:8px;
|
|
3734
|
+
padding:16px 12px; text-align:center; color:var(--text-muted); background:transparent;
|
|
3735
|
+
margin-bottom:12px; cursor:pointer; transition:all .15s; font:inherit; }
|
|
3736
|
+
.kb-drop:hover { background:var(--accent-soft); border-color:var(--accent); }
|
|
3737
|
+
.kb-drop.drag-over { background:var(--accent-soft); border-color:var(--accent); border-style:solid; }
|
|
3738
|
+
.kb-drop:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
3739
|
+
.kb-drop .di { font-size:20px; color:var(--accent); display:block; margin-bottom:5px; }
|
|
3740
|
+
.kb-drop .dt { font-size:12px; color:var(--text); display:block; }
|
|
3741
|
+
.kb-drop .ds { font-size:10.5px; color:var(--text-dim); margin-top:3px; display:block; }
|
|
3742
|
+
.kb-empty { color:var(--text-dim); font-style:italic; text-align:center; padding:10px 4px; font-size:11.5px; line-height:1.5; }
|
|
3743
|
+
|
|
3744
|
+
.kb-src { display:flex; align-items:center; gap:9px; padding:8px 9px; border:1px solid var(--border);
|
|
3745
|
+
border-radius:6px; margin-bottom:7px; background:var(--surface); transition:all .15s; }
|
|
3746
|
+
.kb-src:hover { border-color:var(--border-strong); }
|
|
3747
|
+
/* An excluded source dims its CONTENT only. Dimming the whole row would fade the toggle and ✕ —
|
|
3748
|
+
live controls rendered to look disabled. The switch knob already carries the on/off state. */
|
|
3749
|
+
.kb-src.off .kb-fico, .kb-src.off .kb-fbody { opacity:.5; }
|
|
3750
|
+
.kb-src.state-error { border-left:3px solid var(--err); }
|
|
3751
|
+
.kb-fico { width:26px; height:26px; border-radius:5px; background:var(--surface-2); border:1px solid var(--border-strong);
|
|
3752
|
+
display:flex; align-items:center; justify-content:center; font-size:12px; flex:none; }
|
|
3753
|
+
.kb-fico.pdf { color:var(--err); } .kb-fico.img { color:var(--info); }
|
|
3754
|
+
.kb-fico.sheet { color:var(--ok); } .kb-fico.txt { color:var(--text-muted); }
|
|
3755
|
+
.kb-fbody { flex:1; min-width:0; }
|
|
3756
|
+
/* The filename is a BUTTON (it opens the preview), so it must reset the global `select, button` base
|
|
3757
|
+
at app.css:143 — otherwise it paints as a grey surface-2 button. Rest state carries a quiet
|
|
3758
|
+
underline so it reads as interactive before hover, without shouting link-blue across 50 rows. */
|
|
3759
|
+
.kb-fname { font:inherit; background:none; border:none; padding:0; text-align:left; cursor:pointer;
|
|
3760
|
+
display:block; width:100%; font-size:12px; color:var(--text); white-space:nowrap; overflow:hidden;
|
|
3761
|
+
text-overflow:ellipsis; text-decoration:underline; text-underline-offset:2px;
|
|
3762
|
+
text-decoration-color:color-mix(in srgb, var(--text-dim) 55%, transparent); }
|
|
3763
|
+
.kb-fname:hover { color:var(--accent-bright); text-decoration-color:color-mix(in srgb, var(--accent-bright) 70%, transparent); }
|
|
3764
|
+
.kb-fname:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
|
|
3765
|
+
/* aria-current (NOT aria-selected — invalid on a generic role) marks the row now in the viewer. */
|
|
3766
|
+
.kb-src[aria-current="true"] { border-left:3px solid var(--accent); background:var(--accent-soft); }
|
|
3767
|
+
.kb-src[aria-current="true"] .kb-fname { color:var(--accent-bright); font-weight:600; text-decoration-color:var(--accent-bright); }
|
|
3768
|
+
.kb-fmeta { font-size:10px; color:var(--text-dim); font-family:var(--mono); margin-top:2px;
|
|
3769
|
+
display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
|
|
3770
|
+
.kb-err { font-size:10.5px; color:var(--text-muted); line-height:1.45; margin-top:4px; }
|
|
3771
|
+
.kb-err b { color:var(--err); font-weight:600; }
|
|
3772
|
+
/* Chip borders derive their alpha FROM the token (color-mix, as --accent-glow/--accent-soft do).
|
|
3773
|
+
The mockup's rgba(74,222,128,…) literals are the pre-shadcn palette and no longer match the live
|
|
3774
|
+
--ok/--warn/--err, so hardcoding them would drift off-palette. */
|
|
3775
|
+
.kb-chip { font-size:9px; font-family:var(--mono); padding:1px 6px; border-radius:20px;
|
|
3776
|
+
border:1px solid var(--border-strong); letter-spacing:.02em; white-space:nowrap; }
|
|
3777
|
+
.kb-chip.ok { color:var(--ok); border-color:color-mix(in srgb, var(--ok) 30%, transparent); }
|
|
3778
|
+
.kb-chip.new { color:var(--warn); border-color:color-mix(in srgb, var(--warn) 30%, transparent); }
|
|
3779
|
+
.kb-chip.err { color:var(--err); border-color:color-mix(in srgb, var(--err) 35%, transparent); }
|
|
3780
|
+
.kb-chip.run { color:var(--accent-bright); border-color:var(--accent-dim); }
|
|
3781
|
+
|
|
3782
|
+
/* useAsKb — a real focusable switch (role=switch + aria-checked), not a styled div. */
|
|
3783
|
+
.kb-toggle { width:30px; height:17px; border-radius:20px; background:var(--surface-3);
|
|
3784
|
+
border:1px solid var(--border-strong); position:relative; cursor:pointer; flex:none;
|
|
3785
|
+
transition:all .15s; padding:0; }
|
|
3786
|
+
.kb-toggle::after { content:''; position:absolute; top:1px; left:1px; width:13px; height:13px;
|
|
3787
|
+
border-radius:50%; background:var(--text-dim); transition:all .15s; }
|
|
3788
|
+
.kb-toggle[aria-checked="true"] { background:var(--accent-soft); border-color:var(--accent-dim); }
|
|
3789
|
+
.kb-toggle[aria-checked="true"]::after { left:14px; background:var(--accent-bright); }
|
|
3790
|
+
.kb-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
3791
|
+
.kb-x { color:var(--text-dim); font-size:13px; padding:2px 4px; border:none; background:none;
|
|
3792
|
+
cursor:pointer; flex:none; border-radius:4px; line-height:1; }
|
|
3793
|
+
.kb-x:hover { color:var(--err); }
|
|
3794
|
+
.kb-x:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
|
|
3795
|
+
|
|
3796
|
+
.kb-refs-foot { flex:none; border-top:1px solid var(--border); padding:11px 12px;
|
|
3797
|
+
display:flex; flex-direction:column; gap:9px; }
|
|
3798
|
+
/* Organize is the panel's one persistent primary action — it stays VISIBLE and explains itself via
|
|
3799
|
+
data-tip rather than vanishing. aria-disabled (not the `disabled` attribute) keeps it hoverable and
|
|
3800
|
+
focusable so that tooltip actually reaches the user, while still reading as inert to assistive tech.
|
|
3801
|
+
The .primary recipe is re-declared scoped here (as .contract-editor-bar .primary does) — the global
|
|
3802
|
+
`select, button` base (app.css:143) would otherwise paint it a plain grey surface-2 button. */
|
|
3803
|
+
.kb-refs-foot .primary { background:var(--accent); color:#fff; border:1px solid var(--accent);
|
|
3804
|
+
padding:7px 14px; border-radius:6px; font-size:12.5px; font-weight:600; cursor:pointer; }
|
|
3805
|
+
.kb-refs-foot .primary:hover { background:var(--accent-bright); border-color:var(--accent-bright); box-shadow:0 0 14px var(--accent-glow); }
|
|
3806
|
+
.kb-organize { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; }
|
|
3807
|
+
.kb-organize[aria-disabled="true"] { opacity:.6; cursor:default; background:var(--surface-2);
|
|
3808
|
+
border-color:var(--border-strong); color:var(--text-muted); box-shadow:none; }
|
|
3809
|
+
.kb-organize[aria-disabled="true"]:hover { background:var(--surface-2); border-color:var(--border-strong); box-shadow:none; }
|
|
3810
|
+
.kb-organize:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
3811
|
+
.kb-status { font-size:10.5px; color:var(--text-muted); font-family:var(--mono); line-height:1.5; }
|
|
3812
|
+
.kb-status .ok { color:var(--ok); } .kb-status .err { color:var(--err); }
|
|
3813
|
+
.kb-pending { display:flex; align-items:flex-start; gap:8px; font-size:11px; color:var(--accent-bright); line-height:1.45; }
|
|
3814
|
+
/* Queued ≠ running: a static glyph until the terminal AI actually calls /start. Past the stale
|
|
3815
|
+
threshold the spinner is replaced by a warn glyph — an endlessly spinning wheel next to
|
|
3816
|
+
"might not be running" is a motion-language lie. Amber, not red: nothing has failed. */
|
|
3817
|
+
.kb-pending .kb-ico { flex:none; font-size:11px; line-height:1.4; }
|
|
3818
|
+
.kb-pending.queued { color:var(--text-muted); }
|
|
3819
|
+
.kb-pending.stale { color:var(--warn); }
|
|
3820
|
+
.kb-pending .kb-stale { color:var(--warn); font-style:italic; }
|
|
3821
|
+
.kb-spin { width:11px; height:11px; border:2px solid var(--accent-dim); border-top-color:var(--accent-bright);
|
|
3822
|
+
border-radius:50%; animation:spin .8s linear infinite; flex:none; }
|
|
3823
|
+
@media (prefers-reduced-motion: reduce) { .kb-spin { animation:none; } }
|
|
3824
|
+
|
|
3825
|
+
/* Stage C/D placeholder — reads as forthcoming, never as a broken blank canvas. */
|
|
3826
|
+
.kb-placeholder { background:var(--bg); display:flex; align-items:center; justify-content:center; padding:24px;
|
|
3827
|
+
overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
|
|
3828
|
+
.kb-placeholder::-webkit-scrollbar { width:10px; }
|
|
3829
|
+
.kb-placeholder::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
|
|
3830
|
+
.kb-placeholder::-webkit-scrollbar-track { background:transparent; }
|
|
3831
|
+
.kb-ph-inner { max-width:380px; text-align:center; }
|
|
3832
|
+
.kb-ph-ico { font-size:24px; color:var(--border-strong); display:block; margin-bottom:10px; }
|
|
3833
|
+
.kb-ph-title { font-size:13px; color:var(--text-muted); margin-bottom:6px; }
|
|
3834
|
+
.kb-ph-sub { font-size:11.5px; color:var(--text-dim); line-height:1.55; }
|
|
3835
|
+
|
|
3836
|
+
/* ── Stage B2: the source-file viewer ─────────────────────────────────────────
|
|
3837
|
+
The refs column and the viewer are separate grid items so a 3s poll tick can repaint the column
|
|
3838
|
+
without destroying an open PDF <iframe>. Both hosts are bare wrappers; their .kb-col child paints.
|
|
3839
|
+
Locked baseline: every COLOUR below is an existing token. The one literal is `#fff` on .primary,
|
|
3840
|
+
copied verbatim from the established .kb-refs-foot / .contract-editor-bar .primary recipe — there is
|
|
3841
|
+
no on-accent foreground token to reference instead. */
|
|
3842
|
+
.kb-refs-host, .kb-view-host { min-width:0; min-height:0; display:flex; flex-direction:column; }
|
|
3843
|
+
.kb-refs-host > *, .kb-view-host > * { flex:1; min-height:0; }
|
|
3844
|
+
.kb-viewer { background:var(--bg); }
|
|
3845
|
+
.kb-view-head { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px;
|
|
3846
|
+
padding:10px 14px; border-bottom:1px solid var(--border); background:var(--surface); }
|
|
3847
|
+
.kb-view-name { font-size:12.5px; color:var(--text); white-space:nowrap; overflow:hidden;
|
|
3848
|
+
text-overflow:ellipsis; min-width:0; }
|
|
3849
|
+
/* NOT .kb-x's hover→var(--err): that red is this pane's "destructive" signal for Remove. Closing a
|
|
3850
|
+
preview destroys nothing. */
|
|
3851
|
+
.kb-view-x { color:var(--text-dim); font-size:14px; padding:3px 6px; border:none; background:none;
|
|
3852
|
+
cursor:pointer; flex:none; border-radius:4px; line-height:1; }
|
|
3853
|
+
.kb-view-x:hover { color:var(--accent-bright); }
|
|
3854
|
+
.kb-view-x:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
|
|
3855
|
+
.kb-view-body { flex:1; min-height:0; display:flex; flex-direction:column; background:var(--bg); }
|
|
3856
|
+
|
|
3857
|
+
/* An <iframe> is tab-focusable, so it needs a visible focus ring like every other control here. */
|
|
3858
|
+
.kb-view-pdf { flex:1; width:100%; border:none; display:block; }
|
|
3859
|
+
.kb-view-pdf:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
|
|
3860
|
+
.kb-view-img-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center;
|
|
3861
|
+
padding:20px; overflow:hidden; }
|
|
3862
|
+
.kb-view-img { max-width:100%; max-height:100%; object-fit:contain; }
|
|
3863
|
+
|
|
3864
|
+
/* The text pane is the one new SCROLL CONTAINER, so it is themed explicitly — app.css's global
|
|
3865
|
+
::-webkit rule doesn't carry Firefox's scrollbar-width/color, and a native white bar against the
|
|
3866
|
+
dark theme is exactly the leak the house style forbids. */
|
|
3867
|
+
.kb-view-pre { flex:1; min-height:0; overflow:auto; margin:0; padding:14px; font-family:var(--mono);
|
|
3868
|
+
font-size:11.5px; line-height:1.55; color:var(--text); white-space:pre-wrap; word-break:break-word;
|
|
3869
|
+
scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
|
|
3870
|
+
.kb-view-pre::-webkit-scrollbar { width:10px; height:10px; }
|
|
3871
|
+
.kb-view-pre::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
|
|
3872
|
+
.kb-view-pre::-webkit-scrollbar-track { background:transparent; }
|
|
3873
|
+
/* The truncation notice is a SIBLING of the <pre> — the <pre> holds the user's literal bytes only. */
|
|
3874
|
+
.kb-view-note { flex:none; font-size:10.5px; color:var(--text-dim); font-family:var(--mono);
|
|
3875
|
+
padding:6px 14px; border-top:1px solid var(--border); }
|
|
3876
|
+
|
|
3877
|
+
.kb-view-msg { flex:1; min-height:0; display:flex; flex-direction:column; align-items:center;
|
|
3878
|
+
justify-content:center; text-align:center; padding:24px; gap:8px; }
|
|
3879
|
+
.kb-view-ico { font-size:24px; color:var(--border-strong); }
|
|
3880
|
+
.kb-view-ico.err { color:var(--warn); }
|
|
3881
|
+
.kb-view-msg-title { font-size:13px; color:var(--text-muted); }
|
|
3882
|
+
.kb-view-msg-sub { font-size:11.5px; color:var(--text-dim); line-height:1.55; max-width:340px; }
|
|
3883
|
+
.kb-view-act { display:flex; gap:8px; align-items:center; margin-top:6px; }
|
|
3884
|
+
/* Scoped .primary re-declaration, as .kb-refs-foot and .contract-editor-bar do. `.btn-primary` does
|
|
3885
|
+
not exist in this codebase. */
|
|
3886
|
+
.kb-view-host .primary { background:var(--accent); color:#fff; border:1px solid var(--accent);
|
|
3887
|
+
padding:6px 14px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; }
|
|
3888
|
+
.kb-view-host .primary:hover { background:var(--accent-bright); border-color:var(--accent-bright);
|
|
3889
|
+
box-shadow:0 0 14px var(--accent-glow); }
|
|
3890
|
+
.kb-view-host .primary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
3891
|
+
.kb-view-remove { background:var(--surface-2); color:var(--text-muted); border:1px solid var(--border-strong);
|
|
3892
|
+
padding:6px 14px; border-radius:6px; font-size:12px; cursor:pointer; }
|
|
3893
|
+
.kb-view-remove:hover { color:var(--err); border-color:color-mix(in srgb, var(--err) 45%, transparent); }
|
|
3894
|
+
.kb-view-remove:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
|
|
3895
|
+
/* Pane-scale variant of .kb-spin — same motion language, same reduced-motion guard. */
|
|
3896
|
+
.kb-view-spin { width:26px; height:26px; border:3px solid var(--accent-dim); border-top-color:var(--accent-bright);
|
|
3897
|
+
border-radius:50%; animation:spin .8s linear infinite; }
|
|
3898
|
+
@media (prefers-reduced-motion: reduce) { .kb-view-spin { animation:none; } }
|