@floless/app 0.150.0 → 0.152.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.
@@ -191,7 +191,34 @@
191
191
  <div class="ai-chat-setting ai-chat-provider" id="chat-provider" data-tip="FloLess uses whichever account is signed in to the Claude Code or Codex CLI on this computer. Signing in to the Claude desktop app or claude.ai does not change it. Switch account signs that CLI out first, then opens a window where you sign in."><span>Provider</span><strong aria-live="polite">—</strong><button data-command-id="shell.chat-switch-account" type="button" class="ai-chat-provider-switch" id="chat-switch-account" hidden>Switch account…</button></div>
192
192
  <button data-command-id="shell.chat-model" type="button" class="ai-chat-setting" id="chat-model" aria-haspopup="listbox" aria-expanded="false" data-tip="Choose the model for future messages in this conversation."><span>AI model</span><strong>Choose model</strong></button>
193
193
  <button data-command-id="shell.chat-effort" type="button" class="ai-chat-setting" id="chat-effort" aria-haspopup="listbox" aria-expanded="false" data-tip="Choose how much reasoning the AI uses for future messages."><span>Effort</span><strong>Medium</strong></button>
194
- <button data-command-id="shell.chat-permission" type="button" class="ai-chat-setting" id="chat-permission" aria-haspopup="listbox" aria-expanded="false" data-tip="Access controls what the AI may change: Read only, Working folder write, or Full access."><span>Access</span><strong>Read only</strong></button>
194
+ <button data-command-id="shell.chat-permission" type="button" class="ai-chat-setting" id="chat-permission" aria-haspopup="listbox" aria-expanded="false" data-tip="Access controls what the AI may change: Read only, Auto, Working folder write, or Full access."><span>Access</span><strong>Read only</strong></button>
195
+ <!-- #2046: a Guide conversation's Access is a statement, not a picker, and holds the Guide's own privacy controls. -->
196
+ <div class="ai-chat-setting ai-chat-guide-access" id="chat-guide-access" hidden>
197
+ <span>Access</span><strong>Read only</strong>
198
+ <p class="ai-chat-guide-note">The Guide only reads, so this can’t be changed. To make changes, use its buttons or start a regular conversation with the + button. Auto is offered inside a project or workflow.</p>
199
+ <!-- #2053: the opt-in morning briefing; web/guide.js paints it (off by default). -->
200
+ <div class="ai-chat-guide-briefing" id="chat-guide-briefing">
201
+ <!-- The briefing's time: the same themed combobox the app draws for a select, built without one
202
+ (AI Chat has no native select); web/guide.js fills, sets and places it. -->
203
+ <div class="rtn-time" id="chat-guide-briefing-time" hidden>
204
+ <div class="wf-combo fm-select sel-combo">
205
+ <button data-command-id="shell.guide-briefing-time#hour" type="button" class="wf-trigger fm-select-trigger" role="combobox" id="chat-guide-briefing-hour" aria-haspopup="listbox" aria-expanded="false" aria-controls="chat-guide-briefing-hour-list" aria-label="Briefing hour"><span class="wf-trigger-label fm-select-label">00</span><svg class="wf-caret" width="10" height="6" viewBox="0 0 10 6" aria-hidden="true"><path fill="currentColor" d="M0 0l5 6 5-6z"/></svg></button>
206
+ <div class="wf-popover fm-select-popover" role="listbox" id="chat-guide-briefing-hour-list" aria-label="Briefing hour" hidden><div class="wf-list fm-select-list"></div></div>
207
+ </div>
208
+ <span class="rtn-time-sep">:</span>
209
+ <div class="wf-combo fm-select sel-combo">
210
+ <button data-command-id="shell.guide-briefing-time#minute" type="button" class="wf-trigger fm-select-trigger" role="combobox" id="chat-guide-briefing-minute" aria-haspopup="listbox" aria-expanded="false" aria-controls="chat-guide-briefing-minute-list" aria-label="Briefing minute"><span class="wf-trigger-label fm-select-label">00</span><svg class="wf-caret" width="10" height="6" viewBox="0 0 10 6" aria-hidden="true"><path fill="currentColor" d="M0 0l5 6 5-6z"/></svg></button>
211
+ <div class="wf-popover fm-select-popover" role="listbox" id="chat-guide-briefing-minute-list" aria-label="Briefing minute" hidden><div class="wf-list fm-select-list"></div></div>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ <!-- #2054: next moves set aside with Not now (remembered for the account); web/guide.js paints it, hidden when none. -->
216
+ <div class="ai-chat-guide-set-aside" id="chat-guide-set-aside" hidden></div>
217
+ <div class="ai-chat-guide-actions">
218
+ <button data-command-id="shell.guide-turn-off" type="button" id="chat-guide-off" data-tip="Stops the Guide looking at this computer. This conversation stays; turn it on again from ≡ → Guide.">Turn off the Guide</button>
219
+ <button data-command-id="shell.guide-delete" type="button" id="chat-guide-delete" data-tip="Deletes your Guide conversations in this projects folder. Asks first.">Delete Guide history…</button>
220
+ </div>
221
+ </div>
195
222
  <button data-command-id="shell.chat-integrations" type="button" class="ai-chat-setting ai-chat-integration-setting" id="chat-integrations" aria-haspopup="listbox" aria-expanded="false"><span>Connected accounts</span><strong>Choose a connected account</strong></button>
