@floless/app 0.158.0 → 0.159.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.
Files changed (35) hide show
  1. package/dist/floless-server.cjs +92620 -75445
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +33 -1
  3. package/dist/skills/floless-app-actions/SKILL.md +23 -5
  4. package/dist/skills/floless-app-bridge/SKILL.md +5 -3
  5. package/dist/skills/floless-app-onboarding/SKILL.md +67 -4
  6. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +7 -4
  7. package/dist/skills/floless-app-queue/SKILL.md +3 -1
  8. package/dist/skills/floless-app-steel-model/SKILL.md +11 -5
  9. package/dist/skills/floless-app-steel-takeoff/SKILL.md +28 -8
  10. package/dist/skills/floless-app-workflows/SKILL.md +6 -3
  11. package/dist/web/agents.js +12 -5
  12. package/dist/web/app.css +87 -13
  13. package/dist/web/app.js +6 -0
  14. package/dist/web/aware.js +29 -4
  15. package/dist/web/chat.css +42 -22
  16. package/dist/web/chat.js +181 -30
  17. package/dist/web/commands-shell.js +305 -4
  18. package/dist/web/commands-steel.js +1 -0
  19. package/dist/web/drawing-check-editor.html +10 -0
  20. package/dist/web/drawing-check-editor.js +44 -0
  21. package/dist/web/guide.js +4 -2
  22. package/dist/web/index.html +41 -9
  23. package/dist/web/instructor.js +20 -8
  24. package/dist/web/pages.js +71 -13
  25. package/dist/web/project-access.js +67 -8
  26. package/dist/web/project-modules.js +474 -0
  27. package/dist/web/project-workflows.js +274 -0
  28. package/dist/web/steel-3d-core.js +46 -0
  29. package/dist/web/steel-3d-view.js +8 -38
  30. package/dist/web/steel-editor.html +192 -49
  31. package/dist/web/workspace-root-recovery.js +119 -0
  32. package/dist/web/workspaces.js +358 -114
  33. package/launch-starting-page.mjs +5 -2
  34. package/launch.mjs +136 -78
  35. package/package.json +5 -1
@@ -567,6 +567,14 @@
567
567
  risk: [],
568
568
  guidance: 'on-demand',
569
569
  });
570
+ def('shell.workspace-root-recovery-open', {
571
+ label: 'Open this conversation', actsOn: 'Opens {instance} in AI Chat to check a recorded reply and use its recovery controls',
572
+ group: 'In the Workspace directory dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
573
+ });
574
+ def('shell.workspace-root-recovery-reload', {
575
+ label: 'Reload recorded replies', actsOn: 'Reads the replies and other work recorded for this Workspace directory again',
576
+ group: 'In the Workspace directory dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
577
+ });
570
578
 
571
579
  def('menu.tool-update-policy', {
572
580
  label: 'Automatic tool updates',
@@ -1235,6 +1243,28 @@
1235
1243
  why: 'This card appears when automatic Drawing Checker setup did not finish; retrying installs the same two workflows again.',
1236
1244
  });
1237
1245
 
