@floless/app 0.149.1 → 0.151.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 (50) hide show
  1. package/dist/floless-server.cjs +104263 -88361
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +45 -2
  3. package/dist/schemas/steel.model.v2.schema.json +9 -0
  4. package/dist/skills/floless-app-approval/SKILL.md +79 -4
  5. package/dist/skills/floless-app-onboarding/SKILL.md +200 -87
  6. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +27 -18
  7. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +207 -0
  8. package/dist/skills/floless-app-routines/SKILL.md +4 -1
  9. package/dist/skills/floless-app-routines/references/routines-api.md +14 -2
  10. package/dist/skills/floless-app-steel-model/SKILL.md +4 -2
  11. package/dist/skills/floless-app-steel-takeoff/SKILL.md +14 -9
  12. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  13. package/dist/templates/tekla-parser.flo +13 -3
  14. package/dist/web/agents.js +983 -0
  15. package/dist/web/app.css +556 -43
  16. package/dist/web/app.js +34 -112
  17. package/dist/web/aware.js +1774 -169
  18. package/dist/web/chat.css +62 -1
  19. package/dist/web/chat.js +1666 -59
  20. package/dist/web/commands-drawing-check.js +15 -0
  21. package/dist/web/commands-revit.js +5 -0
  22. package/dist/web/commands-shell.js +955 -53
  23. package/dist/web/commands-tekla-parser.js +8 -1
  24. package/dist/web/connections.js +57 -14
  25. package/dist/web/drawing-check-editor.html +10 -2
  26. package/dist/web/drawing-check-editor.js +569 -40
  27. package/dist/web/drawing-check-overlay.js +45 -2
  28. package/dist/web/guide.js +675 -0
  29. package/dist/web/index.html +162 -31
  30. package/dist/web/instructor.js +91 -8
  31. package/dist/web/leave-guard.js +1 -0
  32. package/dist/web/left-pane.js +20 -1
  33. package/dist/web/local-discovery.js +12 -2
  34. package/dist/web/model-editor.css +32 -32
  35. package/dist/web/model-panel-bridge.js +11 -3
  36. package/dist/web/model-viewport-lighting.js +4 -2
  37. package/dist/web/model-viewport-revit-adapter.js +3 -0
  38. package/dist/web/model-viewport-toolbar.js +6 -3
  39. package/dist/web/model-viewport.js +11 -1
  40. package/dist/web/revit-editor.css +14 -14
  41. package/dist/web/revit-editor.js +64 -12
  42. package/dist/web/steel-3d-core.js +133 -0
  43. package/dist/web/steel-3d-view.js +10 -0
  44. package/dist/web/steel-editor.html +171 -39
  45. package/dist/web/steel-model-v2-client-validation.js +11 -0
  46. package/dist/web/steel-model-v2-commands.js +80 -5
  47. package/dist/web/tool-updates.js +533 -0
  48. package/dist/web/workspaces.js +896 -123
  49. package/package.json +2 -2
  50. package/dist/skills/floless-app-onboarding/references/floless-app-tour.md +0 -156
@@ -12,7 +12,12 @@
12
12
  <script>
13
13
  // Workspaces has no workflow Inspector. Apply that persisted mode before CSS paints so the old
14
14
  // workflow pane cannot flash while the workspace shell and Revit frame are still starting.
15
- try { if (localStorage.getItem('floless:mode') === 'workspaces') document.documentElement.classList.add('mode-workspaces-boot'); }
15
+ try {
16
+ const savedMode = localStorage.getItem('floless:mode');
17
+ if (savedMode === 'workspaces') document.documentElement.classList.add('mode-workspaces-boot');
18
+ // #2007: Agents has no workflow canvas or Inspector either; same reason, same early class.
19
+ if (savedMode === 'agents') document.documentElement.classList.add('mode-agents-boot');
20
+ }
16
21
  catch { /* private or locked-down storage falls back to the normal boot path */ }
17
22
  </script>
18
23
  <link rel="stylesheet" href="app.css">
@@ -54,6 +59,8 @@
54
59
  here; they are deliberately parallel in shape so they read as two answers to it. -->
55
60
  <button data-command-id="shell.mode-workspaces" type="button" data-mode="workspaces" role="tab" aria-selected="false" data-tip="One project at a time — its drawings, the model built from them, and what comes out. Open this to work on a job.">Workspaces</button>
56
61
  <button data-command-id="shell.mode-workflows" type="button" data-mode="workflows" class="active" role="tab" aria-selected="true" data-tip="A repeatable process — pick one, set its inputs, compile it, then run it against your project. Open this to build or run an automation.">Workflows</button>
62
+ <!-- #2007: delegated responsibilities run by hand (web/agents.js). The AWARE library is Tools, in the ≡ menu. -->
63
+ <button data-command-id="shell.mode-agents" type="button" data-mode="agents" role="tab" aria-selected="false" data-tip="A responsibility you hand over — what to check, and on which projects. Open this to set one up or run it by hand.">Agents</button>
57
64
  </div>
58
65
  <!-- Workspace view switch (Canvas = the workflow topology; Dashboard = the user's
59
66
  custom panels from ~/.floless/ui/extensions.json) moved into the ≡ menu in #149.
@@ -133,7 +140,7 @@
133
140
  <button data-command-id="shell.restore-workflow" id="restore-btn" type="button" hidden data-tip="Restore the official workflow — undoes any out-of-band edits and re-arms Run">↺ Restore</button>
134
141
  <button data-command-id="shell.customize-workflow" id="customize-btn" type="button" hidden data-tip="Fork this workflow to edit it yourself — takes it off the FloLess update channel">Customize…</button>
135
142
  <button id="compile-btn" data-command-id="workflow.compile" data-acts="Acts on the whole workflow" data-tip="Compile + approve → freeze the .lock">⎙ Compile</button>
