@floless/app 0.138.2 → 0.139.1

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 (109) hide show
  1. package/autostart.mjs +6 -2
  2. package/desktop-access-production-manifest.mjs +7 -0
  3. package/dist/floless-server.cjs +157207 -70887
  4. package/dist/schemas/model.continuation.v1.schema.json +19 -0
  5. package/dist/schemas/model.continuation.v2.schema.json +19 -0
  6. package/dist/schemas/model.query-response.v1.schema.json +95 -0
  7. package/dist/schemas/model.query-response.v2.schema.json +80 -0
  8. package/dist/schemas/model.query.v1.schema.json +87 -0
  9. package/dist/schemas/model.query.v2.schema.json +87 -0
  10. package/dist/schemas/model.snap-candidate.v1.schema.json +48 -0
  11. package/dist/schemas/model.snap-constraint.v1.schema.json +18 -0
  12. package/dist/schemas/model.snap-query.v1.schema.json +24 -0
  13. package/dist/schemas/model.snap-result.v1.schema.json +33 -0
  14. package/dist/schemas/model.snapshot.v1.schema.json +136 -0
  15. package/dist/schemas/revit.model.v1.schema.json +24 -0
  16. package/dist/schemas/steel.model.v2.schema.json +45 -6
  17. package/dist/skills/floless-app-approval/SKILL.md +19 -5
  18. package/dist/skills/floless-app-bridge/SKILL.md +19 -6
  19. package/dist/skills/floless-app-knowledge/SKILL.md +22 -1
  20. package/dist/skills/floless-app-new-workflow/SKILL.md +31 -27
  21. package/dist/skills/floless-app-new-workflow/references/build-and-verify.md +13 -12
  22. package/dist/skills/floless-app-onboarding/SKILL.md +3 -3
  23. package/dist/skills/floless-app-onboarding/references/floless-app-tour.md +16 -9
  24. package/dist/skills/floless-app-steel-model/SKILL.md +11 -2
  25. package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +95 -0
  26. package/dist/skills/floless-app-steel-takeoff/SKILL.md +142 -21
  27. package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +19 -0
  28. package/dist/skills/floless-app-tweak-contract/SKILL.md +42 -8
  29. package/dist/skills/floless-app-vectorize/SKILL.md +19 -6
  30. package/dist/skills/floless-app-workflows/SKILL.md +30 -3
  31. package/dist/skills/floless-app-workflows/references/workspace-data.md +77 -4
  32. package/dist/templates/floless-workspace-model-report.flo +77 -0
  33. package/dist/templates/revit-model.flo +111 -0
  34. package/dist/web/app.css +415 -177
  35. package/dist/web/app.js +302 -51
  36. package/dist/web/aware.js +1357 -1032
  37. package/dist/web/chat.css +692 -0
  38. package/dist/web/chat.js +2651 -0
  39. package/dist/web/commands-revit.js +42 -0
  40. package/dist/web/commands-shell.js +531 -70
  41. package/dist/web/commands-steel.js +344 -146
  42. package/dist/web/commands.js +1 -1
  43. package/dist/web/index.html +283 -77
  44. package/dist/web/instructor.js +217 -36
  45. package/dist/web/left-pane.js +636 -0
  46. package/dist/web/model-artifact-loader.js +75 -0
  47. package/dist/web/model-authoring-gestures.js +141 -0
  48. package/dist/web/model-cad-tools.js +20 -0
  49. package/dist/web/model-clip-gesture.js +148 -0
  50. package/dist/web/model-clip-list.js +156 -0
  51. package/dist/web/model-clip-session.js +274 -0
  52. package/dist/web/model-clip-three-overlay.js +295 -0
  53. package/dist/web/model-clip-three-preview.js +59 -0
  54. package/dist/web/model-editor-contract.js +519 -0
  55. package/dist/web/model-editor-revit-adapter.js +139 -0
  56. package/dist/web/model-editor-shell.js +271 -0
  57. package/dist/web/model-editor-state-recovery.js +44 -0
  58. package/dist/web/model-editor-steel-adapter.js +415 -0
  59. package/dist/web/model-editor.css +268 -0
  60. package/dist/web/model-frame.js +192 -0
  61. package/dist/web/model-inspector.js +128 -0
  62. package/dist/web/model-measure.js +390 -0
  63. package/dist/web/model-navigation-controls.js +246 -0
  64. package/dist/web/model-orientation-overlay.js +217 -0
  65. package/dist/web/model-panel-bridge.js +230 -0
  66. package/dist/web/model-pointer-dock.js +164 -0
  67. package/dist/web/model-revit-module.js +83 -0
  68. package/dist/web/model-selection-coordinator.js +151 -0
  69. package/dist/web/model-selection-tools.js +290 -0
  70. package/dist/web/model-snap-contract.js +267 -0
  71. package/dist/web/model-snapping.js +497 -0
  72. package/dist/web/model-spatial-panel.js +294 -0
  73. package/dist/web/model-spatial-tools.js +249 -0
  74. package/dist/web/model-tree.js +47 -0
  75. package/dist/web/model-viewport-lighting.js +166 -0
  76. package/dist/web/model-viewport-revit-adapter.js +1224 -0
  77. package/dist/web/model-viewport-state.js +505 -0
  78. package/dist/web/model-viewport-steel-adapter.js +150 -0
  79. package/dist/web/model-viewport-toolbar.js +516 -0
  80. package/dist/web/model-viewport.js +717 -0
  81. package/dist/web/panels.js +8 -15
  82. package/dist/web/renderers.js +3 -0
  83. package/dist/web/revit-editor.css +35 -0
  84. package/dist/web/revit-editor.html +74 -0
  85. package/dist/web/revit-editor.js +845 -0
  86. package/dist/web/steel-3d-core.js +16 -44
  87. package/dist/web/steel-3d-view.js +1384 -633
  88. package/dist/web/steel-canvas-guidance.js +3 -1
  89. package/dist/web/steel-editor.html +2145 -1255
  90. package/dist/web/steel-filter.html +5 -1
  91. package/dist/web/steel-model-v2-commands.js +80 -3
  92. package/dist/web/steel-split-view.js +5 -39
  93. package/dist/web/steel-view-generation.js +107 -17
  94. package/dist/web/vector-3d.html +12 -0
  95. package/dist/web/workspaces.js +2154 -283
  96. package/distribution-profile-active.mjs +2 -0
  97. package/distribution-profile-production.mjs +47 -0
  98. package/distribution-profile-shared.mjs +8 -0
  99. package/distribution-profile.mjs +18 -0
  100. package/distribution-resource-inventory.mjs +81 -0
  101. package/launch.mjs +18 -10
  102. package/log.mjs +2 -1
  103. package/managed-runtime-policy.mjs +104 -0
  104. package/model-reader-policy-active.mjs +7 -0
  105. package/network-policy-active.mjs +6 -0
  106. package/package.json +17 -2
  107. package/post-update-marker.mjs +3 -1
  108. package/rvt-production-uat-authority.mjs +60 -0
  109. package/teardown.mjs +4 -3