196
223
  <!-- #1907 (owner ruling 2026-10-03): the AI's own connectors are off in every new conversation; this turns them on for this one. -->
197
224
  <button data-command-id="shell.chat-own-connectors" type="button" class="ai-chat-setting ai-chat-own-connectors" id="chat-own-connectors" role="switch" aria-checked="false"><span>Use my connectors in this chat</span><strong aria-hidden="true">Off</strong></button>
@@ -675,6 +702,47 @@
675
702
  workflow prepared by AWARE, and ONE person click that carries their approvals forward. The
676
703
  server owns every decision (tool-updates-service.ts); tool-updates.js only renders its view
677
704
  and sends the click. -->
705
+ <!-- #2046: the Guide's question — what it reads, the two sharing switches, the AI, and a preview of exactly what would be
706
+ sent. Filled by web/guide.js; the buttons never scroll away. -->
707
+ <div class="modal-backdrop" id="guide-agent-modal" role="dialog" aria-modal="true" aria-labelledby="guide-modal-title" aria-describedby="guide-modal-sub">
708
+ <div class="modal guide-dialog">
709
+ <!-- #2140: Flo, the Guide's face, beside the title — never beside the choice below. -->
710
+ <div class="guide-head"><span class="guide-flo" id="guide-flo" aria-hidden="true"></span><div class="modal-title" id="guide-modal-title" tabindex="-1">Let the Guide show you around?</div></div>
711
+ <div class="modal-sub" id="guide-modal-sub"></div>
712
+ <div class="guide-body" id="guide-modal-body"></div>
713
+ <div class="sr-only" id="guide-modal-live" role="status" aria-live="polite"></div>
714
+ <div class="modal-actions">
715
+ <button data-command-id="shell.guide-not-now" id="guide-modal-secondary" type="button">Not now</button>
716
+ <button data-command-id="shell.guide-turn-on" id="guide-modal-primary" type="button" class="primary">Turn on the Guide</button>
717
+ </div>
718
+ <p class="guide-foot" id="guide-modal-foot"></p>
719
+ </div>
720
+ </div>
721
+
722
+ <div class="modal-backdrop" id="guide-delete-modal" role="dialog" aria-modal="true" aria-labelledby="guide-delete-title" aria-describedby="guide-delete-sub">
723
+ <div class="modal">
724
+ <div class="modal-title" id="guide-delete-title">Delete the Guide’s conversation?</div>
725
+ <div class="modal-sub" id="guide-delete-sub">This removes your Guide conversations in this projects folder, for both Claude and Codex, from this computer. Anything already sent to Claude or Codex stays under their own rules, and FloLess can’t take it back. Your other conversations, and whether the Guide is on, are not changed.</div>
726
+ <div class="modal-actions">
727
+ <button data-command-id="shell.dialog-cancel#deleting Guide history" id="guide-delete-cancel" type="button">Cancel</button>
728
+ <button data-command-id="shell.guide-delete-confirm" id="guide-delete-confirm" type="button" class="danger">Delete Guide history</button>
729
+ </div>
730
+ </div>
731
+ </div>
732
+
733
+ <!-- #2059: an Instructor answer's AI uses no tools; giving it Access turns it into an ordinary chat, so FloLess asks first.
734
+ web/chat.js fills the body and the confirm label with the chosen Access. -->
735
+ <div class="modal-backdrop" id="chat-instructor-access-modal" role="dialog" aria-modal="true" aria-labelledby="chat-instructor-access-title" aria-describedby="chat-instructor-access-sub">
736
+ <div class="modal">
737
+ <div class="modal-title" id="chat-instructor-access-title">Change this chat’s Access?</div>
738
+ <div class="modal-sub" id="chat-instructor-access-sub">This chat is an Instructor answer, so the AI used no tools.</div>
739
+ <div class="modal-actions">
740
+ <button data-command-id="shell.dialog-cancel#changing this chat’s Access" id="chat-instructor-access-keep" type="button">Keep as Instructor answer</button>
741
+ <button data-command-id="shell.chat-instructor-access-confirm" id="chat-instructor-access-confirm" type="button" class="primary">Change Access</button>
742
+ </div>
743
+ </div>
744
+ </div>
745
+
678
746
  <div class="modal-backdrop" id="tool-updates-modal" role="dialog" aria-modal="true"
