@floless/app 0.153.0 → 0.155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floless-server.cjs +51767 -38222
- package/dist/schemas/revit.model.v1.schema.json +5 -0
- package/dist/schemas/steel.model.v2.schema.json +19 -5
- package/dist/skills/floless-app-new-workflow/SKILL.md +8 -2
- package/dist/skills/floless-app-onboarding/SKILL.md +31 -19
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +20 -11
- package/dist/skills/floless-app-queue/SKILL.md +23 -4
- package/dist/skills/floless-app-steel-model/SKILL.md +23 -2
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +158 -65
- package/dist/skills/floless-app-workflows/SKILL.md +23 -5
- package/dist/skills/floless-app-workflows/references/blender-exec.md +183 -0
- package/dist/skills/floless-app-workflows/references/dev-server-and-run-trace.md +27 -12
- package/dist/templates/blender-construction-sequence.flo +96 -0
- package/dist/web/agents.js +33 -13
- package/dist/web/app.css +331 -34
- package/dist/web/app.js +12 -1
- package/dist/web/aware.js +1167 -137
- package/dist/web/chat-question-card.js +477 -0
- package/dist/web/chat.css +237 -25
- package/dist/web/chat.js +2156 -889
- package/dist/web/commands-shell.js +578 -21
- package/dist/web/commands-steel.js +105 -4
- package/dist/web/guide.js +217 -16
- package/dist/web/index.html +104 -10
- package/dist/web/instructor.js +10 -9
- package/dist/web/left-pane.js +43 -6
- package/dist/web/media-player.js +234 -0
- package/dist/web/model-editor-contract.js +2 -0
- package/dist/web/model-editor-revit-adapter.js +1 -0
- package/dist/web/model-editor-steel-adapter.js +89 -1
- package/dist/web/model-panel-bridge.js +16 -2
- package/dist/web/model-view-query.js +590 -0
- package/dist/web/model-viewport-revit-adapter.js +15 -1
- package/dist/web/model-viewport-toolbar.js +5 -2
- package/dist/web/pages.js +592 -0
- package/dist/web/panels.js +2 -1
- package/dist/web/revit-editor.js +182 -16
- package/dist/web/run-progress.js +193 -0
- package/dist/web/run-strip.js +173 -0
- package/dist/web/steel-3d-core.js +70 -0
- package/dist/web/steel-editor.html +2751 -219
- package/dist/web/steel-frames-core.js +958 -0
- package/dist/web/steel-last-seen.js +315 -0
- package/dist/web/steel-marks-core.js +530 -0
- package/dist/web/steel-model-slim.js +95 -0
- package/dist/web/steel-model-v2-client-validation.js +14 -2
- package/dist/web/steel-model-v2-commands.js +258 -27
- package/dist/web/steel-model-v2-projection.js +78 -18
- package/dist/web/steel-read-confidence.js +11 -2
- package/dist/web/tekla-structural-grid-adapter.js +7 -1
- package/dist/web/tool-updates.js +141 -33
- package/dist/web/workspaces.js +446 -30
- package/package.json +3 -2
package/dist/web/index.html
CHANGED
|
@@ -193,10 +193,10 @@
|
|
|
193
193
|
<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>
|
|
194
194
|
<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>
|
|
195
195
|
<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>
|
|
196
|
-
<!-- #2046:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<
|
|
196
|
+
<!-- #2046: the Guide's own controls, shown only in a Guide conversation. #2234: its Access is the ordinary
|
|
197
|
+
picker above (it starts Read only); this cell keeps the briefing, set-aside suggestions, Turn off and Delete. -->
|
|
198
|
+
<div class="ai-chat-setting ai-chat-guide-access" id="chat-guide-access" role="group" aria-labelledby="chat-guide-settings-label" hidden>
|
|
199
|
+
<span id="chat-guide-settings-label">Guide</span>
|
|
200
200
|
<!-- #2053: the opt-in morning briefing; web/guide.js paints it (off by default). -->
|
|
201
201
|
<div class="ai-chat-guide-briefing" id="chat-guide-briefing">
|
|
202
202
|
<!-- The briefing's time: the same themed combobox the app draws for a select, built without one
|
|
@@ -247,13 +247,13 @@
|
|
|
247
247
|
<button data-command-id="shell.chat-move-keep" type="button" id="chat-move-secondary" aria-describedby="chat-move-copy" hidden></button>
|
|
248
248
|
<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>
|
|
249
249
|
</div>
|
|
250
|
-
<div class="ai-chat-attachments" id="chat-attachments" hidden></div>
|
|
251
250
|
<div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
|
|
252
251
|
<div class="ai-chat-approval-tray" id="chat-approval-tray"></div>
|
|
253
252
|
<div class="ai-chat-composer" id="chat-composer">
|
|
254
253
|
<div class="ai-chat-scope-controls" id="chat-scope-controls" hidden>
|
|
255
254
|
<button type="button" id="chat-scope-toggle" data-command-id="shell.chat-scope-open" aria-expanded="false" aria-controls="chat-scope-picker">Scope</button>
|
|
256
|
-
<
|
|
255
|
+
<button type="button" id="chat-access-explanation" data-command-id="shell.chat-access-explanation#hidden" aria-expanded="false" aria-controls="chat-scope-disclosure" aria-label="Explain Read only access" data-tip="Show what this access level allows."><span>Access · </span><strong>Read only</strong><span class="ai-chat-access-chevron" aria-hidden="true">⌄</span></button>
|
|
256
|
+
<span id="chat-scope-disclosure" aria-live="polite" hidden></span>
|
|
257
257
|
<section class="ai-chat-picker ai-chat-scope-picker" id="chat-scope-picker" role="dialog" aria-label="Conversation scope" hidden></section>
|
|
258
258
|
</div>
|
|
259
259
|
<!-- #1890: a workspace conversation's units question, and then its "Units: … · Change" line. -->
|
|
@@ -262,9 +262,13 @@
|
|
|
262
262
|
<div class="ai-chat-connectors" id="chat-change-allowance" role="group" aria-label="Changes allowed for this chat" hidden></div>
|
|
263
263
|
<!-- #1900: the connection checks this chat may run without asking, each with Revoke (web/chat.js). -->
|
|
264
264
|
<div class="ai-chat-connectors" id="chat-check-allowance" role="group" aria-label="Connection checks allowed for this chat" hidden></div>
|
|
265
|
+
<!-- Epic #2185 Slice A: what was allowed for the kinds of request without a box of their own (scope additions, workflow creation, unidentified connector calls, exact checks) - for this reply and for this conversation - each with Revoke (web/chat.js). -->
|
|
266
|
+
<div class="ai-chat-connectors" id="chat-grants" role="group" aria-label="Allowed for this request and this chat" hidden></div>
|
|
265
267
|
<div class="ai-chat-tekla-context" id="chat-tekla-context" hidden></div>
|
|
266
268
|
<!-- #1907: shown only while this chat uses the person's own connectors: "on · Turn off", then each allowed one with Revoke (web/chat.js). -->
|
|
267
269
|
<div class="ai-chat-connectors" id="chat-connectors" role="group" aria-label="Your connectors in this chat" hidden></div>
|
|
270
|
+
<!-- #2185: what is about to be sent sits right above the message box, below every scope and access line. -->
|
|
271
|
+
<div class="ai-chat-attachments" id="chat-attachments" hidden></div>
|
|
268
272
|
<textarea data-command-id="shell.chat-input" id="chat-input" rows="1" maxlength="131072" placeholder="Message AI…" aria-label="Message AI"></textarea>
|
|
269
273
|
<!-- The data-handling disclosure gets its OWN node in the composer, not a line in
|
|
270
274
|
#chat-compose-hint: that hint is one mutable string chosen by a priority chain,
|
|
@@ -377,6 +381,10 @@
|
|
|
377
381
|
<span class="kb-drift-chip" id="kb-drift-chip" role="status" hidden
|
|
378
382
|
data-tip="Re-approving isn’t required — this workflow still runs as it is. But the Knowledge Base has changed since these pages were read, so double-check any values that came from them.">Knowledge Base updated since this was built</span>
|
|
379
383
|
</div>
|
|
384
|
+
<!-- #2228: live progress of a long run (a Blender animation, a big model read) — Flo, what it is doing
|
|
385
|
+
("Rendering frame 143 of 240"), elapsed time, a real bar, and Stop. Painted by web/run-strip.js from
|
|
386
|
+
aware.js; appears only once a run has lasted 2 s or reports progress, so quick runs never flash it. -->
|
|
387
|
+
<div class="run-strip" id="run-strip" role="group" aria-label="Run progress" hidden></div>
|
|
380
388
|
<div class="topology" id="topology"></div>
|
|
381
389
|
<div class="canvas-toolbar">
|
|
382
390
|
<div class="toolbar-group">
|
|
@@ -413,6 +421,7 @@
|
|
|
413
421
|
<button data-command-id="shell.workspace-step#model" type="button" data-step="model" class="active" role="tab" aria-selected="true">Model</button>
|
|
414
422
|
<button data-command-id="shell.workspace-step#exports" type="button" data-step="exports" role="tab" aria-selected="false">Exports</button>
|
|
415
423
|
<button data-command-id="shell.workspace-step#history" type="button" data-step="history" role="tab" aria-selected="false">History</button>
|
|
424
|
+
<button data-command-id="shell.workspace-step#pages" type="button" data-step="pages" role="tab" aria-selected="false">Pages</button>
|
|
416
425
|
</div>
|
|
417
426
|
<span class="ws-step-end">
|
|
418
427
|
<!-- Shown only on the Drawings/Source step. It used to have a 42px band of its own labelled
|
|
@@ -470,6 +479,9 @@
|
|
|
470
479
|
workspaces.js fills it on step-switch (renderHistory). Rollback is per-row (a header
|
|
471
480
|
↺ Rollback verb was cut in design review — no selection context; per-row is unambiguous). -->
|
|
472
481
|
<div class="ws-history" id="ws-history" hidden></div>
|
|
482
|
+
<!-- Pages (#2262) = a SHELL-rendered pane: this project's stored, versioned HTML Pages.
|
|
483
|
+
pages.js fills it on step-switch (flolessPages.renderList). -->
|
|
484
|
+
<div class="ws-pages" id="ws-pages" hidden></div>
|
|
473
485
|
<!-- Knowledge = a SHELL-rendered pane (not an iframe): the project's Knowledge Base.
|
|
474
486
|
workspaces.js fills it on step-switch (renderKnowledge). Stage B ships the References
|
|
475
487
|
column (drop / useAsKb / remove / Organize); the graph + note columns are Stage C/D.
|
|
@@ -997,19 +1009,89 @@
|
|
|
997
1009
|
</div>
|
|
998
1010
|
</div>
|
|
999
1011
|
|
|
1012
|
+
<!-- #2230: the video a run rendered (a Blender construction sequence, a fly-through, a turntable), played in
|
|
1013
|
+
the app. No native chrome: the <video> carries no `controls`; web/media-player.js draws the controls. -->
|
|
1014
|
+
<div class="modal-backdrop media-backdrop" id="media-modal" role="dialog" aria-modal="true" aria-labelledby="media-title" aria-describedby="media-sub">
|
|
1015
|
+
<div class="modal report-viewer media-viewer">
|
|
1016
|
+
<div class="report-head">
|
|
1017
|
+
<div class="report-titles">
|
|
1018
|
+
<div class="modal-title" id="media-title">Video</div>
|
|
1019
|
+
<div class="modal-sub" id="media-sub"></div>
|
|
1020
|
+
</div>
|
|
1021
|
+
<div class="report-actions">
|
|
1022
|
+
<button data-command-id="shell.media-open-file" id="media-open-file" type="button" class="ghost" data-tip="Open the video in your default player">⧉ Open file</button>
|
|
1023
|
+
<button data-command-id="shell.media-reveal" id="media-reveal" type="button" class="ghost" data-tip="Show the video in its folder">▤ Reveal in folder</button>
|
|
1024
|
+
<button data-command-id="shell.dialog-close#the video" id="media-close" type="button" aria-label="Close" data-tip="Close (Esc)">×</button>
|
|
1025
|
+
</div>
|
|
1026
|
+
</div>
|
|
1027
|
+
<div class="media-stage" id="media-stage" data-state="loading">
|
|
1028
|
+
<video id="media-video" playsinline preload="metadata"></video>
|
|
1029
|
+
<div class="media-status" id="media-status" role="status" aria-live="polite" hidden></div>
|
|
1030
|
+
</div>
|
|
1031
|
+
<div class="media-list" id="media-list" hidden></div>
|
|
1032
|
+
<div class="media-controls is-loading" id="media-controls">
|
|
1033
|
+
<button data-command-id="shell.media-play" id="media-play" type="button" class="media-btn" aria-label="Play" data-tip="Play (Space)" disabled>▶</button>
|
|
1034
|
+
<span class="media-time" id="media-time">0:00</span>
|
|
1035
|
+
<span class="media-seek-wrap"><input data-command-id="shell.media-seek" id="media-seek" type="range" min="0" max="0" step="0.04" value="0" aria-label="Position in the video" disabled></span>
|
|
1036
|
+
<span class="media-time" id="media-total">0:00</span>
|
|
1037
|
+
<button data-command-id="shell.media-loop" id="media-loop" type="button" class="media-btn" aria-pressed="false" aria-label="Loop" data-tip="Loop is off (L)" disabled>⟳</button>
|
|
1038
|
+
</div>
|
|
1039
|
+
</div>
|
|
1040
|
+
</div>
|
|
1041
|
+
|
|
1000
1042
|
<!-- HTML Viewer — renders the report HTML an exec node returned, in-app.
|
|
1001
1043
|
Double-click a report node on the canvas to run it and open this. -->
|
|
1044
|
+
<!-- Page viewer (#2262). The Page is NEVER put into this document: the frame loads
|
|
1045
|
+
/pages-content/…, which the server sends with `sandbox allow-scripts` in its own policy header,
|
|
1046
|
+
so the Page has an opaque origin and cannot reach FloLess. The iframe's own sandbox repeats that
|
|
1047
|
+
(belt and braces) and grants nothing more — no same-origin, pop-ups, forms or top navigation.
|
|
1048
|
+
Asks from the Page (open a link, allow a blocked site) appear in the banner ABOVE the frame,
|
|
1049
|
+
drawn by FloLess, never over the Page's own content. pages.js drives it. -->
|
|
1050
|
+
<div class="modal-backdrop report-backdrop page-viewer-backdrop" id="page-viewer" role="dialog" aria-modal="true" aria-labelledby="pv-title" aria-describedby="pv-sub">
|
|
1051
|
+
<div class="modal report-viewer page-viewer">
|
|
1052
|
+
<div class="report-head pv-head">
|
|
1053
|
+
<div class="report-titles">
|
|
1054
|
+
<div class="pv-title-row">
|
|
1055
|
+
<div class="modal-title" id="pv-title">Page</div>
|
|
1056
|
+
<span class="pg-ai-badge" id="pv-ai" tabindex="0" hidden data-tip="Made by AI.">AI-made</span>
|
|
1057
|
+
<span class="pv-info" tabindex="0" data-tip="This Page runs on its own. It can’t reach FloLess or your files." aria-label="This Page runs on its own. It can’t reach FloLess or your files.">ⓘ</span>
|
|
1058
|
+
</div>
|
|
1059
|
+
<div class="modal-sub" id="pv-sub" role="status"></div>
|
|
1060
|
+
</div>
|
|
1061
|
+
<div class="report-actions">
|
|
1062
|
+
<div class="pv-anchor">
|
|
1063
|
+
<button data-command-id="shell.page-version" id="pv-version" type="button" class="ghost pv-version" aria-haspopup="listbox" aria-expanded="false" aria-controls="pv-version-pop">Version 1 of 1</button>
|
|
1064
|
+
<div class="wf-popover pv-pop" id="pv-version-pop" role="listbox" aria-label="Versions of this Page" hidden></div>
|
|
1065
|
+
</div>
|
|
1066
|
+
<span class="pv-allowed" id="pv-allowed" hidden></span>
|
|
1067
|
+
<div class="pv-anchor">
|
|
1068
|
+
<button data-command-id="shell.page-sites" id="pv-sites" type="button" class="ghost" aria-haspopup="true" aria-expanded="false" aria-controls="pv-sites-pop" data-tip="Sites this Page may load">⋯</button>
|
|
1069
|
+
<div class="wf-popover pv-pop pv-sites-pop" id="pv-sites-pop" hidden></div>
|
|
1070
|
+
</div>
|
|
1071
|
+
<button data-command-id="shell.page-fullscreen" id="pv-full" type="button" class="ghost" aria-pressed="false" data-tip="Fill the window with this Page">⤢ Full screen</button>
|
|
1072
|
+
<button data-command-id="shell.page-delete" id="pv-delete" type="button" class="ghost pv-delete" data-tip="Delete this Page and all its versions">Delete</button>
|
|
1073
|
+
<button data-command-id="shell.dialog-close#the Page" id="pv-close" type="button" data-tip="Close">×</button>
|
|
1074
|
+
</div>
|
|
1075
|
+
</div>
|
|
1076
|
+
<div class="pv-banner" id="pv-banner" role="region" aria-label="This Page needs your decision" aria-live="polite" hidden></div>
|
|
1077
|
+
<div class="report-stage pv-stage" id="pv-stage">
|
|
1078
|
+
<div class="pv-loading" id="pv-loading" role="status" hidden>Opening Page…</div>
|
|
1079
|
+
<iframe id="pv-frame" sandbox="allow-scripts" title="Page"></iframe>
|
|
1080
|
+
</div>
|
|
1081
|
+
</div>
|
|
1082
|
+
</div>
|
|
1002
1083
|
<div class="modal-backdrop report-backdrop" id="report-modal" role="dialog" aria-modal="true" aria-labelledby="report-title" aria-describedby="report-sub">
|
|
1003
1084
|
<div class="modal report-viewer">
|
|
1004
1085
|
<div class="report-head">
|
|
1005
1086
|
<div class="report-titles">
|
|
1006
1087
|
<div class="modal-title" id="report-title">HTML Viewer</div>
|
|
1007
|
-
<div class="modal-sub" id="report-sub">Rendered from the live run — never composed by the UI.</div>
|
|
1088
|
+
<div class="modal-sub" id="report-sub" role="status">Rendered from the live run — never composed by the UI.</div>
|
|
1008
1089
|
</div>
|
|
1009
1090
|
<div class="report-actions">
|
|
1010
|
-
<button data-command-id="shell.report-stop" id="report-stop" class="ghost report-stop" hidden data-tip="Stop
|
|
1091
|
+
<button data-command-id="shell.report-stop" id="report-stop" class="ghost report-stop" hidden data-tip="Stop this workflow run">■ Stop run</button>
|
|
1011
1092
|
<button data-command-id="shell.report-share" id="report-share" class="ghost" hidden data-tip="Share this report as a link anyone can view — hosted on floless.io">↗ Share</button>
|
|
1012
1093
|
<button data-command-id="shell.report-download" id="report-download" class="ghost" hidden data-tip="Download the complete read-only model property report">↓ Download complete report</button>
|
|
1094
|
+
<button data-command-id="shell.report-watch" id="report-watch" type="button" class="ghost" hidden data-tip="Play the video this run rendered">▶ Watch video</button>
|
|
1013
1095
|
<button data-command-id="shell.report-open-file" id="report-open-file" class="ghost" hidden data-tip="Open the saved file in its default app">⧉ Open file</button>
|
|
1014
1096
|
<button data-command-id="shell.report-reveal-file" id="report-reveal-file" class="ghost" hidden data-tip="Show the saved file in its folder">▤ Reveal in folder</button>
|
|
1015
1097
|
<button data-command-id="shell.report-open" id="report-open" class="ghost" data-tip="Open the report in a new browser tab">↗ Open</button>
|
|
@@ -1253,6 +1335,11 @@
|
|
|
1253
1335
|
<div class="sr-only wsg-live" id="approval-review-live" role="status" aria-live="polite" aria-atomic="true"></div>
|
|
1254
1336
|
<div class="approval-impact" id="approval-review-impact"></div>
|
|
1255
1337
|
<div class="revreview-body approval-review-body" id="approval-review-body"></div>
|
|
1338
|
+
<div class="approval-revision-note modal-field" id="approval-revision-note" hidden>
|
|
1339
|
+
<label for="approval-revision-note-text">Revision note (optional)</label>
|
|
1340
|
+
<textarea id="approval-revision-note-text" data-command-id="shell.revision-note-text" rows="3" placeholder="What changed, and why?" aria-describedby="approval-revision-note-help"></textarea>
|
|
1341
|
+
<div id="approval-revision-note-help" class="field-help">Shown in History. This note can be edited later; approved model content stays unchanged.</div>
|
|
1342
|
+
</div>
|
|
1256
1343
|
<div class="approval-review-footer">
|
|
1257
1344
|
<div class="rev-counts" id="approval-review-counts" role="status" aria-live="polite"></div>
|
|
1258
1345
|
<div class="modal-actions">
|
|
@@ -1419,9 +1506,11 @@
|
|
|
1419
1506
|
<!-- #2060: Done lists the Requests that left the queue, so each one's conversation stays reachable. -->
|
|
1420
1507
|
<div class="tabs req-view" id="requests-view" role="tablist" aria-label="Queued or done requests">
|
|
1421
1508
|
<button data-command-id="shell.requests-view#queued" type="button" data-reqview="queued" class="active" role="tab" aria-selected="true" aria-controls="requests-list" id="requests-view-queued">Queued</button>
|
|
1422
|
-
<button data-command-id="shell.requests-view#done" type="button" data-reqview="done" role="tab" aria-selected="false" aria-controls="requests-list" id="requests-view-done" data-tip="Requests that left the queue in the last 30 days">Done</button>
|
|
1509
|
+
<button data-command-id="shell.requests-view#done" type="button" data-reqview="done" role="tab" aria-selected="false" aria-controls="requests-list" id="requests-view-done" data-tip="Requests that left the queue in the last 30 days, and the ones you set aside">Done</button>
|
|
1423
1510
|
</div>
|
|
1424
1511
|
<div class="req-guidance" id="requests-guidance" role="status" aria-live="polite" aria-atomic="true" hidden></div>
|
|
1512
|
+
<!-- #2185: the one-time tidy of old requests: how many, and Undo. Written by aware.js. -->
|
|
1513
|
+
<div class="req-backlog" id="requests-backlog" role="status" hidden></div>
|
|
1425
1514
|
<span class="sr-only" id="requests-action-status" role="status" aria-live="polite" aria-atomic="true"></span>
|
|
1426
1515
|
<!-- Scope + search. The scope row is hidden when nothing is open to scope TO (the
|
|
1427
1516
|
Workspaces landing, or Workflows with no workflow selected) — a filter with one
|
|
@@ -1433,7 +1522,7 @@
|
|
|
1433
1522
|
<input data-command-id="shell.request-search" id="requests-search" class="lib-search req-search" type="text" placeholder="Search by project, workflow, or what you asked for" aria-label="Search requests">
|
|
1434
1523
|
<div class="requests-list" id="requests-list"></div>
|
|
1435
1524
|
<div class="modal-actions">
|
|
1436
|
-
<span class="req-done-note" id="requests-done-note" hidden>
|
|
1525
|
+
<span class="req-done-note" id="requests-done-note" hidden>Finished in the last 30 days, plus everything you set aside. Nothing here runs again.</span>
|
|
1437
1526
|
<button data-command-id="shell.request-clear" id="requests-clear">Clear all</button>
|
|
1438
1527
|
<button data-command-id="shell.request-copy" id="requests-copy">Copy available</button>
|
|
1439
1528
|
<button data-command-id="shell.dialog-close#the requests list" id="requests-close" class="primary">Close</button>
|
|
@@ -1812,14 +1901,19 @@
|
|
|
1812
1901
|
<script src="leave-guard.js"></script>
|
|
1813
1902
|
<script src="flo.js"></script>
|
|
1814
1903
|
<script src="flo-avatar.js"></script>
|
|
1904
|
+
<script src="run-progress.js"></script>
|
|
1905
|
+
<script src="run-strip.js"></script>
|
|
1906
|
+
<script src="media-player.js"></script>
|
|
1815
1907
|
<script src="aware.js"></script>
|
|
1816
1908
|
<script src="tool-updates.js"></script>
|
|
1817
1909
|
<script src="panels.js"></script>
|
|
1818
1910
|
<script src="filter-guidance.js"></script>
|
|
1819
1911
|
<script src="workspaces.js"></script>
|
|
1820
1912
|
<script src="left-pane.js"></script>
|
|
1913
|
+
<script src="chat-question-card.js"></script>
|
|
1821
1914
|
<script src="chat.js"></script>
|
|
1822
1915
|
<script src="agents.js"></script>
|
|
1916
|
+
<script src="pages.js"></script>
|
|
1823
1917
|
<script src="guide.js"></script>
|
|
1824
1918
|
<script src="connections.js"></script>
|
|
1825
1919
|
<script src="local-discovery.js"></script>
|
package/dist/web/instructor.js
CHANGED
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
commandId: raw,
|
|
727
727
|
instance: parts.instance,
|
|
728
728
|
instanceLabel: instanceLabel,
|
|
729
|
-
label: cmd.label ? fillInstance(cmd.label, parts.instance) : instanceLabel,
|
|
729
|
+
label: cmd.label ? fillInstance(cmd.label, el.getAttribute('data-command-instance-label') || parts.instance) : instanceLabel,
|
|
730
730
|
originSurface: origin,
|
|
731
731
|
}));
|
|
732
732
|
});
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
doubled or clashing determiner, or a fallback left in front of a noun. */
|
|
763
763
|
function fillInstance(text, instance, anyInstance) {
|
|
764
764
|
if (!text || text.indexOf('{instance}') === -1) return text;
|
|
765
|
-
if (instance) return text.replace(/\{instance\}/g, instance);
|
|
765
|
+
if (instance) return text.replace(/\{instance\}/g, function () { return instance; });
|
|
766
766
|
/* A quoted slot quotes a NAME ("Export IFC"); a stand-in is not a name, so it loses them. */
|
|
767
767
|
text = text.replace(/["“]\{instance\}["”]/g, '{instance}');
|
|
768
768
|
if (anyInstance) return text.replace(/\{instance\}/g, anyInstance);
|
|
@@ -856,15 +856,16 @@
|
|
|
856
856
|
// #2046: the ways into the Guide on the empty pages, and its first-launch question.
|
|
857
857
|
'Getting started', 'In the Guide question',
|
|
858
858
|
'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',
|
|
859
|
+
'In the project History', 'In the revision note', 'In the Pages list',
|
|
859
860
|
'On the workflow canvas', 'In workflow setup dialogs',
|
|
860
861
|
// The Informed by row sits at the top of the canvas column, so it is read right after the canvas.
|
|
861
862
|
// #1998: the approval notices sit above the canvas with the Informed by row.
|
|
862
863
|
'In the Needs you notice', 'In the morning briefing notice', 'In the Approval carried over row',
|
|
863
|
-
'In the Informed by row', 'In Set inputs',
|
|
864
|
+
'In the Informed by row', 'In the run progress strip', 'In Set inputs',
|
|
864
865
|
'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',
|
|
865
866
|
'In AI Chat', 'In AI Chat history', 'In AI Chat settings', 'In the node Inspect panel', 'In the Instructor strip',
|
|
866
867
|
'In the ≡ menu', 'In the account menu', 'In the footer',
|
|
867
|
-
'In the contract editor', 'In the report viewer', 'In the Knowledge Base viewer', 'In the guide',
|
|
868
|
+
'In the contract editor', 'In the report viewer', 'In the Page viewer', 'In the video player', 'In the Knowledge Base viewer', 'In the guide',
|
|
868
869
|
'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',
|
|
869
870
|
'In the Report an issue dialog', 'In the Build a tool dialog', 'In the Bake dialog', 'In the CAD send review',
|
|
870
871
|
'In the FloLess dialogs', 'On the FloLess has stopped screen',
|
|
@@ -882,7 +883,7 @@
|
|
|
882
883
|
'In the ⋯ menu — Snapping', 'In the ⋯ menu — Display', 'In the ⋯ menu — Detailing',
|
|
883
884
|
'In the ⋯ menu — Model checks', 'In the ⋯ menu — Coordinate system', 'In the ⋯ menu — Session',
|
|
884
885
|
'In the steel editor dialogs', 'In the Generate views dialog', 'In the Details dialog', 'In the RFI dialog',
|
|
885
|
-
'In the Connections dialog', 'In the reference-model dialogs', 'In the connection-import dialog',
|
|
886
|
+
'In the Connections dialog', 'In the Frames dialog', 'In the reference-model dialogs', 'In the connection-import dialog',
|
|
886
887
|
'In the confidence report', 'In the Ask AI panel', 'In the Ask AI dialog', 'In the Favourites dialog',
|
|
887
888
|
// the read-only Revit model editor
|
|
888
889
|
'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',
|
|
@@ -1053,7 +1054,7 @@
|
|
|
1053
1054
|
var label = document.createElement('span');
|
|
1054
1055
|
label.className = 'cmd-row-label';
|
|
1055
1056
|
// A template row has no instance, and its label must not show a reader the braces.
|
|
1056
|
-
label.textContent = fillInstance(cmd.label, cmd.instance, cmd.anyInstance);
|
|
1057
|
+
label.textContent = cmd.commandId ? cmd.label : fillInstance(cmd.label, cmd.instanceLabel || cmd.instance, cmd.anyInstance);
|
|
1057
1058
|
row.appendChild(label);
|
|
1058
1059
|
|
|
1059
1060
|
/* Where this command lives, for screen readers only. Arrow-key navigation
|
|
@@ -1305,7 +1306,7 @@
|
|
|
1305
1306
|
function describeCommand(cmd, carrier) {
|
|
1306
1307
|
var availability = carrierAvailability(carrier);
|
|
1307
1308
|
setFocusEntry({
|
|
1308
|
-
label: fillInstance(cmd.label, cmd.instance, cmd.anyInstance),
|
|
1309
|
+
label: cmd.commandId ? cmd.label : fillInstance(cmd.label, cmd.instance, cmd.anyInstance),
|
|
1309
1310
|
acts: cmd.actsOn ? fillInstance(cmd.actsOn, cmd.instanceLabel || cmd.instance, cmd.anyInstance) : null,
|
|
1310
1311
|
group: cmd.group,
|
|
1311
1312
|
key: cmd.key,
|
|
@@ -1523,13 +1524,13 @@
|
|
|
1523
1524
|
|
|
1524
1525
|
function openSheet() {
|
|
1525
1526
|
if (!$sheet || sheetOpen || !enabled) return false;
|
|
1526
|
-
/* Requests
|
|
1527
|
+
/* Requests and the Page viewer have runtime-built controls to browse in this sheet.
|
|
1527
1528
|
It is covered (inert + aria-hidden) while the sheet owns the screen, and app.css gives the
|
|
1528
1529
|
sheet the explicit upper tier. Every other dialog still refuses stacking: its controls are
|
|
1529
1530
|
already explained in place and opening above it would obscure an unfinished decision. */
|
|
1530
1531
|
var shownDialogs = Array.prototype.slice.call(document.querySelectorAll('.modal-backdrop.show'))
|
|
1531
1532
|
.filter(function (modal) { return modal !== $sheet; });
|
|
1532
|
-
if (shownDialogs.some(function (modal) { return modal.id !== 'requests-modal'; })) return false;
|
|
1533
|
+
if (shownDialogs.some(function (modal) { return modal.id !== 'requests-modal' && modal.id !== 'page-viewer'; })) return false;
|
|
1533
1534
|
|
|
1534
1535
|
returnFocusTo = document.activeElement;
|
|
1535
1536
|
sheetOpen = true;
|
package/dist/web/left-pane.js
CHANGED
|
@@ -79,6 +79,13 @@
|
|
|
79
79
|
let selectAnchor = null; // the list row last clicked without Shift: where a Shift-click's range starts
|
|
80
80
|
let pendingSelectIds = null; // what the last click asked for, until the editor answers: a quick second Ctrl-click builds on it
|
|
81
81
|
const pendingActions = new Map();
|
|
82
|
+
// #2255: AI view commands sent to the editor, by request id, waiting for its report.
|
|
83
|
+
const pendingViews = new Map();
|
|
84
|
+
/** The editor went away or changed: its outstanding actions will never answer. A view command it may have applied ends unconfirmed. */
|
|
85
|
+
function dropPendingActions() {
|
|
86
|
+
for (const view of pendingViews.values()) view.reject(Object.assign(new Error('The model view closed before it answered.'), { dispatched: true }));
|
|
87
|
+
pendingViews.clear(); pendingActions.clear();
|
|
88
|
+
}
|
|
82
89
|
let panelShown = null; // the panel tab the editor was last told it is showing (null: none)
|
|
83
90
|
let chosenByPerson = false; // true only while a click on a tab renders: the editor is told a person chose it
|
|
84
91
|
let displacedTab = null; // a chosen tab the snapshot stopped offering (a 3D-only tab while in 2D); it comes back with it
|
|
@@ -163,12 +170,12 @@
|
|
|
163
170
|
function sideBySide() { return columnsWanted() && presented('narrative') && presented('model'); }
|
|
164
171
|
function minimumNarrativeRatio() { return (290 + 5.5) / stack.clientHeight * 100; }
|
|
165
172
|
// The AI Chat section is never shorter than the rows of its chat that do not shrink (#1515): its
|
|
166
|
-
// heading and controls, the chat toolbar, the recovery
|
|
173
|
+
// heading and controls, the chat toolbar, the recovery row and the composer (attachments included). The
|
|
167
174
|
// conversation feed, the ⚙ strip and the approval tray are the rows that give height back — chat.css
|
|
168
175
|
// declares exactly those minmax(0, …), and chat-ui.test.ts holds this list to that template. Below
|
|
169
176
|
// this floor the composer would be pushed out through the host's overflow: hidden edge, leaving the
|
|
170
177
|
// panel with no message box at all. It is measured, not a constant: the composer grows with a long
|
|
171
|
-
// message
|
|
178
|
+
// message or attachments above it, and the disclosure wraps with the panel's width. Model
|
|
172
179
|
// yields height to it, down to Model's own minimum and never further: a window too short for both
|
|
173
180
|
// is a cue to hide one.
|
|
174
181
|
const CHAT_YIELDING_ROWS = [1, 2, 5];
|
|
@@ -1009,12 +1016,14 @@
|
|
|
1009
1016
|
state.revision = data.revision;
|
|
1010
1017
|
if (data.state === 'failed') {
|
|
1011
1018
|
state.modelAvailable = false; state.snapshot = null; state.datasetKey = null;
|
|
1012
|
-
|
|
1019
|
+
dropPendingActions(); resetPanelFrame(); reflect();
|
|
1013
1020
|
}
|
|
1014
1021
|
return;
|
|
1015
1022
|
}
|
|
1016
1023
|
if (data.type === 'action-result') {
|
|
1017
1024
|
state.revision = data.revision;
|
|
1025
|
+
const view = pendingViews.get(data.requestId);
|
|
1026
|
+
if (view) { pendingViews.delete(data.requestId); view.resolve({ ok: data.ok === true, ran: data.ran !== false, result: data.result ?? null }); return; }
|
|
1018
1027
|
const pending = pendingActions.get(data.requestId); pendingActions.delete(data.requestId);
|
|
1019
1028
|
if (pending?.row?.isConnected) pending.row.removeAttribute('aria-busy');
|
|
1020
1029
|
if (pending?.kind === 'expand') {
|
|
@@ -1113,7 +1122,7 @@
|
|
|
1113
1122
|
// Everything the departing editor told us goes, and its controls leave with the panel frame.
|
|
1114
1123
|
function forgetModel() {
|
|
1115
1124
|
state.generation++; state.revision = -1; state.snapshot = null; state.datasetKey = null; state.modelAvailable = false;
|
|
1116
|
-
revealSequence++; pendingRevealId = null;
|
|
1125
|
+
revealSequence++; pendingRevealId = null; dropPendingActions(); resetPanelFrame(); reflect();
|
|
1117
1126
|
}
|
|
1118
1127
|
// A model frame loaded another document. Forgotten at once when the old one unloads — an editor reloads itself
|
|
1119
1128
|
// whenever the AI edits the model, and its moved controls would otherwise sit dead until the new page loads.
|
|
@@ -1127,8 +1136,36 @@
|
|
|
1127
1136
|
}
|
|
1128
1137
|
frame.addEventListener('load', onModelFrameLoad);
|
|
1129
1138
|
|
|
1139
|
+
/** #2255: the model view an AI view command may be applied to, or null unless one is shown, has finished loading and reports a complete target. */
|
|
1140
|
+
function viewTarget() {
|
|
1141
|
+
if (!state.modelAvailable || !modelVisible()) return null;
|
|
1142
|
+
const viewer = state.snapshot?.viewer;
|
|
1143
|
+
const text = (value) => typeof value === 'string' && value.length > 0 && value.length <= 200;
|
|
1144
|
+
if (!viewer || viewer.loading !== false || !text(viewer.projectId) || !text(viewer.source) || !text(viewer.revision)
|
|
1145
|
+
|| !text(viewer.sourceDigest) || !text(viewer.viewerSessionId)) return null;
|
|
1146
|
+
return { projectId: viewer.projectId, source: viewer.source, revision: viewer.revision, sourceDigest: viewer.sourceDigest, viewerSessionId: viewer.viewerSessionId };
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Send a claimed AI view command to the editor. Resolves with its answer ({ ok, ran, result }); rejects with
|
|
1150
|
+
* `dispatched: false` when it could not be sent (nothing changed), or `dispatched: true` when it was sent and no answer
|
|
1151
|
+
* came: the view went away first, or `timeoutMs` passed.
|
|
1152
|
+
*/
|
|
1153
|
+
function applyView({ command, target, timeoutMs = 9000 }) {
|
|
1154
|
+
const requestId = sendAction({ action: 'view', command, target });
|
|
1155
|
+
if (!requestId) return Promise.reject(Object.assign(new Error('The model view is not open.'), { dispatched: false }));
|
|
1156
|
+
return new Promise((resolve, reject) => {
|
|
1157
|
+
const timer = setTimeout(() => {
|
|
1158
|
+
if (!pendingViews.delete(requestId)) return;
|
|
1159
|
+
reject(Object.assign(new Error('The model view did not answer in time.'), { dispatched: true }));
|
|
1160
|
+
}, timeoutMs);
|
|
1161
|
+
pendingViews.set(requestId, { resolve: (value) => { clearTimeout(timer); resolve(value); }, reject: (error) => { clearTimeout(timer); reject(error); } });
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1130
1165
|
window.flolessLeftPane = Object.freeze({
|
|
1131
1166
|
readSelection,
|
|
1167
|
+
viewTarget,
|
|
1168
|
+
applyView,
|
|
1132
1169
|
// AI Chat stored a question about model objects: the live editor reads its links again.
|
|
1133
1170
|
chatLinksChanged() { if (state.modelAvailable) send({ type: 'chat-links-changed' }); },
|
|
1134
1171
|
showSection(key) {
|
|
@@ -1153,7 +1190,7 @@
|
|
|
1153
1190
|
if (!!visible !== state.workspaceModelVisible) state.generation++;
|
|
1154
1191
|
state.workspaceModelVisible = !!visible;
|
|
1155
1192
|
if (visible) hello();
|
|
1156
|
-
else { sessionVisible.model = false; state.modelAvailable = false; state.snapshot = null; state.datasetKey = null; state.revision = -1; revealSequence++; pendingRevealId = null;
|
|
1193
|
+
else { sessionVisible.model = false; state.modelAvailable = false; state.snapshot = null; state.datasetKey = null; state.revision = -1; revealSequence++; pendingRevealId = null; dropPendingActions(); resetPanelFrame(); reflect(); }
|
|
1157
1194
|
},
|
|
1158
1195
|
// The model frame is being replaced (another project, or a reload from server truth). A new
|
|
1159
1196
|
// generation disowns everything the departing editor sends; the next document's load says hello.
|
|
@@ -1191,7 +1228,7 @@
|
|
|
1191
1228
|
if (chatFeed) new MutationObserver(refitFloor).observe(chatFeed, { childList: true });
|
|
1192
1229
|
// The AI Chat floor moves with the chat's rows that do not shrink and with the stack's own height (the
|
|
1193
1230
|
// Instructor strip opening, not only a window resize), so the split is re-sized whenever the composer,
|
|
1194
|
-
// the recovery
|
|
1231
|
+
// the recovery row, the attachments inside the composer, or the stack changes size: a message growing to six lines at the
|
|
1195
1232
|
// minimum takes height from Model instead of pushing the composer out. None of these, nor the three
|
|
1196
1233
|
// below, is sized by the split, so re-sizing it cannot feed back into this. (Row 4 also holds the offscreen-activity
|
|
1197
1234
|
// badge, which follows the feed's height; chat.js only shows it with 88px of feed to spare, so it is
|