@floless/app 0.172.0 → 0.172.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,7 +87,13 @@
87
87
  "lengths": { "type": "object", "additionalProperties": false, "required": ["system", "unitless", "feetInchesWithoutPrimes", "inchMarkOptional", "joinGapPt"],
88
88
  "properties": { "system": { "enum": ["imperial", "metric"] }, "unitless": { "enum": ["mm", "inch", "feet", null] },
89
89
  "feetInchesWithoutPrimes": { "type": "boolean" }, "inchMarkOptional": { "type": "boolean" }, "bareInchValues": { "type": "boolean" },
90
- "bareInchSeen": { "type": "object", "additionalProperties": false, "required": ["values", "sheets"], "properties": { "values": { "type": "integer", "minimum": 0 }, "sheets": { "type": "integer", "minimum": 0 } } }, "joinGapPt": { "type": "number", "minimum": 0, "maximum": 72 },
90
+ "bareInchSeen": { "type": "object", "additionalProperties": false, "required": ["values", "sheets"], "properties": { "values": { "type": "integer", "minimum": 0 }, "sheets": { "type": "integer", "minimum": 0 } } },
91
+ "bareNoteInches": { "type": "boolean" }, "bareNoteBy": { "enum": ["person", "chat"] },
92
+ "bareNoteSeen": { "type": "object", "additionalProperties": false, "required": ["for", "against", "sheets", "proposed", "examples"],
93
+ "properties": { "for": { "type": "integer", "minimum": 0 }, "against": { "type": "integer", "minimum": 0 }, "sheets": { "type": "integer", "minimum": 0 }, "proposed": { "type": "boolean" },
94
+ "examples": { "type": "array", "maxItems": 12, "items": { "type": "object", "additionalProperties": false, "required": ["side", "drawing", "page", "bbox", "text", "read"],
95
+ "properties": { "side": { "enum": ["for", "against"] }, "drawing": { "type": "string", "minLength": 1, "maxLength": 260 }, "page": { "type": "integer", "minimum": 1 },
96
+ "bbox": { "type": "array", "minItems": 4, "maxItems": 4, "items": { "type": "number" } }, "text": { "type": "string", "maxLength": 120 }, "read": { "type": "string", "maxLength": 120 } } } } } }, "joinGapPt": { "type": "number", "minimum": 0, "maximum": 72 },
91
97
  "charMap": { "type": "object", "maxProperties": 256, "additionalProperties": { "type": "string", "maxLength": 4 } },
92
98
  "displayStep": { "$ref": "#/$defs/step" } } },
93
99
  "drafting": { "type": "object", "additionalProperties": false, "required": ["terminators", "arrowSizePt", "extGapPt", "pairMarginPt", "viewGapPt"],
@@ -2,7 +2,7 @@
2
2
  name: floless-app-steel-model
3
3
  description: The front-door guide for turning a structural steel drawing set into an editable native steel.model/v2 model in floless.app. It orchestrates project setup, set knowledge, AWARE detailer agents, Drawing Filter review, registered plan views, model reading, connection detailing, clash checks, and exports. Use for asks such as "model this steel job from the drawings", "take off this whole set", "start a steel model project", or "/floless-app-steel-model". It is re-runnable and preserves the Filter → Save → read → review → History process end to end.
4
4
  metadata:
5
- version: 0.37.0
5
+ version: 0.38.0
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -34,7 +34,7 @@ what was found and get an OK before the next stage. Resume at any stage on re-in
34
34
  > pipeline, the filter pre-stage, the AISC/EN/BS lookup, the contract write + editor hand-off). A
35
35
  > section no catalogue lists is a [custom section](references/custom-sections.md), never forced to the nearest catalogue size.
36
36
  > Walls, slabs and footings the steel sits on are [structural elements](references/elements.md): placed from a type with a
37
- > catalogue material, checked by FloLess, and not drawn or counted yet, which every report must say.
37
+ > catalogue material, checked by FloLess, drawn in the 3D view and on plans, and counted in the bill once checked.
38
38
  > - **`steel-drawing-abbreviations`** — the default US/AISC abbreviations + shape-designation legend.
39
39
  > The fallback for note/profile codes (TYP, TOS, UON, `(E)`/`(N)`, HSS, WT) when the set omits its
40
40
  > own abbreviations sheet (stage 2).
@@ -5,11 +5,33 @@ A steel model can also hold the concrete and masonry it sits on and beside: **wa
5
5
  Each is placed from a **type** (its thickness or footing size and its material), and FloLess works out its
6
6
  solid, quantities and weight itself.
7
7
 
8
- **Say this every time you report one: walls, slabs and footings are stored and checked, but not drawn in the
9
- 3D view or counted in the bill yet; that arrives in the next FloLess update.** Every reply and card already
10
- says it. Never tell the person an element "is in the model" without that sentence, and never describe the bill,
11
- the 3D view, a `.glb`, an IFC file or a host send as including one: each of them lists the elements it leaves
12
- out instead.
8
+ **Where they show, said every time you report one.** Every reply and card already says it; pass it on as said:
9
+
10
+ - **The 3D view, plans and the `.glb`** draw every element FloLess can work out. One it does
11
+ not count (held, drifted) is drawn too, labelled "not counted" with its reason (hatched and dashed on a plan),
12
+ never as checked. A plan shows the elements its cut meets (its level ± 1500 mm); a plan with no level, or whose
13
+ registration does not hold, shows none and says why; elevations and sections show none yet. An element a plan
14
+ cannot draw at all is named in the plan's note with its reason, and the note says what the fit check does not
15
+ cover yet.
16
+ - **The bill** counts verified, accepted and assumed elements in its own "Concrete and masonry" table (report, CSV
17
+ second section, XLSX sheet, and the report a Run writes, after the steel rows), by volume (volume missing where a
18
+ saved result gives none, never 0), with weight only where the catalogue gives a density; it names every
19
+ element it leaves out and why. A model of elements alone is a bill.
20
+ - **An IFC file** carries each counted element as an IFC wall, slab or footing only when this computer's AWARE and
21
+ IFC tool write them. Otherwise the steel still exports, and the reply names each element left out with the update
22
+ that brings it (`elementsLeftOut`): pass that on, never say the file includes them. An uncounted element is never
23
+ in the file. A value too long for IFC is shortened with "(shortened to fit IFC)"; the reply's
24
+ `elementsShortened` has the full text.
25
+ - **A shared 3D link** draws them under the same AWARE rule as IFC (AWARE and its 3D Viewer tool new enough);
26
+ otherwise it shares the steel and names each element left out with the update that brings it.
27
+ - **A rendered image** draws the steel only: every element is left out of the pictures, and the render's reply
28
+ names each one (`elementsLeftOut`).
29
+ - **A send to a host model** does not include them yet: that arrives in a later FloLess update.
30
+
31
+ Every export and send reply that leaves elements out carries `elementsLeftOut`, and the Exports step's toast and card
32
+ show it beside the members line; say it too whenever you report the result.
33
+
34
+ Never say an element is in a sink that left it out, or that one is checked when its label says it is not counted.
13
35
 