679
747
  aria-labelledby="tool-updates-title" aria-describedby="tool-updates-sub" aria-busy="false">
680
748
  <div class="modal tool-updates-dialog" tabindex="-1">
@@ -682,6 +750,8 @@
682
750
  <div class="modal-sub" id="tool-updates-sub">Your workflows keep running on the tool versions you approved until you approve a change.</div>
683
751
  <div class="tool-updates-body" id="tool-updates-body"></div>
684
752
  <div class="tool-updates-live" id="tool-updates-live" role="status" aria-live="polite" aria-atomic="true"></div>
753
+ <div class="tool-updates-progress" id="tool-updates-progress" hidden></div>
754
+ <div class="tool-updates-announce" id="tool-updates-announce" role="status" aria-live="polite" aria-atomic="true"></div>
685
755
  <div class="tool-updates-foot" id="tool-updates-foot"></div>
686
756
  <div class="modal-actions">
687
757
  <button data-command-id="shell.tool-updates-check" id="tool-updates-check" type="button">Check for updates</button>
@@ -794,6 +864,11 @@
794
864
  <span class="menu-kbd">Ctrl+R</span>
795
865
  </button>
796
866
  <div class="menu-divider"></div>
867
+ <!-- #2046: the Guide — FloLess's onboarding agent in AI Chat (web/guide.js). -->
868
+ <button class="menu-item" data-action="guide" data-command-id="menu.guide" role="menuitem">
869
+ <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"/></svg></span>
870
+ <span class="menu-label">Guide</span>
871
+ </button>
797
872
  <button class="menu-item" data-action="report-issue" data-command-id="menu.report-issue" role="menuitem">
798
873
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"/><line x1="4" x2="4" y1="22" y2="15"/></svg></span>
799
874
  <span class="menu-label">Report an issue</span>
@@ -1182,7 +1257,7 @@
1182
1257
  <button data-command-id="shell.dialog-cancel#the approval review" id="approval-review-cancel" type="button">Cancel</button>
1183
1258
  <button data-command-id="shell.approval-retry" id="approval-review-retry" type="button" hidden>Try again</button>
1184
1259
  <button data-command-id="shell.approval-reload" id="approval-review-reload" type="button" hidden>Reload current review</button>
1185
- <button data-command-id="shell.dialog-close#approval recovery" id="approval-review-close" type="button" hidden>Close</button>
1260
+ <button data-command-id="shell.dialog-close#approval review" id="approval-review-close" type="button" hidden>Close</button>
1186
1261
  <button data-command-id="shell.approval-confirm" id="approval-review-confirm" type="button" class="primary" disabled>Approve selected changes</button>
1187
1262
  </div>
1188
1263
  </div>
@@ -1326,6 +1401,7 @@
1326
1401
  <p>FloLess will show projects and workflows from this folder.</p>
1327
1402
  </div>
1328
1403
  <div class="workspace-root-error" id="workspace-root-error" role="alert" aria-live="assertive" hidden></div>
