@floless/app 0.170.0 → 0.171.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/floless-server.cjs +33000 -22928
  2. package/dist/schemas/steel.model.v2.schema.json +194 -3
  3. package/dist/skills/floless-app-bridge/SKILL.md +3 -3
  4. package/dist/skills/floless-app-knowledge/SKILL.md +4 -3
  5. package/dist/skills/floless-app-onboarding/SKILL.md +5 -4
  6. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +0 -3
  7. package/dist/skills/floless-app-queue/SKILL.md +2 -3
  8. package/dist/skills/floless-app-report-issue/SKILL.md +2 -2
  9. package/dist/skills/floless-app-steel-model/SKILL.md +35 -35
  10. package/dist/skills/floless-app-steel-model/references/custom-connections.md +47 -0
  11. package/dist/skills/floless-app-steel-model/references/custom-sections.md +32 -0
  12. package/dist/skills/floless-app-ui/SKILL.md +71 -126
  13. package/dist/web/add-ons.js +407 -0
  14. package/dist/web/analytics.js +1 -1
  15. package/dist/web/app.css +108 -189
  16. package/dist/web/app.js +11 -12
  17. package/dist/web/aware.js +49 -29
  18. package/dist/web/chat.css +6 -1
  19. package/dist/web/chat.js +133 -18
  20. package/dist/web/commands-filter.js +23 -0
  21. package/dist/web/commands-shell.js +39 -67
  22. package/dist/web/commands-steel.js +9 -1
  23. package/dist/web/commands-tekla-parser.js +23 -0
  24. package/dist/web/connections.js +14 -3
  25. package/dist/web/failure-copy.js +1 -0
  26. package/dist/web/guide.js +3 -3
  27. package/dist/web/index.html +29 -56
  28. package/dist/web/instructor.js +2 -2
  29. package/dist/web/kb-categories.js +64 -7
  30. package/dist/web/model-change-findings.js +430 -0
  31. package/dist/web/model-change-review.js +414 -0
  32. package/dist/web/model-editor-steel-adapter.js +2 -2
  33. package/dist/web/project-history.js +7 -1
  34. package/dist/web/revit-editor.css +85 -0
  35. package/dist/web/revit-editor.js +36 -1
  36. package/dist/web/sha256-sync.js +62 -0
  37. package/dist/web/steel-3d-core.js +7 -0
  38. package/dist/web/steel-3d-flo.js +127 -3
  39. package/dist/web/steel-3d-view.js +25 -2
  40. package/dist/web/steel-custom-connection.js +161 -0
  41. package/dist/web/steel-custom-sections.js +1796 -0
  42. package/dist/web/steel-editor.html +279 -41
  43. package/dist/web/steel-filter-usage.js +299 -0
  44. package/dist/web/steel-filter.html +101 -4
  45. package/dist/web/steel-model-v2-client-validation.js +3 -0
  46. package/dist/web/steel-model-v2-commands.js +95 -6
  47. package/dist/web/steel-model-v2-projection.js +1 -1
  48. package/dist/web/steel-read-confidence.js +1 -56
  49. package/dist/web/tekla-editor.html +1 -0
  50. package/dist/web/workspaces.js +263 -28
  51. package/launch.mjs +87 -9
  52. package/package.json +1 -1
  53. package/dist/web/panels.js +0 -831
@@ -326,16 +326,6 @@
326
326
  guidance: 'on-demand',
327
327
  });
328
328
 
329
- def('menu.view-switch', {
330
- label: 'Switch view',
331
- actsOn: 'Swaps between Workflows and Workspaces',
332
- group: 'In the ≡ menu',
333
- key: 'Also: Ctrl+1 / Ctrl+2',
334
- persistence: 'local',
335
- interaction: 'instant',
336
- risk: [],
337
- guidance: 'on-demand',
338
- });
339
329
 
340
330
  def('menu.tool-updates', {
341
331
  label: 'Tool updates',
@@ -598,6 +588,29 @@
598
588
  guidance: 'on-demand',
599
589
  });
600
590
 
