@floless/app 0.167.0 → 0.168.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 (257) hide show
  1. package/autostart.mjs +169 -63
  2. package/desktop-shell.mjs +335 -0
  3. package/dist/floless-server.cjs +14518 -11361
  4. package/dist/schemas/steel.model.v2.schema.json +2 -1
  5. package/dist/skills/floless-app-onboarding/SKILL.md +13 -4
  6. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +3 -0
  7. package/dist/skills/floless-app-steel-takeoff/SKILL.md +21 -2
  8. package/dist/skills/floless-app-ui/SKILL.md +2 -2
  9. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  10. package/dist/web/agents.js +1 -1
  11. package/dist/web/app.css +165 -8
  12. package/dist/web/app.js +53 -13
  13. package/dist/web/aware-update-client.js +13 -5
  14. package/dist/web/aware.js +183 -39
  15. package/dist/web/chat.css +2 -1
  16. package/dist/web/chat.js +410 -80
  17. package/dist/web/commands-filter.js +5 -5
  18. package/dist/web/commands-shell.js +172 -10
  19. package/dist/web/commands-steel.js +1 -1
  20. package/dist/web/desktop-window.js +435 -0
  21. package/dist/web/drawing-check-editor.js +18 -10
  22. package/dist/web/failure-copy.js +14 -1
  23. package/dist/web/guide.js +75 -9
  24. package/dist/web/index.html +64 -6
  25. package/dist/web/instructor.js +1 -1
  26. package/dist/web/leave-guard.js +347 -14
  27. package/dist/web/pages.js +5 -1
  28. package/dist/web/panels.js +5 -2
  29. package/dist/web/pdf-view.js +421 -0
  30. package/dist/web/project-history.js +2 -1
  31. package/dist/web/project-modules.js +3 -1
  32. package/dist/web/project-rfis.js +3 -1
  33. package/dist/web/project-workflows.js +4 -2
  34. package/dist/web/reference-geometry-worker.js +11 -2
  35. package/dist/web/revit-editor.html +1 -0
  36. package/dist/web/revit-editor.js +37 -8
  37. package/dist/web/shared-prefs.js +364 -0
  38. package/dist/web/steel-editor.html +204 -43
  39. package/dist/web/steel-filter-flo.js +74 -18
  40. package/dist/web/steel-filter.html +22 -6
  41. package/dist/web/tab-signal.js +36 -1
  42. package/dist/web/tekla-editor.html +1 -0
  43. package/dist/web/tool-updates.js +159 -38
  44. package/dist/web/vector-3d.html +14 -3
  45. package/dist/web/vector-editor.html +10 -2
  46. package/dist/web/vendor/README.md +23 -0
  47. package/dist/web/vendor/pdfjs/LICENSE +177 -0
  48. package/dist/web/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  49. package/dist/web/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  50. package/dist/web/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
  51. package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  52. package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  53. package/dist/web/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
  54. package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  55. package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  56. package/dist/web/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  57. package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  58. package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  59. package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  60. package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  61. package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  62. package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  63. package/dist/web/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
  64. package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  65. package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  66. package/dist/web/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
  67. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  68. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  69. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  70. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  71. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  72. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  73. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  74. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  75. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  76. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  77. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  78. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  79. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  80. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  81. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  82. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  83. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  84. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  85. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  86. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  87. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  88. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  89. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  90. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  91. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  92. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  93. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  94. package/dist/web/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
  95. package/dist/web/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
  96. package/dist/web/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  97. package/dist/web/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  98. package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  99. package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  100. package/dist/web/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  101. package/dist/web/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  102. package/dist/web/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  103. package/dist/web/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  104. package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  105. package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  106. package/dist/web/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  107. package/dist/web/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  108. package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  109. package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  110. package/dist/web/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
  111. package/dist/web/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
  112. package/dist/web/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
  113. package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  114. package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  115. package/dist/web/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
  116. package/dist/web/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  117. package/dist/web/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  118. package/dist/web/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
  119. package/dist/web/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
  120. package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  121. package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  122. package/dist/web/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  123. package/dist/web/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  124. package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  125. package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  126. package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  127. package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  128. package/dist/web/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
  129. package/dist/web/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
  130. package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  131. package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  132. package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  133. package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  134. package/dist/web/vendor/pdfjs/cmaps/H.bcmap +0 -0
  135. package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  136. package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  137. package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  138. package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  139. package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  140. package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  141. package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  142. package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  143. package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  144. package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  145. package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  146. package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  147. package/dist/web/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
  148. package/dist/web/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
  149. package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  150. package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  151. package/dist/web/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
  152. package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  153. package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  154. package/dist/web/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
  155. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  156. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  157. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  158. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  159. package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  160. package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  161. package/dist/web/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
  162. package/dist/web/vendor/pdfjs/cmaps/LICENSE +36 -0
  163. package/dist/web/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
  164. package/dist/web/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
  165. package/dist/web/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  166. package/dist/web/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  167. package/dist/web/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
  168. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  169. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  170. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  171. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  172. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  173. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  174. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  175. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  176. package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  177. package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  178. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  179. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  180. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  181. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  182. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  183. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  184. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  185. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  186. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  187. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  188. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  189. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  190. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  191. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  192. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  193. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  194. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  195. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  196. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  197. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  198. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  199. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  200. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  201. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  202. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  203. package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  204. package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  205. package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  206. package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  207. package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  208. package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  209. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  210. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  211. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  212. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  213. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  214. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  215. package/dist/web/vendor/pdfjs/cmaps/V.bcmap +0 -0
  216. package/dist/web/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  217. package/dist/web/vendor/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
  218. package/dist/web/vendor/pdfjs/iccs/LICENSE +116 -0
  219. package/dist/web/vendor/pdfjs/pdf.min.mjs +28 -0
  220. package/dist/web/vendor/pdfjs/pdf.worker.mjs +64908 -0
  221. package/dist/web/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  222. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  223. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  224. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  225. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  226. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  227. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  228. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  229. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  230. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  231. package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  232. package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
  233. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  234. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  235. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  236. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  237. package/dist/web/vendor/pdfjs/wasm/LICENSE_JBIG2 +196 -0
  238. package/dist/web/vendor/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
  239. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  240. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  241. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
  242. package/dist/web/vendor/pdfjs/wasm/LICENSE_QCMS +21 -0
  243. package/dist/web/vendor/pdfjs/wasm/jbig2.wasm +0 -0
  244. package/dist/web/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js +15 -0
  245. package/dist/web/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
  246. package/dist/web/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
  247. package/dist/web/vendor/pdfjs/wasm/qcms_bg.wasm +0 -0
  248. package/dist/web/workspaces.js +167 -26
  249. package/home-env.mjs +28 -0
  250. package/install-path.mjs +59 -3
  251. package/launch-starting-page.mjs +35 -15
  252. package/launch.mjs +358 -51
  253. package/package.json +2 -1
  254. package/pin-home.mjs +6 -0
  255. package/post-update-marker.mjs +14 -0
  256. package/preferences-file.mjs +289 -0
  257. package/supervisor-lock.mjs +195 -0
