@floless/app 0.168.0 → 0.170.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.
- package/cli-actions.mjs +8 -1
- package/dist/floless-server.cjs +125533 -99597
- package/dist/schemas/drawing-check.profile.v1.schema.json +12 -2
- package/dist/schemas/steel.model.v2.schema.json +2 -1
- package/dist/skills/floless-app-knowledge/SKILL.md +43 -13
- package/dist/skills/floless-app-new-workflow/SKILL.md +8 -1
- package/dist/skills/floless-app-rfi/SKILL.md +4 -2
- package/dist/skills/floless-app-routines/SKILL.md +2 -2
- package/dist/skills/floless-app-routines/references/routines-api.md +20 -8
- package/dist/skills/floless-app-steel-model/SKILL.md +8 -5
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +31 -1
- package/dist/skills/floless-app-workflows/SKILL.md +22 -3
- package/dist/skills/floless-app-workflows/references/agent-steps.md +40 -6
- package/dist/skills/floless-app-workflows/references/exec-contract.md +27 -0
- package/dist/skills/floless-app-workflows/references/script-runner.md +105 -0
- package/dist/templates/college-phase-exporter.flo +7 -2
- package/dist/templates/trimble-list-projects.flo +10 -2
- package/dist/web/agent-steps.js +90 -19
- package/dist/web/agents.js +77 -31
- package/dist/web/app.css +267 -4
- package/dist/web/app.js +71 -7
- package/dist/web/aware-update-client.js +4 -4
- package/dist/web/aware.js +1277 -219
- package/dist/web/chat.css +10 -0
- package/dist/web/chat.js +407 -117
- package/dist/web/checkpoint-standard.js +5 -3
- package/dist/web/commands-drawing-check.js +4 -0
- package/dist/web/commands-shell.js +551 -15
- package/dist/web/commands-steel.js +68 -2
- package/dist/web/commands-vector.js +69 -0
- package/dist/web/drawing-check-editor.html +10 -0
- package/dist/web/drawing-check-editor.js +821 -237
- package/dist/web/failure-copy.js +50 -2
- package/dist/web/filter-ai-proposal.js +11 -8
- package/dist/web/flo-3d.js +310 -0
- package/dist/web/flo-card.js +72 -0
- package/dist/web/guide.js +33 -24
- package/dist/web/index.html +95 -5
- package/dist/web/instructor.js +102 -15
- package/dist/web/left-pane.js +4 -1
- package/dist/web/local-discovery.js +8 -7
- package/dist/web/missed-routines.js +239 -0
- package/dist/web/model-editor-steel-adapter.js +41 -1
- package/dist/web/model-measure.js +6 -0
- package/dist/web/model-spatial-panel.js +19 -4
- package/dist/web/model-spatial-tools.js +3 -3
- package/dist/web/model-viewport-revit-adapter.js +3 -3
- package/dist/web/model-viewport-toolbar.js +11 -0
- package/dist/web/origin-rule.js +155 -0
- package/dist/web/pages.js +17 -14
- package/dist/web/panels.js +1 -1
- package/dist/web/project-access.js +1 -1
- package/dist/web/project-history.js +2 -2
- package/dist/web/project-modules.js +5 -5
- package/dist/web/project-reconciliation.js +1 -1
- package/dist/web/project-rfis.js +8 -3
- package/dist/web/project-workflows.js +8 -6
- package/dist/web/renderers.js +6 -0
- package/dist/web/report-csp.js +68 -0
- package/dist/web/revit-editor.js +22 -8
- package/dist/web/run-history.js +14 -4
- package/dist/web/steel-3d-core.js +39 -9
- package/dist/web/steel-3d-flo.js +331 -0
- package/dist/web/steel-3d-view.js +164 -0
- package/dist/web/steel-ai-marks.js +3 -1
- package/dist/web/steel-editor.html +583 -129
- package/dist/web/steel-environments.js +297 -0
- package/dist/web/steel-filter.html +3 -2
- package/dist/web/steel-model-v2-client-validation.js +8 -1
- package/dist/web/steel-model-v2-commands.js +23 -9
- package/dist/web/steel-model-v2-projection.js +1 -1
- package/dist/web/step-rename.js +3 -2
- package/dist/web/terminal-requests.js +79 -1
- package/dist/web/tool-updates.js +9 -7
- package/dist/web/vector-3d.html +1 -1
- package/dist/web/vector-editor.html +50 -8
- package/dist/web/workspace-root-management.js +1 -1
- package/dist/web/workspaces.js +2334 -253
- package/launch.mjs +5 -0
- package/package.json +11 -8
package/dist/web/guide.js
CHANGED
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
await globalThis.flolessStartupAdmission?.admit('/api/chat/session');
|
|
74
74
|
response = await fetch('/api/chat/session', { credentials: 'same-origin' });
|
|
75
75
|
}
|
|
76
|
-
catch { throw new Error('FloLess could not be reached. Make sure it is still running, then try again.'); }
|
|
77
|
-
if (!response.ok) throw new Error('FloLess could not open AI Chat’s session, so the Guide could not load. Reload FloLess and try again.');
|
|
76
|
+
catch { throw Object.assign(new Error('FloLess could not be reached. Make sure it is still running, then try again.'), { forPerson: true }); }
|
|
77
|
+
if (!response.ok) throw Object.assign(new Error('FloLess could not open AI Chat’s session, so the Guide could not load. Reload FloLess and try again.'), { forPerson: true });
|
|
78
78
|
state.sessionReady = true;
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
let response;
|
|
88
88
|
try { response = await fetch(path, init); }
|
|
89
89
|
catch (error) {
|
|
90
|
-
throw new Error(error?.name === 'TimeoutError'
|
|
90
|
+
throw Object.assign(new Error(error?.name === 'TimeoutError'
|
|
91
91
|
? 'FloLess took too long to answer, most likely because it is busy. Try again in a moment.'
|
|
92
|
-
: 'FloLess could not be reached. Make sure it is still running, then try again.');
|
|
92
|
+
: 'FloLess could not be reached. Make sure it is still running, then try again.'), { forPerson: true });
|
|
93
93
|
}
|
|
94
94
|
let data = null;
|
|
95
95
|
try { data = await response.json(); } catch { data = null; }
|
|
@@ -98,8 +98,11 @@
|
|
|
98
98
|
return api(path, body, true);
|
|
99
99
|
}
|
|
100
100
|
if (!response.ok) {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
// #3097 3b: the reply rides on the error (an answer that was not FloLess's JSON marked unreadable), so errorText
|
|
102
|
+
// works the sentence out again from it rather than trusting this message.
|
|
103
|
+
const reply = data && typeof data === 'object' ? data : { code: 'response-unreadable' };
|
|
104
|
+
const failure = new Error(personText(reply) || failureCopy({ status: response.status, body: reply }, { action: 'do that', retrySafe: !body }).text);
|
|
105
|
+
failure.code = data?.code || null; failure.body = reply; failure.status = response.status;
|
|
103
106
|
throw failure;
|
|
104
107
|
}
|
|
105
108
|
return data;
|
|
@@ -140,7 +143,7 @@
|
|
|
140
143
|
await chat.openConversation(chatId, { owner: { kind: 'workspace' } });
|
|
141
144
|
return true;
|
|
142
145
|
} catch (error) {
|
|
143
|
-
toast(error
|
|
146
|
+
toast(errorText(error, { action: 'open the Guide conversation', retrySafe: true }), 'warn');
|
|
144
147
|
return false;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
@@ -153,7 +156,7 @@
|
|
|
153
156
|
state.returnFocus = options.returnFocus || (document.activeElement instanceof HTMLElement ? document.activeElement : null);
|
|
154
157
|
let status;
|
|
155
158
|
try { status = await loadStatus(); }
|
|
156
|
-
catch (error) { toast(error
|
|
159
|
+
catch (error) { toast(errorText(error, { action: 'open the Guide', retrySafe: true }), 'warn'); return; }
|
|
157
160
|
if (!status.signedIn) { toast('Sign in to FloLess first. The Guide belongs to your FloLess account, so it starts once you are signed in.', 'warn'); return; }
|
|
158
161
|
if (status.consent?.choice === 'on' && status.activeChatId) { await openGuideChat(status.activeChatId); return; }
|
|
159
162
|
await showModal(status.consent?.choice === 'on' ? 'start' : 'consent');
|
|
@@ -461,7 +464,9 @@
|
|
|
461
464
|
if (seq !== state.lookSeq) return false;
|
|
462
465
|
// Pressed Turn on and the look failed: say what that means for the Guide, not only what went wrong.
|
|
463
466
|
const off = because === 'turning-on' && state.mode === 'consent' ? ' The Guide is still off. Try again, or turn it on later from ≡ → Guide.' : '';
|
|
464
|
-
|
|
467
|
+
// The server's own reason keeps its lead; anything else is the shared sentence, which leads with it already.
|
|
468
|
+
const reason = personText(error?.body);
|
|
469
|
+
state.previewError = `${reason ? `FloLess couldn’t look at this computer: ${reason}` : errorText(error, { action: 'look at this computer', retrySafe: true })}${off}`;
|
|
465
470
|
}
|
|
466
471
|
if ($modal.classList.contains('show')) paint();
|
|
467
472
|
return landed;
|
|
@@ -527,7 +532,7 @@
|
|
|
527
532
|
closeModal();
|
|
528
533
|
if (!asking) return;
|
|
529
534
|
try { await api('/api/chat/guide/consent', { choice: 'not-now', share: state.share }); }
|
|
530
|
-
catch (error) { toast(error.
|
|
535
|
+
catch (error) { toast(errorText(error, { action: 'save your Not now', unsure: 'The Guide may ask again next time.' }), 'warn'); }
|
|
531
536
|
}
|
|
532
537
|
|
|
533
538
|
async function chooseFolder() {
|
|
@@ -538,7 +543,7 @@
|
|
|
538
543
|
const until = Date.now() + 10 * 60 * 1000;
|
|
539
544
|
while (Date.now() < until && document.querySelector('.modal-backdrop.show')) await new Promise((resolve) => setTimeout(resolve, 500));
|
|
540
545
|
try { await loadStatus(); }
|
|
541
|
-
catch (error) { toast(
|
|
546
|
+
catch (error) { toast(`${errorText(error, { action: 'continue to the Guide', retrySafe: true })} Open it again from ≡ → Guide.`, 'warn'); return; }
|
|
542
547
|
if (state.status?.workspace) await showModal('consent');
|
|
543
548
|
}
|
|
544
549
|
|
|
@@ -580,7 +585,7 @@
|
|
|
580
585
|
if (briefing && !briefed) {
|
|
581
586
|
// The Guide was already on: the briefing is its own step. A failure here never stops the Guide starting.
|
|
582
587
|
try { const answer = await api('/api/chat/guide/briefing', { on: true, provider: state.provider, time: '08:00', days: 'weekdays' }); setBriefing(answer.briefing); }
|
|
583
|
-
catch (error) { toast(`The Guide is starting, but the morning briefing wasn’t turned on
|
|
588
|
+
catch (error) { toast(`The Guide is starting, but the morning briefing wasn’t turned on. ${errorText(error, { action: 'turn on the morning briefing', unsure: 'Check ≡ → Guide to see whether it is on.' })}`, 'warn'); }
|
|
584
589
|
}
|
|
585
590
|
if (closed()) {
|
|
586
591
|
// Closed while the Guide was being turned on: it is on, but nothing more happens until the person opens it.
|
|
@@ -607,7 +612,7 @@
|
|
|
607
612
|
if (error.body.preview.share) state.share = { ...error.body.preview.share };
|
|
608
613
|
state.banner = 'Something changed since you looked (or it’s been a while), so here is a fresh preview. Check it, then press Start the Guide.';
|
|
609
614
|
} else {
|
|
610
|
-
state.banner = error.
|
|
615
|
+
state.banner = errorText(error, { action: 'start the Guide', unsure: 'Check ≡ → Guide to see whether it started.' });
|
|
611
616
|
}
|
|
612
617
|
state.busy = false;
|
|
613
618
|
paint();
|
|
@@ -631,7 +636,7 @@
|
|
|
631
636
|
}
|
|
632
637
|
await loadStatus().catch(() => null);
|
|
633
638
|
return true;
|
|
634
|
-
} catch (error) { toast(error.
|
|
639
|
+
} catch (error) { toast(errorText(error, { action: 'turn off the Guide', unsure: 'Check ≡ → Guide to see whether it is off.' }), 'warn'); return false; }
|
|
635
640
|
}
|
|
636
641
|
|
|
637
642
|
async function deleteHistory() {
|
|
@@ -646,7 +651,7 @@
|
|
|
646
651
|
}
|
|
647
652
|
await window.flolessChat?.refreshScope?.(true);
|
|
648
653
|
return true;
|
|
649
|
-
} catch (error) { toast(error.
|
|
654
|
+
} catch (error) { toast(errorText(error, { action: 'delete the Guide history', unsure: 'Check AI Chat to see what is left before deleting again.' }), 'warn'); return false; }
|
|
650
655
|
}
|
|
651
656
|
|
|
652
657
|
function confirmDelete() {
|
|
@@ -848,7 +853,7 @@
|
|
|
848
853
|
toast(`The Guide may suggest “${text.title}” again.`, 'info');
|
|
849
854
|
const nextButton = nextKey ? [...host.querySelectorAll('li')].find((li) => li.dataset.key === nextKey)?.querySelector('button') : null;
|
|
850
855
|
nextButton?.focus();
|
|
851
|
-
} catch (error) { back.disabled = false; toast(error.
|
|
856
|
+
} catch (error) { back.disabled = false; toast(errorText(error, { action: 'bring that suggestion back', unsure: 'Check the list before trying again.' }), 'warn'); }
|
|
852
857
|
});
|
|
853
858
|
item.dataset.key = row.key;
|
|
854
859
|
item.append(el('span', '', text.title), back);
|
|
@@ -898,7 +903,7 @@
|
|
|
898
903
|
else await ws?.setMode?.('workflows');
|
|
899
904
|
// Leaving a project can be declined (unsaved work): say so instead of seeming to do nothing.
|
|
900
905
|
if (!shown) status.textContent = 'You stayed in the project you have open, so the list was not shown.';
|
|
901
|
-
} catch (error) { status.textContent = error
|
|
906
|
+
} catch (error) { status.textContent = errorText(error, { action: 'show that list', retrySafe: true }); }
|
|
902
907
|
finally { button.disabled = false; }
|
|
903
908
|
});
|
|
904
909
|
recoverRow.append(button);
|
|
@@ -929,7 +934,7 @@
|
|
|
929
934
|
pending = { commandId: 'shell.guide-move-undo', label: 'Undo' };
|
|
930
935
|
undo.disabled = true; status.textContent = '';
|
|
931
936
|
try { await moveAside(move, false, moveKey); }
|
|
932
|
-
catch (error) { status.textContent = error.
|
|
937
|
+
catch (error) { status.textContent = errorText(error, { action: 'show this suggestion again', unsure: 'Check the card before trying again.' }); }
|
|
933
938
|
finally { pending = null; paintCard(); }
|
|
934
939
|
});
|
|
935
940
|
line.append(el('span', '', `Not now: ${text.title}`), undo);
|
|
@@ -985,7 +990,7 @@
|
|
|
985
990
|
if (!opened) status.textContent = 'FloLess couldn’t open that from here. Open it from the ≡ menu instead.';
|
|
986
991
|
else if (opened.said) status.textContent = opened.said;
|
|
987
992
|
} catch (error) {
|
|
988
|
-
status.textContent = error
|
|
993
|
+
status.textContent = errorText(error, { action: 'open that', retrySafe: true });
|
|
989
994
|
} finally {
|
|
990
995
|
go.disabled = false; go.removeAttribute('aria-busy'); go.textContent = text.action;
|
|
991
996
|
// Disabled while checking, the button dropped focus to the page; when nothing opened and the card is still shown,
|
|
@@ -1005,7 +1010,7 @@
|
|
|
1005
1010
|
if (answer?.key) { moveKey = answer.key; paintCard(); }
|
|
1006
1011
|
} catch (error) {
|
|
1007
1012
|
later.disabled = false;
|
|
1008
|
-
status.textContent = error.
|
|
1013
|
+
status.textContent = errorText(error, { action: 'set this suggestion aside', unsure: 'Check the card before trying again.' });
|
|
1009
1014
|
}
|
|
1010
1015
|
});
|
|
1011
1016
|
actions.append(go, later);
|
|
@@ -1049,8 +1054,12 @@
|
|
|
1049
1054
|
paintCard();
|
|
1050
1055
|
};
|
|
1051
1056
|
// The failed card already shows why; the line under the buttons says only what that card does not.
|
|
1052
|
-
const say = (error) => {
|
|
1053
|
-
|
|
1057
|
+
const say = (error) => {
|
|
1058
|
+
const said = errorText(error, { action: 'do that', unsure: 'Check the card before trying again.' });
|
|
1059
|
+
const shown = moveUpdates.get(moveId)?.reason;
|
|
1060
|
+
if (shown !== said && shown !== error?.message) status.textContent = said;
|
|
1061
|
+
};
|
|
1062
|
+
const missing = () => Object.assign(new Error('FloLess is still starting. Try again in a moment.'), { forPerson: true });
|
|
1054
1063
|
const build = async (node, label, busyLabel = 'Starting…', reopen = false) => {
|
|
1055
1064
|
busy(node, busyLabel);
|
|
1056
1065
|
try {
|
|
@@ -1129,7 +1138,7 @@
|
|
|
1129
1138
|
try {
|
|
1130
1139
|
const answer = await moveAside(move, true);
|
|
1131
1140
|
if (answer?.key) moveKey = answer.key;
|
|
1132
|
-
} catch (error) { status.textContent = error.
|
|
1141
|
+
} catch (error) { status.textContent = errorText(error, { action: 'set this suggestion aside', unsure: 'Check the card before trying again.' }); }
|
|
1133
1142
|
finally { done(); }
|
|
1134
1143
|
});
|
|
1135
1144
|
// Build it has no confirm step, so this note is the whole warning: Build it points a screen reader at it.
|
|
@@ -1240,7 +1249,7 @@
|
|
|
1240
1249
|
return answer;
|
|
1241
1250
|
} catch (error) {
|
|
1242
1251
|
if (error.body && 'briefing' in error.body) setBriefing(error.body.briefing);
|
|
1243
|
-
toast(error.
|
|
1252
|
+
toast(errorText(error, { action: 'change the morning briefing', unsure: 'Check its settings before trying again.' }), 'warn');
|
|
1244
1253
|
return null;
|
|
1245
1254
|
} finally {
|
|
1246
1255
|
briefingBusy = false;
|
package/dist/web/index.html
CHANGED
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
<!-- Workflow update (one click, owner ruling 2026-11-02): what is new in the open workflow (#wf-update-changelog),
|
|
733
733
|
the same row the status-bar dialog shows (#wf-update-row: where it stands, the warning when the person changed
|
|
734
734
|
it), and one button that does the next thing: Update, then Undo (or Approve model for a Steel Model). -->
|
|
735
|
-
<div class="modal-backdrop" id="wf-update-modal">
|
|
735
|
+
<div class="modal-backdrop" id="wf-update-modal" role="dialog" aria-modal="true" aria-labelledby="wf-update-title" aria-describedby="wf-update-sub">
|
|
736
736
|
<div class="modal">
|
|
737
737
|
<div class="modal-title" id="wf-update-title">Workflow update</div>
|
|
738
738
|
<div class="modal-sub" id="wf-update-sub"></div>
|
|
@@ -833,6 +833,23 @@
|
|
|
833
833
|
</div>
|
|
834
834
|
</div>
|
|
835
835
|
|
|
836
|
+
<!-- #2732: an export past the archive bounds (files, folders, depth, time). Nothing is exported until the person chooses:
|
|
837
|
+
leave the offered folder out (the archive notes it) or export everything anyway. Painted by askExportOversize
|
|
838
|
+
(web/workspaces.js) from the server's facts. -->
|
|
839
|
+
<div class="modal-backdrop" id="export-oversize-modal" role="dialog" aria-modal="true" aria-labelledby="xo-title" aria-describedby="xo-sub">
|
|
840
|
+
<div class="modal ac-dialog xo-dialog">
|
|
841
|
+
<div class="modal-title" id="xo-title" tabindex="-1">Too many files for one archive</div>
|
|
842
|
+
<div class="modal-sub" id="xo-sub"></div>
|
|
843
|
+
<ul class="xo-choices" id="xo-choices"></ul>
|
|
844
|
+
<div class="xo-left-out" id="xo-left-out" hidden></div>
|
|
845
|
+
<div class="modal-actions">
|
|
846
|
+
<button data-command-id="shell.dialog-cancel#exporting the project" id="xo-cancel">Cancel</button>
|
|
847
|
+
<button data-command-id="shell.project-export-everything" id="xo-everything">Export everything</button>
|
|
848
|
+
<button data-command-id="shell.project-export-leave-out" id="xo-leave-out" class="primary">Leave this folder out</button>
|
|
849
|
+
</div>
|
|
850
|
+
</div>
|
|
851
|
+
</div>
|
|
852
|
+
|
|
836
853
|
<!-- AWARE runtime + installed-host-bridge upgrade. One dedicated surface is
|
|
837
854
|
shared by the footer pill and Workspaces recovery actions. Progress comes
|
|
838
855
|
from the server transaction; this UI never infers installer completion. -->
|
|
@@ -1345,6 +1362,8 @@
|
|
|
1345
1362
|
<!-- #2476: what the run viewer says about a report that carries files while its Page version is being saved (or why it
|
|
1346
1363
|
cannot be shown). Plain words, a polite live region; hidden when there is nothing to say. -->
|
|
1347
1364
|
<div class="report-files-note" id="report-files-note" role="status" aria-live="polite" hidden></div>
|
|
1365
|
+
<!-- #3229: the report was made before the run stopped at an AI step's check. Filled with textContent by aware.js. -->
|
|
1366
|
+
<div class="report-ai-stop" id="report-ai-stop" role="status" hidden></div>
|
|
1348
1367
|
<div class="report-stage" id="report-stage">
|
|
1349
1368
|
<!-- sandbox flags, each load-bearing:
|
|
1350
1369
|
• allow-same-origin — REQUIRED. Without it the srcdoc document gets an
|
|
@@ -1450,6 +1469,10 @@
|
|
|
1450
1469
|
<span class="project-setup-standard-label" data-standard-label="UK">UK · BS/EN</span>
|
|
1451
1470
|
<span>BS EN sections · S355</span>
|
|
1452
1471
|
</button>
|
|
1472
|
+
<button type="button" data-environment="EU" data-command-id="shell.project-standard#EU" aria-pressed="false">
|
|
1473
|
+
<span class="project-setup-standard-label" data-standard-label="EU">EU · EN</span>
|
|
1474
|
+
<span>EN sections · S355</span>
|
|
1475
|
+
</button>
|
|
1453
1476
|
</div>
|
|
1454
1477
|
<div class="project-setup-note">The standard is fixed for this project. Display units can be changed later.</div>
|
|
1455
1478
|
</fieldset>
|
|
@@ -1501,6 +1524,24 @@
|
|
|
1501
1524
|
</div>
|
|
1502
1525
|
</div>
|
|
1503
1526
|
</div>
|
|
1527
|
+
<!-- #2909 (owner ruling 2026-11-08): who chooses the model origin in a Quick build. Shown only with Quick; Precise
|
|
1528
|
+
always asks the origin on the read's setup card, so with Precise it is hidden and nothing is sent. The AI's
|
|
1529
|
+
choice is the default. -->
|
|
1530
|
+
<div class="project-setup-filter project-setup-origin" id="project-setup-origin" role="group"
|
|
1531
|
+
aria-labelledby="project-setup-origin-label" aria-describedby="project-setup-origin-explain" hidden>
|
|
1532
|
+
<strong class="project-setup-label" id="project-setup-origin-label">Model origin</strong>
|
|
1533
|
+
<p id="project-setup-origin-explain">The model origin is the grid intersection every position in the model is measured from. If the AI chooses it, it uses the bottom-left grid intersection when every plan view is upright and the grid is straight. Otherwise it picks one and records why. Its choice is labelled as the AI's. If you choose it, your answer is recorded as yours.</p>
|
|
1534
|
+
<div class="project-setup-standard-options">
|
|
1535
|
+
<button type="button" data-origin-choice="ai" data-command-id="shell.project-origin-choice#Let the AI choose" aria-pressed="true">
|
|
1536
|
+
<span class="project-setup-standard-label">Let the AI choose</span>
|
|
1537
|
+
<span>Bottom-left where the grid allows; the read does not stop</span>
|
|
1538
|
+
</button>
|
|
1539
|
+
<button type="button" data-origin-choice="person" data-command-id="shell.project-origin-choice#I'll choose it myself" aria-pressed="false">
|
|
1540
|
+
<span class="project-setup-standard-label">I'll choose it myself</span>
|
|
1541
|
+
<span>The read asks you on its setup card and carries on with work that does not depend on it</span>
|
|
1542
|
+
</button>
|
|
1543
|
+
</div>
|
|
1544
|
+
</div>
|
|
1504
1545
|
<div class="project-setup-quick-terms" id="project-setup-quick-terms" role="group" aria-label="Quick model terms" aria-live="polite" hidden>
|
|
1505
1546
|
<strong>Before you create a Quick model</strong>
|
|
1506
1547
|
<p>The AI answers this read's drawing questions itself instead of asking you, and files an RFI, marked as its own, only for a question it cannot settle; nothing is sent to anyone. It records every decision it makes, so you can review them afterwards, and the model is labelled as a Quick model. <span id="project-setup-quick-terms-tail">The AI never approves anything: you still decide on the Drawing Filter and on the review.</span></p>
|
|
@@ -1583,6 +1624,7 @@
|
|
|
1583
1624
|
<section id="company-knowledge-confirm" class="company-knowledge-confirm" role="status" aria-live="polite" hidden></section>
|
|
1584
1625
|
</div>
|
|
1585
1626
|
<div class="company-knowledge-error" id="company-knowledge-error" role="alert" aria-live="assertive" hidden></div>
|
|
1627
|
+
<div class="company-knowledge-status" id="company-knowledge-status" role="status" aria-live="polite" hidden></div>
|
|
1586
1628
|
<div class="modal-actions">
|
|
1587
1629
|
<button type="button" id="company-knowledge-cancel" data-command-id="shell.dialog-cancel#company knowledge">Close</button>
|
|
1588
1630
|
<button type="button" id="company-knowledge-action" class="primary" data-command-id="shell.company-publish" hidden></button>
|
|
@@ -1625,6 +1667,28 @@
|
|
|
1625
1667
|
</div>
|
|
1626
1668
|
</div>
|
|
1627
1669
|
|
|
1670
|
+
<!-- #3312: profile mapping before a CAD send. Bespoke rather than #form-modal (which renders a flat field list):
|
|
1671
|
+
the rows carry a suggestion with a confidence, a searchable picker of the destination's own profile names
|
|
1672
|
+
and a caution that depends on the choice. Same backdrop and .modal chrome as the revision review. -->
|
|
1673
|
+
<div class="modal-backdrop" id="profilemap-modal" role="dialog" aria-modal="true" aria-labelledby="profilemap-title" aria-describedby="profilemap-sub profilemap-source">
|
|
1674
|
+
<div class="modal revreview profilemap" tabindex="-1">
|
|
1675
|
+
<div class="modal-title" id="profilemap-title">Profiles Tekla does not have</div>
|
|
1676
|
+
<div class="modal-sub" id="profilemap-sub"></div>
|
|
1677
|
+
<div class="pm-source" id="profilemap-source" role="status" aria-live="polite"></div>
|
|
1678
|
+
<div class="pm-tools" id="profilemap-tools">
|
|
1679
|
+
<div class="pm-sources" id="profilemap-sources" role="group" aria-label="Check the profiles against" hidden></div>
|
|
1680
|
+
<button type="button" id="profilemap-import" data-command-id="shell.profile-map-import">Import a Tekla catalogue…</button>
|
|
1681
|
+
<input type="file" id="profilemap-file" accept=".profilecatalog,.lis" hidden tabindex="-1" aria-hidden="true" data-command-id="shell.profile-map-import">
|
|
1682
|
+
</div>
|
|
1683
|
+
<div class="revreview-body pm-body" id="profilemap-body" tabindex="0" role="region" aria-label="Profiles to map" data-command-id="shell.profile-map-table"></div>
|
|
1684
|
+
<div class="pm-note" id="profilemap-note"></div>
|
|
1685
|
+
<div class="modal-actions">
|
|
1686
|
+
<button type="button" id="profilemap-cancel" data-command-id="shell.dialog-cancel#the profile check">Cancel</button>
|
|
1687
|
+
<button type="button" id="profilemap-apply" class="primary" data-command-id="shell.profile-map-apply">Apply and continue</button>
|
|
1688
|
+
</div>
|
|
1689
|
+
</div>
|
|
1690
|
+
</div>
|
|
1691
|
+
|
|
1628
1692
|
<!-- Approval is a mandatory review, never a one-click mutation. The server supplies every group
|
|
1629
1693
|
and all plain-English copy; this surface only records an explicit decision for each group. -->
|
|
1630
1694
|
<div class="modal-backdrop" id="approval-review-modal" role="dialog" aria-modal="true" aria-labelledby="approval-review-title" aria-describedby="approval-review-sub approval-review-impact">
|
|
@@ -1744,7 +1808,8 @@
|
|
|
1744
1808
|
</div>
|
|
1745
1809
|
</div>
|
|
1746
1810
|
|
|
1747
|
-
<div class="modal-backdrop" id="add-fav-modal"
|
|
1811
|
+
<div class="modal-backdrop" id="add-fav-modal" role="dialog" aria-modal="true"
|
|
1812
|
+
aria-labelledby="add-fav-title" aria-describedby="add-fav-sub">
|
|
1748
1813
|
<div class="modal">
|
|
1749
1814
|
<div class="modal-title" id="add-fav-title">Save as Template</div>
|
|
1750
1815
|
<div class="modal-sub" id="add-fav-sub">Save this node as a reusable Template — usable in any workflow.</div>
|
|
@@ -1827,6 +1892,24 @@
|
|
|
1827
1892
|
</div>
|
|
1828
1893
|
</div>
|
|
1829
1894
|
|
|
1895
|
+
<!-- #3301: Disconnect a service, asked above Integrations (after it in the page, so it stacks on top). Names the
|
|
1896
|
+
service and account and what stops working; Cancel holds focus. A failure stays here with Try again and the
|
|
1897
|
+
terminal command as a last resort. Filled and driven by confirmIntegrationDisconnect() in web/aware.js. -->
|
|
1898
|
+
<div class="modal-backdrop" id="int-disconnect-modal" role="alertdialog" aria-modal="true"
|
|
1899
|
+
aria-labelledby="int-disconnect-title" aria-describedby="int-disconnect-sub">
|
|
1900
|
+
<div class="modal int-disconnect" tabindex="-1">
|
|
1901
|
+
<div class="modal-title" id="int-disconnect-title">Disconnect?</div>
|
|
1902
|
+
<div class="modal-sub" id="int-disconnect-sub"></div>
|
|
1903
|
+
<div class="int-notice is-warn" id="int-disconnect-google" role="note" hidden>Google sign-in is shared by the whole computer, so this signs every FloLess on this computer out of Google.</div>
|
|
1904
|
+
<div class="int-disconnect-error" id="int-disconnect-error" role="alert"></div>
|
|
1905
|
+
<div class="modal-actions">
|
|
1906
|
+
<button type="button" data-command-id="shell.integrations-disconnect-copy-command" id="int-disconnect-copy" hidden>Copy command</button>
|
|
1907
|
+
<button type="button" data-command-id="shell.dialog-cancel#disconnecting a service" id="int-disconnect-cancel">Cancel</button>
|
|
1908
|
+
<button type="button" data-command-id="shell.integrations-disconnect-confirm#the service" id="int-disconnect-ok" class="danger">Disconnect</button>
|
|
1909
|
+
</div>
|
|
1910
|
+
</div>
|
|
1911
|
+
</div>
|
|
1912
|
+
|
|
1830
1913
|
<div class="modal-backdrop" id="workspace-root-modal" role="dialog" aria-modal="true"
|
|
1831
1914
|
aria-labelledby="workspace-root-title" aria-describedby="workspace-root-sub workspace-root-status">
|
|
1832
1915
|
<div class="modal workspace-root-modal" tabindex="-1">
|
|
@@ -1931,7 +2014,9 @@
|
|
|
1931
2014
|
<div class="modal-title">Routines</div>
|
|
1932
2015
|
<div class="modal-sub">Run a workflow automatically — on a schedule, or on a live trigger (e.g. whenever your model changes) — exactly like clicking ▶ Run workflow. Or start an agent on a schedule: nobody watches that run, so anything that would ask you is declined and listed for you on the Agents page.</div>
|
|
1933
2016
|
<!-- #2062: never read as always-on. The link shows only where the start-on-login setting exists (app.js). -->
|
|
1934
|
-
<p class="rtn-local-note" id="rtn-local-note">Routines run only while FloLess is running on this computer. A run that falls while it is closed is noted as missed, and
|
|
2017
|
+
<p class="rtn-local-note" id="rtn-local-note">Routines run only while FloLess is running on this computer. A run that falls while it is closed is noted as missed, and FloLess asks you once whether to run it when it starts again. <button type="button" class="rtn-link" id="rtn-startup-link" data-start-on-login-link data-command-id="shell.routines-start-on-login" data-tip="Closes Routines and shows the Start with Windows switch in the menu" hidden>Start FloLess when you sign in…</button></p>
|
|
2018
|
+
<!-- Owner ruling 2026-11-06: what still waits on the missed-runs card (missed-routines.js); Review shows it again. -->
|
|
2019
|
+
<p class="rtn-missed-note" id="rtn-missed-note" role="status" hidden><span id="rtn-missed-text"></span> <button type="button" class="rtn-link" id="rtn-missed-review" data-command-id="shell.missed-routines-review" data-tip="Closes Routines and shows the card that asks whether to run them now">Review…</button></p>
|
|
1935
2020
|
<div class="rtn-quota" id="rtn-quota"></div>
|
|
1936
2021
|
<div class="routines-list" id="routines-list"></div>
|
|
1937
2022
|
<div class="modal-actions">
|
|
@@ -1961,6 +2046,7 @@
|
|
|
1961
2046
|
<div class="modal-field" id="rtn-workflow-field">
|
|
1962
2047
|
<label for="rtn-workflow">Workflow</label>
|
|
1963
2048
|
<select data-command-id="shell.routine-workflow" id="rtn-workflow"></select>
|
|
2049
|
+
<div class="rtn-cron-hint" id="rtn-workflow-unnamed" role="status" hidden>FloLess couldn’t read the names of your own workflows just now, so they aren’t in this list. Close this and open it again in a moment.</div>
|
|
1964
2050
|
</div>
|
|
1965
2051
|
<div class="modal-field" id="rtn-agent-field" hidden>
|
|
1966
2052
|
<label for="rtn-agent">Agent</label>
|
|
@@ -2191,10 +2277,10 @@
|
|
|
2191
2277
|
</div>
|
|
2192
2278
|
<!-- Bake into agent — preview + confirm. Packages the workflow as a reusable
|
|
2193
2279
|
agent (exposes-as-agent) and reinstalls so AWARE synthesizes it. -->
|
|
2194
|
-
<div class="modal-backdrop" id="bake-modal">
|
|
2280
|
+
<div class="modal-backdrop" id="bake-modal" role="dialog" aria-modal="true" aria-labelledby="bake-title" aria-describedby="bake-sub">
|
|
2195
2281
|
<div class="modal">
|
|
2196
2282
|
<div class="modal-title" id="bake-title">Bake into tool</div>
|
|
2197
|
-
<div class="modal-sub">Packages this workflow as a reusable tool. AWARE reinstalls it with an exposed interface, then it appears in the Tools library as a single callable node.</div>
|
|
2283
|
+
<div class="modal-sub" id="bake-sub">Packages this workflow as a reusable tool. AWARE reinstalls it with an exposed interface, then it appears in the Tools library as a single callable node.</div>
|
|
2198
2284
|
<div id="bake-body">
|
|
2199
2285
|
<div class="modal-field">
|
|
2200
2286
|
<label>Tool name</label>
|
|
@@ -2214,6 +2300,8 @@
|
|
|
2214
2300
|
<!-- Project picker + lifecycle. The FULL lifecycle set lives HERE and only here — ≡ carries
|
|
2215
2301
|
nothing project-specific (spec §2). Populated per-open in workspaces.js. -->
|
|
2216
2302
|
<div class="menu ws-proj-menu" id="ws-proj-menu" role="menu" hidden></div>
|
|
2303
|
+
<!-- Workflow card ⋯ menu on the Workflows page (Rename… / Duplicate / Archive). Populated per-open in aware.js. -->
|
|
2304
|
+
<div class="menu wf-card-menu" id="wf-card-menu" role="menu" hidden></div>
|
|
2217
2305
|
|
|
2218
2306
|
<script src="startup-admission.js"></script>
|
|
2219
2307
|
<script src="shared-prefs.js"></script>
|
|
@@ -2239,6 +2327,7 @@
|
|
|
2239
2327
|
<script src="agent-steps.js"></script>
|
|
2240
2328
|
<script src="step-rename.js"></script>
|
|
2241
2329
|
<script src="run-page-view.js"></script>
|
|
2330
|
+
<script src="report-csp.js"></script>
|
|
2242
2331
|
<script src="aware.js"></script>
|
|
2243
2332
|
<script src="tool-updates.js"></script>
|
|
2244
2333
|
<script src="panels.js"></script>
|
|
@@ -2252,6 +2341,7 @@
|
|
|
2252
2341
|
<script src="terminal-requests.js"></script>
|
|
2253
2342
|
<script src="agents.js"></script>
|
|
2254
2343
|
<script src="project-access.js"></script>
|
|
2344
|
+
<script src="missed-routines.js"></script>
|
|
2255
2345
|
<script src="pages.js"></script>
|
|
2256
2346
|
<script src="run-history.js"></script>
|
|
2257
2347
|
<script src="project-workflows.js"></script>
|
package/dist/web/instructor.js
CHANGED
|
@@ -137,6 +137,13 @@
|
|
|
137
137
|
chip = 'Locked';
|
|
138
138
|
parts.push(wf.name);
|
|
139
139
|
parts.push(wf.reason || 'is part of a module this account’s plan does not include');
|
|
140
|
+
} else if (wf.awareTooOld && wf.runState !== 'draft') {
|
|
141
|
+
// #3234: steps that run inside AWARE need a newer AWARE. Compile, a reinstall and a run all wait on that.
|
|
142
|
+
tone = 'blocked';
|
|
143
|
+
chip = 'Needs AWARE';
|
|
144
|
+
parts.push(wf.name);
|
|
145
|
+
parts.push('needs AWARE ' + wf.awareTooOld.minimum + ' or newer');
|
|
146
|
+
parts.push('Upgrade AWARE, then Compile');
|
|
140
147
|
} else if (wf.runState === 'drift') {
|
|
141
148
|
tone = 'blocked';
|
|
142
149
|
chip = 'Run blocked';
|
|
@@ -617,7 +624,7 @@
|
|
|
617
624
|
var origin = el && el.ownerDocument === document
|
|
618
625
|
? (snapshot.workspace ? 'workspaces' : 'shell')
|
|
619
626
|
: activeSurface();
|
|
620
|
-
if (!setFocusEntry(f, origin)) return false;
|
|
627
|
+
if (!setFocusEntry(f, origin, el)) return false;
|
|
621
628
|
if (collapsed) setCollapsed(false);
|
|
622
629
|
publishGraftGuidance(paint());
|
|
623
630
|
return true;
|
|
@@ -631,7 +638,7 @@
|
|
|
631
638
|
var origin = el.ownerDocument === document
|
|
632
639
|
? (snapshot.workspace ? 'workspaces' : 'shell')
|
|
633
640
|
: activeSurface();
|
|
634
|
-
if (!setFocusEntry(focusFor(el), origin)) return false;
|
|
641
|
+
if (!setFocusEntry(focusFor(el), origin, el)) return false;
|
|
635
642
|
publishGraftGuidance(paint());
|
|
636
643
|
return true;
|
|
637
644
|
}
|
|
@@ -651,7 +658,7 @@
|
|
|
651
658
|
* nobody cleared this. Worse, "Not available right now" is read off the real
|
|
652
659
|
* element at capture time, so it silently became a fact about a dead document.
|
|
653
660
|
*/
|
|
654
|
-
function setFocusEntry(f, origin) {
|
|
661
|
+
function setFocusEntry(f, origin, el) {
|
|
655
662
|
if (!f) return false;
|
|
656
663
|
/* The ORIGIN IS PASSED IN, never guessed from activeSurface(). The two differ:
|
|
657
664
|
the contract-editor overlay covers the shell without unmounting it, so while a
|
|
@@ -663,15 +670,93 @@
|
|
|
663
670
|
nothing better, which is explain()'s hover/focus path — where a child overlay
|
|
664
671
|
means the pointer cannot be on a shell control anyway. */
|
|
665
672
|
f.originSurface = origin || 'shell';
|
|
673
|
+
f.carrier = carrierOf(el);
|
|
666
674
|
snapshot.focus = f;
|
|
675
|
+
if (f.carrier) watchCarrierDocument(f.carrier.doc);
|
|
667
676
|
return true;
|
|
668
677
|
}
|
|
669
678
|
|
|
670
|
-
|
|
671
|
-
|
|
679
|
+
/* #2498: the control an entry was read off, kept as the document it lives in and its exact
|
|
680
|
+
`data-command-id` (template and instance), never as the element. A repaint that rebuilds a row
|
|
681
|
+
replaces the element and keeps the control, so the element going is not the control going; no
|
|
682
|
+
carrier with that id left in that document is. Only a registered control is tracked: the
|
|
683
|
+
registry's own description (describeCommand) explains a command wherever it lives, and an
|
|
684
|
+
unregistered control has no id that survives a rebuild. */
|
|
685
|
+
function carrierOf(el) {
|
|
686
|
+
if (!el || !el.getAttribute) return null;
|
|
687
|
+
var carrier = el.getAttribute('data-command-id') ? el : null;
|
|
688
|
+
/* A switch's label or track is what the pointer lands on, and the id may sit on the input it labels
|
|
689
|
+
(#1035): focusFor() explains that input, so that input is the control to watch, not an ancestor. */
|
|
690
|
+
if (!carrier && el.closest) {
|
|
691
|
+
var labelled = el.closest('label');
|
|
692
|
+
var named = labelled && (labelled.control || labelled.querySelector('input, select, textarea'));
|
|
693
|
+
carrier = named && named.getAttribute && named.getAttribute('data-command-id') ? named : el.closest('[data-command-id]');
|
|
694
|
+
}
|
|
695
|
+
var id = carrier && carrier.getAttribute('data-command-id');
|
|
696
|
+
return id && carrier.ownerDocument ? { doc: carrier.ownerDocument, id: id } : null;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/* Whether the entry's control has left its surface. Not for a surface that is hidden: a workspace tab
|
|
700
|
+
switched away still holds its controls. A frame that unloads is the reporter-gone path's to clear.
|
|
701
|
+
What does not count as the control: a `?` sheet row, and the notes the shell writes the explained id
|
|
702
|
+
onto (the Build a tool and saved-directories notes carry it as their own `data-command-id`). */
|
|
703
|
+
var NOT_A_CARRIER = '#command-sheet, #graft-instructor-note, #workspace-root-instructor-note';
|
|
704
|
+
function focusCarrierGone() {
|
|
705
|
+
var c = snapshot.focus && snapshot.focus.carrier;
|
|
706
|
+
if (!c) return false;
|
|
707
|
+
try {
|
|
708
|
+
if (c.doc !== document && hiddenReporter(c.doc.defaultView)) return false;
|
|
709
|
+
// Only the exact id is read where the browser can quote it: this runs after every repaint while an entry stands.
|
|
710
|
+
var escape = typeof CSS === 'object' && CSS && typeof CSS.escape === 'function' ? CSS.escape : null;
|
|
711
|
+
var all = c.doc.querySelectorAll(escape ? '[data-command-id="' + escape(c.id) + '"]' : '[data-command-id]');
|
|
712
|
+
for (var i = 0; i < all.length; i++) {
|
|
713
|
+
var n = all[i];
|
|
714
|
+
if (n.isConnected !== false && n.getAttribute('data-command-id') === c.id
|
|
715
|
+
&& !(n.closest && n.closest(NOT_A_CARRIER))) return false;
|
|
716
|
+
}
|
|
717
|
+
return true;
|
|
718
|
+
} catch (e) { return false; }
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
// The one way an entry is retired for a control that went away: the band and both grafted bands.
|
|
722
|
+
function retireFocusEntry() {
|
|
672
723
|
snapshot.focus = null;
|
|
673
724
|
if (typeof window.flolessGraftInstructorClear === 'function') window.flolessGraftInstructorClear();
|
|
674
725
|
if (typeof window.flolessWorkspaceRootInstructorClear === 'function') window.flolessWorkspaceRootInstructorClear();
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* A repaint needs no input event to remove a control (the Drawing Checker re-reads its references
|
|
729
|
+
when they change elsewhere, #2482), so the child's reporter has nothing to say when it happens.
|
|
730
|
+
The shell watches the document itself and checks once, after the task that changed it: a repaint
|
|
731
|
+
that rebuilds a row in one go keeps the entry. One that shows a placeholder and fills in after a
|
|
732
|
+
network wait retires it in between, which is true while it lasts: the control is not there. */
|
|
733
|
+
var carrierCheckPending = false;
|
|
734
|
+
var carrierDocuments = typeof WeakSet === 'function' ? new WeakSet() : [];
|
|
735
|
+
function watchCarrierDocument(doc) {
|
|
736
|
+
if (!doc || typeof MutationObserver !== 'function') return;
|
|
737
|
+
if (carrierDocuments instanceof Array ? carrierDocuments.indexOf(doc) !== -1 : carrierDocuments.has(doc)) return;
|
|
738
|
+
try {
|
|
739
|
+
new MutationObserver(scheduleCarrierCheck)
|
|
740
|
+
.observe(doc, { childList: true, subtree: true, attributes: true, attributeFilter: ['data-command-id'] });
|
|
741
|
+
} catch (e) { return; }
|
|
742
|
+
if (carrierDocuments instanceof Array) carrierDocuments.push(doc); else carrierDocuments.add(doc);
|
|
743
|
+
}
|
|
744
|
+
function scheduleCarrierCheck() {
|
|
745
|
+
if (carrierCheckPending || !(snapshot.focus && snapshot.focus.carrier)) return;
|
|
746
|
+
carrierCheckPending = true;
|
|
747
|
+
setTimeout(function () {
|
|
748
|
+
carrierCheckPending = false;
|
|
749
|
+
if (!focusCarrierGone()) return;
|
|
750
|
+
retireFocusEntry();
|
|
751
|
+
// paint(), not publishGraftGuidance(paint()): the notes were just cleared, and the readout under the
|
|
752
|
+
// entry is the band's, never theirs.
|
|
753
|
+
paint();
|
|
754
|
+
}, 0);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
function clearFocusEntry() {
|
|
758
|
+
if (!snapshot.focus) return;
|
|
759
|
+
retireFocusEntry();
|
|
675
760
|
paint();
|
|
676
761
|
}
|
|
677
762
|
|
|
@@ -861,6 +946,8 @@
|
|
|
861
946
|
var GROUP_ORDER = [
|
|
862
947
|
// the shell
|
|
863
948
|
'In the header', 'In the workflow picker', 'In the project picker', 'In the project list',
|
|
949
|
+
// #2732: the warning that Export in the project list opens for a project too big for one archive.
|
|
950
|
+
'In the project export warning',
|
|
864
951
|
// #2866: Sort by sits in the header of the Workspaces, Workflows and Agents pages.
|
|
865
952
|
'On the landing pages', 'On the Workflows page', 'In Archived on the Workflows page', 'In the workflow picker and on a draft workflow',
|
|
866
953
|
'On the Agents page', 'On an agent',
|
|
@@ -877,9 +964,11 @@
|
|
|
877
964
|
'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
|
|
878
965
|
'In the ≡ menu', 'In the account menu', 'In the footer',
|
|
879
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',
|
|
880
|
-
'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 Routines dialog', 'In the Automatic tool updates dialog', 'In the terminal requests dialog',
|
|
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',
|
|
881
968
|
'In the Report an issue dialog', 'In the Build a tool dialog', 'In the Bake dialog', 'In the CAD send review',
|
|
882
|
-
|
|
969
|
+
// #3312: the profile mapping window opens from the CAD send review, so it is read right after it.
|
|
970
|
+
'In the profile mapping window',
|
|
971
|
+
'While FloLess is not answering', 'In the FloLess dialogs', 'On the FloLess has stopped screen',
|
|
883
972
|
// #2381: the first-run setup card, which covers the whole window until AWARE is ready.
|
|
884
973
|
'On the setup card',
|
|
885
974
|
// #2786: the full-window sign-in screen, shown whenever the subscription gate locks FloLess.
|
|
@@ -909,6 +998,7 @@
|
|
|
909
998
|
'In the Drawing Filter exclusion approval',
|
|
910
999
|
// the vector editor, and its 3D viewer
|
|
911
1000
|
'In the Trace header', 'In the Trace panel', 'On the Trace canvas',
|
|
1001
|
+
'On the Trace save-conflict bar', 'In the Trace dialogs',
|
|
912
1002
|
'In the Trace — 3D header', 'On the Trace — 3D view',
|
|
913
1003
|
];
|
|
914
1004
|
function groupRank(g) {
|
|
@@ -1224,7 +1314,7 @@
|
|
|
1224
1314
|
the stale-narration bug this commit exists to fix, one level down. Falling
|
|
1225
1315
|
through instead means the registry describes the command, which is a better
|
|
1226
1316
|
answer than the blank the old `snapshot.focus = focusFor(live)` produced. */
|
|
1227
|
-
if (setFocusEntry(focusFor(live), liveOrigin)) {
|
|
1317
|
+
if (setFocusEntry(focusFor(live), liveOrigin, live)) {
|
|
1228
1318
|
paint();
|
|
1229
1319
|
return;
|
|
1230
1320
|
}
|
|
@@ -1241,7 +1331,7 @@
|
|
|
1241
1331
|
if (hidden.el.ownerDocument !== document && (activeReporterWindow !== reporter || !snapshot.child)) return;
|
|
1242
1332
|
var shown = revealCarrier(hidden.el, matchesCommand);
|
|
1243
1333
|
// `shown` has focus, or is disabled (its menus closed again) and narrates why; an entry the registry cannot build falls back to the command's own.
|
|
1244
|
-
if (shown && setFocusEntry(focusFor(shown), hidden.origin)) {
|
|
1334
|
+
if (shown && setFocusEntry(focusFor(shown), hidden.origin, shown)) {
|
|
1245
1335
|
paint();
|
|
1246
1336
|
return;
|
|
1247
1337
|
}
|
|
@@ -1743,13 +1833,10 @@
|
|
|
1743
1833
|
/* Async child state can remove a command without moving focus (the display-unit
|
|
1744
1834
|
Retry button is the first case). The reporter names commands that disappeared,
|
|
1745
1835
|
so the producer can retire only the exact captured entry instead of either
|
|
1746
|
-
narrating dead UI or clearing unrelated shell guidance.
|
|
1836
|
+
narrating dead UI or clearing unrelated shell guidance. A surface that names
|
|
1837
|
+
none is checked directly (#2498): the entry goes when its control has. */
|
|
1747
1838
|
var hiddenCommands = childSnap && Array.isArray(childSnap.hiddenCommands) ? childSnap.hiddenCommands : [];
|
|
1748
|
-
if (snapshot.focus && hiddenCommands.indexOf(snapshot.focus.commandId) !== -1)
|
|
1749
|
-
snapshot.focus = null;
|
|
1750
|
-
if (typeof window.flolessGraftInstructorClear === 'function') window.flolessGraftInstructorClear();
|
|
1751
|
-
if (typeof window.flolessWorkspaceRootInstructorClear === 'function') window.flolessWorkspaceRootInstructorClear();
|
|
1752
|
-
}
|
|
1839
|
+
if (snapshot.focus && (hiddenCommands.indexOf(snapshot.focus.commandId) !== -1 || focusCarrierGone())) retireFocusEntry();
|
|
1753
1840
|
paint();
|
|
1754
1841
|
|
|
1755
1842
|
// shell → child: hand back what the producer made.
|
package/dist/web/left-pane.js
CHANGED
|
@@ -1147,7 +1147,10 @@
|
|
|
1147
1147
|
.find((row) => !pending.seenPaths.has(row.dataset.occurrencePath));
|
|
1148
1148
|
firstNew?.focus();
|
|
1149
1149
|
}
|
|
1150
|
-
|
|
1150
|
+
// #3097: the frame's `message` is not thrown text: model-panel-bridge.js writes every one as a fixed sentence for
|
|
1151
|
+
// the person ("That model group has changed. Try opening it again.").
|
|
1152
|
+
const frameSentence = typeof data.message === 'string' ? data.message : '';
|
|
1153
|
+
if (!data.ok) status.textContent = frameSentence || 'That model action is no longer available.';
|
|
1151
1154
|
// The frame stays empty, so say so where the tab would be — for the tab still shown, not an earlier one.
|
|
1152
1155
|
if (pending?.kind === 'panel' && !data.ok && pending.key === panelShown) {
|
|
1153
1156
|
panelShown = null;
|