136
- <button id="sim-btn" data-command-id="workflow.simulate" data-acts="Acts on the workflow only — never the live host" data-tip="Simulate: stub every node from its output schema — no live host is contacted. Validates the workflow's composition end-to-end, even when the real agents aren't connected yet.">Simulate</button>
143
+ <button id="sim-btn" data-command-id="workflow.simulate" data-acts="Acts on the workflow only — never the live host" data-tip="Simulate: stub every node from its output schema — no live host is contacted. Validates the workflow's composition end-to-end, even when the real tools aren't connected yet.">Simulate</button>
137
144
  <button id="run-btn" data-command-id="workflow.run" data-acts="Acts on the approved lock, against the live host" data-blocked-reason="Blocked until the workflow is compiled" data-tip="Run the workflow for real against the live host (uses the inputs; renders the report node in the HTML Viewer)">▶ Run workflow</button>
138
145
  <button id="stop-run-btn" class="run-stop-btn" type="button" data-command-id="workflow.stop" aria-label="Stop the current run" data-tip="Stop the in-flight run (always reachable, even with the HTML Viewer closed)" hidden>■ Stop run</button>
139
146
  </div>
@@ -184,7 +191,16 @@
184
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>
185
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>
186
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>
187
- <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
+ <span>The Guide only reads. Use its buttons, or a regular conversation, to change things.</span>
199
+ <div class="ai-chat-guide-actions">
200
+ <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>
201
+ <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>
202
+ </div>
203
+ </div>
188
204
  <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>
189
205
  <!-- #1907 (owner ruling 2026-10-03): the AI's own connectors are off in every new conversation; this turns them on for this one. -->
190
206
  <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>
@@ -205,12 +221,28 @@
205
221
  <button data-command-id="shell.chat-stop" type="button" id="chat-recovery-stop">Stop response</button>
206
222
  <button data-command-id="shell.chat-reconcile" type="button" id="chat-reconcile">Check again</button>
207
223
  </div>
224
+ <!-- #1890 PR 3b: a conversation moving into the workflow it built — where it went, or why it is still here, with the choices. -->
225
+ <div class="ai-chat-recovery ai-chat-move-notice" id="chat-move-notice" role="status" aria-live="polite" hidden>
226
+ <span id="chat-move-copy"></span>
227
+ <button data-command-id="shell.chat-move-retry" type="button" id="chat-move-primary" class="primary" aria-describedby="chat-move-copy"></button>
228
+ <button data-command-id="shell.chat-move-keep" type="button" id="chat-move-secondary" aria-describedby="chat-move-copy" hidden></button>
229
+ <button data-command-id="shell.chat-move-dismiss" type="button" id="chat-move-dismiss" class="ai-chat-move-dismiss" aria-label="Dismiss" data-tip="Dismiss" hidden>×</button>
230
+ </div>
208
231
  <div class="ai-chat-attachments" id="chat-attachments" hidden></div>
209
232
  <div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
210
233
  <div class="ai-chat-approval-tray" id="chat-approval-tray"></div>
211
234
  <div class="ai-chat-composer" id="chat-composer">
235
+ <div class="ai-chat-scope-controls" id="chat-scope-controls" hidden>
236
+ <button type="button" id="chat-scope-toggle" data-command-id="shell.chat-scope-open" aria-expanded="false" aria-controls="chat-scope-picker">Scope</button>
237
+ <span id="chat-scope-disclosure" aria-live="polite"></span>
238
+ <section class="ai-chat-picker ai-chat-scope-picker" id="chat-scope-picker" role="dialog" aria-label="Conversation scope" hidden></section>
239
+ </div>
212
240
  <!-- #1890: a workspace conversation's units question, and then its "Units: … · Change" line. -->
213
241
  <div class="ai-chat-units" id="chat-units" hidden></div>
242
+ <!-- #1890 PR4: one Revoke ends all global file-change grants; legacy owner grants appear only without a global allowance (web/chat.js). -->
243
+ <div class="ai-chat-connectors" id="chat-change-allowance" role="group" aria-label="Changes allowed for this chat" hidden></div>
244
+ <!-- #1900: the connection checks this chat may run without asking, each with Revoke (web/chat.js). -->
245
+ <div class="ai-chat-connectors" id="chat-check-allowance" role="group" aria-label="Connection checks allowed for this chat" hidden></div>
214
246
  <div class="ai-chat-tekla-context" id="chat-tekla-context" hidden></div>
215
247
  <!-- #1907: shown only while this chat uses the person's own connectors: "on · Turn off", then each allowed one with Revoke (web/chat.js). -->
216
248
  <div class="ai-chat-connectors" id="chat-connectors" role="group" aria-label="Your connectors in this chat" hidden></div>
@@ -305,11 +337,15 @@
305
337
  </div>
306
338
  <input data-command-id="menu.import" type="file" id="import-file" accept=".flo,.app,.flow,.aware" hidden>
307
339
  <div class="find-overlay" id="find-overlay">
308
- <input data-command-id="shell.find-input" aria-label="Find agent" type="text" id="find-input" placeholder="Find agent…">
340
+ <input data-command-id="shell.find-input" aria-label="Find tool" type="text" id="find-input" placeholder="Find tool…">
309
341
  <span class="find-count" id="find-count"></span>
310
342
  <button data-command-id="shell.find-close" class="find-close" id="find-close" data-tip="Close">×</button>
311
343
  </div>
312
344
  <div class="notes-strip" id="notes-strip" hidden></div>