@@ -70,7 +70,7 @@
70
70
  drift out of step with the registrations. That table was the alternative,
71
71
  and a second statement of which command sits where is exactly the drift
72
72
  this design exists to prevent. */
73
- var SURFACE = ['shell', 'steel-editor', 'steel-filter', 'vector-editor', 'vector-3d'];
73
+ var SURFACE = ['shell', 'steel-editor', 'revit-editor', 'steel-filter', 'vector-editor', 'vector-3d'];
74
74
 
75
75
  var registry = Object.create(null);
76
76
  /* Templates removed by retire() — a capability gated OFF in this build, not one nobody
@@ -9,14 +9,21 @@
9
9
  <link rel="icon" type="image/svg+xml" href="/favicon.svg?v=2" />
10
10
  <link rel="icon" type="image/x-icon" href="/favicon.ico?v=2" />
11
11
  <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=2" />
12
+ <script>
13
+ // Workspaces has no workflow Inspector. Apply that persisted mode before CSS paints so the old
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'); }
16
+ catch { /* private or locked-down storage falls back to the normal boot path */ }
17
+ </script>
12
18
  <link rel="stylesheet" href="app.css">
19
+ <link rel="stylesheet" href="chat.css">
13
20
  </head>
14
21
  <body>
15
22
  <div class="app" id="app">
16
23
 
17
24
  <header data-group="In the header">
18
25
  <div class="header-left">
19
- <button data-command-id="shell.menu-toggle" id="menu-btn" class="hamburger" data-tip="Menu" aria-label="Menu">≡</button>
26
+ <button data-command-id="shell.menu-toggle" id="menu-btn" class="hamburger" aria-controls="menu" data-tip="Menu" aria-label="Menu">≡</button>
20
27
  <div class="brand">
21
28
  <span class="mark" aria-hidden="true">
22
29
  <svg viewBox="0 0 192 181" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -132,41 +139,117 @@
132
139
  </div>
133
140
  </header>
134
141
 
