@floless/app 0.162.1 → 0.164.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 +39748 -35132
- package/dist/schemas/steel.model.v2.schema.json +16 -2
- package/dist/skills/floless-app-actions/SKILL.md +54 -3
- package/dist/skills/floless-app-onboarding/SKILL.md +2 -2
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +8 -6
- package/dist/skills/floless-app-report-issue/SKILL.md +12 -1
- package/dist/skills/floless-app-rfi/SKILL.md +36 -9
- package/dist/skills/floless-app-steel-model/SKILL.md +5 -3
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +39 -34
- package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +10 -6
- package/dist/web/agents.js +24 -4
- package/dist/web/app.css +47 -7
- package/dist/web/app.js +22 -3
- package/dist/web/aware.js +157 -43
- package/dist/web/chat.css +36 -1
- package/dist/web/chat.js +322 -44
- package/dist/web/commands-filter.js +35 -0
- package/dist/web/commands-shell.js +208 -11
- package/dist/web/commands-steel.js +23 -0
- package/dist/web/failure-copy.js +168 -0
- package/dist/web/index.html +35 -1
- package/dist/web/instructor.js +3 -1
- package/dist/web/landing-sort.js +277 -0
- package/dist/web/model-editor-steel-adapter.js +5 -0
- package/dist/web/model-panel-bridge.js +13 -2
- package/dist/web/model-view-query.js +23 -15
- package/dist/web/project-access.js +3 -3
- package/dist/web/project-rfis.js +303 -10
- package/dist/web/project-workflows.js +1 -1
- package/dist/web/steel-3d-view.js +162 -1
- package/dist/web/steel-ai-marks.js +233 -0
- package/dist/web/steel-editor.html +950 -36
- package/dist/web/steel-filter-core.js +2 -0
- package/dist/web/steel-filter-flo.js +225 -0
- package/dist/web/steel-filter.html +156 -9
- package/dist/web/steel-model-v2-commands.js +3 -1
- package/dist/web/steel-profile-colours.js +124 -24
- package/dist/web/workspaces.js +380 -58
- package/package.json +1 -1
|
@@ -1088,6 +1088,32 @@
|
|
|
1088
1088
|
why: 'Archived workflows are put away, not deleted. Open the list to see them and use Restore on a card to bring one back.',
|
|
1089
1089
|
});
|
|
1090
1090
|
|
|
1091
|
+
// #2866: one Sort by control and one direction button on the Workspaces, Workflows and Agents landings.
|
|
1092
|
+
def('shell.landing-sort', {
|
|
1093
|
+
label: 'Sort by',
|
|
1094
|
+
actsOn: 'Chooses how the cards on the {instance} page are ordered inside each section: by name, by the date each was created, or by the date each last changed. Sections keep their order and stay open or closed as you left them',
|
|
1095
|
+
anyInstance: 'Workspaces, Workflows or Agents',
|
|
1096
|
+
group: 'On the landing pages',
|
|
1097
|
+
key: 'Enter, Space or Down arrow opens the list; Up and Down arrow move; Enter chooses; Esc closes',
|
|
1098
|
+
persistence: 'local',
|
|
1099
|
+
interaction: 'instant',
|
|
1100
|
+
risk: [],
|
|
1101
|
+
guidance: 'on-demand',
|
|
1102
|
+
why: 'Sorting only changes the order on screen; nothing is changed or saved in your projects, workflows or agents. FloLess remembers the choice for each page in this browser. A card with no recorded date, such as an installed workflow, is listed after the dated ones, by name.',
|
|
1103
|
+
});
|
|
1104
|
+
|
|
1105
|
+
def('shell.landing-sort-direction', {
|
|
1106
|
+
label: 'Sort direction',
|
|
1107
|
+
actsOn: 'Switches the cards on the {instance} page between A to Z and Z to A for names, or between oldest first and newest first for dates. Cards with no recorded date stay last, in name order',
|
|
1108
|
+
anyInstance: 'Workspaces, Workflows or Agents',
|
|
1109
|
+
group: 'On the landing pages',
|
|
1110
|
+
persistence: 'local',
|
|
1111
|
+
interaction: 'instant',
|
|
1112
|
+
risk: [],
|
|
1113
|
+
guidance: 'on-demand',
|
|
1114
|
+
why: 'Choosing another Sort by field starts it in its usual direction: names A to Z, dates newest first.',
|
|
1115
|
+
});
|
|
1116
|
+
|
|
1091
1117
|
def('shell.workflows-landing-search-clear', {
|
|
1092
1118
|
label: 'Clear search',
|
|
1093
1119
|
actsOn: 'Empties the workflow search and shows every workflow card again',
|
|
@@ -1520,7 +1546,33 @@
|
|
|
1520
1546
|
interaction: 'instant',
|
|
1521
1547
|
risk: [],
|
|
1522
1548
|
guidance: 'on-demand',
|
|
1523
|
-
why: 'Quick model: the AI answers the drawing questions itself, records every decision it makes, and labels the model as a Quick model. You still decide on the Drawing Filter and on the review. Precise model: the AI asks you, as usual.',
|
|
1549
|
+
why: 'Quick model: the AI answers the drawing questions itself, records every decision it makes, and labels the model as a Quick model. You still decide on the Drawing Filter, unless you let the AI choose it, and on the review. Precise model: the AI asks you, as usual.',
|
|
1550
|
+
});
|
|
1551
|
+
|
|
1552
|
+
// #2521 row 2c: with Quick, who decides the Drawing Filter for the first read.
|
|
1553
|
+
def('shell.project-filter-choice', {
|
|
1554
|
+
label: 'Drawing Filter: {instance}',
|
|
1555
|
+
anyInstance: 'Review and save it myself, or Let the AI choose',
|
|
1556
|
+
actsOn: 'With Quick model, chooses whether you review and save the Drawing Filter for the first read, or let the AI choose which sheets and areas are read',
|
|
1557
|
+
group: 'In the new project dialog',
|
|
1558
|
+
persistence: 'none',
|
|
1559
|
+
interaction: 'instant',
|
|
1560
|
+
risk: [],
|
|
1561
|
+
guidance: 'on-demand',
|
|
1562
|
+
why: 'The Drawing Filter decides which sheets, line weights, layers and colours the read uses. If the AI chooses it, the choice is recorded and labelled as the AI’s, never as your Save, and you can review it and save it yourself in the Drawing Filter later. Precise model always waits for your Save.',
|
|
1563
|
+
});
|
|
1564
|
+
|
|
1565
|
+
// #2521 row 2c, Revision 3 (owner ruling 2026-10-26): with "Let the AI choose", who approves what the read leaves out.
|
|
1566
|
+
def('shell.project-filter-exclusions', {
|
|
1567
|
+
label: 'What the read leaves out: {instance}',
|
|
1568
|
+
anyInstance: 'Let the AI approve them too, or I’ll approve them myself',
|
|
1569
|
+
actsOn: 'When the AI chooses the Drawing Filter, chooses whether it also approves the lines the read leaves out, or the read stops for you whenever its Filter leaves lines out',
|
|
1570
|
+
group: 'In the new project dialog',
|
|
1571
|
+
persistence: 'none',
|
|
1572
|
+
interaction: 'instant',
|
|
1573
|
+
risk: [],
|
|
1574
|
+
guidance: 'on-demand',
|
|
1575
|
+
why: 'The Filter also decides which lines the read leaves out, dismissed as a group without a reason for each. Letting the AI approve them keeps the Quick model quick, and its approval is recorded as its own. Keeping it yourself means the read waits for your Save whenever the AI’s Filter leaves lines out.',
|
|
1524
1576
|
});
|
|
1525
1577
|
|
|
1526
1578
|
// #2521 row 7b: the same choice when drawings are read into an existing Steel model project.
|
|
@@ -1965,7 +2017,7 @@
|
|
|
1965
2017
|
interaction: 'instant',
|
|
1966
2018
|
risk: [],
|
|
1967
2019
|
guidance: 'on-demand',
|
|
1968
|
-
why: 'The steps run left to right and depend on the kind of project — what it knows, what it was drawn from and its model when it has one,
|
|
2020
|
+
why: 'The steps run left to right and depend on the kind of project — what it knows, what it was drawn from and its model when it has one, what comes out, its workflows, and what happened.',
|
|
1969
2021
|
});
|
|
1970
2022
|
|
|
1971
2023
|
def('shell.export-run', {
|
|
@@ -2063,7 +2115,7 @@
|
|
|
2063
2115
|
interaction: 'instant',
|
|
2064
2116
|
risk: [],
|
|
2065
2117
|
guidance: 'on-demand',
|
|
2066
|
-
why: 'Collapse keeps a single status line and makes more room for the drawing. Expand shows all checks, warnings and next actions. Your choice lasts for this project in this window; the drawing read keeps running.',
|
|
2118
|
+
why: 'The chevron in the progress strip’s top-right corner points down while the strip is open and right while it is folded. Collapse keeps a single status line, in the same Done, Now, Heads up, Next order, and makes more room for the drawing. Expand shows all checks, warnings and next actions. Your choice lasts for this project in this window; the drawing read keeps running.',
|
|
2067
2119
|
});
|
|
2068
2120
|
|
|
2069
2121
|
def('shell.revision-filter-open', {
|
|
@@ -2564,6 +2616,10 @@
|
|
|
2564
2616
|
actsOn: 'Opens the Knowledge step, where the drawings you just attached are listed as an issue',
|
|
2565
2617
|
group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2566
2618
|
});
|
|
2619
|
+
def('shell.compile-refusal-ask-ai', {
|
|
2620
|
+
label: 'Ask AI to fix', actsOn: 'Writes a request to fix a workflow AWARE would not compile into AI Chat, with AWARE’s reason, for you to send',
|
|
2621
|
+
group: 'On the Workflows page', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2622
|
+
});
|
|
2567
2623
|
def('shell.report-ready-open', {
|
|
2568
2624
|
label: 'Open the report', actsOn: 'Opens the report a workflow run made while its viewer was closed',
|
|
2569
2625
|
group: 'On the Workflows page', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
|
|
@@ -2838,19 +2894,25 @@
|
|
|
2838
2894
|
why: 'A question sent with objects selected is linked to them, so selecting one later shows the question and opens it in chat.',
|
|
2839
2895
|
});
|
|
2840
2896
|
// #2438: @-mentions — the list of members and sheets, its rows, and the chips that go with the next message.
|
|
2897
|
+
// #2874: RFIs and Knowledge pages too, and each item of a sent message's Mentioned line opens what it names.
|
|
2841
2898
|
def('shell.chat-mention-pick', {
|
|
2842
|
-
label: 'Mention
|
|
2843
|
-
anyInstance: 'a member or
|
|
2844
|
-
why: 'Two members can share a mark. A mention names the one you picked, so the AI does not have to guess.',
|
|
2899
|
+
label: 'Mention something in this project', actsOn: 'Adds {instance} to your next message as a mention; FloLess tells the AI exactly which member, sheet, RFI or Knowledge page it is',
|
|
2900
|
+
anyInstance: 'a member, sheet, RFI or Knowledge page in the @ list', group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2901
|
+
why: 'Two members can share a mark, and a page title can read like a mark. A mention names the one you picked, so the AI does not have to guess.',
|
|
2845
2902
|
});
|
|
2846
2903
|
def('shell.chat-mention-retry', {
|
|
2847
|
-
label: 'List
|
|
2904
|
+
label: 'List what you can mention again', actsOn: 'Asks FloLess again for the project\'s members, sheets, RFIs and Knowledge pages after it could not list them',
|
|
2848
2905
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2849
2906
|
});
|
|
2850
2907
|
def('shell.chat-mention', {
|
|
2851
|
-
label: 'Mention in the next message', actsOn: 'Says which member or
|
|
2908
|
+
label: 'Mention in the next message', actsOn: 'Says which member, sheet, RFI or Knowledge page {instance} is, and that it goes with your next message',
|
|
2852
2909
|
anyInstance: 'a mention above the message box', group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2853
2910
|
});
|
|
2911
|
+
def('shell.chat-mention-open', {
|
|
2912
|
+
label: 'Open what a message mentioned', actsOn: 'Opens {instance}: a member in the model, an RFI on the RFIs step, a sheet\'s picture, or a Knowledge page at the version mentioned',
|
|
2913
|
+
anyInstance: 'an item of a sent message\'s Mentioned line', group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2914
|
+
why: 'It shows what the message named, as FloLess recorded it. A Knowledge page that changed since is said, never shown as the one mentioned.',
|
|
2915
|
+
});
|
|
2854
2916
|
def('shell.chat-mention-remove', {
|
|
2855
2917
|
label: 'Leave a mention out', actsOn: 'Sends your next message without {instance}',
|
|
2856
2918
|
anyInstance: 'a mention above the message box', group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
@@ -2925,7 +2987,7 @@
|
|
|
2925
2987
|
persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2926
2988
|
});
|
|
2927
2989
|
def('shell.workflow-draft-retry', {
|
|
2928
|
-
label: '
|
|
2990
|
+
label: 'Compile again', actsOn: 'Compiles this workflow again, after its file was fixed', group: 'On the Workflows page',
|
|
2929
2991
|
persistence: 'approved', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2930
2992
|
});
|
|
2931
2993
|
// ── #2007: the Agents tab ──
|
|
@@ -3637,11 +3699,16 @@
|
|
|
3637
3699
|
why: 'A person chose this source. No AI read is recorded for this choice, and nothing checked the claim. A sheet whose picture changed since is shown from its source drawing and says so.',
|
|
3638
3700
|
});
|
|
3639
3701
|
def('shell.chat-cite-close', {
|
|
3640
|
-
label: 'Close the
|
|
3702
|
+
label: 'Close the source you are viewing', actsOn: 'Closes the sheet, Knowledge page, member or file an answer cited, you chose or a message mentioned, and returns to the conversation',
|
|
3641
3703
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3642
3704
|
});
|
|
3643
3705
|
def('shell.chat-cite-open-knowledge', {
|
|
3644
|
-
label: 'Open
|
|
3706
|
+
label: 'Open the page in Knowledge', actsOn: 'Opens the project’s Knowledge on the page an answer cited, you chose or a message mentioned, at that version',
|
|
3707
|
+
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3708
|
+
});
|
|
3709
|
+
// #2874: a mentioned page FloLess no longer holds at that version opens as it is now, and says so.
|
|
3710
|
+
def('shell.chat-mention-open-current-knowledge', {
|
|
3711
|
+
label: 'Open the current page in Knowledge', actsOn: 'Opens the project’s Knowledge on the page a message mentioned, as it is now, because FloLess no longer holds the version that was mentioned',
|
|
3645
3712
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3646
3713
|
});
|
|
3647
3714
|
// #2471: a cited member, shown in the project's model; a cited file, opened in the app it belongs to.
|
|
@@ -5186,6 +5253,136 @@
|
|
|
5186
5253
|
why: 'Use this only after finding the reference line in the right account’s Sent folder. It records that check and sends nothing. Until then the RFI is held, so its history stays true.',
|
|
5187
5254
|
});
|
|
5188
5255
|
|
|
5256
|
+
def('shell.project-rfis-gmail-settle', {
|
|
5257
|
+
label: 'I didn’t find {instance}…',
|
|
5258
|
+
actsOn: 'Opens the ways out of a Gmail send FloLess couldn’t confirm: send it again, record that you sent it another way, or leave it unconfirmed',
|
|
5259
|
+
anyInstance: 'an RFI',
|
|
5260
|
+
group: RFIS_STEP,
|
|
5261
|
+
persistence: 'none',
|
|
5262
|
+
interaction: 'instant',
|
|
5263
|
+
risk: [],
|
|
5264
|
+
guidance: 'on-demand',
|
|
5265
|
+
});
|
|
5266
|
+
|
|
5267
|
+
def('shell.project-rfis-gmail-leave-earlier', {
|
|
5268
|
+
label: 'Leave the earlier send of {instance} unconfirmed…',
|
|
5269
|
+
actsOn: 'Opens the one way out of an earlier Gmail send that still holds the RFI: leave it unconfirmed',
|
|
5270
|
+
anyInstance: 'an RFI',
|
|
5271
|
+
group: RFIS_STEP,
|
|
5272
|
+
persistence: 'none',
|
|
5273
|
+
interaction: 'instant',
|
|
5274
|
+
risk: [],
|
|
5275
|
+
guidance: 'on-demand',
|
|
5276
|
+
});
|
|
5277
|
+
|
|
5278
|
+
def('shell.project-rfi-settle-way', {
|
|
5279
|
+
label: '{instance}',
|
|
5280
|
+
actsOn: 'Chooses how to settle the Gmail send FloLess couldn’t confirm',
|
|
5281
|
+
anyInstance: 'a way to settle it',
|
|
5282
|
+
group: RFIS_STEP,
|
|
5283
|
+
persistence: 'none',
|
|
5284
|
+
interaction: 'instant',
|
|
5285
|
+
risk: [],
|
|
5286
|
+
guidance: 'on-demand',
|
|
5287
|
+
});
|
|
5288
|
+
|
|
5289
|
+
def('shell.project-rfi-settle-via', {
|
|
5290
|
+
label: '{instance}',
|
|
5291
|
+
actsOn: 'Says whether you sent the RFI by email or another way',
|
|
5292
|
+
anyInstance: 'a channel',
|
|
5293
|
+
group: RFIS_STEP,
|
|
5294
|
+
persistence: 'none',
|
|
5295
|
+
interaction: 'instant',
|
|
5296
|
+
risk: [],
|
|
5297
|
+
guidance: 'on-demand',
|
|
5298
|
+
});
|
|
5299
|
+
|
|
5300
|
+
def('shell.project-rfi-settle-to', {
|
|
5301
|
+
label: 'Who {instance} went to',
|
|
5302
|
+
actsOn: 'The email address you sent the RFI to yourself. FloLess records it and sends nothing',
|
|
5303
|
+
anyInstance: 'an RFI',
|
|
5304
|
+
group: RFIS_STEP,
|
|
5305
|
+
persistence: 'none',
|
|
5306
|
+
interaction: 'instant',
|
|
5307
|
+
risk: [],
|
|
5308
|
+
guidance: 'on-demand',
|
|
5309
|
+
});
|
|
5310
|
+
|
|
5311
|
+
def('shell.project-rfi-settle-how', {
|
|
5312
|
+
label: 'How {instance} was sent',
|
|
5313
|
+
actsOn: 'A few words on how you sent the RFI, when it was not by email',
|
|
5314
|
+
anyInstance: 'an RFI',
|
|
5315
|
+
group: RFIS_STEP,
|
|
5316
|
+
persistence: 'none',
|
|
5317
|
+
interaction: 'instant',
|
|
5318
|
+
risk: [],
|
|
5319
|
+
guidance: 'on-demand',
|
|
5320
|
+
});
|
|
5321
|
+
|
|
5322
|
+
def('shell.project-rfi-settle-submit', {
|
|
5323
|
+
label: 'Settle the send of {instance}',
|
|
5324
|
+
actsOn: 'Does what you chose for the unconfirmed send: records it as sent another way, leaves it unconfirmed, or asks before sending it again',
|
|
5325
|
+
anyInstance: 'an RFI',
|
|
5326
|
+
group: RFIS_STEP,
|
|
5327
|
+
persistence: 'external',
|
|
5328
|
+
interaction: 'instant',
|
|
5329
|
+
risk: ['destructive'],
|
|
5330
|
+
guidance: 'on-demand',
|
|
5331
|
+
why: 'Each choice is final and stays in the RFI’s history. Sending it again asks you first, because the engineer may get it twice.',
|
|
5332
|
+
});
|
|
5333
|
+
|
|
5334
|
+
def('shell.project-rfi-settled-history', {
|
|
5335
|
+
label: 'Sends of {instance} not confirmed',
|
|
5336
|
+
actsOn: 'Shows or hides the Gmail sends FloLess couldn’t confirm, and what was chosen for each',
|
|
5337
|
+
anyInstance: 'an RFI',
|
|
5338
|
+
group: RFIS_STEP,
|
|
5339
|
+
persistence: 'none',
|
|
5340
|
+
interaction: 'instant',
|
|
5341
|
+
risk: [],
|
|
5342
|
+
guidance: 'on-demand',
|
|
5343
|
+
});
|
|
5344
|
+
|
|
5345
|
+
def('shell.project-rfis-gmail-again-to', {
|
|
5346
|
+
label: 'Send it again to',
|
|
5347
|
+
actsOn: 'The address Gmail sends the RFI to again',
|
|
5348
|
+
group: RFIS_STEP,
|
|
5349
|
+
persistence: 'none',
|
|
5350
|
+
interaction: 'instant',
|
|
5351
|
+
risk: [],
|
|
5352
|
+
guidance: 'on-demand',
|
|
5353
|
+
});
|
|
5354
|
+
|
|
5355
|
+
def('shell.project-rfis-gmail-again-tick', {
|
|
5356
|
+
label: 'I understand they may get it twice',
|
|
5357
|
+
actsOn: 'Your confirmation that the engineer may receive the RFI twice. Only you can give it',
|
|
5358
|
+
group: RFIS_STEP,
|
|
5359
|
+
persistence: 'none',
|
|
5360
|
+
interaction: 'instant',
|
|
5361
|
+
risk: [],
|
|
5362
|
+
guidance: 'on-demand',
|
|
5363
|
+
});
|
|
5364
|
+
|
|
5365
|
+
def('shell.project-rfis-gmail-again-cancel', {
|
|
5366
|
+
label: 'Cancel',
|
|
5367
|
+
actsOn: 'Closes Send it again without sending anything',
|
|
5368
|
+
group: RFIS_STEP,
|
|
5369
|
+
persistence: 'none',
|
|
5370
|
+
interaction: 'instant',
|
|
5371
|
+
risk: [],
|
|
5372
|
+
guidance: 'on-demand',
|
|
5373
|
+
});
|
|
5374
|
+
|
|
5375
|
+
def('shell.project-rfis-gmail-again-send', {
|
|
5376
|
+
label: 'Send again with Gmail',
|
|
5377
|
+
actsOn: 'Settles the unconfirmed send and sends the RFI as a new email from the connected Google account',
|
|
5378
|
+
group: RFIS_STEP,
|
|
5379
|
+
persistence: 'external',
|
|
5380
|
+
interaction: 'instant',
|
|
5381
|
+
risk: ['destructive'],
|
|
5382
|
+
guidance: 'on-demand',
|
|
5383
|
+
why: 'Gmail may already have sent the first one, so the engineer may get it twice. It sends only after you tick that you understand.',
|
|
5384
|
+
});
|
|
5385
|
+
|
|
5189
5386
|
def('shell.project-rfis-gmail-marker', {
|
|
5190
5387
|
label: 'Copy the search text of {instance}',
|
|
5191
5388
|
actsOn: 'Copies the reference line to search for in the Sent folder',
|
|
@@ -2113,6 +2113,12 @@
|
|
|
2113
2113
|
def('steel.profile-colours', { label: 'Profile colours', actsOn: 'Opens the key of section colours for the whole model, and lets you change any of them', group: 'In the 3D toolbar', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'It only changes how members are DRAWN — no geometry, no sections, nothing that reaches the lock.' });
|
|
2114
2114
|
def('steel.structure-stats', { label: 'Structure numbers', actsOn: 'Expands the members and weight for the active plan sheet, or for the whole model while the 3D view is active', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The header states the total; opening it shows what the total is made of, and changes nothing.' });
|
|
2115
2115
|
def('steel.quality-stats', { label: 'Quality numbers', actsOn: 'Expands what is unresolved on this sheet — RFI, duplicates, member ends and read confidence', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The header states how many issues there are; opening it says which kinds, and changes nothing.' });
|
|
2116
|
+
/* #2521 row 6: what in a Quick model rests on an AI decision. The switch only hides the canvas and 3D marks; the strip
|
|
2117
|
+
and the Inspect note stay, because they carry "unmarked members may still rest on AI decisions". */
|
|
2118
|
+
def('steel.show-ai-decisions', { label: 'Show AI decisions', actsOn: 'Shows or hides the marks on member ends and connections that rest on an AI decision, in 2D and 3D', group: 'In the ⋯ menu — Display', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'An open square marks a member end whose height the AI chose; a ring marks a connection the AI assumed. The row is only there when a member end or connection is marked. The AI decisions strip and the Properties note stay either way.' });
|
|
2119
|
+
def('steel.ai-decisions-note', { label: 'AI decisions details', actsOn: 'Opens the list of AI decisions that bear on the whole model, and what the marks and the label each describe', group: 'On the steel canvas', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A mark is what FloLess can trace. Members without one may still rest on AI decisions it cannot trace, such as the Drawing Filter or the model origin.' });
|
|
2120
|
+
def('steel.ai-decision-view-note', { label: 'AI-chosen view setup', actsOn: 'Says that the AI decided the scale or level of {instance}', anyInstance: 'a drawing view', group: 'On the steel canvas', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Every member drawn on that view rests on the choice, so it is a note on the view rather than a mark on each member. Not reviewed.' });
|
|
2121
|
+
def('steel.inspector-ai-decisions', { label: 'Rests on AI decisions', actsOn: 'Lists each AI decision the selected member rests on: what the AI chose, and why', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'None of these decisions is reviewed, and the member may still rest on others FloLess cannot trace.' });
|
|
2116
2122
|
def('steel.quick-model-chip', { label: 'Quick model label', actsOn: 'Says that the model, as last saved, was built by the AI deciding where it would have asked you', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A Quick model is fine for a tender or an estimate but is not precise. The label describes the model as last saved; "Possibly Quick" means FloLess could not read which AI decisions it rests on.' });
|
|
2117
2123
|
def('steel.confidence-report', { label: 'Open confidence report', actsOn: 'Opens the recorded drawing-confidence review', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Shows current field-level read evidence without changing the model.' });
|
|
2118
2124
|
|
|
@@ -2336,6 +2342,9 @@
|
|
|
2336
2342
|
def('steel.rfi-status-filter', { label: 'Status', actsOn: 'Filters the RFI list to {instance}', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Open means anything still waiting on somebody — raised, sent or answered. Closed ones stay listed so a settled question can be looked up later.' });
|
|
2337
2343
|
def('steel.rfi-copy', { label: 'Copy whole RFI', actsOn: 'Copies {instance} as text, ready to paste into an email', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This copies the same complete question FloLess sends through Gmail. If the clipboard cannot be reached, the text is shown instead so you can copy it by hand.' });
|
|
2338
2344
|
def('steel.rfi-quick-refile', { label: 'Try filing again', actsOn: 'Files the questions {instance} keeps that the AI could not file yet', anyInstance: 'a Quick model version', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A Quick model keeps the questions the AI could not settle with the version it published. When the RFI file could not take them, this files them, marked as the AI’s. Anything already filed is not filed twice, and nothing is sent to anyone.' });
|
|
2345
|
+
def('steel.rfi-read-raise', { label: 'Raise an RFI', actsOn: 'Files the question “{instance}” from the drawing read as an open RFI. Nothing is sent', anyInstance: 'a question from the drawing read', group: 'In a steel project’s RFIs step', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A drawing read can publish its model with questions nobody filed. They wait under From the read, not filed until somebody raises them. This files one as an open RFI. It sends nothing, and a question already filed is not filed twice.' });
|
|
2346
|
+
def('steel.rfi-read-raise-all', { label: 'Raise one RFI for all', actsOn: 'Files every question of {instance} from the drawing read as one grouped RFI (more than one when there are over 64). Nothing is sent', anyInstance: 'a kind of read question', group: 'In a steel project’s RFIs step', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Many questions of one kind, such as the heights a read assumed, are one conversation with the engineer. This files them as one grouped RFI, or as several when there are more than 64. It sends nothing.' });
|
|
2347
|
+
def('steel.rfi-read-toggle', { label: 'Show questions', actsOn: 'Shows or hides the questions of {instance} from the drawing read', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A kind with many questions opens on request, so it does not bury the RFIs below it.' });
|
|
2339
2348
|
def('steel.rfi-group-toggle', { label: 'Show occurrences', actsOn: 'Expands or collapses the ordered occurrences in {instance}', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A grouped question remains one RFI. Expanding it reveals each occurrence’s own status, drawing destination and scoped actions without creating duplicate rows.' });
|
|
2340
2349
|
def('steel.rfi-group-elsewhere', { label: 'Show elsewhere in this RFI', actsOn: 'Reveals occurrences from {instance} that are not on the current sheet', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The sheet filter keeps a grouped RFI indivisible. Matching occurrences stay first; this disclosure reveals the rest without pretending they belong to the current sheet.' });
|
|
2341
2350
|
def('steel.rfi-technical', { label: 'Technical details', actsOn: 'Shows the stored technical identity for {instance}', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The internal gap key is useful for diagnosis but is not a user-facing action selector, so it stays behind this disclosure.' });
|
|
@@ -2355,6 +2364,20 @@
|
|
|
2355
2364
|
def('steel.rfi-gmail-submit', { label: 'Send with Gmail', actsOn: 'Sends {instance} through the connected Google account', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: 'This cannot be undone. Focus stays on this RFI while Gmail works, then returns to an available action on the same row. Acceptance does not prove inbox delivery.' });
|
|
2356
2365
|
def('steel.rfi-gmail-continue', { label: 'Continue recording this send', actsOn: 'Continues the exact prepared Gmail attempt for {instance}', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: 'This may finish the already-prepared Gmail delivery, so it is the same irreversible send, never a new attempt. Focus stays on this action while it runs, then returns to the same RFI.' });
|
|
2357
2366
|
def('steel.rfi-gmail-confirm-sent', { label: 'I found it in Sent', actsOn: 'Records that the exact Gmail attempt for {instance} is visible in the connected account’s Sent folder', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Use this only after matching the RFI and attempt marker in the correct sender’s Sent folder. It records that check and returns focus to the same RFI; it does not send another message.' });
|
|
2367
|
+
// #2470 R6.6e: the ways out of a Gmail send FloLess could not confirm.
|
|
2368
|
+
def('steel.rfi-gmail-settle', { label: 'I didn’t find it…', actsOn: 'Opens the ways out of the unconfirmed Gmail send of {instance}: send it again, record that you sent it another way, or leave it unconfirmed', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Nothing is chosen for you and nothing happens until you choose. Each way is final and stays in the RFI’s history as not confirmed.' });
|
|
2369
|
+
def('steel.rfi-gmail-leave-earlier', { label: 'Leave it unconfirmed…', actsOn: 'Opens the one way out of an earlier Gmail send that still holds {instance}', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'That send is from before the RFI last changed, so sending it again or recording it would describe an older question. Leaving it unconfirmed frees the RFI and says so in its history.' });
|
|
2370
|
+
def('steel.rfi-settle-way', { label: '{instance}', actsOn: 'Chooses how to settle the unconfirmed Gmail send', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2371
|
+
def('steel.rfi-settle-via', { label: '{instance}', actsOn: 'Says whether you sent the RFI by email or another way', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2372
|
+
def('steel.rfi-settle-to', { label: 'Who it went to', actsOn: 'The email address you sent {instance} to yourself. FloLess records it and sends nothing', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2373
|
+
def('steel.rfi-settle-how', { label: 'How it was sent', actsOn: 'A few words on how you sent {instance}, when it was not by email', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2374
|
+
def('steel.rfi-settle-cancel', { label: 'Cancel', actsOn: 'Closes the ways out for {instance} without changing anything', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2375
|
+
def('steel.rfi-settle-submit', { label: 'Settle the send', actsOn: 'Does what you chose for the unconfirmed send of {instance}', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: 'Each choice is final and stays in the RFI’s history. Sending it again asks you first, because the engineer may get it twice.' });
|
|
2376
|
+
def('steel.rfi-settled-history', { label: 'Not confirmed', actsOn: 'Shows or hides the Gmail sends of {instance} FloLess couldn’t confirm, and what was chosen for each', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2377
|
+
def('steel.rfi-gmail-again-to', { label: 'Send it again to', actsOn: 'The address Gmail sends the RFI to again', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2378
|
+
def('steel.rfi-gmail-again-tick', { label: 'I understand they may get it twice', actsOn: 'Your confirmation that the engineer may receive the RFI twice. Only you can give it', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2379
|
+
def('steel.rfi-gmail-again-cancel', { label: 'Cancel', actsOn: 'Closes Send it again without sending anything', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2380
|
+
def('steel.rfi-gmail-again-send', { label: 'Send again with Gmail', actsOn: 'Settles the unconfirmed send and sends the RFI as a new email from the connected Google account', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand', why: 'Gmail may already have sent the first one, so the engineer may get it twice. It sends only after you tick that you understand.' });
|
|
2358
2381
|
def('steel.rfi-answer', { label: 'Answer', actsOn: 'Opens the form that records the answer to {instance}', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'mode', risk: [], guidance: 'active-command', steps: ['Write what came back, or pick the section', 'Choose Answer to record it'], escLabel: 'Esc closes the form — nothing is recorded', why: 'A question about a size takes a section designation rather than a sentence, because FloLess has to compare it against the model later. Every other kind takes the words the engineer actually sent back.' });
|
|
2359
2382
|
def('steel.rfi-apply', { label: 'Mark applied', actsOn: 'Records that the model now carries the size answered on {instance}', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'FloLess records that the answer reached the steel; it does not write it for you. Set the size with the box on this row first — then this checks the model really carries it and stamps the receipt that lets the RFI close as resolved. Offered only once an answer exists and the model agrees.' });
|
|
2360
2383
|
def('steel.rfi-close', { label: 'Close', actsOn: 'Opens the form that closes {instance}', group: 'In a steel project’s RFIs step', persistence: 'external', interaction: 'mode', risk: [], guidance: 'active-command', steps: ['Choose how it ended', 'Give a short reason', 'Choose Close to record it'], escLabel: 'Esc closes the form — the RFI stays open', why: 'A closed RFI stays on the project and stays readable; it leaves the Open filter, not the record. Only the endings this particular question can actually have are offered — a size question ends by the size reaching the model, never by accepting an answer on paper.' });
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
// Failure copy (#2868): the one place that turns what the server said about a failed request into the sentence a
|
|
2
|
+
// person reads. Pure: no DOM, no fetch. app.js shows it (showFailureToast); web/workspaces.js, web/aware.js and
|
|
3
|
+
// web/agents.js call it from their catch blocks; server/failure-copy-ui.test.ts drives it in Node through
|
|
4
|
+
// module.exports.
|
|
5
|
+
//
|
|
6
|
+
// Why it exists: catch blocks used to throw the server's facts away and print one generic line ("Check the files and
|
|
7
|
+
// try again", "Try again. If it keeps happening, reopen FloLess"). A project busy preparing drawings then read as a bad
|
|
8
|
+
// file. Every sentence here has three parts, and each part is only said when it is known:
|
|
9
|
+
// 1. the outcome, when the route PROVES it ("Nothing was added."), else "Couldn't <action>.";
|
|
10
|
+
// 2. the cause, in FloLess words, from the server's structured facts (code, busy holder, status), never its raw text;
|
|
11
|
+
// 3. a next step that can actually work for that cause.
|
|
12
|
+
//
|
|
13
|
+
// Rules owned here:
|
|
14
|
+
// - `nothingDone` is the caller's claim that the route refuses this kind of failure BEFORE changing anything (a busy
|
|
15
|
+
// lock is refused before its work runs; a bad upload is rejected before it is stored). It is said only for those
|
|
16
|
+
// kinds — never for a lost connection or an unexpected failure, where the outcome is unknown and `unsure` says so.
|
|
17
|
+
// - No time estimates: a lock's estimate can be a fixed cap (drawing preparation holds a 2-hour one), and "about 119
|
|
18
|
+
// minutes left" would be a number FloLess made up.
|
|
19
|
+
// - Server-authored person copy (`userMessage`, a per-file `reason`) is shown as written; the server's `error` text
|
|
20
|
+
// is not, because on most routes it is written for a developer.
|
|
21
|
+
|
|
22
|
+
/* Busy refusals: another operation holds the project or workflow. Each is refused before its own work starts. */
|
|
23
|
+
const FAILURE_BUSY_CODES = new Set(['lifecycle-busy', 'project-busy', 'steel-manifest-preparation-busy', 'lifecycle-lock-deadline']);
|
|
24
|
+
|
|
25
|
+
/* Holder labels whose plain wording is better than "is busy <label>". `until` completes "… when <until>." */
|
|
26
|
+
const FAILURE_BUSY_WORK = {
|
|
27
|
+
'inspecting steel drawings': { work: 'FloLess is preparing this project’s drawings', until: 'that finishes' },
|
|
28
|
+
'starting the first drawing read of a new project': { work: 'FloLess is starting this project’s first drawing read', until: 'that finishes' },
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/* Codes for "this changed somewhere else after the screen loaded". */
|
|
32
|
+
const FAILURE_STALE = /(?:^|-)(?:changed|stale|superseded|retired|discarded)$/;
|
|
33
|
+
|
|
34
|
+
/* Mirrors subjectFor() in server/lifecycle-lock.ts, so the toast names what the server's lock names. */
|
|
35
|
+
function failureSubject(kind) {
|
|
36
|
+
if (kind === 'project' || kind === 'revit-project') return 'This project';
|
|
37
|
+
if (kind === 'app') return 'This workflow';
|
|
38
|
+
if (kind === 'steel-extraction') return 'Steel drawing preparation';
|
|
39
|
+
if (kind === 'managed-runtime') return 'This AI runtime';
|
|
40
|
+
if (kind === 'page') return 'This Page';
|
|
41
|
+
if (kind === 'page-shares') return 'Your shared links';
|
|
42
|
+
return 'This app';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* The messages browsers give a fetch that got no answer (Chrome, Firefox, Safari, Node). A TypeError with any other
|
|
46
|
+
* message is a bug in the page (`undefined.x`), not a lost connection. */
|
|
47
|
+
const FAILURE_FETCH_FAILED = /failed to fetch|networkerror|load failed|network request failed|fetch failed/i;
|
|
48
|
+
|
|
49
|
+
/** What kind of failure this is: busy, stale, invalid, missing, outdated, connection, access or unexpected. */
|
|
50
|
+
function failureKind(error) {
|
|
51
|
+
const body = error && error.body && typeof error.body === 'object' ? error.body : {};
|
|
52
|
+
const code = typeof body.code === 'string' ? body.code : '';
|
|
53
|
+
const status = Number(error && error.status) || 0;
|
|
54
|
+
if (code === 'maintenance-busy' || FAILURE_BUSY_CODES.has(code) || (status === 409 && body.busy && typeof body.busy === 'object')) return 'busy';
|
|
55
|
+
if (status === 401 || status === 402 || body.error === 'subscription required') return 'access';
|
|
56
|
+
// No answer at all (fetch refused, timed out), or an answer that is not FloLess's own JSON. A 5xx FloLess wrote itself
|
|
57
|
+
// carries `ok: false` and is a failure FloLess reported, not a lost connection.
|
|
58
|
+
// An Error with no status that is not one of those (a check in the browser threw) is unexpected, not a lost connection.
|
|
59
|
+
const name = error && error.name;
|
|
60
|
+
const fetchFailed = name === 'TypeError' && FAILURE_FETCH_FAILED.test(String(error && error.message));
|
|
61
|
+
const noAnswer = !status && (fetchFailed || name === 'AbortError' || name === 'TimeoutError' || name === 'NetworkError');
|
|
62
|
+
if (noAnswer || code === 'response-unreadable' || ((status === 502 || status === 503 || status === 504) && body.ok === undefined)) return 'connection';
|
|
63
|
+
if (code === 'aware-too-old') return 'outdated';
|
|
64
|
+
if (status === 403) return 'access';
|
|
65
|
+
if (code && FAILURE_STALE.test(code)) return 'stale';
|
|
66
|
+
if (status === 404) return 'missing';
|
|
67
|
+
if (status === 400 || status === 413 || status === 422) return 'invalid';
|
|
68
|
+
return 'unexpected';
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** The busy cause and when to come back, from the lock's holder label. Labels that are not a plain gerund phrase
|
|
72
|
+
* ("unreconciled workspace operation") read as other work rather than as a broken sentence. */
|
|
73
|
+
function failureBusyParts(body) {
|
|
74
|
+
if (body.code === 'steel-manifest-preparation-busy') return { work: 'FloLess is already preparing these drawings', until: 'that finishes' };
|
|
75
|
+
const busy = body.busy && typeof body.busy === 'object' ? body.busy : {};
|
|
76
|
+
const label = typeof busy.label === 'string' ? busy.label.trim() : '';
|
|
77
|
+
if (FAILURE_BUSY_WORK[label]) return FAILURE_BUSY_WORK[label];
|
|
78
|
+
const subject = failureSubject(busy.kind);
|
|
79
|
+
const is = busy.kind === 'page-shares' ? 'are' : 'is';
|
|
80
|
+
if (/^[a-z]+ing\b/.test(label) && label.length <= 60) return { work: `${subject} ${is} busy ${label}`, until: 'that finishes' };
|
|
81
|
+
return { work: `${subject} ${is} busy with other work`, until: 'it finishes' };
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function failureSentence(text) {
|
|
85
|
+
const t = String(text || '').trim();
|
|
86
|
+
return !t ? '' : /[.!?]$/.test(t) ? t : `${t}.`;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The person's sentence for a failed request, and how loud it should be.
|
|
91
|
+
* @param {any} error the error api() threw: { status, body } (body = the server's JSON), or a TypeError for no answer.
|
|
92
|
+
* @param {{ action?: string, nothingDone?: string, unsure?: string, retry?: string, retrySafe?: boolean, account?: (e: any) => string }} [ctx]
|
|
93
|
+
* action — completes "Couldn't …" ("add these files"). Defaults to "finish that".
|
|
94
|
+
* nothingDone — the proven outcome for a refusal ("Nothing was added."); see the rules at the top of this file.
|
|
95
|
+
* unsure — the next step when the outcome is unknown ("Check the references list before adding them again.").
|
|
96
|
+
* retry — the retry phrase for a busy refusal ("Try adding the files again").
|
|
97
|
+
* retrySafe — the action only reads (refresh a list), so an unexplained failure may say "Try once more"; without
|
|
98
|
+
* it the outcome of an unexplained failure is unknown and a retry is not recommended blindly.
|
|
99
|
+
* account — the sign-in sentence for a 402 (aware.js accountAccessText), so every surface says the same.
|
|
100
|
+
* @returns {{ kind: string, type: 'warn'|'err', text: string }}
|
|
101
|
+
*/
|
|
102
|
+
function failureCopy(error, ctx) {
|
|
103
|
+
const c = ctx || {};
|
|
104
|
+
const body = error && error.body && typeof error.body === 'object' ? error.body : {};
|
|
105
|
+
const kind = failureKind(error);
|
|
106
|
+
const action = c.action || 'finish that';
|
|
107
|
+
const lead = `Couldn’t ${action}.`;
|
|
108
|
+
const refused = failureSentence(c.nothingDone) || lead;
|
|
109
|
+
const said = (s) => s.filter(Boolean).join(' ');
|
|
110
|
+
const userMessage = typeof body.userMessage === 'string' ? body.userMessage.trim() : '';
|
|
111
|
+
const reason = typeof body.reason === 'string' ? body.reason.trim() : '';
|
|
112
|
+
if (kind === 'busy') {
|
|
113
|
+
if (body.code === 'maintenance-busy' && typeof body.message === 'string' && body.message.trim()) {
|
|
114
|
+
return { kind, type: 'warn', text: said([refused, failureSentence(body.message)]) };
|
|
115
|
+
}
|
|
116
|
+
const { work, until } = failureBusyParts(body);
|
|
117
|
+
return { kind, type: 'warn', text: said([refused, `${work}.`, `${c.retry || 'Try again'} when ${until}.`]) };
|
|
118
|
+
}
|
|
119
|
+
if (kind === 'access') {
|
|
120
|
+
const account = typeof c.account === 'function' ? c.account(error) : '';
|
|
121
|
+
if (account) return { kind, type: 'warn', text: account };
|
|
122
|
+
if (userMessage) return { kind, type: 'warn', text: said([refused, failureSentence(userMessage)]) };
|
|
123
|
+
if (Number(error && error.status) === 403) {
|
|
124
|
+
return { kind, type: 'warn', text: said([refused, 'FloLess doesn’t allow this from here.', 'If you expected it to work, use Report an issue at the bottom of the window.']) };
|
|
125
|
+
}
|
|
126
|
+
return { kind, type: 'warn', text: said([refused, 'Your FloLess sign-in needs attention.', 'Sign in to FloLess again, then try again.']) };
|
|
127
|
+
}
|
|
128
|
+
if (kind === 'connection') {
|
|
129
|
+
// The request may have reached FloLess before the answer was lost, so only a read-only action is told to try again.
|
|
130
|
+
if (c.retrySafe) return { kind, type: 'err', text: said([lead, 'FloLess stopped answering before it finished.', 'Make sure FloLess is still running, then try again.']) };
|
|
131
|
+
return { kind, type: 'err', text: said([lead, 'FloLess stopped answering before it finished.', 'Make sure FloLess is still running.',
|
|
132
|
+
failureSentence(c.unsure) || 'FloLess can’t tell whether it went through, so check before trying again.']) };
|
|
133
|
+
}
|
|
134
|
+
// A refusal the server wrote for the person. Not for an unexpected failure: a 5xx is not a considered answer, and
|
|
135
|
+
// the person is told the reason is unknown rather than a sentence that may describe something else (#2764).
|
|
136
|
+
if (userMessage && kind !== 'unexpected') return { kind, type: 'warn', text: said([refused, failureSentence(userMessage)]) };
|
|
137
|
+
if (kind === 'outdated') {
|
|
138
|
+
return { kind, type: 'err', text: said([refused, 'The AWARE runtime on this computer is too old for it.', 'Update AWARE, then try again.']) };
|
|
139
|
+
}
|
|
140
|
+
if (kind === 'stale') {
|
|
141
|
+
return { kind, type: 'warn', text: said([refused, 'It was changed somewhere else after this screen loaded.', 'Reload this window to see the latest, then try again.']) };
|
|
142
|
+
}
|
|
143
|
+
// Missing: never the caller's "still there" claim, because the thing it names is exactly what is gone.
|
|
144
|
+
if (kind === 'missing') {
|
|
145
|
+
return { kind, type: 'warn', text: said([lead,'It is no longer there; it may have been removed in another window.', 'Reload this window to see what is there now.']) };
|
|
146
|
+
}
|
|
147
|
+
// Invalid: a per-file `reason` and a 413 are rejected before anything is stored, so the outcome claim holds; any other
|
|
148
|
+
// 400 may come from a check that runs after a write, so it only says what could not be done.
|
|
149
|
+
if (kind === 'invalid') {
|
|
150
|
+
if (reason) return { kind, type: 'warn', text: said([refused, failureSentence(reason)]) };
|
|
151
|
+
if (Number(error && error.status) === 413) return { kind, type: 'warn', text: said([refused, 'It is too large for FloLess to take.', 'Choose a smaller one.']) };
|
|
152
|
+
// The outcome is not proven here either, so a change is not told to "try again" blindly.
|
|
153
|
+
if (c.retrySafe) return { kind, type: 'warn', text: said([lead, 'FloLess couldn’t use what was sent.', 'Check what you entered or chose, then try again.']) };
|
|
154
|
+
return { kind, type: 'warn', text: said([lead, 'FloLess couldn’t use what was sent.', 'Check what you entered or chose.',
|
|
155
|
+
failureSentence(c.unsure) || 'If any of it may have gone through, check before trying again.']) };
|
|
156
|
+
}
|
|
157
|
+
// Unexpected: say plainly that the reason is unknown. The outcome is unknown too, so a retry is offered only for an
|
|
158
|
+
// action that just reads (`retrySafe`); for a change, retrying blindly could do it twice, so the person is asked to
|
|
159
|
+
// check first, in the caller's words when it knows where to look (`unsure`).
|
|
160
|
+
const report = 'If it keeps happening, use Report an issue at the bottom of the window.';
|
|
161
|
+
if (c.retrySafe) return { kind, type: 'err', text: said([`Couldn’t ${action}, and FloLess couldn’t tell why.`, 'Try once more.', report]) };
|
|
162
|
+
const unsure = failureSentence(c.unsure) || 'FloLess can’t tell whether it went through, so check before trying again.';
|
|
163
|
+
return { kind, type: 'err', text: said([`Couldn’t ${action}, and FloLess couldn’t tell why.`, unsure, report]) };
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
167
|
+
module.exports = { failureKind, failureCopy, FAILURE_BUSY_CODES, FAILURE_BUSY_WORK };
|
|
168
|
+
}
|
package/dist/web/index.html
CHANGED
|
@@ -1427,9 +1427,41 @@
|
|
|
1427
1427
|
<span>You answer them · hours · best evidence</span>
|
|
1428
1428
|
</button>
|
|
1429
1429
|
</div>
|
|
1430
|
+
<!-- #2521 row 2c: who decides the Drawing Filter in a Quick build. Shown only with Quick; Precise always uses the
|
|
1431
|
+
person's Save (owner ruling 2026-10-24), so with Precise it is hidden and nothing is sent. -->
|
|
1432
|
+
<div class="project-setup-filter" id="project-setup-filter" role="group"
|
|
1433
|
+
aria-labelledby="project-setup-filter-label" aria-describedby="project-setup-filter-explain" hidden>
|
|
1434
|
+
<strong class="project-setup-label" id="project-setup-filter-label">Drawing Filter</strong>
|
|
1435
|
+
<p id="project-setup-filter-explain">The Drawing Filter decides which sheets, line weights, layers and colours the drawing read uses, and which it leaves out. If the AI chooses it, that choice is recorded and labelled as the AI's, never as your Save. You can review or change it in the Drawing Filter later.</p>
|
|
1436
|
+
<div class="project-setup-standard-options">
|
|
1437
|
+
<button type="button" data-filter-choice="person" data-command-id="shell.project-filter-choice#Review and save it myself" aria-pressed="true">
|
|
1438
|
+
<span class="project-setup-standard-label">I'll review and save the Filter myself</span>
|
|
1439
|
+
<span>You check it before the read uses it</span>
|
|
1440
|
+
</button>
|
|
1441
|
+
<button type="button" data-filter-choice="ai" data-command-id="shell.project-filter-choice#Let the AI choose" aria-pressed="false">
|
|
1442
|
+
<span class="project-setup-standard-label">Let the AI choose</span>
|
|
1443
|
+
<span>It picks which sheets and areas are read</span>
|
|
1444
|
+
</button>
|
|
1445
|
+
</div>
|
|
1446
|
+
<div class="project-setup-exclusions" id="project-setup-exclusions" role="group"
|
|
1447
|
+
aria-labelledby="project-setup-exclusions-label" aria-describedby="project-setup-exclusions-explain" hidden>
|
|
1448
|
+
<strong class="project-setup-label" id="project-setup-exclusions-label">What the read leaves out</strong>
|
|
1449
|
+
<p id="project-setup-exclusions-explain">The Filter also decides which lines the read leaves out, dismissed as a group without a reason for each. The AI can approve that list as part of its choice, recorded as its own, or the read can stop for you whenever its Filter leaves lines out.</p>
|
|
1450
|
+
<div class="project-setup-standard-options">
|
|
1451
|
+
<button type="button" data-exclusions-choice="ai" data-command-id="shell.project-filter-exclusions#Let the AI approve them too" aria-pressed="true">
|
|
1452
|
+
<span class="project-setup-standard-label">Let the AI approve them too</span>
|
|
1453
|
+
<span>Quickest: the read does not stop</span>
|
|
1454
|
+
</button>
|
|
1455
|
+
<button type="button" data-exclusions-choice="person" data-command-id="shell.project-filter-exclusions#I'll approve them myself" aria-pressed="false">
|
|
1456
|
+
<span class="project-setup-standard-label">I'll approve them myself</span>
|
|
1457
|
+
<span>The read stops for you if lines are left out</span>
|
|
1458
|
+
</button>
|
|
1459
|
+
</div>
|
|
1460
|
+
</div>
|
|
1461
|
+
</div>
|
|
1430
1462
|
<div class="project-setup-quick-terms" id="project-setup-quick-terms" role="group" aria-label="Quick model terms" aria-live="polite" hidden>
|
|
1431
1463
|
<strong>Before you create a Quick model</strong>
|
|
1432
|
-
<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. The AI never approves anything: you still decide on the Drawing Filter and on the review.</p>
|
|
1464
|
+
<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>
|
|
1433
1465
|
<p id="project-setup-quick-create-only">Create project only starts no read, so it builds no Quick model. To build one later, ask for a Quick model in AI Chat.</p>
|
|
1434
1466
|
</div>
|
|
1435
1467
|
<div class="project-setup-note" id="project-setup-build-locked" hidden>This setup was already sent with this choice, so it continues with it. To choose differently, cancel and start a new project.</div>
|
|
@@ -2122,7 +2154,9 @@
|
|
|
2122
2154
|
<script src="startup-admission.js"></script>
|
|
2123
2155
|
<script src="analytics.js"></script>
|
|
2124
2156
|
<script src="commands.js"></script>
|
|
2157
|
+
<script src="failure-copy.js"></script>
|
|
2125
2158
|
<script src="app.js"></script>
|
|
2159
|
+
<script src="landing-sort.js"></script>
|
|
2126
2160
|
<script src="workspace-root-management.js"></script>
|
|
2127
2161
|
<script src="workspace-root-recovery.js"></script>
|
|
2128
2162
|
<script src="project-reconciliation.js"></script>
|
package/dist/web/instructor.js
CHANGED
|
@@ -860,7 +860,9 @@
|
|
|
860
860
|
a static array cannot express that, because "active" is runtime state. */
|
|
861
861
|
var GROUP_ORDER = [
|
|
862
862
|
// the shell
|
|
863
|
-
'In the header', 'In the workflow picker', 'In the project picker', 'In the project list',
|
|
863
|
+
'In the header', 'In the workflow picker', 'In the project picker', 'In the project list',
|
|
864
|
+
// #2866: Sort by sits in the header of the Workspaces, Workflows and Agents pages.
|
|
865
|
+
'On the landing pages', 'On the Workflows page', 'In Archived on the Workflows page', 'In the workflow picker and on a draft workflow',
|
|
864
866
|
'On the Agents page', 'On an agent',
|
|
865
867
|
// #2046: the ways into the Guide on the empty pages, and its first-launch question.
|
|
866
868
|
'Getting started', 'In the Guide question',
|