@floless/app 0.167.0 → 0.169.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 (277) hide show
  1. package/autostart.mjs +169 -63
  2. package/cli-actions.mjs +8 -1
  3. package/desktop-shell.mjs +335 -0
  4. package/dist/floless-server.cjs +73121 -55759
  5. package/dist/schemas/steel.model.v2.schema.json +2 -1
  6. package/dist/skills/floless-app-onboarding/SKILL.md +13 -4
  7. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +3 -0
  8. package/dist/skills/floless-app-rfi/SKILL.md +4 -2
  9. package/dist/skills/floless-app-steel-takeoff/SKILL.md +21 -2
  10. package/dist/skills/floless-app-ui/SKILL.md +2 -2
  11. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  12. package/dist/templates/college-phase-exporter.flo +7 -2
  13. package/dist/templates/trimble-list-projects.flo +10 -2
  14. package/dist/web/agent-steps.js +2 -2
  15. package/dist/web/agents.js +50 -14
  16. package/dist/web/app.css +209 -11
  17. package/dist/web/app.js +99 -16
  18. package/dist/web/aware-update-client.js +14 -6
  19. package/dist/web/aware.js +583 -69
  20. package/dist/web/chat.css +12 -1
  21. package/dist/web/chat.js +627 -96
  22. package/dist/web/commands-drawing-check.js +3 -0
  23. package/dist/web/commands-filter.js +5 -5
  24. package/dist/web/commands-shell.js +283 -14
  25. package/dist/web/commands-steel.js +9 -2
  26. package/dist/web/commands-vector.js +69 -0
  27. package/dist/web/desktop-window.js +435 -0
  28. package/dist/web/drawing-check-editor.html +10 -0
  29. package/dist/web/drawing-check-editor.js +515 -187
  30. package/dist/web/failure-copy.js +33 -2
  31. package/dist/web/flo-3d.js +310 -0
  32. package/dist/web/flo-card.js +72 -0
  33. package/dist/web/guide.js +78 -10
  34. package/dist/web/index.html +90 -10
  35. package/dist/web/instructor.js +4 -1
  36. package/dist/web/leave-guard.js +347 -14
  37. package/dist/web/model-editor-steel-adapter.js +41 -1
  38. package/dist/web/model-viewport-toolbar.js +11 -0
  39. package/dist/web/pages.js +21 -14
  40. package/dist/web/panels.js +5 -2
  41. package/dist/web/pdf-view.js +421 -0
  42. package/dist/web/project-history.js +3 -2
  43. package/dist/web/project-modules.js +5 -3
  44. package/dist/web/project-reconciliation.js +1 -1
  45. package/dist/web/project-rfis.js +4 -2
  46. package/dist/web/project-workflows.js +8 -4
  47. package/dist/web/reference-geometry-worker.js +11 -2
  48. package/dist/web/renderers.js +6 -0
  49. package/dist/web/report-csp.js +68 -0
  50. package/dist/web/revit-editor.html +1 -0
  51. package/dist/web/revit-editor.js +37 -8
  52. package/dist/web/run-history.js +2 -3
  53. package/dist/web/shared-prefs.js +364 -0
  54. package/dist/web/steel-3d-flo.js +309 -0
  55. package/dist/web/steel-3d-view.js +159 -0
  56. package/dist/web/steel-editor.html +329 -47
  57. package/dist/web/steel-filter-flo.js +74 -18
  58. package/dist/web/steel-filter.html +22 -6
  59. package/dist/web/tab-signal.js +36 -1
  60. package/dist/web/tekla-editor.html +1 -0
  61. package/dist/web/terminal-requests.js +78 -0
  62. package/dist/web/tool-updates.js +160 -38
  63. package/dist/web/vector-3d.html +14 -3
  64. package/dist/web/vector-editor.html +60 -10
  65. package/dist/web/vendor/README.md +23 -0
  66. package/dist/web/vendor/pdfjs/LICENSE +177 -0
  67. package/dist/web/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  68. package/dist/web/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  69. package/dist/web/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
  70. package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  71. package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  72. package/dist/web/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
  73. package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  74. package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  75. package/dist/web/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  76. package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  77. package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  78. package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  79. package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  80. package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  81. package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  82. package/dist/web/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
  83. package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  84. package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  85. package/dist/web/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
  86. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  87. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  88. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  89. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  90. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  91. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  92. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  93. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  94. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  95. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  96. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  97. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  98. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  99. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  100. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  101. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  102. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  103. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  104. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  105. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  106. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  107. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  108. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  109. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  110. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  111. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  112. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  113. package/dist/web/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
  114. package/dist/web/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
  115. package/dist/web/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  116. package/dist/web/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  117. package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  118. package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  119. package/dist/web/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  120. package/dist/web/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  121. package/dist/web/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  122. package/dist/web/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  123. package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  124. package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  125. package/dist/web/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  126. package/dist/web/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  127. package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  128. package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  129. package/dist/web/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
  130. package/dist/web/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
  131. package/dist/web/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
  132. package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  133. package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  134. package/dist/web/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
  135. package/dist/web/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  136. package/dist/web/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  137. package/dist/web/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
  138. package/dist/web/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
  139. package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  140. package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  141. package/dist/web/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  142. package/dist/web/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  143. package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  144. package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  145. package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  146. package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  147. package/dist/web/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
  148. package/dist/web/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
  149. package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  150. package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  151. package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  152. package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  153. package/dist/web/vendor/pdfjs/cmaps/H.bcmap +0 -0
  154. package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  155. package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  156. package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  157. package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  158. package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  159. package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  160. package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  161. package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  162. package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  163. package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  164. package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  165. package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  166. package/dist/web/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
  167. package/dist/web/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
  168. package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  169. package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  170. package/dist/web/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
  171. package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  172. package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  173. package/dist/web/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
  174. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  175. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  176. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  177. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  178. package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  179. package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  180. package/dist/web/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
  181. package/dist/web/vendor/pdfjs/cmaps/LICENSE +36 -0
  182. package/dist/web/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
  183. package/dist/web/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
  184. package/dist/web/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  185. package/dist/web/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  186. package/dist/web/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
  187. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  188. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  189. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  190. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  191. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  192. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  193. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  194. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  195. package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  196. package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  197. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  198. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  199. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  200. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  201. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  202. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  203. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  204. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  205. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  206. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  207. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  208. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  209. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  210. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  211. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  212. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  213. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  214. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  215. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  216. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  217. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  218. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  219. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  220. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  221. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  222. package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  223. package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  224. package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  225. package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  226. package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  227. package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  228. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  229. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  230. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  231. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  232. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  233. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  234. package/dist/web/vendor/pdfjs/cmaps/V.bcmap +0 -0
  235. package/dist/web/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  236. package/dist/web/vendor/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
  237. package/dist/web/vendor/pdfjs/iccs/LICENSE +116 -0
  238. package/dist/web/vendor/pdfjs/pdf.min.mjs +28 -0
  239. package/dist/web/vendor/pdfjs/pdf.worker.mjs +64908 -0
  240. package/dist/web/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  241. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  242. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  243. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  244. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  245. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  246. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  247. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  248. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  249. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  250. package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  251. package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
  252. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  253. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  254. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  255. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  256. package/dist/web/vendor/pdfjs/wasm/LICENSE_JBIG2 +196 -0
  257. package/dist/web/vendor/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
  258. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  259. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  260. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
  261. package/dist/web/vendor/pdfjs/wasm/LICENSE_QCMS +21 -0
  262. package/dist/web/vendor/pdfjs/wasm/jbig2.wasm +0 -0
  263. package/dist/web/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js +15 -0
  264. package/dist/web/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
  265. package/dist/web/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
  266. package/dist/web/vendor/pdfjs/wasm/qcms_bg.wasm +0 -0
  267. package/dist/web/workspace-root-management.js +1 -1
  268. package/dist/web/workspaces.js +792 -165
  269. package/home-env.mjs +28 -0
  270. package/install-path.mjs +59 -3
  271. package/launch-starting-page.mjs +35 -15
  272. package/launch.mjs +363 -51
  273. package/package.json +9 -8
  274. package/pin-home.mjs +6 -0
  275. package/post-update-marker.mjs +14 -0
  276. package/preferences-file.mjs +289 -0
  277. package/supervisor-lock.mjs +195 -0