14
36
  ## Types come from the material catalogue
15
37
 
@@ -100,6 +122,24 @@ from `steel.read-model`). Millimetres throughout.
100
122
  When an edit replaces saved values that were not FloLess's own, or ends an acceptance because the element's
101
123
  placement or type changed, the reply says so by name: pass that on to the person.
102
124
 
125
+ ## Clash and exact placement (`fit`)
126
+
127
+ `model.evaluate-element` also reports how the elements fit, from the same solids every sink draws, in `fit`. In
128
+ this version FloLess **measures two checks**: every pair of elements for a clash (only a measured overlap volume is
129
+ one; faces that touch, such as a wall on its strip or a mitre, are contact), and each wall's faces against its path
130
+ and location line. `findings` are warnings with their measurement and their choices, the first one the default;
131
+ `measured` holds every measurement, the passing ones too.
132
+
133
+ **Not checked yet:** whether each strip footing carries its wall, slab and footing levels, walls standing on slabs,
134
+ mitres between walls, and how steel meets concrete. Each of these is listed in `fit.notChecked` for every element it
135
+ applies to, and `fit.notCheckedLabel` says it in one sentence; the bill, its report and the plan carry the same
136
+ sentence. They arrive in a later FloLess update. **Never report any of them as passed**, and never say a model
137
+ "fits" or is "all checked" because `findings` is empty: say what was measured and pass the label on, word for word.
138
+
139
+ Every check of every element ends in exactly one of: a measurement, `fit.notMeasured` (it could not be measured,
140
+ with why: a kept placement FloLess cannot read, an element it cannot draw), `fit.notApplicable` (with why: a footing
141
+ under no wall, a wall end joined to nothing) or `fit.notChecked`. A finding is never a block, and it changes no count:
142
+ report it with its numbers and its choices, and leave the choice to the person.
103
143
  ## When FloLess cannot verify a result
104
144
 
105
145
  `model.evaluate-element` says, for each element, whether its stored result holds: `verified`, `accepted` (the
@@ -7,7 +7,7 @@ description: >-
7
7
  two-phase Drawing Filter process: first prepare and save the deterministic Filter, then read only the
8
8
  selected evidence into model-global members, registered plan views, observations, and revision history.
9
9
  metadata:
10
- version: 0.105.0
10
+ version: 0.106.0
11
11
  ---
12
12
 
13
13
  ## Shared height study: server-owned reader claims
@@ -788,7 +788,11 @@ In a Quick read:
788
788
  the heaviest evidence first (sections, details, schedules a later read can add). Never leave a file or
789
789
  page out to avoid a question it would raise. Then POST `…/read-scope` with
790
790
  `{ epoch: readScopeRecovery.epoch, leaveOut: [sha256 of each whole file], leavePages: [id of each page], why, confidence }`
791
- (either list may be empty, not both) and POST `steel-manifest` again with the same bindings. If it is
791
+ (either list may be empty, not both) and POST `steel-manifest` again with the same bindings. A page carrying `strips` is
792
+ one sheet over the per-sheet limit: by default send `leaveStrips: [{ id, edge, depth }]` instead (edge `bottom`, `top`,
793
+ `left` or `right`; depth in % of the sheet), a strip holding only its title block and notes as its picture shows;
794
+ `strips.<edge>[depth]` is how many drawing lines it leaves out. Read those notes first: the strip's lines are not read,
795
+ its text is. A choice of strips only spends none of the three. If it is
792
796
  refused again, the files and pages marked `leftOut: true` are already out and stay out: name only what to
793
797
  add. FloLess stores the pages you leave out as one PDF of their own, so the published model names them as
794
798
  not read until a later read covers them. Your choice is recorded as the AI's. A read gets three choices.
package/dist/web/app.css CHANGED
@@ -2808,6 +2808,13 @@
2808
2808
  border-left: 2px solid var(--border-strong);
2809
2809
  padding-left: 10px;
2810
2810
  }
2811
+ /* #3646: what an attached PDF carries (scripts and the like). The amber rule is the signal; the text stays readable in
2812
+ both themes (amber as text measures about 2.1:1 on the light surface). "Not checked" keeps the neutral rule. */
2813
+ .request-help-note.request-help-active-note { border-left-color: var(--warn); color: var(--text-muted); }
2814
+ .request-help-note.request-help-active-note.unchecked { border-left-color: var(--border-strong); }
2815
+ .request-help-active-note p { margin: 0; }
2816
+ .request-help-active-note p + p { margin-top: 4px; }
2817
+ .request-help-active-note b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
2811
2818
 