345
+ <!-- #1998: "Needs you" when the exact tool version this workflow was approved with cannot run (choose:
346
+ reinstall it, or Compile again), or a quiet note that its approval was carried over to a newer tool
347
+ version, with AWARE's own record in the details. Painted by paintApprovalStrip (web/aware.js). -->
348
+ <div class="approval-strip" id="approval-strip" hidden></div>
313
349
  <!-- Which of the firm's own knowledge this workflow was built from, and whether it has changed
314
350
  since. Deliberately NOT in the header beside the run-state pill: that pill's "Needs refresh"
315
351
  state is amber and means Run is blocked, and a second amber chip inches away saying the
@@ -340,6 +376,9 @@
340
376
  <div class="ws-landing" id="ws-landing" hidden></div>
341
377
  <!-- #1890: the Workflows tab's landing (web/aware.js renders it): a New workflow card and one card per workflow. -->
342
378
  <div class="ws-landing wf-landing" id="wf-landing" hidden></div>
379
+ <div class="ws-landing wf-draft" id="wf-draft" hidden></div>
380
+ <!-- #2007: the Agents tab — the list of agents and an agent's page (web/agents.js renders both). -->
381
+ <div class="ws-landing ag-surface" id="agents-surface" hidden></div>
343
382
  <div class="ws-project" id="ws-project" hidden>
344
383
  <!-- The step tabs ARE the project header. A 45px breadcrumb row used to sit above them saying
345
384
  "Workspaces › <project>" plus the app type, and every word of it was already on screen: the
@@ -431,7 +470,7 @@
431
470
  <div class="panel-label">
432
471
  <span>Inspect</span>
433
472
  <span class="label-end">
434
- <span class="role" id="inspect-role">click an agent</span>
473
+ <span class="role" id="inspect-role">click a tool</span>
435
474
  <button data-command-id="shell.debug-node" id="debug-btn" class="tweak-btn" data-tip="Re-run this exec node with the .NET debugger attached (Visual Studio)" hidden>⊟ Debug in VS</button>
436
475
  <button data-command-id="shell.tweak-node" id="tweak-btn" class="tweak-btn" data-tip="Ask the terminal AI to change just this node" hidden>✎ Tweak</button>
437
476
  </span>
@@ -533,7 +572,7 @@
533
572
  <span class="sep" aria-hidden="true">·</span>
534
573
  <span class="stat"><span class="dot"></span><span class="stat-val">runtime online</span></span>
535
574
  <span class="sep">·</span>
536
- <span class="stat"><span class="stat-key">agents</span><span class="stat-val" id="agents-count">—</span></span>
575
+ <span class="stat"><span class="stat-key">tools</span><span class="stat-val" id="agents-count">—</span></span>
537
576
  <span class="sep">·</span>
538
577
  <span id="wf-templates-stats">
539
578
  <span class="stat"><span class="stat-key">workflows</span><span class="stat-val" id="apps-count">—</span></span>
@@ -546,6 +585,8 @@
546
585
  <span class="version-info">
547
586
  <span class="aware-version" id="aware-version" data-tip="AWARE runtime version — the aware CLI/npm package this app drives"></span>
548
587
  <button data-command-id="shell.aware-update" id="aware-update" class="app-update" hidden data-tip="An AWARE runtime upgrade is available — reinstalls in place, no relaunch"></button>
588
+ <button data-command-id="shell.tool-updates" id="tool-updates" type="button" class="app-update tool-updates-pill" hidden
589
+ aria-haspopup="dialog" aria-controls="tool-updates-modal" data-tip="Review workflows whose tools have new versions"></button>
549
590
  <span class="sep ver-sep" id="ver-sep" hidden>·</span>
550
591
  <span class="app-version" id="app-version" data-tip="floless.app build serving this window (installed build, or the dev build when run from source)"></span>
551
592
  <button data-command-id="shell.app-update" id="app-update" class="app-update" hidden></button>
@@ -639,6 +680,53 @@
639
680
  </div>
640
681
  </div>
641
682
 
683
+ <!-- #1997 Approve updated workflows: tools downloaded in the background, each affected approved
684
+ workflow prepared by AWARE, and ONE person click that carries their approvals forward. The
685
+ server owns every decision (tool-updates-service.ts); tool-updates.js only renders its view
686
+ and sends the click. -->
687
+ <!-- #2046: the Guide's question — what it reads, the two sharing switches, the AI, and a preview of exactly what would be
688
+ sent. Filled by web/guide.js; the buttons never scroll away. -->
689
+ <div class="modal-backdrop" id="guide-agent-modal" role="dialog" aria-modal="true" aria-labelledby="guide-modal-title" aria-describedby="guide-modal-sub">
690
+ <div class="modal guide-dialog">
691
+ <div class="modal-title" id="guide-modal-title" tabindex="-1">Let the Guide show you around?</div>
692
+ <div class="modal-sub" id="guide-modal-sub"></div>
693
+ <div class="guide-body" id="guide-modal-body"></div>
694
+ <div class="sr-only" id="guide-modal-live" role="status" aria-live="polite"></div>
695
+ <div class="modal-actions">
696
+ <button data-command-id="shell.guide-not-now" id="guide-modal-secondary" type="button">Not now</button>
697
+ <button data-command-id="shell.guide-turn-on" id="guide-modal-primary" type="button" class="primary">Turn on the Guide</button>
698
+ </div>
699
+ <p class="guide-foot" id="guide-modal-foot"></p>
700
+ </div>
701
+ </div>
702
+
703
+ <div class="modal-backdrop" id="guide-delete-modal" role="dialog" aria-modal="true" aria-labelledby="guide-delete-title" aria-describedby="guide-delete-sub">
704
+ <div class="modal">
705
+ <div class="modal-title" id="guide-delete-title">Delete the Guide’s conversation?</div>
706
+ <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>
707
+ <div class="modal-actions">
708
+ <button data-command-id="shell.dialog-cancel#deleting Guide history" id="guide-delete-cancel" type="button">Cancel</button>
709
+ <button data-command-id="shell.guide-delete-confirm" id="guide-delete-confirm" type="button" class="danger">Delete Guide history</button>
710
+ </div>
711
+ </div>
712
+ </div>
713
+
714
+ <div class="modal-backdrop" id="tool-updates-modal" role="dialog" aria-modal="true"
715
+ aria-labelledby="tool-updates-title" aria-describedby="tool-updates-sub" aria-busy="false">
716
+ <div class="modal tool-updates-dialog" tabindex="-1">
717
+ <div class="modal-title" id="tool-updates-title" tabindex="-1">Approve updated workflows</div>
718
+ <div class="modal-sub" id="tool-updates-sub">Your workflows keep running on the tool versions you approved until you approve a change.</div>
719
+ <div class="tool-updates-body" id="tool-updates-body"></div>
720
+ <div class="tool-updates-live" id="tool-updates-live" role="status" aria-live="polite" aria-atomic="true"></div>
721
+ <div class="tool-updates-foot" id="tool-updates-foot"></div>
722
+ <div class="modal-actions">
723
+ <button data-command-id="shell.tool-updates-check" id="tool-updates-check" type="button">Check for updates</button>
724
+ <button data-command-id="shell.dialog-cancel#the workflow updates" id="tool-updates-cancel" type="button">Not now</button>
725
+ <button data-command-id="shell.tool-updates-approve" id="tool-updates-approve" type="button" class="primary" hidden>Approve</button>
726
+ </div>
727
+ </div>
728
+ </div>
729
+
642
730
  <!-- Import failed: `aware app install` refused the .flo. It says exactly what is wrong on stderr —