@@ -13,7 +13,8 @@
13
13
  if (typeof bridge().api === 'function') return bridge().api(path);
14
14
  return fetch(path).then(async (res) => {
15
15
  const body = await res.json().catch(() => ({}));
16
- if (!res.ok || body.ok === false) { const err = new Error(body.error || `HTTP ${res.status}`); err.status = res.status; err.body = body; throw err; }
16
+ // #3097: the server's own sentence when it wrote one, else the shared one (this only reads); never "HTTP <status>".
17
+ if (!res.ok || body.ok === false) { const err = new Error(personText(body) || failureCopy({ status: res.status, body }, { retrySafe: true }).text); err.status = res.status; err.body = body; throw err; }
17
18
  return body;
18
19
  });
19
20
  };
@@ -308,7 +309,8 @@
308
309
  const post = (path, body) => fetch(path, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) })
309
310
  .then(async (res) => {
310
311
  const answer = await res.json().catch(() => ({}));
311
- if (!res.ok || answer.ok === false) { const err = new Error(answer.error || `HTTP ${res.status}`); err.status = res.status; err.body = answer; throw err; }
312
+ // #3097: a POST, so the shared sentence never tells the person to retry blindly; never "HTTP <status>".
313
+ if (!res.ok || answer.ok === false) { const err = new Error(personText(answer) || failureCopy({ status: res.status, body: answer }, { retrySafe: false }).text); err.status = res.status; err.body = answer; throw err; }
312
314
  return answer;
313
315
  });