2812
2819
  /* ── Headless runs (#571 slice 3) ─────────────────────────────────────────────
2813
2820
  floless starting the user's OWN terminal AI on a queued request. Three things this
@@ -7587,6 +7594,19 @@ table.hist tr.current td { background:var(--accent-soft); }
7587
7594
  .ws-revision-card.state-staged, .ws-revision-card.state-filter-ready, .ws-revision-card.state-filter-saved { border-left:3px solid var(--accent); }
7588
7595
  .ws-revision-card.state-staged .wrc-dot, .ws-revision-card.state-filter-ready .wrc-dot, .ws-revision-card.state-filter-saved .wrc-dot { background:var(--accent); }
7589
7596
  .ws-revision-card.state-stale { border-left-color:var(--warn); }
7597
+ /* #3646: the strip under the read card naming the read's PDFs that carry scripts or other active content. The card's own
7598
+ recipe (padding, rule, surface), its own rail: amber for a finding, the neutral border for "could not be checked". */
7599
+ .ws-revision-active { flex:none; display:flex; align-items:flex-start; gap:10px; padding:9px 14px;
7600
+ border-bottom:1px solid var(--border); border-left:3px solid var(--warn); background:var(--surface-2);
7601
+ font-size:12px; line-height:1.45; color:var(--text-muted); }
7602
+ .ws-revision-active[hidden] { display:none !important; }
7603
+ .ws-revision-active.unchecked { border-left-color:var(--border-strong); }
7604
+ .ws-revision-active .wrc-warn-ico { color:var(--warn); flex:none; line-height:1.45; }
7605
+ .ws-revision-active.unchecked .wrc-warn-ico { color:var(--text-dim); }
7606
+ .ws-revision-active .wrc-text { flex:1; min-width:0; }
7607
+ .ws-revision-active p { margin:0; }
7608
+ .ws-revision-active p + p { margin-top:3px; }
7609
+ .ws-revision-active b { color:var(--text); font-weight:600; overflow-wrap:anywhere; }
7590
7610
  .ws-revision-card.state-stale .wrc-dot { background:var(--warn); }
7591
7611
  .ws-revision-card .wrc-actions { display:flex; gap:6px; flex:none; }
7592
7612
  .ws-revision-card .wrc-actions .wrc-discard { color:var(--err); }
@@ -8099,6 +8119,12 @@ tr.hist-diff-row[hidden] { display:none; }
8099
8119
  /* The strip's warning chips keep the amber BORDER as their signal and set their TEXT in a readable token: --warn as text
8100
8120
  on the light surface measures about 2.1:1, under the 4.5:1 small text needs (the shared row chip has the same gap). */
8101
8121
  .kb-ds .kb-chip.new { color:var(--text-muted); border-color:color-mix(in srgb, var(--warn) 60%, transparent); }
8122
+ /* #3646: a design-set PDF that carries scripts or other active content (amber border, readable text), or one FloLess could
8123
+ not check (neutral, muted); its sentence is on the line below either way, never only in a tooltip. */
8124
+ .kb-chip.caution { color:var(--text); border-color:color-mix(in srgb, var(--warn) 60%, transparent); }
8125
+ .kb-chip.unchecked { color:var(--text-muted); border-color:var(--border-strong); }
8126
+ .kb-ds-active { margin-top:4px; padding-left:8px; border-left:2px solid var(--warn); font-size:11px; line-height:1.45; color:var(--text-muted); }
8127
+ .kb-ds-active.unchecked { border-left-color:var(--border-strong); }
8102
8128
  .kb-ds .kb-drift-chip { color:var(--text); }
8103
8129
  /* The row's "design set" chip: the accent border marks it, --text carries it — readable on a plain row and on the
8104
8130
  open row's --accent-soft alike (--accent-bright is 3.7:1 on light, --text-muted 4.3:1 on the open row). */
@@ -9796,6 +9822,42 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
9796
9822
  .pm-row { grid-template-columns:1fr; }
9797
9823
  }
9798
9824
 
