@floless/app 0.160.0 → 0.162.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.
Files changed (40) hide show
  1. package/aware-version-pin.mjs +43 -0
  2. package/dist/floless-server.cjs +126990 -120010
  3. package/dist/schemas/steel.model.v2.schema.json +23 -0
  4. package/dist/skills/floless-app-knowledge/SKILL.md +6 -5
  5. package/dist/skills/floless-app-rfi/SKILL.md +18 -5
  6. package/dist/skills/floless-app-steel-model/SKILL.md +28 -6
  7. package/dist/skills/floless-app-steel-takeoff/SKILL.md +579 -282
  8. package/dist/templates/floless-workspace-read.flo +9 -1
  9. package/dist/templates/steel-model.flo +6 -2
  10. package/dist/templates/viewer-3d-demo.flo +8 -2
  11. package/dist/web/app.css +198 -17
  12. package/dist/web/app.js +23 -0
  13. package/dist/web/aware.js +303 -54
  14. package/dist/web/chat-question-card.js +10 -3
  15. package/dist/web/chat.css +79 -5
  16. package/dist/web/chat.js +1513 -243
  17. package/dist/web/commands-drawing-check.js +1 -0
  18. package/dist/web/commands-filter.js +11 -0
  19. package/dist/web/commands-shell.js +467 -29
  20. package/dist/web/commands-steel.js +40 -38
  21. package/dist/web/drawing-check-editor.js +76 -3
  22. package/dist/web/index.html +46 -2
  23. package/dist/web/instructor.js +5 -3
  24. package/dist/web/leave-guard.js +12 -2
  25. package/dist/web/pages.js +43 -12
  26. package/dist/web/project-history.js +349 -0
  27. package/dist/web/project-reconciliation.js +1 -0
  28. package/dist/web/project-rfis.js +260 -21
  29. package/dist/web/startup-admission.js +53 -7
  30. package/dist/web/steel-3d-core.js +115 -6
  31. package/dist/web/steel-3d-view.js +61 -5
  32. package/dist/web/steel-editor.html +439 -118
  33. package/dist/web/steel-filter.html +139 -0
  34. package/dist/web/steel-model-v2-commands.js +3 -3
  35. package/dist/web/steel-model-v2-projection.js +132 -4
  36. package/dist/web/steel-plan-transform.js +78 -0
  37. package/dist/web/tool-updates.js +59 -3
  38. package/dist/web/workspaces.js +1553 -196
  39. package/launch.mjs +36 -5
  40. package/package.json +6 -4
@@ -1,5 +1,13 @@
1
1
  app: floless-workspace-read
2
- version: 0.1.0
2
+ version: 0.1.1
3
+ publisher: floless
4
+ update-mode: source-only
5
+ changelog:
6
+ - version: 0.1.1
7
+ summary: Review a compatible FloLess Workspace reader before compiling.
8
+ changes:
9
+ - Uses the FloLess Workspace 0.2 tool interface.
10
+ - Offers the unchanged older demo a backed-up source update; you press Compile afterwards to approve it.
3
11
  display-name: Read Approved Workspace Project
4
12
  description: |
5
13
  Reads an approved FloLess Workspace project's data inside a running workflow and
@@ -1,5 +1,5 @@
1
1
  app: steel-model
2
- version: 0.6.3
2
+ version: 0.6.4
3
3
  display-name: Steel Model
4
4
  publisher: floless
5
5
  module: steel-detailer
@@ -20,6 +20,10 @@ exposes-as-agent: false
20
20
  # Workflow changelog (FloLess-published). Newest first; the app shows entries newer than the
21
21
  # installed version when offering an update. Plain-English — it surfaces to the user.
22
22
  changelog:
23
+ - version: 0.6.4
24
+ summary: Approving a model works again on the newest AWARE
25
+ changes:
26
+ - "Fixed: on AWARE 0.163 and newer, approving a steel model failed and nothing was approved, because this workflow asked for an older version of the 3D viewer than the one AWARE now installs. The workflow now accepts the 3D viewer that comes with your AWARE, old or new. Your model, your steps and the 3D view look exactly as before."
23
27
  - version: 0.6.3
24
28
  summary: Your exported bill says which units it is in
25
29
  changes:
@@ -74,7 +78,7 @@ inputs:
74
78
  description: Minimum aggregate confidence the AI read aims for before handing you the editor (%).
75
79
  requires:
76
80
  - html-report@0.2.x
77
- - viewer-3d@0.1.0
81
+ - viewer-3d@0.1
78
82
  - file@1.0.x
79
83
  layout: linear
80
84
  nodes:
@@ -1,5 +1,5 @@
1
1
  app: viewer-3d-demo
2
- version: 0.1.0
2
+ version: 0.2.0
3
3
  display-name: 3D Viewer Demo
4
4
  description: |
5
5
  A self-contained demo of the viewer-3d agent — renders a small steel portal frame as an
@@ -7,8 +7,14 @@ description: |
7
7
  and a takeoff table). No Tekla model required: a single viewer-3d `render` node with an
8
8
  inline, domain-agnostic scene. Use it to preview the interactive 3D surface end to end.
9
9
  exposes-as-agent: false