package/dist/web/aware.js CHANGED
@@ -317,6 +317,12 @@
317
317
  return response.json();
318
318
  }
319
319
 
320
+ // The person's sentence for a failed request the server explained no further (web/failure-copy.js, loaded first).
321
+ function apiFailureText(error, retrySafe) {
322
+ if (typeof failureCopy === 'function') return failureCopy(error, { retrySafe }).text;
323
+ return 'Couldn’t finish that, and FloLess couldn’t tell why. If it keeps happening, use Report an issue at the bottom of the window.';
324
+ }
325
+
320
326
  async function api(path, opts = {}) {
321
327
  await globalThis.flolessStartupAdmission?.admit(path, { method: opts?.method, signal: opts?.signal });
322
328
  const { timeoutMs, ...requestOptions } = opts;
@@ -325,10 +331,16 @@
325
331
  headers: { 'content-type': 'application/json' },
326
332
  ...requestOptions,
327
333
  });
334
+ // A read (GET/HEAD) may be told to try again; a change is told to check first, because it may have gone through.
335
+ const method = String(requestOptions.method || 'GET').toUpperCase();
336
+ const readOnly = method === 'GET' || method === 'HEAD';
337
+ // #3097: no status number in anything a person may read; `err.status` below still carries it for callers.
328
338
  const body = await res.json().catch(() => ({
329
339
  ok: false,
330
340
  code: 'response-unreadable',
331
- error: `FloLess received an unreadable response (HTTP ${res.status}).`,
341
+ error: readOnly
342
+ ? 'FloLess sent an answer this window couldn’t read. Reload this window, then try again.'
343
+ : 'FloLess sent an answer this window couldn’t read, so it can’t tell whether that went through. Reload this window and check before trying again.',
332
344
  }));
333
345
  if (!res.ok || body.ok === false) {
334
346
  // Centralised so EVERY caller that spawns `aware` reports the refusal honestly rather than
@@ -341,11 +353,13 @@
341
353
  // rather than at each call site: every `aware`-spawning route funnels through api().
342
354
  awareMaintenanceRefused = true;
343
355
  }
344
- const err = new Error(
345
- (body.code === 'maintenance-busy' && body.message) || body.error || `HTTP ${res.status}`,
346
- );
356
+ // The server's own words when it gave some; otherwise the shared failure sentence (#3097), never "HTTP 500".
357
+ const serverText = (body.code === 'maintenance-busy' && body.message) || body.error;
358
+ const err = new Error(serverText || apiFailureText({ status: res.status, body }, readOnly));
347
359
  err.body = body; // preserve the in-band payload (e.g. credentialIssue) for callers
348
360
  err.status = res.status; // callers need to distinguish a terminal refusal from a transient outage
361
+ // False: the message is one of FloLess's own generic sentences, not the server's reason for this request.
362
+ err.serverText = Boolean(serverText) && body.code !== 'response-unreadable';
349
363
  throw err;
350
364
  }
351
365
  return body;
@@ -3488,10 +3502,16 @@
3488
3502
  body: JSON.stringify({ appId: app.id, inputName: name, ...(sourceName ? { sourceName } : {}), snapshots: files.map((f) => ({ name: f.name, dataUrl: f.dataUrl })) }),
3489
3503
  });
3490
3504
  if (r.status === 413) { showToast('those files are too large to queue together — attach fewer or smaller sheets', 'warn'); return; }