1246
+ def('shell.steel-model-see-plans', {
1247
+ label: 'See Steel Model plans',
1248
+ actsOn: 'Opens the floless.io plans page, where Steel Model can be added to this account',
1249
+ group: 'In the project list',
1250
+ persistence: 'none',
1251
+ interaction: 'instant',
1252
+ risk: [],
1253
+ guidance: 'on-demand',
1254
+ why: 'Steel Model is a paid module this account’s plan does not include. Steel models already on this computer stay viewable; reading drawings and editing need the module.',
1255
+ });
1256
+
1257
+ def('shell.steel-model-view-access', {
1258
+ label: 'View Steel Model access',
1259
+ actsOn: 'Checks which FloLess account and access Steel Model uses on this computer',
1260
+ group: 'In the project list',
1261
+ persistence: 'none',
1262
+ interaction: 'dialog',
1263
+ risk: [],
1264
+ guidance: 'on-demand',
1265
+ why: 'This card explains why Steel Model is unavailable and leads to choosing an account or checking access again.',
1266
+ });
1267
+
1238
1268
  def('shell.project-steel-missing-workflow', {
1239
1269
  label: 'Steel model needs setup',
1240
1270
  actsOn: 'Explains that the Steel workflow is missing and how to report the setup problem',
@@ -1434,13 +1464,13 @@
1434
1464
 
1435
1465
  def('shell.project-create-chat', {
1436
1466
  label: 'Create project and start chat',
1437
- actsOn: 'Creates the project in the selected folder, attaches the drawing set, and starts its first task in AI Chat',
1467
+ actsOn: 'Creates the project in the selected folder and starts its first task in AI Chat: reading the drawing set, or for a General project, Flo’s kickoff chat, which asks what the project is and offers each change as a card you confirm',
1438
1468
  group: 'In the new project dialog',
1439
1469
  persistence: 'external',
1440
1470
  interaction: 'instant',
1441
1471
  risk: ['costs-time', 'costs-money'],
1442
1472
  guidance: 'on-demand',
1443
- why: 'The project, drawings, Request and conversation stay together in the chosen project folder. If FloLess has not set up the chosen AI on this computer yet, it does that first and then creates the project.',
1473
+ why: 'The project, drawings, Request and conversation stay together in the chosen project folder. A General project’s kickoff only suggests: every change it offers is a card you confirm. If FloLess has not set up the chosen AI on this computer yet, it does that first and then creates the project.',
1444
1474
  });
1445
1475
 
1446
1476
  def('shell.project-duplicate', {
@@ -1780,6 +1810,13 @@
1780
1810
  actsOn: 'Opens “{instance}” where it is edited: the Agents tab, Routines or the workflow',
1781
1811
  group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1782
1812
  });
1813
+ def('shell.project-access-linked-open', {
1814
+ label: 'Open {instance}',
1815
+ actsOn: 'Opens the General project that lists this one on its Modules step',
1816
+ anyInstance: 'a General project that links this one',
1817
+ group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1818
+ why: 'A link only lists this project there. It gives that General project no access to this one.',
1819
+ });
1783
1820
  def('shell.project-access-retry', {
1784
1821
  label: 'Try again',
1785
1822
  actsOn: 'Reads what has access to this project again',
@@ -1795,6 +1832,11 @@
1795
1832
  actsOn: 'Opens Routines, where a workflow is scheduled on a project',
1796
1833
  group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1797
1834
  });
1835
+ def('shell.project-access-go-workflows', {
1836
+ label: 'Show on the Workflows step',
1837
+ actsOn: 'Opens this project’s Workflows step, which lists the workflows that belong to it with their state and last run',
1838
+ group: 'In the project workspace', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
1839
+ });
1798
1840
 
1799
1841
  def('shell.workspace-step', {
1800
1842
  label: 'Workspace step',
@@ -1805,7 +1847,7 @@
1805
1847
  interaction: 'instant',
1806
1848
  risk: [],
1807
1849
  guidance: 'on-demand',
1808
- why: 'The steps run left to right — what the project knows, what it was drawn from, the model, what comes out, and what happened.',
1850
+ 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, its workflows, what comes out, and what happened.',
1809
1851
  });
1810
1852
 
1811
1853
  def('shell.export-run', {
@@ -2983,7 +3025,7 @@
2983
3025
  why: 'A workspace conversation belongs to no project, so it has no Units setting to follow. The suggested choice is the units of the project you opened last.',
2984
3026
  });
2985
3027
  def('shell.chat-units-change', {
2986
- label: 'Change units', actsOn: 'Asks again which units AI answers in, in this workspace conversation',
3028
+ label: 'Change units', actsOn: 'Opens the units menu, where you choose the units AI answers in, in this workspace conversation',
2987
3029
  group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
2988
3030
  });
2989
3031
  def('shell.chat-attachment-remove', {
@@ -4445,6 +4487,242 @@
4445
4487
  guidance: 'on-demand',
4446
4488
  });
4447
4489
 
4490
+ /* ── A project's Workflows step (#2470 R6.2) ───────────────────────────── */
4491
+
4492
+ def('shell.project-workflow-open', {
4493
+ label: 'Open {instance}',
4494
+ actsOn: 'Opens this workflow on the Workflows tab: its canvas when it is published, its draft otherwise',
4495
+ anyInstance: 'a workflow of this project',
4496
+ group: 'In a project’s Workflows step',
4497
+ persistence: 'none',
4498
+ interaction: 'instant',
4499
+ risk: [],
4500
+ guidance: 'on-demand',
4501
+ why: 'The workflows listed here belong to this project: their files, chat and history stay with it.',
4502
+ });
4503
+
4504
+ def('shell.project-workflow-open-archived', {
4505
+ label: 'Show {instance} under Archived',
4506
+ actsOn: 'Shows this archived workflow under Archived on the Workflows page, where Restore brings it back',
4507
+ anyInstance: 'an archived workflow of this project',
4508
+ group: 'In a project’s Workflows step',
4509
+ persistence: 'none',
4510
+ interaction: 'instant',
4511
+ risk: [],
4512
+ guidance: 'on-demand',
4513
+ });
4514
+
4515
+ def('shell.project-workflow-new', {
4516
+ label: 'New workflow for this project',
4517
+ actsOn: 'Opens New workflow with this project chosen as its location; you name it and confirm, then AI builds it with you',
4518
+ group: 'In a project’s Workflows step',
4519
+ persistence: 'none',
4520
+ interaction: 'dialog',
4521
+ risk: [],
4522
+ guidance: 'on-demand',
4523
+ });
4524
+
4525
+ def('shell.project-workflows-archived', {
4526
+ label: 'Archived workflows',
4527
+ actsOn: 'Shows or hides this project’s archived workflows',
4528
+ group: 'In a project’s Workflows step',
4529
+ key: 'Enter or Space on the heading',
4530
+ persistence: 'none',
4531
+ interaction: 'instant',
4532
+ risk: [],
4533
+ guidance: 'on-demand',
4534
+ why: 'An archived workflow keeps its files, chat and history. Restore brings it back, from the Workflows page.',
4535
+ });
4536
+
4537
+ def('shell.project-workflows-access', {
4538
+ label: 'Project access',
4539
+ actsOn: 'Opens Project access: every Agent, schedule and workflow that reaches into this project, with switches for Agents and schedules',
4540
+ group: 'In a project’s Workflows step',
4541
+ persistence: 'none',
4542
+ interaction: 'dialog',
4543
+ risk: [],
4544
+ guidance: 'on-demand',
4545
+ why: 'This step lists the workflows that belong to the project; Project access shows everything else that uses it.',
4546
+ });
4547
+
4548
+ def('shell.project-workflows-retry', {
4549
+ label: 'Try again',
4550
+ actsOn: 'Reads this project’s workflows again after they could not be loaded',
4551
+ group: 'In a project’s Workflows step',
4552
+ persistence: 'none',
4553
+ interaction: 'instant',
4554
+ risk: [],
4555
+ guidance: 'on-demand',
4556
+ });
4557
+
4558
+ /* ── A General project's Modules step (#2470 R6.7): linked module projects ─────────────────── */
4559
+
4560
+ const MODULES_STEP = 'In a project’s Modules step';
4561
+ const LINK_GRANTS_NOTHING = 'A link only lists the project here. The linked project keeps its own drawings, model and access, and this project gets none of it.';
4562
+
4563
+ def('shell.project-modules-add', {
4564
+ label: 'Add a module…',
4565
+ actsOn: 'Opens the module cards, as on the Workspaces page. Picking one runs that module’s own setup to create a project beside this one, then links it here',
4566
+ group: MODULES_STEP,
4567
+ persistence: 'none',
4568
+ interaction: 'dialog',
4569
+ risk: [],
4570
+ guidance: 'on-demand',
4571
+ why: 'A General project has no model of its own. A module — a Revit model, a steel model, a Drawing Checker profile — is its own project, linked here.',
4572
+ });
4573
+
4574
+ def('shell.project-modules-link-existing', {
4575
+ label: 'Link an existing project…',
4576
+ actsOn: 'Lists this Workspace’s module projects that are not linked yet; picking one links it here',
4577
+ group: MODULES_STEP,
4578
+ persistence: 'none',
4579
+ interaction: 'dialog',
4580
+ risk: [],
4581
+ guidance: 'on-demand',
4582
+ why: LINK_GRANTS_NOTHING,
4583
+ });
4584
+
4585
+ def('shell.project-modules-link-choose', {
4586
+ label: 'Link {instance}',
4587
+ actsOn: 'Links this project here; it is listed on the Modules step',
4588
+ anyInstance: 'a project in this Workspace',
4589
+ group: MODULES_STEP,
4590
+ persistence: 'working',
4591
+ interaction: 'instant',
4592
+ risk: [],
4593
+ guidance: 'on-demand',
4594
+ why: LINK_GRANTS_NOTHING,
4595
+ });
4596
+
4597
+ def('shell.project-module-open', {
4598
+ label: 'Open {instance}',
4599
+ actsOn: 'Opens the linked project’s own page, with its own steps and checks',
4600
+ anyInstance: 'a linked project',
4601
+ group: MODULES_STEP,
4602
+ persistence: 'none',
4603
+ interaction: 'instant',
4604
+ risk: [],
4605
+ guidance: 'on-demand',
4606
+ });
4607
+
4608
+ def('shell.project-module-unlink', {
4609
+ label: 'Remove the link to {instance}',
4610
+ actsOn: 'Removes this project from the Modules step. The project itself is not changed or deleted',
4611
+ anyInstance: 'a linked project',
4612
+ group: MODULES_STEP,
4613
+ persistence: 'working',
4614
+ interaction: 'instant',
4615
+ risk: [],
4616
+ guidance: 'on-demand',
4617
+ });
4618
+
4619
+ def('shell.project-module-restore', {
4620
+ label: 'Restore {instance}…',
4621
+ actsOn: 'Shows the archived projects on the Workspaces page, where you can restore this one',
4622
+ anyInstance: 'an archived linked project',
4623
+ group: MODULES_STEP,
4624
+ persistence: 'none',
4625
+ interaction: 'instant',
4626
+ risk: [],
4627
+ guidance: 'on-demand',
4628
+ });
4629
+
4630
+ def('shell.project-module-find', {
4631
+ label: 'Find {instance}…',
4632
+ actsOn: 'Lists this Workspace’s projects of the same module so you can choose the one this link should point to',
4633
+ anyInstance: 'a link that needs reconnecting',
4634
+ group: MODULES_STEP,
4635
+ persistence: 'none',
4636
+ interaction: 'dialog',
4637
+ risk: [],
4638
+ guidance: 'on-demand',
4639
+ why: 'A link that came in with an imported project names a project of the computer it came from. Nothing reconnects by itself.',
4640
+ });
4641
+
4642
+ def('shell.project-module-created-link', {
4643
+ label: 'Link {instance}',
4644
+ actsOn: 'Links a project that was created from this one but is not linked yet',
4645
+ anyInstance: 'a project created here',
4646
+ group: MODULES_STEP,
4647
+ persistence: 'working',
4648
+ interaction: 'instant',
4649
+ risk: [],
4650
+ guidance: 'on-demand',
4651
+ });
4652
+
4653
+ def('shell.project-module-created-restore', {
4654
+ label: 'Restore {instance}…',
4655
+ actsOn: 'Shows the archived projects on the Workspaces page, where you can restore this one; then it can be linked',
4656
+ anyInstance: 'an archived project created here',
4657
+ group: MODULES_STEP,
4658
+ persistence: 'none',
4659
+ interaction: 'instant',
4660
+ risk: [],
4661
+ guidance: 'on-demand',
4662
+ });
4663
+
4664
+ def('shell.project-module-created-decline', {
4665
+ label: 'Don’t link {instance}',
4666
+ actsOn: 'Stops offering this project here. The project is kept and not changed',
4667
+ anyInstance: 'a project created here',
4668
+ group: MODULES_STEP,
4669
+ persistence: 'working',
4670
+ interaction: 'instant',
4671
+ risk: [],
4672
+ guidance: 'on-demand',
4673
+ });
4674
+
4675
+ def('shell.project-modules-retry', {
4676
+ label: 'Try again',
4677
+ actsOn: 'Reads this project’s modules again after they could not be loaded',
4678
+ group: MODULES_STEP,
4679
+ persistence: 'none',
4680
+ interaction: 'instant',
4681
+ risk: [],
4682
+ guidance: 'on-demand',
4683
+ });
4684
+
4685
+ def('shell.project-modules-sheet-close', {
4686
+ label: 'Close',
4687
+ actsOn: 'Closes this list without adding or linking anything',
4688
+ group: MODULES_STEP,
4689
+ key: 'Esc',
4690
+ persistence: 'none',
4691
+ interaction: 'instant',
4692
+ risk: [],
4693
+ guidance: 'on-demand',
4694
+ });
4695
+
4696
+ def('shell.project-modules-back', {
4697
+ label: 'Back to the General project',
4698
+ actsOn: 'Opens the General project this one was added to, on its Modules step',
4699
+ group: MODULES_STEP,
4700
+ persistence: 'none',
4701
+ interaction: 'instant',
4702
+ risk: [],
4703
+ guidance: 'on-demand',
4704
+ });
4705
+
4706
+ def('shell.project-modules-show-archived', {
4707
+ label: 'Show archived projects',
4708
+ actsOn: 'Shows the archived projects on the Workspaces page, where a project an earlier try made can be restored',
4709
+ group: MODULES_STEP,
4710
+ persistence: 'none',
4711
+ interaction: 'instant',
4712
+ risk: [],
4713
+ guidance: 'on-demand',
4714
+ });
4715
+
4716
+ def('shell.project-modules-retry-link', {
4717
+ label: 'Retry link',
4718
+ actsOn: 'Tries again to link the project just created to the General project it was added from',
4719
+ group: MODULES_STEP,
4720
+ persistence: 'working',
4721
+ interaction: 'instant',
4722
+ risk: [],
4723
+ guidance: 'on-demand',
4724
+ });
4725
+
4448
4726
  /* ── Pages (#2262): the Pages lists and the Page viewer ─────────────────── */
4449
4727
 
4450
4728
  def('shell.page-open', {
@@ -4785,6 +5063,16 @@
4785
5063
  guidance: 'on-demand',
4786
5064
  });
4787
5065
 
5066
+ def('shell.shared-links-plans', {
5067
+ label: 'See plans',
5068
+ actsOn: 'Opens the FloLess plans page in your browser, for more space for shared links’ files',
5069
+ group: 'In My shared links',
5070
+ persistence: 'external',
5071
+ interaction: 'instant',
5072
+ risk: [],
5073
+ guidance: 'on-demand',
5074
+ });
5075
+
4788
5076
  def('shell.shared-link-page', {
4789
5077
  label: 'Open {instance}',
4790
5078
  actsOn: 'Opens the Page this link shows',
@@ -5270,6 +5558,19 @@
5270
5558
  why: 'The list comes from the exact server-built model bound to this short-lived review. Continue authorizes only that model and omission set.',
5271
5559
  });
5272
5560
 
5561
+ // #2521 row 3b-3: a height the AI chose in a Quick model for a member already in the model, offered as a change.
5562
+ def('shell.revision-ai-height', {
5563
+ label: 'Take the AI’s height',
5564
+ actsOn: 'Selects whether the height the AI chose for {instance} in the Quick model is applied when you confirm',
5565
+ anyInstance: 'a member already in the model',
5566
+ group: 'In the revision review',
5567
+ persistence: 'working',
5568
+ interaction: 'mode',
5569
+ risk: [],
5570
+ guidance: 'on-demand',
5571
+ why: 'The AI chose this height instead of asking you. It starts ticked only if you chose to auto-accept the AI’s changes; untick it to keep the height as it is. Nothing lands until you confirm the review.',
5572
+ });
5573
+
5273
5574
  def('shell.revision-confirm', {
5274
5575
  label: 'Apply selected',
5275
5576
  actsOn: 'Applies the selected drawing changes and any unanswered-question decision shown in this review to a new project version',
@@ -2332,6 +2332,7 @@
2332
2332
  def('steel.rfi-scope', { label: 'Show', actsOn: 'Narrows the RFI list to {instance}', group: 'In the RFI dialog', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A filter changes what is listed, never what is recorded. “This sheet only” is offered only while a plan sheet is open, because otherwise there is no sheet for it to mean.' });
2333
2333
  def('steel.rfi-status-filter', { label: 'Status', actsOn: 'Filters the RFI list to {instance}', group: 'In the RFI dialog', 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.' });
2334
2334
  def('steel.rfi-copy', { label: 'Copy whole RFI', actsOn: 'Copies {instance} as text, ready to paste into an email', group: 'In the RFI dialog', 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.' });
2335
+ 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 the RFI dialog', 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.' });
2335
2336
  def('steel.rfi-group-toggle', { label: 'Show occurrences', actsOn: 'Expands or collapses the ordered occurrences in {instance}', group: 'In the RFI dialog', 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.' });
2336
2337
  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 the RFI dialog', 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.' });
2337
2338
  def('steel.rfi-technical', { label: 'Technical details', actsOn: 'Shows the stored technical identity for {instance}', group: 'In the RFI dialog', 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.' });
@@ -187,6 +187,16 @@ button.icon:hover{color:var(--text)}
187
187
  .ask-type{display:flex;gap:8px;align-items:flex-end;margin-top:10px;max-width:460px}
188
188
  .ask-type .field{flex:1;margin:0}
189
189
  .ask-band{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-color:var(--warn)}
190
+ .pl{margin-top:18px}
191
+ .pl .ask-band{margin:0 0 8px}
192
+ .list.pl-list{list-style:none;margin:0;padding:0}
193
+ .pl-list > .pl-row{display:flex;flex-direction:column;gap:3px;padding:9px 12px;line-height:1.4}
194
+ .pl-list > .pl-row + .pl-row{border-top:1px solid var(--line)}
195
+ .pl-row .w{font-weight:600}
196
+ .pl-row .pl-cols{letter-spacing:.02em;overflow-wrap:anywhere}
197
+ .pl-row .origin,.pl-row .origin-inline{color:var(--mut);font-size:11px}
198
+ .pl-row .row-note{margin:2px 0 0;font-size:12px}
199
+ .pl-row .row-note.undecided{color:var(--warn)}
190
200
  .ask-line{color:var(--text)}
191
201
  .ask .q{margin:0;font-weight:600;line-height:1.45}
192
202
  .ask .note{margin:2px 0 8px}
@@ -546,6 +546,48 @@ export function titleBlockHtml(tb, { pages = 0, note = '', noteField = '', savin
546
546
  <div class="row-actions"><button type="button" data-act="add-field" data-command-id="drawing-check.title-add">Add a field…</button></div></section>`;
547
547
  }
548
548
 
549
+ /**
550
+ * The Part list block (#1963), read-only: for each part-list layout learned from the reference drawings, its
551
+ * columns as printed, anything unusual about its shape, how the list ends, and what its mass columns mean, in a
552
+ * detailer's words, then what the last proposal said about them (`notes`, kept with the layouts so a reload shows them
553
+ * too). No controls.
554
+ * @param {any} pl
555
+ * @param {{ proposed?: boolean }} [opts]
556
+ */
557
+ export function partListHtml(pl, { proposed = false } = {}) {
558
+ const head = '<h3 id="pl-h">Part list</h3>';
559
+ const askBands = ((pl && pl.notes) || []).map((a) => `<div class="band ask-band" role="note"><span>${esc(a)}</span></div>`).join('');
560
+ const layouts = (pl && pl.layouts) || [];
561
+ if (!layouts.length) {
562
+ return `<section class="tb pl" aria-labelledby="pl-h">${head}
563
+ <p class="note">${proposed
564
+ ? 'No part list was recognised on the references. “Part list agrees with the title” and “Part-list masses” report “couldn’t tell” until a reference drawing with a part list is added.'
565
+ : 'Propose from the references to learn how this client’s part lists are laid out.'}</p>${askBands}</section>`;
566
+ }
567
+ const many = layouts.length > 1;
568
+ const rows = layouts.map((l, i) => {
569
+ const share = `learned from ${Math.round((l.support || 0) * 100)}% of the references`;
570
+ const massWords = { 'line-mass': 'the row’s mass', 'unit-mass': 'each piece’s mass' };
571
+ const cols = l.columns.map((c) => `${esc(c.label)}${massWords[c.role] ? ` <span class="origin-inline">(${massWords[c.role]})</span>` : ''}`).join(' · ');
572
+ const shape = [l.turned ? 'Lettering turned a quarter, as on single-part sheets.' : '', l.rowsRun === 'up' ? 'A one-row strip, the values above their labels.' : ''].filter(Boolean).join(' ');
573
+ const t = l.total;
574
+ const ends = !t ? 'No total line was found.'
575
+ : `Ends with ${t.label ? `“${esc(t.label)}”` : 'a total printed on its own'}${t.valueRole ? ', read as the total mass' : ', which ends the list but is not read'}.`;
576
+ const mass = l.columns.filter((c) => massWords[c.role]).map((c) => (c.role === 'line-mass'
577
+ ? `${esc(c.label)} is the row’s mass: the rows add up to the total.`
578
+ : `${esc(c.label)} is each piece’s mass: quantity × ${esc(c.label)}, added up, gives ${l.columns.some((x) => x.role === 'line-mass') ? 'the row’s mass' : 'the total'}.`)).join(' ');
579
+ const basis = l.qtyBasis === 'per-sheet' ? 'Quantities count every assembly on the sheet.' : l.qtyBasis === 'per-assembly' ? 'Quantities count one assembly.' : 'How quantities are counted (per sheet or per assembly) is not known yet.';
580
+ const undecided = l.columns.filter((c) => c.undecided).map((c) => `<p class="row-note undecided">${esc(c.label)}: the references don’t show whether this is each piece’s mass or the row’s, so the part-list mass checks report “couldn’t tell” until a reference drawing with a quantity above 1 settles it.</p>`).join('');
581
+ return `<li class="pl-row"><span class="w">${many ? `Layout ${i + 1} · ` : ''}${esc(share.charAt(0).toUpperCase() + share.slice(1))}</span>
582
+ <span class="pl-cols">${cols}</span>
583
+ ${shape ? `<span class="origin">${shape}</span>` : ''}
584
+ <span class="origin">${ends}${mass ? ` ${mass}` : ''} ${basis}</span>${undecided}</li>`;
585
+ }).join('');
586
+ return `<section class="tb pl" aria-labelledby="pl-h">${head}
587
+ <p class="note">Learned from the reference drawings: how this client’s part lists are laid out. FloLess reads a part list only this way; a list laid out differently is marked “couldn’t tell”, never guessed.</p>
588
+ ${askBands}<ul class="list pl-list">${rows}</ul></section>`;
589
+ }
590
+
549
591
  // ── the page ────────────────────────────────────────────────────────────────────────────────────
550
592
 
551
593
  function boot() {
@@ -977,6 +1019,7 @@ function boot() {
977
1019
  ${S.checklistError ? `<p class="err-line" role="alert">${esc(S.checklistError)}</p>` : ''}
978
1020
  ${list.length ? `<div class="list">${rows}</div>` : '<p class="note">No items yet. Propose them from the reference drawings.</p>'}
979
1021
  ${titleBlockHtml(S.draft && S.draft.titleBlock, { pages, note: S.titleNote, noteField: S.titleNoteField, saving: S.tbSaving, typed: S.typed })}
1022
+ ${partListHtml(S.draft && S.draft.partList, { proposed: list.length > 0 })}
980
1023
  ${S.reviewError ? `<p class="note">${esc(S.reviewError)}</p>` : ''}
981
1024
  ${changed && anyTicked ? `<div class="sticky-foot"><span class="note">${S.tbChanges && S.tbChanges.length ? 'Title block changed · ' : ''}${list.filter((i) => i.enabled).length} of ${list.length} items ticked. Runs use the approved checklist only.</span><span class="sp"></span>
982
1025
  <button type="button" class="primary" data-act="approve" data-command-id="drawing-check.approve">Approve checklist…</button></div>` : ''}</div>`;
@@ -1129,6 +1172,7 @@ function boot() {
1129
1172
  const { body } = await call(`${base}/propose`, { method: 'POST' });
1130
1173
  S.draft.items = body.items; S.etag = body.etag; S.newSinceApproval = 0;
1131
1174
  if (body.titleBlock) S.draft.titleBlock = body.titleBlock; else delete S.draft.titleBlock;
1175
+ if (body.partList) S.draft.partList = body.partList; else delete S.draft.partList;
1132
1176
  if (body.client) S.draft.client = body.client;
1133
1177
  if (body.unreadable && body.unreadable.length) S.checklistError = `Couldn’t read ${body.unreadable.join(', ')}; the other drawings were used.`;
1134
1178
  await loadReview();
package/dist/web/guide.js CHANGED
@@ -907,7 +907,9 @@
907
907
  go.type = 'button';
908
908
  go.dataset.commandId = `shell.guide-move-open#${move.kind}`;
909
909
  go.dataset.commandInstanceLabel = text.title;
910
- go.dataset.tip = 'Opens the place to do this. Nothing happens until you confirm there.';
910
+ // An Open card only shows a page, so it never speaks of a next step to confirm.
911
+ const opensOnly = move.kind === 'open';
912
+ go.dataset.tip = opensOnly ? `${text.action}. Nothing changes.` : 'Opens the place to do this. Nothing happens until you confirm there.';
911
913
  go.addEventListener('click', async () => {
912
914
  go.disabled = true; go.setAttribute('aria-busy', 'true'); go.textContent = 'Checking…';
913
915
  status.textContent = '';
@@ -938,7 +940,7 @@
938
940
  }
939
941
  });
940
942
  actions.append(go, later);
941
- card.append(actions, el('p', 'ai-chat-filter-note', 'Nothing happens until you confirm in the next step.'), status);
943
+ card.append(actions, el('p', 'ai-chat-filter-note', opensOnly ? 'This only opens the page. Nothing changes.' : 'Nothing happens until you confirm in the next step.'), status);
942
944
  if (focusBack) go.focus();
943
945
  };
944
946
  /**
@@ -265,14 +265,6 @@
265
265
  <div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
266
266
  <div class="ai-chat-approval-tray" id="chat-approval-tray"></div>
267
267
  <div class="ai-chat-composer" id="chat-composer">
268
- <div class="ai-chat-scope-controls" id="chat-scope-controls" hidden>
269
- <button type="button" id="chat-scope-toggle" data-command-id="shell.chat-scope-open" aria-expanded="false" aria-controls="chat-scope-picker">Scope</button>
270
- <button type="button" id="chat-access-explanation" data-command-id="shell.chat-access-explanation#hidden" aria-expanded="false" aria-controls="chat-scope-disclosure" aria-label="Explain Read only access" data-tip="Show what this access level allows."><span>Access · </span><strong>Read only</strong><span class="ai-chat-access-chevron" aria-hidden="true">⌄</span></button>
271
- <span id="chat-scope-disclosure" aria-live="polite" hidden></span>
272
- <section class="ai-chat-picker ai-chat-scope-picker" id="chat-scope-picker" role="dialog" aria-label="Conversation scope" hidden></section>
273
- </div>
274
- <!-- #1890: a workspace conversation's units question, and then its "Units: … · Change" line. -->
275
- <div class="ai-chat-units" id="chat-units" hidden></div>
276
268
  <!-- #1890 PR4: one Revoke ends all global file-change grants; legacy owner grants appear only without a global allowance (web/chat.js). -->
277
269
  <div class="ai-chat-connectors" id="chat-change-allowance" role="group" aria-label="Changes allowed for this chat" hidden></div>
278
270
  <!-- #1900: the connection checks this chat may run without asking, each with Revoke (web/chat.js). -->
@@ -291,12 +283,22 @@
291
283
  sits in the composer's rigid grid row, so no conversation-area height can take
292
284
  it away (#1501). -->
293
285
  <p class="ai-chat-composer-disclosure" id="chat-composer-disclosure" hidden>Messages and attachments are sent to Claude or Codex through your account.</p>
286
+ <!-- Status, working and error text sits on its own line under the message box; the idle keyboard hint is read to screen readers only (web/chat.js). -->
287
+ <span class="ai-chat-compose-hint" id="chat-compose-hint">Enter to send · Shift+Enter for a new line</span>
294
288
  <div class="ai-chat-compose-actions">
295
289
  <!-- No accept= filter (#1853): data files are recognised by their contents, so the chooser lets
296
290
  every file through to be checked; one FloLess cannot read is refused before upload. -->
297
291
  <input data-command-id="shell.chat-attach-input" id="chat-file" type="file" multiple hidden>
298
292
  <button data-command-id="shell.chat-attach" type="button" class="ai-chat-icon" id="chat-attach" data-tip="Attach a picture, PDF, or data file (IFC, DXF, CSV, text)" aria-label="Attach a picture, PDF, or data file"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/></svg></button>
299
- <span class="ai-chat-compose-hint" id="chat-compose-hint">Enter to send · Shift+Enter for a new line</span>
293
+ <!-- One toolbar under the message box: attach, the conversation's scope, access and units, then Send. -->
294
+ <div class="ai-chat-scope-controls" id="chat-scope-controls" hidden>
295
+ <button type="button" id="chat-scope-toggle" data-command-id="shell.chat-scope-open" aria-expanded="false" aria-controls="chat-scope-picker">Scope</button>
296
+ <button type="button" id="chat-access-explanation" data-command-id="shell.chat-access-explanation#hidden" aria-expanded="false" aria-controls="chat-scope-disclosure" aria-label="Explain Read only access" data-tip="Show what this access level allows."><span class="sr-only">Access · </span><strong>Read only</strong><span class="ai-chat-access-chevron" aria-hidden="true">⌄</span></button>
297
+ <span id="chat-scope-disclosure" aria-live="polite" hidden></span>
298
+ <section class="ai-chat-picker ai-chat-scope-picker" id="chat-scope-picker" role="dialog" aria-label="Conversation scope" hidden></section>
299
+ </div>
300
+ <!-- #1890: once a workspace conversation's units are chosen, a units chip ("ft-in ⌄") with a two-item menu. -->
301
+ <div class="ai-chat-units" id="chat-units" hidden></div>
300
302
  <button data-command-id="shell.chat-stop" type="button" class="ai-chat-stop" id="chat-stop" aria-label="Stop response" data-tip="Stop response" hidden><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="5" y="5" width="14" height="14" rx="2.5"/></svg></button>
301
303
  <button data-command-id="shell.chat-send" type="button" class="ai-chat-send" id="chat-send" aria-label="Send message"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/></svg></button>
302
304
  </div>
@@ -447,6 +449,8 @@
447
449
  <button data-command-id="shell.workspace-step#exports" type="button" data-step="exports" role="tab" aria-selected="false">Exports</button>
448
450
  <button data-command-id="shell.workspace-step#history" type="button" data-step="history" role="tab" aria-selected="false">History</button>
449
451
  <button data-command-id="shell.workspace-step#pages" type="button" data-step="pages" role="tab" aria-selected="false">Pages</button>
452
+ <button data-command-id="shell.workspace-step#workflows" type="button" data-step="workflows" role="tab" aria-selected="false" hidden>Workflows</button>
453
+ <button data-command-id="shell.workspace-step#modules" type="button" data-step="modules" role="tab" aria-selected="false" hidden>Modules</button>
450
454
  </div>
451
455
  <span class="ws-step-end">
452
456
  <!-- Shown only on the Drawings/Source step. It used to have a 42px band of its own labelled
@@ -508,6 +512,12 @@
508
512
  <!-- Pages (#2262) = a SHELL-rendered pane: this project's stored, versioned HTML Pages.
509
513
  pages.js fills it on step-switch (flolessPages.renderList). -->
510
514
  <div class="ws-pages" id="ws-pages" hidden></div>
515
+ <!-- #2470 R6.2: Workflows = a SHELL-rendered pane: the workflows this project owns.
516
+ project-workflows.js fills it on step-switch (flolessProjectWorkflows.render). -->
517
+ <div class="ws-pages ws-workflows" id="ws-workflows" hidden></div>
518
+ <!-- #2470 R6.7: Modules = a SHELL-rendered pane: the module projects linked to a General project.
519
+ project-modules.js fills it on step-switch (flolessProjectModules.render). -->
520
+ <div class="ws-pages ws-modules" id="ws-modules" hidden></div>
511
521
  <!-- Knowledge = a SHELL-rendered pane (not an iframe): the project's Knowledge Base.
512
522
  workspaces.js fills it on step-switch (renderKnowledge). Stage B ships the References
513
523
  column (drop / useAsKb / remove / Organize); the graph + note columns are Stage C/D.
@@ -1230,6 +1240,12 @@
1230
1240
  <button data-command-id="shell.dialog-close#My shared links" id="sl-close" type="button" class="ghost" aria-label="Close">×</button>
1231
1241
  </div>
1232
1242
  <p class="sl-note" id="sl-note" role="status" hidden></p>
1243
+ <div class="sl-usage" id="sl-usage" data-level="ok" hidden>
1244
+ <div class="sl-usage-row"><span class="sl-usage-label" id="sl-usage-label">Space for shared files</span><span class="sl-usage-value" id="sl-usage-value" aria-hidden="true"></span></div>
1245
+ <div class="sl-meter" id="sl-meter" role="meter" aria-labelledby="sl-usage-label" aria-valuemin="0" aria-valuemax="1" aria-valuenow="0"><span class="sl-meter-fill" id="sl-meter-fill"></span></div>
1246
+ <p class="sl-usage-status" id="sl-usage-status" role="status" hidden></p>
1247
+ <div class="sl-usage-foot"><span class="sl-usage-help">Revoking a link frees the space only it used, within a day.</span><button data-command-id="shell.shared-links-plans" id="sl-plans" type="button" class="ghost" hidden>See plans</button></div>
1248
+ </div>
1233
1249
  <div class="sl-list" id="sl-list" role="list" aria-label="My shared links"></div>
1234
1250
  <div class="sl-foot"><button data-command-id="shell.shared-links-more" id="sl-more" type="button" class="ghost" hidden>Show more</button></div>
1235
1251
  </div>
@@ -1390,6 +1406,8 @@
1390
1406
  <span data-chat-provider-status="codex"></span>
1391
1407
  </div>
1392
1408
  <div class="project-setup-note">This project’s conversation stays with the AI you choose here.</div>
1409
+ <!-- #2470 R6.4: what a General project's kickoff chat does; shown for General only. -->
1410
+ <div class="project-setup-note" id="project-setup-kickoff-note" hidden>Flo will ask what this project is and suggest what to add. Nothing changes until you confirm.</div>
1393
1411
  </fieldset>
1394
1412
  </div>
1395
1413
  <div class="project-setup-storage-note">FloLess stores this project, its AI Chat history, Knowledge and project workflows in this folder. AI starts here too.</div>
@@ -1519,6 +1537,17 @@
1519
1537
 
1520
1538
  <!-- Save-on-switch confirmation — shown when switching workflows with unsaved
1521
1539
  input changes. Reuses the shared modal styling; no new backdrop look. -->
1540
+ <!-- Add a module / Link an existing project (project-modules.js, #2470 R6.7): the Project access sheet's chrome. -->
1541
+ <div class="modal-backdrop pa-backdrop pm-backdrop" id="project-modules-sheet" role="dialog" aria-modal="true" aria-labelledby="pm-title" aria-describedby="pm-sub">
1542
+ <aside class="pa-sheet pm-sheet" tabindex="-1">
1543
+ <header class="pa-head">
1544
+ <div><h2 class="pa-title" id="pm-title">Add a module</h2><p class="pa-subtitle" id="pm-sub"></p></div>
1545
+ <button type="button" class="pa-close" id="pm-close" aria-label="Close" data-tip="Close" data-command-id="shell.project-modules-sheet-close">✕</button>
1546
+ </header>
1547
+ <div class="pa-body" id="pm-body"></div>
1548
+ <footer class="pa-foot">A linked project keeps its own access. Linking gives this project nothing.</footer>
1549
+ </aside>
1550
+ </div>
1522
1551
  <!-- Project access sheet (project-access.js): slides in from the right over the open project. -->
1523
1552
  <div class="modal-backdrop pa-backdrop" id="project-access-sheet" role="dialog" aria-modal="true" aria-labelledby="pa-title" aria-describedby="pa-sub">
1524
1553
  <aside class="pa-sheet" tabindex="-1">
@@ -2072,6 +2101,7 @@
2072
2101
  <script src="commands.js"></script>
2073
2102
  <script src="app.js"></script>
2074
2103
  <script src="workspace-root-management.js"></script>
2104
+ <script src="workspace-root-recovery.js"></script>
2075
2105
  <script src="project-reconciliation.js"></script>
2076
2106
  <script src="parser-setup-recovery.js"></script>
2077
2107
  <script src="renderers.js"></script>
@@ -2100,6 +2130,8 @@
2100
2130
  <script src="agents.js"></script>
2101
2131
  <script src="project-access.js"></script>
2102
2132
  <script src="pages.js"></script>
2133
+ <script src="project-workflows.js"></script>
2134
+ <script src="project-modules.js"></script>
2103
2135
  <script src="guide.js"></script>
2104
2136
  <script src="connections.js"></script>
2105
2137
  <script src="local-discovery.js"></script>