10
+ # Workflow changelog. Newest first; plain English, it is what a person reads about this version.
11
+ changelog:
12
+ - version: 0.2.0
13
+ summary: Works with the 3D viewer that ships today
14
+ changes:
15
+ - "Fixed: the demo asked for the 3D viewer's older 0.1 release, so it could not be compiled once FloLess had installed the current 0.2 release. It now asks for 0.2, which draws this frame exactly as before."
10
16
  requires:
11
- - viewer-3d@0.1.x
17
+ - viewer-3d@0.2.x
12
18
  layout: linear
13
19
  nodes:
14
20
  # The viewer-3d render node IS the terminal: it returns the interactive HTML the viewer shows.
package/dist/web/app.css CHANGED
@@ -1628,23 +1628,27 @@
1628
1628
  justify-content: center;
1629
1629
  }
1630
1630
  .modal-backdrop.show { display: flex; animation: fade-in 0.15s ease-out; }
1631
- /* Keep F1's read-only Instructor narration visible while reviewing a Graft source.
1631
+ /* Keep F1's read-only Instructor narration visible while reviewing a Graft source, and while choosing how drawings are
1632
+ read into a model (#2521 row 7b, whose Model choice, tick and Queue read each explain themselves on `?`).
1632
1633
  Reserve space for the strip so it cannot cover the modal actions or scroll area. */
1633
- body:has(.app.has-instructor) #graft-modal.show {
1634
+ body:has(.app.has-instructor) #graft-modal.show, body:has(.app.has-instructor) #revision-build-modal.show {
1634
1635
  box-sizing: border-box;
1635
1636
  padding-bottom: 78px;
1636
1637
  }
1637
- body:has(.app.has-instructor) #graft-modal.show .modal.graft {
1638
+ body:has(.app.has-instructor) #graft-modal.show .modal.graft, body:has(.app.has-instructor) #revision-build-modal.show .rb-dialog {
1638
1639
  max-height: min(86vh, calc(100dvh - 102px));
1639
1640
  }