314
316
 
@@ -342,9 +344,11 @@
342
344
  const code = error?.body?.code;
343
345
  const unreadable = code === 'source-unreadable';
344
346
  // The server's own sentence when it wrote one (it says what changed); a fixed one only when nothing answered.
345
- const said = typeof error?.body?.error === 'string' && error.body.error ? error.body.error : null;
347
+ const said = personText(error?.body) || null;
346
348
  if (!said) console.error('[project-workflows] a set-apart folder could not be answered', error);
347
- const message = unreadable ? null : said || 'FloLess couldn’t reach the server just now. Look at the list again before trying once more.';
349
+ const message = unreadable ? null : said || (error?.status
350
+ ? 'FloLess couldn’t tell whether that went through. Look at the list again before trying once more.'
351
+ : 'FloLess couldn’t reach the server just now. Look at the list again before trying once more.');
348
352
  if (!ctx.alive()) return;
349
353
  ctx.setRow(id, { unreadable: unreadable || !!ctx.rows()[id]?.unreadable, error: message });
350
354
  ctx.repaint();
@@ -171,9 +171,13 @@ self.onmessage = async (event) => {
171
171
  try {
172
172
  const response = await fetch(message.url, { signal: controller.signal });
173
173
  const contentType = (response.headers.get('content-type') || '').split(';')[0].trim().toLowerCase();
174
+ // #3097: a worker cannot load failure-copy.js, so it never writes the sentence a person reads. It posts FACTS —
175
+ // the status, the server's own JSON when there is some, or a `failure` kind — and the page says them in FloLess
176
+ // words (steel-editor.html referenceFailureReason). What a developer needs rides in `diagnostic`, for the console.
174
177
  if (!response.ok || contentType !== TYPE) {
175
178
  const data = await response.json().catch(() => ({
176
- error: response.ok
179
+ failure: 'unreadable',
180
+ diagnostic: response.ok
177
181
  ? `reference geometry had content type “${contentType || 'missing'}”, expected “${TYPE}”`
178
182
  : `the server answered ${response.status} without a readable error`,
179
183
  }));
@@ -186,9 +190,14 @@ self.onmessage = async (event) => {
186
190
  self.postMessage({ id: message.id, ok: true, data: decoded }, transfer);
187
191
  } catch (error) {
188
192
  const corrupt = decoding || error?.referenceBinaryCorrupt === true;
193
+ // No answer at all (the fetch was refused or stopped) is a lost connection; bytes that arrived but could not be
194
+ // read whole (a cut-off body, an unknown layout) are an unreadable answer; complete bytes that fail their own
195
+ // checks are a corrupt cache, the one case the page rebuilds.
196
+ const lost = !corrupt && (error?.name === 'AbortError' || (error?.name === 'TypeError' && /fetch|network|load failed/i.test(String(error?.message))));
189
197
  self.postMessage({ id: message.id, ok: false, status: corrupt ? 422 : 0, data: {
190
198
  ...(corrupt ? { code: 'reference-binary-corrupt' } : {}),
191
- error: error?.message || 'could not decode reference geometry',
199
+ failure: corrupt ? 'corrupt' : lost ? 'connection' : 'unreadable',
200
+ diagnostic: error?.message || 'could not decode reference geometry',
192
201
  } });
193
202
  } finally { controllers.delete(message.id); }
194
203
  };
@@ -27,6 +27,12 @@ window.CONTRACT_RENDERERS = {
27
27
  // Local read-only 3D reconstruction viewer (views-to-scene) — NOT the AWARE exporter chain
28
28
  // (`scene`), which only steel supports; extrusion bodies render floless-side only for now.
29
29
  viewerUrl: (appId) => '/vector-3d.html?app=' + encodeURIComponent(appId),
30
+ // What the shell's close question calls it (#3143) — the same name the leave guard uses.
31
+ name: 'the drawing editor',
32
+ // It autosaves to the server and keeps no copy on this computer, so closing the overlay over a
33
+ // write that is unfinished, failed or refused as a conflict loses those edits: Close asks first.
34
+ // (The steel editor keeps such edits as a local draft, so it does not set this.)
35
+ asksBeforeClose: true,
30
36
  },
31
37
  };
32
38
 
@@ -0,0 +1,68 @@
1
+ /**
2
+ * The report viewer's own content rules (#3130, audit 1 F3).
3
+ *
4
+ * A static report is painted into `#report-frame` through `srcdoc`. That frame has no `allow-scripts`, but nothing else
5
+ * limited what the report could ask for: a picture or stylesheet at any `http:` address — FloLess's own loopback API
6
+ * included, which the frame's `allow-same-origin` makes a same-origin request — a form, a `<base>`. `withReportCsp` puts
7
+ * the policy FloLess already gives a report's browser copy (#2476, `INERT_REPORT_CSP` in server/report-files-inert.ts) at
8
+ * the very top of the report: no script, no form, no `<base>`, nothing from FloLess or any `http:` address, while pictures,
9
+ * styles, fonts and media from `data:` or `https:` keep working as the report was written. A report cannot loosen it — a
10
+ * second policy only narrows.
11
+ *
12
+ * `openDocument` is what ↗ Open shows in a new tab. It used to be the report itself as a blob: URL, and a blob: URL has
13
+ * the ORIGIN OF THE PAGE THAT MADE IT — so the report ran as FloLess, and any script in it (the interactive 3D view runs
14
+ * scripts by design) could call the local API as the app. Now the tab is always a script-free page holding the report in
15
+ * a sandboxed frame with no `allow-same-origin`, so the browser itself keeps the report away from FloLess: the policy
16
+ * cannot stop a `<meta http-equiv="refresh">` navigating an unsandboxed tab, and no parse of the report on FloLess's side
17
+ * can be sure to find one the way the browser does (Codex, PR review), but a sandbox stops it whatever the markup.
18
+ * The cost: printing that tab prints only the frame's one screen (follow-up listed in epic #3137).
19
+ *
20
+ * Loaded as a classic script before aware.js; tested by server/report-csp-ui.test.ts.
21
+ */
22
+ (function (root) {
23
+ 'use strict';
24
+
25
+ var POLICY = "default-src 'none'; img-src data: https:; style-src 'unsafe-inline' https:; font-src data: https:; media-src data: https:; form-action 'none'; base-uri 'none'";
26
+ var META = '<meta http-equiv="Content-Security-Policy" content="' + POLICY + '">';
27
+ // Whether the report asks for standards mode. This only ever chooses the rendering mode, never where the policy goes:
28
+ // the policy is the first thing in the document either way, ahead of anything the report says, so no markup in the
29
+ // report — a comment the browser closes early, a `>` inside a quoted doctype — can put an element before it.
30
+ var LOOKS_LIKE_DOCTYPE = /^\s*(?:<!--[\s\S]*?-->\s*)*<!doctype/i;
31
+
32
+ function withReportCsp(html) {
33
+ var text = String(html == null ? '' : html).replace(/^/, '');
34
+ // With a doctype, ours comes first (the report's own, now later, is ignored by the parser): a policy placed before a
35
+ // doctype would put the report into quirks mode. Without one the report keeps the mode it always had.
36
+ return (LOOKS_LIKE_DOCTYPE.test(text) ? '<!doctype html>' : '') + META + text;
37
+ }
38
+
39
+ function escapeAttr(value) {
40
+ return String(value).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
41
+ }
42
+
43
+ function page(title, frame) {
44
+ return '<!doctype html><html><head><meta charset="utf-8"><title>' + escapeAttr(title) + '</title>'
45
+ + '<style>html,body{margin:0;height:100%}iframe{display:block;border:0;width:100%;height:100%}</style></head><body>'
46
+ + frame + '</body></html>';
47
+ }
48
+
49
+ /** What ↗ Open puts in a new tab: a page with no script and no policy of its own (a frame inherits its parent's, which
50
+ * would stop the 3D view's scripts), holding the report in an opaque-origin frame. A static report goes in like
51
+ * #report-frame, with its policy first, but without `allow-same-origin` — no script, no automatic navigation, links
52
+ * still open in a new tab. The interactive 3D view goes in like #report-frame-3d, as a `data:` frame with only
53
+ * `allow-scripts`: its scripts run, but their requests carry `Origin: null`, which the server's origin guard refuses.
54
+ * `name` (the workflow's) titles the tab. */
55
+ function openDocument(html, interactive, name) {
56
+ var text = String(html == null ? '' : html);
57
+ if (!interactive) {
58
+ return page(name ? 'FloLess report – ' + name : 'FloLess report',
59
+ '<iframe sandbox="allow-popups allow-popups-to-escape-sandbox" title="Report" srcdoc="'
60
+ + escapeAttr(withReportCsp(text)) + '"></iframe>');
61
+ }
62
+ return page(name ? 'FloLess 3D view – ' + name : 'FloLess 3D view',
63
+ '<iframe sandbox="allow-scripts" title="3D view" src="data:text/html;charset=utf-8,'
64
+ + escapeAttr(encodeURIComponent(text)) + '"></iframe>');
65
+ }
66
+
67
+ root.FlolessReportCsp = { POLICY: POLICY, withReportCsp: withReportCsp, openDocument: openDocument };
68
+ })(typeof window !== 'undefined' ? window : globalThis);
@@ -65,6 +65,7 @@
65
65
  <button id="inspectorToggle" class="model-inspector-toggle" type="button" data-command-id="revit.inspector-toggle" data-tip="Collapse Properties" aria-label="Collapse Properties" aria-controls="inspectorPanel" aria-expanded="true"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="m6 3 5 5-5 5"/></svg></button>
66
66
  </main>
67
67
  <div id="toast" role="status" aria-live="polite"></div>
68
+ <script src="failure-copy.js"></script>
68
69
  <script src="commands.js"></script>
69
70
  <script src="commands-revit.js"></script>
70
71
  <script src="instructor-reporter.js"></script>
@@ -213,7 +213,14 @@ function fail(failure = null) {
213
213
  state.replaceChildren(); const strong = document.createElement('strong'); strong.textContent = 'Model unavailable'; const copy = document.createElement('span'); copy.textContent = modelUnavailableCopy(); state.append(strong, copy);
214
214
  }
215
215
  // Any answer that is not ok rides on the error (`status`, `body`), so a failure can say what the server wrote for a person.
216
- async function json(url, options) { const response = await fetch(url, { credentials: 'same-origin', ...options }); const value = await response.json().catch(() => ({})); if (!response.ok || value.ok === false) throw Object.assign(new Error(value.message || value.error || `Request failed (${response.status})`), { status: response.status, body: value }); return value; }
216
+ // #3097: the message is the server's own sentence when it wrote one, else the shared one (failure-copy.js); never "(<status>)".
217
+ function sharedFailureText(response, value, ctx, thrown) {
218
+ const copy = globalThis.failureCopy;
219
+ // `thrown`: a fetch that never got an answer (TypeError/AbortError) is passed through so it reads as a lost connection.
220
+ if (typeof copy === 'function') return copy(thrown && !thrown.status ? thrown : { status: response.status, body: value }, ctx).text;
221
+ return `Couldn’t ${ctx?.action || 'finish that'}. Reload this window, then try again.`;
222
+ }
223
+ async function json(url, options) { const response = await fetch(url, { credentials: 'same-origin', ...options }); const value = await response.json().catch(() => ({})); if (!response.ok || value.ok === false) throw Object.assign(new Error(value.message || (typeof globalThis.personText === 'function' ? globalThis.personText(value) : '') || sharedFailureText(response, value, { retrySafe: /^(GET|HEAD)$/.test(String(options?.method || 'GET').toUpperCase()) })), { status: response.status, body: value }); return value; }
217
224
 
218
225
  function propertySection(heading, rows) {
219
226
  return { id: heading.toLowerCase().replace(/\W+/g, '-'), heading, editable: false, render(host) {
@@ -1354,20 +1361,37 @@ function payloadOnly(state) {
1354
1361
  return payload;
1355
1362
  }
1356
1363
 
1364
+ // #3097: the editor-state route answers `{ error: <code>, message }`. The message is shown as written; a code that came
1365
+ // without one is said in words, and anything else gets the shared sentence. A bare code or a status is never shown.
1366
+ const EDITOR_STATE_CODE_WORDS = {
1367
+ 'state-access-unconfirmed': 'FloLess couldn’t confirm your access to this model.',
1368
+ model_module_unavailable: 'This model is open for viewing only here, so its view settings aren’t saved.',
1369
+ 'state-conflict': 'The view settings were changed in another window.',
1370
+ 'state-binding-mismatch': 'The saved view settings belong to a different version of this model.',
1371
+ 'state-pin-unavailable': 'This version of the model is no longer available.',
1372
+ };
1373
+ function editorStateFailureText(response, value, action, retrySafe) {
1374
+ if (typeof value?.message === 'string' && value.message.trim()) return value.message;
1375
+ console.warn('[model] editor state request failed', action, response?.status, value?.error);
1376
+ const words = EDITOR_STATE_CODE_WORDS[value?.error];
1377
+ if (words) return `Couldn’t ${action}. ${words}`;
1378
+ return sharedFailureText(response, value, retrySafe ? { action, retrySafe: true } : { action, unsure: 'Change the view again to save it once more.' });
1379
+ }
1380
+
1357
1381
  async function putEditorState({ binding, token, payload, etag }) {
1358
1382
  const request = async (body, currentEtag) => fetch(editorStateUrl(binding), { method: 'PUT', credentials: 'same-origin',
1359
1383
  headers: { 'content-type': 'application/json', ...(currentEtag ? { 'if-match': currentEtag } : { 'if-none-match': '*' }) }, body: JSON.stringify(body) });
1360
1384
  let sentPayload = payload; let response = await request(sentPayload, etag);
1361
1385
  if (response.status === 412) {
1362
1386
  const fresh = await fetch(editorStateUrl(binding), { credentials: 'same-origin' });
1363
- if (!fresh.ok) throw new Error(`Editor state conflict reload failed (${fresh.status})`);
1387
+ if (!fresh.ok) throw Object.assign(new Error(editorStateFailureText(fresh, await fresh.json().catch(() => ({})), 'save this model view')), { forPerson: true });
1364
1388
  const freshValue = await fresh.json(); const freshPayload = payloadOnly(freshValue.state) || {};
1365
1389
  sentPayload = { ...freshPayload, namedViews: payload.namedViews, coordinateFrames: payload.coordinateFrames, sections: payload.sections,
1366
1390
  ...(payload.gridVisibility ? { gridVisibility: payload.gridVisibility } : {}) };
1367
1391
  response = await request(sentPayload, fresh.headers.get('etag') || freshValue.state?.etag || null);
1368
1392
  }
1369
1393
  const value = await response.json().catch(() => ({}));
1370
- if (!response.ok || value.ok === false) throw Object.assign(new Error(value.message || value.error || `Editor state save failed (${response.status})`), { code: value.error });
1394
+ if (!response.ok || value.ok === false) throw Object.assign(new Error(editorStateFailureText(response, value, 'save this model view')), { code: value.error, forPerson: true });
1371
1395
  if (token !== editorStateBindingToken) return;
1372
1396
  editorStateAccessWarned = null;
1373
1397
  editorStateEtag = response.headers.get('etag') || value.state?.etag || editorStateEtag;
@@ -1394,10 +1418,15 @@ function drainEditorStateSaves() {
1394
1418
  // change is kept in this browser (retainEditorStateRecovery) and retried on the next open, best-effort, so the copy
1395
1419
  // promises nothing. `state-access-unconfirmed` is the server failing to confirm access for this save at all.
1396
1420
  const editorStateAccessRefused = (error) => error?.code === 'model_module_unavailable' || error?.code === 'state-access-unconfirmed';
1397
- function reportEditorStateSaveError(error, fallback) {
1421
+ function reportEditorStateSaveError(error, action) {
1398
1422
  const refused = editorStateAccessRefused(error);
1399
1423
  if (refused) { if (editorStateAccessWarned === error.message) return; editorStateAccessWarned = error.message; }
1400
- toast(error?.message || fallback, refused ? 8000 : undefined);
1424
+ // #3097: only a sentence written for the person (editorStateFailureText) is shown as is; a lost connection
1425
+ // ("Failed to fetch") or an unreadable answer gets the shared sentence, and the raw error goes to the console.
1426
+ if (!error?.forPerson) console.warn('[model] editor state save failed', error);
1427
+ const text = error?.forPerson ? error.message
1428
+ : sharedFailureText(error || {}, error?.body || {}, { action: action || 'save this model view', unsure: 'Change the view again to save it once more.' }, error);
1429
+ toast(text, refused ? 8000 : undefined);
1401
1430
  }
1402
1431
 
1403
1432
  async function flushEditorStateSave() {
@@ -1418,7 +1447,7 @@ function scheduleEditorStateSave(reason) {
1418
1447
  editorStateDirtyPayload = editorStatePayload(); editorStateDirtyGeneration += 1;
1419
1448
  retainEditorStateRecovery();
1420
1449
  clearTimeout(editorStateSaveTimer);
1421
- editorStateSaveTimer = setTimeout(() => { editorStateSaveTimer = null; drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, 'Could not save model view state.')); }, 350);
1450
+ editorStateSaveTimer = setTimeout(() => { editorStateSaveTimer = null; drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, 'save this model view')); }, 350);
1422
1451
  }
1423
1452
 
1424
1453
  async function prepareSpatialForRevision(state, handle) {
@@ -1437,7 +1466,7 @@ async function prepareSpatialForRevision(state, handle) {
1437
1466
  // geometry so a stale/mismatched authority cannot replace the last good scene.
1438
1467
  const url = editorStateUrl(binding);
1439
1468
  const response = await fetch(url, { credentials: 'same-origin' }); let stored = null;
1440
- if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(value.message || value.error || `Editor state read failed (${response.status})`); }
1469
+ if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(editorStateFailureText(response, value, 'read this model’s saved view', true)); }
1441
1470
  const value = await response.json(); stored = value.state;
1442
1471
  const etag = response.headers.get('etag') || stored?.etag || null;
1443
1472
  const recovered = readEditorStateRecovery(binding, etag);
@@ -1477,7 +1506,7 @@ function commitSpatialForRevision(candidate) {
1477
1506
  spatialPanel = mountModelSpatialPanel({ tools: spatialTools, trigger: $('modelFrameStatus'), onBeforeOpen: () => { closeSpatialDialog(); toolbarChrome?.closeMenus(); selectionFilterChrome?.close(); lightingPanel?.close({ restoreFocus: false }); },
1478
1507
  lengthDisplay: { format: (mm) => formatLength(mm, displayUnitControl.units()), parse: (text) => parseLengthMm(text, displayUnitControl.units()), unitLabel: () => displayUnitControl.units() },
1479
1508
  onError: (error) => toast(error.message || 'That spatial action is unavailable.') });
1480
- if (candidate.recovered) { editorStateDirtyPayload = editorStatePayload(); editorStateDirtyGeneration = 1; retainEditorStateRecovery(); editorStateSaveTimer = setTimeout(() => drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, 'Could not restore model view state.')), 0); }
1509
+ if (candidate.recovered) { editorStateDirtyPayload = editorStatePayload(); editorStateDirtyGeneration = 1; retainEditorStateRecovery(); editorStateSaveTimer = setTimeout(() => drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, 'restore this model view')), 0); }
1481
1510
  }
