@floless/app 0.157.0 → 0.159.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 (44) hide show
  1. package/cli-actions.mjs +7 -0
  2. package/dist/floless-server.cjs +188306 -155284
  3. package/dist/schemas/drawing-check.profile.v1.schema.json +33 -1
  4. package/dist/skills/floless-app-actions/SKILL.md +26 -5
  5. package/dist/skills/floless-app-bridge/SKILL.md +5 -3
  6. package/dist/skills/floless-app-knowledge/SKILL.md +14 -1
  7. package/dist/skills/floless-app-knowledge/references/schema.md +4 -1
  8. package/dist/skills/floless-app-onboarding/SKILL.md +67 -4
  9. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +7 -4
  10. package/dist/skills/floless-app-queue/SKILL.md +3 -1
  11. package/dist/skills/floless-app-steel-model/SKILL.md +41 -1
  12. package/dist/skills/floless-app-steel-takeoff/SKILL.md +71 -1
  13. package/dist/skills/floless-app-workflows/SKILL.md +6 -3
  14. package/dist/web/agents.js +12 -5
  15. package/dist/web/app.css +229 -27
  16. package/dist/web/app.js +6 -0
  17. package/dist/web/aware.js +275 -64
  18. package/dist/web/chat.css +60 -22
  19. package/dist/web/chat.js +396 -59
  20. package/dist/web/commands-shell.js +546 -11
  21. package/dist/web/commands-steel.js +1 -0
  22. package/dist/web/drawing-check-editor.html +10 -0
  23. package/dist/web/drawing-check-editor.js +44 -0
  24. package/dist/web/guide.js +4 -2
  25. package/dist/web/index.html +66 -12
  26. package/dist/web/instructor.js +21 -9
  27. package/dist/web/kb-categories.js +351 -0
  28. package/dist/web/kb-graph-worker.js +73 -0
  29. package/dist/web/pages.js +185 -19
  30. package/dist/web/project-access.js +67 -8
  31. package/dist/web/project-modules.js +474 -0
  32. package/dist/web/project-workflows.js +274 -0
  33. package/dist/web/run-page-view.js +353 -0
  34. package/dist/web/steel-3d-core.js +46 -0
  35. package/dist/web/steel-3d-view.js +8 -38
  36. package/dist/web/steel-editor.html +225 -43
  37. package/dist/web/tab-signal.js +323 -0
  38. package/dist/web/terminal-requests.js +48 -7
  39. package/dist/web/workspace-root-recovery.js +119 -0
  40. package/dist/web/workspaces.js +1597 -220
  41. package/launch-starting-page.mjs +184 -0
  42. package/launch.mjs +214 -73
  43. package/package.json +7 -1
  44. package/dist/web/report-files.js +0 -50