643
731
  which agent isn't runnable, which node id is duplicated — and the plain "import failed …
644
732
  (exit N)" toast this replaces could carry none of it (#314). Shows what happened in plain
@@ -699,24 +787,28 @@
699
787
  <span class="view-dot" id="dash-dot" hidden aria-label="Dashboard updated">●</span>
700
788
  </button>
701
789
  <div class="menu-divider"></div>
702
- <!-- Agents library (was the header ⊞ Agents button, #149). Heads the agent group
703
- (Agents / Graft into agent / Bake into agent). Ctrl+G. -->
790
+ <!-- Tools library (was the header ⊞ Agents button, #149; renamed Tools in #2007). Heads the tool group
791
+ (Tools / Graft into tool / Bake into tool). Ctrl+G. -->
704
792
  <button class="menu-item" data-action="agents" data-command-id="menu.agents" role="menuitem">
705
793
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg></span>
706
- <span class="menu-label">Agents</span>
794
+ <span class="menu-label">Tools</span>
707
795
  <span class="menu-kbd">Ctrl+G</span>
708
796
  </button>
709
797
  <button class="menu-item" data-action="graft" data-command-id="menu.graft" role="menuitem">
710
798
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 22v-5"/><path d="M15 8V2"/><path d="M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z"/><path d="M9 8V2"/></svg></span>
711
- <span class="menu-label">Graft into agent</span>
799
+ <span class="menu-label">Graft into tool</span>
712
800
  </button>
713
801
  <button class="menu-item" data-action="discover-local" data-command-id="menu.discover-local" role="menuitem">
714
802
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="m16 16 5 5M8 11h6m-3-3v6"/></svg></span>
715
803
  <span class="menu-label">Discover local tools…</span>
716
804
  </button>
805
+ <button class="menu-item" data-action="tool-updates" data-command-id="menu.tool-updates" role="menuitem">
806
+ <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"/><path d="M21 3v5h-5"/><path d="M12 8v5l3 2"/></svg></span>
807
+ <span class="menu-label">Tool updates…</span>
808
+ </button>
717
809
  <button class="menu-item" data-action="bake" data-command-id="menu.bake" id="menu-bake-item" role="menuitem">
718
810
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"/><path d="M12 22V12"/><polyline points="3.29 7 12 12 20.71 7"/><path d="m7.5 4.27 9 5.15"/></svg></span>
719
- <span class="menu-label" id="menu-bake-label">Bake into agent</span>
811
+ <span class="menu-label" id="menu-bake-label">Bake into tool</span>
720
812
  </button>
721
813
  <div class="menu-divider"></div>
722
814
  <button class="menu-item" data-action="integrations" data-command-id="menu.integrations" role="menuitem">
@@ -728,12 +820,21 @@
728
820
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M3 7h6l2 2h10v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M3 7V5a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v2"/></svg></span>
729
821
  <span class="menu-label">Workspace directory…</span>
730
822
  </button>
823
+ <button class="menu-item" data-action="tool-update-policy" data-command-id="menu.tool-update-policy" role="menuitem">
824
+ <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M21 12a9 9 0 1 1-3-6.7"/><polyline points="21 3 21 9 15 9"/></svg></span>
825
+ <span class="menu-label">Automatic tool updates…</span>
826
+ </button>
731
827
  <button class="menu-item" data-action="routines" data-command-id="menu.routines" role="menuitem">
732
828
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><line x1="10" x2="14" y1="2" y2="2"/><line x1="12" x2="15" y1="14" y2="11"/><circle cx="12" cy="14" r="8"/></svg></span>
733
829
  <span class="menu-label">Routines</span>
734
830
  <span class="menu-kbd">Ctrl+R</span>
735
831
  </button>
736
832
  <div class="menu-divider"></div>
833
+ <!-- #2046: the Guide — FloLess's onboarding agent in AI Chat (web/guide.js). -->
834
+ <button class="menu-item" data-action="guide" data-command-id="menu.guide" role="menuitem">
835
+ <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>
836
+ <span class="menu-label">Guide</span>
837
+ </button>
737
838
  <button class="menu-item" data-action="report-issue" data-command-id="menu.report-issue" role="menuitem">
738
839
  <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>
739
840
  <span class="menu-label">Report an issue</span>
@@ -1187,29 +1288,29 @@
1187
1288
 
1188
1289
  <div class="modal-backdrop" id="lib-modal">
1189
1290
  <div class="modal library">
1190
- <div class="modal-title">Agent Library</div>
1191
- <div class="tabs lib-tabs" id="lib-tabs" role="tablist" aria-label="Agent Library tabs">
1291
+ <div class="modal-title">Tools</div>
1292
+ <div class="tabs lib-tabs" id="lib-tabs" role="tablist" aria-label="Tools library tabs">
1192
1293
  <button data-command-id="shell.library-tab#installed" data-libtab="installed" class="active" role="tab" aria-selected="true" aria-controls="lib-pane-installed">Installed</button>
1193
1294
  <button data-command-id="shell.library-tab#available" data-libtab="available" role="tab" aria-selected="false" aria-controls="lib-pane-available">Available</button>
1194
1295
  </div>
1195
1296
 
1196
- <div class="lib-pane" id="lib-pane-installed" role="tabpanel" aria-label="Installed agents">
1197
- <div class="modal-sub">All installed agents · star a command to save it as a Template.</div>
1198
- <input data-command-id="shell.library-search#installed" id="lib-search" class="lib-search" type="text" placeholder="Search (tekla, slack, file, …)" aria-label="Search installed agents">
1297
+ <div class="lib-pane" id="lib-pane-installed" role="tabpanel" aria-label="Installed tools">
1298
+ <div class="modal-sub">All installed tools · star a command to save it as a Template.</div>
1299
+ <input data-command-id="shell.library-search#installed" id="lib-search" class="lib-search" type="text" placeholder="Search (tekla, slack, file, …)" aria-label="Search installed tools">
1199
1300
  <div class="lib-list" id="lib-list"></div>
1200
1301
  </div>
1201
1302
 
1202
- <div class="lib-pane" id="lib-pane-available" role="tabpanel" aria-label="Available agents" hidden>
1203
- <div class="modal-sub">Every agent in the AWARE registry · install one to add it to your library.</div>
1204
- <input data-command-id="shell.library-search#available" id="lib-avail-search" class="lib-search" type="text" placeholder="Search available agents (revit, ifc, slack, …)" aria-label="Search available agents">
1303
+ <div class="lib-pane" id="lib-pane-available" role="tabpanel" aria-label="Available tools" hidden>
1304
+ <div class="modal-sub">Every tool in the AWARE registry · install one to add it to your library.</div>
1305
+ <input data-command-id="shell.library-search#available" id="lib-avail-search" class="lib-search" type="text" placeholder="Search available tools (revit, ifc, slack, …)" aria-label="Search available tools">
1205
1306
  <span class="sr-only" aria-live="polite" id="lib-avail-count"></span>
1206
1307
  <div class="lib-list" id="lib-avail-list"></div>
1207
1308
  </div>
1208
1309
 
1209
1310
  <div class="modal-actions">
1210
1311
  <button data-command-id="menu.discover-local" id="lib-discover-local" style="margin-right:auto;" data-tip="Look for installed apps and file names in folders you choose">Discover local tools…</button>
1211
- <button data-command-id="menu.graft" id="lib-graft" style="margin-right:auto;" data-tip="Build a new agent from a tool you own — a DLL, C# source, NuGet package, or API spec.">⊕ Graft new agent</button>
1212
- <button data-command-id="shell.dialog-close#the agent library" id="lib-close">Close</button>
1312
+ <button data-command-id="menu.graft" id="lib-graft" style="margin-right:auto;" data-tip="Build a new tool from software you own — a DLL, C# source, NuGet package, or API spec.">⊕ Graft new tool</button>
1313
+ <button data-command-id="shell.dialog-close#the agent library" data-command-instance-label="the Tools library" id="lib-close">Close</button>
1213
1314
  </div>
1214
1315
  </div>
1215
1316
  </div>
@@ -1372,7 +1473,7 @@
1372
1473
  <div class="modal-backdrop" id="routines-modal">
1373
1474
  <div class="modal routines">
1374
1475
  <div class="modal-title">Routines</div>
1375
- <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>
1476
+ <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>
1376
1477
  <div class="rtn-quota" id="rtn-quota"></div>
1377
1478
  <div class="routines-list" id="routines-list"></div>
1378
1479
  <div class="modal-actions">
@@ -1386,15 +1487,33 @@
1386
1487
  <div class="modal-backdrop" id="routine-edit-modal">
1387
1488
  <div class="modal routine-edit">
1388
1489
  <div class="modal-title" id="rtn-edit-title">New routine</div>
1389
- <div class="modal-sub">Pick a workflow and when it should run.</div>
1490
+ <div class="modal-sub" id="rtn-edit-sub">Pick a workflow and when it should run.</div>
1390
1491
  <div class="modal-field">
1391
1492
  <label for="rtn-name">Name</label>
1392
1493
  <input data-command-id="shell.routine-name" id="rtn-name" type="text" placeholder="e.g. Morning BOM export" autocomplete="off">
1393
1494
  </div>
1394
- <div class="modal-field">
1495
+ <!-- #2035: a routine runs a workflow or starts an agent (with nobody watching). Fixed after create. -->
1496
+ <div class="modal-field" id="rtn-target-field">
1497
+ <label>What it runs</label>
1498
+ <div class="rtn-mode" role="group" aria-label="What the routine runs">
1499
+ <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>
1500
+ <button data-command-id="shell.routine-target#an agent" type="button" class="rtn-mode-btn" data-target="agent" aria-pressed="false">An agent</button>
1501
+ </div>
1502
+ </div>
1503
+ <div class="modal-field" id="rtn-workflow-field">
1395
1504
  <label for="rtn-workflow">Workflow</label>
1396
1505
  <select data-command-id="shell.routine-workflow" id="rtn-workflow"></select>
1397
1506
  </div>
1507
+ <div class="modal-field" id="rtn-agent-field" hidden>
1508
+ <label for="rtn-agent">Agent</label>
1509
+ <select data-command-id="shell.routine-agent" id="rtn-agent"></select>
1510
+ <div class="rtn-mode rtn-agent-ai" id="rtn-agent-ai" role="group" aria-label="AI that runs the agent">
1511
+ <button data-command-id="shell.routine-agent-ai#Claude" type="button" class="rtn-mode-btn active" data-ai="claude" aria-pressed="true">Claude</button>
1512
+ <button data-command-id="shell.routine-agent-ai#Codex" type="button" class="rtn-mode-btn" data-ai="codex" aria-pressed="false">Codex</button>
1513
+ </div>
1514
+ <div class="rtn-cron-hint" id="rtn-agent-note" aria-live="polite"></div>
1515
+ <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>
1516
+ </div>
1398
1517
  <!-- Routine kind chooser — schedule vs event-trigger. Hidden unless the picked
1399
1518
  workflow is trigger-eligible (its source is a streaming lifecycle:start command). -->
1400
1519
  <div class="modal-field" id="rtn-mode-field" hidden>
@@ -1548,13 +1667,13 @@
1548
1667
  model-plugin recipe); floless only stages, previews, and surfaces it. -->
1549
1668
  <div class="modal-backdrop" id="graft-modal">
1550
1669
  <div class="modal graft">
1551
- <div class="modal-title" id="graft-title">Graft into agent</div>
1552
- <div class="modal-sub" id="graft-sub">Point at a DLL, package, or API spec — AWARE reads it and builds an agent you can drop into any workflow.</div>
1670
+ <div class="modal-title" id="graft-title">Graft into tool</div>
1671
+ <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>
1553
1672
  <div id="graft-body"></div>
1554
1673
  <div id="graft-instructor-note" role="note" aria-label="Instructor guidance" aria-live="polite" tabindex="0" hidden></div>
1555
1674
  <div class="modal-actions">
1556
1675
  <button data-command-id="shell.graft-back" id="graft-back" style="margin-right:auto;" hidden>‹ Back</button>
1557
- <button data-command-id="shell.dialog-cancel#building an agent" id="graft-cancel">Cancel</button>
1676
+ <button data-command-id="shell.dialog-cancel#building an agent" data-command-instance-label="building a tool" id="graft-cancel">Cancel</button>
1558
1677
  <button data-command-id="shell.graft-inspect-source" id="graft-primary" class="primary" disabled>Inspect source</button>
1559
1678
  </div>
1560
1679
  </div>
@@ -1599,19 +1718,28 @@
1599
1718
  </div>
1600
1719
  </div>
1601
1720
 
1721
+ <!-- #1998: the one-time carry-forward policy — asked at a person's first approval, and ≡ → Automatic tool updates….
1722
+ Filled by renderPolicyModal (web/aware.js); the words come from the server, which hashes them. -->
1723
+ <div class="modal-backdrop" id="policy-modal" role="dialog" aria-modal="true" aria-labelledby="policy-title" aria-describedby="policy-body">
1724
+ <div class="modal policy-modal">
1725
+ <div class="modal-title" id="policy-title" tabindex="-1">Automatic tool updates</div>
1726
+ <div class="policy-body" id="policy-body"></div>
1727
+ <div class="modal-actions" id="policy-actions"></div>
1728
+ </div>
1729
+ </div>
1602
1730
  <!-- Bake into agent — preview + confirm. Packages the workflow as a reusable
1603
1731
  agent (exposes-as-agent) and reinstalls so AWARE synthesizes it. -->
1604
1732
  <div class="modal-backdrop" id="bake-modal">
1605
1733
  <div class="modal">
1606
- <div class="modal-title" id="bake-title">Bake into agent</div>
1607
- <div class="modal-sub">Packages this workflow as a reusable agent. AWARE reinstalls it with an exposed interface, then it appears in the Agents library as a single callable node.</div>
1734
+ <div class="modal-title" id="bake-title">Bake into tool</div>
1735
+ <div class="modal-sub">Packages this workflow as a reusable tool. AWARE reinstalls it with an exposed interface, then it appears in the Tools library as a single callable node.</div>
1608
1736
  <div id="bake-body">
1609
1737
  <div class="modal-field">
1610
- <label>Agent name</label>
1738
+ <label>Tool name</label>
1611
1739
  <div id="bake-name" class="bake-name"></div>
1612
1740
  </div>
1613
1741
  <div class="modal-field">
1614
- <label>Agent inputs</label>
1742
+ <label>Tool inputs</label>
1615
1743
  <div id="bake-inputs" class="bake-inputs"></div>
1616
1744
  </div>
1617
1745
  </div>
@@ -1632,11 +1760,14 @@
1632
1760
  <script src="aware-update-client.js"></script>
1633
1761
  <script src="leave-guard.js"></script>
1634
1762
  <script src="aware.js"></script>
1763
+ <script src="tool-updates.js"></script>
1635
1764
  <script src="panels.js"></script>
1636
1765
  <script src="filter-guidance.js"></script>
1637
1766
  <script src="workspaces.js"></script>
1638
1767
  <script src="left-pane.js"></script>
1639
1768
  <script src="chat.js"></script>
1769
+ <script src="agents.js"></script>
1770
+ <script src="guide.js"></script>
1640
1771
  <script src="connections.js"></script>
1641
1772
  <script src="local-discovery.js"></script>
1642
1773
  <script src="account-menu.js"></script>
@@ -101,6 +101,10 @@
101
101
  }