135
- <aside class="chat" id="chat-panel" data-group="In the Narrative panel">
136
- <div class="panel-label">
137
- <span class="narrative-tabs" role="tablist" aria-label="Left panel content">
138
- <button data-command-id="shell.narrative-tab" type="button" class="narrative-tab active" id="narrative-tab" role="tab" aria-selected="true" aria-controls="messages" data-tip="Curated narration of this workflow and its runs — the full chat stays in your terminal AI">Narrative</button>
139
- <button data-command-id="shell.ai-answers-tab" type="button" class="narrative-tab" id="ai-answers-tab" role="tab" aria-selected="false" aria-controls="ai-answers" tabindex="-1" data-tip="Pending terminal AI work and completed answers kept with this workflow or project">AI answers <span class="answer-unread" id="answer-unread" hidden></span></button>
140
- </span>
142
+ <aside class="chat combined-left-pane" id="chat-panel" data-group="In the left panel" aria-label="AI Chat and Model panel">
143
+ <div class="left-pane-full">
144
+ <div class="left-pane-switches" role="toolbar" aria-label="Left panel sections">
145
+ <button type="button" data-left-section-switch="narrative" data-command-id="shell.left-section#AI Chat" data-command-instance-label="AI Chat" aria-pressed="true" data-tip="Show or hide AI Chat">AI Chat <span aria-hidden="true">◉</span></button>
146
+ <button type="button" data-left-section-switch="model" data-command-id="shell.left-section#Model" data-command-instance-label="Model" aria-pressed="false" data-tip="Show or hide Model" hidden>Model <span aria-hidden="true">◉</span></button>
147
+ <span class="left-pane-switch-spacer"></span>
148
+ </div>
149
+ <div class="left-pane-stack" id="left-pane-stack">
150
+ <section id="left-narrative-section" class="left-pane-section narrative-section" data-left-section="narrative" aria-labelledby="left-narrative-heading">
151
+ <header class="left-section-heading">
152
+ <button type="button" class="left-section-grip" draggable="true" data-left-reorder="narrative" data-command-id="shell.left-section-reorder#AI Chat" data-command-instance-label="AI Chat" aria-label="Move AI Chat panel" data-tip="Drag to reorder · Alt+Arrow Up or Down also moves this panel">⠿</button>
153
+ <strong id="left-narrative-heading">AI Chat</strong><span id="left-chat-context">Project conversation</span>
154
+ <button type="button" class="left-section-close" data-left-section-close="narrative" data-command-id="shell.left-section#AI Chat" data-command-instance-label="AI Chat" aria-label="Hide AI Chat" data-tip="Hide AI Chat">×</button>
155
+ </header>
156
+ <div class="left-section-body narrative-section-body">
157
+ <div class="ai-chat-controls" role="toolbar" aria-label="Chat controls">
158
+ <span class="narrative-tabs" role="tablist" aria-label="AI Chat content">
159
+ <button data-command-id="shell.narrative-tab" type="button" class="narrative-tab active sr-only" id="narrative-tab" role="tab" aria-selected="true" aria-controls="messages">Chat <span class="answer-unread" id="chat-unread" hidden></span></button>
160
+ </span>
161
+ <span class="ai-chat-tab-actions">
162
+ <button data-command-id="shell.chat-history" type="button" class="ai-chat-icon" id="chat-history-toggle" aria-expanded="false" aria-controls="chat-history" data-tip="Conversation history" aria-label="Conversation history">☷</button>
163
+ <button data-command-id="shell.chat-new" type="button" class="ai-chat-icon" id="chat-new" data-tip="New conversation" aria-label="New conversation">+</button>
164
+ <button data-command-id="shell.chat-refresh" type="button" class="ai-chat-icon" id="chat-refresh" data-tip="Refresh this chat session" aria-label="Refresh this chat session">↻</button>
165
+ <button data-command-id="shell.chat-settings" type="button" class="ai-chat-icon" id="chat-settings-toggle" aria-expanded="false" aria-controls="chat-settings" data-tip="Chat settings" aria-label="Chat settings">⚙</button>
166
+ </span>
167
+ </div>
168
+ <div class="messages ai-chat-host" id="messages" role="tabpanel" aria-labelledby="narrative-tab">
169
+ <section class="ai-chat-shell" id="ai-chat-shell" aria-label="AI Chat">
170
+ <div class="ai-chat-toolbar">
171
+ <div class="ai-chat-heading" tabindex="-1" id="chat-heading">
172
+ <div class="ai-chat-title-line"><strong id="chat-title">AI Chat</strong><button data-command-id="shell.chat-rename" type="button" class="ai-chat-rename" id="chat-rename" aria-label="Rename conversation" data-tip="Rename conversation">✎</button></div>
173
+ <span id="chat-scope">Open a project or workflow</span>
174
+ </div>
175
+ </div>
176
+ <div class="ai-chat-settings" id="chat-settings" hidden>
177
+ <span class="ai-chat-setting ai-chat-provider" id="chat-provider" data-tip="The provider is fixed for this conversation. Start a new conversation to switch between Claude and Codex."><span>Provider</span><strong>—</strong></span>
178
+ <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>
179
+ <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>
180
+ <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>
181
+ <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>
182
+ <div class="ai-chat-desktop-status" id="chat-desktop-status">
183
+ <div><span>Continue in desktop app</span><strong id="chat-desktop-value">—</strong></div>
184
+ <small id="chat-desktop-reason" aria-live="polite">Open a conversation to check whether the desktop app can continue it.</small>
185
+ <p>FloLess stores project files, chat history, attachments, and Knowledge on this computer. Messages, images, and relevant file content are sent to Claude or Codex for AI processing under your subscription. Connected integrations contact their services when used.</p>
186
+ </div>
187
+ </div>
188
+ <div class="ai-chat-picker" id="chat-picker" role="listbox" hidden></div>
189
+ <div class="ai-chat-history" id="chat-history" hidden aria-label="Conversation history"></div>
190
+ <div class="ai-chat-feed" id="chat-feed" tabindex="-1"></div>
191
+ <div class="ai-chat-recovery" id="chat-recovery" hidden>
192
+ <span id="chat-recovery-copy">FloLess needs to check the last AI response before sending another message.</span>
193
+ <button data-command-id="shell.chat-stop" type="button" id="chat-recovery-stop">Stop response</button>
194
+ <button data-command-id="shell.chat-reconcile" type="button" id="chat-reconcile">Check again</button>
195
+ </div>
196
+ <div class="ai-chat-attachments" id="chat-attachments" hidden></div>
197
+ <div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
198
+ <div class="ai-chat-composer" id="chat-composer">
199
+ <textarea data-command-id="shell.chat-input" id="chat-input" rows="1" maxlength="131072" placeholder="Message AI…" aria-label="Message AI"></textarea>
200
+ <div class="ai-chat-compose-actions">
201
+ <input data-command-id="shell.chat-attach-input" id="chat-file" type="file" accept="image/png,image/jpeg,image/webp,application/pdf" multiple hidden>
202
+ <button data-command-id="shell.chat-attach" type="button" class="ai-chat-icon" id="chat-attach" data-tip="Attach image or PDF" aria-label="Attach image or PDF">+</button>
203
+ <span class="ai-chat-compose-hint" id="chat-compose-hint">Enter to send · Shift+Enter for a new line</span>
204
+ <button data-command-id="shell.chat-stop" type="button" class="ai-chat-stop" id="chat-stop" hidden>Stop</button>
205
+ <button data-command-id="shell.chat-send" type="button" class="ai-chat-send" id="chat-send">Send</button>
206
+ </div>
207
+ <div class="ai-chat-compose-context" id="chat-compose-context" aria-live="polite"></div>
208
+ </div>
209
+ <span class="sr-only" id="chat-status" role="status" aria-live="polite"></span>
210
+ </section>
211
+ </div>
212
+ <span class="sr-only" id="narrative-answer-status" role="status" aria-live="polite"></span>
213
+ </div>
214
+ </section>
215
+ <div id="left-pane-split" class="left-pane-split" data-command-id="shell.left-panel-split" role="separator" tabindex="0" aria-label="Resize AI Chat and Model panels" aria-orientation="horizontal" aria-controls="left-narrative-section left-model-section" data-tip="Drag or use arrow keys to resize · Enter or double-click to reset" hidden></div>
216
+ <section id="left-model-section" class="left-pane-section model-section" data-left-section="model" aria-labelledby="left-model-heading" hidden>
217
+ <header class="left-section-heading">
218
+ <button type="button" class="left-section-grip" draggable="true" data-left-reorder="model" data-command-id="shell.left-section-reorder#Model" data-command-instance-label="Model" aria-label="Move Model panel" data-tip="Drag to reorder · Alt+Arrow Up or Down also moves this panel">⠿</button>
219
+ <strong id="left-model-heading">Model</strong><span id="left-model-context">Project model</span>
220
+ <button type="button" class="left-section-close" data-left-section-close="model" data-command-id="shell.left-section#Model" data-command-instance-label="Model" aria-label="Hide Model" data-tip="Hide Model">×</button>
221
+ </header>
222
+ <div class="left-section-body model-section-body">
223
+ <div id="left-model-tabs" class="left-model-tabs" role="tablist" aria-label="Model tabs"></div>
224
+ <div id="left-model-index-header" class="left-model-index-header">
225
+ <span id="left-model-index-label">Browse model</span>
226
+ <label class="left-model-follow" data-tip="Keep the Model tree aligned with the single object selected in the 3D view">
227
+ <span>Follow selection</span>
228
+ <input id="left-model-follow-selection" type="checkbox" role="switch" data-command-id="shell.model-follow-selection" aria-checked="true" checked>
229
+ <span class="left-model-follow-track" aria-hidden="true"></span>
230
+ </label>
231
+ </div>
232
+ <div id="left-model-content" class="left-model-content" role="tabpanel" tabindex="0"></div>
233
+ <!-- A panel tab's slot: the model editor moves its own controls into this frame (web/model-panel-bridge.js). -->
234
+ <div id="left-model-panel-slot" class="left-model-panel-slot" role="tabpanel" hidden><iframe id="left-model-panel" title="Model panel"></iframe></div>
235
+ </div>
236
+ </section>
237
+ <div id="left-pane-empty" class="left-pane-empty" hidden>Choose a section above.</div>
238
+ </div>
239
+ <span class="sr-only" id="left-pane-status" role="status" aria-live="polite"></span>
141
240
  </div>