3491
- const out = await r.json().catch(() => ({ ok: false, error: `re-bake failed (${r.status})` }));
3492
- if (!out || !out.ok) { showToast((out && out.error) || 'could not queue re-bake', 'err'); return; }
3505
+ // #3097: an answer that isn't FloLess's JSON says so in words; the status number stays in the console.
3506
+ const out = await r.json().catch(() => null);
3507
+ if (!out) {
3508
+ console.warn('re-bake: unreadable answer', r.status);
3509
+ showToast('FloLess may not have queued the re-read. Check the queued requests, then queue it again if it isn’t there.', 'err');
3510
+ return;
3511
+ }
3512
+ if (!out.ok) { showToast(out.error || 'Couldn’t queue the re-read.', 'err'); return; }
3493
3513
  showToast(`Queued — your terminal AI will re-read ${n} drawing${n > 1 ? 's' : ''} and update this workflow, then ask you to approve.`, 'ok');
3494
- } catch { showToast('could not queue re-bake', 'err'); }
3514
+ } catch { showToast('Couldn’t queue the re-read. Make sure FloLess is still running, then check the queued requests before trying again.', 'err'); }
3495
3515
  }
3496
3516
 
3497
3517
  // Per-app declared-input values, set via the input node's double-click dialog.
@@ -3941,10 +3961,16 @@
3941
3961
  headers: { 'content-type': 'application/json' },
3942
3962
  body: JSON.stringify({ appId: app.id, name: inp.name, dataUrl: v }),
3943
3963
  });
3944
- const up = await r.json().catch(() => ({ ok: false, error: `upload failed (${r.status})` }));
3945
- if (!up || !up.ok) { showToast((up && up.error) || 'could not store the file', 'err'); return; }
3964
+ // #3097: an answer that isn't FloLess's JSON says so in words; the status number stays in the console.
3965
+ const up = await r.json().catch(() => null);
3966
+ if (!up) {
3967
+ console.warn('visual input upload: unreadable answer', r.status);
3968
+ showToast('Couldn’t store the file. FloLess sent an answer this window couldn’t read. Reload this window, then set this input again.', 'err');
3969
+ return;
3970
+ }
3971
+ if (!up.ok) { showToast(up.error || 'Couldn’t store the file.', 'err'); return; }
3946
3972
  store[inp.name] = up.path;
3947
- } catch { showToast('could not upload the file', 'err'); return; }
3973
+ } catch { showToast('Couldn’t upload the file. Make sure FloLess is still running, then set this input again.', 'err'); return; }
3948
3974
  } else if (typeof v === 'string' && v) {
3949
3975
  store[inp.name] = v; // unchanged existing path
3950
3976
  } // cleared/empty → omit (no value)
@@ -4284,7 +4310,10 @@
4284
4310
  await ensureReportDiscoverySession();
4285
4311
  answer = await api(`/api/pages/${encodeURIComponent(home)}/${encodeURIComponent(id)}/versions/${encodeURIComponent(n)}/full-report`);
4286
4312
  } catch (error) {
4287
- showToast(error?.message && !/^HTTP \d+$/.test(error.message) ? error.message : 'FloLess couldn’t open the full report. Try again in a moment.', 'warn');
4313
+ console.warn('full report did not open', error);
4314
+ // The server's reason when it gave one (#3097: api() marks it); a lost connection or an unexplained failure gets
4315
+ // the shared sentence for this read, never the browser's "Failed to fetch".
4316
+ showToast(error?.serverText ? error.message : failureCopy(error, { action: 'open the full report', retrySafe: true }).text, 'warn');
4288
4317
  return false;
4289
4318
  }
