@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
package/dist/web/aware.js CHANGED
@@ -1353,7 +1353,6 @@
1353
1353
  }
1354
1354
 
1355
1355
  function acceptsManualRunEvent(message) {
1356
- if (message.runOrigin === 'panel' && !activeManualRun && !state.running && !reportRunning) return true;
1357
1356
  if (!message.runRequestId) return !activeManualRun;
1358
1357
  return !!activeManualRun && !cancelRequested && activeManualRun.id === message.runRequestId;
1359
1358
  }
@@ -5151,7 +5150,31 @@
5151
5150
  setExportActionBusy(appId, 'ifc', true);
5152
5151
  showToast('Generating IFC…', 'info');
5153
5152
  try {
5154
- const res = await api('/api/contract/' + encodeURIComponent(appId) + '/export-ifc', { method: 'POST' });
5153
+ const url0 = '/api/contract/' + encodeURIComponent(appId) + '/export-ifc';
5154
+ let res;
5155
+ try { res = await api(url0, { method: 'POST' }); }
5156
+ catch (err) {
5157
+ // Add-ons S1a: members on a custom section with no IFC shape are asked about before anything is written.
5158
+ const ask = err && err.body && err.body.needsChoice === 'custom-sections' ? err.body : null;
5159
+ if (!ask) throw err;
5160
+ const members = Array.isArray(ask.members) ? ask.members : [];
5161
+ const named = members.slice(0, 6).map((m) => `${m.id} (${m.designation})`).join(', ') + (members.length > 6 ? `, and ${members.length - 6} more` : '');
5162
+ const chosen = await formModal({
5163
+ title: 'Custom sections in this IFC file',
5164
+ sub: `${ask.message}${named ? ` Members: ${named}.` : ''} Nothing is exported until you choose.`,
5165
+ okLabel: 'Export',
5166
+ fields: [{
5167
+ name: 'choice', label: 'For these members', type: 'select', value: 'leave-out', commandId: 'shell.ifc-custom-section-choice',
5168
+ options: [
5169
+ { value: 'leave-out', label: 'Leave them out', meta: 'Recommended · listed as left out' },
5170
+ { value: 'bounding-box', label: 'Send their bounding box', meta: 'Named as an assumption' },
5171
+ ],
5172
+ }],
5173
+ });
5174
+ if (!chosen) { showToast('IFC export stopped. Nothing was exported.', 'info'); return; }
5175
+ res = await api(url0, { method: 'POST', headers: { 'content-type': 'application/json' },
5176
+ body: JSON.stringify({ customSections: { choice: chosen.choice === 'bounding-box' ? 'bounding-box' : 'leave-out', key: ask.key } }) });
5177
+ }
5155
5178
  if (res.counts) exportReceiptsByApp.set(exportReceiptKey(appId, 'ifc'), {
5156
5179
  counts: res.counts,
5157
5180
  warnings: res.warnings || [],
@@ -5182,12 +5205,17 @@
5182
5205
  const noScale = byReason('view-scale-invalid');
5183
5206
  const conflict = byReason('cross-view-conflict');
5184
5207
  const mixedPlacement = byReason('placement-evidence-conflict');
5208
+ // Add-ons S1a: a member on a custom section is not an RFI member; it is one this file does not carry as itself.
5209
+ const customOut = byReason('custom-section-not-exported') + byReason('custom-section-unverified');
5185
5210
  const rfi = detail
5186
- ? detail.length - noFit - noHeight - noFrame - noScale - conflict - mixedPlacement
5211
+ ? detail.length - noFit - noHeight - noFrame - noScale - conflict - mixedPlacement - customOut
5187
5212
  : skips.filter((s) => !SKIP_REASON_PREFIX.test(String(s))).length;
5188
5213
  const notes = [];
5189
5214
  if (isVector) { if (dropped) notes.push(`${dropped} unplaced`); }
5190
5215
  else {
5216
+ if (customOut) notes.push(`${customOut} on a custom section this file leaves out`);
5217
+ const boxed = Array.isArray(res.customSections) ? res.customSections.filter((row) => row && row.sent === 'bounding-box').length : 0;
5218
+ if (boxed) notes.push(`${boxed} sent as a bounding box, named in the file as an assumption`);
5191
5219
  // Same wording as the 3D toast, deliberately: the two describe the same members of the same
5192
5220
  // document, and two sentences for one fact is how a user learns to distrust both.
5193
5221
  if (noHeight) notes.push(`${noHeight} with no known height — answer the elevation question`);
@@ -5360,6 +5388,8 @@
5360
5388
  'view-scale-invalid': 'no valid drawing scale',
5361
5389
  'cross-view-conflict': 'conflicting drawing views',
5362
5390
  'placement-evidence-conflict': 'conflicting placement evidence',
5391
+ 'custom-section-unverified': 'a custom section that cannot be checked',
5392
+ 'custom-section-not-exported': 'a custom section this send does not carry',
5363
5393
  };
5364
5394
  const grouped = {};
5365
5395
  rows.forEach((row) => { grouped[row.reason] = (grouped[row.reason] || 0) + 1; });
@@ -6188,6 +6218,8 @@
6188
6218
  'view-scale-invalid': 'Source view has no valid drawing scale',
6189
6219
  'cross-view-conflict': 'Source views disagree on placement',
6190
6220
  'placement-evidence-conflict': 'Invalid scale and conflicting placement evidence',
6221
+ 'custom-section-unverified': 'Custom section cannot be checked',
6222
+ 'custom-section-not-exported': 'Custom section is not carried by this send',
6191
6223
  'not-in-model': 'No longer in the model',
6192
6224
  };
6193
6225
  const groups = new Map();
@@ -6270,6 +6302,7 @@
6270
6302
  else if (f.commandId === 'shell.new-workflow-location') commandCarrier = ' data-command-id="shell.new-workflow-location"';
6271
6303
  else if (f.commandId === 'workflow.select-model-revision') commandCarrier = ' data-command-id="workflow.select-model-revision"';
6272
6304
  else if (f.commandId === 'shell.render-caption-choice') commandCarrier = ' data-command-id="shell.render-caption-choice"';
6305
+ else if (f.commandId === 'shell.ifc-custom-section-choice') commandCarrier = ' data-command-id="shell.ifc-custom-section-choice"';
6273
6306
  let optionIndex = 0;
6274
6307
  const optionRow = (o) => `<div id="${id}-option-${optionIndex++}" class="wf-option${isOn(o) && !o.unavailable ? ' selected' : ''}${o.volatile ? ' volatile' : ''}${o.unavailable ? ' is-unavailable' : ''}" role="option" data-id="${escapeAttr(String(o.value))}" data-trigger-label="${escapeAttr(o.triggerLabel || '')}"${o.unavailable ? ` aria-disabled="true" data-blocked-reason="${escapeAttr(String(o.unavailable))}" data-tip="${escapeAttr(String(o.unavailable))}"` : ''}${commandCarrier}${commandCarrier ? ` data-command-instance="${escapeAttr(String(o.value))}" data-command-instance-label="${escapeAttr(String(o.label))}"` : ''} data-search="${escapeAttr(String(o.search || o.label).toLowerCase())}" tabindex="-1" aria-label="${escapeAttr(o.ariaLabel || o.label)}" aria-selected="${isOn(o) ? 'true' : 'false'}"><span class="wf-option-name">${escapeHtml(o.label)}</span>${o.meta ? `<span class="wf-option-meta">${escapeHtml(o.meta)}</span>` : ''}</div>`;
6275
6308
  const grouped = opts.some((o) => o.group);
@@ -9506,7 +9539,7 @@
9506
9539
  // first /api/workflows/updates went out ahead of /api/apps and the workflow picker then waited
9507
9540
  // behind it — measured empty for ~59 s on a cold server (#358). It is an OFFER (a pill), never
9508
9541
  // needed for first paint. It was also firing while the subscription gate would 402 it, then not
9509
- // retrying for an hour — the same reason panels.js boot is deferred to loadWorkspaceData().
9542
+ // retrying for an hour.
9510
9543
  // loadWorkspaceData() re-runs when the health poll recovers from an outage, so only the INTERVAL is
9511
9544
  // guarded — the fetch itself must repeat. Guarding the whole function meant a first load that failed
9512
9545
  // during an outage (the fetch fails too) marked the poll started, and the recovery run was then
@@ -11793,6 +11826,9 @@
11793
11826
  // #2482: a PROJECT's contract changed (a checklist draft, a reference added from AI Chat). workspaces.js relays
11794
11827
  // it to that project's open editor frame, which has no event stream of its own.
11795
11828
  window.dispatchEvent(new CustomEvent('floless:contract-changed', { detail: m }));
11829
+ } else if (m.type === 'add-ons-changed') {
11830
+ // #3296 S1b: an add-on changed (from the chat, a card, another window). My add-ons re-reads while it is open.
11831
+ window.dispatchEvent(new CustomEvent('floless:add-ons-changed', { detail: { id: typeof m.id === 'string' ? m.id : null, rev: Number.isInteger(m.rev) ? m.rev : null } }));
11796
11832
  } else if (m.type === 'pages-changed') {
11797
11833
  // #2702: a Page was created, got a version, was shared, published, revoked or deleted — from the chat, a workflow
11798
11834
  // run or the viewer. Open Pages lists re-read (pages.js is the only listener); nothing is polled.
@@ -11945,19 +11981,12 @@
11945
11981
  }
11946
11982
  } else if (m.type === 'request-added' || m.type === 'requests-changed') {
11947
11983
  loadRequests();
11948
- if (window.flolessPanels) window.flolessPanels.refreshPending(); // composer's "queued" line
11949
- } else if (m.type === 'extensions-changed') {
11950
- // The terminal AI (or undo/reset) rewrote ~/.floless/ui/extensions.json —
11951
- // re-render the Dashboard / inspect-tab panels live. panels.js owns it.
11952
- if (window.flolessPanels) window.flolessPanels.refresh({ fromChange: true });
11953
11984
  } else if (m.type === 'knowledge-changed') {
11954
11985
  // #2399 slice 0b: a chat, a terminal or another window changed a project's references or design set.
11955
11986
  window.flolessWorkspaces?.knowledgeChanged?.(m.projectId);
11956
11987
  } else if (m.type === 'revision-note-changed') {
11957
11988
  window.dispatchEvent(new CustomEvent('floless:revision-note-changed', { detail: m }));
11958
11989
  } else if (m.type === 'run-ended') {
11959
- // Panel data bindings (last-run-output/-status) go stale after any run.
11960
- if (window.flolessPanels) window.flolessPanels.refreshData();
11961
11990
  // #2470 R6.2: a project's Workflows step shows each workflow's last run; it re-reads only while on screen.
11962
11991
  window.flolessProjectWorkflows?.refresh?.();
11963
11992
  window.flolessRunHistory?.refresh?.(); // Workflows → History re-reads only while on screen
@@ -11981,7 +12010,6 @@
11981
12010
  window.flolessProjectWorkflows?.refresh?.(); // #2470 R6.2, as run-ended
11982
12011
  window.flolessRunHistory?.refresh?.();
11983
12012
  loadRoutinesData();
11984
- if (window.flolessPanels) window.flolessPanels.refreshData(); // routine runs also refresh bindings
11985
12013
  window.flolessAgents?.refreshRuns?.(); // #2035: an open agent page shows the run its routine just started
11986
12014
  if (currentId) void globalThis.flolessAgentSteps?.refreshRunRecord(currentId); // #2241 S5: a scheduled run may have left questions
11987
12015
  } else if (m.type === 'trigger-session-changed') {
@@ -12402,7 +12430,7 @@
12402
12430
  //
12403
12431
  // WHICH SURFACES MUST USE THIS: every one whose failure message BLAMES a cause — the row ⧉, the
12404
12432
  // request-help modal, the revision card. The queue-then-best-effort-copy callers (useTemplate,
12405
- // tweakNode, requestNewWorkflow, panels.js's customize box) say only "queued, not
12433
+ // tweakNode, requestNewWorkflow) say only "queued, not
12406
12434
  // copied" and name no cause, so they cannot conflate anything and are deliberately left alone. Add
12407
12435
  // a new surface that names a cause and it belongs here.
12408
12436
  async function copyRequest(req, stillOwned = () => true) {
@@ -14016,7 +14044,7 @@
14016
14044
  * Does this queued request belong to what the user has open? (Pure — unit-tested.)
14017
14045
  *
14018
14046
  * Three cases, and the middle one is the whole point of the filter:
14019
- * - A request with NEITHER appId nor project (dashboard customization or a standalone new
14047
+ * - A request with NEITHER appId nor project (a standalone new
14020
14048
  * workflow) belongs to no open project/app scope, so it is always shown. A project-owned new
14021
14049
  * workflow carries `project` and follows the project rule below.
14022
14050
  * - A PROJECT scope matches on project id only. A Workspaces tweak-contract carries both a
@@ -14053,7 +14081,7 @@
14053
14081
  *
14054
14082
  * A project-keyed request must NEVER fall through to appId: every steel-model project carries
14055
14083
  * `appId: "steel-model"`, so the old head line printed the same word against three unrelated
14056
- * projects' work. Requests that belong to neither (ui-customize, new-workflow) get a plain-English
14084
+ * projects' work. A request that belongs to neither (new-workflow) gets a plain-English
14057
14085
  * stand-in rather than a blank — the row still has to say what it is about.
14058
14086
  */
14059
14087
  function requestOwnerName(r) {
@@ -14062,7 +14090,7 @@
14062
14090
  if (r.type === 'new-workflow' && r.buildId && r.workflowName) return r.workflowName;
14063
14091
  if (r.project) return r.projectName || r.project;
14064
14092
  if (r.appId) return r.appId;
14065
- return r.type === 'ui-customize' ? 'your dashboard' : r.type === 'new-workflow' ? (r.workflowName || 'a new workflow') : '';
14093
+ return r.type === 'new-workflow' ? (r.workflowName || 'a new workflow') : '';
14066
14094
  }
14067
14095
 
14068
14096
  function requestMatchesChatScope(request) {
@@ -14116,7 +14144,7 @@
14116
14144
  // One path for a question and a change, so a waiting message is never labelled a suggestion.
14117
14145
  return r.instructorContext.commandId === 'filter.ask-ai-change' ? 'filter answer' : 'filter question';
14118
14146
  if (r.type === 'revision-read') return (!r.baseVersion || r.baseVersion <= 0) ? 'initial drawing read' : 'updated drawing read';
14119
- return r.type === 'use-template' ? 'template' : r.type === 'ui-customize' ? 'dashboard' : r.type === 'rebake' ? 're-bake' : r.type === 'guide' ? 'guide' : r.type === 'new-workflow' ? 'new workflow' : r.type === 'knowledge-organize' ? 'organize' : r.type === 'knowledge-adjust' ? 'adjust' : r.type === 'knowledge-consult' ? 'knowledge' : r.type === 'project-kickoff' ? 'kickoff' : r.type === 'tweak-contract' ? 'contract' : 'tweak';
14147
+ return r.type === 'use-template' ? 'template' : r.type === 'rebake' ? 're-bake' : r.type === 'guide' ? 'guide' : r.type === 'new-workflow' ? 'new workflow' : r.type === 'knowledge-organize' ? 'organize' : r.type === 'knowledge-adjust' ? 'adjust' : r.type === 'knowledge-consult' ? 'knowledge' : r.type === 'project-kickoff' ? 'kickoff' : r.type === 'tweak-contract' ? 'contract' : 'tweak';
14120
14148
  }
14121
14149
 
14122
14150
  function isInitialDrawingRead(r) {
@@ -15200,7 +15228,7 @@
15200
15228
  const anyRunnable = headlessReady() && shown.some((r) => r && r.canRun);
15201
15229
  const queuedHtml = shown.map((r, shownIndex) => {
15202
15230
  const label = requestLabel(r);
15203
- const badgeCls = r.type === 'tweak' || r.type === 'ui-customize' || r.type === 'rebake' || r.type === 'revision-read' || r.type === 'knowledge-organize' || r.type === 'knowledge-adjust' || r.type === 'tweak-contract' ? 'req-type req-type-tweak' : 'req-type';
15231
+ const badgeCls = r.type === 'tweak' || r.type === 'rebake' || r.type === 'revision-read' || r.type === 'knowledge-organize' || r.type === 'knowledge-adjust' || r.type === 'tweak-contract' ? 'req-type req-type-tweak' : 'req-type';
15204
15232
  // One name, and only the name. The node/input/sheet chips that used to sit here ("· node
15205
15233
  // render") are already spelled out in the instruction body right below, so they cost a line
15206
15234
  // of chrome to repeat what the sentence underneath says in English.
@@ -15304,7 +15332,7 @@
15304
15332
  ? `<button class="req-chat-action primary" data-request-chat="start" data-id="${escapeAttr(r.id)}" data-command-id="shell.requests-start-chat#${escapeAttr(r.id)}" data-command-instance-label="${escapeAttr(commandInstance)}" aria-label="Work on ${escapeAttr(chatLabel)} in AI Chat" data-tip="The AI starts on this now, in this request’s own conversation in AI Chat"${starting ? ' disabled aria-busy="true"' : ''}>${escapeHtml(starting || 'Work on it')}</button>`
15305
15333
  : '';
15306
15334
  const chatMeta = discardQuestion ? '' : chatProvider && inChatScope
15307
- ? `<span class="req-chat-meta">AI Chat · ${escapeHtml(runtimeLabel(chatProvider))} · ${r.type === 'guide' || (r.type === 'tweak-contract' && r.mode === 'query') ? 'Read only' : 'Auto'}</span>`
15335
+ ? `<span class="req-chat-meta">AI Chat · ${escapeHtml(runtimeLabel(chatProvider))} · ${r.type === 'guide' ? 'Read only' : 'Auto'}</span>`
15308
15336
  : chatProvider && hasChatOwner
15309
15337
  ? `<span class="req-chat-elsewhere" data-tip="${escapeAttr(requestChatScopeReason(r))}">${escapeHtml(requestChatScopeReason(r))}</span>`
15310
15338
  : '';
@@ -19905,9 +19933,6 @@
19905
19933
  loadTemplates().catch(() => {}),
19906
19934
  loadRequests().catch(() => {}),
19907
19935
  ]);
19908
- // Custom Panels boot is deferred to here so panels.js never fetches while the
19909
- // subscription gate / AWARE bootstrap would 402/409 it.
19910
- if (window.flolessPanels) window.flolessPanels.boot();
19911
19936
  return loadApps().catch((e) => {
19912
19937
  reportErr(e);
19913
19938
  // #2644: a module refusal means the server answered; it is never "unreachable". (loadApp already shows a refused
@@ -20288,11 +20313,6 @@
20288
20313
  }
20289
20314
  }
20290
20315
 
20291
- // ── Custom Panels bridge (web/panels.js) ─────────────────────────────────────
20292
- // panels.js renders ~/.floless/ui/extensions.json into the Dashboard view. It
20293
- // loads AFTER this file and reuses these seams instead of duplicating the fetch /
20294
- // report-viewer plumbing — the renderer composes nothing itself. Kept minimal on
20295
- // purpose; widen only when a panel block genuinely needs another seam.
20296
20316
  // #1890: AI Chat is always on. Where no project or owned workflow is open — the Workspaces landing, the Workflows
20297
20317
  // landing, an installed (not owned) workflow — the conversation belongs to the workspace, with what is open as context.
20298
20318
  function currentChatScope() {
@@ -21228,7 +21248,7 @@
21228
21248
  },
21229
21249
  // Open report HTML in the existing sandboxed HTML Viewer (same modal + srcdoc
21230
21250
  // iframe the canvas report node uses — no new sandbox surface). `savedPath` is
21231
- // optional: pass the run's saved_path so a dashboard-panel run surfaces the same
21251
+ // optional: pass the run's saved_path so the report surfaces the same
21232
21252
  // ⧉ Open file / ▤ Reveal buttons as a canvas run (#209); omit → they stay hidden.
21233
21253
  showHtmlReport(title, html, savedPath) {
21234
21254
  $reportTitle.textContent = title;
@@ -21405,7 +21425,7 @@
21405
21425
  chooseInstructorRuntime,
21406
21426
  instructorAskOptions,
21407
21427
  instructionFor,
21408
- markedInstruction, // marked (paste-safe) form for clipboard copies — panels.js uses it (#73)
21428
+ markedInstruction, // marked (paste-safe) form for clipboard copies (#73)
21409
21429
  copyRequest, // copy ONE request, telling "no instruction body" apart from "clipboard refused"
21410
21430
  async runReadOnlyRequest(request, runtime) {
21411
21431
  if (!runtime || typeof window.flolessChat?.startRequest !== 'function') {
package/dist/web/chat.css CHANGED
@@ -1969,7 +1969,7 @@
1969
1969
  .ai-chat-action-terms { padding: 4px 8px; border-left: 2px solid var(--border-strong); border-radius: 0 4px 4px 0; background: var(--surface); color: var(--text-muted); }
1970
1970
  .ai-chat-action-terms-label { display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
1971
1971
  /* A Quick read that was queued Precise: the person's choice is not what ran, so the done card's edge turns amber. */
1972
- .ai-chat-action-card.is-done.is-fallback { border-left-color: var(--warn); }
1972
+ .ai-chat-action-card.is-done.is-fallback { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface-2)); }
1973
1973
  .ai-chat-action-status:empty { display: none; }
1974
1974
  .ai-chat-action-status:focus { outline: none; }
1975
1975
  .ai-chat-action-status:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@@ -2029,6 +2029,11 @@
2029
2029
  .ai-chat-action-row-glyph { flex: none; width: 1em; font: 11px/15px var(--mono); text-align: center; }
2030
2030
  .ai-chat-action-row.is-ok .ai-chat-action-row-glyph { color: var(--ok); }
2031
2031
  .ai-chat-action-row.is-failed .ai-chat-action-row-glyph { color: var(--err-text); }
2032
+ /* #3409: an action FloLess refused before it ran: quiet, never the red of a failure. The dashes take a muted tone of
2033
+ their own, because the row's usual border can match its fill in the dark theme and the dashes would not show. */
2034
+ .ai-chat-action-row.is-not-run { border-style: dashed; border-color: color-mix(in srgb, var(--text-muted) 60%, var(--surface-2)); }
2035
+ .ai-chat-action-row.is-not-run .ai-chat-action-row-glyph { color: var(--text-muted); }
2036
+ .ai-chat-action-row.is-fallback .ai-chat-action-row-glyph { color: var(--warn); }
2032
2037
  .ai-chat-action-row-verb { flex: none; color: var(--text-muted); }
2033
2038
  .ai-chat-action-row-title { flex: 1 1 auto; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
2034
2039
  .ai-chat-action-row .ai-chat-filter-state { margin-left: auto; color: var(--text-muted); }
package/dist/web/chat.js CHANGED
@@ -697,7 +697,6 @@
697
697
  rfis: 'project-rfis', // #2470 R6.6 (General's pane) and R6.6c (a steel project's RFI page, in the editor frame)
698
698
  }[selectedStep || ''] || 'project-list';
699
699
  const workspaceProjectOpen = document.getElementById('ws-project')?.hidden === false;
700
- const dashboardVisible = document.getElementById('dashboard')?.hidden === false;
701
700
  // #1890: the Workflows landing (the list of workflows), not the canvas of the workflow loaded underneath.
702
701
  const workflowLanding = document.getElementById('wf-landing')?.hidden === false;
703
702
  // #2007: the Agents tab is its own surface; where you are adds context only.
@@ -705,7 +704,7 @@
705
704
  const surface = agentsMode && !reportOpen ? (window.flolessAgents?.surface?.() || 'agent-list') : reportOpen ? (threeDimensionalReport ? '3d-report' : 'report')
706
705
  : editorOpen ? 'model-editor'
707
706
  : workspaceMode ? (workspaceProjectOpen ? workspaceSurface : 'project-list')
708
- : workflowLanding ? 'workflow-list' : dashboardVisible ? 'dashboard' : 'workflow-canvas';
707
+ : workflowLanding ? 'workflow-list' : 'workflow-canvas';
709
708
  if (options.surfaceOnly) return { surface };
710
709
  return {
711
710
  mode: agentsMode ? 'agents' : workspaceMode ? 'workspaces' : workflowMode ? 'workflows' : 'canvas',
@@ -747,7 +746,6 @@
747
746
  case 'workflow-list': return shellText('wf-landing');
748
747
  case 'agent-list': case 'agent-page': return shellText('agents-surface');
749
748
  case 'workflow-canvas': return shellText('canvas-main', 'inspect');
750
- case 'dashboard': return shellText('dashboard');
751
749
  case 'report': return boundedVisibleText(readVisibleFrameText('report-frame'), shellText('report-title', 'report-sub', 'report-overlay'));
752
750
  case '3d-report': return shellText('report-title', 'report-sub', 'report-overlay');
753
751
  case 'model-editor': return boundedVisibleText(readVisibleFrameText('contract-editor-frame'), shellText('contract-editor-title'));
@@ -759,7 +757,7 @@
759
757
  const labels = {
760
758
  'drawing-filter': 'Drawing Filter', 'project-model': 'project model', 'project-exports': 'project exports',
761
759
  'project-history': 'project history', 'project-knowledge': 'project Knowledge', 'project-pages': 'project Pages', 'project-workflows': 'project Workflows', 'project-rfis': 'project RFIs', 'project-list': 'project list',
762
- 'workflow-canvas': 'workflow canvas', dashboard: 'dashboard', report: 'report', '3d-report': '3D report',
760
+ 'workflow-canvas': 'workflow canvas', report: 'report', '3d-report': '3D report',
763
761
  'model-editor': 'model editor', 'workflow-list': 'workflow list', 'agent-list': 'list of agents', 'agent-page': 'agent page',
764
762
  };
765
763
  return `${labels[context.surface] || 'FloLess'} · visible state${context.activity === 'workflow-running' ? ' · workflow running' : ''}`;
@@ -5748,7 +5746,10 @@
5748
5746
  // The card was asking a moment ago and now is not: say so once to a screen reader (an old card drawn already done stays quiet).
5749
5747
  if (entry.seenOpen && !entry.announcedConnected) announce(`${name} connected, using ${accountLabel}.`);
5750
5748
  entry.announcedConnected = true;
5751
- stateLine.textContent = `FloLess uses ${service.choice.alias ? service.choice.alias : 'the default account'} for ${name}.`;
5749
+ // #3407: an account FloLess picked itself (the only one connected) says so, and says how to use another.
5750
+ stateLine.textContent = service.choice.adopted
5751
+ ? `FloLess is using your only ${name} account. To use a different one, connect it and choose it in Integrations.`
5752
+ : `FloLess uses ${service.choice.alias ? service.choice.alias : 'the default account'} for ${name}.`;
5752
5753
  // The card checks the CHOSEN account at the choice it was painted on: the server refuses a card that is out of date.
5753
5754
  if (payload.checkAgent && alias !== undefined) {
5754
5755
  actions.append(check(alias, { integration: target, expectedChoiceRevision: service.choice.revision }));
@@ -5892,7 +5893,7 @@
5892
5893
  const current = actionProposalState(proposalId);
5893
5894
  // #2266: an unfinished card asks FloLess once whether it has moved on (see syncActionProposal).
5894
5895
  if (!entry.synced && !ACTION_FINAL.has(current.state)) { entry.synced = true; void syncActionProposal(proposalId); }
5895
- const signature = JSON.stringify([event.eventId, current.state, current.result?.message || null, current.supersededBy, current.next || null, entry.busy, actionStatusLine(entry, current)]);
5896
+ const signature = JSON.stringify([event.eventId, current.state, current.result?.message || null, current.result?.note || null, current.supersededBy, current.next || null, entry.busy, actionStatusLine(entry, current)]);
5896
5897
  if (entry.node && entry.signature === signature) return entry.node;
5897
5898
  entry.node = paintActionProposal(event, payload, proposalId, entry, current);
5898
5899
  entry.signature = signature;
@@ -6082,6 +6083,10 @@
6082
6083
  if (screen?.view === 'tool-update-policy' && typeof window.openToolUpdatePolicy === 'function') {
6083
6084
  window.openToolUpdatePolicy(); return true;
6084
6085
  }
6086
+ // #3296 S1b: My add-ons, at the add-on the screen names.
6087
+ if (screen?.view === 'add-ons' && typeof window.flolessAddOns?.open === 'function') {
6088
+ window.flolessAddOns.open(screen.addOnId || undefined); return true;
6089
+ }
6085
6090
  // Requests, at the request the screen names.
6086
6091
  if (screen?.view === 'requests' && typeof window.flolessBridge?.openRequest === 'function') {
6087
6092
  await window.flolessBridge.openRequest(screen.requestId || null); return true;
@@ -6239,6 +6244,11 @@
6239
6244
  card.dataset.eventSequence = String(event.sequence);
6240
6245
  card.dataset.proposalId = proposalId;
6241
6246
  card.dataset.state = current.state;
6247
+ // #3416: a card that ran folds to a line naming what it did ("File the RFI … in the project "Westgate Showroom" · Done"),
6248
+ // not the action's general title, so the line under a reply written before the click says what is now true. A done
6249
+ // card whose result says something else ran (`result.note`, #2521 row 3a) keeps the general title: its summary is
6250
+ // what was asked for, not what happened.
6251
+ if (['done', 'failed', 'unknown'].includes(current.state) && current.result?.code !== 'step-handed-over' && !current.result?.note) card.dataset.foldTitle = summaryText;
6242
6252
  card.setAttribute('role', 'group');
6243
6253
  const status = document.createElement('p');
6244
6254
  status.className = 'ai-chat-filter-note ai-chat-action-status';
@@ -6289,7 +6299,11 @@
6289
6299
  named.className = 'ai-chat-action-named';
6290
6300
  named.append(eyebrow, strong);
6291
6301
  head.append(named);
6292
- const badgeText = handedOver ? 'Your turn' : { executing: 'Running', done: 'Done', failed: 'Not done', unknown: 'Unknown' }[current.state];
6302
+ // A done result that says something else ran (#2521 row 3a) is not a plain Done: the badge, and so the card's folded
6303
+ // line, says "Done differently" and the card's note says what ran.
6304
+ const doneDifferently = current.state === 'done' && typeof current.result?.note === 'string' && Boolean(current.result.note);
6305
+ const badgeText = handedOver ? 'Your turn' : doneDifferently ? 'Done differently'
6306
+ : { executing: 'Running', done: 'Done', failed: 'Not done', unknown: 'Unknown' }[current.state];
6293
6307
  if (badgeText) {
6294
6308
  const badge = document.createElement('span');
6295
6309
  badge.className = 'ai-chat-filter-state';
@@ -7157,20 +7171,38 @@
7157
7171
  return wrap;
7158
7172
  }
7159
7173
 
7160
- /** One line per action the AI ran itself from this conversation: what it was, and how it ended. */
7174
+ /**
7175
+ * #3409: an action FloLess refused before anything ran (an input it could not use, a project this chat is not working
7176
+ * on, something only a person or a card does). Nothing happened, so its row is quiet ("Not run"), never the red of a
7177
+ * real failure. It is said in the person's words rather than the words FloLess gave the AI, except a refusal FloLess
7178
+ * wrote for the person (`forPerson`: a file too large, a drive that is gone), whose own message they can act on.
7179
+ * A definition FloLess itself got wrong ('action-definition') is a real failure and stays red.
7180
+ *
7181
+ * One line per action the AI ran itself from this conversation: what it was, and how it ended.
7182
+ */
7161
7183
  function renderActionRow(event) {
7184
+ // An input refused for the person's own file or work (a file too large, a drive that is gone) shows FloLess's message
7185
+ // for them, below; any other input FloLess could not use gets this sentence, which blames no one.
7186
+ const ACTION_NOT_RUN_REASONS = {
7187
+ 'invalid-input': 'FloLess couldn’t use what was sent for this, so it didn’t run it. Nothing changed.',
7188
+ 'out-of-scope': 'The AI asked about something this chat isn’t working on, so FloLess didn’t run it. Nothing changed.',
7189
+ 'not-allowed': 'This isn’t available in this chat, so FloLess didn’t run it. Nothing changed.',
7190
+ 'human-only': 'A person does this in FloLess, so FloLess didn’t run it for the AI. Nothing changed.',
7191
+ 'in-browser': 'This runs only when you confirm its card, so FloLess didn’t run it here. Nothing changed.',
7192
+ };
7193
+ const actionNotRun = (payload) => payload.outcome === 'rejected' && payload.code !== 'action-definition';
7162
7194
  const payload = event.payload || {};
7163
7195
  if (payload.outcome === 'ok' && payload.card?.kind === 'page' && payload.card.home && payload.card.pageId) return renderPageCard(event);
7164
7196
  if (payload.outcome === 'ok' && payload.card?.kind === 'connection-readiness') return renderReadinessCard(event);
7165
7197
  const row = document.createElement('div');
7166
- const outcome = payload.outcome === 'ok' ? 'ok' : payload.outcome === 'cancelled' ? 'stopped' : 'failed';
7198
+ const outcome = payload.outcome === 'ok' ? 'ok' : payload.outcome === 'cancelled' ? 'stopped' : actionNotRun(payload) ? 'not-run' : 'failed';
7167
7199
  row.className = `ai-chat-action-row is-${outcome}`;
7168
7200
  row.dataset.eventId = event.eventId;
7169
7201
  row.dataset.eventSequence = String(event.sequence);
7170
7202
  const glyph = document.createElement('span');
7171
7203
  glyph.className = 'ai-chat-action-row-glyph';
7172
7204
  glyph.setAttribute('aria-hidden', 'true');
7173
- glyph.textContent = outcome === 'ok' ? '✓' : outcome === 'stopped' ? '■' : '!';
7205
+ glyph.textContent = outcome === 'ok' ? '✓' : outcome === 'stopped' ? '■' : outcome === 'not-run' ? '–' : '!';
7174
7206
  const verb = document.createElement('span');
7175
7207
  verb.className = 'ai-chat-action-row-verb';
7176
7208
  // "Changed" only when the change happened (#2326): a write that ended not done or stopped changed nothing.
@@ -7180,15 +7212,88 @@
7180
7212
  title.textContent = String(payload.title || payload.actionId || 'A FloLess action');
7181
7213
  const state = document.createElement('span');
7182
7214
  state.className = 'ai-chat-filter-state';
7183
- state.textContent = outcome === 'ok' ? 'Done' : outcome === 'stopped' ? 'Stopped' : 'Not done';
7215
+ state.textContent = outcome === 'ok' ? 'Done' : outcome === 'stopped' ? 'Stopped' : outcome === 'not-run' ? 'Not run' : 'Not done';
7184
7216
  row.append(glyph, verb, title, state);
7185
- if (outcome === 'failed' && payload.message) {
7217
+ // Only a message FloLess marked as written for the person (`forPerson`, from a PersonInputError) is shown; the rest
7218
+ // were addressed to the AI (which field to fix, which action lists the ids) and would read as jargon here.
7219
+ const inputMessage = payload.code === 'invalid-input' && payload.forPerson === true && typeof payload.message === 'string'
7220
+ ? payload.message.trim() : '';
7221
+ const reasonText = outcome === 'not-run'
7222
+ ? (inputMessage ? `${inputMessage}${/[.!?…]$/.test(inputMessage) ? '' : '.'} FloLess didn’t run it, so nothing changed.`
7223
+ : ACTION_NOT_RUN_REASONS[payload.code] || 'FloLess didn’t run it. Nothing changed.')
7224
+ : outcome === 'failed' && payload.message ? String(payload.message) : '';
7225
+ if (reasonText) {
7226
+ const reason = document.createElement('span');
7227
+ reason.className = 'ai-chat-action-row-reason';
7228
+ reason.textContent = reasonText;
7229
+ row.append(reason);
7230
+ }
7231
+ row.setAttribute('aria-label', `${verb.textContent}: ${title.textContent}, ${state.textContent.toLowerCase()}${reasonText ? `. ${reasonText}` : ''}`);
7232
+ return row;
7233
+ }
7234
+
7235
+ /**
7236
+ * #3416: how a card the AI suggested ended, said where it ended. The AI's reply beside the card was written before the
7237
+ * person answered and stays as it was ("it isn't filed yet"). When the card sits right under that reply its own folded
7238
+ * line says how it ended; once the conversation has moved on past it, this line at the point the person answered says
7239
+ * it, so nothing later in the conversation still reads as waiting. Only the card's last word is shown, once. "Moved on"
7240
+ * counts the messages the card's own fold counts (`feedCardAnsweredInChat`): a request card or a message FloLess says
7241
+ * was not sent does not.
7242
+ */
7243
+ const ACTION_OUTCOME_STATES = new Set(['done', 'failed', 'unknown', 'declined', 'cancelled']);
7244
+ function renderActionOutcome(event) {
7245
+ const update = event.payload || {};
7246
+ const proposalId = String(update.proposalId || '');
7247
+ if (!proposalId || !ACTION_OUTCOME_STATES.has(update.state)) return null;
7248
+ // A step handed back for the person's last click has not happened yet: its card says so, and nothing here.
7249
+ if (update.state === 'done' && update.result?.code === 'step-handed-over') return null;
7250
+ const at = Number(event.sequence);
7251
+ let card = null;
7252
+ let movedOn = false;
7253
+ for (const other of state.events) {
7254
+ if (other.type === 'action-proposal' && String(other.payload?.proposalId || other.eventId) === proposalId) card = other;
7255
+ else if (other.type === 'action-proposal-update' && other.payload?.proposalId === proposalId && Number(other.sequence) > at) return null;
7256
+ else if (card && other.type === 'user-message' && !other.payload?.source && Number(other.sequence) > Number(card.sequence) && Number(other.sequence) < at
7257
+ && !((other.payload?.followup || other.payload?.deliveryState) && followupDelivery(other) === 'not-sent')) movedOn = true;
7258
+ }
7259
+ if (!card || !movedOn) return null;
7260
+ const summary = String(card.payload?.summary || card.payload?.title || 'A FloLess action');
7261
+ // A done result that says something else ran (a Quick read queued Precise, a sign-in that could not start, #2521
7262
+ // row 3a) is not a green Done over what was asked: it says "Done differently" and gives the result's own note.
7263
+ const resultNote = update.state === 'done' && typeof update.result?.note === 'string' ? update.result.note.trim() : '';
7264
+ const outcome = update.state === 'done' ? (resultNote ? 'fallback' : 'ok') : update.state === 'failed' ? 'failed' : 'stopped';
7265
+ const stopped = update.state === 'cancelled';
7266
+ const row = document.createElement('div');
7267
+ row.className = `ai-chat-action-row ai-chat-action-outcome is-${outcome}`;
7268
+ row.dataset.eventId = event.eventId;
7269
+ row.dataset.eventSequence = String(event.sequence);
7270
+ row.dataset.proposalId = proposalId;
7271
+ const glyph = document.createElement('span');
7272
+ glyph.className = 'ai-chat-action-row-glyph';
7273
+ glyph.setAttribute('aria-hidden', 'true');
7274
+ glyph.textContent = outcome === 'ok' ? '✓' : outcome === 'failed' || outcome === 'fallback' ? '!' : stopped ? '■' : '·';
7275
+ const verb = document.createElement('span');
7276
+ verb.className = 'ai-chat-action-row-verb';
7277
+ verb.textContent = update.state === 'declined' ? 'You chose Not now' : 'You confirmed';
7278
+ const title = document.createElement('span');
7279
+ title.className = 'ai-chat-action-row-title';
7280
+ title.textContent = summary;
7281
+ const said = document.createElement('span');
7282
+ said.className = 'ai-chat-filter-state';
7283
+ said.textContent = resultNote ? 'Done differently' : { done: 'Done', failed: 'Not done', unknown: 'Outcome unknown', declined: 'Nothing ran', cancelled: 'Stopped' }[update.state];
7284
+ row.append(glyph, verb, title, said);
7285
+ const refusal = update.state === 'failed' ? String(update.result?.message || '').trim() : '';
7286
+ const sentence = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}${/[.!?…]$/.test(text) ? '' : '.'}`;
7287
+ const reasonText = update.state === 'unknown' ? 'FloLess restarted while it was running. Check the result before you ask for it again.'
7288
+ : stopped ? 'You stopped it before it finished. Work already sent to the host may remain.'
7289
+ : resultNote || refusal ? sentence(resultNote || refusal) : '';
7290
+ if (reasonText) {
7186
7291
  const reason = document.createElement('span');
7187
7292
  reason.className = 'ai-chat-action-row-reason';
7188
- reason.textContent = String(payload.message);
7293
+ reason.textContent = reasonText;
7189
7294
  row.append(reason);
7190
7295
  }
7191
- row.setAttribute('aria-label', `${verb.textContent}: ${title.textContent}, ${state.textContent.toLowerCase()}${outcome === 'failed' && payload.message ? `. ${payload.message}` : ''}`);
7296
+ row.setAttribute('aria-label', `${verb.textContent}: ${summary}. ${said.textContent}.${reasonText ? ` ${reasonText}` : ''}`);
7192
7297
  return row;
7193
7298
  }
7194
7299
 
@@ -8106,7 +8211,7 @@
8106
8211
  */
8107
8212
  function feedCardSentence(node, kind, mark) {
8108
8213
  const words = String((node.matches('.ai-chat-request-card') ? node.querySelector('p')?.textContent
8109
- : node.getAttribute('aria-label') || node.querySelector('strong, .ai-chat-message-body, p')?.textContent) || node.textContent || '')
8214
+ : node.dataset.foldTitle || node.getAttribute('aria-label') || node.querySelector('strong, .ai-chat-message-body, p')?.textContent) || node.textContent || '')
8110
8215
  .replace(/\s+/g, ' ').trim();
8111
8216
  const cut = (text, max) => (text.length > max ? `${text.slice(0, max).replace(/\s+\S*$/, '').replace(/[\s·,;:.-]+$/, '')}…` : text);
8112
8217
  const title = cut(words, 70);
@@ -11055,13 +11160,21 @@
11055
11160
  if (node) { if (links.length && links[0].turnId !== turnId) flushLinks(); links.push({ turnId, node }); }
11056
11161
  };
11057
11162
  const flushLinks = () => { if (links.length) { ui.feed.append(...receiptFold(links)); links = []; } };
11163
+ // #3416: how a card ended is said after the answer group it arrived during, in the order the cards ended: drawn
11164
+ // before the person's next message, or at the end. An update never starts or ends an answer group itself.
11165
+ let outcomes = [];
11166
+ const flushOutcomes = () => { if (outcomes.length) { ui.feed.append(...outcomes); outcomes = []; } };
11058
11167
  const signInError = errorNeedingSignIn();
11059
11168
  for (const event of state.events) {
11060
11169
  // #2642/#2643: the person's assumption or chosen source is painted on its claim's chip; it never starts or ends an answer group (it has no turn).
11061
11170
  if (event.type === 'citation-assumption' || event.type === 'citation-choice') continue;
11171
+ // #2247: an update to an action card only changes its card (which reads it when it repaints); #3416: once the
11172
+ // conversation has moved past the card, its outcome line is queued (see flushOutcomes).
11173
+ if (event.type === 'action-proposal-update') { const line = renderActionOutcome(event); if (line) outcomes.push(line); continue; }
11062
11174
  // A follow-up can share its provider turn with the preceding answer. Its question still
11063
11175
  // starts a new visible answer group, after that answer's text and held receipts (#2505).
11064
11176
  if (event.type === 'user-message' || (links.length && event.turnId !== links[0].turnId)) { flushAssistant(); flushLinks(); }
11177
+ if (event.type === 'user-message') flushOutcomes();
11065
11178
  if (event.type === 'assistant-message' && event.payload?.delta) {
11066
11179
  // Codex keeps a stable item id while Claude's SDK may assign one per stream packet.
11067
11180
  // Same-turn deltas stay in one visible answer. Tools separate progress paragraphs;
@@ -11107,7 +11220,6 @@
11107
11220
  if (event.type === 'next-move-update') { renderEvent(event); continue; }
11108
11221
  // #2247: an action suggestion or an action the AI ran is held under the answer, like the cards above; an update
11109
11222
  // only changes its card (which reads it when it repaints).
11110
- if (event.type === 'action-proposal-update') continue;
11111
11223
  if (event.type === 'action-proposal' || event.type === 'action-call') { links.push({ turnId: event.turnId, node: feedCard(renderEvent(event), event) }); continue; }
11112
11224
  // #2255: a model view change is written mid-answer while the tool waits, so it is held under the answer too.
11113
11225
  if (event.type === 'view-command') { links.push({ turnId: event.turnId, node: renderEvent(event), event }); continue; }
@@ -11133,6 +11245,7 @@
11133
11245
  }
11134
11246
  flushAssistant();
11135
11247
  flushLinks();
11248
+ flushOutcomes();
11136
11249
  // #2399: an Instructor answer the person keeps talking to offers to continue with tools, under its latest reply.
11137
11250
  const continueRow = renderInstructorContinue();
11138
11251
  if (continueRow) ui.feed.append(continueRow);
@@ -13375,7 +13488,7 @@
13375
13488
  ui.permission.dataset.tip = instructorChat
13376
13489
  ? 'This chat answers an Instructor question, so the AI can’t read files, run commands, search the web or use your connectors. Choose an Access to turn it into an ordinary chat. FloLess asks first.'
13377
13490
  : accessTip(chat);
13378
- // #2234: the Guide's Access is chosen like any conversation's (it starts Read only). Its own controls — the morning
13491
+ // #2234: the Guide's Access is chosen like any conversation's (#3406: it starts on Auto). Its own controls — the morning
13379
13492
  // briefing, set-aside suggestions, Turn off and Delete history — keep their cell, shown only in a Guide conversation.
13380
13493
  const guideChat = chat?.initiator?.kind === 'guide';
13381
13494
  if (ui.guideAccess) ui.guideAccess.hidden = !guideChat;
@@ -18192,7 +18305,7 @@
18192
18305
  });
18193
18306
  document.addEventListener('click', () => queueMicrotask(paintFloLessContext));
18194
18307
  const contextObserver = new MutationObserver(paintFloLessContext);
18195
- for (const id of ['app', 'mode-switch', 'ws-step-tabs', 'dashboard', 'report-modal', 'contract-editor', 'stop-run', 'report-stop']) {
18308
+ for (const id of ['app', 'mode-switch', 'ws-step-tabs', 'report-modal', 'contract-editor', 'stop-run', 'report-stop']) {
18196
18309
  const node = document.getElementById(id);
18197
18310
  if (node) contextObserver.observe(node, { attributes: true, childList: id === 'ws-step-tabs', subtree: id === 'ws-step-tabs' });
18198
18311
  }
@@ -18229,6 +18342,8 @@
18229
18342
  scopeProjectId: () => (state.scope?.owner?.kind === 'project' ? state.scope.owner.projectId : null),
18230
18343
  // #3003: a Knowledge page rendered the way the chat viewers show it, for the Knowledge step's page panel.
18231
18344
  knowledgePageHtml,
18345
+ // #3412: the same escaping renderer, for a connected source's preview on the Knowledge step (no [[links]] there).
18346
+ markdownHtml: (text) => markdownHtml(String(text ?? '')),
18232
18347
  // The Knowledge step's "Ask AI to index" (#2399 slice 0b): the person's own draft in the message box; never sent.
18233
18348
  fillMessageBox: (text) => putInMessageBox(String(text || '')),
18234
18349
  // The New project dialog's AI choice (#1605) words each provider's sign-in the way this
@@ -254,6 +254,29 @@
254
254
  why: 'While a drawing read runs, Flo stands beside the part of the sheet FloLess last showed the AI and says which part it is, how long ago it was shown, and how many sheets the AI has looked at. The progress strip above says what the AI reports it is doing. When the AI has asked you something, Flo moves to the corner and says it is waiting for your answer. It is on until you turn it off, and stays off on this computer. It changes nothing in the filter.',
255
255
  });
256
256
 
257
+ // 2026-11-10 plan (docs/superpowers/specs/2026-11-10-filter-used-lines-overlay-PLAN.md): which lines the model used.
258
+ def('filter.used-lines', {
259
+ label: 'Used lines',
260
+ actsOn: 'Marks the drawing lines the steel model was built from, and the selected lines nothing in the model uses',
261
+ group: 'On the Drawing Filter canvas',
262
+ persistence: 'local',
263
+ interaction: 'instant',
264
+ risk: [],
265
+ guidance: 'on-demand',
266
+ why: 'A line the model was built from gets a solid green mark under it, and a line a callout, a height or another reading came from gets a dashed one. A line the Filter selects that nothing in the model uses gets a dotted amber mark, so you can see what the read has not picked up. The marks sit under the lines, so they read the same on a grey drawing and on one coloured by layer. A count above the button says how many lines on this sheet are used and how many are not. It is on until you turn it off, and stays off on this computer. It changes nothing in the filter or the model.',
267
+ });
268
+
269
+ def('filter.used-only-unused', {
270
+ label: 'Only not used',
271
+ actsOn: 'Shows only the selected lines nothing in the steel model uses',
272
+ group: 'On the Drawing Filter canvas',
273
+ persistence: 'none',
274
+ interaction: 'instant',
275
+ risk: [],
276
+ guidance: 'on-demand',
277
+ why: 'Pressing the "not used" count hides the marks of the lines the model uses and fades the drawing, so only the dotted amber lines stand out. Press it again to see every mark. It lasts for this visit only and changes nothing in the filter or the model.',
278
+ });
279
+
257
280
  def('filter.flo-minimize', {
258
281
  label: 'Minimize Flo',
259
282
  actsOn: 'Tucks Flo into the Show Flo button',