102
102
 
103
103
  function workspaceGuidance(workspace) {
104
+ // #2007: the Agents tab shares this seam; it is its own module, never "Workspaces".
105
+ if (workspace.kind === 'agents') {
106
+ return { tone: 'idle', chip: 'Agents', parts: ['Create an agent, or open one to run it by hand'], ask: 'Agents', surface: 'shell' };
107
+ }
104
108
  var landing = workspace.landing === true;
105
109
  return {
106
110
  tone: 'idle',
@@ -132,6 +136,48 @@
132
136
  parts.push(wf.name);
133
137
  parts.push('changed since the last Compile, so its approved lock is out of date');
134
138
  parts.push('Compile to re-enable Run');
139
+ } else if (wf.runState === 'agent-changed' && wf.remedy === 'publish') {
140
+ // #1996: a published workflow whose approval changed outside FloLess. Compile is refused for it.
141
+ tone = 'blocked';
142
+ chip = 'Needs publishing';
143
+ parts.push(wf.name);
144
+ parts.push('changed outside FloLess since it was published');
145
+ parts.push('Ask AI Chat to publish it again');
146
+ } else if (wf.runState === 'agent-changed' && wf.remedy === 'update-aware') {
147
+ // #1996: its approval was carried forward by a newer AWARE than the one installed.
148
+ tone = 'blocked';
149
+ chip = 'Needs compile';
150
+ parts.push(wf.name);
151
+ parts.push('its approval needs a newer AWARE');
152
+ parts.push('Update AWARE, or Compile');
153
+ } else if (wf.runState === 'agent-changed' && wf.remedy === 'unconfirmed') {
154
+ // #1996: a carried-forward approval FloLess could not confirm just now. Nothing is known to have changed.
155
+ tone = 'blocked';
156
+ chip = 'Needs compile';
157
+ parts.push(wf.name);
158
+ parts.push('its approval could not be confirmed just now');
159
+ parts.push('Reopen it, or Compile');
160
+ } else if (wf.runState === 'agent-changed' && wf.remedy === 'needs-you') {
161
+ // #1998: the exact tool version it was approved with cannot run. FloLess never picks another one.
162
+ tone = 'blocked';
163
+ chip = 'Needs you';
164
+ parts.push(wf.name);
165
+ parts.push('a tool version it was approved with is not available');
166
+ parts.push('Reinstall that version, or Compile again');
167
+ } else if (wf.runState === 'agent-changed') {
168
+ // #1912: the .flo still matches its approval, but a tool it uses was updated since, so the run
169
+ // would be refused. Not "in sync · Next: Run".
170
+ tone = 'blocked';
171
+ chip = 'Needs compile';
172
+ parts.push(wf.name);
173
+ parts.push('a tool it uses has changed since it was approved');
174
+ parts.push('Compile, then Run');
175
+ } else if (wf.runState === 'draft') {
176
+ // #1890 PR 3b-0: a draft has no installed copy yet — there is nothing to run, only something to compile.
177
+ chip = 'Draft';
178
+ parts.push(wf.name);
179
+ parts.push('not compiled yet');
180
+ parts.push(wf.hasSource ? 'Next: Compile' : 'Next: ask AI Chat to write its workflow file');
135
181
  } else if (wf.runState === 'uncompiled') {
136
182
  tone = 'blocked';
137
183
  chip = 'Not set up';
@@ -147,7 +193,12 @@
147
193
  : wf.inputsSet + ' of ' + wf.totalInputs + ' inputs set'
148
194
  );
149
195
  }