1404
+ <div id="workspace-root-instructor-note" role="note" aria-label="Instructor guidance" aria-live="polite" tabindex="0" hidden></div>
1329
1405
  <div class="modal-actions">
1330
1406
  <button data-command-id="shell.workspace-root-cancel" id="workspace-root-cancel" type="button">Close</button>
1331
1407
  <button data-command-id="shell.workspace-root-change" id="workspace-root-change" type="button">Choose another Workspace directory…</button>
@@ -1337,7 +1413,12 @@
1337
1413
  <div class="modal-backdrop" id="requests-modal">
1338
1414
  <div class="modal requests" role="dialog" aria-modal="true" aria-labelledby="requests-title" tabindex="-1">
1339
1415
  <div class="modal-title" id="requests-title">Requests</div>
1340
- <div class="modal-sub">Start queued work in AI Chat or run it in the background with your terminal AI.</div>
1416
+ <div class="modal-sub" id="requests-sub">Start queued work in AI Chat or run it in the background with your terminal AI.</div>
1417
+ <!-- #2060: Done lists the Requests that left the queue, so each one's conversation stays reachable. -->
1418
+ <div class="tabs req-view" id="requests-view" role="tablist" aria-label="Queued or done requests">
1419
+ <button data-command-id="shell.requests-view#queued" type="button" data-reqview="queued" class="active" role="tab" aria-selected="true" aria-controls="requests-list" id="requests-view-queued">Queued</button>
1420
+ <button data-command-id="shell.requests-view#done" type="button" data-reqview="done" role="tab" aria-selected="false" aria-controls="requests-list" id="requests-view-done" data-tip="Requests that left the queue in the last 30 days">Done</button>
1421
+ </div>
1341
1422
  <div class="req-guidance" id="requests-guidance" role="status" aria-live="polite" aria-atomic="true" hidden></div>
1342
1423
  <span class="sr-only" id="requests-action-status" role="status" aria-live="polite" aria-atomic="true"></span>