142
- <div class="collapsed-stub">
143
- <div class="vertical-label">Narrative</div>
144
- <div class="stub-icon">💬</div>
241
+ <div class="collapsed-stub left-pane-collapsed">
242
+ <div class="left-collapsed-sections" id="left-collapsed-sections"></div>
145
243
  </div>
146
- <div class="messages" id="messages" role="tabpanel" aria-labelledby="narrative-tab"></div>
147
- <div class="messages ai-answers" id="ai-answers" role="tabpanel" aria-labelledby="ai-answers-tab" hidden></div>
148
- <span class="sr-only" id="narrative-answer-status" role="status" aria-live="polite"></span>
149
244
  </aside>
150
245
 
151
- <!-- ── Pane rails ───────────────────────────────────────────────────────────────────────
152
- The divider between a pane and the canvas: one 13px column carrying BOTH the drag and
153
- the collapse grip.
154
-
155
- They live here, as children of .app in the CANVAS grid area, and NOT inside the panes.
156
- A pane is `overflow:hidden`, so a rail placed inside it is sliced at the boundary; pulled
157
- far enough inward to escape that, the grip lands on top of the message list instead —
158
- measured, it covered a narrative card by 3px and sat over `.messages` in the hit-test
159
- stack. Out here it straddles the 1px grid gap, so it belongs to the seam rather than to
160
- either side of it, and it covers no content in any pane at any width.
161
-
162
- One button per side, used in BOTH states. The collapsed stub no longer carries a second
163
- copy: that is what made the control able to look like two different objects, and it is
164
- also why the same element keeps focus across a toggle. -->
246
+ <!-- Shared pane rails stay outside overflow-hidden panes, so one persistent control handles
247
+ resizing and collapse without covering Narrative, Model, or Inspector content. -->
165
248
  <div class="pane-rail pane-rail-left">
166
- <div class="resize-handle" data-resize="left" data-command-id="shell.resize-panel#Narrative" data-command-instance-label="Narrative"
167
- role="separator" aria-label="Resize Narrative panel" aria-orientation="vertical" aria-controls="chat-panel" tabindex="0"
249
+ <div class="resize-handle" data-resize="left" data-command-id="shell.resize-panel#Left" data-command-instance-label="Left"
250
+ role="separator" aria-label="Resize left panel" aria-orientation="vertical" aria-controls="chat-panel" tabindex="0"
168
251
  data-tip="Drag or use arrow keys to resize · Enter or double-click to reset"></div>
169
- <button data-command-id="shell.narrative-panel" type="button" class="panel-toggle" data-side="left" aria-label="Collapse Narrative panel" aria-controls="chat-panel" aria-expanded="true" data-tip="Collapse Narrative panel"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="m10 3-5 5 5 5"/></svg></button>
252
+ <button data-command-id="shell.left-panel" type="button" class="panel-toggle" data-side="left" aria-label="Collapse AI Chat" aria-controls="chat-panel" aria-expanded="true" data-tip="Collapse AI Chat"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="m10 3-5 5 5 5"/></svg></button>
170
253
  </div>
171
254
  <div class="pane-rail pane-rail-right">
172
255
  <div class="resize-handle" data-resize="right" data-command-id="shell.resize-panel#Inspect" data-command-instance-label="Inspect"
@@ -174,7 +257,6 @@
174
257
  data-tip="Drag or use arrow keys to resize · Enter or double-click to reset"></div>
175
258
  <button data-command-id="shell.inspect-panel" type="button" class="panel-toggle" data-side="right" aria-label="Collapse Inspect panel" aria-controls="inspect-panel" aria-expanded="true" data-tip="Collapse Inspect panel"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="m6 3 5 5-5 5"/></svg></button>
176
259
  </div>
177
-
178
260
  <main class="canvas" id="canvas-main" data-group="On the canvas">
179
261
  <div class="panel-label">
180
262
  <span id="center-panel-name">Canvas</span>
@@ -246,7 +328,10 @@
246
328
  <input data-command-id="shell.attach-revision" type="file" id="ws-revision-file" accept=".pdf,image/*" multiple hidden>
247
329
  </span>
248
330
  </div>
249
- <div class="ws-stage-guidance" id="ws-stage-guidance" hidden aria-live="polite"></div>
331
+ <!-- The announcer stays outside the bounded visual region so it is mounted before the first
332
+ update. The region itself is named for keyboard users whenever its content scrolls. -->
333
+ <span class="sr-only wsg-live" id="ws-stage-guidance-live" role="status" aria-live="polite" aria-atomic="true"></span>
334
+ <div class="ws-stage-guidance" id="ws-stage-guidance" role="region" aria-label="Drawing read progress" hidden></div>
250
335
  <!-- Revision-read status card, ABOVE the filter iframe (chrome around it, never inside — the
251
336
  filter owns its own layout). Shown only on Drawings, and only when there is one. -->
252
337
  <div class="ws-revision-card" id="ws-revision-card" role="status" aria-live="polite" aria-atomic="true" hidden></div>
@@ -262,6 +347,12 @@
262
347
  <span class="ws-source-ico" aria-hidden="true">▨</span>
263
348
  <div class="ws-source-title">This project's source drawing</div>
264
349
  <div class="ws-source-sub">The lines on the Traced tab were read from the drawing you imported. Use “Attach revised drawings…” above to re-trace a newer one as a new version.</div>
350
+ <div class="ws-source-actions" id="ws-source-actions" hidden>
351
+ <button type="button" id="ws-revit-replace" class="btn-mini" data-command-id="revit.replace-import" data-tip="Choose a new RVT. The current model remains available until the replacement is ready.">Replace RVT…</button>
352
+ <button type="button" id="ws-revit-retry" class="btn-mini" data-command-id="revit.retry-import" data-tip="Try importing the already stored RVT again." hidden>Try import again</button>
353
+ <button type="button" id="ws-revit-cancel" class="btn-mini" data-command-id="revit.cancel-import" data-tip="Cancel this import. The existing model remains unchanged." hidden>Cancel import</button>
354
+ </div>
355
+ <div class="ws-source-reassure" id="ws-source-reassure" role="status" aria-live="polite" hidden>The current model remains unchanged until this import finishes.</div>
265
356
  </div>
266
357
  </div>
267
358
  <!-- Exports = a SHELL-rendered pane (not an iframe): export cards over the project's own