150
- parts.push('in sync');
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' : 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
+ }
151
202
  parts.push(nextStep(wf));
152
203
  }
153
204
 
@@ -755,6 +806,28 @@
755
806
  internal vocabulary (id, persistence, interaction, guidance) is NOT: those
756
807
  are our words, and matching them would surface hits a user cannot explain to
757
808
  themselves. Risk flags are in, so "destructive" finds what it should. */
809
+ /* #1890 PR 3b-0: a search puts the groups holding a command NAMED by the query first — "Compile" lands on a Compile
810
+ button, not on a tab whose description merely mentions compiling. Still on-screen first, and a group's commands
811
+ stay together (one heading each); only the order of groups within each half changes. */
812
+ function rankByLabel(hits, q, visibleTemplates) {
813
+ function tier(cmd) {
814
+ var label = String(cmd.label || '').toLowerCase();
815
+ return label === q ? 0 : label.indexOf(q) === 0 ? 1 : label.indexOf(q) !== -1 ? 2 : 3;
816
+ }
817
+ var best = {};
818
+ var rows = hits.map(function (cmd, index) {
819
+ var half = onScreen(cmd, visibleTemplates) ? 0 : 1;
820
+ var key = half + '|' + (cmd.group || 'Elsewhere');
821
+ var t = tier(cmd);
822
+ if (!(key in best) || t < best[key]) best[key] = t;
823
+ return { cmd: cmd, index: index, half: half, key: key };
824
+ });
825
+ rows.sort(function (a, b) {
826
+ return (a.half - b.half) || (best[a.key] - best[b.key]) || (a.index - b.index);
827
+ });
828
+ return rows.map(function (row) { return row.cmd; });
829
+ }
830
+
758
831
  function matches(cmd, q) {
759
832
  if (!q) return true;
760
833
  var hay = [cmd.label, cmd.instanceLabel, cmd.actsOn, cmd.group, cmd.key, cmd.why]
@@ -773,17 +846,22 @@
773
846
  a static array cannot express that, because "active" is runtime state. */
774
847
  var GROUP_ORDER = [
775
848
  // the shell
776
- 'In the header', 'In the workflow picker', 'In the project picker', 'In the project list', 'On the Workflows page',
849
+ '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',
850
+ 'On the Agents page', 'On an agent',
851
+ // #2046: the ways into the Guide on the empty pages, and its first-launch question.
852
+ 'Getting started', 'In the Guide question',
777
853
  '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',
778
854
  'On the workflow canvas', 'In workflow setup dialogs',
779
855
  // The Informed by row sits at the top of the canvas column, so it is read right after the canvas.
856
+ // #1998: the approval notices sit above the canvas with the Informed by row.
857
+ 'In the Needs you notice', 'In the Approval carried over row',
780
858
  'In the Informed by row', 'In Set inputs',
781
859
  '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',
782
860
  'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
783
861
  'In the ≡ menu', 'In the account menu', 'In the footer',
784
862
  'In the contract editor', 'In the report viewer', 'In the Knowledge Base viewer', 'In the guide',
785
- 'In the agent library', 'In Discover local tools', 'In the requests list', 'In the revision review', 'In the run request dialog', 'In the Integrations dialog', 'In the Routines dialog',
786
- 'In the Report an issue dialog', 'In the Build an agent dialog', 'In the Bake dialog', 'In the CAD send review',
863
+ 'In the Tools library', 'In Discover local tools', 'In the requests list', 'In the revision review', 'In the run request dialog', 'In the Integrations dialog', 'In the Routines dialog', 'In the Automatic tool updates dialog',
864
+ 'In the Report an issue dialog', 'In the Build a tool dialog', 'In the Bake dialog', 'In the CAD send review',
787
865
  'In the FloLess dialogs', 'On the FloLess has stopped screen',
788
866
  /* the steel editor — read top-left down, then the menus, then the dialogs.
789
867
  The ⋯ menu is six groups rather than one because it is six accordion
@@ -802,8 +880,8 @@
802
880
  'In the Connections dialog', 'In the reference-model dialogs', 'In the connection-import dialog',
803
881
  'In the confidence report', 'In the Ask AI panel', 'In the Ask AI dialog', 'In the Favourites dialog',
804
882
  // the read-only Revit model editor
805
- 'In the Revit model header', 'In the Revit model toolbar', 'In the Revit model coordinate HUD', 'In the Revit model selection bar', 'In the Revit model snapping bar', 'In the Revit spatial controls',
806
- 'In the Tekla Parser header', 'In the Tekla Parser model toolbar', 'In the Tekla Parser coordinate HUD', 'In the Tekla Parser selection bar', 'In the Tekla Parser snapping bar', 'In the Tekla Parser spatial controls', 'In the Tekla Parser Audit pane',
883
+ 'In the Revit model header', 'In the Revit model toolbar', 'In the Revit Saved views panel', 'In the Revit model coordinate HUD', 'In the Revit model selection bar', 'In the Revit model snapping bar', 'In the Revit spatial controls',
884
+ 'In the Tekla Parser header', 'In the Tekla Parser model toolbar', 'In the Tekla Parser Saved views panel', 'In the Tekla Parser coordinate HUD', 'In the Tekla Parser selection bar', 'In the Tekla Parser snapping bar', 'In the Tekla Parser spatial controls', 'In the Tekla Parser Audit pane',
807
885
  // the drawing filter
808
886
  'In the Drawing Filter header', 'In a Drawing Filter message',
809
887
  'In the Drawing Filter panel', 'On the Drawing Filter canvas',
@@ -899,7 +977,9 @@
899
977
  choosing it already reads "Hidden on this screen right now" (#1545), so ranking it above
900
978
  the divider was the one place the sheet still claimed otherwise. */
901
979
  if (snapshot.child && surface === snapshot.child.surface) return carriers !== false;
902
- return surface === activeSurface();
980
+ /* #1890 PR 3b-0: the same rule on the shell — a command whose every control is hidden here (the header Compile on
981
+ the Workflows page or a draft's view) is not "this screen", so a draft's own Compile is the one ranked first. */
982
+ return surface === activeSurface() && carriers !== false;
903
983
  }
904
984
 
905
985
  function renderSheet() {
@@ -907,6 +987,7 @@
907
987
  var visibleTemplates = visibleCarrierTemplates();
908
988
  var all = sheetEntries(visibleTemplates);
909
989
  var hits = all.filter(function (c) { return matches(c, q); });
990
+ if (q) hits = rankByLabel(hits, q, visibleTemplates);
910
991
 
911
992
  $sheetList.textContent = '';
912
993
  sheetRows = [];
@@ -1565,11 +1646,13 @@
1565
1646
  },
1566
1647
  setWorkspace: function (context) {
1567
1648
  var next = context && context.name
1568
- ? { name: context.name, landing: context.landing === true, projectId: context.projectId || null }
1649
+ ? { name: context.name, landing: context.landing === true, projectId: context.projectId || null,
1650
+ kind: context.kind === 'agents' ? 'agents' : null }
1569
1651
  : null;
1570
1652
  var was = snapshot.workspace;
1571
1653
  snapshot.workspace = next;
1572
1654
  if ((was && was.name) !== (next && next.name)
1655
+ || (was && was.kind) !== (next && next.kind)
1573
1656
  || (was && was.landing) !== (next && next.landing)
1574
1657
  || (was && was.projectId) !== (next && next.projectId)) snapshot.focus = null;
1575
1658
  paint();
@@ -51,6 +51,7 @@
51
51
  { match: /steel-filter\.html/, label: 'The Drawing Filter' },
52
52
  { match: /steel-editor\.html/, label: 'The model editor' },
53
53
  { match: /vector-editor\.html/, label: 'The drawing editor' },
54
+ { match: /drawing-check-editor\.html/, label: 'The Drawing Checker' },
54
55
  ];
55
56
  var STATE_DETAIL = {
56
57
  dirty: 'has changes that are not saved yet.',