591
+ // #3296 S1b: My add-ons — the person's own add-ons, made by the AI chat (web/add-ons.js).
592
+ def('menu.add-ons', {
593
+ label: 'My add-ons', actsOn: 'Shows your own add-ons: what each can do, its versions, and whether it is on',
594
+ group: 'In the ≡ menu', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
595
+ why: 'Add-ons are your own extensions, made by the AI chat. Each one is off until you turn it on here or on a chat card.',
596
+ });
597
+ def('shell.add-ons-select', { label: 'Show an add-on', actsOn: 'Shows one add-on in full', group: 'In My add-ons', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
598
+ def('shell.add-ons-turn-on', {
599
+ label: 'Turn on this add-on version', actsOn: 'Turns on exactly the version shown; the version that was on stops being used',
600
+ group: 'In My add-ons', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
601
+ why: 'Your decision about your own unreviewed add-on. It runs no code, and you can go back to another version at any time.',
602
+ });
603
+ def('shell.add-ons-turn-off', { label: 'Turn off an add-on', actsOn: 'Stops offering the add-on; what it made stays in your models', group: 'In My add-ons', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
604
+ def('shell.add-ons-discard-preview', { label: 'Discard the waiting version', actsOn: 'Stops offering the waiting version; it stays in the history', group: 'In My add-ons', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
605
+ def('shell.add-ons-go-back', { label: 'Go back to an add-on version', actsOn: 'Turns an earlier version on instead, after you click a second time', group: 'In My add-ons', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
606
+ def('shell.add-ons-show-older', { label: 'Show older add-on versions', actsOn: 'Lists the rest of the version history', group: 'In My add-ons', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
607
+ def('shell.add-ons-ask-change', { label: 'Ask AI to change an add-on', actsOn: 'Puts a message in the chat box; nothing is sent', group: 'In My add-ons', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
608
+ def('shell.add-ons-ask-fix', { label: 'Ask AI to fix an add-on', actsOn: 'Puts a message about what does not work in the chat box; nothing is sent', group: 'In My add-ons', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
609
+ def('shell.add-ons-ask-make', { label: 'Ask AI to make an add-on', actsOn: 'Puts a message in the chat box; nothing is sent', group: 'In My add-ons', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
610
+ def('shell.add-ons-remove', { label: 'Remove an add-on', actsOn: 'Turns it off and takes it out of the list, after you click a second time; what it made stays in your models', group: 'In My add-ons', persistence: 'local', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand' });
611
+ def('shell.add-ons-import', { label: 'Import an add-on', actsOn: 'Opens a file picker for an add-on file; it arrives off', group: 'In My add-ons', persistence: 'local', interaction: 'dialog', risk: [], guidance: 'on-demand' });
612
+ def('shell.add-ons-import-choice', { label: 'Answer an import question', actsOn: 'Imports the add-on the way you choose; nothing in place is replaced', group: 'In My add-ons', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
613
+
601
614
  def('menu.guide', {
602
615
  label: 'Guide',
603
616
  actsOn: 'Opens the Guide in AI Chat, or first asks whether it may look at this computer',
@@ -992,16 +1005,6 @@
992
1005
  why: 'An agent remembers a check you want done again and again — on the projects you choose, and only those. You run it by hand and read what it found in AI Chat.',
993
1006
  });
994
1007
 
995
- def('shell.extension-badge', {
996
- label: 'Extension edits',
997
- actsOn: 'Opens undo, redo and reset for out-of-band edits',
998
- group: 'In the header',
999
- persistence: 'none',
1000
- interaction: 'instant',
1001
- risk: [],
1002
- guidance: 'on-demand',
1003
- why: 'Appears only when something outside FloLess changed this workflow.',
1004
- });
1005
1008
 
1006
1009
  def('shell.approve', {
1007
1010
  label: 'Approve',
@@ -2263,6 +2266,18 @@
2263
2266
  why: 'A picture of a Quick model carries the label drawn into it. When the renderer cannot draw it, you choose: update the renderer and try again, or render with the label in the file name only, which is recorded on the export.',
2264
2267
  });
2265
2268
 
2269
+ def('shell.ifc-custom-section-choice', {
2270
+ label: 'Custom sections in an IFC file',
2271
+ actsOn: 'Exports the IFC file by choosing "{instance}"',
2272
+ anyInstance: 'what to do with them',
2273
+ group: 'In the project workspace',
2274
+ persistence: 'none',
2275
+ interaction: 'dialog',
2276
+ risk: [],
2277
+ guidance: 'on-demand',
2278
+ why: 'An IFC file can carry a custom section only when its shape is one IFC knows, such as an I-section. For any other shape you choose: leave those members out, or send each as its bounding box, named in the file as an assumption.',
2279
+ });
2280
+
2266
2281
  def('shell.host-send-start', {
2267
2282
  label: 'Send to a CAD application',
2268
2283
  actsOn: 'Reviews the approved model, then sends it to the CAD applications you choose',
@@ -2793,7 +2808,7 @@
2793
2808
  });
2794
2809
  def('shell.kb-reference', {
2795
2810
  label: '{instance} (a reference)',
2796
- actsOn: 'Previews {instance}; Ctrl+click or Shift+click selects it for Move to…, Ctrl+A selects every reference shown, and it can be dragged onto a category',
2811
+ actsOn: 'Previews {instance}; Ctrl+click or Shift+click selects it for Move to…, Ctrl+A selects every reference shown, and it can be dragged onto a category or onto an empty category’s “Drag references here” line',
2797
2812
  group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2798
2813
  });
2799
2814
  def('shell.kb-category-row-toggle', {
@@ -2824,7 +2839,7 @@
2824
2839
  });
2825
2840
  def('shell.kb-graph-filter', {
2826
2841
  label: 'Show or hide {instance} on the map',
2827
- actsOn: 'Shows or hides a category or a page type on the knowledge map',
2842
+ actsOn: 'Shows or hides a category or a page type on the knowledge map; a category’s number counts its files and the pages made from them',
2828
2843
  group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2829
2844
  });
2830
2845
  def('shell.kb-graph-search', {
@@ -5316,49 +5331,6 @@
5316
5331
  guidance: 'on-demand',
5317
5332
  });
5318
5333
 
5319
- /* ── out-of-band edits ──────────────────────────────────────────────────── */
5320
-
5321
- def('shell.extension-undo', {
5322
- label: 'Undo the extension edit',
5323
- actsOn: 'Reverses the last change made outside FloLess',
5324
- group: 'In the header',
5325
- persistence: 'working',
5326
- interaction: 'instant',
5327
- risk: [],
5328
- guidance: 'on-demand',
5329
- });
5330
-
5331
- def('shell.extension-redo', {
5332
- label: 'Redo the extension edit',
5333
- actsOn: 'Re-applies the change you just undid',
5334
- group: 'In the header',
5335
- persistence: 'working',
5336
- interaction: 'instant',
5337
- risk: [],
5338
- guidance: 'on-demand',
5339
- });
5340
-
5341
- def('shell.extension-reset', {
5342
- label: 'Reset the extension edits',
5343
- actsOn: 'Asks whether to drop every out-of-band change',
5344
- group: 'In the header',
5345
- persistence: 'none',
5346
- interaction: 'dialog',
5347
- risk: [],
5348
- guidance: 'on-demand',
5349
- });
5350
-
5351
- def('shell.extension-reset-confirm', {
5352
- label: 'Drop the extension edits',
5353
- actsOn: 'Throws away every change made outside FloLess',
5354
- group: 'In the header',
5355
- persistence: 'working',
5356
- interaction: 'instant',
5357
- risk: ['destructive'],
5358
- guidance: 'on-demand',
5359
- why: 'There is no undo for this one — it is the undo.',
5360
- });
5361
-
5362
5334
  /* ── shared dialog chrome ───────────────────────────────────────────────────
5363
5335
  One template each, keyed by the dialog. See the section header above for
5364
5336
  why Cancel and Close are shared and the confirms are not. */
@@ -5372,7 +5344,7 @@
5372
5344
  def('shell.guide-turn-on', {
5373
5345
  label: 'Turn on the Guide', actsOn: 'Lets the Guide look at this computer, taking the look now if you have not opened the preview; once your AI is signed in, sends that look and starts its conversation in AI Chat',
5374
5346
  group: 'In the Guide question', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
5375
- why: 'The Guide starts Read only, and the looks it takes by itself always run Read only. In your own messages it changes things only if you change its Access in the chat. Turn it off or delete its history at any time from its conversation’s settings.',
5347
+ why: 'The Guide starts on Auto: in your own messages it can make safe changes by itself, and its Auto check holds risky steps, like deleting, back. The looks and briefings FloLess starts by itself always run Read only. Turn it off or delete its history at any time from its conversation’s settings; change its Access in the chat.',
5376
5348
  });
5377
5349
  def('shell.guide-start', {
5378
5350
  label: 'Start the Guide', actsOn: 'Sends the fresh look shown to the Guide’s conversation in AI Chat',
@@ -5698,7 +5670,7 @@
5698
5670
 
5699
5671
  def('shell.project-history-section', {
5700
5672
  label: 'Show or hide {instance} events',
5701
- actsOn: 'Opens or closes one area of the history: the project, its knowledge, workflows, RFIs, linked projects or requests',
5673
+ actsOn: 'Opens or closes one area of the history: the project, its knowledge, workflows, agents, RFIs, linked projects or requests',
5702
5674
  anyInstance: 'an area',
5703
5675
  group: HISTORY_STEP,
5704
5676
  persistence: 'none',
@@ -2163,7 +2163,7 @@
2163
2163
  /* #2521 row 6: what in a Quick model rests on an AI decision. The switch only hides the canvas and 3D marks; the strip
2164
2164
  and the Inspect note stay, because they carry "unmarked members may still rest on AI decisions". */
2165
2165
  def('steel.show-flo', { label: 'Show Flo', actsOn: 'Turns Flo on or off on the 3D model', group: 'In the 3D toolbar', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Flo is off until you turn it on, in the Labels menu of the 3D toolbar. Flo stands on the model, hops onto the member you select and says what it is, shows what AI Chat is doing on this project and, after the AI changes the model, visits each member it changed. It is decoration only: it is never selected, measured or exported, and it changes nothing.' });
2166
- def('steel.flo-size', { label: 'Flo size', actsOn: 'Sets how big Flo and Flo’s card are drawn in 3D', group: 'In the 3D toolbar', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Like Grid label size for the grid bubbles: Flo and its card keep this size on screen however far you zoom. 100% is the size Flo is designed at.' });
2166
+ def('steel.flo-size', { label: 'Flo size', actsOn: 'Sets how big Flo and Flo’s card are drawn in 3D', group: 'In the 3D toolbar', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Flo follows the zoom: it gets smaller as you zoom in close, so it never covers the members you are looking at, and bigger as you zoom out, so it stays easy to find. Flo size sets the size it starts from, and Flo’s card keeps that size on screen. 100% is the size Flo is designed at.' });
2167
2167
  def('steel.flo-card-settings', { label: 'Flo’s card', actsOn: 'Opens or closes the list of what Flo’s card shows', group: 'In the 3D toolbar', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2168
2168
  def('steel.flo-card-field', { label: 'Flo’s card: {instance}', actsOn: 'Shows or hides {instance} on Flo’s card', group: 'In the 3D toolbar', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'When Flo lands on a member, a card beside Flo says what it is. The card lists what is switched on here, in this list’s order, and leaves out anything the member has no value for. With several members selected it speaks for all of them, as Properties does: a value they share is shown, one that differs reads Varies. The values are the ones Properties shows, in your display units.' });
2169
2169
  def('steel.flo-card-reset', { label: 'Reset Flo’s card', actsOn: 'Sets Flo’s card back to type, mark, profile, length and weight', group: 'In the 3D toolbar', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
@@ -2409,6 +2409,9 @@
2409
2409
  def('steel.connection-edit-member', { label: 'Edit connection parameters', actsOn: 'Selects the parent member where the connection parameters live', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
2410
2410
  def('steel.connection-sign-off', { label: 'Mark connection reviewed', actsOn: 'Records that this imported connection was checked against the steel it sits on now', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This is a sign-off record rather than a model edit, so Ctrl+Z will not undo it — use Reopen review instead. It is refused if the model changed while it was being saved.' });
2411
2411
  def('steel.connection-reopen', { label: 'Reopen connection review', actsOn: 'Clears the sign-off so this connection asks to be checked again', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'It is offered only on a connection someone actually signed off, and like the sign-off it is a record rather than a model edit, so Ctrl+Z will not undo it.' });
2412
+ def('steel.connection-ai-label-model', { label: 'Show the AI-assisted label on every connection', actsOn: 'Turns the AI-assisted connection label on or off for every connection in this model', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'It hides the label on exports and part names only; FloLess keeps the record that the AI built each connection. It is a display setting, not a model edit, so Ctrl+Z will not undo it — switch it back instead.' });
2413
+ def('steel.connection-ai-label-joint', { label: 'Show the AI-assisted label on this connection', actsOn: 'Turns the AI-assisted connection label on or off for the selected custom connection', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'It is offered while the label is on for the model. Like the model switch it hides the label only, and the record keeps that the AI built the connection.' });
2414
+ def('steel.connection-fit-checks-toggle', { label: 'Show every fit check', actsOn: 'Shows or hides the fit checks of a custom connection that are within their rule', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The checks that need attention are always shown; this only folds away the ones within their rule when there are many.' });
2412
2415
  // ONE step, and an Esc that is true of it. This narrates the CROSSHAIR only: once the point is
2413
2416
  // accepted, `steel.connection-members` takes over and already owns "click each member … Esc to skip".
2414
2417
  // The first cut claimed both stages, so it promised two steps it never reached and an escLabel that
@@ -2567,6 +2570,11 @@
2567
2570
  def('steel.member-line-dash', { label: 'Line pattern', actsOn: 'Draws this member type as {instance}', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This is a 2D style shared by every member of the same type.' });
2568
2571
  def('steel.member-profile', { label: 'Profile', actsOn: 'Changes the profile of the selected member', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Unlike Current profile in Add mode, this edits steel already in the model.' });
2569
2572
  def('steel.member-material', { label: 'Material grade', actsOn: 'Changes the selected member\'s explicit material', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Unlike the Add preset, this edits steel already in the model.' });
2573
+ def('steel.member-custom-section', { label: 'Custom section', actsOn: 'Puts {instance} on the selected member', anyInstance: 'a custom section in this model', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Only sections already in this model are listed; the AI chat or an add-on makes new ones. None keeps the profile text and takes the member off the custom section.' });
2574
+ def('steel.selection-custom-section', { label: 'Custom section', actsOn: 'Puts {instance} on every selected member', anyInstance: 'a custom section in this model', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'One undo step covers every selected member.' });
2575
+ 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.' });
2576
+ 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.' });
2577
+ 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.' });
2570
2578
  def('steel.member-verified', { label: 'Mark verified', actsOn: 'Marks or unmarks the selected member as human-confirmed', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
2571
2579
  def('steel.member-moment-frame', { label: 'Moment frame', actsOn: 'Marks or unmarks the selected beam as a moment-frame girder', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A moment-frame girder takes a moment connection, so the automatic shear plates skip its ends. If it already has automatic shear plates you are asked whether to remove them; a plate you tuned by hand always stays.' });
2572
2580
  def('steel.moment-frame-plates-remove', { label: 'Remove the automatic shear plates', actsOn: 'Removes the automatic shear plates from the beams just marked as moment frame', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Only the plates the Shear plates button added are removed, in one step. A plate you tuned by hand stays. Ctrl+Z brings them back.' });
@@ -56,6 +56,29 @@
56
56
  // #1840: beside the authority toggle while the approved snapshot is shown, when that approval accepted open findings.
57
57
  def('tekla-parser.audit-open', { label: 'Show accepted findings', actsOn: 'Shows the open import findings this approved snapshot was approved with, in the Audit tab', group: 'In the Tekla Parser header', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The approver accepted these findings as stated assumptions; they stay open and listed so anyone using the approved model can see what was not verified.' });
58
58
  def('tekla-parser.audit-finding', { label: 'Show import finding', actsOn: 'Selects and frames {instance} when verified geometry is available', group: 'In the Tekla Parser Audit pane', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
59
+ // #3352: the Changes tab (Change Review): compare two saved states of this Tekla model.
60
+ def('tekla-parser.change-review-state', { label: 'Choose a saved state', actsOn: 'Chooses which saved state of this Tekla model to compare', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
61
+ def('tekla-parser.change-review-compare', { label: 'Compare saved states', actsOn: 'Compares the two chosen saved states and saves the review; the model is not changed', group: 'In the Tekla Parser Changes pane', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Whose changes they are is never claimed; the review says what differs between the two saved states and what was not checked.' });
62
+ def('tekla-parser.change-review-row', { label: 'Show change details', actsOn: 'Shows the before and after values of one changed object', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
63
+ def('tekla-parser.change-review-locate', { label: 'Show change in 3D', actsOn: 'Opens the saved state the object is in and selects it', group: 'In the Tekla Parser Changes pane', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
64
+ def('tekla-parser.change-review-history', { label: 'Open an earlier review', actsOn: 'Shows a change review saved earlier for this model', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
65
+ def('tekla-parser.change-review-contact', { label: 'Contact FloLess about Change Review', actsOn: 'Opens floless.io/contact to add Change Review to your team’s plan', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
66
+ // #3461: the Findings section of the Changes tab: what the checks found, and the person's choice for each finding.
67
+ def('tekla-parser.change-review-finding', { label: 'Open a finding', actsOn: 'Shows what a check found on one changed object and the choices for it', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
68
+ def('tekla-parser.change-review-finding-filter', { label: 'Filter findings', actsOn: 'Shows only the findings that need a decision, are being fixed, wait on an RFI or were accepted', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
69
+ def('tekla-parser.change-review-finding-locate', { label: 'Show finding in 3D', actsOn: 'Opens the later saved state and selects the object the finding is about', group: 'In the Tekla Parser Changes pane', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
70
+ def('tekla-parser.change-review-finding-choose-fix', { label: 'Fix it in Tekla', actsOn: 'Shows how to fix the finding in Tekla', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
71
+ def('tekla-parser.change-review-finding-fix-record', { label: 'I’ll fix it in Tekla', actsOn: 'Records that you are fixing the finding in Tekla; only a later review can show it fixed', group: 'In the Tekla Parser Changes pane', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'FloLess never edits the Tekla model: you change it there, import the folder again and compare with the same earlier saved state.' });
72
+ def('tekla-parser.change-review-finding-choose-rfi', { label: 'Raise an RFI', actsOn: 'Shows the request text for AI Chat and a field for the RFI reference', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
73
+ def('tekla-parser.change-review-finding-choose-accept', { label: 'Go ahead on an assumption', actsOn: 'Shows where to write the assumption you go ahead on', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
74
+ def('tekla-parser.change-review-finding-rfi-copy', { label: 'Copy RFI request', actsOn: 'Copies the request text to paste into AI Chat', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
75
+ def('tekla-parser.change-review-finding-rfi-reference', { label: 'RFI reference', actsOn: 'Where you type the reference of the RFI you raised', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
76
+ def('tekla-parser.change-review-finding-rfi-record', { label: 'Record RFI', actsOn: 'Records the RFI reference on the finding', group: 'In the Tekla Parser Changes pane', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
77
+ def('tekla-parser.change-review-finding-accept', { label: 'Proceed on this assumption', actsOn: 'Records your assumption in your name; the review then says it proceeds on it', group: 'In the Tekla Parser Changes pane', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Only you can accept a finding; AI Chat never does it for you.' });
78
+ def('tekla-parser.change-review-finding-assumption', { label: 'What are you assuming?', actsOn: 'Where you write the assumption you go ahead on', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
79
+ def('tekla-parser.change-review-finding-withdraw', { label: 'Withdraw a decision', actsOn: 'Takes back your decision on a finding; it needs a decision again', group: 'In the Tekla Parser Changes pane', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
80
+ def('tekla-parser.change-review-finding-more', { label: 'Show more findings', actsOn: 'Shows 25 more findings in the list', group: 'In the Tekla Parser Changes pane', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
81
+ def('tekla-parser.change-review-decisions-restart', { label: 'Start the decision history again', actsOn: 'Sets aside a decision history that could not be verified and starts a new one; the old one is kept', group: 'In the Tekla Parser Changes pane', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand' });
59
82
  def('tekla-parser.open-model', { label: 'Open Model tab', actsOn: 'Opens the new read-only snapshot on the Model tab', group: 'In the Tekla Parser workspace', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand' });
60
83
  def('tekla-parser.replace-source', { label: 'Choose or replace Tekla source', actsOn: 'Chooses a Tekla model folder or ZIP; an existing snapshot stays available until replacement succeeds', group: 'In the Tekla Parser workspace', persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand' });
61
84
  def('tekla-parser.report-import-failure', { label: 'Report this problem', actsOn: 'Opens Report an issue for this failed read, listing the failure details you can choose to include', group: 'In the Tekla Parser workspace', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand' });
@@ -332,6 +332,8 @@
332
332
  return `FloLess won’t use one of its own accounts for ${service.name}; your own Claude or Codex connector is used instead. It’s off in each chat until you turn it on there, and every call still asks.${seen}`;
333
333
  }
334
334
 
335
+ const PLAIN_ACCOUNT_NOTE = 'FloLess uses exactly this account and never switches to another one.';
336
+
335
337
  /**
336
338
  * "Account FloLess uses" for one service row. Saves on change; on failure says so and reverts.
337
339
  * A key service has no Claude/Codex connection to offer.
@@ -344,10 +346,14 @@
344
346
  const usable = (service.accounts || []).filter((a) => a.status === 'valid' || a.status === 'present');
345
347
  const options = [];
346
348
  for (const account of usable) {
349
+ const alias = account.alias || null;
350
+ // #3407: the account FloLess chose itself, because it was the only one connected, says so until the person chooses.
351
+ const adopted = choice.adopted === true && choice.source === 'floless' && (choice.alias ?? null) === alias;
347
352
  options.push({
348
- value: `floless:${account.alias || ''}`, source: 'floless', alias: account.alias || null,
353
+ value: `floless:${account.alias || ''}`, source: 'floless', alias,
349
354
  title: account.alias ? `FloLess account · ${account.alias}` : 'Default FloLess account',
350
- note: 'FloLess uses exactly this account and never switches to another one.',
355
+ note: adopted ? 'FloLess chose this account because it’s the only one connected, and it never switches to another on its own. To use another, connect it and choose it here.' : PLAIN_ACCOUNT_NOTE,
356
+ adopted,
351
357
  });
352
358
  }
353
359
  if (service.kind === 'sign-in') {
@@ -366,7 +372,8 @@
366
372
  input.dataset.commandInstanceLabel = `${service.name}: ${option.title}`;
367
373
  input.checked = lost ? option.value === 'none' : option.value === current();
368
374
  const text = make('span', 'conn-choice-text');
369
- text.append(make('span', 'int-account-name', option.title), make('span', 'int-account-origin', option.note));
375
+ const note = make('span', `int-account-origin${option.adopted ? ' conn-choice-adopted' : ''}`, option.note);
376
+ text.append(make('span', 'int-account-name', option.title), note);
370
377
  label.append(input, text);
371
378
  fieldset.append(label);
372
379
  input.addEventListener('change', async () => {
@@ -383,6 +390,10 @@
383
390
  choice = data.choice;
384
391
  lost = false;
385
392
  fieldset.querySelector('.conn-choice-lost')?.remove();
393
+ // The person has chosen now, so no account is "the one FloLess chose" any more (#3407).
394
+ for (const adoptedNote of fieldset.querySelectorAll('.conn-choice-adopted')) {
395
+ adoptedNote.textContent = PLAIN_ACCOUNT_NOTE; adoptedNote.classList.remove('conn-choice-adopted');
396
+ }
386
397
  if (typeof announce === 'function') announce('Account choice saved.');
387
398
  if (typeof onSaved === 'function') onSaved(choice);
388
399
  } catch (error) {
@@ -39,6 +39,7 @@ function failureSubject(kind) {
39
39
  if (kind === 'managed-runtime') return 'This AI runtime';
40
40
  if (kind === 'page') return 'This Page';
41
41
  if (kind === 'page-shares') return 'Your shared links';
42
+ if (kind === 'add-on') return 'This add-on';
42
43
  return 'This app';
43
44
  }
44
45
 
package/dist/web/guide.js CHANGED
@@ -415,9 +415,9 @@
415
415
  'While you talk, the Guide may open more files or folders to answer you.',
416
416
  ], (line) => line));
417
417
  const lock = el('div', 'guide-callout');
418
- // #2234: the Guide starts Read only; what FloLess starts by itself stays Read only; its Access can be changed.
419
- lock.append(el('strong', '', 'It starts Read only. '),
420
- document.createTextNode('The looks and morning briefings FloLess starts always run Read only. In your own messages, the Guide can change things only if you change its Access in the chat, like any other conversation. Read only stops the AI’s file tools from changing files, but it is not a lock on reading: the AI program can open any folder you can.'));
418
+ // #3406 (owner ruling 2026-11-10): the Guide starts on Auto; what FloLess starts by itself stays Read only.
419
+ lock.append(el('strong', '', 'It starts on Auto. '),
420
+ document.createTextNode('In your own messages, the Guide can make safe changes by itself, and its Auto check holds risky steps, like deleting, back. The looks and briefings FloLess starts by itself always run Read only. You can change its Access in the chat at any time, as in any conversation. Whichever Access it has, the AI program can open any folder you can. Read only only stops its file tools from changing files.'));
421
421
  const where = el('p', 'guide-copy');
422
422
  where.textContent = `What the Guide sees is sent to ${providerName} under your own subscription, and kept in this conversation’s history on this computer. You can turn the Guide off or delete its history at any time; whatever ${providerName} already received stays under its own rules.`;
423
423
  const gives = el('p', 'guide-copy', 'You get a short briefing on what you seem to be working on, then suggested next moves as buttons.');
@@ -66,12 +66,6 @@
66
66
  <!-- #2007: delegated responsibilities run by hand (web/agents.js). The AWARE library is Tools, in the ≡ menu. -->
67
67
  <button data-command-id="shell.mode-agents" type="button" data-mode="agents" role="tab" aria-selected="false" data-tip="A responsibility you hand over — what to check, and on which projects. Open this to set one up or run it by hand."><svg class="mode-icon mode-icon-ag" viewBox="0 0 16 16" aria-hidden="true"><circle class="mode-icon-ring" cx="8" cy="10.6" r="4"/><rect class="mode-icon-eye" x="6.2" y="9.4" width="1.15" height="2.4" rx=".575"/><rect class="mode-icon-eye" x="8.65" y="9.4" width="1.15" height="2.4" rx=".575"/><path class="mode-icon-hat" d="M4.3 6.4C4.3 3.5 6 2 8 2s3.7 1.5 3.7 4.4Z"/><rect class="mode-icon-hat" x="3" y="5.9" width="10" height="1.5" rx=".75"/><path class="mode-icon-ridge" d="M8 2.6V5.9"/></svg><span>Agents</span></button>
68
68
  </div>
69
- <!-- Workspace view switch (Canvas = the workflow topology; Dashboard = the user's
70
- custom panels from ~/.floless/ui/extensions.json) moved into the ≡ menu in #149.
71
- The "dashboard updated" signal now rides the ≡ hamburger badge (.has-dash-update)
72
- and the menu item's dot (#dash-dot, relocated into the menu). -->
73
- <!-- Shown only while custom panels exist; opens Undo · History · Reset. -->
74
- <button data-command-id="shell.extension-badge" type="button" id="ext-badge" class="ext-badge" hidden aria-haspopup="menu" aria-expanded="false" aria-controls="ext-menu" data-tip="Your dashboard is customized — undo, history, reset to default">Customized</button>
75
69
  </div>
76
70
  <div class="controls">
77
71
  <label id="wf-label">workflow</label>
@@ -206,7 +200,7 @@
206
200
  <!-- #2399: the account's "Suggest next steps" mode (On / Quiet / Off), the same in every chat; also in ≡. -->
207
201
  <button data-command-id="shell.chat-suggest" type="button" class="ai-chat-setting" id="chat-suggest" aria-haspopup="listbox" aria-expanded="false" data-tip="Your account, in every project, workflow and workspace chat. The Guide always suggests; close it to stop."><span>Suggest next steps</span><strong>On</strong></button>
208
202
  <!-- #2046: the Guide's own controls, shown only in a Guide conversation. #2234: its Access is the ordinary
209
- picker above (it starts Read only); this cell keeps the briefing, set-aside suggestions, Turn off and Delete. -->
203
+ picker above (#3406: it starts on Auto); this cell keeps the briefing, set-aside suggestions, Turn off and Delete. -->
210
204
  <div class="ai-chat-setting ai-chat-guide-access" id="chat-guide-access" role="group" aria-labelledby="chat-guide-settings-label" hidden>
211
205
  <span id="chat-guide-settings-label">Guide</span>
212
206
  <!-- #2053: the opt-in morning briefing; web/guide.js paints it (off by default). -->
@@ -419,10 +413,6 @@
419
413
  <button data-command-id="canvas.fit" class="tb-btn" id="zoom-fit" data-tip="Fit the whole workflow to the screen (Home)">⤢</button>
420
414
  </div>
421
415
  </div>
422
- <!-- Dashboard view — the user's custom panels (web/panels.js renders
423
- ~/.floless/ui/extensions.json here; the canvas children hide via
424
- .canvas.view-dashboard). Composed by the terminal AI, rendered by us. -->
425
- <div class="dashboard" id="dashboard" hidden></div>
426
416
  <!-- Workspaces mode surfaces (web/workspaces.js renders both; hidden outside the mode).
427
417
  Landing = project grid; project = step tabs over the editor/filter iframes. -->
428
418
  <div class="ws-landing" id="ws-landing" hidden></div>
@@ -696,39 +686,6 @@
696
686
  #aware-update; its body is rendered per-open in aware.js. -->
697
687
  <div id="notes-popover" class="relnotes-popover" role="dialog" aria-modal="true" aria-label="Release notes" tabindex="-1" hidden></div>
698
688
 
699
- <!-- Customized-badge menu — Undo · Reset · a read-only history list. Anchored
700
- under the header badge; populated per-open in panels.js. -->
701
- <div class="menu ext-menu" id="ext-menu" role="menu" data-reveal-by="#ext-badge" hidden>
702
- <button data-command-id="shell.extension-undo" class="menu-item" id="ext-undo" role="menuitem">
703
- <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"/></svg></span>
704
- <span class="menu-label">Undo</span>
705
- </button>
706
- <button data-command-id="shell.extension-redo" class="menu-item" id="ext-redo" role="menuitem">
707
- <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M15 14l5-5-5-5"/><path d="M20 9H9.5a5.5 5.5 0 0 0 0 11H13"/></svg></span>
708
- <span class="menu-label">Redo</span>
709
- </button>
710
- <button data-command-id="shell.extension-reset" class="menu-item" id="ext-reset" role="menuitem">
711
- <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></svg></span>
712
- <span class="menu-label">Reset to default</span>
713
- </button>
714
- <div class="menu-divider"></div>
715
- <div class="ext-history-head">History — newest first</div>
716
- <div class="ext-history" id="ext-history"></div>
717
- </div>
718
-
719
- <!-- Reset-to-default confirmation — destructive-looking but recoverable; Cancel
720
- holds focus (Enter/Esc/backdrop all cancel), mirroring the routine delete. -->
721
- <div class="modal-backdrop" id="ext-reset-modal">
722
- <div class="modal">
723
- <div class="modal-title">Reset dashboard to default</div>
724
- <div class="modal-sub">Removes all custom panels and restores the FloLess default view. Your current layout is saved to history first — Undo (or your terminal AI) can bring it back.</div>
725
- <div class="modal-actions">
726
- <button data-command-id="shell.dialog-cancel#resetting the extension edits" id="ext-reset-cancel">Cancel</button>
727
- <button data-command-id="shell.extension-reset-confirm" id="ext-reset-confirm">Reset</button>
728
- </div>
729
- </div>
730
- </div>
731
-
732
689
  <!-- Workflow update (one click, owner ruling 2026-11-02): what is new in the open workflow (#wf-update-changelog),
733
690
  the same row the status-bar dialog shows (#wf-update-row: where it stands, the warning when the person changed
734
691
  it), and one button that does the next thing: Update, then Undo (or Approve model for a Steel Model). -->
@@ -979,17 +936,6 @@
979
936
  <span class="menu-label">Find on canvas</span>
980
937
  <span class="menu-kbd">Ctrl+F</span>
981
938
  </button>
982
- <!-- Workspace view switch (was the header Canvas|Dashboard toggle, #149). One
983
- contextual item: the label names the OTHER view; the dot lights when the
984
- dashboard changed while on Canvas. Wired in panels.js (owns the view state).
985
- Hidden while the Dashboard surface is gated off (#902) — panels.js owns that
986
- too, via its DASHBOARD_UI_ENABLED flag, so the markup stays put and one flag
987
- brings the whole surface back. -->
988
- <button class="menu-item" id="menu-view-switch" data-action="view-switch" data-command-id="menu.view-switch" role="menuitem">
989
- <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M8 3 4 7l4 4"/><path d="M4 7h16"/><path d="m16 21 4-4-4-4"/><path d="M20 17H4"/></svg></span>
990
- <span class="menu-label" id="menu-view-label">Switch to Dashboard</span>
991
- <span class="view-dot" id="dash-dot" hidden aria-label="Dashboard updated">●</span>
992
- </button>
993
939
  <div class="menu-divider"></div>
994
940
  <!-- Tools library (was the header ⊞ Agents button, #149; renamed Tools in #2007). Heads the tool group
995
941
  (Tools / Graft into tool / Bake into tool). Ctrl+G. -->
@@ -1033,6 +979,11 @@
1033
979
  <span class="menu-label">Routines</span>
1034
980
  <span class="menu-kbd">Ctrl+R</span>
1035
981
  </button>
982
+ <!-- #3296 S1b: the person's own add-ons, made by the AI chat (web/add-ons.js). -->
983
+ <button class="menu-item" data-action="add-ons" data-command-id="menu.add-ons" role="menuitem">
984
+ <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 2 3 7v10l9 5 9-5V7z"/><path d="M12 22V12"/><path d="m3 7 9 5 9-5"/><path d="M16.5 4.5 7.5 9.5"/></svg></span>
985
+ <span class="menu-label">My add-ons</span>
986
+ </button>
1036
987
  <div class="menu-divider"></div>
1037
988
  <!-- #2046: the Guide — FloLess's onboarding agent in AI Chat (web/guide.js). -->
1038
989
  <button class="menu-item" data-action="guide" data-command-id="menu.guide" role="menuitem">
@@ -2266,6 +2217,28 @@
2266
2217
  </div>
2267
2218
  </div>
2268
2219
 
2220
+ <!-- #3296 S1b: My add-ons (≡ → My add-ons). Filled by web/add-ons.js from /api/add-ons; turning one on is the
2221
+ person's click here or on a chat card. -->
2222
+ <div class="modal-backdrop" id="add-ons-modal" role="dialog" aria-modal="true"
2223
+ aria-labelledby="add-ons-title" aria-describedby="add-ons-sub">
2224
+ <div class="modal add-ons" tabindex="-1">
2225
+ <div class="modal-title" id="add-ons-title">My add-ons</div>
2226
+ <div class="modal-sub" id="add-ons-sub">Your own extensions, made by the AI chat. Each one is off until you turn it on, and each version is kept so you can go back.</div>
2227
+ <div class="add-ons-body">
2228
+ <div class="add-ons-side">
2229
+ <div id="add-ons-list" class="add-ons-list" aria-label="Add-ons"></div>
2230
+ <button data-command-id="shell.add-ons-import" id="add-ons-import" type="button" class="add-ons-quiet">Import…</button>
2231
+ <input data-command-id="shell.add-ons-import" id="add-ons-file" type="file" accept=".json,application/json" hidden tabindex="-1" aria-hidden="true">
2232
+ </div>
2233
+ <div id="add-ons-detail" class="add-ons-detail" aria-live="polite"></div>
2234
+ </div>
2235
+ <div id="add-ons-status" class="add-ons-status" role="status" aria-live="polite"></div>
2236
+ <div class="modal-actions">
2237
+ <button data-command-id="shell.dialog-close#add-ons" id="add-ons-close" type="button">Close</button>
2238
+ </div>
2239
+ </div>
2240
+ </div>
2241
+
2269
2242
  <!-- #1998: the one-time carry-forward policy — asked at a person's first approval, and ≡ → Automatic tool updates….
2270
2243
  Filled by renderPolicyModal (web/aware.js); the words come from the server, which hashes them. -->
2271
2244
  <div class="modal-backdrop" id="policy-modal" role="dialog" aria-modal="true" aria-labelledby="policy-title" aria-describedby="policy-body">
@@ -2330,7 +2303,6 @@
2330
2303
  <script src="report-csp.js"></script>
2331
2304
  <script src="aware.js"></script>
2332
2305
  <script src="tool-updates.js"></script>
2333
- <script src="panels.js"></script>
2334
2306
  <script src="filter-guidance.js"></script>
2335
2307
  <script src="kb-categories.js"></script>
2336
2308
  <script src="pdf-view.js"></script>
@@ -2351,6 +2323,7 @@
2351
2323
  <script src="guide.js"></script>
2352
2324
  <script src="connections.js"></script>
2353
2325
  <script src="local-discovery.js"></script>
2326
+ <script src="add-ons.js"></script>
2354
2327
  <script src="account-menu.js"></script>
2355
2328
  <script src="commands-shell.js"></script>
2356
2329
  <!-- The steel editor's capabilities load HERE as well as in steel-editor.html, and that is
@@ -963,7 +963,7 @@
963
963
  'At the left edge of the workspace', 'At the edge of the left or Inspect panel', 'In the left panel', 'Between AI Chat and Model', 'In the Model section of the left panel', 'In the Grid object in the Model section',
964
964
  'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
965
965
  'In the ≡ menu', 'In the account menu', 'In the footer',
966
- 'In the contract editor', 'In the report viewer', 'In the Page viewer', 'In My shared links', 'In the video player', 'In the Knowledge Base viewer', 'In a PDF FloLess shows',
966
+ 'In the contract editor', 'In the report viewer', 'In the Page viewer', 'In My shared links', 'In My add-ons', 'In the video player', 'In the Knowledge Base viewer', 'In a PDF FloLess shows',
967
967
  'In the Tools library', 'In Discover local tools', 'In the requests list', 'In the revision review', 'In the run request dialog', 'In the Integrations dialog', 'In the Disconnect dialog', 'In the Routines dialog', 'On the missed-runs card', 'In the Automatic tool updates dialog', 'In the terminal requests dialog',
968
968
  'In the Report an issue dialog', 'In the Build a tool dialog', 'In the Bake dialog', 'In the CAD send review',
969
969
  // #3312: the profile mapping window opens from the CAD send review, so it is read right after it.
@@ -991,7 +991,7 @@
991
991
  'In the confidence report', 'In the Ask AI panel', 'In the Ask AI dialog', 'In the Favourites dialog',
992
992
  // the read-only Revit model editor
993
993
  'In the Revit model header', 'In the Revit model toolbar', 'In the Revit Saved views panel', 'In the Revit model coordinate HUD', 'In the Revit model selection bar', 'In the Revit model snapping bar', 'In the Revit spatial controls',
994
- 'In the Tekla Parser header', 'In the Tekla Parser hierarchy', 'In the Tekla Parser model toolbar', 'In the Tekla Parser Saved views panel', 'In the Tekla Parser coordinate HUD', 'In the Tekla Parser selection bar', 'In the Tekla Parser snapping bar', 'In the Tekla Parser spatial controls', 'In the Tekla Parser Audit pane',
994
+ 'In the Tekla Parser header', 'In the Tekla Parser hierarchy', 'In the Tekla Parser model toolbar', 'In the Tekla Parser Saved views panel', 'In the Tekla Parser coordinate HUD', 'In the Tekla Parser selection bar', 'In the Tekla Parser snapping bar', 'In the Tekla Parser spatial controls', 'In the Tekla Parser Audit pane', 'In the Tekla Parser Changes pane',
995
995
  // the drawing filter
996
996
  'In the Drawing Filter header', 'In a Drawing Filter message',
997
997
  'In the Drawing Filter panel', 'On the Drawing Filter canvas',
@@ -313,16 +313,30 @@ function kbgView(model, file, opts) {
313
313
  function kbgLegend(model, file) {
314
314
  const member = kbgMembership(model, file);
315
315
  const count = new Map();
316
- for (const m of member.values()) {
317
- if (!m.grouped) { count.set('ungrouped', (count.get('ungrouped') || 0) + 1); continue; }
318
- for (const c of m.cats) count.set(c, (count.get(c) || 0) + 1);
316
+ // #3413: how many of each are files and how many pages, so a chip can say what its number counts.
317
+ const files = new Map();
318
+ for (const [id, m] of member.entries()) {
319
+ const doc = model.nodes.get(id)?.kind === 'document';
320
+ const keys = m.grouped ? m.cats : ['ungrouped'];
321
+ for (const c of keys) { count.set(c, (count.get(c) || 0) + 1); if (doc) files.set(c, (files.get(c) || 0) + 1); }
319
322
  }
320
- const chips = kbcChildren(file, null).filter((c) => count.get(c.id)).map((c) => ({ id: c.id, name: c.name, n: count.get(c.id), ...kbgColour(file, c.id) }));
321
- if (count.get('uncategorized')) chips.push({ id: 'uncategorized', name: 'Uncategorized', n: count.get('uncategorized'), token: '--text-muted', hatch: false });
322
- if (count.get('ungrouped')) chips.push({ id: 'ungrouped', name: 'Not yet grouped', n: count.get('ungrouped'), token: '--text-muted', hatch: false, dashed: true });
323
+ const chip = (id, name, extra) => ({ id, name, n: count.get(id), files: files.get(id) || 0, pages: count.get(id) - (files.get(id) || 0), ...extra });
324
+ const chips = kbcChildren(file, null).filter((c) => count.get(c.id)).map((c) => chip(c.id, c.name, kbgColour(file, c.id)));
325
+ if (count.get('uncategorized')) chips.push(chip('uncategorized', 'Uncategorized', { token: '--text-muted', hatch: false }));
326
+ if (count.get('ungrouped')) chips.push(chip('ungrouped', 'Not yet grouped', { token: '--text-muted', hatch: false, dashed: true }));
323
327
  return chips;
324
328
  }
325
329
 
330
+ /**
331
+ * #3413: what a legend chip's number counts, in words — the map counts files and the pages made from them, while the
332
+ * reference list counts files, so the two numbers differ for one category and must say why.
333
+ */
334
+ function kbgChipTip(c) {
335
+ const parts = [c.files ? `${c.files} file${c.files === 1 ? '' : 's'}` : '', c.pages ? `${c.pages} page${c.pages === 1 ? '' : 's'}${c.files ? ` made from ${c.files === 1 ? 'it' : 'them'}` : ''}` : '']
336
+ .filter(Boolean).join(' and ');
337
+ return `Show or hide ${c.name}. ${c.n} item${c.n === 1 ? '' : 's'} on the map: ${parts}.`;
338
+ }
339
+
326
340
  /** From the focused node, the nearest drawn neighbour in a direction (for the arrow keys). */
327
341
  function kbgNearest(pos, from, dir, candidates) {
328
342
  const p = pos.get(from);
@@ -342,10 +356,53 @@ function kbgNearest(pos, from, dir, candidates) {
342
356
  return best;
343
357
  }
344
358
 
359
+ /**
360
+ * #3413: where each map label goes, so labels never sit on each other or on a dot. Documents first, then the most
361
+ * linked, then the shortest name; each tries right, left, below, above, first at full length (up to 40 characters) then
362
+ * cut to 18. A label with no free spot is hidden: it shows when its node is pointed at, focused, next to the one pointed
363
+ * at, or a search match, and its name is always in the node's tooltip and accessible name. Measured in layout units
364
+ * (the labels scale with the map), so one plan holds at every zoom. `items`: [{ id, label, doc, degree }];
365
+ * `pos`: Map id → {x, y}; `bounds`: { w, h }; `measure(text)`: the label's width in layout units, measured with the
366
+ * label's own font in the browser (a wide-letter estimate when there is none). Returns Map id → { side: 'r'|'l'|'b'|'t', text } or { hidden: true }.
367
+ */
368
+ const KBG_CHAR_W = 9, KBG_LINE_H = 14, KBG_DOT_R = 10, KBG_PAD = 2;
369
+ function kbgLabelPlan(items, pos, bounds, measure) {
370
+ const width = typeof measure === 'function' ? measure : (t) => t.length * KBG_CHAR_W;
371
+ const placed = [];
372
+ const hit = (a) => placed.some((b) => a.x0 < b.x1 + KBG_PAD && b.x0 < a.x1 + KBG_PAD && a.y0 < b.y1 + KBG_PAD && b.y0 < a.y1 + KBG_PAD);
373
+ const inside = (a) => !bounds || (a.x0 >= 0 && a.y0 >= 0 && a.x1 <= bounds.w && a.y1 <= bounds.h);
374
+ for (const it of items) {
375
+ const p = pos.get(it.id);
376
+ if (p) placed.push({ x0: p.x - KBG_DOT_R, x1: p.x + KBG_DOT_R, y0: p.y - KBG_DOT_R, y1: p.y + KBG_DOT_R });
377
+ }
378
+ const order = [...items].filter((it) => pos.get(it.id)).sort((a, b) => (Number(!!b.doc) - Number(!!a.doc)) || (b.degree - a.degree)
379
+ || (a.label.length - b.label.length) || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0));
380
+ const box = (p, side, w) => side === 'r' ? { x0: p.x + 13, x1: p.x + 13 + w, y0: p.y - 10, y1: p.y + 4 }
381
+ : side === 'l' ? { x0: p.x - 13 - w, x1: p.x - 13, y0: p.y - 10, y1: p.y + 4 }
382
+ : side === 'b' ? { x0: p.x - w / 2, x1: p.x + w / 2, y0: p.y + 12, y1: p.y + 12 + KBG_LINE_H }
383
+ : { x0: p.x - w / 2, x1: p.x + w / 2, y0: p.y - 12 - KBG_LINE_H, y1: p.y - 12 };
384
+ const plan = new Map();
385
+ for (const it of order) {
386
+ const p = pos.get(it.id);
387
+ const full = it.label.length > 40 ? `${it.label.slice(0, 39)}…` : it.label;
388
+ const texts = full.length > 18 ? [full, `${it.label.slice(0, 17)}…`] : [full];
389
+ let done = null;
390
+ for (const text of texts) {
391
+ for (const side of ['r', 'l', 'b', 't']) {
392
+ const b = box(p, side, width(text));
393
+ if (inside(b) && !hit(b)) { done = { side, text }; placed.push(b); break; }
394
+ }
395
+ if (done) break;
396
+ }
397
+ plan.set(it.id, done || { hidden: true });
398
+ }
399
+ return plan;
400
+ }
401
+
345
402
  if (typeof module !== 'undefined' && module.exports) {
346
403
  module.exports = {
347
404
  KBC_COLORS, KBC_RENDER_CAP, kbcChildren, kbcPath, kbcLabel, kbcTop, kbcPlacement, kbcSubtree, kbcCounts, kbcTreeItems,
348
405
  kbcAncestors, kbcMenuChoices, kbcReorderOps, kbcSelect, kbcSelectAll, kbcPrune,
349
- kbgCreate, kbgMerge, kbgMembership, kbgColour, kbgView, kbgLegend, kbgNearest,
406
+ kbgCreate, kbgMerge, kbgMembership, kbgColour, kbgView, kbgLegend, kbgChipTip, kbgLabelPlan, kbgNearest,
350
407
  };
351
408
  }