1343
1424
  <!-- Scope + search. The scope row is hidden when nothing is open to scope TO (the
@@ -1350,6 +1431,7 @@
1350
1431
  <input data-command-id="shell.request-search" id="requests-search" class="lib-search req-search" type="text" placeholder="Search by project, workflow, or what you asked for" aria-label="Search requests">
1351
1432
  <div class="requests-list" id="requests-list"></div>
1352
1433
  <div class="modal-actions">
1434
+ <span class="req-done-note" id="requests-done-note" hidden>Showing the last 30 days. Nothing here runs again.</span>
1353
1435
  <button data-command-id="shell.request-clear" id="requests-clear">Clear all</button>
1354
1436
  <button data-command-id="shell.request-copy" id="requests-copy">Copy available</button>
1355
1437
  <button data-command-id="shell.dialog-close#the requests list" id="requests-close" class="primary">Close</button>
@@ -1432,7 +1514,9 @@
1432
1514
  <div class="modal-backdrop" id="routines-modal">
1433
1515
  <div class="modal routines">
1434
1516
  <div class="modal-title">Routines</div>
1435
- <div class="modal-sub">Run a workflow automatically — on a schedule, or on a live trigger (e.g. whenever your model changes). Runs happen on this machine through your live host — exactly like clicking ▶ Run workflow.</div>
1517
+ <div class="modal-sub">Run a workflow automatically — on a schedule, or on a live trigger (e.g. whenever your model changes) — exactly like clicking ▶ Run workflow. Or start an agent on a schedule: nobody watches that run, so anything that would ask you is declined and listed for you on the Agents page.</div>
1518
+ <!-- #2062: never read as always-on. The link shows only where the start-on-login setting exists (app.js). -->
1519
+ <p class="rtn-local-note" id="rtn-local-note">Routines run only while FloLess is running on this computer. A run that falls while it is closed is noted as missed, and isn’t made up later. <button type="button" class="rtn-link" id="rtn-startup-link" data-start-on-login-link data-command-id="shell.routines-start-on-login" data-tip="Closes Routines and shows the Start on startup switch in the menu" hidden>Start FloLess when you sign in…</button></p>
1436
1520
  <div class="rtn-quota" id="rtn-quota"></div>
1437
1521
  <div class="routines-list" id="routines-list"></div>
1438
1522
  <div class="modal-actions">
@@ -1446,15 +1530,33 @@
1446
1530
  <div class="modal-backdrop" id="routine-edit-modal">
1447
1531
  <div class="modal routine-edit">
1448
1532
  <div class="modal-title" id="rtn-edit-title">New routine</div>
1449
- <div class="modal-sub">Pick a workflow and when it should run.</div>
1533
+ <div class="modal-sub" id="rtn-edit-sub">Pick a workflow and when it should run.</div>
1450
1534
  <div class="modal-field">
1451
1535
  <label for="rtn-name">Name</label>
1452
1536
  <input data-command-id="shell.routine-name" id="rtn-name" type="text" placeholder="e.g. Morning BOM export" autocomplete="off">
1453
1537
  </div>
1454
- <div class="modal-field">
1538
+ <!-- #2035: a routine runs a workflow or starts an agent (with nobody watching). Fixed after create. -->
1539
+ <div class="modal-field" id="rtn-target-field">
1540
+ <label>What it runs</label>
1541
+ <div class="rtn-mode" role="group" aria-label="What the routine runs">
1542
+ <button data-command-id="shell.routine-target#a workflow" type="button" class="rtn-mode-btn active" data-target="workflow" aria-pressed="true">A workflow</button>
1543
+ <button data-command-id="shell.routine-target#an agent" type="button" class="rtn-mode-btn" data-target="agent" aria-pressed="false">An agent</button>
1544
+ </div>
1545
+ </div>
1546
+ <div class="modal-field" id="rtn-workflow-field">
1455
1547
  <label for="rtn-workflow">Workflow</label>
1456
1548
  <select data-command-id="shell.routine-workflow" id="rtn-workflow"></select>
1457
1549
  </div>
1550
+ <div class="modal-field" id="rtn-agent-field" hidden>
1551
+ <label for="rtn-agent">Agent</label>
1552
+ <select data-command-id="shell.routine-agent" id="rtn-agent"></select>
1553
+ <div class="rtn-mode rtn-agent-ai" id="rtn-agent-ai" role="group" aria-label="AI that runs the agent">
1554
+ <button data-command-id="shell.routine-agent-ai#Claude" type="button" class="rtn-mode-btn active" data-ai="claude" aria-pressed="true">Claude</button>
1555
+ <button data-command-id="shell.routine-agent-ai#Codex" type="button" class="rtn-mode-btn" data-ai="codex" aria-pressed="false">Codex</button>
1556
+ </div>
1557
+ <div class="rtn-cron-hint" id="rtn-agent-note" aria-live="polite"></div>
1558
+ <div class="rtn-cron-hint" id="rtn-agent-empty" hidden>No agents in this workspace folder yet. <button type="button" class="rtn-link" id="rtn-agent-create" data-command-id="shell.routine-agent-create">Create one on the Agents page</button></div>
1559
+ </div>
1458
1560
  <!-- Routine kind chooser — schedule vs event-trigger. Hidden unless the picked
1459
1561
  workflow is trigger-eligible (its source is a streaming lifecycle:start command). -->
1460
1562
  <div class="modal-field" id="rtn-mode-field" hidden>
@@ -1531,6 +1633,9 @@
1531
1633
  <label>Inputs</label>
1532
1634
  <div id="rtn-inputs"></div>
1533
1635
  </div>
1636
+ <!-- #2062: the editor says it too (it opens straight from an agent's Schedule…); no link here, because leaving
1637
+ would drop the routine being written — the Routines list carries the link. -->
1638
+ <div class="rtn-cron-hint rtn-local-hint" id="rtn-local-hint">Runs only while FloLess is running on this computer.<span data-start-on-login-hint hidden> To have FloLess start when you sign in, turn on Start on startup in the ≡ menu.</span></div>
1534
1639
  <div class="modal-field rtn-enabled-field">
1535
1640
  <label class="rtn-toggle" data-command-id="shell.routine-enabled">
1536
1641
  <input type="checkbox" id="rtn-enabled" checked>
@@ -1579,6 +1684,7 @@
1579
1684
  <span>Include these import details</span>
1580
1685
  </label>
1581
1686
  </div>
1687
+ <div class="integrations-hint ri-send-error" id="ri-send-error" role="alert" hidden></div>
1582
1688
  <div class="integrations-hint" id="ri-context"></div>
1583
1689
  <div class="modal-actions">
1584
1690
  <button data-command-id="shell.dialog-cancel#the issue report" id="ri-cancel">Cancel</button>
@@ -1606,9 +1712,9 @@
1606
1712
  NuGet / OpenAPI / …). The wizard body (#graft-body) is built per-step in
1607
1713
  aware.js. AWARE reads the source + builds the agent (incl. its Tekla
1608
1714
  model-plugin recipe); floless only stages, previews, and surfaces it. -->
1609
- <div class="modal-backdrop" id="graft-modal">
1610
- <div class="modal graft">
1611
- <div class="modal-title" id="graft-title">Graft into tool</div>
1715
+ <div class="modal-backdrop" id="graft-modal" role="dialog" aria-modal="true" aria-labelledby="graft-title" aria-describedby="graft-sub">
1716
+ <div class="modal graft" tabindex="-1">
1717
+ <div class="modal-title" id="graft-title" tabindex="-1">Graft into tool</div>
1612
1718
  <div class="modal-sub" id="graft-sub">Point at a DLL, package, or API spec — AWARE reads it and builds a tool you can drop into any workflow.</div>
1613
1719
  <div id="graft-body"></div>
1614
1720
  <div id="graft-instructor-note" role="note" aria-label="Instructor guidance" aria-live="polite" tabindex="0" hidden></div>
@@ -1697,9 +1803,13 @@
1697
1803
  <script src="analytics.js"></script>
1698
1804
  <script src="commands.js"></script>
1699
1805
  <script src="app.js"></script>
1806
+ <script src="workspace-root-management.js"></script>
1807
+ <script src="parser-setup-recovery.js"></script>
1700
1808
  <script src="renderers.js"></script>
1701
1809
  <script src="aware-update-client.js"></script>
1702
1810
  <script src="leave-guard.js"></script>
1811
+ <script src="flo.js"></script>
1812
+ <script src="flo-avatar.js"></script>
1703
1813
  <script src="aware.js"></script>
1704
1814
  <script src="tool-updates.js"></script>
1705
1815
  <script src="panels.js"></script>
@@ -1708,6 +1818,7 @@
1708
1818
  <script src="left-pane.js"></script>
1709
1819
  <script src="chat.js"></script>
1710
1820
  <script src="agents.js"></script>
1821
+ <script src="guide.js"></script>
1711
1822
  <script src="connections.js"></script>
1712
1823
  <script src="local-discovery.js"></script>
1713
1824
  <script src="account-menu.js"></script>
@@ -194,7 +194,11 @@
194
194
  );
