@floless/app 0.169.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/dist/floless-server.cjs +71580 -59849
- 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-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/web/agent-steps.js +89 -18
- package/dist/web/agents.js +32 -22
- package/dist/web/app.css +223 -1
- package/dist/web/app.js +24 -3
- package/dist/web/aware.js +877 -189
- package/dist/web/chat.js +184 -95
- package/dist/web/checkpoint-standard.js +5 -3
- package/dist/web/commands-drawing-check.js +1 -0
- package/dist/web/commands-shell.js +440 -11
- package/dist/web/commands-steel.js +60 -1
- package/dist/web/drawing-check-editor.js +352 -88
- package/dist/web/failure-copy.js +32 -2
- package/dist/web/filter-ai-proposal.js +11 -8
- package/dist/web/flo-3d.js +1 -1
- package/dist/web/guide.js +33 -26
- package/dist/web/index.html +69 -1
- package/dist/web/instructor.js +99 -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-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/origin-rule.js +155 -0
- package/dist/web/project-access.js +1 -1
- package/dist/web/project-modules.js +2 -2
- package/dist/web/project-rfis.js +6 -1
- package/dist/web/project-workflows.js +2 -2
- package/dist/web/revit-editor.js +22 -8
- package/dist/web/run-history.js +12 -1
- package/dist/web/steel-3d-core.js +39 -9
- package/dist/web/steel-3d-flo.js +26 -4
- package/dist/web/steel-3d-view.js +8 -3
- package/dist/web/steel-ai-marks.js +3 -1
- package/dist/web/steel-editor.html +455 -122
- 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 +1 -1
- package/dist/web/tool-updates.js +7 -6
- package/dist/web/workspaces.js +1714 -119
- package/package.json +4 -1
package/dist/web/failure-copy.js
CHANGED
|
@@ -190,10 +190,40 @@ function failureParts(error, ctx) {
|
|
|
190
190
|
function personText(body) {
|
|
191
191
|
if (!body || typeof body !== 'object') return '';
|
|
192
192
|
if (typeof body.userMessage === 'string' && body.userMessage.trim()) return body.userMessage.trim();
|
|
193
|
-
|
|
193
|
+
// A one-word `error` is a code (`model_module_unavailable`, `forbidden`), not a sentence for a person; nor is the
|
|
194
|
+
// subscription gate's "subscription required", whose sentence is the shell's (failureCopy's `account`).
|
|
195
|
+
const error = typeof body.error === 'string' ? body.error.trim() : '';
|
|
196
|
+
if (!body.diagnostic && /\S\s+\S/.test(error) && error !== 'subscription required') return error;
|
|
194
197
|
return '';
|
|
195
198
|
}
|
|
196
199
|
|
|
200
|
+
/**
|
|
201
|
+
* #3097 slice 3b: the sentence for a caught error, so no page writes `err.message` into what a person reads.
|
|
202
|
+
* - An error a request helper threw carries the server's reply as `body`: the sentence is worked out again from that
|
|
203
|
+
* reply (personText, else failureCopy), never taken from `message`, which a helper may have built from anything.
|
|
204
|
+
* - An error the page threw FOR a person (`forPerson: true`, its message a sentence the page wrote) is said as written.
|
|
205
|
+
* - Anything else (the browser's "Failed to fetch", a reply that was not JSON, a library or a check that threw) was
|
|
206
|
+
* written for a developer: it goes to the console and the person gets the shared sentence.
|
|
207
|
+
* `ctx` is failureCopy's (`action`, `nothingDone`, `unsure`, `retrySafe`, …).
|
|
208
|
+
* @returns {string}
|
|
209
|
+
*/
|
|
210
|
+
function errorText(err, ctx) {
|
|
211
|
+
if (err && err.body && typeof err.body === 'object') {
|
|
212
|
+
// A busy lock, a sign-in or access refusal, a lost answer and an outdated AWARE have their own sentences here, which
|
|
213
|
+
// already say the server's userMessage where it wrote one; the server's `error` for them is "subscription required"
|
|
214
|
+
// or a lock's time estimate, which failureCopy deliberately does not repeat.
|
|
215
|
+
const kind = failureKind(err);
|
|
216
|
+
// The sign-in sentence is the shell's (aware.js accountAccessText), so a renewal or an update is not answered with
|
|
217
|
+
// "sign in again", and every surface says the same as the toast does.
|
|
218
|
+
const account = (ctx && ctx.account) || (globalThis.flolessBridge && globalThis.flolessBridge.accountAccessText);
|
|
219
|
+
if (kind === 'busy' || kind === 'access' || kind === 'connection' || kind === 'outdated') return failureCopy(err, { ...ctx, account }).text;
|
|
220
|
+
return personText(err.body) || failureCopy(err, ctx).text;
|
|
221
|
+
}
|
|
222
|
+
if (err && err.forPerson === true && typeof err.message === 'string' && err.message.trim()) return failureSentence(err.message);
|
|
223
|
+
console.warn(`FloLess: couldn’t ${(ctx && ctx.action) || 'finish that'}`, err);
|
|
224
|
+
return failureCopy(err, ctx).text;
|
|
225
|
+
}
|
|
226
|
+
|
|
197
227
|
if (typeof module !== 'undefined' && module.exports) {
|
|
198
|
-
module.exports = { failureKind, failureCopy, failureParts, personText, FAILURE_BUSY_CODES, FAILURE_BUSY_WORK };
|
|
228
|
+
module.exports = { failureKind, failureCopy, failureParts, personText, errorText, FAILURE_BUSY_CODES, FAILURE_BUSY_WORK };
|
|
199
229
|
}
|
|
@@ -59,10 +59,13 @@ export function filterAiKnownControls(filter) {
|
|
|
59
59
|
return known;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/** #3097: the parser's refusals are sentences it wrote for the person, so a surface may say them (`forPerson`). */
|
|
63
|
+
const refusal = (sentence) => Object.assign(new Error(sentence), { forPerson: true });
|
|
64
|
+
|
|
62
65
|
/** Reject malformed or contradictory suggestions before any surface presents them. */
|
|
63
66
|
export function parseFilterAiProposalShape(answer) {
|
|
64
67
|
// Sized for MAX_FILTER_CHANGES changes of the longest names a snapshot carries, so no suggestion it allows is refused here.
|
|
65
|
-
if (typeof answer !== 'string' || answer.length > 2_000_000) throw
|
|
68
|
+
if (typeof answer !== 'string' || answer.length > 2_000_000) throw refusal('AI returned a suggestion that is too large. Ask about fewer layers.');
|
|
66
69
|
let value;
|
|
67
70
|
// A model that wraps the envelope in a ```json fence produced the envelope; the fence is packaging,
|
|
68
71
|
// not a different answer, so unwrap it before deciding anything.
|
|
@@ -84,7 +87,7 @@ export function parseFilterAiProposalShape(answer) {
|
|
|
84
87
|
// a change was proposed and lost. Only text that never attempted the envelope is prose.
|
|
85
88
|
const text = unfenced.trim();
|
|
86
89
|
if (!text || text.startsWith('{') || text.startsWith('[')) {
|
|
87
|
-
throw
|
|
90
|
+
throw refusal('AI did not return a usable selection. Ask it to try again.');
|
|
88
91
|
}
|
|
89
92
|
return { explanation: text.slice(0, MAX_FILTER_EXPLANATION), changes: [], mode: null };
|
|
90
93
|
}
|
|
@@ -94,26 +97,26 @@ export function parseFilterAiProposalShape(answer) {
|
|
|
94
97
|
|| !Array.isArray(value.changes) || value.changes.length > MAX_FILTER_CHANGES
|
|
95
98
|
|| (value.mode !== null && (typeof value.mode !== 'string'
|
|
96
99
|
|| !value.mode || value.mode !== canonicalMode(value.mode.split('+'))))) {
|
|
97
|
-
throw
|
|
100
|
+
throw refusal('AI returned a suggestion this filter cannot use. Ask it to try again.');
|
|
98
101
|
}
|
|
99
102
|
const seen = new Set();
|
|
100
103
|
for (const item of value.changes) {
|
|
101
104
|
if (!item || Array.isArray(item) || typeof item !== 'object'
|
|
102
105
|
|| Object.keys(item).sort().join(',') !== 'dimension,on,value'
|
|
103
106
|
|| !MODE_ORDER.includes(item.dimension) || typeof item.on !== 'boolean') {
|
|
104
|
-
throw
|
|
107
|
+
throw refusal('AI named a change this filter cannot use. Ask it to try again.');
|
|
105
108
|
}
|
|
106
109
|
if (item.dimension === 'thickness' && (typeof item.value !== 'number' || !Number.isFinite(item.value))) {
|
|
107
|
-
throw
|
|
110
|
+
throw refusal('AI named a value that is missing from this filter. Ask it to try again.');
|
|
108
111
|
}
|
|
109
112
|
if (item.dimension !== 'thickness' && typeof item.value !== 'string') {
|
|
110
|
-
throw
|
|
113
|
+
throw refusal('AI named a value that is missing from this filter. Ask it to try again.');
|
|
111
114
|
}
|
|
112
115
|
const key = item.value;
|
|
113
116
|
const canonical = facetKey(item.dimension, key);
|
|
114
117
|
const identity = item.dimension + '\0' + String(canonical);
|
|
115
118
|
if (canonical === undefined || seen.has(identity)) {
|
|
116
|
-
throw
|
|
119
|
+
throw refusal('AI named a value that is missing from this filter. Ask it to try again.');
|
|
117
120
|
}
|
|
118
121
|
seen.add(identity);
|
|
119
122
|
}
|
|
@@ -134,7 +137,7 @@ export function parseFilterAiProposal(answer, filter, allowedControls = null) {
|
|
|
134
137
|
const canonical = facetKey(item.dimension, item.value);
|
|
135
138
|
const identity = item.dimension + '\0' + String(canonical);
|
|
136
139
|
if (!known.has(identity) || (allowedControls && !allowedControls.has(identity))) {
|
|
137
|
-
throw
|
|
140
|
+
throw refusal('AI named a value that is missing from this filter. Ask it to try again.');
|
|
138
141
|
}
|
|
139
142
|
changes.push({ dimension:item.dimension, value:known.get(identity), on:item.on });
|
|
140
143
|
}
|
package/dist/web/flo-3d.js
CHANGED
|
@@ -294,7 +294,7 @@ export function createFlo3D(THREE, opts = {}) {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
return {
|
|
297
|
-
object: root, get r() { return r; }, get position() { return here; },
|
|
297
|
+
object: root, body: squash, get r() { return r; }, get position() { return here; }, // body: Flo without its ground shadow
|
|
298
298
|
setColors, setSize, setMood, setHat, setReducedMotion, placeAt, hopTo, sayHello, tick, hit, isBusy, dispose,
|
|
299
299
|
get mood() { return mood; },
|
|
300
300
|
};
|
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,10 +98,11 @@
|
|
|
98
98
|
return api(path, body, true);
|
|
99
99
|
}
|
|
100
100
|
if (!response.ok) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
failure
|
|
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;
|
|
105
106
|
throw failure;
|
|
106
107
|
}
|
|
107
108
|
return data;
|
|
@@ -142,7 +143,7 @@
|
|
|
142
143
|
await chat.openConversation(chatId, { owner: { kind: 'workspace' } });
|
|
143
144
|
return true;
|
|
144
145
|
} catch (error) {
|
|
145
|
-
toast(error
|
|
146
|
+
toast(errorText(error, { action: 'open the Guide conversation', retrySafe: true }), 'warn');
|
|
146
147
|
return false;
|
|
147
148
|
}
|
|
148
149
|
}
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
state.returnFocus = options.returnFocus || (document.activeElement instanceof HTMLElement ? document.activeElement : null);
|
|
156
157
|
let status;
|
|
157
158
|
try { status = await loadStatus(); }
|
|
158
|
-
catch (error) { toast(error
|
|
159
|
+
catch (error) { toast(errorText(error, { action: 'open the Guide', retrySafe: true }), 'warn'); return; }
|
|
159
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; }
|
|
160
161
|
if (status.consent?.choice === 'on' && status.activeChatId) { await openGuideChat(status.activeChatId); return; }
|
|
161
162
|
await showModal(status.consent?.choice === 'on' ? 'start' : 'consent');
|
|
@@ -463,7 +464,9 @@
|
|
|
463
464
|
if (seq !== state.lookSeq) return false;
|
|
464
465
|
// Pressed Turn on and the look failed: say what that means for the Guide, not only what went wrong.
|
|
465
466
|
const off = because === 'turning-on' && state.mode === 'consent' ? ' The Guide is still off. Try again, or turn it on later from ≡ → Guide.' : '';
|
|
466
|
-
|
|
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}`;
|
|
467
470
|
}
|
|
468
471
|
if ($modal.classList.contains('show')) paint();
|
|
469
472
|
return landed;
|
|
@@ -529,7 +532,7 @@
|
|
|
529
532
|
closeModal();
|
|
530
533
|
if (!asking) return;
|
|
531
534
|
try { await api('/api/chat/guide/consent', { choice: 'not-now', share: state.share }); }
|
|
532
|
-
catch (error) { toast(error.
|
|
535
|
+
catch (error) { toast(errorText(error, { action: 'save your Not now', unsure: 'The Guide may ask again next time.' }), 'warn'); }
|
|
533
536
|
}
|
|
534
537
|
|
|
535
538
|
async function chooseFolder() {
|
|
@@ -540,7 +543,7 @@
|
|
|
540
543
|
const until = Date.now() + 10 * 60 * 1000;
|
|
541
544
|
while (Date.now() < until && document.querySelector('.modal-backdrop.show')) await new Promise((resolve) => setTimeout(resolve, 500));
|
|
542
545
|
try { await loadStatus(); }
|
|
543
|
-
catch (error) { toast(
|
|
546
|
+
catch (error) { toast(`${errorText(error, { action: 'continue to the Guide', retrySafe: true })} Open it again from ≡ → Guide.`, 'warn'); return; }
|
|
544
547
|
if (state.status?.workspace) await showModal('consent');
|
|
545
548
|
}
|
|
546
549
|
|
|
@@ -582,7 +585,7 @@
|
|
|
582
585
|
if (briefing && !briefed) {
|
|
583
586
|
// The Guide was already on: the briefing is its own step. A failure here never stops the Guide starting.
|
|
584
587
|
try { const answer = await api('/api/chat/guide/briefing', { on: true, provider: state.provider, time: '08:00', days: 'weekdays' }); setBriefing(answer.briefing); }
|
|
585
|
-
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'); }
|
|
586
589
|
}
|
|
587
590
|
if (closed()) {
|
|
588
591
|
// Closed while the Guide was being turned on: it is on, but nothing more happens until the person opens it.
|
|
@@ -609,7 +612,7 @@
|
|
|
609
612
|
if (error.body.preview.share) state.share = { ...error.body.preview.share };
|
|
610
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.';
|
|
611
614
|
} else {
|
|
612
|
-
state.banner = error.
|
|
615
|
+
state.banner = errorText(error, { action: 'start the Guide', unsure: 'Check ≡ → Guide to see whether it started.' });
|
|
613
616
|
}
|
|
614
617
|
state.busy = false;
|
|
615
618
|
paint();
|
|
@@ -633,7 +636,7 @@
|
|
|
633
636
|
}
|
|
634
637
|
await loadStatus().catch(() => null);
|
|
635
638
|
return true;
|
|
636
|
-
} 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; }
|
|
637
640
|
}
|
|
638
641
|
|
|
639
642
|
async function deleteHistory() {
|
|
@@ -648,7 +651,7 @@
|
|
|
648
651
|
}
|
|
649
652
|
await window.flolessChat?.refreshScope?.(true);
|
|
650
653
|
return true;
|
|
651
|
-
} 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; }
|
|
652
655
|
}
|
|
653
656
|
|
|
654
657
|
function confirmDelete() {
|
|
@@ -850,7 +853,7 @@
|
|
|
850
853
|
toast(`The Guide may suggest “${text.title}” again.`, 'info');
|
|
851
854
|
const nextButton = nextKey ? [...host.querySelectorAll('li')].find((li) => li.dataset.key === nextKey)?.querySelector('button') : null;
|
|
852
855
|
nextButton?.focus();
|
|
853
|
-
} 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'); }
|
|
854
857
|
});
|
|
855
858
|
item.dataset.key = row.key;
|
|
856
859
|
item.append(el('span', '', text.title), back);
|
|
@@ -900,7 +903,7 @@
|
|
|
900
903
|
else await ws?.setMode?.('workflows');
|
|
901
904
|
// Leaving a project can be declined (unsaved work): say so instead of seeming to do nothing.
|
|
902
905
|
if (!shown) status.textContent = 'You stayed in the project you have open, so the list was not shown.';
|
|
903
|
-
} catch (error) { status.textContent = error
|
|
906
|
+
} catch (error) { status.textContent = errorText(error, { action: 'show that list', retrySafe: true }); }
|
|
904
907
|
finally { button.disabled = false; }
|
|
905
908
|
});
|
|
906
909
|
recoverRow.append(button);
|
|
@@ -931,7 +934,7 @@
|
|
|
931
934
|
pending = { commandId: 'shell.guide-move-undo', label: 'Undo' };
|
|
932
935
|
undo.disabled = true; status.textContent = '';
|
|
933
936
|
try { await moveAside(move, false, moveKey); }
|
|
934
|
-
catch (error) { status.textContent = error.
|
|
937
|
+
catch (error) { status.textContent = errorText(error, { action: 'show this suggestion again', unsure: 'Check the card before trying again.' }); }
|
|
935
938
|
finally { pending = null; paintCard(); }
|
|
936
939
|
});
|
|
937
940
|
line.append(el('span', '', `Not now: ${text.title}`), undo);
|
|
@@ -987,7 +990,7 @@
|
|
|
987
990
|
if (!opened) status.textContent = 'FloLess couldn’t open that from here. Open it from the ≡ menu instead.';
|
|
988
991
|
else if (opened.said) status.textContent = opened.said;
|
|
989
992
|
} catch (error) {
|
|
990
|
-
status.textContent = error
|
|
993
|
+
status.textContent = errorText(error, { action: 'open that', retrySafe: true });
|
|
991
994
|
} finally {
|
|
992
995
|
go.disabled = false; go.removeAttribute('aria-busy'); go.textContent = text.action;
|
|
993
996
|
// Disabled while checking, the button dropped focus to the page; when nothing opened and the card is still shown,
|
|
@@ -1007,7 +1010,7 @@
|
|
|
1007
1010
|
if (answer?.key) { moveKey = answer.key; paintCard(); }
|
|
1008
1011
|
} catch (error) {
|
|
1009
1012
|
later.disabled = false;
|
|
1010
|
-
status.textContent = error.
|
|
1013
|
+
status.textContent = errorText(error, { action: 'set this suggestion aside', unsure: 'Check the card before trying again.' });
|
|
1011
1014
|
}
|
|
1012
1015
|
});
|
|
1013
1016
|
actions.append(go, later);
|
|
@@ -1051,8 +1054,12 @@
|
|
|
1051
1054
|
paintCard();
|
|
1052
1055
|
};
|
|
1053
1056
|
// The failed card already shows why; the line under the buttons says only what that card does not.
|
|
1054
|
-
const say = (error) => {
|
|
1055
|
-
|
|
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 });
|
|
1056
1063
|
const build = async (node, label, busyLabel = 'Starting…', reopen = false) => {
|
|
1057
1064
|
busy(node, busyLabel);
|
|
1058
1065
|
try {
|
|
@@ -1131,7 +1138,7 @@
|
|
|
1131
1138
|
try {
|
|
1132
1139
|
const answer = await moveAside(move, true);
|
|
1133
1140
|
if (answer?.key) moveKey = answer.key;
|
|
1134
|
-
} catch (error) { status.textContent = error.
|
|
1141
|
+
} catch (error) { status.textContent = errorText(error, { action: 'set this suggestion aside', unsure: 'Check the card before trying again.' }); }
|
|
1135
1142
|
finally { done(); }
|
|
1136
1143
|
});
|
|
1137
1144
|
// Build it has no confirm step, so this note is the whole warning: Build it points a screen reader at it.
|
|
@@ -1242,7 +1249,7 @@
|
|
|
1242
1249
|
return answer;
|
|
1243
1250
|
} catch (error) {
|
|
1244
1251
|
if (error.body && 'briefing' in error.body) setBriefing(error.body.briefing);
|
|
1245
|
-
toast(error.
|
|
1252
|
+
toast(errorText(error, { action: 'change the morning briefing', unsure: 'Check its settings before trying again.' }), 'warn');
|
|
1246
1253
|
return null;
|
|
1247
1254
|
} finally {
|
|
1248
1255
|
briefingBusy = false;
|
package/dist/web/index.html
CHANGED
|
@@ -1362,6 +1362,8 @@
|
|
|
1362
1362
|
<!-- #2476: what the run viewer says about a report that carries files while its Page version is being saved (or why it
|
|
1363
1363
|
cannot be shown). Plain words, a polite live region; hidden when there is nothing to say. -->
|
|
1364
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>
|
|
1365
1367
|
<div class="report-stage" id="report-stage">
|
|
1366
1368
|
<!-- sandbox flags, each load-bearing:
|
|
1367
1369
|
• allow-same-origin — REQUIRED. Without it the srcdoc document gets an
|
|
@@ -1467,6 +1469,10 @@
|
|
|
1467
1469
|
<span class="project-setup-standard-label" data-standard-label="UK">UK · BS/EN</span>
|
|
1468
1470
|
<span>BS EN sections · S355</span>
|
|
1469
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>
|
|
1470
1476
|
</div>
|
|
1471
1477
|
<div class="project-setup-note">The standard is fixed for this project. Display units can be changed later.</div>
|
|
1472
1478
|
</fieldset>
|
|
@@ -1518,6 +1524,24 @@
|
|
|
1518
1524
|
</div>
|
|
1519
1525
|
</div>
|
|
1520
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>
|
|
1521
1545
|
<div class="project-setup-quick-terms" id="project-setup-quick-terms" role="group" aria-label="Quick model terms" aria-live="polite" hidden>
|
|
1522
1546
|
<strong>Before you create a Quick model</strong>
|
|
1523
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>
|
|
@@ -1643,6 +1667,28 @@
|
|
|
1643
1667
|
</div>
|
|
1644
1668
|
</div>
|
|
1645
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
|
+
|
|
1646
1692
|
<!-- Approval is a mandatory review, never a one-click mutation. The server supplies every group
|
|
1647
1693
|
and all plain-English copy; this surface only records an explicit decision for each group. -->
|
|
1648
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">
|
|
@@ -1846,6 +1892,24 @@
|
|
|
1846
1892
|
</div>
|
|
1847
1893
|
</div>
|
|
1848
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
|
+
|
|
1849
1913
|
<div class="modal-backdrop" id="workspace-root-modal" role="dialog" aria-modal="true"
|
|
1850
1914
|
aria-labelledby="workspace-root-title" aria-describedby="workspace-root-sub workspace-root-status">
|
|
1851
1915
|
<div class="modal workspace-root-modal" tabindex="-1">
|
|
@@ -1950,7 +2014,9 @@
|
|
|
1950
2014
|
<div class="modal-title">Routines</div>
|
|
1951
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>
|
|
1952
2016
|
<!-- #2062: never read as always-on. The link shows only where the start-on-login setting exists (app.js). -->
|
|
1953
|
-
<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>
|
|
1954
2020
|
<div class="rtn-quota" id="rtn-quota"></div>
|
|
1955
2021
|
<div class="routines-list" id="routines-list"></div>
|
|
1956
2022
|
<div class="modal-actions">
|
|
@@ -1980,6 +2046,7 @@
|
|
|
1980
2046
|
<div class="modal-field" id="rtn-workflow-field">
|
|
1981
2047
|
<label for="rtn-workflow">Workflow</label>
|
|
1982
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>
|
|
1983
2050
|
</div>
|
|
1984
2051
|
<div class="modal-field" id="rtn-agent-field" hidden>
|
|
1985
2052
|
<label for="rtn-agent">Agent</label>
|
|
@@ -2274,6 +2341,7 @@
|
|
|
2274
2341
|
<script src="terminal-requests.js"></script>
|
|
2275
2342
|
<script src="agents.js"></script>
|
|
2276
2343
|
<script src="project-access.js"></script>
|
|
2344
|
+
<script src="missed-routines.js"></script>
|
|
2277
2345
|
<script src="pages.js"></script>
|
|
2278
2346
|
<script src="run-history.js"></script>
|
|
2279
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
|
|
|
@@ -879,9 +964,11 @@
|
|
|
879
964
|
'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
|
|
880
965
|
'In the ≡ menu', 'In the account menu', 'In the footer',
|
|
881
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',
|
|
882
|
-
'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',
|
|
883
968
|
'In the Report an issue dialog', 'In the Build a tool dialog', 'In the Bake dialog', 'In the CAD send review',
|
|
884
|
-
|
|
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',
|
|
885
972
|
// #2381: the first-run setup card, which covers the whole window until AWARE is ready.
|
|
886
973
|
'On the setup card',
|
|
887
974
|
// #2786: the full-window sign-in screen, shown whenever the subscription gate locks FloLess.
|
|
@@ -1227,7 +1314,7 @@
|
|
|
1227
1314
|
the stale-narration bug this commit exists to fix, one level down. Falling
|
|
1228
1315
|
through instead means the registry describes the command, which is a better
|
|
1229
1316
|
answer than the blank the old `snapshot.focus = focusFor(live)` produced. */
|
|
1230
|
-
if (setFocusEntry(focusFor(live), liveOrigin)) {
|
|
1317
|
+
if (setFocusEntry(focusFor(live), liveOrigin, live)) {
|
|
1231
1318
|
paint();
|
|
1232
1319
|
return;
|
|
1233
1320
|
}
|
|
@@ -1244,7 +1331,7 @@
|
|
|
1244
1331
|
if (hidden.el.ownerDocument !== document && (activeReporterWindow !== reporter || !snapshot.child)) return;
|
|
1245
1332
|
var shown = revealCarrier(hidden.el, matchesCommand);
|
|
1246
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.
|
|
1247
|
-
if (shown && setFocusEntry(focusFor(shown), hidden.origin)) {
|
|
1334
|
+
if (shown && setFocusEntry(focusFor(shown), hidden.origin, shown)) {
|
|
1248
1335
|
paint();
|
|
1249
1336
|
return;
|
|
1250
1337
|
}
|
|
@@ -1746,13 +1833,10 @@
|
|
|
1746
1833
|
/* Async child state can remove a command without moving focus (the display-unit
|
|
1747
1834
|
Retry button is the first case). The reporter names commands that disappeared,
|
|
1748
1835
|
so the producer can retire only the exact captured entry instead of either
|
|
1749
|
-
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. */
|
|
1750
1838
|
var hiddenCommands = childSnap && Array.isArray(childSnap.hiddenCommands) ? childSnap.hiddenCommands : [];
|
|
1751
|
-
if (snapshot.focus && hiddenCommands.indexOf(snapshot.focus.commandId) !== -1)
|
|
1752
|
-
snapshot.focus = null;
|
|
1753
|
-
if (typeof window.flolessGraftInstructorClear === 'function') window.flolessGraftInstructorClear();
|
|
1754
|
-
if (typeof window.flolessWorkspaceRootInstructorClear === 'function') window.flolessWorkspaceRootInstructorClear();
|
|
1755
|
-
}
|
|
1839
|
+
if (snapshot.focus && (hiddenCommands.indexOf(snapshot.focus.commandId) !== -1 || focusCarrierGone())) retireFocusEntry();
|
|
1756
1840
|
paint();
|
|
1757
1841
|
|
|
1758
1842
|
// shell → child: hand back what the producer made.
|