@floless/app 0.164.0 → 0.165.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 +460 -122
- package/dist/skills/floless-app-rfi/SKILL.md +25 -5
- package/dist/web/app.css +9 -5
- package/dist/web/aware.js +25 -8
- package/dist/web/chat.css +1 -1
- package/dist/web/chat.js +136 -5
- package/dist/web/commands-shell.js +10 -4
- package/dist/web/project-rfis.js +15 -7
- package/dist/web/workspaces.js +14 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-rfi
|
|
3
3
|
description: File, send, and manage RFIs on a floless.app project from the terminal. Use when the user asks to raise an RFI, send it through the connected Gmail account, record a manual send, chase one, record an answer that came back from the engineer, mark an answer as applied, close or reopen an RFI, or asks what questions are still outstanding on a project. Also use when a size the AI could not work out is one the user cannot answer either, so the question has to become a durable record instead of a message that scrolls away.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.8.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# File and manage a project's RFIs
|
|
@@ -39,6 +39,13 @@ And the user always ends with a model. An RFI carries a question forward; it nev
|
|
|
39
39
|
2. Resolve the project with the `projects.list` action (`floless-app do projects.list --json`; the
|
|
40
40
|
list is in `data`). Keep the returned `id` and `app`; never build an id
|
|
41
41
|
from a display name. If the name is ambiguous, ask the user to choose.
|
|
42
|
+
3. **Pick the store by the project's kind.** A **steel** project (`app` `steel-model`, or a workflow
|
|
43
|
+
derived from it) keeps its RFIs in its own store: use the `rfis.*` actions below. Every other kind
|
|
44
|
+
that has an RFIs step — **General** (`floless-general`), **Trace** (`vectorize`), **Revit**
|
|
45
|
+
(`revit-model`), **Tekla** (`tekla-parser`) and **Drawing Checker** (`drawing-check`) — keeps
|
|
46
|
+
them on that step: use the `rfis.correspondence-*` actions in *RFIs on a project's RFIs step* below.
|
|
47
|
+
If an action answers `not-general` the project is a steel one; `rfis-not-here` means this kind of
|
|
48
|
+
project keeps no RFIs, so say so and offer to raise it on the project it is about.
|
|
42
49
|
|
|
43
50
|
**A healthy server is not a usable one.** The workspace API is behind a subscription gate. Any RFI call
|
|
44
51
|
can answer `402 {ok:false, error:"subscription required", state, reason, signInUrl}` — report `state`,
|
|
@@ -430,17 +437,19 @@ record actually says — never retry blind, and never invent a reason of your ow
|
|
|
430
437
|
Never paper over a refusal. Quote the sentence the server gave — it is written for the user, and it
|
|
431
438
|
names the way forward.
|
|
432
439
|
|
|
433
|
-
##
|
|
440
|
+
## RFIs on a project's RFIs step (General, Trace, Revit, Tekla, Drawing Checker)
|
|
434
441
|
|
|
435
|
-
A **General** project
|
|
436
|
-
|
|
442
|
+
A **General** project has no model, and a **Trace**, **Revit**, **Tekla** or **Drawing Checker** project
|
|
443
|
+
keeps its questions apart from its model, so their RFIs are questions in words. They live in the
|
|
444
|
+
project's own RFIs-step store and use their own actions — the steel ones above do not apply to them:
|
|
437
445
|
|
|
438
446
|
- **Read first:** `rfis.correspondence-list` gives `rootId`, `project.uuid` and every RFI with its
|
|
439
447
|
`status` (`open | sent | answered | closed`), `recordRevision`, the `verbs` legal now, and each
|
|
440
448
|
citation's `state`. Every write below names that `rootId` and `projectUuid`; a change to either
|
|
441
449
|
answers `project-changed` — read the list again.
|
|
442
450
|
- **What can be cited:** `rfis.correspondence-citable` lists this project's Knowledge pages (cite one
|
|
443
|
-
by its `generationId` and `slug`) and the saved sheets of the
|
|
451
|
+
by its `generationId` and `slug`) and, **on a General project only**, the saved sheets of the
|
|
452
|
+
projects linked on its Modules step
|
|
444
453
|
(by `linkedProjectUuid`, `pageId`, `sourceHash`). A linked project outside this chat's scope is
|
|
445
454
|
named but not read: offer to add it to the scope, never work around it. Up to five citations.
|
|
446
455
|
- **Filing:** `rfis.correspondence-file` (title, question, citations) records the question only.
|
|
@@ -473,6 +482,17 @@ They live in their own store and use their own actions — the steel ones above
|
|
|
473
482
|
- **A set-aside store:** when the list says the RFI file couldn't be read, the person restores a good
|
|
474
483
|
copy and `rfis.correspondence-repair` checks it. Never edit the file.
|
|
475
484
|
|
|
485
|
+
### From a Drawing Checker finding
|
|
486
|
+
|
|
487
|
+
A Drawing Checker finding offers a paste-ready request that starts *"Use the floless-app-rfi skill to
|
|
488
|
+
raise an RFI for this Drawing Checker finding"* and names the sheet, the check, the finding and the run.
|
|
489
|
+
File it on **that Drawing Checker project's** RFIs step with `rfis.correspondence-file`: a title that
|
|
490
|
+
names the sheet and the check, and a question built from the finding in the person's words — ask them
|
|
491
|
+
first, as for any RFI. Cite a Knowledge page only if one really applies. Then reply with the RFI's
|
|
492
|
+
reference (`RFI-001`, …) so the person can record it on the finding. Nothing links the two by
|
|
493
|
+
itself: the finding keeps the reference the person typed, and the RFI keeps its own lifecycle. Do not
|
|
494
|
+
claim an answer to the RFI changes the finding.
|
|
495
|
+
|
|
476
496
|
## Say it back
|
|
477
497
|
|
|
478
498
|
An RFI filed in silence is the silence this design exists to delete. After every write, tell the user
|
package/dist/web/app.css
CHANGED
|
@@ -4478,14 +4478,18 @@
|
|
|
4478
4478
|
amber already reads (6.9:1); the light theme needs the darker one (routine-warning-contrast.test.ts). */
|
|
4479
4479
|
--warn-text: hsl(38 92% 50%);
|
|
4480
4480
|
--info: hsl(217.2 91.2% 59.8%);
|
|
4481
|
-
/* FloLess's three parts in floless-web's
|
|
4481
|
+
/* FloLess's three parts in role colours that started as floless-web's (owner, 2026-10-19: "same as floless web"),
|
|
4482
|
+
with Agents and Workflows departing by the rulings below: bright on
|
|
4482
4483
|
dark, ink on light, as its living logo draws them; -mark stays bright in both (the underline under an ink
|
|
4483
4484
|
word). The mode tabs' icons use them, and so does Flo's scene on the chat's start screens (chat.css).
|
|
4484
4485
|
Agents departs from floless-web's yellow on the owner's ruling (2026-10-19, chosen from ten pink and violet
|
|
4485
4486
|
tones as "Grape"): violet, a light ink over a deeper mark on dark, so Flo's ring and the outline of its hat
|
|
4486
|
-
stand apart from the hat, and a deep ink over a brighter mark on light.
|
|
4487
|
-
|
|
4488
|
-
|
|
4487
|
+
stand apart from the hat, and a deep ink over a brighter mark on light.
|
|
4488
|
+
Workflows departs from floless-web's green on the owner's ruling (2026-10-29, chosen from eight greens as
|
|
4489
|
+
"Spring"): a vivid ink over a slightly deeper mark on dark, and a deep ink on light over that same mark,
|
|
4490
|
+
which the light block inherits rather than overrides. */
|
|
4491
|
+
--part-ws: #3b82f6; --part-wf: #00e676; --part-ag: #c4b5fd;
|
|
4492
|
+
--part-ws-mark: #3b82f6; --part-wf-mark: #00c853; --part-ag-mark: #6d28d9;
|
|
4489
4493
|
}
|
|
4490
4494
|
|
|
4491
4495
|
[data-theme="light"] {
|
|
@@ -4511,7 +4515,7 @@
|
|
|
4511
4515
|
--err-text: hsl(0 73.7% 41.8%); /* Tailwind red-700 — see --err-text above (#1864) */
|
|
4512
4516
|
--warn-text: hsl(26 90.5% 37.1%); /* Tailwind amber-700 — see --warn-text above */
|
|
4513
4517
|
--info: hsl(221.2 83.2% 53.3%);
|
|
4514
|
-
--part-ws: #1d4ed8; --part-wf: #
|
|
4518
|
+
--part-ws: #1d4ed8; --part-wf: #007e33; /* floless-web --role-ws-ink; Spring's ink. Both marks inherit :root's; see --part-* above */
|
|
4515
4519
|
--part-ag: #5b21b6; --part-ag-mark: #7c3aed; /* Grape on light: the owner's Agents tone, see above */
|
|
4516
4520
|
}
|
|
4517
4521
|
|
package/dist/web/aware.js
CHANGED
|
@@ -5608,7 +5608,9 @@
|
|
|
5608
5608
|
// No Drive choice is sent: the server keeps whatever Drive access the account already has.
|
|
5609
5609
|
api(`/api/connect/${encodeURIComponent(cred.id)}`, { method: 'POST', body: '{}' })
|
|
5610
5610
|
.then((res) => { if (res && res.started === false) reset(typeof res.message === 'string' ? res.message : 'Couldn’t start sign-in. Open Integrations to try again.'); })
|
|
5611
|
-
|
|
5611
|
+
// A sign-in still running for this service (a 409 busy lock) says so in its own sentence.
|
|
5612
|
+
.catch((e) => reset(e?.status === 409 && e.body?.code === 'lifecycle-busy' && typeof e.body.error === 'string'
|
|
5613
|
+
? e.body.error : CRED_SIGN_IN_FAILED));
|
|
5612
5614
|
}
|
|
5613
5615
|
|
|
5614
5616
|
// Shared by both run paths: when the server flags a credential issue, show the
|
|
@@ -15723,6 +15725,7 @@
|
|
|
15723
15725
|
|
|
15724
15726
|
// #2649: what Google actually granted an account (people can untick a permission on Google's screen).
|
|
15725
15727
|
const GOOGLE_INTEGRATION_ID = 'google-workspace';
|
|
15728
|
+
const MICROSOFT_INTEGRATION_ID = 'microsoft-365';
|
|
15726
15729
|
function googleAccessLine(granted, alias) {
|
|
15727
15730
|
// Gmail sending is what emails RFIs, so its absence is the one real fault; a missing Drive list is a choice.
|
|
15728
15731
|
if (!granted.gmail) return `Gmail sending isn’t allowed, so FloLess can’t email RFIs. Click ${alias ? 'Reconnect this account' : 'Reconnect'} and leave Gmail sending ticked on Google’s screen.`;
|
|
@@ -15757,6 +15760,9 @@
|
|
|
15757
15760
|
else if (ready) { state = 'Ready for AI Chat'; stateClass = 'is-chat-ready'; why = 'This verified account can be selected in AI Chat.'; }
|
|
15758
15761
|
else if (slot.status === 'expired') { state = 'Reconnect for AI Chat'; stateClass = 'is-chat-warning'; why = 'This account’s sign-in has expired. Reconnect it to use it in AI Chat.'; }
|
|
15759
15762
|
else if (slot.status !== 'valid') { state = 'Connect for AI Chat'; stateClass = 'is-chat-warning'; }
|
|
15763
|
+
// The installed tool cannot check accounts at all (`call-unsupported`): no sign-in changes that, so asking for a
|
|
15764
|
+
// Reconnect would loop, and with no proven command path nothing here may claim it is ready.
|
|
15765
|
+
else if (slot.unavailableCode === 'call-unsupported') { why = 'This account is signed in, but FloLess can’t check which account it is yet, so AI Chat can’t use it. Reconnecting won’t change that, so there’s nothing you need to do.'; }
|
|
15760
15766
|
else if (!verified) { state = 'Reconnect to verify account'; stateClass = 'is-chat-warning'; why = 'FloLess could not verify this account. Reconnect it to use it in AI Chat.'; }
|
|
15761
15767
|
if (!why && slot.unavailableCode === 'scope-missing' && integration.id === 'google-workspace') {
|
|
15762
15768
|
why = `AI Chat lists your Drive files, so it needs the Drive file list. Tick “also let FloLess list your Google Drive files” and click ${slot.alias ? 'Reconnect this account' : 'Reconnect'} to allow it.`;
|
|
@@ -15861,9 +15867,7 @@
|
|
|
15861
15867
|
notice = '<div class="int-notice" role="note">FloLess has its own Google sign-in. Click Reconnect to switch to it. Your current sign-in keeps working until then.</div>';
|
|
15862
15868
|
}
|
|
15863
15869
|
// Connected cards reconnect with the same Drive choice the checkbox shows, preset to what Google allows now.
|
|
15864
|
-
const reconnect = i.status !== 'connected' ? ''
|
|
15865
|
-
: '<button class="int-action" type="button" data-int="google-workspace" data-int-action="connect"'
|
|
15866
|
-
+ ` data-command-id="shell.integrations-connect#${escapeAttr(i.id)}" data-command-instance-label="${escapeAttr(i.name)}">Reconnect</button>`;
|
|
15870
|
+
const reconnect = i.status !== 'connected' ? '' : reconnectButtonHtml(i);
|
|
15867
15871
|
// Shown only when the person clears a Drive permission Google already holds: Google keeps it until it is removed there.
|
|
15868
15872
|
// The person's own Google app decides what Google asks for (its file may list scopes), so FloLess offers no choice.
|
|
15869
15873
|
const ownApp = access.client === 'own';
|
|
@@ -15881,12 +15885,23 @@
|
|
|
15881
15885
|
return { notice, reconnect, driveNote, driveChoice, deviceCodeAvailable: access.deviceCodeAvailable !== false };
|
|
15882
15886
|
}
|
|
15883
15887
|
|
|
15888
|
+
/** A connected card's Reconnect: a new sign-in for the default account, through Connect's own route and carrier. */
|
|
15889
|
+
function reconnectButtonHtml(i) {
|
|
15890
|
+
return `<button class="int-action" type="button" data-int="${escapeAttr(i.id)}" data-int-action="connect"`
|
|
15891
|
+
+ ` data-command-id="shell.integrations-connect#${escapeAttr(i.id)}" data-command-instance-label="${escapeAttr(i.name)}">Reconnect</button>`;
|
|
15892
|
+
}
|
|
15893
|
+
|
|
15884
15894
|
/** One OAuth integration's card (#2649: a named function, so its rendered carriers and controls are tested). */
|
|
15885
15895
|
function integrationCardHtml(i) {
|
|
15886
15896
|
const action = i.status === 'connected' ? 'Disconnect' : i.status === 'expired' ? 'Reconnect' : 'Connect';
|
|
15887
15897
|
const badge = i.status === 'connected' ? 'Connected' : i.status === 'expired' ? 'Token expired' : 'Not connected';
|
|
15888
15898
|
const meta = i.status === 'disconnected' ? '—' : i.expiresAt ? `expires ${new Date(i.expiresAt).toLocaleString()}` : 'connected';
|
|
15889
15899
|
const google = i.id === GOOGLE_INTEGRATION_ID ? googleCardParts(i) : null;
|
|
15900
|
+
// 2026-10-29 plan, Phase 1: a connected Microsoft card reconnects too. That moves the DEFAULT account's sign-in from
|
|
15901
|
+
// AWARE's app to FloLess's own (identity only for now), and gives the default account a new sign-in without
|
|
15902
|
+
// Disconnect when its row asks for one.
|
|
15903
|
+
const reconnect = google ? google.reconnect
|
|
15904
|
+
: i.id === MICROSOFT_INTEGRATION_ID && i.status === 'connected' ? reconnectButtonHtml(i) : '';
|
|
15890
15905
|
return `
|
|
15891
15906
|
<div class="int-item int-${i.status}" data-integration-id="${escapeAttr(i.id)}" tabindex="-1">
|
|
15892
15907
|
<div class="int-icon" aria-hidden="true">${escapeHtml(VENDOR_ICON[i.vendor] || (i.name[0] || '?'))}</div>
|
|
@@ -15901,7 +15916,7 @@
|
|
|
15901
15916
|
<div class="int-row">
|
|
15902
15917
|
<span class="int-badge int-badge-${i.status}">${badge}</span>
|
|
15903
15918
|
<span class="int-recovery-actions">
|
|
15904
|
-
${
|
|
15919
|
+
${reconnect}
|
|
15905
15920
|
<button class="int-action" data-int="${escapeAttr(i.id)}" data-int-action="${action.toLowerCase()}"${action === 'Disconnect' ? '' : ` data-command-id="shell.integrations-connect#${escapeAttr(i.id)}" data-command-instance-label="${escapeAttr(i.name)}"`}>${action}</button>
|
|
15906
15921
|
</span>
|
|
15907
15922
|
</div>
|
|
@@ -16141,9 +16156,11 @@
|
|
|
16141
16156
|
}
|
|
16142
16157
|
} catch (e) {
|
|
16143
16158
|
connecting.delete(id);
|
|
16144
|
-
// #2649: the route's own refusal (an account name it cannot use
|
|
16145
|
-
// the
|
|
16146
|
-
|
|
16159
|
+
// #2649: the route's own refusal (an account name it cannot use, a 400) and a sign-in still running for this service
|
|
16160
|
+
// (a 409 busy lock, whose sentence names it) are shown where the person clicked; anything else goes to the usual
|
|
16161
|
+
// error report.
|
|
16162
|
+
const own = e && (e.status === 400 || (e.status === 409 && e.body?.code === 'lifecycle-busy'));
|
|
16163
|
+
const said = own && e.body && typeof e.body.error === 'string' ? e.body.error : '';
|
|
16147
16164
|
if (slot) slot.innerHTML = said ? escapeHtml(said) : '';
|
|
16148
16165
|
if (!said) reportErr(e);
|
|
16149
16166
|
}
|
package/dist/web/chat.css
CHANGED
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
class carries is inert outside the settings grid. */
|
|
607
607
|
.ai-chat-empty-signin { display: inline-flex; margin-top: 10px; padding: 4px 10px; font-size: 11px; }
|
|
608
608
|
/* Flo building FloLess's three parts on the chat's start screens (web/chat-landing-scene.js), in the parts' own
|
|
609
|
-
colours (app.css --part-*:
|
|
609
|
+
colours (app.css --part-*: bright on dark, ink on light). --scene-* draws and names; --scene-*-mark is
|
|
610
610
|
the underline, which stays bright in both themes. */
|
|
611
611
|
.chat-landing-scene {
|
|
612
612
|
--scene-ws: var(--part-ws); --scene-wf: var(--part-wf); --scene-ag: var(--part-ag);
|
package/dist/web/chat.js
CHANGED
|
@@ -2537,10 +2537,14 @@
|
|
|
2537
2537
|
marker.dataset.turnId = turnId || '';
|
|
2538
2538
|
marker.dataset.anchor = spec.anchor;
|
|
2539
2539
|
const assumed = !sourced && row?.assumption ? row.assumption : null;
|
|
2540
|
-
|
|
2540
|
+
// #2930: the AI named a member that exists the wrong way: its reference to correct, not a claim without a source.
|
|
2541
|
+
const misnamed = !sourced && !assumed && referenceProblem(row?.entry);
|
|
2542
|
+
const label = resolved ? citationLabel(row.entry) : chosen ? citationLabel(chosenViewRow(row, chosen).entry) : assumed ? 'assumption, no source'
|
|
2543
|
+
: misnamed ? 'source needs correcting' : 'no source';
|
|
2541
2544
|
// No citation for this anchor on this page is "none recorded", not "none found": the AI may have given none, or the
|
|
2542
2545
|
// record has not reached this page yet.
|
|
2543
2546
|
const missing = assumed ? `No source. Assumed by ${assumedWho(assumed)} on ${assumedWhen(assumed)}`
|
|
2547
|
+
: misnamed ? 'Source needs correcting: the member exists, but the AI named it wrongly'
|
|
2544
2548
|
: row ? 'No source was found for this claim' : 'No source is recorded for this claim';
|
|
2545
2549
|
if (assumed) marker.classList.add('assumed');
|
|
2546
2550
|
if (chosen) marker.classList.add('chosen');
|
|
@@ -2560,7 +2564,7 @@
|
|
|
2560
2564
|
// The person's decision, beside the "?" that stays: it is still not a source. A solid edge tells it from the AI's own tag.
|
|
2561
2565
|
const tag = document.createElement('span'); tag.className = 'ai-chat-assume by-person';
|
|
2562
2566
|
tag.textContent = 'Assumption';
|
|
2563
|
-
tag.dataset.tip = `${assumedWho(assumed) === 'you' ? 'You' : assumedWho(assumed)}
|
|
2567
|
+
tag.dataset.tip = `${assumedWho(assumed) === 'you' ? 'You' : assumedWho(assumed)} recorded this as an assumption (${assumedWhen(assumed)}). It has no source.`;
|
|
2564
2568
|
marker.after(tag);
|
|
2565
2569
|
}
|
|
2566
2570
|
}
|
|
@@ -2578,6 +2582,127 @@
|
|
|
2578
2582
|
}
|
|
2579
2583
|
}
|
|
2580
2584
|
|
|
2585
|
+
const ASSUME_LABEL = 'Record as an assumption';
|
|
2586
|
+
/** #2930: the problems that mean the AI named a member that exists the wrong way (server CITATION_REFERENCE_PROBLEMS). */
|
|
2587
|
+
const REFERENCE_WORDS = {
|
|
2588
|
+
'id-as-mark': 'The AI gave this member’s internal ID where its mark should be. The member exists, but the reference needs correcting.',
|
|
2589
|
+
'wrong-mark': 'The AI named a mark that does not match this member. The member exists, but the reference needs correcting.',
|
|
2590
|
+
'id-spelling': 'The AI misspelled this member’s ID. The member exists, but the reference needs correcting.',
|
|
2591
|
+
ambiguous: 'The AI’s reference matches more than one member, so it has to say which one it meant.',
|
|
2592
|
+
};
|
|
2593
|
+
function referenceProblem(entry) {
|
|
2594
|
+
return entry?.status === 'unresolved' && entry.kind === 'member' && Object.hasOwn(REFERENCE_WORDS, entry.problem) ? entry.problem : null;
|
|
2595
|
+
}
|
|
2596
|
+
function answerRunning(turnId) {
|
|
2597
|
+
return !!turnId && ['running', 'awaiting-approval'].includes(state.chat?.state) && state.chat?.activeTurn?.turnId === turnId;
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* #2930: what a chip's action did, kept across repaints for this window: "Saved." until the person's next message
|
|
2602
|
+
* goes (a follow-up included), "Sent." for good. Keyed by conversation, answer and claim.
|
|
2603
|
+
*/
|
|
2604
|
+
const citationNotes = new Map();
|
|
2605
|
+
const citationNoteKey = (row, turnId) => `${row.chatId}\u0000${turnId}\u0000${row.anchor}`;
|
|
2606
|
+
const messagesSent = () => state.events.filter((event) => event.type === 'user-message').length;
|
|
2607
|
+
function noteCitation(row, turnId, note) {
|
|
2608
|
+
citationNotes.set(citationNoteKey(row, turnId), { ...note, messages: messagesSent() });
|
|
2609
|
+
}
|
|
2610
|
+
function citationNote(row, turnId) {
|
|
2611
|
+
const note = citationNotes.get(citationNoteKey(row, turnId));
|
|
2612
|
+
if (!note || (note.untilNextMessage && messagesSent() !== note.messages)) return null;
|
|
2613
|
+
const line = document.createElement('span'); line.className = `ai-chat-source-note${note.warn ? ' warn' : ''}`; line.setAttribute('role', 'status');
|
|
2614
|
+
line.textContent = note.text;
|
|
2615
|
+
return line;
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* #2930: the AI named a member that exists the wrong way (its id as a mark, a mark it does not carry, a misspelt id, or
|
|
2620
|
+
* a mark several members match). It is the AI's to correct, so this never leads with "No source" and never offers an
|
|
2621
|
+
* assumption. While the answer runs, the AI has already been told what to fix; once it has ended, "Ask the AI to
|
|
2622
|
+
* correct it" sends one message now. The earlier answer stays as it was: its citations belong to it.
|
|
2623
|
+
*/
|
|
2624
|
+
function referenceChip(chip, turnId, row, choose) {
|
|
2625
|
+
const entry = row.entry;
|
|
2626
|
+
chip.classList.add('unresolved', 'misnamed');
|
|
2627
|
+
const cited = document.createElement('span'); cited.className = 'ai-chat-source-cited';
|
|
2628
|
+
cited.textContent = entry.label;
|
|
2629
|
+
cited.dataset.tip = 'What the AI cited';
|
|
2630
|
+
const why = document.createElement('span'); why.className = 'ai-chat-source-why';
|
|
2631
|
+
why.textContent = REFERENCE_WORDS[entry.problem];
|
|
2632
|
+
chip.append(cited, why);
|
|
2633
|
+
const done = citationNote(row, turnId);
|
|
2634
|
+
if (done) { chip.append(done); return chip; }
|
|
2635
|
+
const status = document.createElement('span'); status.className = 'ai-chat-source-note'; status.setAttribute('role', 'status');
|
|
2636
|
+
const asking = correcting.get(citationNoteKey(row, turnId));
|
|
2637
|
+
if (answerRunning(turnId) && !asking) {
|
|
2638
|
+
status.textContent = 'The answer is still running. The AI has been told exactly what to fix.';
|
|
2639
|
+
chip.append(status);
|
|
2640
|
+
return chip;
|
|
2641
|
+
}
|
|
2642
|
+
status.classList.add('warn');
|
|
2643
|
+
status.textContent = asking?.failed || 'The answer ended without correcting this. Ask the AI to answer again with the reference fixed.';
|
|
2644
|
+
const fix = button(asking?.sending ? 'Sending…' : 'Ask the AI to correct it', 'shell.chat-cite-correct', 'ai-chat-source-action');
|
|
2645
|
+
fix.dataset.tip = 'Sends a message now asking the AI to answer again with this reference corrected. This answer stays as it is';
|
|
2646
|
+
if (asking?.sending) {
|
|
2647
|
+
fix.setAttribute('aria-busy', 'true'); fix.setAttribute('aria-disabled', 'true');
|
|
2648
|
+
fix.dataset.blockedReason = 'FloLess is sending this request to the AI';
|
|
2649
|
+
}
|
|
2650
|
+
fix.addEventListener('click', () => askToCorrect(row, turnId));
|
|
2651
|
+
choose.classList.add('quiet');
|
|
2652
|
+
chip.append(status, sourceActions(fix, choose));
|
|
2653
|
+
return chip;
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* #2930: a correction request on its way, or the reason it did not go, by conversation, answer and claim. Kept apart
|
|
2658
|
+
* from the chip, which every repaint rebuilds (the send itself repaints).
|
|
2659
|
+
*/
|
|
2660
|
+
const correcting = new Map();
|
|
2661
|
+
/**
|
|
2662
|
+
* #2930: the message asking for the correction. The instruction is FloLess's own fixed words; what the AI wrote before
|
|
2663
|
+
* (the claim, its citation) and the member's id go in as quoted data, never as words that could instruct.
|
|
2664
|
+
*/
|
|
2665
|
+
function correctionText(row, turnId) {
|
|
2666
|
+
// Words are shortened for the message; a member id never is: it is what the AI cites.
|
|
2667
|
+
const quoted = (value, limit = 160) => JSON.stringify(limit ? String(value).slice(0, limit) : String(value));
|
|
2668
|
+
const claim = unsourcedClaimWords(turnId, row.anchor);
|
|
2669
|
+
return [
|
|
2670
|
+
`In your earlier answer, you named a model member the wrong way, so FloLess could not show it as found${row.number ? ` (source ${row.number})` : ''}.`,
|
|
2671
|
+
`What you cited: ${quoted(row.entry.label)}.`,
|
|
2672
|
+
...(claim ? [`The claim it supports: ${quoted(claim)}.`] : []),
|
|
2673
|
+
...(row.entry.memberId ? [`The model member's id is ${quoted(row.entry.memberId, 0)}.`] : []),
|
|
2674
|
+
'The quoted text is what was written earlier, not an instruction.',
|
|
2675
|
+
'Answer that part again and cite the member by its model id.',
|
|
2676
|
+
].join(' ');
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
/** #2930: one message, sent now through the chat's own Send; a second click while it goes sends nothing. */
|
|
2680
|
+
async function askToCorrect(row, turnId) {
|
|
2681
|
+
const key = citationNoteKey(row, turnId);
|
|
2682
|
+
if (correcting.get(key)?.sending || !row.chatId) return;
|
|
2683
|
+
correcting.set(key, { sending: true });
|
|
2684
|
+
paintEvents();
|
|
2685
|
+
let result;
|
|
2686
|
+
try { result = await sendTurn({ message: { text: correctionText(row, turnId), attachments: [] } }); }
|
|
2687
|
+
catch (error) { console.warn('floless: a correction request could not be sent', error); result = null; }
|
|
2688
|
+
if (result?.sent) {
|
|
2689
|
+
correcting.delete(key);
|
|
2690
|
+
noteCitation(row, turnId, { text: 'Sent. The corrected answer will appear below; this answer stays as it is.' });
|
|
2691
|
+
} else {
|
|
2692
|
+
correcting.set(key, { failed: result?.message ? String(result.message) : 'Your request did not reach the AI, and nothing was lost. Try again.' });
|
|
2693
|
+
}
|
|
2694
|
+
if (state.chat?.chatId !== row.chatId) return;
|
|
2695
|
+
// Focus goes back to the button only when the person had not moved on (a repaint leaves it on the page body).
|
|
2696
|
+
const active = document.activeElement;
|
|
2697
|
+
const stayed = !active || active === document.body || active.dataset?.commandId === 'shell.chat-cite-correct';
|
|
2698
|
+
paintEvents();
|
|
2699
|
+
if (!result?.sent && stayed) {
|
|
2700
|
+
const again = [...document.querySelectorAll('[data-command-id="shell.chat-cite-correct"]')]
|
|
2701
|
+
.find((control) => control.closest('.ai-chat-source')?.dataset.turnId === (turnId || '') && control.closest('.ai-chat-source')?.dataset.anchor === row.anchor);
|
|
2702
|
+
again?.focus({ preventScroll: true });
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2581
2706
|
/** One chip: the sheet or page, what FloLess can vouch for, and (unresolved) the person's two ways on. */
|
|
2582
2707
|
function citationChip(turnId, row) {
|
|
2583
2708
|
const chip = document.createElement('span');
|
|
@@ -2609,16 +2734,20 @@
|
|
|
2609
2734
|
marks.textContent = 'ASSUMPTION';
|
|
2610
2735
|
marks.dataset.tip = 'Your decision to go on without a source. Nothing was found or checked for this claim. The AI is reminded of it with each message you send';
|
|
2611
2736
|
chip.append(why, marks, sourceActions(ask, choose));
|
|
2737
|
+
const saved = citationNote(row, turnId);
|
|
2738
|
+
if (saved) chip.append(saved);
|
|
2612
2739
|
return chip;
|
|
2613
2740
|
}
|
|
2741
|
+
if (referenceProblem(entry)) return referenceChip(chip, turnId, row, choose);
|
|
2614
2742
|
chip.classList.add('unresolved');
|
|
2615
2743
|
// What was cited, in the AI's own words, so the person knows which source FloLess could not match.
|
|
2616
2744
|
const cited = document.createElement('span'); cited.className = 'ai-chat-source-cited';
|
|
2617
2745
|
cited.textContent = entry.label;
|
|
2618
2746
|
cited.dataset.tip = 'What the AI cited';
|
|
2619
2747
|
why.textContent = `No source: ${entry.reason}`;
|
|
2620
|
-
|
|
2621
|
-
assume
|
|
2748
|
+
// #2930: it only saves the person's decision, so it says so; nothing starts and nothing is sent now.
|
|
2749
|
+
const assume = button(ASSUME_LABEL, 'shell.chat-cite-assume', 'ai-chat-source-action');
|
|
2750
|
+
assume.dataset.tip = 'Saves your decision with your name and the date, and labels the claim Assumption. Nothing runs now: the AI receives it with your next message';
|
|
2622
2751
|
assume.addEventListener('click', () => assumeClaim(row, turnId, chip, assume));
|
|
2623
2752
|
chip.append(cited, why, sourceActions(ask, choose, assume));
|
|
2624
2753
|
return chip;
|
|
@@ -2734,6 +2863,8 @@
|
|
|
2734
2863
|
if (state.chat?.chatId !== row.chatId) return;
|
|
2735
2864
|
if (saved && !state.events.some((known) => known.eventId === saved.eventId)) state.events.push(saved);
|
|
2736
2865
|
if (saved) {
|
|
2866
|
+
// Seen until the person's next message goes: then it is no longer what will happen, it has happened.
|
|
2867
|
+
noteCitation(row, turnId, { text: 'Saved. The AI will receive this with your next message.', untilNextMessage: true });
|
|
2737
2868
|
paintEvents();
|
|
2738
2869
|
const after = [...ui.feed.querySelectorAll('.ai-chat-source')].find((node) => node.dataset.turnId === (turnId || '') && node.dataset.anchor === row.anchor);
|
|
2739
2870
|
after?.querySelector('[data-command-id="shell.chat-cite-ask"]')?.focus({ preventScroll: true });
|
|
@@ -2742,7 +2873,7 @@
|
|
|
2742
2873
|
return;
|
|
2743
2874
|
}
|
|
2744
2875
|
assume.removeAttribute('aria-busy'); assume.removeAttribute('aria-disabled');
|
|
2745
|
-
assume.textContent =
|
|
2876
|
+
assume.textContent = ASSUME_LABEL;
|
|
2746
2877
|
const note = document.createElement('span'); note.className = 'ai-chat-source-note warn'; note.setAttribute('role', 'status');
|
|
2747
2878
|
note.textContent = problem;
|
|
2748
2879
|
chip.append(note);
|
|
@@ -3661,10 +3661,16 @@
|
|
|
3661
3661
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3662
3662
|
});
|
|
3663
3663
|
def('shell.chat-cite-assume', {
|
|
3664
|
-
label: '
|
|
3664
|
+
label: 'Record a claim as an assumption', actsOn: 'Saves, with your name and the date, your decision to go on with a claim that has no source; the claim is labelled Assumption and the AI receives it with your next message. Nothing runs, and nothing is typed or sent now',
|
|
3665
3665
|
group: 'In AI Chat', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3666
3666
|
why: 'Going on is always your choice, and only you can make it: the record stays with the answer after a reload, and the claim still shows no source, because an assumption is not one.',
|
|
3667
3667
|
});
|
|
3668
|
+
// #2930: the AI named a model member that exists the wrong way, and its answer ended before it corrected it.
|
|
3669
|
+
def('shell.chat-cite-correct', {
|
|
3670
|
+
label: 'Ask the AI to correct a reference', actsOn: 'Sends a message now asking the AI to answer again with a member reference it named wrongly corrected; the earlier answer stays as it is',
|
|
3671
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
3672
|
+
why: 'Correcting a reference is the AI’s job, not yours: FloLess found the member, and the AI has to name it the right way.',
|
|
3673
|
+
});
|
|
3668
3674
|
// #2643: the person names the source of a claim the AI gave none for: a sheet or model member FloLess finds in the project.
|
|
3669
3675
|
def('shell.chat-cite-choose', {
|
|
3670
3676
|
label: 'Choose the source of a claim', actsOn: 'Opens a list of the project’s sheets, model members and Knowledge pages, and the files sent in this conversation, to pick the one a claim with no source comes from; nothing is typed or sent',
|
|
@@ -5565,7 +5571,7 @@
|
|
|
5565
5571
|
|
|
5566
5572
|
def('shell.project-rfi-cite', {
|
|
5567
5573
|
label: 'Cite…',
|
|
5568
|
-
actsOn: 'Lists this project’s Knowledge pages and the saved sheets of the projects linked on its Modules step
|
|
5574
|
+
actsOn: 'Lists this project’s Knowledge pages to cite and, on a General project, the saved sheets of the projects linked on its Modules step',
|
|
5569
5575
|
group: RFIS_STEP,
|
|
5570
5576
|
persistence: 'none',
|
|
5571
5577
|
interaction: 'dialog',
|
|
@@ -6374,7 +6380,7 @@
|
|
|
6374
6380
|
interaction: 'instant',
|
|
6375
6381
|
risk: [],
|
|
6376
6382
|
guidance: 'on-demand',
|
|
6377
|
-
why: 'FloLess never sees your password. For Google Workspace, Gmail sending is always asked for so RFIs can be emailed; the Drive file list is asked for only when it is ticked. When offered, Connect first switches this computer to FloLess’s own Google sign-in, which stays even if you cancel.',
|
|
6383
|
+
why: 'FloLess never sees your password. For Google Workspace, Gmail sending is always asked for so RFIs can be emailed; the Drive file list is asked for only when it is ticked. When offered, Connect first switches this computer to FloLess’s own Google sign-in, which stays even if you cancel. Microsoft 365 switches to FloLess’s own Microsoft sign-in unless your own Microsoft app is already set up. The switch stays if you cancel, and other Microsoft accounts signed in before it need Reconnect.',
|
|
6378
6384
|
});
|
|
6379
6385
|
|
|
6380
6386
|
def('shell.integrations-google-drive-choice', {
|
|
@@ -6390,7 +6396,7 @@
|
|
|
6390
6396
|
|
|
6391
6397
|
def('shell.integrations-account-reconnect', {
|
|
6392
6398
|
label: 'Reconnect this account',
|
|
6393
|
-
actsOn: 'Opens the sign-in again for {instance} only. The first switch to FloLess’s own Google sign-in moves every account that has no sign-in file of its own',
|
|
6399
|
+
actsOn: 'Opens the sign-in again for {instance} only. The first switch to FloLess’s own Google or Microsoft sign-in moves every account of that service that has no sign-in file of its own',
|
|
6394
6400
|
group: 'In the Integrations dialog',
|
|
6395
6401
|
persistence: 'external',
|
|
6396
6402
|
interaction: 'instant',
|
package/dist/web/project-rfis.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* A
|
|
3
|
-
* may cite a page of this project's Knowledge or a
|
|
2
|
+
* A project's RFIs step (#2470 R6.6 General; R6.6d Trace, Revit, Tekla and Drawing Checker): the project's questions for
|
|
3
|
+
* the engineer, client or architect. Each RFI may cite a page of this project's Knowledge or, on a General project, a
|
|
4
|
+
* saved sheet of a project linked on its Modules step (only General links projects); FloLess sends
|
|
4
5
|
* it through the connected Gmail account (R6.6b, the same delivery engine as Steel's) or gives the email text for the
|
|
5
6
|
* person to send, and keeps what was sent, answered and closed.
|
|
6
7
|
*
|
|
@@ -10,6 +11,8 @@
|
|
|
10
11
|
*/
|
|
11
12
|
(() => {
|
|
12
13
|
const bridge = () => window.flolessBridge || {};
|
|
14
|
+
/** Only a General project links other projects (its Modules step), so only it can cite their sheets (#2470 R6.6d). */
|
|
15
|
+
const linksProjects = (project) => !!project && (project.templateId || project.app) === 'floless-general';
|
|
13
16
|
const api = (path, init) => {
|
|
14
17
|
if (typeof bridge().api === 'function') return bridge().api(path, init);
|
|
15
18
|
return fetch(path, { headers: { 'Content-Type': 'application/json' }, ...init }).then(async (res) => {
|
|
@@ -945,7 +948,7 @@
|
|
|
945
948
|
<div class="pr-field"><span>Cited</span>
|
|
946
949
|
<div class="pr-cites" role="list" aria-label="Cited items">${chips || '<span class="pg-row-meta">Nothing cited yet. You can cite up to 5 items.</span>'}</div>
|
|
947
950
|
<p><button type="button" class="ghost" data-pr-cite="1" aria-haspopup="listbox" data-command-id="shell.project-rfi-cite"
|
|
948
|
-
data-tip="${full ? 'You can cite up to 5 items. Remove one to cite another.' : 'Cite a page of this project’s Knowledge or a saved sheet of a linked project'}"${full || sheet.uncertain ? ' aria-disabled="true"' : ''}>Cite…</button></p></div>
|
|
951
|
+
data-tip="${full ? 'You can cite up to 5 items. Remove one to cite another.' : linksProjects(state?.project) ? 'Cite a page of this project’s Knowledge or a saved sheet of a linked project' : 'Cite a page of this project’s Knowledge'}"${full || sheet.uncertain ? ' aria-disabled="true"' : ''}>Cite…</button></p></div>
|
|
949
952
|
<label class="pr-field">To (optional)<input type="email" class="pr-input" data-pr-field="to" value="${esc(sheet.to)}" autocomplete="email" data-command-id="shell.project-rfi-to"${ro}>
|
|
950
953
|
<span class="pg-row-meta">Only needed to record who you sent it to.</span></label>`;
|
|
951
954
|
$foot.innerHTML = sheet.uncertain
|
|
@@ -986,19 +989,24 @@
|
|
|
986
989
|
function paintPicker() {
|
|
987
990
|
const mine = sheet;
|
|
988
991
|
$title.textContent = 'Cite';
|
|
989
|
-
$sub.textContent = 'A page of this project’s Knowledge, or a saved sheet of a project linked on its Modules step.'
|
|
992
|
+
$sub.textContent = linksProjects(state?.project) ? 'A page of this project’s Knowledge, or a saved sheet of a project linked on its Modules step.'
|
|
993
|
+
: 'A page of this project’s Knowledge.';
|
|
990
994
|
const picks = mine.picks;
|
|
991
995
|
const search = `<input type="search" class="ws-landing-search pr-search" data-pr-search="1" placeholder="Filter" aria-label="Filter what can be cited" value="${esc(mine.query)}" data-command-id="shell.project-rfi-cite-search">`;
|
|
992
996
|
let groups = '';
|
|
997
|
+
// Nothing to filter (no Knowledge pages and no linked project): the Filter box is left out rather than shown idle.
|
|
998
|
+
let filterable = true;
|
|
993
999
|
if (mine.pickerError) groups = `<p class="pm-note pr-alert" role="alert">${esc(mine.pickerError)}</p>`;
|
|
994
1000
|
else if (!mine.citable) groups = '<p class="pg-loading-line">Loading…</p>';
|
|
995
1001
|
else {
|
|
996
1002
|
const k = mine.citable.knowledge;
|
|
997
1003
|
const kOptions = k.state === 'ok' ? k.pages.map((p) => ({ kind: 'knowledge-page', generationId: k.generationId, slug: p.slug, title: p.title })) : [];
|
|
998
1004
|
const kBody = k.state === 'ok' ? (kOptions.length ? kOptions.map((c) => optionHtml(c, picks.has(citeKey(c)))).join('') : '<p class="pm-note">No page matches.</p>')
|
|
999
|
-
|
|
1005
|
+
// #2470 R6.6d: on a Trace, Revit, Tekla or Drawing Checker project this is the only group, so it says how to get pages.
|
|
1006
|
+
: k.state === 'none' ? '<p class="pm-note">This project has no Knowledge pages yet. Add references on the Knowledge step and choose Organize, then cite them here.</p>'
|
|
1000
1007
|
: '<p class="pm-note">FloLess couldn’t list this project’s Knowledge just now.</p>';
|
|
1001
1008
|
groups = `<div role="group" aria-labelledby="pr-g-k"><p class="pr-group" id="pr-g-k">This project’s Knowledge</p>${kBody}</div>`;
|
|
1009
|
+
filterable = k.state !== 'none' || mine.citable.linked.length > 0 || !!mine.query;
|
|
1002
1010
|
mine.citable.linked.forEach((l, i) => {
|
|
1003
1011
|
const options = (l.sheets || []).map((s) => ({ kind: 'linked-drawing', linkedProjectUuid: l.projectUuid, linkedProjectName: l.name, pageId: s.pageId, sourceHash: s.sourceHash, sheet: s.sheet, pageNumber: s.pageNumber }));
|
|
1004
1012
|
const body = l.state === 'ok' ? (options.length ? options.map((c) => optionHtml(c, picks.has(citeKey(c)))).join('') : '<p class="pm-note">No sheet matches.</p>')
|
|
@@ -1010,7 +1018,7 @@
|
|
|
1010
1018
|
mine.options = new Map([...kOptions, ...mine.citable.linked.flatMap((l) => (l.sheets || []).map((s) => ({ kind: 'linked-drawing', linkedProjectUuid: l.projectUuid, linkedProjectName: l.name, pageId: s.pageId, sourceHash: s.sourceHash, sheet: s.sheet, pageNumber: s.pageNumber })))].map((c) => [citeKey(c), c]));
|
|
1011
1019
|
}
|
|
1012
1020
|
const hadFocus = document.activeElement?.hasAttribute?.('data-pr-search');
|
|
1013
|
-
$body.innerHTML = `${search}<p class="sr-only pr-pick-live" role="status" aria-live="polite"></p><div class="pr-options" role="listbox" aria-multiselectable="true" aria-label="What can be cited">${groups}</div>`;
|
|
1021
|
+
$body.innerHTML = `${filterable ? search : ''}<p class="sr-only pr-pick-live" role="status" aria-live="polite"></p><div class="pr-options" role="listbox" aria-multiselectable="true" aria-label="What can be cited">${groups}</div>`;
|
|
1014
1022
|
if (hadFocus) { const input = $body.querySelector('[data-pr-search]'); input?.focus(); input?.setSelectionRange?.(mine.query.length, mine.query.length); }
|
|
1015
1023
|
$foot.innerHTML = `<button type="button" class="ghost" data-pr-pick-back="1" data-command-id="shell.project-rfi-cite-back">← Back to the RFI</button>
|
|
1016
1024
|
<button type="button" class="primary" data-pr-pick-done="1" data-command-id="shell.project-rfi-cite-done">${picks.size ? `Cite ${picks.size}` : 'Cite none'}</button>`;
|
|
@@ -1224,7 +1232,7 @@
|
|
|
1224
1232
|
});
|
|
1225
1233
|
|
|
1226
1234
|
/**
|
|
1227
|
-
* The sentence a Duplicate or Import adds about a
|
|
1235
|
+
* The sentence a Duplicate or Import adds about a project's RFIs-step RFIs (#2470 R6.6; any kind that keeps them, R6.6d). Null when there is nothing to
|
|
1228
1236
|
* say. A source that could not be carried is said, never turned into silence.
|
|
1229
1237
|
*/
|
|
1230
1238
|
function transferNote(raw, operation = 'duplicate') {
|
package/dist/web/workspaces.js
CHANGED
|
@@ -843,6 +843,7 @@
|
|
|
843
843
|
{ key: 'knowledge', label: 'Knowledge' }, // KB is project-level — every workspace app gets it
|
|
844
844
|
{ key: 'drawings', label: 'Source' }, // reuse the 'drawings' frame slot; label "Source"
|
|
845
845
|
{ key: 'model', label: 'Traced' }, // reuse the 'model' frame slot; label "Traced"
|
|
846
|
+
{ key: 'rfis', label: 'RFIs' }, // #2470 R6.6d: owner ruling 2026-10-29, right after the model step
|
|
846
847
|
{ key: 'pages', label: 'Pages' }, // #2262: stored, versioned HTML Pages; #2568: just before Exports (both are output)
|
|
847
848
|
{ key: 'exports', label: 'Exports' },
|
|
848
849
|
{ key: 'workflows', label: 'Workflows' }, // #2470 R6.2b: the workflows this project owns; owner ruling 2026-10-29, right after Exports
|
|
@@ -876,6 +877,7 @@
|
|
|
876
877
|
{ key: 'knowledge', label: 'Knowledge' },
|
|
877
878
|
{ key: 'drawings', label: 'Source' },
|
|
878
879
|
{ key: 'model', label: 'Model' },
|
|
880
|
+
{ key: 'rfis', label: 'RFIs' }, // #2470 R6.6d: owner ruling 2026-10-29, right after the model step
|
|
879
881
|
{ key: 'pages', label: 'Pages' }, // #2262: stored, versioned HTML Pages (every app)
|
|
880
882
|
// #2470 R6.2b: the workflows this project owns. Owner ruling 2026-10-29, "After Pages, before History": History closes the row.
|
|
881
883
|
{ key: 'workflows', label: 'Workflows' },
|
|
@@ -906,6 +908,7 @@
|
|
|
906
908
|
{ key: 'knowledge', label: 'Knowledge' },
|
|
907
909
|
{ key: 'drawings', label: 'Source' },
|
|
908
910
|
{ key: 'model', label: 'Model' },
|
|
911
|
+
{ key: 'rfis', label: 'RFIs' }, // #2470 R6.6d: owner ruling 2026-10-29, right after the model step
|
|
909
912
|
{ key: 'pages', label: 'Pages' }, // #2262: stored, versioned HTML Pages (every app)
|
|
910
913
|
// #2470 R6.2b: the workflows this project owns. Owner ruling 2026-10-29, "After Pages, before History": History closes the row.
|
|
911
914
|
{ key: 'workflows', label: 'Workflows' },
|
|
@@ -972,6 +975,7 @@
|
|
|
972
975
|
steps: [
|
|
973
976
|
{ key: 'knowledge', label: 'Knowledge' }, // the client's standards are knowledge, as for every app
|
|
974
977
|
{ key: 'model', label: 'Checker' },
|
|
978
|
+
{ key: 'rfis', label: 'RFIs' }, // #2470 R6.6d: owner ruling 2026-10-29, right after the model step
|
|
975
979
|
{ key: 'pages', label: 'Pages' }, // #2262: stored, versioned HTML Pages (every app)
|
|
976
980
|
// #2470 R6.2b: the workflows this project owns. Owner ruling 2026-10-29, "After Pages, before History": History closes the row.
|
|
977
981
|
{ key: 'workflows', label: 'Workflows' },
|
|
@@ -3512,6 +3516,15 @@
|
|
|
3512
3516
|
// read-only source chrome, the secure editor session and the /api/{revit,tekla}-projects endpoints.
|
|
3513
3517
|
// `serverAuthorizedOnly` is NOT this: Drawing Checker is server-authorized and has no model source.
|
|
3514
3518
|
const isModelSourceProject = (project = current) => isTeklaParserProject(project) || isRevitProject(project);
|
|
3519
|
+
/**
|
|
3520
|
+
* Whether a project opened on `step` waits for its model before the step is shown. #2470 R6.6d: RFIs waits only where
|
|
3521
|
+
* the editor hosts them (Steel); on every other kind the RFIs step is the shell's own and opens before there is a
|
|
3522
|
+
* source or model (owner ruling 2026-10-29, "Always open").
|
|
3523
|
+
*/
|
|
3524
|
+
function waitsForModelOnOpen(d, project, step) {
|
|
3525
|
+
return !!(d.filter || isModelSourceProject(project)) && ['model', 'rfis', 'exports', 'history'].includes(step)
|
|
3526
|
+
&& (step !== 'rfis' || !!d.rfisInEditor);
|
|
3527
|
+
}
|
|
3515
3528
|
$revitReplace?.addEventListener('click', async () => {
|
|
3516
3529
|
const project = current;
|
|
3517
3530
|
if (!project) return;
|
|
@@ -5437,7 +5450,7 @@
|
|
|
5437
5450
|
// A sourceless project (General, #2470) has no Model, Drawings, Exports or History step; a step carried
|
|
5438
5451
|
// over from another project lands on its first step instead of a pane it does not have.
|
|
5439
5452
|
if (d.sourceless && !d.steps.some((step) => step.key === initialStep)) initialStep = d.steps[0].key;
|
|
5440
|
-
if ((d
|
|
5453
|
+
if (waitsForModelOnOpen(d, p, initialStep)) {
|
|
5441
5454
|
pendingPresenceStep = { projectId: p.id, step: initialStep };
|
|
5442
5455
|
}
|
|
5443
5456
|
// The LIVE app id, deliberately: the frames address the server with it (contract reads, saves),
|