@floless/app 0.140.0 → 0.141.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.
@@ -69,13 +69,13 @@
69
69
 
70
70
  def('filter.save', {
71
71
  label: 'Save filter',
72
- actsOn: 'Writes the filter onto this app’s contract',
72
+ actsOn: 'Saves this filter and resumes a linked drawing read in AI Chat',
73
73
  group: 'In the Drawing Filter header',
74
74
  persistence: 'working',
75
75
  interaction: 'instant',
76
- risk: [],
76
+ risk: ['costs-time', 'costs-money'],
77
77
  guidance: 'on-demand',
78
- why: 'Everything you tick on this screen is held in memory until you press this. During a drawing read, it becomes available as soon as the filter selects valid drawing lines.',
78
+ why: 'Everything you tick stays here until you save. If this filter belongs to a drawing request linked to AI Chat, saving also resumes that conversation automatically and may use provider time and credits. An unlinked terminal session still needs you to return to it.',
79
79
  });
80
80
 
81
81
  def('filter.reload', {
@@ -103,13 +103,13 @@
103
103
 
104
104
  def('filter.signoff-approve', {
105
105
  label: 'Approve these exclusions',
106
- actsOn: 'Records that the switched-off values carry no steel',
106
+ actsOn: 'Approves the exclusions, saves the filter, and resumes a linked AI Chat',
107
107
  group: 'In the Drawing Filter exclusion approval',
108
108
  persistence: 'working',
109
109
  interaction: 'instant',
110
- risk: [],
110
+ risk: ['costs-time', 'costs-money'],
111
111
  guidance: 'on-demand',
112
- why: 'Only appears when this read has something switched off — a layer, a line weight or a colour. Everything matching those values can then be dismissed as a group instead of element by element, so it is worth reading the list first. Values you leave on can never be dismissed this way. It waits until the count of what would be dismissed has arrived, because that number is the decision.',
112
+ why: 'Only appears when this read has a layer, line weight or colour switched off. Review the count before approving: matching lines may be dismissed as a group, while values left on cannot. Approval saves the filter. If the request is linked to AI Chat, that conversation resumes automatically and may use provider time and credits; an unlinked terminal session still needs you to return to it.',
113
113
  });
114
114
 
115
115
  def('filter.signoff-cancel', {
@@ -171,12 +171,35 @@
171
171
  why: 'On a revision read, everything you switch off here is what Save will ask you to approve as not steel — those elements can then be dismissed as a group, with no line-by-line reason.',
172
172
  });
173
173
 
174
+ def('filter.facet-search', {
175
+ label: 'Search a list',
176
+ actsOn: 'Shows only the Layers, Thicknesses or Colors rows that match what you type',
177
+ group: 'In the Drawing Filter panel',
178
+ persistence: 'none',
179
+ interaction: 'instant',
180
+ risk: [],
181
+ guidance: 'on-demand',
182
+ // The scope rule is stated HERE as well as on the buttons, because the `?` sheet is exactly where
183
+ // someone checks "does none only hit what I searched?".
184
+ why: 'Every word you type must appear in the row, in any order — it only changes what you can see. While a list is being searched, its all and none buttons act on the matching rows only, and show how many. Esc or ✕ clears it. Appears on lists long enough to need it.',
185
+ });
186
+
187
+ def('filter.facet-search-clear', {
188
+ label: 'Clear the search',
189
+ actsOn: 'Shows the whole list again',
190
+ group: 'In the Drawing Filter panel',
191
+ persistence: 'none',
192
+ interaction: 'instant',
193
+ risk: [],
194
+ guidance: 'on-demand',
195
+ });
196
+
174
197
  def('filter.facet-all', {
175
198
  label: 'Select all in a facet',
176
199
  // "usable": a hand-edited or third-party filter can list a value this page cannot express, and
177
200
  // the control then ticks the rest and says so. Promising "every value" would contradict
178
201
  // both the button's own tooltip and what the user watches happen.
179
- actsOn: 'Ticks every usable value in that list',
202
+ actsOn: 'Ticks every usable value in that list — or, while you are searching it, only the matching ones',
180
203
  group: 'In the Drawing Filter panel',
181
204
  persistence: 'local',
182
205
  interaction: 'instant',
@@ -186,7 +209,7 @@
186
209
 
187
210
  def('filter.facet-none', {
188
211
  label: 'Clear a facet',
189
- actsOn: 'Unticks every usable value in that list',
212
+ actsOn: 'Unticks every usable value in that list — or, while you are searching it, only the matching ones',
190
213
  group: 'In the Drawing Filter panel',
191
214
  persistence: 'local',
192
215
  interaction: 'instant',
@@ -244,6 +267,61 @@
244
267
  why: 'Add one criterion at a time, or every usable one at once — the fastest way to build a filter from an element you can already see.',
245
268
  });
246
269
 
270
+ def('filter.eyedropper-remove', {
271
+ label: 'Remove a sampled value from the filter',
272
+ actsOn: 'Unticks the sampled layer, thickness or colour',
273
+ group: 'On the Drawing Filter canvas',
274
+ persistence: 'local',
275
+ interaction: 'instant',
276
+ risk: [],
277
+ guidance: 'on-demand',
278
+ // Worth saying here for the same reason filter.facet-toggle says it: on a revision read, a value
279
+ // switched off is what Save later asks you to approve as not steel.
280
+ why: 'Shown instead of Add when the value is already ticked. Unticking a value on a criterion ticked under Match on takes its lines out of the selection; on one that is not ticked there, nothing you can see changes until it is. Nothing is saved until you press Save filter. On a revision read, Save will ask you to approve what you switched off as not steel.',
281
+ });
282
+
283
+ def('filter.hover-info', {
284
+ label: 'Hover info',
285
+ actsOn: 'Reads out the layer, thickness and colour of whatever you point at',
286
+ group: 'On the Drawing Filter canvas',
287
+ persistence: 'local',
288
+ interaction: 'instant',
289
+ risk: [],
290
+ guidance: 'on-demand',
291
+ // States the limits, because they would otherwise be found the hard way: linework the drawing read
292
+ // never picked up (annotation layers that exist only in the background image) is not in the data, so
293
+ // pointing reads nothing there -- a CLICK on such a spot asks the original drawing instead (#1528); and
294
+ // it needs a mouse. And (#1550) a curve too large, or on a sheet with too many large curves, to be
295
+ // traced in full reads only in parts -- the page says so in a note above the toggle, so the
296
+ // narration must not promise every line reads. Switched-off lines ARE readable since #1527. The accessible path is unchanged --
297
+ // the facet rows announce the same three values and are reachable by Tab.
298
+ why: 'Turn it on and point at the drawing: each line or label you touch names its layer, thickness and colour beside the pointer, and lights up its rows in the Filters panel — including a line the filter has switched off, which is marked as switched off. Click a line to open its details: − Remove unticks a value without going to the panel, and + Add ticks a switched-off line’s values back on. Background-only linework, on layers the drawing read never picked up, does not read by pointing; clicking an empty spot asks the original drawing what is there instead, where the original drawing is available. On a sheet with very large curves, or a great many of them, parts of some curves may not read by pointing, especially zoomed in; a note above the button then says how many, and what to do instead. This one needs a mouse.',
299
+ });
300
+
301
+ // #1528. A gesture, not a button: with Hover info on, a click where no line is shown. Registered so
302
+ // the shell can explain the popover it opens ("From the original drawing") and why it has no Add.
303
+ def('filter.identify-original', {
304
+ label: 'Identify a line on the original drawing',
305
+ actsOn: 'Reads the layer, thickness and colour the original drawing has at an empty spot',
306
+ group: 'On the Drawing Filter canvas',
307
+ persistence: 'none',
308
+ interaction: 'gesture',
309
+ risk: [],
310
+ guidance: 'on-demand',
311
+ why: 'With Hover info on, click a spot where FloLess shows no line. FloLess looks it up in the original drawing and names what is there, including lines on layers it does not draw, such as text and dimension layers. The first look on a sheet can take a few seconds. It only reads: there is nothing to add for a line FloLess did not read.',
312
+ });
313
+
314
+ def('filter.identify-step', {
315
+ label: 'Next or previous line at this spot',
316
+ actsOn: 'Steps through the lines the original drawing has at the clicked spot',
317
+ group: 'On the Drawing Filter canvas',
318
+ persistence: 'none',
319
+ interaction: 'instant',
320
+ risk: [],
321
+ guidance: 'on-demand',
322
+ why: 'Shown when several lines or labels overlap where you clicked. The closest line comes first, then labels, then filled areas under the spot.',
323
+ });
324
+
247
325
  def('filter.pan-zoom', {
248
326
  label: 'Pan and zoom the drawing',
249
327
  actsOn: 'Moves the view only',
@@ -432,6 +432,7 @@
432
432
  def('canvas.zoom', {
433
433
  label: 'Zoom',
434
434
  actsOn: 'Zooms {instance} — acts on the canvas view only',
435
+ anyInstance: 'in, out or back to 100%',
435
436
  group: 'On the workflow canvas',
436
437
  key: 'Also: Ctrl+= / Ctrl+-',
437
438
  persistence: 'none',
@@ -759,6 +760,7 @@
759
760
 
760
761
  def('shell.project-standard', {
761
762
  label: '{instance} standard',
763
+ anyInstance: 'US or UK',
762
764
  actsOn: 'Sets the steel catalogue this project uses',
763
765
  group: 'In the new project dialog',
764
766
  persistence: 'none',
@@ -922,6 +924,7 @@
922
924
  def('shell.inspect-tab', {
923
925
  label: 'Inspect tab',
924
926
  actsOn: 'Shows this node’s {instance}',
927
+ anyInstance: 'chosen tab',
925
928
  group: 'In the node Inspect panel',
926
929
  persistence: 'local',
927
930
  interaction: 'instant',
@@ -990,6 +993,7 @@
990
993
  def('shell.workspace-step', {
991
994
  label: 'Workspace step',
992
995
  actsOn: 'Shows this project’s {instance}',
996
+ anyInstance: 'chosen step',
993
997
  group: 'In the project workspace',
994
998
  persistence: 'local',
995
999
  interaction: 'instant',
@@ -1005,6 +1009,7 @@
1005
1009
  // first cut narrated. Quoting it and using a verb that takes a quoted object keeps the sentence
1006
1010
  // grammatical whatever the card is called, without inventing a second label to maintain.
1007
1011
  actsOn: 'Produces "{instance}" from the approved model as an external file',
1012
+ anyInstance: 'the export you pick',
1008
1013
  group: 'In the project workspace',
1009
1014
  // `external`, not `approved`: what this writes lands OUTSIDE the contract - a file in the
1010
1015
  // project's exports folder. Host sends use the dedicated destructive command entries below.
@@ -1040,6 +1045,7 @@
1040
1045
  def('shell.export-open', {
1041
1046
  label: 'Open exported file',
1042
1047
  actsOn: 'Opens the exported {instance} in whichever application the system uses for it',
1048
+ anyInstance: 'file',
1043
1049
  group: 'In the project workspace',
1044
1050
  persistence: 'none',
1045
1051
  interaction: 'instant',
@@ -1051,6 +1057,7 @@
1051
1057
  def('shell.export-reveal', {
1052
1058
  label: 'Reveal exported file',
1053
1059
  actsOn: 'Shows the exported {instance} in its folder',
1060
+ anyInstance: 'file',
1054
1061
  group: 'In the project workspace',
1055
1062
  persistence: 'none',
1056
1063
  interaction: 'instant',
@@ -1352,31 +1359,62 @@
1352
1359
  group: 'In AI Chat settings', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
1353
1360
  });
1354
1361
  def('shell.chat-input', {
1355
- label: 'Message AI', actsOn: 'Writes the next message and saves the unfinished draft with this conversation',
1362
+ label: 'Message AI', actsOn: 'Writes the next message or a follow-up while AI is working, and saves the unfinished draft with this conversation',
1356
1363
  group: 'In AI Chat', key: 'Enter sends · Shift + Enter starts a new line', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
1357
1364
  });
1358
1365
  def('shell.chat-attach', {
1359
- label: 'Attach file', actsOn: 'Adds images or PDFs from this computer to the next message',
1366
+ label: 'Attach file', actsOn: 'Adds images (up to five per message) or PDFs from this computer to the next message or follow-up',
1360
1367
  group: 'In AI Chat', persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand',
1361
1368
  });
1362
1369
  def('shell.chat-attach-input', {
1363
- label: 'Choose attachments', actsOn: 'Selects the images or PDFs that the attachment button will add to the next message',
1370
+ label: 'Choose attachments', actsOn: 'Selects images (up to five per message) or PDFs to add to the next message or follow-up',
1364
1371
  group: 'In AI Chat', persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand',
1365
1372
  });
1366
1373
  def('shell.chat-attachment-remove', {
1367
1374
  label: 'Remove pending attachment', actsOn: 'Leaves {instance} out of the next message',
1368
1375
  group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1369
1376
  });
1377
+ def('shell.chat-tekla-remove', {
1378
+ label: 'Remove Tekla model library', actsOn: 'Removes the Tekla model library carried over from Graft, so Chat cannot ask to read the open model name in this conversation',
1379
+ group: 'In AI Chat', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
1380
+ why: 'Before you send, this only changes the draft. After the first message the library stays with this conversation and cannot be removed.',
1381
+ });
1370
1382
  def('shell.chat-skill', {
1371
1383
  label: 'Use skill', actsOn: 'Adds {instance} to the next message using the skill loaded by this provider',
1372
1384
  group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1373
1385
  });
1374
1386
  def('shell.chat-send', {
1375
- label: 'Send message', actsOn: 'Sends this message and its explicit attachments to the selected AI provider',
1387
+ label: 'Send message', actsOn: 'Sends this message and its attachments when AI is idle. While AI is working, AI takes it in the current response when possible, or FloLess queues it for the next response',
1388
+ group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
1389
+ });
1390
+ def('shell.chat-filter-keep', {
1391
+ label: 'Keep current selection', actsOn: 'Dismisses this Drawing Filter suggestion without changing any ticks',
1392
+ group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1393
+ });
1394
+ def('shell.chat-filter-apply', {
1395
+ label: 'Apply suggested selection', actsOn: 'Changes the Drawing Filter ticks to this suggestion, without saving the filter',
1396
+ group: 'In AI Chat', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
1397
+ why: 'Works only on the sheet and selection the suggestion was made from, in the open Drawing Filter. Review the drawing afterwards; Save filter stays your separate decision.',
1398
+ });
1399
+ def('shell.chat-filter-undo', {
1400
+ label: 'Undo applied suggestion', actsOn: 'Restores the Drawing Filter ticks from before Apply selection, until you edit or save them',
1401
+ group: 'In AI Chat', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
1402
+ });
1403
+ def('shell.chat-followup-resolve-local', {
1404
+ label: 'Review draft and continue', actsOn: 'Lets you review the restored text for {instance}; if it had attached files, refresh to check for them. AI may already have received it, so sending again could duplicate it',
1405
+ group: 'In AI Chat', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
1406
+ });
1407
+ def('shell.chat-followup-resolve-durable', {
1408
+ label: 'Continue without resending', actsOn: 'Rechecks the status of {instance}, then lets the chat continue without sending it again; an earlier queued message may start a paid response',
1409
+ group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-money'], guidance: 'on-demand',
1410
+ });
1411
+ def('shell.chat-followup-retry', {
1412
+ label: 'Retry sending', actsOn: 'Sends the confirmed unsent message “{instance}” and its attached files again, without changing the current draft',
1413
+ anyInstance: 'you pick',
1376
1414
  group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
1377
1415
  });
1378
1416
  def('shell.chat-stop', {
1379
- label: 'Stop AI', actsOn: 'Asks the provider to stop the active turn while keeping everything already received',
1417
+ label: 'Stop AI', actsOn: 'Stops the current AI response, keeps work already received, and marks waiting messages as not sent',
1380
1418
  group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
1381
1419
  });
1382
1420
  def('shell.chat-reconcile', {
@@ -1388,8 +1426,9 @@
1388
1426
  group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
1389
1427
  });
1390
1428
  def('shell.chat-approval-request', {
1391
- label: 'Approve for this request', actsOn: 'Allows this access action and future access actions until the current response finishes; keeps your permission setting and review checkpoints unchanged',
1429
+ label: 'Approve for this request', actsOn: 'Allows this access action and future access actions until the current response finishes; keeps your permission setting and review checkpoints unchanged, and Tekla model reads still ask every time',
1392
1430
  group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
1431
+ why: 'Saves approving each access action one by one during this response. A Tekla model read still asks you every time.',
1393
1432
  });
1394
1433
  def('shell.chat-approval-revoke', {
1395
1434
  label: 'Revoke request auto-approval', actsOn: 'Asks before future access actions in this request; actions already approved may finish',
@@ -1770,7 +1809,8 @@
1770
1809
  label: 'Close the editor',
1771
1810
  actsOn: 'Goes back — your edits are already saved',
1772
1811
  group: 'In the contract editor',
1773
- key: 'Also: Esc',
1812
+ // Esc is the editor's first (cancel a tool, close a menu, clear the selection); the Esc it leaves unused closes (#1571).
1813
+ key: 'Also: Esc, once nothing in the editor is left to cancel',
1774
1814
  persistence: 'none',
1775
1815
  interaction: 'instant',
1776
1816
  risk: [],
@@ -2015,6 +2055,7 @@
2015
2055
  def('shell.library-tab', {
2016
2056
  label: 'Agent library tab',
2017
2057
  actsOn: 'Lists the {instance} agents',
2058
+ anyInstance: 'installed or available',
2018
2059
  group: 'In the agent library',
2019
2060
  persistence: 'local',
2020
2061
  interaction: 'instant',
@@ -2025,6 +2066,7 @@
2025
2066
  def('shell.library-search', {
2026
2067
  label: 'Search agents',
2027
2068
  actsOn: 'Narrows the {instance} list',
2069
+ anyInstance: 'installed or available',
2028
2070
  group: 'In the agent library',
2029
2071
  persistence: 'none',
2030
2072
  interaction: 'instant',
@@ -2215,6 +2257,7 @@
2215
2257
  def('shell.routine-interval', {
2216
2258
  label: 'Routine interval',
2217
2259
  actsOn: 'Runs the routine every so many {instance}',
2260
+ anyInstance: 'minutes or hours',
2218
2261
  group: 'In the Routines dialog',
2219
2262
  persistence: 'working',
2220
2263
  interaction: 'instant',
@@ -2225,6 +2268,7 @@
2225
2268
  def('shell.routine-time', {
2226
2269
  label: 'Routine time',
2227
2270
  actsOn: 'Sets the {instance} the routine runs at',
2271
+ anyInstance: 'hour or minute',
2228
2272
  group: 'In the Routines dialog',
2229
2273
  persistence: 'working',
2230
2274
  interaction: 'instant',
@@ -2405,6 +2449,17 @@
2405
2449
  guidance: 'on-demand',
2406
2450
  });
2407
2451
 
2452
+ def('shell.graft-continue-chat', {
2453
+ label: 'Continue in AI Chat',
2454
+ actsOn: 'Closes this dialog and opens an editable, unsent AI Chat draft about the verified model read; nothing is sent and Tekla is not read again',
2455
+ group: 'In the Build an agent dialog',
2456
+ persistence: 'none',
2457
+ interaction: 'instant',
2458
+ risk: [],
2459
+ guidance: 'on-demand',
2460
+ why: 'Appears only after a successful model read. Chat can ask to read the model name again later, but FloLess asks you first and checks live each time.',
2461
+ });
2462
+
2408
2463
  def('shell.graft-verify-tekla-read', {
2409
2464
  label: 'Verify model read',
2410
2465
  actsOn: 'Reads the open Tekla model name using the selected Tekla model library; generated agent commands remain unverified',
@@ -299,7 +299,7 @@
299
299
  });
300
300
 
301
301
  def('steel.apply-profile-label', {
302
- label: 'Apply profile {instance}',
302
+ label: 'Apply the {instance} profile',
303
303
  actsOn: 'Replaces the selected member’s profile with {instance}',
304
304
  group: 'On the drawing canvas',
305
305
  persistence: 'working',
@@ -1152,6 +1152,7 @@
1152
1152
  def('steel.member-end-history', {
1153
1153
  label: 'Member-end history',
1154
1154
  actsOn: '{instance} the newest member-end resolution',
1155
+ anyInstance: 'Undo or redo',
1155
1156
  group: 'In the Properties panel',
1156
1157
  persistence: 'working',
1157
1158
  interaction: 'instant',
@@ -1466,7 +1467,7 @@
1466
1467
  });
1467
1468
  def('steel.property-label-all', {
1468
1469
  label: "For all",
1469
- actsOn: "Labels every member in the view the {instance} menu edits, and turns off both selection scopes there",
1470
+ actsOn: "Labels every member in the view edited by the {instance} menu, and turns off both selection scopes there",
1470
1471
  group: "In the label menus",
1471
1472
  persistence: "working",
1472
1473
  interaction: "instant",
@@ -1475,7 +1476,7 @@
1475
1476
  });
1476
1477
  def('steel.property-label-selected', {
1477
1478
  label: "For selected",
1478
- actsOn: "Keeps labels on the members selected when turned on, in the view the {instance} menu edits",
1479
+ actsOn: "Keeps labels on the members selected when turned on, in the view edited by the {instance} menu",
1479
1480
  group: "In the label menus",
1480
1481
  persistence: "working",
1481
1482
  interaction: "instant",
@@ -1485,7 +1486,7 @@
1485
1486
  });
1486
1487
  def('steel.property-label-live', {
1487
1488
  label: "On selection",
1488
- actsOn: "Labels follow the current selection in the view the {instance} menu edits",
1489
+ actsOn: "Labels follow the current selection in the view edited by the {instance} menu",
1489
1490
  group: "In the label menus",
1490
1491
  persistence: "working",
1491
1492
  interaction: "instant",
@@ -1592,6 +1593,7 @@
1592
1593
  def('steel.toolbar-menu', {
1593
1594
  label: 'Toolbar menu',
1594
1595
  actsOn: 'Opens the {instance} options',
1596
+ anyInstance: 'toolbar menu’s',
1595
1597
  group: 'In the 3D toolbar',
1596
1598
  persistence: 'none',
1597
1599
  interaction: 'instant',
@@ -1604,6 +1606,7 @@
1604
1606
  def('steel.panel-menu', {
1605
1607
  label: 'Properties panel menu',
1606
1608
  actsOn: 'Opens the {instance} options',
1609
+ anyInstance: 'panel menu’s',
1607
1610
  group: 'In the Properties panel',
1608
1611
  persistence: 'none',
1609
1612
  interaction: 'instant',
@@ -1673,6 +1676,7 @@
1673
1676
  def('steel.view-cut-depth', {
1674
1677
  label: 'Cut depth',
1675
1678
  actsOn: 'Sets the {instance} depth of the view’s cut',
1679
+ anyInstance: 'chosen',
1676
1680
  group: 'In the Properties panel',
1677
1681
  persistence: 'working',
1678
1682
  interaction: 'instant',
@@ -1755,6 +1759,7 @@
1755
1759
  def('steel.view-direction', {
1756
1760
  label: 'Look direction',
1757
1761
  actsOn: 'Aims the section toward {instance} world X or Y',
1762
+ anyInstance: 'the direction you pick along',
1758
1763
  group: 'In the Generate views dialog',
1759
1764
  persistence: 'none',
1760
1765
  interaction: 'instant',
@@ -1765,6 +1770,7 @@
1765
1770
  def('steel.view-depth', {
1766
1771
  label: 'View depth',
1767
1772
  actsOn: 'Sets how far {instance} of the grid line the view reaches',
1773
+ anyInstance: 'ahead or behind',
1768
1774
  group: 'In the Generate views dialog',
1769
1775
  persistence: 'none',
1770
1776
  interaction: 'instant',
@@ -1876,6 +1882,7 @@
1876
1882
  def('steel.reference-select-all', {
1877
1883
  label: 'Select or clear all',
1878
1884
  actsOn: 'Ticks or unticks every {instance}',
1885
+ anyInstance: 'storey or type',
1879
1886
  group: 'In the reference-model dialogs',
1880
1887
  persistence: 'none',
1881
1888
  interaction: 'instant',
@@ -2117,7 +2124,7 @@
2117
2124
 
2118
2125
  def('steel.overwrite-save', { label: 'Overwrite and save', actsOn: 'Replaces the newer saved model with the version open here', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: 'Only appears after a save conflict and asks for confirmation before the other saved version is replaced.' });
2119
2126
  def('steel.dimension-end-style', { label: 'Dimension end style', actsOn: 'Draws dimension ends as {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2120
- def('steel.dimension-label-position', { label: 'Dimension label position', actsOn: 'Places dimension text {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2127
+ def('steel.dimension-label-position', { label: 'Dimension label position', actsOn: 'Places dimension text {instance}', anyInstance: 'above or on the line', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2121
2128
  def('steel.dimension-label-background', { label: 'Label background', actsOn: 'Shows or hides the filled chip behind dimension text', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'With it off, a halo keeps the text readable while leaving more of the drawing visible.' });
2122
2129
  def('steel.dimension-clear-overrides', { label: 'Follow defaults again', actsOn: 'Removes every per-dimension style on this sheet', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Only appears when one or more dimensions override the shared defaults. Undo restores those overrides.' });
2123
2130
  def('steel.grid-level-visibility', { label: 'Level visibility', actsOn: 'Shows or hides the 3D grid for {instance}', group: 'In the grid panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
@@ -2136,13 +2143,13 @@
2136
2143
  def('steel.catalog-material', { label: 'Material choice', actsOn: 'Stages {instance} and shows its provider facts before anything is applied', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The model stays unchanged until Apply is pressed.' });
2137
2144
  def('steel.catalog-material-default', { label: 'Use profile default', actsOn: 'Stages omission of an explicit grade so each member follows its profile', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The model stays unchanged until the choice is applied.' });
2138
2145
  def('steel.catalog-material-current', { label: 'Keep current material', actsOn: 'Stages the project material that is not present in this provider catalog', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2139
- def('steel.catalog-custom', { label: 'Custom designation', actsOn: 'Edits a catalog-independent {instance} value for this choice', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2140
- def('steel.catalog-use-custom', { label: 'Stage custom value', actsOn: 'Stages the typed {instance} designation without changing the model yet', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2146
+ def('steel.catalog-custom', { label: 'Custom designation', actsOn: 'Edits a catalog-independent {instance} value for this choice', anyInstance: 'profile or material', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2147
+ def('steel.catalog-use-custom', { label: 'Stage custom value', actsOn: 'Stages the typed {instance} designation without changing the model yet', anyInstance: 'profile or material', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2141
2148
  def('steel.catalog-apply', { label: 'Apply catalog choice', actsOn: 'Writes {instance} to the member scope named at the top of this picker', group: 'In the steel editor dialogs', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2142
2149
  def('steel.catalog-cancel', { label: 'Cancel catalog choice', actsOn: 'Closes the picker and leaves the model unchanged', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2143
- def('steel.catalog-clear-search', { label: 'Clear catalog search', actsOn: 'Restores every available {instance} row in this picker', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2144
- def('steel.catalog-retry', { label: 'Retry catalog load', actsOn: 'Requests the {instance} provider again after a load failure', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2145
- def('steel.catalog-show-more', { label: 'Show more catalog rows', actsOn: 'Reveals the next page of matching {instance}', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2150
+ def('steel.catalog-clear-search', { label: 'Clear catalog search', actsOn: 'Restores every available {instance} row in this picker', anyInstance: 'catalog', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2151
+ def('steel.catalog-retry', { label: 'Retry catalog load', actsOn: 'Retries the {instance} provider after a load failure', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2152
+ def('steel.catalog-show-more', { label: 'Show more catalog rows', actsOn: 'Reveals the next page of matching {instance}', anyInstance: 'profiles', group: 'In the steel editor dialogs', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2146
2153
  def('steel.detail-placement-coordinate', { label: 'Detail coordinate', actsOn: 'Moves the selected reference detail along {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2147
2154
  def('steel.detail-placement-rotation', { label: 'Detail rotation', actsOn: 'Rotates the selected reference detail on its image plane', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2148
2155
  def('steel.detail-placement-size', { label: 'Detail size', actsOn: 'Sets the displayed size of the selected reference detail', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The placed image is reference-only; changing its size does not build steel.' });
@@ -2243,7 +2250,7 @@
2243
2250
  def('steel.selection-material', { label: 'Material grade', actsOn: 'Sets one material on every selected member', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2244
2251
  def('steel.selection-verified', { label: 'Verify selected members', actsOn: 'Marks or unmarks every selected member as human-confirmed', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Human confirmation contributes full confidence but does not invent a missing AISC size.' });
2245
2252
  def('steel.ends-swap', { label: 'Swap start and end', actsOn: 'Reverses the eligible selected beam members', group: 'In the Properties panel', key: 'Also: P', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Columns stay base-to-top, and braces use their separate lower-end display control.' });
2246
- def('steel.quick-dimension-anchor', { label: 'Spacing point', actsOn: 'Measures each selected beam at its {instance}', group: 'In the Properties panel', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2253
+ def('steel.quick-dimension-anchor', { label: 'Spacing point', actsOn: 'Measures each selected beam at its {instance}', anyInstance: 'start, middle or end', group: 'In the Properties panel', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2247
2254
  def('steel.members-delete', { label: 'Delete selected members', actsOn: 'Removes every selected member from this sheet', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Undo restores the members and their presentation references.' });
2248
2255
  def('steel.member-delete', { label: 'Delete member', actsOn: 'Removes the selected member from this sheet', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Undo restores the member and its presentation references.' });
2249
2256
  def('steel.detail-preview', { label: 'Open detail', actsOn: 'Shows the detail image assigned to {instance}', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
@@ -2259,7 +2266,7 @@
2259
2266
  def('steel.connection-stiffener', { label: 'Opposite stiffener', actsOn: 'Adds or removes the opposite support stiffener for {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2260
2267
  def('steel.connection-end-remove', { label: 'Remove end connection', actsOn: 'Deletes the plate connection at {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The member stays, and Undo restores the connection.' });
2261
2268
  def('steel.brace-type', { label: 'Brace type', actsOn: 'Draws the brace as {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Lateral uses the true work points; vertical can carry a display offset.' });
2262
- def('steel.brace-position', { label: 'Brace position', actsOn: 'Draws the brace {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This changes the 2D symbol only; the member geometry does not move.' });
2269
+ def('steel.brace-position', { label: 'Brace position', actsOn: 'Draws the brace {instance}', anyInstance: 'above or below the floor', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This changes the 2D symbol only; the member geometry does not move.' });
2263
2270
  def('steel.brace-offset', { label: 'Brace offset', actsOn: 'Offsets the brace symbol from its work-point line', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The steel itself never moves; this is a display-only plan offset.' });
2264
2271
  def('steel.brace-offset-flip', { label: 'Flip brace offset', actsOn: 'Draws the brace symbol on the opposite side of its work-point line', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2265
2272
  def('steel.brace-lower-end-swap', { label: 'Swap lower brace end', actsOn: 'Moves the double arrowhead to the opposite brace end', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Display only — neither work point nor elevation changes.' });
@@ -2273,11 +2280,11 @@
2273
2280
  def('steel.properties-pin', { label: 'Pin Properties', actsOn: 'Keeps the Properties popup open while the selection changes', group: 'In the Properties popup', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2274
2281
  def('steel.properties-clear', { label: 'Clear all properties', actsOn: 'Unchecks every property label', group: 'In the Properties popup', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Visibility can remain on with no property selected; no labels are drawn in that state.' });
2275
2282
  def('steel.properties-search', { label: 'Search properties', actsOn: 'Filters the property rows by name', group: 'In the Properties popup', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2276
- def('steel.properties-placement', { label: 'Property label placement', actsOn: 'Anchors property labels at the member {instance}', group: 'In the Properties popup', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2283
+ def('steel.properties-placement', { label: 'Property label placement', actsOn: 'Anchors property labels at the member {instance}', anyInstance: 'start, middle or end', group: 'In the Properties popup', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2277
2284
  def('steel.property-label', { label: 'Property label', actsOn: 'Shows or hides the label for {instance}', group: 'In the Properties popup', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2278
2285
  def('steel.snap-override', { label: 'Snap override', actsOn: 'Restricts the current pick to {instance}', group: 'In the snap override menu', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The override clears when the current operation ends; running snap settings are unchanged.' });
2279
2286
  def('steel.dimension-value', { label: 'Dimension value', actsOn: 'Sets the selected dimension to a typed length', group: 'In the dimension value popup', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Which linked end moves is controlled by the left and right buttons beside the value.' });
2280
- def('steel.dimension-driven-end', { label: 'Driven dimension end', actsOn: 'Lets the typed dimension value move the {instance}', group: 'In the dimension value popup', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'At least one end always remains selected; enabling both moves them symmetrically.' });
2287
+ def('steel.dimension-driven-end', { label: 'Driven dimension end', actsOn: 'Lets the typed dimension value move the {instance}', anyInstance: 'left or right end', group: 'In the dimension value popup', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'At least one end always remains selected; enabling both moves them symmetrically.' });
2281
2288
  def('steel.selection-type-filter', { label: 'Selection type', actsOn: 'Allows or blocks selecting {instance}', group: 'In the selection filter', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2282
2289
  def('steel.selection-type-filter-all', { label: 'All selection types', actsOn: 'Allows or blocks every type under {instance}', group: 'In the selection filter', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
2283
2290
  def('steel.member-type', { label: 'Member type', actsOn: 'Sets the member category for {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The type controls role-specific editing and how the member is grouped in the legend.' });
@@ -2324,6 +2331,7 @@
2324
2331
  def('steel.position-face', {
2325
2332
  label: 'Profile position',
2326
2333
  actsOn: 'Puts the section {instance} — the work-line does not move',
2334
+ anyInstance: 'in the position you pick',
2327
2335
  group: 'In the Properties panel',
2328
2336
  persistence: 'working',
2329
2337
  interaction: 'instant',
@@ -141,6 +141,21 @@
141
141
  }
142
142
  }
143
143
 
144
+ /* anyInstance REPLACES the slot, so it must be prose, and it only means something on a
145
+ template that has a slot to fill. One on a template without `{instance}` is dead copy
146
+ that reads as if it were doing something. (#1442) */
147
+ if (meta.anyInstance != null) {
148
+ var slotted = String(meta.label || '').indexOf('{instance}') !== -1
149
+ || String(meta.actsOn || '').indexOf('{instance}') !== -1;
150
+ if (typeof meta.anyInstance !== 'string' || !meta.anyInstance.trim() || /[{}]/.test(meta.anyInstance)) {
151
+ fail(id, 'anyInstance must be a plain-English phrase with no braces');
152
+ ok = false;
153
+ } else if (!slotted) {
154
+ fail(id, 'anyInstance is set but neither label nor actsOn has an {instance} slot to fill');
155
+ ok = false;
156
+ }
157
+ }
158
+
144
159
  // A command that narrates steps must say what its steps are.
145
160
  if (meta.guidance === GUIDANCE_REQUIRING_STEPS && (!Array.isArray(meta.steps) || !meta.steps.length)) {
146
161
  fail(id, 'guidance "active-command" requires a non-empty steps array');
@@ -185,6 +200,10 @@
185
200
  // every command that can be abandoned — but wrong, and misleading, for one whose Esc still
186
201
  // commits something. A command that escapes differently says so once, here.
187
202
  escLabel: meta.escLabel || null,
203
+ // What `{instance}` reads as when no particular instance is known — the `?` sheet lists
204
+ // templates. Only for a slot "the one you pick" cannot fill (an adverb, a unit, a kind);
205
+ // instructor.js fillInstance() derives every other fallback from the words around it.
206
+ anyInstance: meta.anyInstance || null,
188
207
  why: meta.why || null,
189
208
  surface: currentSurface,
190
209
  tier: tierOf(meta),
@@ -0,0 +1,57 @@
1
+ /** A bounded, explicitly partial view for read-only Drawing Filter questions. */
2
+ export function rankFilterControls(controls, instruction, focusedControl) {
3
+ const upper = String(instruction || '').toUpperCase();
4
+ const words = upper.match(/[A-Z0-9]{3,}/g) || [];
5
+ const score = row => {
6
+ const label = String(row.label || '').toUpperCase();
7
+ const focused = focusedControl?.dimension === row.dimension
8
+ && (focusedControl.key !== undefined && (row.key !== undefined || row.value !== undefined)
9
+ ? focusedControl.key === (row.key ?? row.value)
10
+ : String(focusedControl.label).toUpperCase() === label);
11
+ return (focused ? 100 : 0)
12
+ + (label && upper.includes(label) ? 80 : 0)
13
+ + (words.some(word => label.includes(word)) ? 40 : 0)
14
+ + (/GRID|BEAM|STEL|STEEL|DIM|SECT|PROFILE|MARK/.test(label) ? 10 : 0)
15
+ + (row.checked ? 2 : 0);
16
+ };
17
+ return [...controls].sort((a, b) => score(b) - score(a));
18
+ }
19
+
20
+ export function readOnlyFilterContext(snapshot, instruction, scope) {
21
+ const facts = [
22
+ scope,
23
+ ('Current sheet: '+(snapshot.sheet || 'not loaded')+'; mode: '+(snapshot.mode || 'not loaded')+'. Checked properties must all match.').slice(0,500),
24
+ ];
25
+ const controls = snapshot.controls || [];
26
+ let represented = 0, part = '';
27
+ for (const row of controls) {
28
+ const entry = row.dimension+':'+JSON.stringify(row.label)+' '+(row.checked?'on':'off')+' ('+row.count+')'
29
+ +(row.notRead ? ' not read by FloLess and cannot be changed here' : '');
30
+ if (part && part.length + entry.length + 2 > 500) {
31
+ facts.push(part); part = '';
32
+ }
33
+ if (facts.length >= 10) break;
34
+ part += (part ? '; ' : '') + entry;
35
+ represented++;
36
+ }
37
+ if (part && facts.length < 10) facts.push(part);
38
+ const samples = snapshot.sheetTextSamples || [];
39
+ let sampleCount = 0, sampleFact = 'Text examples, not a complete read: ';
40
+ for (const row of samples) {
41
+ const entry = JSON.stringify(row.text)+' on '+JSON.stringify(row.layer)+' '+(row.selected?'selected':'excluded');
42
+ if (sampleFact.length + entry.length + 2 > 500) break;
43
+ sampleFact += (sampleCount ? '; ' : '') + entry;
44
+ sampleCount++;
45
+ }
46
+ if (sampleCount) facts.push(sampleFact);
47
+ facts.push('Partial drawing view: '+represented+' of '+(snapshot.controlTotal ?? controls.length)+' controls and '+sampleCount+' of '+(snapshot.textTotal ?? samples.length)+' text items are listed. More drawing content may exist. Do not claim a complete audit.');
48
+ return { subject:instruction, commandId:'filter.ask-ai-question', surface:'steel-filter', tone:'idle', facts };
49
+ }
50
+
51
+ /** Unsaved ticks and the current sheet are part of the Question's answer identity. */
52
+ export function filterViewFingerprint(sheet, selection) {
53
+ return JSON.stringify({ sheet, mode:selection.mode,
54
+ layers:[...selection.layers].sort(),
55
+ thicknesses:[...selection.thicknesses].sort((a,b)=>a-b),
56
+ colors:[...selection.colors].sort() });
57
+ }