1482
1511
 
1483
1512
  function positionDialog(panel, anchor) {
@@ -8,7 +8,7 @@
8
8
  const api = bridge.api || (async (path) => {
9
9
  const res = await fetch(path);
10
10
  const body = await res.json().catch(() => ({}));
11
- if (!res.ok) throw Object.assign(new Error(body.error || 'request failed'), { status: res.status, body });
11
+ if (!res.ok) throw Object.assign(new Error(personText(body) || failureCopy({ status: res.status, body }, { action: 'load the run history', retrySafe: true }).text), { status: res.status, body });
12
12
  return body;
13
13
  });
14
14
  const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
@@ -145,8 +145,7 @@
145
145
  console.warn('The run history could not be read', err);
146
146
  cache = null;
147
147
  container.dataset.rhState = 'error';
148
- const said = typeof err?.body?.error === 'string' && err.body.error ? err.body.error
149
- : 'FloLess couldn’t read the run history. Check that FloLess is running, then try again.';
148
+ const said = personText(err?.body) || 'FloLess couldn’t read the run history. Check that FloLess is running, then try again.';
150
149
  container.innerHTML = `<div class="pg-empty" role="alert"><p>${esc(said)}</p>`
151
150
  + `<p><button type="button" class="ghost rh-act" data-rh-act="retry" data-command-id="shell.workflows-history-retry">Try again</button></p></div>`;
152
151
  return;