@floless/app 0.163.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 +37524 -36228
- package/dist/skills/floless-app-rfi/SKILL.md +25 -5
- package/dist/web/app.css +11 -5
- package/dist/web/aware.js +25 -8
- package/dist/web/chat.css +11 -1
- package/dist/web/chat.js +426 -41
- package/dist/web/commands-filter.js +35 -0
- package/dist/web/commands-shell.js +28 -11
- package/dist/web/commands-steel.js +9 -0
- package/dist/web/model-editor-steel-adapter.js +2 -0
- package/dist/web/project-rfis.js +68 -10
- package/dist/web/steel-3d-view.js +154 -0
- package/dist/web/steel-ai-marks.js +233 -0
- package/dist/web/steel-editor.html +509 -24
- package/dist/web/steel-filter-flo.js +225 -0
- package/dist/web/steel-filter.html +118 -4
- package/dist/web/workspaces.js +151 -21
- 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
|
|
|
@@ -8324,6 +8328,8 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
8324
8328
|
.ws-rfis .pr-filter[aria-pressed="true"] { color:var(--text); border-color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, transparent); }
|
|
8325
8329
|
.ws-rfis .pr-list { max-width:880px; }
|
|
8326
8330
|
.ws-rfis .pr-row { display:flex; flex-direction:column; align-items:stretch; gap:4px; }
|
|
8331
|
+
/* #2874: the RFI a chat message mentioned, outlined for a moment when it is opened from the chat. */
|
|
8332
|
+
.ws-rfis .pr-row.is-mentioned { outline:2px solid var(--accent); outline-offset:-2px; }
|
|
8327
8333
|
.ws-rfis .pr-row .pg-row-meta, .ws-rfis .pr-row .pm-note { white-space:normal; overflow:visible; }
|
|
8328
8334
|
.ws-rfis .pr-question { margin:2px 0 0; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.45; }
|
|
8329
8335
|
.ws-rfis .pr-answer { margin:4px 0 0; padding:6px 10px; border-left:2px solid var(--border-strong); background:var(--surface-2);
|
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);
|
|
@@ -1546,6 +1546,16 @@
|
|
|
1546
1546
|
.ai-chat-mention-status { padding: 6px 8px; color: var(--text-muted); font: 11px/1.4 var(--ui); }
|
|
1547
1547
|
.ai-chat-attachment.ai-chat-mention .ai-chat-subjects-label { color: var(--text); }
|
|
1548
1548
|
.ai-chat-message-subjects { align-self: flex-end; max-width: min(100%, 360px); color: var(--text-dim); font: 11px/1.4 var(--ui); text-align: right; overflow-wrap: anywhere; }
|
|
1549
|
+
/* #2874: the @ list's group headings (not options), a long page title on a chip, and a sent message's Mentioned items
|
|
1550
|
+
as inline links that open what they name. An item FloLess could not find stays plain, muted text. */
|
|
1551
|
+
.ai-chat-mention-group { padding: 6px 8px 2px; color: var(--text-dim); font: 600 10px/1.3 var(--ui); letter-spacing: .04em; text-transform: uppercase; }
|
|
1552
|
+
.ai-chat-mention-group:not(:first-child) { border-top: 1px solid var(--border); margin-top: 2px; }
|
|
1553
|
+
.ai-chat-attachment.ai-chat-mention .ai-chat-subjects-label { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1554
|
+
.ai-chat-mention-open { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline;
|
|
1555
|
+
text-underline-offset: 2px; cursor: pointer; }
|
|
1556
|
+
.ai-chat-mention-open:hover { color: var(--text); }
|
|
1557
|
+
.ai-chat-mention-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 2px; }
|
|
1558
|
+
.ai-chat-mention-unresolved { color: var(--text-dim); }
|
|
1549
1559
|
|
|
1550
1560
|
/* The Tekla model library carried over from a Graft receipt. It sits in the composer's rigid row,
|
|
1551
1561
|
above the input, and wraps rather than ellipsising: it states exactly what the binding permits,
|