@@ -368,12 +459,12 @@
368
459
  press <kbd>?</kbd> to explain a control<span class="ix-hint-sep">·</span><button type="button" class="ix-hint-link" id="ix-all" data-command-id="instructor.sheet" aria-label="See all commands" data-tip="Every command FloLess knows, with what it acts on and how to reach it">see all</button>
369
460
  </span>
370
461
  <span class="ix-ask-split" id="ix-ask-split" role="group" aria-label="Ask terminal AI" hidden>
371
- <button data-command-id="shell.instructor-ask" type="button" class="ix-ask ix-ask-main" data-tip="Start a read-only answer in your terminal AI; it will appear in AI answers">Ask AI now</button>
462
+ <button data-command-id="shell.instructor-ask" type="button" class="ix-ask ix-ask-main" data-tip="Start a read-only conversation in AI Chat">Ask AI now</button>
372
463
  <button data-command-id="shell.instructor-ask-options" type="button" class="ix-ask ix-ask-caret" id="ix-ask-options" aria-label="More ways to ask" aria-haspopup="menu" aria-expanded="false" aria-controls="ix-ask-menu" data-tip="More ways to ask">▾</button>
373
464
  </span>
374
465
  <button data-command-id="shell.instructor-ask-queue" type="button" class="ix-ask ix-ask-queue" data-tip="Queue and copy this context for your terminal AI">Queue &amp; copy</button>
375
466
  </div>
376
- <div class="ix-ask-menu" id="ix-ask-menu" role="menu" hidden>
467
+ <div class="ix-ask-menu" id="ix-ask-menu" role="menu" data-reveal-by="#ix-ask-options" hidden>
377
468
  <button data-command-id="shell.instructor-ask-runtime" type="button" role="menuitem">Choose terminal AI…</button>
378
469
  <button data-command-id="shell.instructor-ask-queue" type="button" role="menuitem">Queue &amp; copy for terminal</button>
379
470
  </div>
@@ -411,6 +502,20 @@
411
502
  <button data-command-id="shell.app-update" id="app-update" class="app-update" hidden></button>
412
503
  </span>
413
504
  </footer>
505
+
506
+ <!-- Dedicated full-window surface for a contract editor (steel takeoff, …). Inside #app so a model
507
+ editor can start at the left panel's edge (app.css .contract-editor-beside reads --left-width).
508
+ Same-origin iframe so the editor reads/writes /api/contract directly
509
+ (unlike the opaque 3D viewer which uses a data: URL and allow-scripts only). -->
510
+ <div id="contract-editor" class="contract-editor" hidden>
511
+ <div class="contract-editor-bar">
512
+ <span id="contract-editor-title" class="contract-editor-title"></span>
513
+ <span style="flex:1"></span>
514
+ <button data-command-id="shell.editor-close" id="contract-editor-close" type="button" data-tip="Close the editor and go back — your edits are already saved">Close</button>
515
+ <button data-command-id="shell.editor-approve" id="contract-editor-approve" type="button" class="primary" data-tip="Locks in this version of the model so it can be Run. Your edits already auto-save — this is the sign-off, and Run stays disabled until you approve after each change.">✓ Approve</button>
516
+ </div>
517
+ <iframe id="contract-editor-frame" title="Contract editor"></iframe>
518
+ </div>
414
519
  </div>
415
520
 
416
521
  <!-- Single reusable release-notes popover — anchored to the clicked update pill
@@ -420,7 +525,7 @@
420
525
 
421
526
  <!-- Customized-badge menu — Undo · Reset · a read-only history list. Anchored
422
527
  under the header badge; populated per-open in panels.js. -->
423
- <div class="menu ext-menu" id="ext-menu" role="menu" hidden>
528
+ <div class="menu ext-menu" id="ext-menu" role="menu" data-reveal-by="#ext-badge" hidden>
424
529
  <button data-command-id="shell.extension-undo" class="menu-item" id="ext-undo" role="menuitem">
425
530
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"/></svg></span>
426
531
  <span class="menu-label">Undo</span>
@@ -508,7 +613,7 @@
508
613
  </div>
509
614
  </div>
510
615
 
511
- <div class="menu" id="menu" role="menu" data-group="In the ≡ menu">
616
+ <div class="menu" id="menu" role="menu" data-group="In the ≡ menu" data-reveal-by="#menu-btn">
512
617
  <button class="menu-item" data-action="open" data-command-id="menu.open" role="menuitem">
513
618
  <span class="menu-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/></svg></span>
514
619
  <span class="menu-label">Open</span>
@@ -566,6 +671,10 @@
566
671
  <span class="menu-label">Integrations</span>
567
672
  <span class="menu-kbd">Ctrl+I</span>
568
673
  </button>
674
+ <button class="menu-item" data-action="workspace-folder" data-command-id="menu.workspace-folder" role="menuitem">
675
+ <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>
676
+ <span class="menu-label">Workspace directory…</span>
677
+ </button>
569
678
  <button class="menu-item" data-action="routines" data-command-id="menu.routines" role="menuitem">
570
679
  <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>
571
680
  <span class="menu-label">Routines</span>
@@ -612,8 +721,8 @@
612
721
  the id is on, and the label is what carries the name here. Same shape as the 3D view