4290
4319
  if (typeof answer?.handle !== 'string' || !answer.handle) {
@@ -8537,6 +8566,13 @@
8537
8566
  // The apply body, extracted so the popover's "Update now" can drive it with the
8538
8567
  // polled target version (no textContent scrape). Preserves the npm-vs-desktop
8539
8568
  // branch verbatim: npm copies the command; desktop confirms → relaunch.
8569
+ // The server waits for a person to answer the FloLess window's close guard (up to 10 minutes after a 5 s acknowledgement),
8570
+ // so the tab must wait longer than that or it would call a slow answer a failure.
8571
+ const APP_UPDATE_APPLY_TIMEOUT_MS = 11 * 60 * 1000;
8572
+ // The server answers 409 { paused | alreadyUpdating, error } when an update did not start on purpose.
8573
+ function appUpdateNotice(body) {
8574
+ return body && (body.paused || body.alreadyUpdating) && typeof body.error === 'string' && body.error ? body.error : null;
8575
+ }
8540
8576
  async function applyAppUpdate(version) {
8541
8577
  if (!$appUpdate) return;
8542
8578
  // ONLY the desktop (Velopack) build can self-apply — it is the one with Update.exe. Everything
@@ -8577,8 +8613,19 @@
8577
8613
  $appUpdate.disabled = true;
8578
8614
  $appUpdate.textContent = '↑ Updating…';
8579
8615
  try {
8580
- const r = await fetch('/api/update/apply', { method: 'POST', headers: { 'content-type': 'application/json' }, signal: AbortSignal.timeout(5 * 60 * 1000) });
8616
+ const r = await fetch('/api/update/apply', { method: 'POST', headers: { 'content-type': 'application/json' }, signal: AbortSignal.timeout(APP_UPDATE_APPLY_TIMEOUT_MS) });
8581
8617
  const d = await r.json().catch(() => ({}));
8618
+ // The update did not start, on purpose: the person kept the FloLess window open, or one is already getting ready.
8619
+ // That is news, not a failure: say what the server said and put the pill back.
8620
+ const notice = appUpdateNotice(d);
8621
+ if (notice) {
8622
+ $appUpdate.disabled = false;
8623
+ _updateApplying = null;
8624
+ try { localStorage.removeItem('floless.whatsNew.pending'); } catch { /* private mode */ }
8625
+ showToast(notice, 'info');
8626
+ refreshUpdate();
8627
+ return;
8628
+ }
8582
8629
  if (!r.ok || !d.ok) throw new Error(d.error || 'update failed');
8583
8630
  // Success: the server is exiting + Update.exe relaunches the new build. The health
8584
8631
  // poll flips to offline (R1 overlay), then the new version reconnects on its own.
@@ -8671,15 +8718,37 @@
8671
8718
  el.hidden = true;
8672
8719
  }
8673
8720
  }
8674
- async function refreshWorkflowUpdates() {
8721
+ /**
8722
+ * Read the offers again. The one source for both update dialogs and the footer count (#3081), so they never disagree.
8723
+ * Answers the list read, or null when the read failed: a failed read keeps the last list on screen, because a dropped
8724
+ * request is not "nothing to update". A read sent earlier that answers after a later one is not applied, and answers
8725
+ * with the later read instead, so every caller ends on the same list.
8726
+ */
8727
+ let _wfUpdatesTicket = 0;
8728
+ let _wfUpdatesLatest = null; // the newest call; a call overtaken by it answers with it, which follows any later one in turn
8729
+ function refreshWorkflowUpdates() {
8730
+ const ticket = ++_wfUpdatesTicket;
8731
+ const call = (async () => {
8732
+ const list = await readWorkflowUpdates();
8733
+ if (ticket !== _wfUpdatesTicket) return _wfUpdatesLatest;
8734
+ if (list) _wfUpdates = list;
8735
+ renderWfUpdatePill();
8736
+ wfRowsChanged();
8737
+ return list;
8738
+ })();
8739
+ _wfUpdatesLatest = call;
8740
+ return call;
8741
+ }
8742
+ /** One read of the offers: the list, or null when it could not be read (the reason is logged). */
8743
+ async function readWorkflowUpdates() {
8675
8744
  try {
8676
8745
  await globalThis.flolessStartupAdmission?.admit('/api/workflows/updates');
8677
8746
  const r = await fetch('/api/workflows/updates');
8678
8747
  const d = await r.json();
8679
- _wfUpdates = (r.ok && d.ok && Array.isArray(d.updates)) ? d.updates : [];
8680
- } catch { _wfUpdates = []; }
8681
- renderWfUpdatePill();
8682
- wfRowsChanged();
8748
+ if (r.ok && d.ok && Array.isArray(d.updates)) return d.updates;
8749
+ console.warn('workflow updates read failed', { status: r.status, error: d && d.error });
8750
+ } catch (e) { console.warn('workflow updates read failed', e); }
8751
+ return null;
8683
8752
  }
8684
8753
 
8685
8754
  // ── One-click workflow update (owner ruling 2026-11-02) ──────────────────────────────────────────────────────────
@@ -8706,6 +8775,24 @@
8706
8775
  const a = apps.get(id);
8707
8776
  return (a && a.displayName) || _wfUpdates.find((u) => u.id === id)?.displayName || _wfRowState.get(id)?.offer?.displayName || id;
8708
8777
  }