195
195
  }
196
196
  // #1996: it runs, but part of its approval record is missing — say so instead of "in sync".
197
- parts.push(wf.recordIncomplete ? 'part of its approval record is missing' : 'in sync');
197
+ parts.push(wf.recordIncomplete ? 'part of its approval record is missing' : wf.bridgeWarning ? 'its approval is current' : 'in sync');
198
+ if (wf.bridgeWarning) {
199
+ parts.push('a tool’s host bridge needs attention; review the warning above the canvas');
200
+ parts.push('Run is still available and records the warning');
201
+ }
198
202
  parts.push(nextStep(wf));
199
203
  }
200
204
 
@@ -428,6 +432,9 @@
428
432
  if (guidance && typeof window.flolessGraftInstructorExplain === 'function') {
429
433
  window.flolessGraftInstructorExplain({ chip: guidance.chip || '', parts: guidance.parts.slice(), commandId: guidance.commandId || '' });
430
434
  }
435
+ if (guidance && typeof window.flolessWorkspaceRootInstructorExplain === 'function') {
436
+ window.flolessWorkspaceRootInstructorExplain({ chip: guidance.chip || '', parts: guidance.parts.slice(), commandId: guidance.commandId || '' });
437
+ }
431
438
  }
432
439
 
433
440
  function setCollapsed(next) {
@@ -654,6 +661,7 @@
654
661
  if (!snapshot.focus) return;
655
662
  snapshot.focus = null;
656
663
  if (typeof window.flolessGraftInstructorClear === 'function') window.flolessGraftInstructorClear();
664
+ if (typeof window.flolessWorkspaceRootInstructorClear === 'function') window.flolessWorkspaceRootInstructorClear();
657
665
  paint();
658
666
  }