613
722
  toggles in the steel editor (#779).
614
723
  NOT the Drawing Filter's match-on rows any more: #805 Phase D moved those onto their
615
- inputs, because Instructor's activate() focuses the carrier it finds and a <label> cannot
616
- take focus, so pressing Enter from the ? sheet could never reach the control. This one is
724
+ inputs, so Instructor's activate() focuses the control itself rather than a <label> that
725
+ only hands focus on to it. This one is
617
726
  unchanged only because that slice had no business editing this surface; the same move is
618
727
  available here whenever someone owns it. -->
619
728
  <label class="rtn-toggle" data-command-id="shell.open-at-startup" aria-label="Start FloLess on startup">
@@ -666,19 +775,6 @@
666
775
  </div>
667
776
  </div>
668
777
 
669
- <!-- Dedicated full-window surface for a contract editor (steel takeoff, …).
670
- Same-origin iframe so the editor reads/writes /api/contract directly
671
- (unlike the opaque 3D viewer which uses a data: URL and allow-scripts only). -->
672
- <div id="contract-editor" class="contract-editor" hidden>
673
- <div class="contract-editor-bar">
674
- <span id="contract-editor-title" class="contract-editor-title"></span>
675
- <span style="flex:1"></span>
676
- <button data-command-id="shell.editor-close" id="contract-editor-close" type="button" data-tip="Close the editor and go back — your edits are already saved">Close</button>
677
- <button data-command-id="shell.editor-approve" id="contract-editor-approve" type="button" class="primary" data-tip="Locks in this version of the model so it can be Run. Your edits already auto-save — this is the sign-off, and Run stays disabled until you approve after each change.">✓ Approve</button>
678
- </div>
679
- <iframe id="contract-editor-frame" title="Contract editor"></iframe>
680
- </div>
681
-
682
778
  <!-- HTML Viewer — renders the report HTML an exec node returned, in-app.
683
779
  Double-click a report node on the canvas to run it and open this. -->
684
780
  <div class="modal-backdrop report-backdrop" id="report-modal">
@@ -757,6 +853,92 @@
757
853
  </div>
758
854
  </div>
759
855
 
856
+ <!-- New Workspace project setup. The folder is the project boundary: project files, Chat,
857
+ Knowledge and project workflows all live there, and the headless AI starts there. Kept as a
858
+ dedicated dialog because the reusable form modal cannot represent a server-owned native folder
859
+ choice or preserve that choice while validating the remaining fields. -->
860
+ <div class="modal-backdrop" id="project-setup-modal" role="dialog" aria-modal="true"
861
+ aria-labelledby="project-setup-title" aria-describedby="project-setup-sub project-setup-error">
862
+ <div class="modal project-setup-dialog" tabindex="-1">
863
+ <div class="modal-title" id="project-setup-title">New project</div>
864
+ <div class="modal-sub" id="project-setup-sub">Choose where FloLess stores this project and where AI starts.</div>
865
+ <div class="project-setup-source" aria-label="Selected source drawings">
866
+ <span class="project-setup-kicker">Source</span>
867
+ <span id="project-setup-source-name" class="project-setup-source-name"></span>
868
+ <span id="project-setup-source-count" class="project-setup-source-count"></span>
869
+ </div>
870
+ <div class="project-setup-fields">
871
+ <div class="project-setup-field">
872
+ <span class="project-setup-label">Project folder</span>
873
+ <div class="project-setup-folder-row">
874
+ <code id="project-setup-folder" class="project-setup-folder">Choose a project folder inside the Workspace directory</code>
875
+ <button type="button" id="project-setup-folder-choose" data-command-id="shell.project-folder-choose"
876
+ aria-label="Choose project folder">Choose…</button>
877
+ </div>
878
+ <div id="project-setup-folder-note" class="project-setup-note" role="status" aria-live="polite">FloLess stores this project here, and AI starts in this folder.</div>
879
+ </div>
880
+ <label class="project-setup-field" for="project-setup-name">
881
+ <span class="project-setup-label">Project name</span>
882
+ <input type="text" id="project-setup-name" data-command-id="shell.project-name"
883
+ maxlength="160" autocomplete="off" placeholder="e.g. Westfield Retail — Ph2">
884
+ </label>
885
+ <fieldset class="project-setup-field project-setup-standard" id="project-setup-standard" hidden>
886
+ <legend class="project-setup-label">Standard</legend>
887
+ <div class="project-setup-standard-options">
888
+ <button type="button" data-environment="US" data-command-id="shell.project-standard#US" aria-pressed="false">
889
+ <span class="project-setup-standard-label" data-standard-label="US">US · AISC/ASTM</span>
890
+ <span>AISC sections · A992 / A36</span>
891
+ </button>
892
+ <button type="button" data-environment="UK" data-command-id="shell.project-standard#UK" aria-pressed="false">
893
+ <span class="project-setup-standard-label" data-standard-label="UK">UK · BS/EN</span>
894
+ <span>BS EN sections · S355</span>
895
+ </button>
896
+ </div>
897
+ <div class="project-setup-note">The standard is fixed for this project. Display units can be changed later.</div>
898
+ </fieldset>
899
+ </div>
900
+ <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>
901
+ <div class="project-setup-chat-meta" id="project-setup-chat-meta" hidden></div>
902
+ <div class="project-setup-error" id="project-setup-error" role="alert" aria-live="assertive" hidden></div>
903
+ <div class="modal-actions">
904
+ <button type="button" id="project-setup-cancel" data-command-id="shell.dialog-cancel#project setup">Cancel</button>
905
+ <button type="button" id="project-setup-create-only" data-command-id="shell.project-create" disabled>Create project only</button>
906
+ <button type="button" id="project-setup-create" data-command-id="shell.project-create-chat" class="primary" disabled>Create project &amp; start chat</button>
907
+ </div>
908
+ </div>
909
+ </div>
910
+
911
+ <!-- Company Knowledge stays an extension of the existing project Knowledge step. The project
912
+ accepts project copies; this dialog never turns the company folder into automatic project context. -->
913
+ <div class="modal-backdrop" id="company-knowledge-modal" role="dialog" aria-modal="true"
914
+ aria-labelledby="company-knowledge-title" aria-describedby="company-knowledge-sub company-knowledge-error">
915
+ <div class="modal company-knowledge-dialog" tabindex="-1">
916
+ <div class="company-knowledge-head">
917
+ <div class="modal-title" id="company-knowledge-title">Company knowledge</div>
918
+ <button type="button" id="company-knowledge-close" data-command-id="shell.dialog-close#company knowledge"
919
+ aria-label="Close company knowledge" data-tip="Close">×</button>
920
+ </div>
921
+ <div class="modal-sub" id="company-knowledge-sub">Company reference files are available to every FloLess project. This project changes only when you add a specific version.</div>
922
+ <div class="company-knowledge-body">
923
+ <section id="company-knowledge-folder" class="company-knowledge-folder" aria-label="Company folder"></section>
924
+ <section id="company-knowledge-promotion" class="company-knowledge-promotion" aria-labelledby="company-promotion-title" hidden>
925
+ <div class="company-section-label" id="company-promotion-title">Promote from this project</div>
926
+ <div id="company-promotion-source" class="company-promotion-source"></div>
927
+ <label for="company-promotion-lineage">Add as</label>
928
+ <select id="company-promotion-lineage" data-command-id="shell.company-promotion-lineage"></select>
929
+ <p>Choose an existing entry only when this file is a new version of that exact company reference.</p>
930
+ </section>
931
+ <section id="company-knowledge-list" class="company-knowledge-list" aria-label="Shared references"></section>
932
+ <section id="company-knowledge-confirm" class="company-knowledge-confirm" role="status" aria-live="polite" hidden></section>
933
+ </div>
934
+ <div class="company-knowledge-error" id="company-knowledge-error" role="alert" aria-live="assertive" hidden></div>
935
+ <div class="modal-actions">
936
+ <button type="button" id="company-knowledge-cancel" data-command-id="shell.dialog-cancel#company knowledge">Close</button>
937
+ <button type="button" id="company-knowledge-action" class="primary" data-command-id="shell.company-publish" hidden></button>
938
+ </div>
939
+ </div>
940
+ </div>
941
+
760
942
  <!-- Revision review (unit 5, P6e) — the human decides what a re-read may change.
761
943
  Bespoke rather than #form-modal: that modal renders a flat field list and has no
762
944
  notion of grouped rows, per-bucket bulk actions, or re-rendering in place when the
@@ -794,16 +976,20 @@
794
976
 
795
977
  <!-- Approval is a mandatory review, never a one-click mutation. The server supplies every group
796
978
  and all plain-English copy; this surface only records an explicit decision for each group. -->
797
- <div class="modal-backdrop" id="approval-review-modal" role="dialog" aria-modal="true" aria-labelledby="approval-review-title" aria-describedby="approval-review-sub">
979
+ <div class="modal-backdrop" id="approval-review-modal" role="dialog" aria-modal="true" aria-labelledby="approval-review-title" aria-describedby="approval-review-sub approval-review-impact">
798
980
  <div class="modal revreview approval-review" tabindex="-1">
799
981
  <div class="modal-title" id="approval-review-title">Review and approve</div>
800
982
  <div class="modal-sub" id="approval-review-sub"></div>
801
- <div class="approval-impact" id="approval-review-impact" role="status" aria-live="polite"></div>
983
+ <div class="sr-only wsg-live" id="approval-review-live" role="status" aria-live="polite" aria-atomic="true"></div>
984
+ <div class="approval-impact" id="approval-review-impact"></div>
802
985
  <div class="revreview-body approval-review-body" id="approval-review-body"></div>
803
986
  <div class="approval-review-footer">
804
987
  <div class="rev-counts" id="approval-review-counts" role="status" aria-live="polite"></div>
805
988
  <div class="modal-actions">
806
989
  <button data-command-id="shell.dialog-cancel#the approval review" id="approval-review-cancel" type="button">Cancel</button>
990
+ <button data-command-id="shell.approval-retry" id="approval-review-retry" type="button" hidden>Try again</button>
991
+ <button data-command-id="shell.approval-reload" id="approval-review-reload" type="button" hidden>Reload current review</button>
992
+ <button data-command-id="shell.dialog-close#approval recovery" id="approval-review-close" type="button" hidden>Close</button>
807
993
  <button data-command-id="shell.approval-confirm" id="approval-review-confirm" type="button" class="primary" disabled>Approve selected changes</button>
808
994
  </div>
809
995
  </div>
@@ -873,12 +1059,13 @@
873
1059
  </div>
874
1060
  </div>
875
1061
 
876
- <div class="modal-backdrop" id="integrations-modal">
1062
+ <div class="modal-backdrop" id="integrations-modal" role="dialog" aria-modal="true"
1063
+ aria-labelledby="integrations-title" aria-describedby="integrations-sub integrations-hint">
877
1064
  <div class="modal integrations">
878
- <div class="modal-title">Integrations</div>
879
- <div class="modal-sub">What FloLess can talk to. FloLess only displays connection state — auth happens in your terminal.</div>
880
- <div class="integrations-hint">
881
- Tokens are stored encrypted by AWARE under <code>~/.aware/credentials/</code>. To connect or refresh, run <code>aware connect &lt;name&gt;</code> in claude-code (or codex / opencode). FloLess never touches secrets directly.
1065
+ <div class="modal-title" id="integrations-title">Integrations</div>
1066
+ <div class="modal-sub" id="integrations-sub">Accounts and services FloLess can use on this machine.</div>
1067
+ <div class="integrations-hint" id="integrations-hint">
1068
+ Account credentials stay on this machine in AWARE’s encrypted vault. AI Chat receives results through AWARE, never account tokens. For the same service, the FloLess account selected in a chat takes precedence over Claude or Codex connections.
882
1069
  </div>
883
1070
  <!-- Headless runs (#571): which terminal AI floless may start for you, and where it runs.
884
1071
  Its own full-width section rather than a card in the 2-col grid below, because a
@@ -887,7 +1074,7 @@
887
1074
  a green tick two rows under a real "Connected" badge would claim what we can't back.
888
1075
  Rendered per-open by renderRuntimeSection() in aware.js. -->
889
1076
  <div class="int-section" id="int-runtimes-section" hidden>
890
- <button type="button" class="int-section-toggle" id="int-runtimes-toggle" data-command-id="shell.headless-runs-toggle" aria-expanded="false" aria-controls="int-runtimes-body" data-tip="Expand headless run settings">
1077
+ <button type="button" class="int-section-toggle" id="int-runtimes-toggle" data-command-id="shell.headless-runs-toggle" aria-expanded="false" aria-controls="int-runtimes-body" data-tip="Expand background run settings">
891
1078
  <span class="int-section-title">Headless runs</span>
892
1079
  <span class="int-section-summary" id="int-runtimes-summary">Checking terminal AIs…</span>
893
1080
  <span class="int-section-caret" aria-hidden="true">▸</span>
@@ -899,18 +1086,45 @@
899
1086
  </div>
900
1087
  </div>
901
1088
  <div class="integrations-list" id="integrations-list"></div>
1089
+ <div class="sr-only" id="integrations-status" role="status" aria-live="polite"></div>
902
1090
  <div class="modal-actions">
903
1091
  <button data-command-id="shell.dialog-close#Integrations" id="integrations-close">Close</button>
904
1092
  </div>
905
1093
  </div>
906
1094
  </div>
907
1095
 
1096
+ <div class="modal-backdrop" id="workspace-root-modal" role="dialog" aria-modal="true"
1097
+ aria-labelledby="workspace-root-title" aria-describedby="workspace-root-sub workspace-root-status">
1098
+ <div class="modal workspace-root-modal" tabindex="-1">
1099
+ <div class="modal-title" id="workspace-root-title">Workspace directory</div>
1100
+ <div class="modal-sub" id="workspace-root-sub">FloLess reads your projects and workflows from this folder.</div>
1101
+ <div class="workspace-root-summary">
1102
+ <span class="workspace-root-label">Current</span>
1103
+ <code class="workspace-root-path" id="workspace-root-current">Checking…</code>
1104
+ </div>
1105
+ <div class="workspace-root-status" id="workspace-root-status" role="status" aria-live="polite"></div>
1106
+ <div class="workspace-root-confirm" id="workspace-root-confirm" hidden>
1107
+ <div class="workspace-root-summary">
1108
+ <span class="workspace-root-label">New</span>
1109
+ <code class="workspace-root-path" id="workspace-root-candidate"></code>
1110
+ </div>
1111
+ <p>FloLess will show projects and workflows from this folder.</p>
1112
+ </div>
1113
+ <div class="workspace-root-error" id="workspace-root-error" role="alert" aria-live="assertive" hidden></div>
1114
+ <div class="modal-actions">
1115
+ <button data-command-id="shell.workspace-root-cancel" id="workspace-root-cancel" type="button">Close</button>
1116
+ <button data-command-id="shell.workspace-root-change" id="workspace-root-change" type="button">Choose another Workspace directory…</button>
1117
+ <button data-command-id="shell.workspace-root-use" id="workspace-root-use" class="primary" type="button" hidden>Use folder</button>
1118
+ </div>
1119
+ </div>
1120
+ </div>
1121
+
908
1122
  <div class="modal-backdrop" id="requests-modal">
909
1123
  <div class="modal requests" role="dialog" aria-modal="true" aria-labelledby="requests-title" tabindex="-1">
910
1124
  <div class="modal-title" id="requests-title">Requests</div>
911
- <div class="modal-sub">Reopen a saved headless answer, or start queued work in your terminal AI.</div>
1125
+ <div class="modal-sub">Start queued work in AI Chat or run it in the background with your terminal AI.</div>
912
1126
  <div class="req-guidance" id="requests-guidance" role="status" aria-live="polite" aria-atomic="true" hidden></div>
913
- <span class="sr-only" id="requests-answer-session-status" role="status" aria-live="polite" aria-atomic="true"></span>
1127
+ <span class="sr-only" id="requests-action-status" role="status" aria-live="polite" aria-atomic="true"></span>
914
1128
  <!-- Scope + search. The scope row is hidden when nothing is open to scope TO (the
915
1129
  Workspaces landing, or Workflows with no workflow selected) — a filter with one
916
1130
  possible answer is noise. Labels/counts are written per-render in aware.js. -->
@@ -951,17 +1165,19 @@
951
1165
  </div>
952
1166
  </div>
953
1167
  <div class="request-help-note" id="request-help-note">FloLess cannot start the first read automatically yet: your terminal AI must create the starting project checkpoint, then wait for you to review and save the Drawing Filter. After you save, tell the terminal AI to continue.</div>
1168
+ <div class="request-help-chat-meta" id="request-help-chat-meta" hidden></div>
954
1169
  <div class="modal-actions">
955
1170
  <button data-command-id="shell.request-help-copy" id="request-help-copy" hidden>Copy instruction</button>
956
- <button data-command-id="shell.request-help-keep" id="request-help-keep">Leave in Requests</button>
1171
+ <button data-command-id="shell.request-help-keep" id="request-help-keep">Keep for later</button>
957
1172
  <button data-command-id="shell.request-help-open" id="request-help-open">View request details</button>
958
1173
  <!-- The §E4 split: ▶ runs with the current default, ▾ opens folder + which terminal AI for
959
1174
  THIS run only. Hidden outright when no runtime is installed or this request's type
960
1175
  can't run headless — hide, never disable. -->
961
1176
  <span class="run-split" id="request-help-run-split" hidden>
962
- <button data-command-id="shell.request-help-run" id="request-help-run" class="primary run-split-main">▶ Start automatically</button>
963
- <button data-command-id="shell.request-help-options" id="request-help-run-opts" class="primary run-split-caret" aria-label="Choose folder and terminal AI" data-tip="Choose the folder and which terminal AI to use">▾</button>
1177
+ <button data-command-id="shell.request-help-run" id="request-help-run" class="run-split-main">▶ Start in background</button>
1178
+ <button data-command-id="shell.request-help-options" id="request-help-run-opts" class="run-split-caret" aria-label="Choose folder and terminal AI" data-tip="Choose the folder and which terminal AI to use">▾</button>
964
1179
  </span>
1180
+ <button data-command-id="shell.request-help-chat" id="request-help-chat" class="primary" hidden>Start in AI Chat</button>
965
1181
  </div>
966
1182
  </div>
967
1183
  </div>
@@ -1161,19 +1377,6 @@
1161
1377
  </div>
1162
1378
  </div>
1163
1379
 
1164
- <!-- Confirm bulk-clearing the AI answers. Answers are durable result records, not queue rows, so the
1165
- bulk wipe confirms (individual × has an Undo instead — the two safety nets are deliberately split). -->
1166
- <div class="modal-backdrop" id="answers-clear-modal">
1167
- <div class="modal">
1168
- <div class="modal-title">Clear AI answers</div>
1169
- <div class="modal-sub" id="answers-clear-sub"></div>
1170
- <div class="modal-actions">
1171
- <button data-command-id="shell.dialog-cancel#clearing the AI answers" id="answers-clear-cancel">Cancel</button>
1172
- <button data-command-id="shell.answers-clear-confirm" id="answers-clear-confirm">Clear all</button>
1173
- </div>
1174
- </div>
1175
- </div>
1176
-
1177
1380
  <!-- Graft into agent — build an agent from a foreign tool (DLL / C# source /
1178
1381
  NuGet / OpenAPI / …). The wizard body (#graft-body) is built per-step in
1179
1382
  aware.js. AWARE reads the source + builds the agent (incl. its Tekla
@@ -1225,6 +1428,8 @@
1225
1428
  <script src="aware.js"></script>
1226
1429
  <script src="panels.js"></script>
1227
1430
  <script src="workspaces.js"></script>
1431
+ <script src="left-pane.js"></script>
1432
+ <script src="chat.js"></script>
1228
1433
  <script src="commands-shell.js"></script>
1229
1434
  <!-- The steel editor's capabilities load HERE as well as in steel-editor.html, and that is
1230
1435
  deliberate: the shell is the sole guidance producer, so it must be able to resolve a
@@ -1232,6 +1437,7 @@
1232
1437
  with no state — the co-location finding from phase 0 is about the armed FLAGS, which are
1233
1438
  lexically scoped inside steel-editor.html's main() and stay there. -->
1234
1439
  <script src="commands-steel.js"></script>
1440
+ <script src="commands-revit.js"></script>
1235
1441
  <!-- The other three child surfaces, for the same reason. Each declares its own surface, so
1236
1442
  the `?` sheet can put whichever one is on screen first — see Commands.surfaceScope, and
1237
1443
  activeSurface() in instructor.js for the consumer. -->