9825
+ /* ── What a Tekla send does with custom sections (epic #3382 P1h) ───────────────────────────────────────────────
9826
+ Existing tokens only. One card per section; the choices are a radio group made of buttons (role="radio"), so no native
9827
+ radio leaks through either theme. The one scroll container (.cs-body, which is also a .pm-body) is themed with it. */
9828
+ .modal.customsections { width:760px; max-width:94vw; }
9829
+ .cs-card { padding:12px 14px; margin:0 0 9px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); display:flex; flex-direction:column; gap:8px; }
9830
+ .cs-card.changed { border-color:color-mix(in srgb, var(--accent) 55%, var(--border)); }
9831
+ .cs-top { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
9832
+ .cs-name { color:var(--text); font-family:var(--mono); font-size:13px; overflow-wrap:anywhere; }
9833
+ .cs-count { color:var(--text-dim); font-size:11px; }
9834
+ .cs-chip { margin-left:auto; }
9835
+ .cs-why { margin:0; color:var(--text-muted); font-size:12px; line-height:1.45; }
9836
+ .cs-why ul { margin:4px 0 0 16px; padding:0; }
9837
+ .cs-choices { display:flex; flex-direction:column; gap:5px; }
9838
+ .cs-choice { display:flex; align-items:flex-start; gap:9px; width:100%; text-align:left; background:var(--surface); border:1px solid var(--border-strong); border-radius:7px; padding:7px 10px; color:var(--text-muted); font:inherit; font-size:12.5px; cursor:pointer; }
9839
+ .cs-choice:hover { color:var(--text); border-color:var(--accent); }
9840
+ .cs-choice:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
9841
+ .cs-choice[aria-checked="true"] { color:var(--text); border-color:var(--accent); background:var(--accent-dim); }
9842
+ .cs-dot { flex:none; width:12px; height:12px; margin-top:3px; border-radius:50%; border:2px solid var(--border-strong); box-sizing:border-box; background:transparent; }
9843
+ .cs-choice[aria-checked="true"] .cs-dot { border-color:var(--accent); background:radial-gradient(circle, var(--accent) 0 38%, transparent 42%); }
9844
+ .cs-choice-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
9845
+ .cs-choice-label { color:inherit; font-weight:600; overflow-wrap:anywhere; }
9846
+ .cs-choice-detail { color:var(--text-dim); font-size:11.5px; line-height:1.4; font-weight:400; }
9847
+ .cs-bulk { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 9px; color:var(--text-muted); font-size:12px; }
9848
+ .cs-bulk button { background:var(--surface-3); border:1px solid var(--border-strong); color:var(--text-muted); border-radius:6px; padding:4px 11px; font:inherit; font-size:12px; cursor:pointer; }
9849
+ .cs-bulk button:hover { color:var(--text); border-color:var(--accent); }
9850
+ .cs-bulk button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
9851
+ @media (max-width: 520px) {
9852
+ .cs-chip { margin-left:0; }
9853
+ .cs-choice { padding:10px; }
9854
+ .modal.customsections .modal-actions { flex-direction:column-reverse; align-items:stretch; }
9855
+ }
9856
+ .cs-later { margin:0; color:var(--text-dim); font-size:11.5px; line-height:1.4; }
9857
+ .cs-body { scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
9858
+ .cs-body::-webkit-scrollbar { width:8px; }
9859
+ .cs-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:5px; }
9860
+ .cs-body::-webkit-scrollbar-track { background:transparent; }
9799
9861
  /* ── Professional Use Terms (owner ruling 2026-11-16; web/terms-gate.js). Full-window reader; tokens only, both themes.
9800
9862
  The text pane is the only scroller, so the tick and the buttons stay in view at any height. Above the workspace and
9801
9863
  ordinary modals (100), below the confirm layer (110) so Quit FloLess can still ask "Is everything saved?". ── */
package/dist/web/aware.js CHANGED
@@ -5232,7 +5232,9 @@
5232
5232
  // whenever the receipt was partial — so a model that was both partially emitted by AWARE and
5233
5233
  // missing members here reported only the first, and the omission vanished from the one
5234
5234
  // message whose job is to stop members going missing quietly.
5235
- const gaps = [summary && summary.partial ? summary.text : null, notes.length ? notes.join(', ') + ' skipped' : null]
5235
+ // #3296 E1b: walls, slabs and footings the file does not carry, each with why (an AWARE update, or not counted).
5236
+ const elementGap = res.elementsLeftOut && typeof res.elementsLeftOut.sentence === 'string' ? res.elementsLeftOut.sentence : null;
5237
+ const gaps = [summary && summary.partial ? summary.text : null, notes.length ? notes.join(', ') + ' skipped' : null, elementGap]
5236
5238
  .filter(Boolean).join(' · ');
5237
5239
  showToast(gaps
5238
5240
  ? `IFC exported with gaps — ${gaps}`
@@ -6221,7 +6223,7 @@
6221
6223
  'cross-view-conflict': 'Source views disagree on placement',
6222
6224
  'placement-evidence-conflict': 'Invalid scale and conflicting placement evidence',
6223
6225
  'custom-section-unverified': 'Custom section cannot be checked',
6224
- 'custom-section-not-exported': 'Custom section is not carried by this send',
6226
+ 'custom-section-not-exported': 'Custom section left out of this send (chosen, or not checked)',
6225
6227
  'not-in-model': 'No longer in the model',
6226
6228
  };
6227
6229
  const groups = new Map();
@@ -13517,6 +13519,34 @@
13517
13519
  : 'Your request was added to Requests. The terminal instruction is copied.'
13518
13520
  : 'Your request was added to Requests. Copy the instructions here or from the Requests panel.';
13519
13521
  }
13522
+ /**
13523
+ * #3646: under the dialog's steps, the attached PDFs that carry scripts or other active content, or could not be
13524
+ * checked, as the server's request view says (`sourceRefs[].activeContent`); painted again from each fresh view while
13525
+ * the dialog is open. FloLess keeps every one unchanged; this only says what it found. Nothing is shown for a PDF that
13526
+ * carries none, so the dialog never reads as "these are clean".
13527
+ */
13528
+ function paintRequestActiveContent(req) {
13529
+ const $box = document.getElementById('request-help-active');
13530
+ const ac = globalThis.flolessActiveContent;
13531
+ if (!$box || !ac) return;
13532
+ const { lines, more, finding } = ac.linesOf(ac.pdfRefs(req && req.sourceRefs).map((ref) => ({ name: String(ref.name || 'A PDF'), view: ref.activeContent })));
13533
+ // The same words again (every poll brings the view back) are left alone, so a screen reader hears them once.
13534
+ const key = lines.length ? JSON.stringify([finding, more, lines]) : '';
13535
+ if ($box.dataset.key === key) return;
13536
+ $box.dataset.key = key;
13537
+ if (!lines.length) { $box.replaceChildren(); return; }
13538
+ const note = document.createElement('div');
13539
+ note.className = `request-help-note request-help-active-note${finding ? '' : ' unchecked'}`;
13540
+ for (const line of lines) {
13541
+ const p = document.createElement('p');
13542
+ const b = document.createElement('b');
13543
+ b.textContent = line.name;
13544
+ p.append(b, document.createTextNode(`: ${line.note}`));
13545
+ note.append(p);
13546
+ }
13547
+ if (more.length) { const p = document.createElement('p'); p.textContent = ac.moreText(more); note.append(p); }
13548
+ $box.replaceChildren(note);
13549
+ }
13520
13550
  function showRequestQueuedModal(req, opts = {}) {
13521
13551
  const $m = document.getElementById('request-help-modal');
13522
13552
  if (!$m || !req) return;
@@ -13542,6 +13572,7 @@
13542
13572
  : 'Request queued';
13543
13573
  if ($sub) $sub.textContent = requestHelpSubtitle(req, { n, fileKind, isRevisionRead, canUseManualHandoff, copied });
13544
13574
  renderRequestHelpGuidance(req);
13575
+ paintRequestActiveContent(req);
13545
13576
  // Only a pending drawing read may be handed to another terminal. A future or settled status may
13546
13577
  // already have an owner, so showing Copy here could start a second writer from a stale POST view.
13547
13578
  if ($copy) $copy.hidden = copied || !canUseManualHandoff;
@@ -14161,7 +14192,7 @@
14161
14192
  // cleared in another tab, or been aborted. Never turn absence into a success claim.
14162
14193
  showToast('The drawing request is no longer in Requests', 'info');
14163
14194
  }