@@ -2332,6 +2332,7 @@
2332
2332
  def('steel.rfi-scope', { label: 'Show', actsOn: 'Narrows the RFI list to {instance}', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A filter changes what is listed, never what is recorded. “This sheet only” is offered only while a plan sheet is open, because otherwise there is no sheet for it to mean.' });
2333
2333
  def('steel.rfi-status-filter', { label: 'Status', actsOn: 'Filters the RFI list to {instance}', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Open means anything still waiting on somebody — raised, sent or answered. Closed ones stay listed so a settled question can be looked up later.' });
2334
2334
  def('steel.rfi-copy', { label: 'Copy whole RFI', actsOn: 'Copies {instance} as text, ready to paste into an email', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This copies the same complete question FloLess sends through Gmail. If the clipboard cannot be reached, the text is shown instead so you can copy it by hand.' });
2335
+ def('steel.rfi-quick-refile', { label: 'Try filing again', actsOn: 'Files the questions {instance} keeps that the AI could not file yet', anyInstance: 'a Quick model version', group: 'In the RFI dialog', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A Quick model keeps the questions the AI could not settle with the version it published. When the RFI file could not take them, this files them, marked as the AI’s. Anything already filed is not filed twice, and nothing is sent to anyone.' });
2335
2336
  def('steel.rfi-group-toggle', { label: 'Show occurrences', actsOn: 'Expands or collapses the ordered occurrences in {instance}', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A grouped question remains one RFI. Expanding it reveals each occurrence’s own status, drawing destination and scoped actions without creating duplicate rows.' });
2336
2337
  def('steel.rfi-group-elsewhere', { label: 'Show elsewhere in this RFI', actsOn: 'Reveals occurrences from {instance} that are not on the current sheet', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The sheet filter keeps a grouped RFI indivisible. Matching occurrences stay first; this disclosure reveals the rest without pretending they belong to the current sheet.' });
2337
2338
  def('steel.rfi-technical', { label: 'Technical details', actsOn: 'Shows the stored technical identity for {instance}', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The internal gap key is useful for diagnosis but is not a user-facing action selector, so it stays behind this disclosure.' });
@@ -187,6 +187,16 @@ button.icon:hover{color:var(--text)}
187
187
  .ask-type{display:flex;gap:8px;align-items:flex-end;margin-top:10px;max-width:460px}
188
188
  .ask-type .field{flex:1;margin:0}
189
189
  .ask-band{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-color:var(--warn)}
190
+ .pl{margin-top:18px}
191
+ .pl .ask-band{margin:0 0 8px}
192
+ .list.pl-list{list-style:none;margin:0;padding:0}
193
+ .pl-list > .pl-row{display:flex;flex-direction:column;gap:3px;padding:9px 12px;line-height:1.4}
194
+ .pl-list > .pl-row + .pl-row{border-top:1px solid var(--line)}
195
+ .pl-row .w{font-weight:600}
196
+ .pl-row .pl-cols{letter-spacing:.02em;overflow-wrap:anywhere}
197
+ .pl-row .origin,.pl-row .origin-inline{color:var(--mut);font-size:11px}
198
+ .pl-row .row-note{margin:2px 0 0;font-size:12px}
199
+ .pl-row .row-note.undecided{color:var(--warn)}
190
200
  .ask-line{color:var(--text)}
191
201
  .ask .q{margin:0;font-weight:600;line-height:1.45}
192
202
  .ask .note{margin:2px 0 8px}
@@ -546,6 +546,48 @@ export function titleBlockHtml(tb, { pages = 0, note = '', noteField = '', savin
546
546
  <div class="row-actions"><button type="button" data-act="add-field" data-command-id="drawing-check.title-add">Add a field…</button></div></section>`;
547
547
  }
548
548
 
549
+ /**
550
+ * The Part list block (#1963), read-only: for each part-list layout learned from the reference drawings, its
551
+ * columns as printed, anything unusual about its shape, how the list ends, and what its mass columns mean, in a
552
+ * detailer's words, then what the last proposal said about them (`notes`, kept with the layouts so a reload shows them
553
+ * too). No controls.
554
+ * @param {any} pl
555
+ * @param {{ proposed?: boolean }} [opts]
556
+ */
557
+ export function partListHtml(pl, { proposed = false } = {}) {
558
+ const head = '<h3 id="pl-h">Part list</h3>';
559
+ const askBands = ((pl && pl.notes) || []).map((a) => `<div class="band ask-band" role="note"><span>${esc(a)}</span></div>`).join('');
560
+ const layouts = (pl && pl.layouts) || [];
561
+ if (!layouts.length) {
562
+ return `<section class="tb pl" aria-labelledby="pl-h">${head}
563
+ <p class="note">${proposed
564
+ ? 'No part list was recognised on the references. “Part list agrees with the title” and “Part-list masses” report “couldn’t tell” until a reference drawing with a part list is added.'
565
+ : 'Propose from the references to learn how this client’s part lists are laid out.'}</p>${askBands}</section>`;
566
+ }
567
+ const many = layouts.length > 1;
568
+ const rows = layouts.map((l, i) => {
569
+ const share = `learned from ${Math.round((l.support || 0) * 100)}% of the references`;
570
+ const massWords = { 'line-mass': 'the row’s mass', 'unit-mass': 'each piece’s mass' };
571
+ const cols = l.columns.map((c) => `${esc(c.label)}${massWords[c.role] ? ` <span class="origin-inline">(${massWords[c.role]})</span>` : ''}`).join(' · ');
572
+ const shape = [l.turned ? 'Lettering turned a quarter, as on single-part sheets.' : '', l.rowsRun === 'up' ? 'A one-row strip, the values above their labels.' : ''].filter(Boolean).join(' ');
573
+ const t = l.total;
574
+ const ends = !t ? 'No total line was found.'
575
+ : `Ends with ${t.label ? `“${esc(t.label)}”` : 'a total printed on its own'}${t.valueRole ? ', read as the total mass' : ', which ends the list but is not read'}.`;
576
+ const mass = l.columns.filter((c) => massWords[c.role]).map((c) => (c.role === 'line-mass'
577
+ ? `${esc(c.label)} is the row’s mass: the rows add up to the total.`
578
+ : `${esc(c.label)} is each piece’s mass: quantity × ${esc(c.label)}, added up, gives ${l.columns.some((x) => x.role === 'line-mass') ? 'the row’s mass' : 'the total'}.`)).join(' ');
579
+ const basis = l.qtyBasis === 'per-sheet' ? 'Quantities count every assembly on the sheet.' : l.qtyBasis === 'per-assembly' ? 'Quantities count one assembly.' : 'How quantities are counted (per sheet or per assembly) is not known yet.';
580
+ const undecided = l.columns.filter((c) => c.undecided).map((c) => `<p class="row-note undecided">${esc(c.label)}: the references don’t show whether this is each piece’s mass or the row’s, so the part-list mass checks report “couldn’t tell” until a reference drawing with a quantity above 1 settles it.</p>`).join('');
581
+ return `<li class="pl-row"><span class="w">${many ? `Layout ${i + 1} · ` : ''}${esc(share.charAt(0).toUpperCase() + share.slice(1))}</span>
582
+ <span class="pl-cols">${cols}</span>
583
+ ${shape ? `<span class="origin">${shape}</span>` : ''}
584
+ <span class="origin">${ends}${mass ? ` ${mass}` : ''} ${basis}</span>${undecided}</li>`;
585
+ }).join('');
586
+ return `<section class="tb pl" aria-labelledby="pl-h">${head}
587
+ <p class="note">Learned from the reference drawings: how this client’s part lists are laid out. FloLess reads a part list only this way; a list laid out differently is marked “couldn’t tell”, never guessed.</p>
588
+ ${askBands}<ul class="list pl-list">${rows}</ul></section>`;
589
+ }
590
+
549
591
  // ── the page ────────────────────────────────────────────────────────────────────────────────────
550
592
 
551
593
  function boot() {
@@ -977,6 +1019,7 @@ function boot() {
977
1019
  ${S.checklistError ? `<p class="err-line" role="alert">${esc(S.checklistError)}</p>` : ''}
978
1020
  ${list.length ? `<div class="list">${rows}</div>` : '<p class="note">No items yet. Propose them from the reference drawings.</p>'}
979
1021
  ${titleBlockHtml(S.draft && S.draft.titleBlock, { pages, note: S.titleNote, noteField: S.titleNoteField, saving: S.tbSaving, typed: S.typed })}
1022
+ ${partListHtml(S.draft && S.draft.partList, { proposed: list.length > 0 })}
980
1023
  ${S.reviewError ? `<p class="note">${esc(S.reviewError)}</p>` : ''}
981
1024
  ${changed && anyTicked ? `<div class="sticky-foot"><span class="note">${S.tbChanges && S.tbChanges.length ? 'Title block changed · ' : ''}${list.filter((i) => i.enabled).length} of ${list.length} items ticked. Runs use the approved checklist only.</span><span class="sp"></span>
982
1025
  <button type="button" class="primary" data-act="approve" data-command-id="drawing-check.approve">Approve checklist…</button></div>` : ''}</div>`;
@@ -1129,6 +1172,7 @@ function boot() {
1129
1172
  const { body } = await call(`${base}/propose`, { method: 'POST' });
1130
1173
  S.draft.items = body.items; S.etag = body.etag; S.newSinceApproval = 0;
1131
1174
  if (body.titleBlock) S.draft.titleBlock = body.titleBlock; else delete S.draft.titleBlock;
1175
+ if (body.partList) S.draft.partList = body.partList; else delete S.draft.partList;
1132
1176
  if (body.client) S.draft.client = body.client;
1133
1177
  if (body.unreadable && body.unreadable.length) S.checklistError = `Couldn’t read ${body.unreadable.join(', ')}; the other drawings were used.`;
1134
1178
  await loadReview();
package/dist/web/guide.js CHANGED
@@ -907,7 +907,9 @@
907
907
  go.type = 'button';
908
908
  go.dataset.commandId = `shell.guide-move-open#${move.kind}`;
909
909
  go.dataset.commandInstanceLabel = text.title;
910
- go.dataset.tip = 'Opens the place to do this. Nothing happens until you confirm there.';
910
+ // An Open card only shows a page, so it never speaks of a next step to confirm.
911
+ const opensOnly = move.kind === 'open';
912
+ go.dataset.tip = opensOnly ? `${text.action}. Nothing changes.` : 'Opens the place to do this. Nothing happens until you confirm there.';
911
913
  go.addEventListener('click', async () => {
912
914
  go.disabled = true; go.setAttribute('aria-busy', 'true'); go.textContent = 'Checking…';
913
915
  status.textContent = '';
@@ -938,7 +940,7 @@
938
940
  }
939
941
  });
940
942
  actions.append(go, later);
941
- card.append(actions, el('p', 'ai-chat-filter-note', 'Nothing happens until you confirm in the next step.'), status);
943
+ card.append(actions, el('p', 'ai-chat-filter-note', opensOnly ? 'This only opens the page. Nothing changes.' : 'Nothing happens until you confirm in the next step.'), status);
942
944
  if (focusBack) go.focus();
943
945
  };
944
946
  /**
@@ -265,14 +265,6 @@
265
265
  <div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
266
266
  <div class="ai-chat-approval-tray" id="chat-approval-tray"></div>
267
267
  <div class="ai-chat-composer" id="chat-composer">
268
- <div class="ai-chat-scope-controls" id="chat-scope-controls" hidden>
269
- <button type="button" id="chat-scope-toggle" data-command-id="shell.chat-scope-open" aria-expanded="false" aria-controls="chat-scope-picker">Scope</button>
270
- <button type="button" id="chat-access-explanation" data-command-id="shell.chat-access-explanation#hidden" aria-expanded="false" aria-controls="chat-scope-disclosure" aria-label="Explain Read only access" data-tip="Show what this access level allows."><span>Access · </span><strong>Read only</strong><span class="ai-chat-access-chevron" aria-hidden="true">⌄</span></button>
271
- <span id="chat-scope-disclosure" aria-live="polite" hidden></span>
272
- <section class="ai-chat-picker ai-chat-scope-picker" id="chat-scope-picker" role="dialog" aria-label="Conversation scope" hidden></section>
273
- </div>
274
- <!-- #1890: a workspace conversation's units question, and then its "Units: … · Change" line. -->
275
- <div class="ai-chat-units" id="chat-units" hidden></div>
276
268
  <!-- #1890 PR4: one Revoke ends all global file-change grants; legacy owner grants appear only without a global allowance (web/chat.js). -->
277
269
  <div class="ai-chat-connectors" id="chat-change-allowance" role="group" aria-label="Changes allowed for this chat" hidden></div>
278
270
  <!-- #1900: the connection checks this chat may run without asking, each with Revoke (web/chat.js). -->
@@ -291,12 +283,22 @@
291
283
  sits in the composer's rigid grid row, so no conversation-area height can take
292
284
  it away (#1501). -->
293
285
  <p class="ai-chat-composer-disclosure" id="chat-composer-disclosure" hidden>Messages and attachments are sent to Claude or Codex through your account.</p>
286
+ <!-- Status, working and error text sits on its own line under the message box; the idle keyboard hint is read to screen readers only (web/chat.js). -->
287
+ <span class="ai-chat-compose-hint" id="chat-compose-hint">Enter to send · Shift+Enter for a new line</span>
294
288
  <div class="ai-chat-compose-actions">
295
289
  <!-- No accept= filter (#1853): data files are recognised by their contents, so the chooser lets
296
290
  every file through to be checked; one FloLess cannot read is refused before upload. -->
297
291
  <input data-command-id="shell.chat-attach-input" id="chat-file" type="file" multiple hidden>
298
292
  <button data-command-id="shell.chat-attach" type="button" class="ai-chat-icon" id="chat-attach" data-tip="Attach a picture, PDF, or data file (IFC, DXF, CSV, text)" aria-label="Attach a picture, PDF, or data file"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/></svg></button>
299
- <span class="ai-chat-compose-hint" id="chat-compose-hint">Enter to send · Shift+Enter for a new line</span>
293
+ <!-- One toolbar under the message box: attach, the conversation's scope, access and units, then Send. -->
294
+ <div class="ai-chat-scope-controls" id="chat-scope-controls" hidden>
295
+ <button type="button" id="chat-scope-toggle" data-command-id="shell.chat-scope-open" aria-expanded="false" aria-controls="chat-scope-picker">Scope</button>
296
+ <button type="button" id="chat-access-explanation" data-command-id="shell.chat-access-explanation#hidden" aria-expanded="false" aria-controls="chat-scope-disclosure" aria-label="Explain Read only access" data-tip="Show what this access level allows."><span class="sr-only">Access · </span><strong>Read only</strong><span class="ai-chat-access-chevron" aria-hidden="true">⌄</span></button>
297
+ <span id="chat-scope-disclosure" aria-live="polite" hidden></span>
298
+ <section class="ai-chat-picker ai-chat-scope-picker" id="chat-scope-picker" role="dialog" aria-label="Conversation scope" hidden></section>
299
+ </div>
300
+ <!-- #1890: once a workspace conversation's units are chosen, a units chip ("ft-in ⌄") with a two-item menu. -->
301
+ <div class="ai-chat-units" id="chat-units" hidden></div>
300
302
  <button data-command-id="shell.chat-stop" type="button" class="ai-chat-stop" id="chat-stop" aria-label="Stop response" data-tip="Stop response" hidden><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="5" y="5" width="14" height="14" rx="2.5"/></svg></button>
301
303
  <button data-command-id="shell.chat-send" type="button" class="ai-chat-send" id="chat-send" aria-label="Send message"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/></svg></button>
302
304
  </div>
@@ -447,13 +449,15 @@
447
449
  <button data-command-id="shell.workspace-step#exports" type="button" data-step="exports" role="tab" aria-selected="false">Exports</button>
448
450
  <button data-command-id="shell.workspace-step#history" type="button" data-step="history" role="tab" aria-selected="false">History</button>
449
451
  <button data-command-id="shell.workspace-step#pages" type="button" data-step="pages" role="tab" aria-selected="false">Pages</button>
452
+ <button data-command-id="shell.workspace-step#workflows" type="button" data-step="workflows" role="tab" aria-selected="false" hidden>Workflows</button>
453
+ <button data-command-id="shell.workspace-step#modules" type="button" data-step="modules" role="tab" aria-selected="false" hidden>Modules</button>
450
454
  </div>
451
455
  <span class="ws-step-end">
452
456
  <!-- Shown only on the Drawings/Source step. It used to have a 42px band of its own labelled
453
457
  "Source", which cost a row of height to say a word that named nothing the user could
454
458
  point at — the button already says what it does. -->
455
- <button data-command-id="shell.attach-revision" type="button" id="ws-attach-revision" class="btn-mini" data-tip="Attach a revised drawing set (PDF or image) — your terminal AI reads it into a new version" hidden>⤒ Attach revised drawings…</button>
456
- <input data-command-id="shell.attach-revision" type="file" id="ws-revision-file" accept=".pdf,image/*" multiple hidden>
459
+ <button data-command-id="shell.attach-revision" type="button" id="ws-attach-revision" class="btn-mini" data-tip="Attach revised PDF drawings — your terminal AI reads them into a new version" hidden>⤒ Attach revised drawings…</button>
460
+ <input data-command-id="shell.attach-revision" type="file" id="ws-revision-file" accept=".pdf" multiple hidden>
457
461
  </span>
458
462
  </div>
459
463
  <!-- The announcer stays outside the bounded visual region so it is mounted before the first
@@ -508,6 +512,12 @@
508
512
  <!-- Pages (#2262) = a SHELL-rendered pane: this project's stored, versioned HTML Pages.
509
513
  pages.js fills it on step-switch (flolessPages.renderList). -->
510
514
  <div class="ws-pages" id="ws-pages" hidden></div>
515
+ <!-- #2470 R6.2: Workflows = a SHELL-rendered pane: the workflows this project owns.
516
+ project-workflows.js fills it on step-switch (flolessProjectWorkflows.render). -->
517
+ <div class="ws-pages ws-workflows" id="ws-workflows" hidden></div>
518
+ <!-- #2470 R6.7: Modules = a SHELL-rendered pane: the module projects linked to a General project.
519
+ project-modules.js fills it on step-switch (flolessProjectModules.render). -->
520
+ <div class="ws-pages ws-modules" id="ws-modules" hidden></div>
511
521
  <!-- Knowledge = a SHELL-rendered pane (not an iframe): the project's Knowledge Base.
512
522
  workspaces.js fills it on step-switch (renderKnowledge). Stage B ships the References
513
523
  column (drop / useAsKb / remove / Organize); the graph + note columns are Stage C/D.
@@ -1011,6 +1021,18 @@
1011
1021
  <span class="rtn-toggle-track"></span>
1012
1022
  </label>
1013
1023
  </div>
1024
+ <!-- The tab signal's desktop notice (web/tab-signal.js): a run that ends while the person is in another window.
1025
+ Hidden where the browser has no notices; tab-signal.js shows and drives it. -->
1026
+ <div class="menu-run-notify" id="menu-run-notify" hidden>
1027
+ <div class="menu-theme">
1028
+ <label class="menu-label" for="menu-run-notify-toggle" data-tip="The notice comes from your browser, which asks once whether FloLess may show it">Run finished notices</label>
1029
+ <label class="rtn-toggle">
1030
+ <input type="checkbox" id="menu-run-notify-toggle" role="switch" aria-label="Run finished notices" aria-describedby="menu-run-notify-hint" data-command-id="shell.run-notify">
1031
+ <span class="rtn-toggle-track"></span>
1032
+ </label>
1033
+ </div>
1034
+ <p class="menu-ai-note-hint" id="menu-run-notify-hint">A desktop notice when a run ends while you are in another window.</p>
1035
+ </div>
1014
1036
  <!-- Start-on-login + Theme are sibling machine preferences (no divider between
1015
1037
  them — UX review 2026-05-31). Start-on-login toggles the per-user logon
1016
1038
  Scheduled Task that keeps the local server alive across logins; hidden unless
@@ -1218,6 +1240,12 @@
1218
1240
  <button data-command-id="shell.dialog-close#My shared links" id="sl-close" type="button" class="ghost" aria-label="Close">×</button>
1219
1241
  </div>
1220
1242
  <p class="sl-note" id="sl-note" role="status" hidden></p>
1243
+ <div class="sl-usage" id="sl-usage" data-level="ok" hidden>
1244
+ <div class="sl-usage-row"><span class="sl-usage-label" id="sl-usage-label">Space for shared files</span><span class="sl-usage-value" id="sl-usage-value" aria-hidden="true"></span></div>
1245
+ <div class="sl-meter" id="sl-meter" role="meter" aria-labelledby="sl-usage-label" aria-valuemin="0" aria-valuemax="1" aria-valuenow="0"><span class="sl-meter-fill" id="sl-meter-fill"></span></div>
1246
+ <p class="sl-usage-status" id="sl-usage-status" role="status" hidden></p>
1247
+ <div class="sl-usage-foot"><span class="sl-usage-help">Revoking a link frees the space only it used, within a day.</span><button data-command-id="shell.shared-links-plans" id="sl-plans" type="button" class="ghost" hidden>See plans</button></div>
1248
+ </div>
1221
1249
  <div class="sl-list" id="sl-list" role="list" aria-label="My shared links"></div>
1222
1250
  <div class="sl-foot"><button data-command-id="shell.shared-links-more" id="sl-more" type="button" class="ghost" hidden>Show more</button></div>
1223
1251
  </div>
@@ -1252,6 +1280,9 @@
1252
1280
  <button type="button" data-command-id="shell.report-go-object" id="report-go-object" class="ghost">Go</button>
1253
1281
  <span id="report-object-error" class="report-object-error" hidden></span>
1254
1282
  </nav>
1283
+ <!-- #2476: what the run viewer says about a report that carries files while its Page version is being saved (or why it
1284
+ cannot be shown). Plain words, a polite live region; hidden when there is nothing to say. -->
1285
+ <div class="report-files-note" id="report-files-note" role="status" aria-live="polite" hidden></div>
1255
1286
  <div class="report-stage" id="report-stage">
1256
1287
  <!-- sandbox flags, each load-bearing:
1257
1288
  • allow-same-origin — REQUIRED. Without it the srcdoc document gets an
@@ -1266,6 +1297,11 @@
1266
1297
  Scripts stay BLOCKED (no allow-scripts), so even though the report is now
1267
1298
  same-origin it has no JS to touch the app page — static reports only. -->
1268
1299
  <iframe id="report-frame" sandbox="allow-same-origin allow-popups allow-popups-to-escape-sandbox" title="Report"></iframe>
1300
+ <!-- #2476: the report's saved Page version, shown once it says it is ready (a report with files: its pictures and
1301
+ files load only from there). The Pages screen's isolation exactly: scripts run, but NO allow-same-origin, so
1302
+ the document has an opaque origin and cannot touch the app page; no popups either — its link requests are
1303
+ answered by the Pages screen, not here. -->
1304
+ <iframe id="report-frame-page" sandbox="allow-scripts" title="Saved report" hidden></iframe>
1269
1305
  <!-- Interactive output (the viewer-3d agent) needs scripts, so it cannot use the
1270
1306
  scriptless static frame above. Loaded via a `data:text/html` URL → an opaque
1271
1307
  origin (cannot reach the app page, cookies, or same-origin APIs). Minimal
@@ -1370,6 +1406,8 @@
1370
1406
  <span data-chat-provider-status="codex"></span>
1371
1407
  </div>
1372
1408
  <div class="project-setup-note">This project’s conversation stays with the AI you choose here.</div>
1409
+ <!-- #2470 R6.4: what a General project's kickoff chat does; shown for General only. -->
1410
+ <div class="project-setup-note" id="project-setup-kickoff-note" hidden>Flo will ask what this project is and suggest what to add. Nothing changes until you confirm.</div>
1373
1411
  </fieldset>
1374
1412
  </div>
1375
1413
  <div class="project-setup-storage-note">FloLess stores this project, its AI Chat history, Knowledge and project workflows in this folder. AI starts here too.</div>
@@ -1499,6 +1537,17 @@
1499
1537
 
1500
1538
  <!-- Save-on-switch confirmation — shown when switching workflows with unsaved
1501
1539
  input changes. Reuses the shared modal styling; no new backdrop look. -->
1540
+ <!-- Add a module / Link an existing project (project-modules.js, #2470 R6.7): the Project access sheet's chrome. -->
1541
+ <div class="modal-backdrop pa-backdrop pm-backdrop" id="project-modules-sheet" role="dialog" aria-modal="true" aria-labelledby="pm-title" aria-describedby="pm-sub">
1542
+ <aside class="pa-sheet pm-sheet" tabindex="-1">
1543
+ <header class="pa-head">
1544
+ <div><h2 class="pa-title" id="pm-title">Add a module</h2><p class="pa-subtitle" id="pm-sub"></p></div>
1545
+ <button type="button" class="pa-close" id="pm-close" aria-label="Close" data-tip="Close" data-command-id="shell.project-modules-sheet-close">✕</button>
1546
+ </header>
1547
+ <div class="pa-body" id="pm-body"></div>
1548
+ <footer class="pa-foot">A linked project keeps its own access. Linking gives this project nothing.</footer>
1549
+ </aside>
1550
+ </div>
1502
1551
  <!-- Project access sheet (project-access.js): slides in from the right over the open project. -->
1503
1552
  <div class="modal-backdrop pa-backdrop" id="project-access-sheet" role="dialog" aria-modal="true" aria-labelledby="pa-title" aria-describedby="pa-sub">
1504
1553
  <aside class="pa-sheet" tabindex="-1">
@@ -2052,6 +2101,7 @@
2052
2101
  <script src="commands.js"></script>
2053
2102
  <script src="app.js"></script>
2054
2103
  <script src="workspace-root-management.js"></script>
2104
+ <script src="workspace-root-recovery.js"></script>
2055
2105
  <script src="project-reconciliation.js"></script>
2056
2106
  <script src="parser-setup-recovery.js"></script>
2057
2107
  <script src="renderers.js"></script>
@@ -2062,14 +2112,16 @@
2062
2112
  <script src="chat-landing-scene.js"></script>
2063
2113
  <script src="run-progress.js"></script>
2064
2114
  <script src="run-strip.js"></script>
2115
+ <script src="tab-signal.js"></script>
2065
2116
  <script src="media-player.js"></script>
2066
2117
  <script src="agent-steps.js"></script>
2067
2118
  <script src="step-rename.js"></script>
2068
- <script src="report-files.js"></script>
2119
+ <script src="run-page-view.js"></script>
2069
2120
  <script src="aware.js"></script>
2070
2121
  <script src="tool-updates.js"></script>
2071
2122
  <script src="panels.js"></script>
2072
2123
  <script src="filter-guidance.js"></script>
2124
+ <script src="kb-categories.js"></script>
2073
2125
  <script src="workspaces.js"></script>
2074
2126
  <script src="left-pane.js"></script>
2075
2127
  <script src="chat-question-card.js"></script>
@@ -2078,6 +2130,8 @@
2078
2130
  <script src="agents.js"></script>
2079
2131
  <script src="project-access.js"></script>
2080
2132
  <script src="pages.js"></script>
2133
+ <script src="project-workflows.js"></script>
2134
+ <script src="project-modules.js"></script>
2081
2135
  <script src="guide.js"></script>
2082
2136
  <script src="connections.js"></script>
2083
2137
  <script src="local-discovery.js"></script>
@@ -856,11 +856,11 @@
856
856
  // #2046: the ways into the Guide on the empty pages, and its first-launch question.
857
857
  'Getting started', 'In the Guide question',
858
858
  'In the Workspace directory dialog', 'In Tekla source selection', 'In the new project dialog', 'In the project workspace', 'In the Revit workspace', 'In the Tekla Parser workspace', 'In the Drawing Checker profile', 'In Company knowledge',
859
- 'In the project History', 'In the revision note', 'In the Pages list',
859
+ 'In the project History', 'In the revision note', 'In the Pages list', 'In a project’s Workflows step', 'In a project’s Modules step',
860
860
  'On the workflow canvas', 'In workflow setup dialogs',
861
861
  // The Informed by row sits at the top of the canvas column, so it is read right after the canvas.
862
862
  // #1998: the approval notices sit above the canvas with the Informed by row.
863
- 'In the Needs you notice', 'In the morning briefing notice', 'In the Approval carried over row',
863
+ 'In the Needs you notice', 'In the morning briefing notice', 'In the run finished notice', 'In the Approval carried over row',
864
864
  'In the Informed by row', 'In the run progress strip', 'In Set inputs', 'In the AI step confirmation', 'In the step rename',
865
865
  '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',
866
866
  'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
@@ -1526,13 +1526,16 @@
1526
1526
 
1527
1527
  function openSheet() {
1528
1528
  if (!$sheet || sheetOpen || !enabled) return false;
1529
- /* Requests and the Page viewer have runtime-built controls to browse in this sheet.
1529
+ /* Requests, the Page viewer and AI Chat's source viewers (`data-command-sheet-over`, #2582) have
1530
+ runtime-built controls to browse in this sheet.
1530
1531
  It is covered (inert + aria-hidden) while the sheet owns the screen, and app.css gives the
1531
1532
  sheet the explicit upper tier. Every other dialog still refuses stacking: its controls are
1532
1533
  already explained in place and opening above it would obscure an unfinished decision. */
1533
1534
  var shownDialogs = Array.prototype.slice.call(document.querySelectorAll('.modal-backdrop.show'))
1534
1535
  .filter(function (modal) { return modal !== $sheet; });
1535
- if (shownDialogs.some(function (modal) { return modal.id !== 'requests-modal' && modal.id !== 'page-viewer'; })) return false;
1536
+ if (shownDialogs.some(function (modal) {
1537
+ return modal.id !== 'requests-modal' && modal.id !== 'page-viewer' && !modal.hasAttribute('data-command-sheet-over');
1538
+ })) return false;
1536
1539
 
1537
1540
  returnFocusTo = document.activeElement;
1538
1541
  sheetOpen = true;
@@ -1895,8 +1898,7 @@
1895
1898
  $askMenu.addEventListener('keydown', function (e) {
1896
1899
  var items = Array.from($askMenu.querySelectorAll('button'));
1897
1900
  var at = items.indexOf(document.activeElement);
1898
- if (e.key === 'Escape') { e.preventDefault(); closeAskMenu(true); }
1899
- else if (e.key === 'Tab') closeAskMenu(false);
1901
+ if (e.key === 'Tab') closeAskMenu(false);
1900
1902
  else if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
1901
1903
  e.preventDefault();
1902
1904
  items[(at + (e.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length].focus();
@@ -1953,10 +1955,20 @@
1953
1955
  }
1954
1956
  });
1955
1957
 
1956
- // Escape drops the on-demand entry and returns to the project readout. The
1957
- // sheet handles its own Escape and stops it here, so one press never both
1958
- // closes the sheet and clears the entry behind it.
1958
+ // The open Ask menu owns Escape even after focus leaves it. Capture the key
1959
+ // before it reaches a focused surface or the bubbling handler that clears the explanation.
1959
1960
  document.addEventListener('keydown', function (e) {
1961
+ if (e.key === 'Escape' && !$askMenu.hidden) {
1962
+ e.preventDefault();
1963
+ e.stopPropagation();
1964
+ closeAskMenu(true);
1965
+ return;
1966
+ }
1967
+ }, true);
1968
+ // The sheet handles its own Escape and stops it here, so one press never
1969
+ // both closes the sheet and clears the entry behind it.
1970
+ document.addEventListener('keydown', function (e) {
1971
+ if (e.defaultPrevented) return;
1960
1972
  if (e.key === 'Escape' && !sheetOpen && snapshot.focus) clearFocusEntry();
1961
1973
  });
1962
1974