8778
+ /**
8779
+ * #3081: what tells apart update rows that share a name (three copies of Steel Model, say): the project the workflow
8780
+ * belongs to, or its own id when the project is shared or there is none. Null when no other row has the name, so most
8781
+ * rows read as before. Copies are never merged because their names match.
8782
+ */
8783
+ function wfUpdateContext(id) {
8784
+ const name = wfDisplayName(id);
8785
+ const twins = wfUpdateRowsForDialog().filter((o) => o.id !== id && wfDisplayName(o.id) === name).map((o) => o.id);
8786
+ if (!twins.length) return null;
8787
+ const project = (x) => wfLibrary.find((a) => a.id === x)?.ownerLabel || '';
8788
+ const mine = project(id);
8789
+ return mine && !twins.some((x) => project(x) === mine) ? { kind: 'project', text: mine } : { kind: 'id', text: id };
8790
+ }
8791
+ /** The name a person reads, and hears, for one update row: with what tells it apart when another row has the same name. */
8792
+ function wfUpdateLabel(id) {
8793
+ const ctx = wfUpdateContext(id);
8794
+ return !ctx ? wfDisplayName(id) : ctx.kind === 'project' ? `${wfDisplayName(id)} in ${ctx.text}` : `${wfDisplayName(id)} (${ctx.text})`;
8795
+ }
8709
8796
  function wfWhatsNew(u) {
8710
8797
  if (u.sourceUpdate?.explanation) return u.sourceUpdate.explanation;
8711
8798
  const first = Array.isArray(u.changelog) ? u.changelog.find((e) => e && e.summary) : null;
@@ -8724,6 +8811,12 @@
8724
8811
  function wfUpdateAllTargets() {
8725
8812
  return _wfUpdates.filter((u) => !u.hasChanges && !wfNeedsReview(u) && !['busy', 'undoing', 'done'].includes(_wfRowState.get(u.id)?.state));
8726
8813
  }
8814
+ /** #3081: the offers still waiting, split into what a click applies and what is reviewed in AI Chat. Updated rows are not counted. */
8815
+ function wfUpdatesWaiting() {
8816
+ const open = _wfUpdates.filter((u) => _wfRowState.get(u.id)?.state !== 'done');
8817
+ const review = open.filter(wfNeedsReview).length;
8818
+ return { apply: open.length - review, review };
8819
+ }
8727
8820
  function wfRowsChanged() {
8728
8821
  if (_wfModalOffer) paintWfUpdateModal();
8729
8822
  globalThis.dispatchEvent?.(new CustomEvent('floless:workflow-update-rows'));
@@ -8754,9 +8847,9 @@
8754
8847
  if (!r.ok || !d.ok) throw Object.assign(new Error(d.error || ''), { code: d.code });
8755
8848
  _wfRowState.set(u.id, { state: 'done', offer: u, toVersion: d.toVersion, backupPath: d.backupPath, sourceHash: d.sourceHash });
8756
8849
  wfRowsChanged();
8757
- document.getElementById('wf-update-announce')?.replaceChildren(`Updated ${wfDisplayName(u.id)} to ${d.toVersion}.`);
8850
+ document.getElementById('wf-update-announce')?.replaceChildren(`Updated ${wfUpdateLabel(u.id)} to ${d.toVersion}.`);
8758
8851
  if (!opts.quiet) {
8759
- const text = `Updated “${wfDisplayName(u.id)}” to ${d.toVersion}. It’s ready to run.`;
8852
+ const text = `Updated “${wfUpdateLabel(u.id)}” to ${d.toVersion}. It’s ready to run.`;
8760
8853
  if (d.backupPath) {
8761
8854
  // The Undo stays a full minute (closable sooner), as after a Restore.
8762
8855
  const closeUndo = showToast(text, 'ok', { persistent: true,
@@ -8830,7 +8923,7 @@
8830
8923
  const later = d.replacedLater && d.backupPath ? { backupPath: d.backupPath, sourceHash: d.sourceHash } : null;
8831
8924
  if (later) wfRecoverySet(id, later.backupPath, later);
8832
8925
  _wfRowState.set(id, { state: 'undone', offer: s.offer, version: d.version });
8833
- const text = `Put “${wfDisplayName(id)}” back to ${d.version}.`
8926
+ const text = `Put “${wfUpdateLabel(id)}” back to ${d.version}.`
8834
8927
  + (d.replacedLater ? ' The changes made after the update are in a backup.' : '')
8835
8928
  + (d.knowledgePinNotRestored ? ' Its pinned knowledge was not brought back: pin it again in Knowledge if it needs it.' : '');
8836
8929
  if (later) {
@@ -8890,7 +8983,9 @@
8890
8983
  b.className = 'tool-updates-open' + (cls ? ' ' + cls : '');
8891
8984
  b.textContent = label;
8892
8985
  b.setAttribute('data-command-id', commandId + '#' + instance);
8893
- b.setAttribute('data-command-instance-label', wfDisplayName(instance));
8986
+ b.setAttribute('data-command-instance-label', wfUpdateLabel(instance));
8987
+ // Rows that share a name have buttons that read the same: say which workflow each one acts on (#3081).
8988
+ if (wfUpdateContext(instance)) b.setAttribute('aria-label', `${label}: ${wfUpdateLabel(instance)}`);
8894
8989
  b.addEventListener('click', onClick);
8895
8990
  return b;
8896
8991
  }
@@ -8909,6 +9004,16 @@
8909
9004
  const name = document.createElement('span');
8910
9005
  name.className = 'tool-updates-needs-name';
8911
9006
  name.append(wfDisplayName(u.id) + ' ');
9007
+ const ctx = wfUpdateContext(u.id);
9008
+ if (ctx) {
9009
+ const where = document.createElement('span');
9010
+ where.className = 'wf-upd-ctx';
9011
+ where.setAttribute('data-context-kind', ctx.kind);
9012
+ where.textContent = ctx.kind === 'project' ? `in ${ctx.text}` : ctx.text;
9013
+ where.setAttribute('data-tip', ctx.kind === 'project' ? `The project this copy of ${wfDisplayName(u.id)} belongs to.`
9014
+ : `This copy’s workflow id. It tells it apart from the other workflows named ${wfDisplayName(u.id)}.`);
9015
+ name.append(where, ' ');
9016
+ }
8912
9017
  const ver = document.createElement('span');
8913
9018
  ver.className = 'wf-upd-ver';
8914
9019
  ver.textContent = s.state === 'done' ? `now ${s.toVersion}` : s.state === 'undone' ? `back to ${s.version}` : `${u.installed} → ${u.available}`;
@@ -8972,10 +9077,13 @@
8972
9077
  function paintWfUpdateModal() {
8973
9078
  const u = _wfModalOffer;
8974
9079
  if (!u || !$wfUpdateModal) return;
8975
- const name = wfDisplayName(u.id);
9080
+ const name = wfUpdateLabel(u.id);
8976
9081
  const s = _wfRowState.get(u.id) || { state: 'idle' };
8977
9082
  document.getElementById('wf-update-title').textContent = `Update “${name}”`;
8978
- document.getElementById('wf-update-sub').textContent = `${u.installed} → ${u.available}. Your saved data is kept, and a backup is saved first so you can undo.`;
9083
+ // A Steel Model is reviewed in AI Chat, not updated here: this dialog must not promise a backup and Undo it never makes.
9084
+ document.getElementById('wf-update-sub').textContent = wfNeedsReview(u)
9085
+ ? `${u.installed} → ${u.available}. You review this one in AI Chat, and nothing changes until you send the request there.`
9086
+ : `${u.installed} → ${u.available}. Your saved data is kept, and a backup is saved first so you can undo.`;
8979
9087
  const changelog = Array.isArray(u.changelog) ? u.changelog : [];
8980
9088
  document.getElementById('wf-update-changelog').innerHTML = changelog.map((e) => {
8981
9089
  const changes = Array.isArray(e.changes) && e.changes.length
@@ -9002,6 +9110,8 @@
9002
9110
  : (s.state === 'done' ? (s.laterChanges ? 'shell.workflow-update-undo-anyway' : 'shell.workflow-update-undo')
9003
9111
  : review ? 'shell.workflow-update-keep-mine' : 'shell.workflow-update-apply') + '#' + u.id);
9004
9112
  ok.setAttribute('data-command-instance-label', name);
9113
+ // Same-named copies: the button says which workflow it acts on, as the row buttons do (#3081).
9114
+ if (wfUpdateContext(u.id)) ok.setAttribute('aria-label', `${ok.textContent}: ${name}`); else ok.removeAttribute('aria-label');
9005
9115
  }
9006
9116
  if (cancel) {
9007
9117
  cancel.textContent = s.state === 'done' ? 'Close' : 'Not now';
@@ -9876,11 +9986,17 @@
9876
9986
  // compare has a real value). Reveals once: if a pending self-update version was
9877
9987
  // recorded before the relaunch AND the now-running build matches it AND the user
9878
9988
  // hasn't already dismissed that version, fetch its notes and show the panel.
9879
- function maybeShowWhatsNew() {
9880
- if (whatsNewShown) return;
9989
+ let whatsNewChecking = false;
9990
+ async function maybeShowWhatsNew() {
9991
+ if (whatsNewShown || whatsNewChecking) return;
9881
9992
  let pending, seen;
9882
- try { pending = localStorage.getItem('floless.whatsNew.pending'); seen = localStorage.getItem('floless.whatsNew.seen'); } catch { return; }
9993
+ try { pending = localStorage.getItem('floless.whatsNew.pending'); } catch { return; }
9883
9994
  if (!pending) return;
9995
+ // "Seen" is shared with the other FloLess client (#2963), so wait for the server's answer (bounded; the browser's own copy otherwise).
9996
+ whatsNewChecking = true;
9997
+ try { await window.flolessPrefs?.ready(); } finally { whatsNewChecking = false; }
9998
+ if (whatsNewShown) return;
9999
+ try { seen = window.flolessPrefs ? window.flolessPrefs.get('whatsNewSeen') : localStorage.getItem('floless.whatsNew.seen'); } catch { return; }
9884
10000
  const appVer = (document.getElementById('app-version')?.textContent || '').replace(/[^0-9.]/g, '');
9885
10001
  if (appVer !== pending || seen === pending) { try { localStorage.removeItem('floless.whatsNew.pending'); } catch { /* private mode */ } return; }
9886
10002
 
@@ -9913,7 +10029,10 @@
9913
10029
  // Dismiss — no confirm; persist the seen version so it never re-reveals.
9914
10030
  if ($dismiss) {
9915
10031
  $dismiss.onclick = () => {
9916
- try { localStorage.setItem('floless.whatsNew.seen', pending); localStorage.removeItem('floless.whatsNew.pending'); } catch { /* private mode */ }
10032
+ try {
10033
+ if (window.flolessPrefs) window.flolessPrefs.set('whatsNewSeen', pending); else localStorage.setItem('floless.whatsNew.seen', pending);
10034
+ localStorage.removeItem('floless.whatsNew.pending');
10035
+ } catch { /* private mode */ }
9917
10036
  panel.hidden = true;
9918
10037
  document.getElementById('app')?.classList.remove('has-whats-new');
9919
10038
  };
@@ -10225,7 +10344,7 @@
10225
10344
  `<div class="so-card" role="status" tabindex="-1">
10226
10345
  <div class="so-spinner" aria-hidden="true"></div>
10227
10346
  <h1>Reconnecting to FloLess…</h1>
10228
- <p>FloLess isn’t responding. This tab will keep trying to reconnect.</p>
10347
+ <p>FloLess isn’t responding. ${document.documentElement.classList.contains('desktop') ? 'FloLess' : 'This tab'} will keep trying to reconnect.</p>
10229
10348
  <p class="so-status" id="so-status"></p>
10230
10349
  <div class="so-actions">
10231
10350
  <button type="button" id="so-refresh" data-command-id="app.reconnect-refresh" class="secondary" hidden>Refresh page</button>
@@ -10491,7 +10610,7 @@
10491
10610
  if (view === 'node-recheck-failed') {
10492
10611
  h1.textContent = 'Node.js is installed';
10493
10612
  body.textContent = "FloLess couldn't carry on setting up AWARE by itself. Choose Try again to continue.";
10494
- if (job.recheckError) remediation.textContent = job.recheckError;
10613
+ // #3097: the server's reason (job.detail) is diagnosis only; this card's sentence already says what to do.
10495
10614
  retry.hidden = false;
10496
10615
  return { spinner: false };
10497
10616
  }
@@ -10518,7 +10637,7 @@
10518
10637
  h1.textContent = "Node.js didn't install";
10519
10638
  body.textContent = (job && job.error) || 'The install stopped before Node.js was installed.';
10520
10639
  offer.textContent = 'Try the install again';
10521
- if (job && job.lastLine && job.lastLine !== job.error) remediation.textContent = job.lastLine;
10640
+ // #3097: never the installer's last output line or exit code; those stay in job.detail for diagnosis.
10522
10641
  } else {
10523
10642
  h1.textContent = 'Node.js is needed';
10524
10643
  body.textContent = "AWARE runs on Node.js, which isn't installed on this computer. FloLess can install it for you, or you can install it yourself.";
@@ -10569,10 +10688,11 @@
10569
10688
  }
10570
10689
  } catch (err) {
10571
10690
  console.warn('node install did not start', err);
10572
- // The server answered (err.status) with its own reason, or it did not answer at all.
10573
- statusText = err && err.status
10574
- ? `Couldn't start the install: ${err.message}`
10575
- : "Couldn't start the install — FloLess's server didn't answer. Try again in a moment.";
10691
+ // #3097: the server's own reason when it gave one (api() marks it); otherwise the shared sentence. A start is a
10692
+ // change, so an unexplained failure asks the person to check before starting it again.
10693
+ statusText = err && err.serverText
10694
+ ? `Couldn’t start the install. ${err.message}`
10695
+ : failureCopy(err, { action: 'start the install', unsure: 'If Windows asks for permission in a moment, allow it; if nothing happens, choose Install again.' }).text;
10576
10696
  } finally {
10577
10697
  nodeInstall.startInFlight = false;
10578
10698
  rerenderBootstrap();
@@ -10589,7 +10709,8 @@
10589
10709
  const next = isLine ? { epoch: rest.epoch, id: rest.id, rev: rest.rev, status: rest.status, method: rest.method, lastLine: line } : rest;
10590
10710
  if (!adoptNodeJob(next)) return;
10591
10711
  if (rest.status === 'succeeded') nodeInstall.recheckSeen = false;
10592
- if (isLine) setBootstrapLogLine(line);
10712
+ // #3097: the installer's own output (winget, msiexec) is not shown; the running card's sentence and spinner say
10713
+ // it is working. The line is kept on the job for diagnosis only.
10593
10714
  rerenderBootstrap();
10594
10715
  }
10595
10716
 
@@ -10650,8 +10771,8 @@
10650
10771
  // job, so a missed "finished" event cannot leave the card spinning forever.
10651
10772
  if (nodeView === 'node-running' || nodeView === 'node-checking' || nodeView === 'node-unknown') refreshNodeInstallJob();
10652
10773
  spin = paintNodeInstallView(nodeView, els).spinner;
10653
- if (nodeView !== 'node-running' && log) log.textContent = '';
10654
- if (nodeView === 'node-running' && nodeInstall.job && nodeInstall.job.lastLine && log && !log.textContent) log.textContent = nodeInstall.job.lastLine;
10774
+ // #3097: no installer output on the Node.js card in any view (the ticker belongs to the AWARE install).
10775
+ if (log) log.textContent = '';
10655
10776
  } else if (status === 'failed') {
10656
10777
  // No spinner on failure — absence of motion is the signal (no error icon).
10657
10778
  spin = false;
@@ -15371,7 +15492,13 @@
15371
15492
  box.querySelectorAll('.cmd-save').forEach((btn) => {
15372
15493
  btn.onclick = () => saveAgentCommandTemplate(btn.dataset.agent, btn.dataset.cmd);
15373
15494
  });
15374
- } catch (e) { box.innerHTML = `<div class="cmd-desc">error: ${escapeHtml(e.message)}</div>`; }
15495
+ } catch (e) {
15496
+ // #3097: the server's reason when it gave one (api() marks it), else the shared sentence for this read; never
15497
+ // "error: " plus the browser's exception text. The error itself goes to the console.
15498
+ console.warn('agent commands unavailable', id, e);
15499
+ const said = e && e.serverText ? e.message : failureCopy(e, { action: 'load this agent’s commands', retrySafe: true }).text;
15500
+ box.innerHTML = `<div class="cmd-desc">${escapeHtml(said)}</div>`;
15501
+ }
15375
15502
  }
15376
15503
 
15377
15504
  async function saveAgentCommandTemplate(agent, command) {
@@ -16059,6 +16186,10 @@
16059
16186
  if (!why && slot.unavailableCode === 'scope-missing' && integration.id === 'google-workspace') {
16060
16187
  why = `AI Chat lists your Drive files, so it needs the Drive file list. Tick “also let FloLess list your Google Drive files” and click ${slot.alias ? 'Reconnect this account' : 'Reconnect'} to allow it.`;
16061
16188
  }
16189
+ // #2466: a sign-in from before FloLess asked for the chat reads holds identity only.
16190
+ if (!why && slot.unavailableCode === 'scope-missing' && integration.id === 'microsoft-365') {
16191
+ why = `AI Chat needs your permission to read your Microsoft 365 files, mail, Planner and Teams. Click ${slot.alias ? 'Reconnect this account' : 'Reconnect'} to allow it.`;
16192
+ }
16062
16193
  if (!why) {
16063
16194
  // A server reason is shown only when it is ordinary language; internal wording gets the plain fallback.
16064
16195
  const raw = slot.unavailableReason || '';
@@ -16194,6 +16325,12 @@
16194
16325
  // Disconnect when its row asks for one.
16195
16326
  const reconnect = google ? google.reconnect
16196
16327
  : i.id === MICROSOFT_INTEGRATION_ID && i.status === 'connected' ? reconnectButtonHtml(i) : '';
16328
+ // #2466: what a Microsoft sign-in asks for, said before the person clicks (FLOLESS_M365_SCOPES, server/oauth-presets.ts).
16329
+ const microsoftHelp = i.id === MICROSOFT_INTEGRATION_ID
16330
+ ? '<div class="int-drive-help is-flush" id="int-microsoft-access-help">When you sign in, FloLess asks Microsoft to let AI Chat read your OneDrive and SharePoint files, '
16331
+ + 'Excel workbooks, Outlook mail, Planner and Teams chats. It only reads. Excel’s permission also allows changes '
16332
+ + '(Microsoft has no read-only one), but FloLess never edits a file.</div>'
16333
+ : '';
16197
16334
  return `
16198
16335
  <div class="int-item int-${i.status}" data-integration-id="${escapeAttr(i.id)}" tabindex="-1">
16199
16336
  <div class="int-icon" aria-hidden="true">${escapeHtml(VENDOR_ICON[i.vendor] || (i.name[0] || '?'))}</div>
@@ -16202,6 +16339,7 @@
16202
16339
  <div class="int-kind">${i.agent === 'first-party' ? 'Built-in integration' : `${escapeHtml(i.vendor || 'integration')} · tool <code>${escapeHtml(i.agent)}</code>`}</div>
16203
16340
  <div class="int-scopes">${escapeHtml((i.network || []).join(' · ') || '—')}</div>
16204
16341
  <div class="int-meta">${escapeHtml(meta)}</div>
16342
+ ${microsoftHelp}
16205
16343
  ${renderIntegrationAccounts(i)}
16206
16344
  <div class="conn-int" data-conn-int="${escapeAttr(i.id)}"></div>
16207
16345
  ${google ? google.notice + google.driveChoice + google.driveNote : ''}
@@ -16825,7 +16963,9 @@
16825
16963
  return { label: 'blocked', dotClass: 'skipped', tip: why, sr: `Status: blocked — ${why}` };
16826
16964
  }
16827
16965
  if (state === 'error') {
16828
- const why = (ss && ss.error) || 'The watcher exited with an error';
16966
+ // #3097: ss.error is the watcher's stderr tail, kept in the status for diagnosis and never shown. The tip says
16967
+ // what happened and how to start watching again.
16968
+ const why = 'The watcher stopped because of an error. Turn it off and on again; if it stops again, use Report an issue at the bottom of the window.';
16829
16969
  return { label: 'error', dotClass: 'failed', tip: why, sr: `Status: error — ${why}` };
16830
16970
  }
16831
16971
  if (state === 'listening') {
@@ -20018,6 +20158,10 @@
20018
20158
  workflowUpdateRow: (offer) => wfUpdateRow(offer),
20019
20159
  updateAllWorkflows: () => updateAllWorkflows(),
20020
20160
  updateAllCount: () => wfUpdateAllTargets().length,
20161
+ /** #3081: one read of the offers feeds the footer count and both dialogs. Answers the list, or null when the read failed. */
20162
+ refreshWorkflowUpdates: () => refreshWorkflowUpdates(),
20163
+ /** #3081: what still waits in the list: updates a click applies, and ones reviewed in AI Chat. */
20164
+ workflowUpdatesWaiting: () => wfUpdatesWaiting(),
20021
20165
  /** #2046: the ≡ menu's New workflow, opened from a Guide suggestion with its name filled in. */
20022
20166
  newWorkflow: (prefill) => requestNewWorkflow(prefill),
20023
20167
  // #2185: a Guide card's Build it — straight to its own conversation, no dialog.
package/dist/web/chat.css CHANGED
@@ -1269,7 +1269,8 @@
1269
1269
  .ai-chat-source-viewer-text::-webkit-scrollbar-track { background: var(--surface-2); }
1270
1270
  .ai-chat-source-viewer-text::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 8px; }
1271
1271
  .ai-chat-source-viewer-text::-webkit-scrollbar-corner { background: var(--surface-2); }
1272
- .ai-chat-source-viewer-pdf { display: block; width: 100%; height: 60vh; margin: 8px 0 0; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); }
1272
+ /* #3018: FloLess's own PDF viewer (web/pdf-view.js; styled in app.css), framed like the text above it. */
1273
+ .ai-chat-source-viewer-body > .pdf-view { height: 60vh; margin: 8px 0 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
1273
1274
  .ai-chat-source-viewer-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1274
1275
  [data-theme="light"] .ai-chat-sources, [data-theme="light"] .ai-chat-source-viewer { --text-muted: #475569; }
1275
1276
  /* The light theme's dim text is 2.7:1 on a chip, and its warning text 4.1:1 on a marker: below the 4.5:1 floor at these