659
667
 
@@ -842,13 +850,15 @@
842
850
  a static array cannot express that, because "active" is runtime state. */
843
851
  var GROUP_ORDER = [
844
852
  // the shell
845
- 'In the header', 'In the workflow picker', 'In the project picker', 'In the project list', 'On the Workflows page', 'In the workflow picker and on a draft workflow',
853
+ 'In the header', 'In the workflow picker', 'In the project picker', 'In the project list', 'On the Workflows page', 'In Archived on the Workflows page', 'In the workflow picker and on a draft workflow',
846
854
  'On the Agents page', 'On an agent',
855
+ // #2046: the ways into the Guide on the empty pages, and its first-launch question.
856
+ 'Getting started', 'In the Guide question',
847
857
  'In the Workspace directory dialog', 'In Tekla source selection', 'In the new project dialog', 'In the project workspace', 'In the Revit workspace', 'In the Tekla Parser workspace', 'In the Drawing Checker profile', 'In Company knowledge',
848
858
  'On the workflow canvas', 'In workflow setup dialogs',
849
859
  // The Informed by row sits at the top of the canvas column, so it is read right after the canvas.
850
860
  // #1998: the approval notices sit above the canvas with the Informed by row.
851
- 'In the Needs you notice', 'In the Approval carried over row',
861
+ 'In the Needs you notice', 'In the morning briefing notice', 'In the Approval carried over row',
852
862
  'In the Informed by row', 'In Set inputs',
853
863
  'At the left edge of the workspace', 'At the edge of the left or Inspect panel', 'In the left panel', 'Between AI Chat and Model', 'In the Model section of the left panel', 'In the Grid object in the Model section',
854
864
  'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
@@ -1718,6 +1728,7 @@
1718
1728
  if (snapshot.focus && hiddenCommands.indexOf(snapshot.focus.commandId) !== -1) {
1719
1729
  snapshot.focus = null;
1720
1730
  if (typeof window.flolessGraftInstructorClear === 'function') window.flolessGraftInstructorClear();
1731
+ if (typeof window.flolessWorkspaceRootInstructorClear === 'function') window.flolessWorkspaceRootInstructorClear();
1721
1732
  }
1722
1733
  paint();
1723
1734
 
@@ -216,14 +216,37 @@
216
216
  // The plain line stays unless EVERY tool on the card that has no check is offered an update (each offer names its tool).
217
217
  const allOffered = connections() && hostAgents.every((agent) => agent.hasProbe || offers.includes(agent));
218
218
  if (hostAgents.length && !hostAgents.some((agent) => agent.hasProbe) && !allOffered) {
219
- card.append(make('p', 'local-discovery-route', 'This tool can’t check the connection yet.'));
219
+ // #2055: not a dead end. Prepare a tool (below) builds a SEPARATE tool, which can carry its own check —
220
+ // it does not add a check to the installed one, so the sentence must not promise that.
221
+ card.append(make('p', 'local-discovery-route',
222
+ 'This tool can’t check the connection yet. You can prepare a separate tool from this program’s DLLs, with a read-only command as its own check, or ask AI Chat.'));
220
223
  }
221
- if (route?.kind === 'graft' && !route.graftKind) {
224
+ // #2055: every program can lead to Graft — also one an installed tool already connects — and Graft
225
+ // opens on its install folder's DLLs, worked out by the server on click (never during the scan).
226
+ // With no install folder known, or one FloLess could not look in, Graft says so and lets the person choose one.
227
+ if (finding.kind === 'application' && !finding.graft) {
228
+ const label = String(finding.label || 'this program');
222
229
  const prepare = make('button', '', 'Prepare a tool');
223
230
  prepare.type = 'button'; prepare.dataset.commandId = 'shell.discovery-prepare-tool';
224
- prepare.addEventListener('click', () => {
231
+ if (hostAgents.length) prepare.dataset.tip = 'Build an extra tool for this program from its DLLs.';
232
+ prepare.addEventListener('click', async () => {
233
+ let ref = '';
234
+ let unreadable = false;
235
+ if (finding.path) {
236
+ const generation = scanGeneration;
237
+ prepare.disabled = true;
238
+ try {
239
+ const data = await post('/api/local-discovery/prepare-source', { path: String(finding.path), label });
240
+ ref = typeof data.source?.ref === 'string' ? data.source.ref : '';
241
+ unreadable = !ref && data.source?.unreadable === true;
242
+ } catch { unreadable = true; } finally { prepare.disabled = false; }
243
+ // Discover was closed, or the results replaced by another scan, while FloLess looked: open nothing.
244
+ if (!prepare.isConnected || generation !== scanGeneration) return;
245
+ }
225
246
  close(false);
226
- document.dispatchEvent(new CustomEvent('floless:discovery-graft', { detail: { kind: null, ref: '' } }));
247
+ document.dispatchEvent(new CustomEvent('floless:discovery-graft', { detail: {
248
+ kind: 'dlls', ref, origin: { label, folderKnown: Boolean(ref), ...(unreadable ? { unreadable: true } : {}) },
249
+ } }));
227
250
  });
228
251
  actions.append(prepare);
229
252
  }
@@ -256,7 +279,7 @@
256
279
  return card;
257
280
  }
258
281
  /** "Services you can connect" — sign-in services and key services, from Integrations' inventory. */
259
- function serviceRow(service) {
282
+ function serviceRow(service, choicesUnreadable = false) {
260
283
  const row = make('div', 'int-account local-discovery-service');
261
284
  const copy = make('div', 'int-account-copy');
262
285
  copy.append(make('span', 'int-account-name', service.name));
@@ -307,6 +330,12 @@
307
330
  const account = connections()?.checkAccountOf(service);
308
331
  if (service.statusUnknown) {
309
332
  copy.append(make('span', 'int-account-origin', 'FloLess couldn’t read whether this key is saved. Close this window and try again.'));
333
+ } else if (checks.length && service.kind === 'sign-in' && choicesUnreadable && connections()) {
334
+ // #2057: an unreadable choices file may hold "your own Claude or Codex connection", so no FloLess account is checked.
335
+ copy.append(make('span', 'int-account-origin local-discovery-choices-unreadable', connections().CHOICES_UNREADABLE_CHECK_SENTENCE));
336
+ } else if (checks.length && service.choice?.source === 'native' && connections()) {
337
+ // #2057: Discover follows the Integrations choice — the person's own connection is never checked as a FloLess account.
338
+ copy.append(make('span', 'int-account-origin local-discovery-native-choice', connections().nativeChoiceSentence(service.name)));
310
339
  } else if (checks.length && service.connected && connections() && account === undefined) {
311
340
  copy.append(make('span', 'int-account-origin', 'Choose which account to check in Integrations first.'));
312
341
  } else if (checks.length && service.connected && connections()) {
@@ -336,7 +365,7 @@
336
365
  const services = await connections().loadServices();
337
366
  servicesList.replaceChildren();
338
367
  if (!services.length) servicesList.append(make('p', 'local-discovery-no-filter-match', 'No services to connect yet.'));
339
- for (const service of services) servicesList.append(serviceRow(service));
368
+ for (const service of services) servicesList.append(serviceRow(service, Boolean(services.choicesUnreadable)));
340
369
  } catch (error) {
341
370
  servicesList.replaceChildren(make('p', 'local-discovery-no-filter-match', connections().sentenceOf(error)));
342
371
  }
@@ -508,6 +508,8 @@
508
508
  } catch (err) {
509
509
  const cred = err && err.body && err.body.credentialIssue;
510
510
  if (cred) showToast(`Session expired — reconnect ${cred.label} (≡ menu → Integrations), then run again.`, 'warn');
511
+ // #2123: FloLess declined before anything started (archived, edited, re-published) and said why in plain words.
512
+ else if (err && err.body && err.body.notRun && typeof err.body.error === 'string') showToast(err.body.error, 'info');
511
513
  else showToast('The workflow could not run. Your inputs are still here. Check that its connection is open, then try again.', 'warn');
512
514
  } finally {
513
515
  btn.disabled = false;