1640
- body:has(#graft-modal.show) .app.has-instructor #instructor {
1641
+ body:has(#graft-modal.show) .app.has-instructor #instructor, body:has(#revision-build-modal.show) .app.has-instructor #instructor {
1641
1642
  position: relative;
1642
1643
  z-index: 101;
1643
1644
  pointer-events: auto;
1644
1645
  }
1645
1646
  body:has(#graft-modal.show) #instructor button,
1646
1647
  body:has(#graft-modal.show) #instructor .ix-hint,
1647
- body:has(#graft-modal.show) #instructor .ix-ask-split { display: none; }
1648
+ body:has(#graft-modal.show) #instructor .ix-ask-split,
1649
+ body:has(#revision-build-modal.show) #instructor button,
1650
+ body:has(#revision-build-modal.show) #instructor .ix-hint,
1651
+ body:has(#revision-build-modal.show) #instructor .ix-ask-split { display: none; }
1648
1652
  #graft-instructor-note { display: none; }
1649
1653
  /* Directory decisions keep their conditional F1 guidance visible above this backdrop. */
1650
1654
  body:has(.app.has-instructor) #workspace-root-modal.show {
@@ -1916,7 +1920,7 @@
1916
1920
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
1917
1921
  .project-setup-standard-options button, .project-setup-provider-options button { display:grid; gap:3px; min-width:0; padding:9px 10px;
1918
1922
  text-align:left; border:1px solid var(--border-strong); background:var(--surface-2); color:var(--text-muted); }
1919
- .project-setup-standard-options button:hover, .project-setup-provider-options button:not([aria-disabled="true"]):hover {
1923
+ .project-setup-standard-options button:not([aria-disabled="true"]):hover, .project-setup-provider-options button:not([aria-disabled="true"]):hover {
1920
1924
  color:var(--text); border-color:var(--accent-dim); }
1921
1925
  .project-setup-standard-options button[aria-pressed="true"], .project-setup-provider-options button[aria-pressed="true"] {
1922
1926
  color:var(--text); border-color:var(--accent); background:var(--accent-soft); box-shadow:inset 2px 0 0 var(--accent); }
@@ -1928,6 +1932,32 @@
1928
1932
  .project-setup-provider-accounts > span { min-width:0; overflow-wrap:anywhere; }
1929
1933
  .project-setup-standard-options button > span:last-child { color:var(--text-dim); font-size:10px; }
1930
1934
  .project-setup-standard-label { font-weight:650; }
1935
+ /* #2521 row 7a: the Quick model terms, shown in full while Quick is pressed; the storage note's quiet accent rule,
1936
+ not a warning: choosing Quick is a choice, not an error. */
1937
+ .project-setup-quick-terms { display:grid; gap:6px; padding:9px 11px; border-left:2px solid var(--accent);
1938
+ background:color-mix(in srgb, var(--accent) 6%, transparent); color:var(--text-muted); font-size:11px; line-height:1.5; }
1939
+ .project-setup-quick-terms strong { color:var(--text); font-size:11px; font-weight:650; }
1940
+ .project-setup-quick-terms p { margin:0; }
1941
+ .project-setup-quick-terms[hidden], .project-setup-build .project-setup-note[hidden] { display:none; }
1942
+ .project-setup-build button[aria-disabled="true"] { cursor:default; opacity:.55; }
1943
+ /* #2521 row 7b: the same Model choice when drawings are read into an existing Steel model project: the confirm step
1944
+ after the file picker, and inline in the Knowledge read panel (compact: labels only, trade-offs in data-tip). */
1945
+ .rb-dialog { width:min(520px, calc(100vw - 32px)); }
1946
+ .rb-files { margin:-2px 0 6px; overflow:hidden; color:var(--text); font:500 11px/1.4 var(--mono); text-overflow:ellipsis; white-space:nowrap; }
1947
+ /* The choice scrolls inside the dialog (.ac-dialog caps its height and themes its scrollbar), so Queue read stays on
1948
+ screen in a short window with the Quick terms and the tick open. */
1949
+ #rb-choice { flex:1 1 auto; min-height:0; overflow-y:auto; margin:12px 0 4px; }
1950
+ .rb-dialog > :not(#rb-choice) { flex:none; }
1951
+ .rev-build { display:grid; gap:8px; min-width:0; margin:0; padding:0; border:0; }
1952
+ .rev-build .project-setup-quick-terms .modal-check { margin:4px 0 0; font-size:11px; color:var(--text); }
1953
+ .rev-build .project-setup-quick-terms p[hidden] { display:none; }
1954
+ /* The fieldset borrows .project-setup-field for its legend and gap, whose text-input rule must not size the tick: back
1955
+ to the global 16px checkbox. */
1956
+ .rev-build .modal-check input[type="checkbox"] { width:16px; height:16px; padding:0; border-radius:4px; }
1957
+ .rev-build-error { margin:0; padding:6px 10px; font-size:11px; }
1958
+ .rev-build.is-compact { margin:8px 0 2px; }
1959
+ .rev-build.is-compact .project-setup-standard-options button { padding:6px 9px; }
1960
+ @media (max-width: 360px) { .rev-build .project-setup-standard-options { grid-template-columns:minmax(0,1fr); } }
1931
1961
  .project-setup-storage-note { margin-top:14px; padding:10px 11px; border-left:2px solid var(--accent-dim);
1932
1962
  background:color-mix(in srgb, var(--accent) 5%, transparent); color:var(--text-muted);
1933
1963
  font-size:11px; line-height:1.5; }
@@ -3888,6 +3918,42 @@
3888
3918
  it needs the same explicit [hidden] rule the Instructor band does. */
3889
3919
  #command-sheet[hidden] { display: none; }
3890
3920
  #command-sheet { z-index: 110; }
3921
+ /* Sign-in and account selection cover the shell at 99999. Help remains available
3922
+ above those gates; reserving its space keeps the card and its actions readable. */
3923
+ body:has(:is(#license-gate, #account-gate)) .app.has-instructor #instructor {
3924
+ position: fixed;
3925
+ inset: auto 0 0;
3926
+ z-index: 100000;
3927
+ }
3928
+ body:has(:is(#license-gate, #account-gate)) .app.has-instructor #instructor:not(.collapsed) {
3929
+ height: auto;
3930
+ min-height: 34px;
3931
+ max-height: 140px;
3932
+ align-items: flex-start;
3933
+ flex-wrap: wrap;
3934
+ padding: 8px 14px;
3935
+ line-height: 1.45;
3936
+ white-space: normal;
3937
+ overflow-y: auto;
3938
+ scrollbar-width: thin;
3939
+ scrollbar-color: var(--text-dim) transparent;
3940
+ }
3941
+ body:has(:is(#license-gate, #account-gate)) #instructor::-webkit-scrollbar { width: 7px; }
3942
+ body:has(:is(#license-gate, #account-gate)) #instructor::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
3943
+ body:has(:is(#license-gate, #account-gate)) #instructor::-webkit-scrollbar-track { background: transparent; }
3944
+ body:has(:is(#license-gate, #account-gate)) #instructor:not(.collapsed) .ix-parts {
3945
+ display: block;
3946
+ flex: 1 1 260px;
3947
+ overflow: visible;
3948
+ overflow-wrap: anywhere;
3949
+ }
3950
+ body:has(:is(#license-gate, #account-gate)) #instructor .ix-sep { margin: 0 6px; }
3951
+ body:has(:is(#license-gate, #account-gate)) #command-sheet { z-index: 100001; }
3952
+ body:has(.app.has-instructor) :is(#license-gate, #account-gate) { padding: 24px 20px 164px; }
3953
+ body:has(.app.has-instructor) :is(#license-gate .lg-card, #account-gate .ag-card) {
3954
+ max-height: calc(100dvh - 188px);
3955
+ overflow-y: auto;
3956
+ }
3891
3957
  .cmd-sheet-backdrop.show { display: flex; }
3892
3958
  .cmd-sheet {
3893
3959
  width: 620px;
@@ -6228,13 +6294,19 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6228
6294
  /* scrollbar-* as well as the global ::-webkit-scrollbar rule: this is a scroll container, and the
6229
6295
  webkit rule alone leaves Firefox drawing its native light bar straight through the dark theme.
6230
6296
  Same pair every other scroll surface here already sets (.ws-archived-list, .ws-history). */
6231
- .ws-landing { flex:1; min-height:0; overflow-y:auto; padding:6px 20px 24px;
6297
+ .ws-landing { flex:1; min-height:0; overflow-y:auto; padding:0 20px 24px;
6298
+ scroll-padding-block-start:var(--landing-head-height, 0px);
6232
6299
  scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
6233
6300
  /* Wraps: the landing narrows with the AI Chat pane, not only the viewport, so below ~240px of heading text the
6234
6301
  actions (search, folder, import) drop under it instead of crushing the sentence into a sliver. */
6235
- .ws-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:0 12px; }
6302
+ .ws-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:0 12px;
6303
+ position:sticky; top:0; z-index:2; background:var(--bg); border-bottom:1px solid var(--border);
6304
+ margin:0 -20px 8px; padding:6px 20px 0; }
6236
6305
  .ws-head-text { min-width:0; flex:1 1 240px; }
6237
- .ws-head-actions { display:flex; align-items:center; gap:8px; flex:none; margin-bottom:14px; }
6306
+ .ws-head-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; flex:0 1 auto;
6307
+ min-width:0; max-width:100%; margin-bottom:14px; }
6308
+ .ws-head-actions > * { max-width:100%; min-width:0; }
6309
+ .ws-head-actions .ws-folder-btn { white-space:normal; overflow-wrap:anywhere; }
6238
6310
  .ws-head h2 { font-size:17px; font-weight:650; letter-spacing:.01em; }
6239
6311
  .ws-head .ws-sub { color:var(--text-muted); font-size:12px; margin:2px 0 14px; }
6240
6312
  /* Import project — a secondary/ghost utility action beside the heading (a restore, not another
@@ -6695,6 +6767,21 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6695
6767
  .ws-stage-guidance.state-complete { border-left-color:var(--ok); }
6696
6768
  .ws-stage-guidance.state-cancelled { border-left-color:var(--text-dim); }
6697
6769
  .wsg-head { display:flex; align-items:center; gap:8px; min-width:0; }
6770
+ .wsg-toolbar { float:right; margin:0 0 4px 10px; }
6771
+ .wsg-compact { display:none; }
6772
+ .wsg-toggle { flex:none; border:1px solid var(--border-strong); border-radius:5px; padding:1px 7px;
6773
+ background:var(--surface-2); color:var(--text-muted); font:inherit; font-size:10px; line-height:1.6; cursor:pointer; white-space:nowrap; }
6774
+ .wsg-toggle:hover { color:var(--text); border-color:var(--accent); background:var(--surface-3); }
6775
+ .wsg-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
6776
+ .ws-stage-guidance.is-collapsed { overflow:hidden; scrollbar-gutter:auto; }
6777
+ .ws-stage-guidance.is-collapsed > :not(.wsg-toolbar) { display:none; }
6778
+ .ws-stage-guidance.is-collapsed .wsg-toolbar { float:none; display:flex; align-items:center; gap:10px; margin:0; min-width:0; }
6779
+ .ws-stage-guidance.is-collapsed .wsg-compact { display:block; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
6780
+ .wsg-compact strong { color:var(--text); font-weight:600; }
6781
+ .wsg-compact-label { color:var(--accent-bright); font-weight:600; }
6782
+ .state-waiting .wsg-compact-label { color:var(--warn); }
6783
+ .state-blocked .wsg-compact-label, .state-failed .wsg-compact-label { color:var(--err); }
6784
+ .state-complete .wsg-compact-label { color:var(--ok); }
6698
6785
  .wsg-head strong { color:var(--text); font-size:12px; font-weight:600; }
6699
6786
  .wsg-signal { flex:none; width:7px; height:7px; border-radius:50%; background:var(--text-dim); }
6700
6787
  .state-active .wsg-signal { background:var(--accent-bright); box-shadow:0 0 0 0 color-mix(in srgb, var(--accent-bright) 38%, transparent); animation:wsg-pulse 1.8s ease-out infinite; }
@@ -6766,6 +6853,8 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6766
6853
  .ws-exports-gate button:hover { color:var(--accent-bright); text-decoration:underline; }
6767
6854
  .exports-note { flex:none; padding:14px 20px 4px; color:var(--text-muted); font-size:12px; }
6768
6855
  .exports-note b { color:var(--text); font-weight:600; }
6856
+ /* #2675: the listed files' approved version, under the note above it; same neutral register. */
6857
+ .exports-from-note { padding-top:4px; }
6769
6858
  /* The `exports` word is a real control that opens the folder — it REPLACED the inert `<code>` that
6770
6859
  used to sit here (whose rule is gone with it, since no `<code>` remains in this note). Keeps that
6771
6860
  code-token look at REST (mono + accent-bright, as it always read) and reveals its actionability on
@@ -6804,7 +6893,7 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6804
6893
  .ecard .e-recovery:hover { color:var(--text); border-color:var(--accent-dim); background:var(--surface-2); }
6805
6894
  .ecard .e-receipt { display:flex; align-items:center; gap:7px; flex-wrap:wrap;
6806
6895
  color:var(--ok); font:500 10.5px/1.45 var(--mono); }
6807
- .ecard .e-receipt.partial { color:var(--warn); }
6896
+ .ecard .e-receipt.partial { color:var(--warn-text); } /* small text: the ink variant, legible on light (#2521 row 5b QA, 2.13:1 with --warn) */
6808
6897
  /* A THIRD register beside the receipt's green/amber pair, for a file that is complete and correct but
6809
6898
  written in the unit system the project has since switched away from. Deliberately NOT `.partial`'s
6810
6899
  amber: amber reads as "this artifact has a defect", and this one has none — it is simply not the
@@ -6814,6 +6903,8 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6814
6903
  10.5px — below AA, and this is the ONE sentence telling a user that the bill they have is in the
6815
6904
  wrong denomination. Quiet is the intent; unreadable is not. (Review finding.) */
6816
6905
  .ecard .e-receipt.stale { color:var(--text-muted); }
6906
+ /* #2521 row 5b: the Quick model lines are a list (read as one by a screen reader), styled as the receipt line it replaces. */
6907
+ .ecard .e-receipt-lines { list-style:none; margin:0; padding:0; }
6817
6908
  .ecard .e-receipt-details {
6818
6909
  padding:2px 6px; border-radius:4px; cursor:pointer;
6819
6910
  background:transparent; border:1px solid currentColor; color:inherit;
@@ -6851,6 +6942,19 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6851
6942
  could not take, under it. Tighter than the 6px BETWEEN entries, so a receipt reads as belonging
6852
6943
  to the row above it rather than as another entry. */
6853
6944
  .ecard .e-render-entry { display:flex; flex-direction:column; gap:4px; }
6945
+ /* #2781: the DRAFT exports on a card. Quieter than the approved rows above it and unmistakably another kind of thing:
6946
+ a 2px amber-ink rule on the left, an outlined (never filled) pill so the amber text keeps its contrast on both
6947
+ themes, muted ink for the files, and no tick (a tick means deliverable). */
6948
+ .ecard .e-draft { margin-top:8px; padding:2px 0 2px 8px; border-left:2px solid var(--warn-text); display:flex; flex-direction:column; gap:5px;
6949
+ color:var(--text-muted); font:500 10.5px/1.45 var(--mono); }
6950
+ .ecard .e-draft-head { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
6951
+ .ecard .e-draft-pill { flex:none; padding:0 6px; border:1px solid var(--warn-text); border-radius:4px; color:var(--warn-text);
6952
+ font:700 9.5px/1.5 var(--ui); letter-spacing:.06em; }
6953
+ .ecard .e-draft-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:5px; }
6954
+ .ecard .e-draft-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 10px; }
6955
+ .ecard .e-draft-what { white-space:nowrap; }
6956
+ .ecard .e-draft-what .t { color:var(--text-muted); font-family:var(--mono); }
6957
+ .ecard .e-draft-more, .ecard .e-draft-note { color:var(--text-muted); font:400 10px/1.45 var(--ui); }
6854
6958
  /* A destination that reports gaps is ~77px (tick line, wrapped counts, its own Details button), so
6855
6959
  two of them already blow past the render list's ~4.5-single-row cap. Raised to hold the common
6856
6960
  cases — one or two destinations — without hiding a receipt behind a scroll. Three or four still
@@ -6989,8 +7093,10 @@ table.hist tr.current td { background:var(--accent-soft); }
6989
7093
 
6990
7094
  /* Approval review — the existing revision-review shell with explicit, mutually-exclusive outcomes. */
6991
7095
  .modal.approval-review { width:760px; }
7096
+ /* A tint, never --accent-dim: that token is a SOLID mid-blue in the slate theme, and muted text on it
7097
+ was unreadable (owner screenshot 2026-10-24). */
6992
7098
  .approval-impact { margin:8px 0 10px; padding:9px 12px; border-left:2px solid var(--accent);
6993
- background:var(--accent-dim); color:var(--text-muted); font-size:12px; line-height:1.45; }
7099
+ background:color-mix(in srgb, var(--accent) 9%, var(--surface-2)); color:var(--text); font-size:12px; line-height:1.45; }
6994
7100
  .approval-impact:empty { display:none; }
6995
7101
  .approval-review-body { padding-bottom:12px; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
6996
7102
  .approval-group { padding:13px 14px; margin:0 0 9px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); }
@@ -7022,6 +7128,44 @@ table.hist tr.current td { background:var(--accent-soft); }
7022
7128
  .approval-review-footer .modal-actions button:not(.primary) { background:var(--surface-3); border-color:var(--text-dim); }
7023
7129
  .approval-review-footer .modal-actions button:not(.primary):hover { background:color-mix(in srgb, var(--surface-3) 85%, var(--text-dim)); border-color:var(--text-muted); }
7024
7130
  .approval-review-footer .modal-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
7131
+ /* The footer line is a status, not a strip: with nothing to say it takes no room. */
7132
+ .approval-review-footer .rev-counts:empty { display:none; }
7133
+ .approval-review-footer .modal-actions button.is-working { display:inline-flex; align-items:center; gap:8px; opacity:1; cursor:progress; }
7134
+ .approval-review-footer .modal-actions button.is-working .rtn-spinner { width:11px; height:11px; border-color:color-mix(in srgb, currentColor 35%, transparent); border-top-color:currentColor; }
7135
+ /* What approving does: which version this becomes. Accent rail as .approval-impact; green is kept for
7136
+ the outcome, so a card that only describes the future never looks like a success. */
7137
+ .approval-version-card { margin:0 0 10px; padding:10px 12px; border:1px solid var(--border); border-left:2px solid var(--accent);
7138
+ border-radius:8px; background:var(--surface-2); font-size:12px; line-height:1.45; }
7139
+ .approval-version-card b { color:var(--text); font-weight:600; }
7140
+ .approval-version-card p { margin:3px 0 0; color:var(--text-muted); }
7141
+ /* Progress while saving, comparing, approving or checking: a short step list, the active step named,
7142
+ with elapsed time so slow work reads as progress and never as a hang. State is carried by the mark's
7143
+ SHAPE (tick, spinner, hollow ring) as well as its colour, and spoken by a hidden suffix. */
7144
+ .approval-progress { padding:14px 16px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); }
7145
+ .approval-progress-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
7146
+ .approval-progress-head b { color:var(--text); font-size:13px; font-weight:600; }
7147
+ .approval-elapsed { flex:none; color:var(--text-dim); font-family:var(--mono); font-size:11px; font-variant-numeric:tabular-nums; }
7148
+ .approval-progress-what { margin:4px 0 0; color:var(--text-muted); font-size:12px; line-height:1.45; }
7149
+ .approval-steps { margin:12px 0 0; padding:0; list-style:none; display:grid; gap:9px; }
7150
+ .approval-step { display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--text-dim); }
7151
+ .approval-step.is-done { color:var(--text-muted); }
7152
+ .approval-step.is-active { color:var(--text); font-weight:600; }
7153
+ .approval-step-mark { position:relative; flex:none; width:14px; height:14px; box-sizing:border-box; border-radius:50%; border:1.5px solid var(--border-strong); }
7154
+ .approval-step.is-done .approval-step-mark { border-color:var(--text-muted); }
7155
+ .approval-step.is-done .approval-step-mark::after { content:''; position:absolute; left:4px; top:1.5px; width:3px; height:6px;
7156
+ border:solid var(--text-muted); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
7157
+ .approval-step.is-active .approval-step-mark { border:2px solid var(--border-strong); border-top-color:var(--accent); animation:spin 0.8s linear infinite; }
7158
+ .approval-step.is-waiting .approval-step-mark { border-style:dashed; border-color:var(--text-dim); }
7159
+ .approval-progress-note { margin:12px 0 0; padding-top:10px; border-top:1px solid var(--border); color:var(--text-muted); font-size:12px; line-height:1.45; }
7160
+ @media (prefers-reduced-motion: reduce) {
7161
+ /* Still unmistakably "in progress" without motion: a solid accent ring. */
7162
+ .approval-step.is-active .approval-step-mark { animation:none; border-color:var(--accent); }
7163
+ .approval-review-footer .modal-actions button.is-working .rtn-spinner { animation:none; }
7164
+ }
7165
+ .approval-notice-wait { border-color:var(--accent); }
7166
+ .approval-notice-actions { margin-top:9px; display:flex; gap:8px; }
7167
+ .approval-notice p { margin:4px 0 0; }
7168
+ .approval-notice .approval-tech { margin-top:8px; }
7025
7169
  .approval-empty, .approval-loading { padding:16px; border:1px solid var(--border); border-radius:8px; color:var(--text-muted); text-align:center; }
7026
7170
  .approval-notice { margin:0 0 10px; padding:11px 12px; border:1px solid var(--border-strong); border-radius:8px;
7027
7171
  background:var(--surface-2); color:var(--text-muted); font-size:12px; line-height:1.45; }
@@ -7181,12 +7325,14 @@ table.hist tr.hist-diff-row:hover > td { background:var(--surface); }
7181
7325
  tr.hist-diff-row[hidden] { display:none; }
7182
7326
  .hd-panel { padding:12px 16px 14px; font-size:12px; color:var(--text-muted); }
7183
7327
  /* net-steel header — QUIET by design (no green/red value judgment); the arrow glyph carries direction. */
7184
- .hd-net { display:flex; align-items:center; gap:7px; padding-bottom:10px; margin-bottom:10px;
7328
+ .hd-net { display:flex; flex-wrap:wrap; align-items:center; gap:2px 7px; padding-bottom:10px; margin-bottom:10px;
7185
7329
  border-bottom:1px solid var(--border); font-size:13px; }
7186
7330
  .hd-net-label { color:var(--text-muted); font-weight:600; }
7187
7331
  .hd-net-arrow { color:var(--text-dim); font-size:11px; }
7188
7332
  .hd-net-val { font-family:var(--mono); color:var(--text); font-weight:600; }
7189
7333
  .hd-net.flat .hd-net-val { color:var(--text-dim); }
7334
+ /* #2735: the totals rest on assumed heights — its own line under the figure, worded, amber text only. */
7335
+ .hd-net-assumed { flex-basis:100%; font-size:11.5px; line-height:1.4; font-weight:400; color:var(--warn-text); }
7190
7336
  /* change-group blocks — header text color-coded via existing semantic tokens; rows plain (no per-row pills). */
7191
7337
  .hd-group { margin-bottom:10px; padding-left:9px; border-left:2px solid var(--border-strong); }
7192
7338
  .hd-group:last-child { margin-bottom:0; }
@@ -7335,6 +7481,17 @@ tr.hist-diff-row[hidden] { display:none; }
7335
7481
  .kb-refs-body::-webkit-scrollbar { width:10px; }
7336
7482
  .kb-refs-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7337
7483
  .kb-refs-body::-webkit-scrollbar-track { background:transparent; }
7484
+ .kb-source-summary { color:var(--text-muted); font-size:11px; line-height:1.5; padding:8px 0; overflow-wrap:anywhere; }
7485
+ .kb-reference-head { display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px; margin:12px 0 6px; }
7486
+ .kb-reference-head h3 { margin:0; font-size:12px; font-weight:600; color:var(--text); }
7487
+ .kb-reference-head .kb-cat-new { margin:0 0 0 auto; }
7488
+ .kb-uncategorized-head { margin:8px 0 5px; font-size:11px; font-weight:500; color:var(--text-muted); }
7489
+ .kb-refs-body > .kb-drop { margin:12px 0 0; }
7490
+ .kb-refs-foot { max-height:55%; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
7491
+ .kb-refs-foot::-webkit-scrollbar { width:10px; }
7492
+ .kb-refs-foot::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
7493
+ .kb-refs-foot::-webkit-scrollbar-track { background:transparent; }
7494
+ .kb-ds-line2 .kb-ds-count { white-space:normal; overflow-wrap:anywhere; }
7338
7495
  /* .hist-confirm is tuned for the wide History table; 264px would overflow this 272px rail. */
7339
7496
  .kb-refs-body .hist-confirm { width:auto; max-width:228px; }
7340
7497
  /* Remove has no undo (re-drop the file) — it earns the existing --err token. Rollback stays blue
@@ -8155,6 +8312,15 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8155
8312
  .pr-text::-webkit-scrollbar-track { background:transparent; }
8156
8313
  .ws-rfis .pr-copied { margin-top:6px; }
8157
8314
  .pr-alert { color:var(--warn); }
8315
+ /* #2470 R6.6b: the reference line a person searches for in Sent — selectable in one click, in the baseline's mono face. */
8316
+ .ws-rfis .pr-marker { font-family:var(--mono); font-size:11px; color:var(--text); user-select:all; overflow-wrap:anywhere; }
8317
+ /* What happened to a send, and why Gmail can't send now, are read before anything else on the row: one step brighter than
8318
+ the ordinary meta line. An unresolved send's note is brighter still, because it holds the RFI. */
8319
+ .ws-rfis [data-pr-delivery-note], .ws-rfis .pr-readiness { color:var(--text-muted); }
8320
+ /* Light theme: --text-muted on the row's surface is 4.34:1 at 12px (independent QA), below AA — use the body text there. */
8321
+ [data-theme="light"] .ws-rfis [data-pr-delivery-note], [data-theme="light"] .ws-rfis .pr-readiness { color:var(--text); }
8322
+ .ws-rfis .pr-delivery-held { color:var(--text); }
8323
+ .ws-rfis [data-pr-delivery-note]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
8158
8324
  .pr-radios { display:flex; flex-direction:column; gap:4px; }
8159
8325
  .pr-radio { display:flex; align-items:flex-start; gap:8px; text-align:left; padding:5px 8px; border:1px solid transparent; border-radius:5px; background:transparent; color:var(--text); cursor:pointer; }
8160
8326
  .pr-radio:hover { background:var(--surface-3); }
@@ -8212,16 +8378,16 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8212
8378
  (when, outcome, duration, what it rests on, actions) so a long list scans down; numbers are tabular. No inner scroll: the
8213
8379
  landing scrolls. Status is a dot in its token beside neutral text (--ok as text is ~2.3:1 on light); only Failed has
8214
8380
  ink, --err-text, and a red rail. */
8215
- .wf-history-panel { container-type:inline-size; }
8381
+ .wf-history-panel, .ws-journal { container-type:inline-size; }
8216
8382
  .rh-section > .rh-summary { display:flex; text-transform:none; letter-spacing:0; font-size:13px; color:var(--text); gap:8px; min-width:0; }
8217
8383
  .rh-section > .rh-summary:hover { color:var(--text); }
8218
8384
  .rh-sum-name { font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
8219
8385
  .rh-sum-meta { flex:none; font-size:12px; color:var(--text-muted); white-space:nowrap; }
8220
8386
  .rh-list { margin-top:8px; max-width:1040px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); }
8221
- .rh-row { display:grid; grid-template-columns:10.5rem 7rem 5.5rem minmax(0, 1fr) auto; align-items:center; gap:10px;
8387
+ .rh-row, .ph-row { display:grid; grid-template-columns:10.5rem 7rem 5.5rem minmax(0, 1fr) auto; align-items:center; gap:10px;
8222
8388
  padding:7px 12px 7px 9px; font-size:12.5px; border-left:3px solid transparent; }
8223
- .rh-row + .rh-row { border-top:1px solid var(--border); }
8224
- .rh-row.is-failed { border-left-color:var(--err); }
8389
+ .rh-row + .rh-row, .ph-row + .ph-row { border-top:1px solid var(--border); }
8390
+ .rh-row.is-failed, .ph-row.is-failed { border-left-color:var(--err); }
8225
8391
  .rh-when { color:var(--text); font-variant-numeric:tabular-nums; white-space:nowrap; }
8226
8392
  .rh-dur { color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
8227
8393
  .rh-detail { display:flex; align-items:center; gap:6px; min-width:0; flex-wrap:wrap; }
@@ -8242,7 +8408,7 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8242
8408
  .rh-outcome.rh-simulated::before { background:none; box-shadow:inset 0 0 0 1.5px var(--text-muted); }
8243
8409
  .rh-pill { flex:none; font-size:10.5px; padding:1px 7px; border-radius:10px; color:var(--text-muted); background:var(--surface-3);
8244
8410
  border:1px solid var(--border); white-space:nowrap; max-width:20ch; overflow:hidden; text-overflow:ellipsis; }
8245
- .rh-outcome[tabindex]:focus-visible, .rh-ai:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8411
+ .rh-outcome[tabindex]:focus-visible, .rh-ai:focus-visible, .rh-pill[tabindex]:focus-visible, .ph-author:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8246
8412
  .rh-btn { background:none; border:1px solid var(--border-strong); color:var(--text-muted); border-radius:6px; padding:3px 9px;
8247
8413
  font-size:11px; cursor:pointer; white-space:nowrap; }
8248
8414
  .rh-btn:hover { color:var(--text); border-color:var(--accent); }
@@ -8251,10 +8417,25 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8251
8417
  .rh-btn.rh-open { border-color:transparent; }
8252
8418
  .rh-row:hover .rh-btn.rh-open, .rh-row:focus-within .rh-btn.rh-open { border-color:var(--border-strong); }
8253
8419
  .rh-cut { margin:8px 0 0; font-size:12px; color:var(--text-muted); }
8420
+ /* A General project's History (web/project-history.js, #2470 R6.5): the run history's sections and rows, with its own
8421
+ columns — when, what happened (wrapping: it names files), and who and how it ended. */
8422
+ .ph-row { grid-template-columns:10.5rem minmax(0, 1fr) auto; align-items:start; }
8423
+ .ph-text { color:var(--text); min-width:0; overflow-wrap:anywhere; line-height:1.45; }
8424
+ .ph-labels { display:flex; align-items:center; gap:6px; justify-content:flex-end; flex-wrap:wrap; }
8425
+ .ph-author { flex:none; font-size:11px; color:var(--text-muted); white-space:nowrap; }
8426
+ .ph-author.rh-pill { font-size:10.5px; max-width:26ch; }
8427
+ .ph-tools { display:flex; flex-direction:column; gap:6px; margin:0 0 4px; max-width:1040px; }
8428
+ .ph-search { max-width:320px; }
8429
+ .ph-note { margin:0; }
8430
+ .ph-cut { display:flex; align-items:center; gap:8px; flex-wrap:wrap; max-width:1040px; margin-top:12px; }
8431
+ .ph-earlier-failed { color:var(--err-text); }
8254
8432
  /* A narrow centre column (its width follows the chat pane, so a container query, not a viewport one): when, outcome and
8255
8433
  duration on one line; what it rests on, then the actions, below. */
8256
8434
  @container (max-width: 640px) {
8257
8435
  .rh-row { grid-template-columns:auto auto minmax(0, 1fr); row-gap:6px; }
8436
+ .ph-row { grid-template-columns:auto minmax(0, 1fr); row-gap:4px; }
8437
+ .ph-labels { justify-content:flex-start; grid-row:1; grid-column:2; }
8438
+ .ph-text { grid-column:1 / -1; }
8258
8439
  .rh-dur { text-align:left; }
8259
8440
  .rh-detail, .rh-actions { grid-column:1 / -1; }
8260
8441
  .rh-detail:empty { display:none; }
package/dist/web/app.js CHANGED
@@ -3,6 +3,29 @@
3
3
  const PROMPTS = {}; // populated live from /api by aware.js - no demo seed
4
4
  const AGENTS = {}; // ditto (a dead server must not bleed fake nodes onto the canvas)
5
5
 
6
+ // Landing headers wrap with their pane, which can narrow independently of the window.
7
+ // Reserve their actual height for keyboard scrolling, including after a landing repaint.
8
+ function watchLandingHeader(pane) {
9
+ let head = null;
10
+ const measure = () => {
11
+ const height = head?.getBoundingClientRect().height || 0;
12
+ pane.style.setProperty('--landing-head-height', `${Math.ceil(height) + 8}px`);
13
+ };
14
+ const resize = new ResizeObserver(measure);
15
+ const bind = () => {
16
+ const next = pane.querySelector('.ws-head');
17
+ if (next !== head) {
18
+ if (head) resize.unobserve(head);
19
+ head = next;
20
+ if (head) resize.observe(head);
21
+ }
22
+ measure();
23
+ };
24
+ new MutationObserver(bind).observe(pane, { childList:true, subtree:true });
25
+ bind();
26
+ }
27
+ document.querySelectorAll('#ws-landing, #wf-landing, #agents-surface').forEach(watchLandingHeader);
28
+
6
29
  /* ====================== STATE ====================== */
7
30
 
8
31
  const COLLAPSE_KEY = 'floless-demo-collapse-v1';