14164
- }
14195
+ } else paintRequestActiveContent(fresh); // #3646: what its PDFs carry, as the server now says
14165
14196
  }
14166
14197
  const $rc = document.getElementById('req-count');
14167
14198
  const $rs = document.getElementById('req-stat');
package/dist/web/chat.js CHANGED
@@ -3083,6 +3083,15 @@
3083
3083
  return entry.kind === 'member' && (entry.status === 'resolved' || entry.chosen) && entry.ref?.profile ? `${entry.label} · ${entry.ref.profile}` : entry.label;
3084
3084
  }
3085
3085
 
3086
+ /**
3087
+ * #3739: whether a cited page is of a drawing a Drawing Checker run read (`run:<runId>:<sha256>:<page>`, matching its own
3088
+ * hash and page) rather than a reference drawing. The same exact rule as the server's parsePagePageId (check-run-id.ts).
3089
+ */
3090
+ function runPageId(ref) {
3091
+ const m = /^run:([A-Za-z0-9][A-Za-z0-9-]{0,63}):([0-9a-f]{64}):([1-9][0-9]{0,4})$/.exec(typeof ref?.pageId === 'string' ? ref.pageId : '');
3092
+ return !!m && m[1] !== 'preflight' && m[2] === ref.sourceHash && Number(m[3]) === ref.pageNumber;
3093
+ }
3094
+
3086
3095
  function citationUrl(row, what, extra = '') {
3087
3096
  if (!row.chatId) return null;
3088
3097
  return `/api/chat/conversations/${encodeURIComponent(row.chatId)}/citations/${encodeURIComponent(row.citationId)}/${row.index}/${what}?${row.owner}${extra}`;
@@ -4638,6 +4647,14 @@
4638
4647
  'from-source:changed': 'Rendered from the source drawing: the sheet picture FloLess holds has changed since you chose it.',
4639
4648
  'from-source:missing': 'Rendered from the source drawing: FloLess no longer holds the sheet picture it held when you chose it.',
4640
4649
  'from-source:unchecked': 'Rendered from the source drawing: FloLess could not check the stored sheet picture just now.',
4650
+ } : entry.ref?.representation === 'page' && runPageId(entry.ref) ? {
4651
+ // #3739: a page of a drawing a Drawing Checker run read, rendered again from the run's own verified copy.
4652
+ 'as-seen': 'The page of the checked drawing the AI was shown.',
4653
+ 'from-source:page': 'The page, rendered again from the same checked drawing. It may differ slightly from the picture the AI was shown.',
4654
+ } : entry.ref?.representation === 'page' ? {
4655
+ // #3737: a page of a Drawing Checker reference drawing, rendered again from the same verified PDF.
4656
+ 'as-seen': 'The page of the reference drawing the AI was shown.',
4657
+ 'from-source:page': 'The page, rendered again from the same reference drawing. It may differ slightly from the picture the AI was shown.',
4641
4658
  } : {
4642
4659
  'as-seen': 'The sheet picture the AI was shown.',
4643
4660
  'from-source:tiles': 'The whole sheet, rendered from its source drawing. The AI saw this sheet enlarged in tiles.',
@@ -4655,12 +4672,13 @@
4655
4672
  if (!response.ok) { const why = await refused(response); if (!finished) { status.textContent = why; retry(); } return; }
4656
4673
  const shown = response.headers.get('X-FloLess-Shown') || 'as-seen';
4657
4674
  // #3038: the picture the AI was shown, or established as no longer the stored one; tiles or unchecked say nothing.
4675
+ // #3737: a reference page rendered again says nothing new about the chip; its check of the verified PDF stands.
4658
4676
  found({ 'as-seen': 'same', 'from-source:changed': 'changed', 'from-source:missing': 'changed' }[shown] ?? null);
4659
4677
  const bytes = await response.blob();
4660
4678
  // Checked after every wait: a viewer closed meanwhile creates nothing it would never release.
4661
4679
  if (finished) return;
4662
4680
  picture = URL.createObjectURL(bytes);
4663
- const image = Object.assign(document.createElement('img'), { src: picture, alt: `${entry.label}${shown === 'as-seen' ? '' : ', rendered from the source drawing'}` });
4681
+ const image = Object.assign(document.createElement('img'), { src: picture, alt: `${entry.label}${shown === 'as-seen' ? '' : shown === 'from-source:page' ? `, rendered again from the ${runPageId(entry.ref) ? 'checked' : 'reference'} drawing` : ', rendered from the source drawing'}` });
4664
4682
  if (!await mountDrawing().setImage(image, () => !finished, true)) return;
4665
4683
  loaded();
4666
4684
  // #3645: what FloLess's PDF reader reported about the PDF this sheet comes from, under the provenance line.
@@ -55,6 +55,8 @@
55
55
  def('drawing-check.reload', { label: 'Reload the profile', actsOn: 'Reads this client profile again, after it changed in another window or could not be read', group: G, persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
56
56
  def('drawing-check.fill-clearances', { label: 'Fill bolt clearances from a standard', actsOn: 'Replaces the hole-size check’s clearance table with starter values from {instance}', anyInstance: 'a standard', group: G, persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'Starter values are a starting point: confirm them against your design standard.' });
57
57
  def('drawing-check.main-part', { label: 'Main part: is its mark the assembly mark?', actsOn: 'Sets the main part of the part list to {instance}', anyInstance: 'one answer', group: G, persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Normally the main part’s mark is the assembly mark; the part-list check and “Every part is located” both find the main part this way.' });
58
+ def('drawing-check.bare-note-inches', { label: 'Hole and bolt notes: inches without a mark', actsOn: 'Sets whether a size written alone in a hole or bolt note is read as inches: {instance}', anyInstance: 'one answer', group: G, persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The reference drawings only suggest it; only you turn it on, and one turned on from chat waits for your Yes here.' });
59
+ def('drawing-check.bare-note-seen', { label: 'Show the reference notes counted', actsOn: 'Lists the hole and bolt notes on the reference drawings counted for and against “Hole and bolt notes: inches without a mark”, with drawing and page', group: G, persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
58
60
  def('drawing-check.bare-inches', { label: 'Does this client write inches without a mark?', actsOn: 'Sets whether a number written alone on a dimension is read as inches: {instance}', anyInstance: 'one answer', group: G, persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Learned only when the reference drawings prove it; until then such dimensions say couldn’t tell.' });
59
61
  def('drawing-check.line-break', { label: 'Largest break in a drawn line FloLess closes', actsOn: 'Sets the largest break, in points, that “Every part is located” closes a part’s outline across', group: G, persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Learned from the reference drawings; every result resting on an outline closed this way says so as an assumption.' });
60
62
  def('drawing-check.add-item', { label: 'Add item from client standard', actsOn: 'Adds a text to look for on every drawing and tests it on the reference drawings', group: G, persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand' });
@@ -8074,6 +8074,40 @@
8074
8074
  why: 'The open Tekla model is the default. An imported catalogue is used when you choose it.',
8075
8075
  });
8076
8076
 
8077
+ // Epic #3382 P1h: what a Tekla send does with the model's custom and parametric sections.
8078
+ def('shell.custom-sections-continue', {
8079
+ label: 'Continue',
8080
+ actsOn: 'Keeps your choices for the custom sections and goes on to the send review',
8081
+ group: 'In the custom sections window',
8082
+ persistence: 'working',
8083
+ interaction: 'dialog',
8084
+ risk: [],
8085
+ guidance: 'on-demand',
8086
+ why: 'Nothing is sent yet: the send review comes next. Each choice is tied to the model, the Tekla model and the shape Tekla reported when you chose it; if any of them changes before the send, FloLess asks again.',
8087
+ });
8088
+
8089
+ def('shell.custom-sections-table', {
8090
+ label: 'Custom sections to send',
8091
+ actsOn: 'Lists each custom or parametric section in this model with what Tekla answered and the choices that answer allows',
8092
+ group: 'In the custom sections window',
8093
+ persistence: 'none',
8094
+ interaction: 'instant',
8095
+ risk: [],
8096
+ guidance: 'on-demand',
8097
+ why: 'Built from the exact model about to be sent and from Tekla\'s own answer. A section FloLess could not check says so; it is never called missing unless Tekla said it lacks the shape.',
8098
+ });
8099
+
8100
+ def('shell.custom-sections-choice', {
8101
+ label: 'What to do with this section',
8102
+ actsOn: 'Chooses what happens to {instance}: send it as Tekla\'s shape, send a placeholder, or leave it out',
8103
+ group: 'In the custom sections window',
8104
+ persistence: 'none',
8105
+ interaction: 'instant',
8106
+ risk: [],
8107
+ guidance: 'on-demand',
8108
+ why: 'Leaving a section out is always allowed and is what happens when nobody chooses. A placeholder arrives as a thin line in the right place, labelled with the size, for you to give a profile to in Tekla.',
8109
+ });
8110
+
8077
8111
  def('shell.host-bake-omissions', {
8078
8112
  label: 'Members left out',
8079
8113
  actsOn: 'Lists the members that cannot be sent and the reason for each omission',
@@ -2636,6 +2636,46 @@
2636
2636
  def('steel.catalog-manage-new-group-menu', { label: 'New group', actsOn: 'Starts a new group under My groups', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2637
2637
  def('steel.catalog-manage-new-group', { label: 'New group', actsOn: 'Starts a new group under My groups', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2638
2638
  def('steel.catalog-manage-new-group-name', { label: 'New group name', actsOn: 'Sets the name of the new group; Enter creates it', group: 'In the steel editor dialogs', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2639
+ // Section sketcher (epic #3382 P5): a window above the catalog where a person draws a shape of their own, shared with the AI chat.
2640
+ def('steel.catalog-manage-new-sketch', { label: "Sketch a custom shape", actsOn: "Opens the section sketcher to draw a shape of your own", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2641
+ def('steel.shape-sketch-back', { label: "Back to the catalog", actsOn: "Closes the sketcher and keeps your sketch", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: "Your sketch is kept until you save or discard it." });
2642
+ def('steel.shape-sketch-template', { label: "Start from", actsOn: "Starts the sketch from {instance}", anyInstance: "a template or blank", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: "If you already have a sketch, you are asked before it is replaced." });
2643
+ def('steel.shape-sketch-name', { label: "Shape name", actsOn: "Sets the name of the shape", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2644
+ def('steel.shape-sketch-prefix', { label: "Name prefix", actsOn: "Sets the letters every name of this shape starts with", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "A prefix another shape already uses is a warning, not a refusal." });
2645
+ def('steel.shape-sketch-group', { label: "Group", actsOn: "Sets the group the shape is kept under in My shapes", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2646
+ def('steel.shape-sketch-size-symbol', { label: "Size symbol", actsOn: "Sets the letter used for {instance} in formulas and in the name", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2647
+ def('steel.shape-sketch-size-label', { label: "Size label", actsOn: "Sets the plain-English name of size {instance}", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2648
+ def('steel.shape-sketch-size-default', { label: "Size default", actsOn: "Sets the value size {instance} is drawn and weighed at", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "A size the AI assumed has a dashed amber outline until you change it." });
2649
+ def('steel.shape-sketch-size-kind', { label: "Size kind", actsOn: "Switches size {instance} between a length, an angle and a plain number", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2650
+ def('steel.shape-sketch-size-min', { label: "Smallest usual value", actsOn: "Sets the smallest usual value of size {instance}; advice only", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2651
+ def('steel.shape-sketch-size-max', { label: "Largest usual value", actsOn: "Sets the largest usual value of size {instance}; advice only", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2652
+ def('steel.shape-sketch-size-add', { label: "Add size", actsOn: "Adds a size to the shape", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2653
+ def('steel.shape-sketch-size-remove', { label: "Remove size", actsOn: "Removes size {instance} from the shape", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2654
+ def('steel.shape-sketch-pattern-earlier', { label: "Move earlier in the name", actsOn: "Moves {instance} one place earlier in the name", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "Alt and the left arrow does the same from the keyboard." });
2655
+ def('steel.shape-sketch-pattern-later', { label: "Move later in the name", actsOn: "Moves {instance} one place later in the name", anyInstance: "a size", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "Alt and the right arrow does the same from the keyboard." });
2656
+ def('steel.shape-sketch-separator', { label: "Separator in the name", actsOn: "Writes {instance} between the sizes in the name", anyInstance: "a separator", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2657
+ def('steel.shape-sketch-condition-when', { label: "Condition", actsOn: "Sets condition {instance}: when the shape exists", anyInstance: "a condition", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "For example t < b. Use < <= > >= and the word and." });
2658
+ def('steel.shape-sketch-condition-reason', { label: "Why the condition matters", actsOn: "Sets what is said when condition {instance} is not met", anyInstance: "a condition", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2659
+ def('steel.shape-sketch-condition-add', { label: "Add condition", actsOn: "Adds a condition under which the shape exists", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2660
+ def('steel.shape-sketch-condition-remove', { label: "Remove condition", actsOn: "Removes condition {instance}", anyInstance: "a condition", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2661
+ def('steel.shape-sketch-corner-x', { label: "Corner x", actsOn: "Sets the x position of corner {instance}, in millimetres or as a formula of the sizes", anyInstance: "a corner", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "The origin should be the middle of the shape." });
2662
+ def('steel.shape-sketch-corner-y', { label: "Corner y", actsOn: "Sets the y position of corner {instance}, in millimetres or as a formula of the sizes", anyInstance: "a corner", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2663
+ def('steel.shape-sketch-corner-add', { label: "Add corner", actsOn: "Adds a corner to {instance}", anyInstance: "a loop", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2664
+ def('steel.shape-sketch-corner-remove', { label: "Remove corner", actsOn: "Removes corner {instance}", anyInstance: "a corner", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2665
+ def('steel.shape-sketch-hole-add', { label: "Add a hole", actsOn: "Adds a hole to the shape, as a loop of three corners", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2666
+ def('steel.shape-sketch-hole-remove', { label: "Remove hole", actsOn: "Removes hole {instance} from the shape", anyInstance: "a hole", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2667
+ def('steel.shape-sketch-open-shape', { label: "Change a saved shape", actsOn: "Opens {instance} from My shapes so a change is saved as a new version", anyInstance: "a saved shape", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: "Models that use the old version keep it until you update them." });
2668
+ def('steel.shape-sketch-show-changes', { label: "Show the changes", actsOn: "Shows what the AI changed in the sketch while you were typing", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2669
+ def('steel.shape-sketch-confirm-yes', { label: "Confirm", actsOn: "Goes ahead with the replace or discard you were asked about", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: "A sketch that is replaced or discarded cannot be brought back." });
2670
+ def('steel.shape-sketch-confirm-no', { label: "Keep it", actsOn: "Keeps your sketch and closes the question", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2671
+ def('steel.shape-sketch-discard', { label: "Discard sketch", actsOn: "Asks to throw away the sketch you are working on", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: "Shapes you already saved are not affected." });
2672
+ def('steel.shape-sketch-ask-ai', { label: "Ask AI to change", actsOn: "Opens a box to write what the AI should change in the sketch", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2673
+ def('steel.shape-sketch-ask-ai-text', { label: "What should change", actsOn: "Sets the request you will send to AI Chat", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2674
+ def('steel.shape-sketch-ask-ai-copy', { label: "Copy request for AI Chat", actsOn: "Copies your request so you can paste it into AI Chat", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2675
+ def('steel.shape-sketch-ask-ai-close', { label: "Close the request box", actsOn: "Closes the box without sending anything", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2676
+ def('steel.shape-sketch-save', { label: "Save shape", actsOn: "Saves the shape to your My shapes add-on as a new version and turns it on", group: "In the steel editor dialogs", persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: "Only you save a shape; the AI proposes it and you confirm. Members keep their own sizes, so a later change never moves placed members without asking." });
2677
+ def('steel.shape-sketch-saved-done', { label: "Done", actsOn: "Closes the sketcher after the shape was saved", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2678
+ def('steel.shape-sketch-saved-another', { label: "Draw another shape", actsOn: "Goes back to the start of the sketcher for another shape", group: "In the steel editor dialogs", persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2639
2679
  def('steel.catalog-manage-node', { label: 'Show a group', actsOn: 'Shows what is in {instance}', anyInstance: 'a group', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2640
2680
  def('steel.catalog-manage-item', { label: 'Choose an item', actsOn: 'Shows the details of {instance} so you can tag it', anyInstance: 'a profile', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2641
2681
  def('steel.catalog-manage-add', { label: 'Add profiles', actsOn: 'Opens a list to add profiles to this group as shortcuts', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Items are shortcuts: a profile can sit in several groups, and taking it out of a group never deletes it.' });
@@ -2848,6 +2888,16 @@
2848
2888
  def('steel.parametric-choose-reading', { label: 'Choose how to read it', actsOn: 'Opens the profile picker with every way this name can be read, none chosen', group: 'In the Properties panel', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'The name can be read more than one way, so FloLess asks rather than choosing.' });
2849
2889
  def('steel.parametric-size-all', { label: 'Size all', actsOn: 'Reads each selected parametric name and attaches its section, weight and shape, after you confirm', group: 'In the Properties panel', persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'The names stay exactly as written. One Undo takes all of it back.' });
2850
2890
  def('steel.parametric-size-confirm', { label: 'Size members', actsOn: 'Attaches the section, weight and shape each name reads as to its members', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'One Undo takes all of it back.' });
2891
+ // The profile card beside every Profile field (epic #3382 P2). A size typed in the card previews in 3D and changes nothing until Enter.
2892
+ def('steel.profile-card-info', { label: 'Show the profile card', actsOn: 'Opens the card that decodes this profile name: its sizes, drawing and weight', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Opening the card changes nothing in the model; it only reads the name. Hover or focus does the same without a button.' });
2893
+ def('steel.profile-card-pin', { label: 'Pin in pane', actsOn: 'Keeps the profile card as a block under the Profile row, or puts it back to a popover', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Your choice is remembered on this computer.' });
2894
+ def('steel.profile-card-open-catalog', { label: 'Open catalog', actsOn: 'Opens the profile catalog on this name', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'Nothing changes until you press Apply in the catalog.' });
2895
+ def('steel.profile-card-size', { label: 'Size in the card', actsOn: 'Sets the {instance} of the shape; the 3D view shows it as you type', anyInstance: 'size', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Typing only previews. Enter applies the size as one undo step and Esc puts the member back.' });
2896
+ def('steel.profile-card-read-as', { label: 'Use this reading', actsOn: 'Reads the name as {instance} and puts that section on the member', anyInstance: 'a parametric name', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The name can be read more than one way, so FloLess asks rather than choosing. One Undo takes it back.' });
2897
+ def('steel.profile-card-use-text', { label: 'Use the shorter name', actsOn: 'Drops the extra number and reads the rest of the name', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The extra number had no meaning for this shape. One Undo takes it back.' });
2898
+ def('steel.profile-card-keep-text', { label: 'Keep as typed', actsOn: 'Keeps the name exactly as you typed it, unresolved', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'FloLess cannot draw or weigh a name it cannot read, and labels the member that way.' });
2899
+ def('steel.profile-card-define', { label: 'Define this shape', actsOn: 'Asks the AI chat to help define this shape so FloLess can draw and weigh it', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'The AI drafts the definition with you; nothing is saved until you confirm it.' });
2900
+ def('steel.profile-card-retry-shapes', { label: 'Retry loading Tekla shapes', actsOn: 'Tries again to load Tekla’s extra shapes so this name can be read', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The extra shapes load the first time they are needed.' });
2851
2901
  def('steel.custom-section-ask-ai', { label: 'Ask AI to fix', actsOn: 'Opens the AI chat with a request to fix this member\'s custom section, which FloLess cannot use as it is', group: 'In the Properties panel', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'A custom section FloLess cannot read, check or draw yet is left out of quantities and exports until it is fixed, or, when the panel offers it, you proceed on an assumption.' });
2852
2902
  def('steel.custom-section-assume', { label: 'Proceed on assumption', actsOn: 'Uses this unreadable custom section as stored, labelled as an assumption', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The member then counts in quantities and exports, and every bill and export names it as an assumption. Withdraw it at any time. It is not offered when an assumption could not help, such as a parametric section this FloLess cannot draw yet; the panel says why.' });
2853
2903
  def('steel.custom-section-withdraw', { label: 'Withdraw assumption', actsOn: 'Stops using this custom section until it can be checked', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The member is left out of quantities and exports again.' });
@@ -138,6 +138,11 @@ h2{font-size:15px;font-weight:600;margin:0 0 4px}
138
138
  /* A reference picked from the design set (epic #2399 0d-dc): its issue chip, and a change since it was picked. */
139
139
  .list button.link{font-size:12px;white-space:nowrap}
140
140
  .list > div.drift{flex-wrap:wrap}
141
+ /* #3646: a reference PDF that carries scripts or other active content, its sentence on a line of its own under an amber
142
+ rule (the neutral rule when FloLess could not check it). The text stays the page's readable note colour. */
143
+ .list > div.has-active{flex-wrap:wrap}
144
+ .list .active-note{flex-basis:100%;margin:2px 0 0;padding:1px 0 1px 10px;border-left:2px solid var(--warn)}
145
+ .list .active-note.unchecked{border-left-color:var(--line)}
141
146
  /* #2459 slice 1e: the Firm wording tab. A proposal's words wrap and are never cut; a rejected one is quieter, never red. */
142
147
  .conv-firm{margin:18px 0 0}
143
148
  .conv-firm h3{font-size:13px;font-weight:600;margin:0 0 4px;color:var(--text)}
@@ -220,6 +225,9 @@ button[aria-pressed="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px
220
225
  /* the hole-size check's clearance table, a sibling under its item (a button inside the label would toggle it) */
221
226
  .list > .clear-panel{display:block;padding:2px 12px 12px 46px;border-top:1px dashed var(--line)}
222
227
  .clear-panel .clear-head{font-size:12px;color:var(--mut);margin:8px 0 6px}
228
+ /* #2459 ACC: two settings in one Lengths section, divided as the item panels are. */
229
+ .tb > .clear-panel + .clear-panel{margin-top:12px;border-top:1px dashed var(--line);padding-top:4px}
230
+ .clear-panel .clear-head + .note{margin:0 0 6px}
223
231
  .clear-panel .warn-line{margin:4px 0 8px;font-size:12px}
224
232
  .clear-panel .band{margin:0}
225
233
  .clear-panel .note{margin:6px 0 0}
@@ -404,6 +412,7 @@ label.field.client-field{max-width:360px;margin:0 0 14px}
404
412
  <script src="instructor-reporter.js"></script>
405
413
  <script>window.InstructorReporter.mount({ surface: 'drawing-check-editor' });</script>
406
414
  <script src="failure-copy.js"></script>
415
+ <script src="pdf-active-content.js"></script>
407
416
  <script type="module" src="./drawing-check-editor.js"></script>
408
417
  <script>
409
418
  // Themed tooltips (replaces native title=): one shared element, shown on data-tip hover after a short