@floless/app 0.166.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 (261) hide show
  1. package/autostart.mjs +169 -63
  2. package/desktop-shell.mjs +335 -0
  3. package/dist/floless-server.cjs +20570 -14555
  4. package/dist/schemas/drawing-check.profile.v1.schema.json +1 -1
  5. package/dist/schemas/steel.model.v2.schema.json +4 -2
  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-steel-takeoff/SKILL.md +34 -3
  9. package/dist/skills/floless-app-ui/SKILL.md +2 -2
  10. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  11. package/dist/templates/college-phase-exporter.flo +11 -45
  12. package/dist/web/agents.js +1 -1
  13. package/dist/web/app.css +223 -8
  14. package/dist/web/app.js +53 -13
  15. package/dist/web/aware-update-client.js +13 -5
  16. package/dist/web/aware.js +559 -118
  17. package/dist/web/chat.css +23 -0
  18. package/dist/web/chat.js +1003 -83
  19. package/dist/web/commands-filter.js +28 -5
  20. package/dist/web/commands-shell.js +304 -18
  21. package/dist/web/commands-steel.js +1 -1
  22. package/dist/web/desktop-window.js +435 -0
  23. package/dist/web/drawing-check-editor.js +18 -10
  24. package/dist/web/failure-copy.js +14 -1
  25. package/dist/web/guide.js +75 -9
  26. package/dist/web/index.html +72 -12
  27. package/dist/web/instructor.js +1 -1
  28. package/dist/web/leave-guard.js +347 -14
  29. package/dist/web/pages.js +5 -1
  30. package/dist/web/panels.js +5 -2
  31. package/dist/web/pdf-view.js +421 -0
  32. package/dist/web/project-history.js +133 -11
  33. package/dist/web/project-modules.js +3 -1
  34. package/dist/web/project-rfis.js +3 -1
  35. package/dist/web/project-workflows.js +4 -2
  36. package/dist/web/reference-geometry-worker.js +11 -2
  37. package/dist/web/revit-editor.html +1 -0
  38. package/dist/web/revit-editor.js +37 -8
  39. package/dist/web/shared-prefs.js +364 -0
  40. package/dist/web/steel-ai-marks.js +45 -1
  41. package/dist/web/steel-editor.html +265 -58
  42. package/dist/web/steel-filter-flo.js +243 -23
  43. package/dist/web/steel-filter.html +58 -16
  44. package/dist/web/tab-signal.js +36 -1
  45. package/dist/web/tekla-editor.html +1 -0
  46. package/dist/web/terminal-requests.js +5 -0
  47. package/dist/web/tool-updates.js +220 -54
  48. package/dist/web/vector-3d.html +14 -3
  49. package/dist/web/vector-editor.html +10 -2
  50. package/dist/web/vendor/README.md +23 -0
  51. package/dist/web/vendor/pdfjs/LICENSE +177 -0
  52. package/dist/web/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  53. package/dist/web/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  54. package/dist/web/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
  55. package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  56. package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  57. package/dist/web/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
  58. package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  59. package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  60. package/dist/web/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  61. package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  62. package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  63. package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  64. package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  65. package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  66. package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  67. package/dist/web/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
  68. package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  69. package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  70. package/dist/web/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
  71. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  72. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  73. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  74. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  75. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  76. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  77. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  78. package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  79. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  80. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  81. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  82. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  83. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  84. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  85. package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  86. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  87. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  88. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  89. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  90. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  91. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  92. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  93. package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  94. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  95. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  96. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  97. package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  98. package/dist/web/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
  99. package/dist/web/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
  100. package/dist/web/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  101. package/dist/web/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  102. package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  103. package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  104. package/dist/web/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  105. package/dist/web/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  106. package/dist/web/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  107. package/dist/web/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  108. package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  109. package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  110. package/dist/web/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  111. package/dist/web/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  112. package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  113. package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  114. package/dist/web/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
  115. package/dist/web/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
  116. package/dist/web/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
  117. package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  118. package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  119. package/dist/web/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
  120. package/dist/web/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  121. package/dist/web/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  122. package/dist/web/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
  123. package/dist/web/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
  124. package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  125. package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  126. package/dist/web/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  127. package/dist/web/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  128. package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  129. package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  130. package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  131. package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  132. package/dist/web/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
  133. package/dist/web/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
  134. package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  135. package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  136. package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  137. package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  138. package/dist/web/vendor/pdfjs/cmaps/H.bcmap +0 -0
  139. package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  140. package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  141. package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  142. package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  143. package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  144. package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  145. package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  146. package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  147. package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  148. package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  149. package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  150. package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  151. package/dist/web/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
  152. package/dist/web/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
  153. package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  154. package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  155. package/dist/web/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
  156. package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  157. package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  158. package/dist/web/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
  159. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  160. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  161. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  162. package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  163. package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  164. package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  165. package/dist/web/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
  166. package/dist/web/vendor/pdfjs/cmaps/LICENSE +36 -0
  167. package/dist/web/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
  168. package/dist/web/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
  169. package/dist/web/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  170. package/dist/web/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  171. package/dist/web/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
  172. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  173. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  174. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  175. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  176. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  177. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  178. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  179. package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  180. package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  181. package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  182. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  183. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  184. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  185. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  186. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  187. package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  188. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  189. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  190. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  191. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  192. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  193. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  194. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  195. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  196. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  197. package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  198. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  199. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  200. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  201. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  202. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  203. package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  204. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  205. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  206. package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  207. package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  208. package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  209. package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  210. package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  211. package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  212. package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  213. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  214. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  215. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  216. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  217. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  218. package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  219. package/dist/web/vendor/pdfjs/cmaps/V.bcmap +0 -0
  220. package/dist/web/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  221. package/dist/web/vendor/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
  222. package/dist/web/vendor/pdfjs/iccs/LICENSE +116 -0
  223. package/dist/web/vendor/pdfjs/pdf.min.mjs +28 -0
  224. package/dist/web/vendor/pdfjs/pdf.worker.mjs +64908 -0
  225. package/dist/web/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  226. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  227. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  228. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  229. package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  230. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  231. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  232. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  233. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  234. package/dist/web/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  235. package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  236. package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
  237. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  238. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  239. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  240. package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  241. package/dist/web/vendor/pdfjs/wasm/LICENSE_JBIG2 +196 -0
  242. package/dist/web/vendor/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
  243. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  244. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  245. package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
  246. package/dist/web/vendor/pdfjs/wasm/LICENSE_QCMS +21 -0
  247. package/dist/web/vendor/pdfjs/wasm/jbig2.wasm +0 -0
  248. package/dist/web/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js +15 -0
  249. package/dist/web/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
  250. package/dist/web/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
  251. package/dist/web/vendor/pdfjs/wasm/qcms_bg.wasm +0 -0
  252. package/dist/web/workspaces.js +527 -64
  253. package/home-env.mjs +28 -0
  254. package/install-path.mjs +59 -3
  255. package/launch-starting-page.mjs +35 -15
  256. package/launch.mjs +358 -51
  257. package/package.json +2 -1
  258. package/pin-home.mjs +6 -0
  259. package/post-update-marker.mjs +14 -0
  260. package/preferences-file.mjs +289 -0
  261. package/supervisor-lock.mjs +195 -0
package/dist/web/app.css CHANGED
@@ -2345,6 +2345,7 @@
2345
2345
  }
2346
2346
  .int-notice.is-warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
2347
2347
  .int-drive-help { font-size: 9px; line-height: 1.45; color: var(--text-muted); margin: 2px 0 0 22px; }
2348
+ .int-drive-help.is-flush { margin: 4px 0 2px; }
2348
2349
  .int-drive-note { font-size: 9px; line-height: 1.45; color: var(--text-muted); margin: 6px 0 0 22px; }
2349
2350
  .int-drive-note a { color: var(--accent-bright); text-decoration: underline; }
2350
2351
  .int-drive-note a:hover { color: var(--accent); }
@@ -3346,6 +3347,34 @@
3346
3347
  .tool-updates-more summary:hover { color: var(--text); }
3347
3348
  .tool-updates-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
3348
3349
  .tool-updates-more-line { color: var(--text-muted); font-size: 11px; line-height: 1.45; margin: 3px 0 0 10px; }
3350
+ /* One-click workflow update rows (2026-11-02): shared by the header dialog and the status-bar dialog. */
3351
+ .wf-upd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
3352
+ .wf-upd-head .tool-updates-section-head { margin-bottom: 0; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 500; }
3353
+ .wf-upd-row { align-items: flex-start; }
3354
+ .wf-upd-row[aria-busy="true"] .tool-updates-needs-sentence::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); animation: aware-update-pulse 1.2s ease-in-out infinite; }
3355
+ @media (prefers-reduced-motion: reduce) { .wf-upd-row[aria-busy="true"] .tool-updates-needs-sentence::before { animation: none; } }
3356
+ .wf-upd-row[data-state="done"] .tool-updates-needs-sentence { color: var(--ok); }
3357
+ .wf-upd-row[data-next="undo-anyway"] .tool-updates-needs-sentence { color: var(--warn-text, var(--warn)); }
3358
+ .wf-upd-ver { font-family: var(--mono); font-weight: 400; color: var(--text-muted); font-size: 11px; }
3359
+ /* #3081: what tells apart rows with the same name — the project in text, or the workflow's own id in mono. */
3360
+ /* Wraps as one piece (an id must not break at its hyphen), and only breaks inside when it is longer than the row. */
3361
+ .wf-upd-ctx { display: inline-block; max-width: 100%; font-weight: 400; color: var(--text-muted); font-size: 11.5px; overflow-wrap: anywhere; }
3362
+ .wf-upd-ctx[data-context-kind="id"] { font-family: var(--mono); font-size: 11px; }
3363
+ .wf-upd-ctx + .wf-upd-ver::before { content: "· "; }
3364
+ .wf-upd-new { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
3365
+ .wf-upd-warn { color: var(--warn-text, var(--warn)); font-size: 11.5px; line-height: 1.4; }
3366
+ .wf-upd-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; max-width: 55%; }
3367
+ .tool-updates-open.wf-upd-primary { border: 1px solid var(--accent); color: var(--accent); }
3368
+ .tool-updates-open.wf-upd-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
3369
+ .wf-update-row:empty { display: none; }
3370
+ .wf-update-row { margin-bottom: 12px; padding: 0 2px; border-top: 1px solid var(--border); }
3371
+ .wf-update-row .tool-updates-needs { border-bottom: 0; }
3372
+ .wf-upd-tools > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
3373
+ .wf-upd-tools > summary::-webkit-details-marker { display: none; }
3374
+ .wf-upd-tools > summary::before { content: "▸"; font-size: 9px; transition: transform 0.15s; }
3375
+ .wf-upd-tools[open] > summary::before { transform: rotate(90deg); }
3376
+ .wf-upd-tools > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
3377
+ .tool-updates-pill[data-more]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-left: 6px; display: inline-block; vertical-align: middle; }
3349
3378
  .tool-updates-needs { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border); }
3350
3379
  .tool-updates-needs:last-child { border-bottom: 0; }
3351
3380
  .tool-updates-needs-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
@@ -3410,6 +3439,9 @@
3410
3439
  .tool-updates-progress { flex: none; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
3411
3440
  .tool-updates-progress-head { margin-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.45; }
3412
3441
  .tool-updates-progress-lost { margin: -4px 0 8px; color: var(--warn); font-size: 11px; line-height: 1.4; }
3442
+ /* #3081: FloLess slow to answer is not lost contact: muted, not a warning colour. */
3443
+ .tool-updates-progress-slow { margin: -4px 0 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
3444
+ .tool-updates-progress-waited { font-family: var(--mono); color: var(--text); }
3413
3445
  .tool-updates-progress-hint { margin-top: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
3414
3446
  .tool-updates-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
3415
3447
  .tool-updates-step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; align-items: baseline; font-size: 12px; line-height: 17px; }
@@ -3522,7 +3554,7 @@
3522
3554
  /* #2062: routines run only while FloLess is running — said in the Routines list and the editor. */
3523
3555
  .rtn-local-note { margin: -4px 0 12px; font-size: 11.5px; color: var(--text-dim); line-height: 1.55; }
3524
3556
  .rtn-local-hint { margin: 2px 0 12px; }
3525
- /* The ≡ menu's Start on startup row, pointed at from Routines: a brief accent ring, then nothing. */
3557
+ /* The ≡ menu's Start with Windows row, pointed at from Routines: a brief accent ring, then nothing. */
3526
3558
  .menu-startup.is-pointed { animation: menu-startup-point 1.6s ease-out 1; border-radius: 6px; }
3527
3559
  @keyframes menu-startup-point {
3528
3560
  0%, 60% { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft, transparent); }
@@ -3868,6 +3900,27 @@
3868
3900
  .leave-guard-note { margin: 10px 0 0; font: 12.5px/1.45 var(--ui); color: var(--text); }
3869
3901
  .leave-guard-running { margin: 12px 0 0; padding: 6px 10px; border-left: 2px solid var(--warn);
3870
3902
  background: color-mix(in srgb, var(--warn) 8%, transparent); font: 12.5px/1.45 var(--ui); color: var(--text); }
3903
+ /* Stop FloLess: what stopping means right now (routine, watchers, start at sign-in), then the wait for a run. */
3904
+ .leave-guard-effects { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
3905
+ .leave-guard-effects[hidden] { display: none; }
3906
+ .leave-guard-effects li { font: 12.5px/1.45 var(--ui); color: var(--text-muted); padding-left: 12px; position: relative; }
3907
+ .leave-guard-effects li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px;
3908
+ border-radius: 50%; background: var(--text-dim); }
3909
+ /* The way to the Start with Windows setting: a small text link, never a button-sized third answer. */
3910
+ .leave-guard-aside { margin: 10px 0 0; }
3911
+ .leave-guard-aside[hidden] { display: none; }
3912
+ .leave-guard .lg-link { font: 12.5px/1.45 var(--ui); color: var(--accent); background: transparent; border: 0; padding: 2px 0;
3913
+ cursor: pointer; text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
3914
+ .leave-guard .lg-link:hover { color: var(--text); }
3915
+ .leave-guard .lg-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
3916
+ .leave-guard-waiting { margin: 10px 0 0; font: 12.5px/1.45 var(--ui); color: var(--text); }
3917
+ .leave-guard-waiting:empty { display: none; }
3918
+ .leave-guard-hint { margin: 8px 0 0; display: grid; gap: 6px; }
3919
+ .leave-guard-hint[hidden] { display: none; }
3920
+ .leave-guard-hint p { margin: 0; font: 12.5px/1.45 var(--ui); color: var(--text-muted); }
3921
+ #leave-guard-wait[hidden] { display: none; }
3922
+ .modal.close-tray { width: min(440px, calc(100vw - 32px)); }
3923
+ .modal.close-tray .modal-check { margin-top: 14px; }
3871
3924
 
3872
3925
  /* ── "FloLess has stopped" — the terminal screen after Stop FloLess (the sign-in gate's recipe) ── */
3873
3926
  #app-stopped { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
@@ -4173,7 +4226,7 @@
4173
4226
  }
4174
4227
  /* #2399: "Suggestions" On / Quiet / Off in the ≡ menu: the Theme segmented look with text labels. Its own class, so
4175
4228
  the theme buttons' click handler never sees these. */
4176
- .suggest-btn {
4229
+ .suggest-btn, .client-btn {
4177
4230
  background: transparent;
4178
4231
  border: none;
4179
4232
  min-width: 38px;
@@ -4185,12 +4238,14 @@
4185
4238
  border-radius: 3px;
4186
4239
  cursor: pointer;
4187
4240
  }
4188
- .suggest-btn:hover { color: var(--text); }
4189
- .suggest-btn.active {
4241
+ .suggest-btn:hover, .client-btn:hover { color: var(--text); }
4242
+ .suggest-btn.active, .client-btn.active {
4190
4243
  background: var(--accent);
4191
4244
  color: white;
4192
4245
  }
4193
- .suggest-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
4246
+ .suggest-btn:focus-visible, .client-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
4247
+ /* "Open FloLess in" / "Keep FloLess in the tray" reuse .menu-theme (display:flex), which overrides `hidden`. */
4248
+ .menu-client[hidden], .menu-tray[hidden] { display: none; }
4194
4249
  .menu-suggest-note { padding: 0 9px 7px; font-size: 11px; color: var(--text-muted); }
4195
4250
  .menu-suggest-note[hidden] { display: none; }
4196
4251
 
@@ -6867,6 +6922,14 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6867
6922
  .state-cancelled .wsg-label { color:var(--text-muted); }
6868
6923
  .wsg-value { min-width:0; color:var(--text-muted); overflow-wrap:anywhere; }
6869
6924
  .wsg-actions { display:flex; align-items:center; gap:8px; margin-top:7px; }
6925
+ /* #3053: the finished drawing read's band. Body lines in the strip's own muted text; one primary action, scoped the way
6926
+ .kb-ds re-declares it; Dismiss is quiet, with the collapse chevron's tokens. */
6927
+ .wsg-done-line { margin:5px 0 0; color:var(--text-muted); overflow-wrap:anywhere; }
6928
+ .wsg-done-line strong { color:var(--text); font-weight:600; }
6929
+ .ws-stage-guidance .btn-mini.primary { background:var(--accent); border-color:var(--accent); color:white; font-weight:600; }
6930
+ .ws-stage-guidance .btn-mini.primary:hover { background:var(--accent-bright); border-color:var(--accent-bright); color:white; }
6931
+ .ws-stage-guidance .btn-mini.wsg-dismiss { border-color:transparent; margin-left:auto; }
6932
+ .ws-stage-guidance .btn-mini.wsg-dismiss:hover { border-color:transparent; background:var(--surface-3); }
6870
6933
  .wsg-updated { display:block; margin-top:5px; color:var(--text-dim); font-size:10px; text-align:right; }
6871
6934
  @keyframes wsg-pulse { 65%,100% { box-shadow:0 0 0 5px color-mix(in srgb, var(--accent-bright) 0%, transparent); } }
6872
6935
  @keyframes wsg-travel { 0% { transform:translateX(0); } 100% { transform:translateX(460%); } }
@@ -7411,6 +7474,7 @@ tr.hist-diff-row[hidden] { display:none; }
7411
7474
  .hd-group.removed { border-left-color:var(--err); } .hd-group.removed .hd-type { color:var(--err); }
7412
7475
  .hd-group.resized { border-left-color:var(--accent); } .hd-group.resized .hd-type { color:var(--accent-bright); }
7413
7476
  .hd-group.moved { border-left-color:var(--accent); } .hd-group.moved .hd-type { color:var(--accent-bright); }
7477
+ .hd-group.nudged { border-left-color:var(--accent); } .hd-group.nudged .hd-type { color:var(--accent-bright); }
7414
7478
  .hd-group.material { border-left-color:var(--warn); } .hd-group.material .hd-type { color:var(--warn); }
7415
7479
  .hd-group.connections { border-left-color:var(--info); } .hd-group.connections .hd-type { color:var(--info); }
7416
7480
  .hd-item { line-height:1.5; padding:1px 0; color:var(--text-muted); }
@@ -7892,9 +7956,68 @@ tr.hist-diff-row[hidden] { display:none; }
7892
7956
  .kb-view-x:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
7893
7957
  .kb-view-body { flex:1; min-height:0; display:flex; flex-direction:column; background:var(--bg); }
7894
7958
 
7895
- /* An <iframe> is tab-focusable, so it needs a visible focus ring like every other control here. */
7896
- .kb-view-pdf { flex:1; width:100%; border:none; display:block; }
7897
- .kb-view-pdf:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
7959
+ /* #3018: FloLess's own PDF viewer (web/pdf-view.js), shared by the Knowledge preview and AI Chat's cited-file viewer.
7960
+ Every part of it is FloLess's, so every part is themed: the toolbar, the page field, the scroll area's scrollbars. Only
7961
+ the page itself is white, as the document is. */
7962
+ .kb-view-body > .pdf-view { flex:1; min-height:0; }
7963
+ .pdf-view { display:flex; flex-direction:column; min-height:0; font:11px/1.4 var(--ui); color:var(--text); }
7964
+ .pdf-view-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:6px 8px;
7965
+ border-bottom:1px solid var(--border); background:var(--surface); }
7966
+ .pdf-view-name { min-width:0; max-width:40%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
7967
+ font-weight:600; color:var(--text); }
7968
+ .pdf-view-group { display:flex; align-items:center; gap:4px; }
7969
+ .pdf-view-group[hidden], .pdf-view-name[hidden] { display:none; }
7970
+ .pdf-view-btn { font:inherit; min-width:28px; padding:4px 8px; color:var(--text-muted); background:transparent;
7971
+ border:1px solid var(--border-strong); border-radius:5px; cursor:pointer; text-decoration:none; text-align:center; line-height:1.3; }
7972
+ .pdf-view-btn:hover:not(:disabled) { color:var(--accent-bright); border-color:var(--accent); background:var(--accent-soft); }
7973
+ .pdf-view-btn:disabled { color:var(--text-dim); cursor:default; }
7974
+ .pdf-view-btn:focus-visible, .pdf-view-page:focus-visible, .pdf-view-password-field:focus-visible {
7975
+ outline:2px solid var(--accent); outline-offset:1px; }
7976
+ .pdf-view-btn[aria-pressed="true"] { color:var(--text); background:var(--surface-3); }
7977
+ .pdf-view-download { margin-left:auto; }
7978
+ .pdf-view-page, .pdf-view-password-field { font:inherit; color:var(--text); background:var(--surface-2);
7979
+ border:1px solid var(--border-strong); border-radius:5px; padding:3px 6px; }
7980
+ .pdf-view-page { width:4ch; text-align:center; font-family:var(--mono); }
7981
+ .pdf-view-total, .pdf-view-level { color:var(--text-muted); font-family:var(--mono); font-variant-numeric:tabular-nums; }
7982
+ .pdf-view-level { min-width:4.5ch; text-align:center; }
7983
+ .pdf-view-stage { position:relative; flex:1; min-height:0; overflow:auto; padding:12px; background:var(--surface-2);
7984
+ display:flex; flex-direction:column; align-items:flex-start; gap:12px;
7985
+ scrollbar-width:thin; scrollbar-color:var(--text-dim) var(--surface-2); scrollbar-gutter:stable; }
7986
+ .pdf-view-stage::-webkit-scrollbar { width:8px; height:8px; }
7987
+ .pdf-view-stage::-webkit-scrollbar-track { background:var(--surface-2); }
7988
+ .pdf-view-stage::-webkit-scrollbar-thumb { background:var(--text-dim); border-radius:8px; }
7989
+ .pdf-view-stage::-webkit-scrollbar-corner { background:var(--surface-2); }
7990
+ .pdf-view-stage:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
7991
+ .pdf-view-sheet { position:relative; flex:none; margin-inline:auto; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.35); }
7992
+ .pdf-view-canvas { display:block; }
7993
+ /* A page pdf.js could not draw: said on the page, in the page's own place. */
7994
+ .pdf-view-sheet-failed { position:absolute; inset:auto 16px 50%; margin:0; padding:8px 10px; text-align:center;
7995
+ color:var(--text); background:var(--surface-2); border:1px solid var(--border-strong); border-radius:5px; }
7996
+ .pdf-view-status { margin:auto; max-width:46ch; text-align:center; color:var(--text-muted); }
7997
+ .pdf-view-password { display:flex; gap:6px; }
7998
+ .pdf-view-password[hidden] { display:none; }
7999
+ .pdf-view-live { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
8000
+ [data-theme="light"] .pdf-view { --text-muted:#475569; }
8001
+ [data-theme="light"] .pdf-view-sheet { box-shadow:0 1px 3px rgba(15,23,42,.18); }
8002
+ /* pdf.js's text layer: invisible text laid exactly over the drawn page, so it can be selected and copied. Taken from
8003
+ pdf.js's own pdf_viewer.css (6.4.299), only the rules this viewer uses. */
8004
+ .pdf-view .textLayer { position:absolute; inset:0; overflow:clip; line-height:1; text-align:initial;
8005
+ -webkit-text-size-adjust:none; text-size-adjust:none; forced-color-adjust:none; transform-origin:0 0; z-index:0;
8006
+ --min-font-size:1; --text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));
8007
+ --min-font-size-inv:calc(1 / var(--min-font-size)); }
8008
+ .pdf-view .textLayer :is(span, br) { color:transparent; position:absolute; white-space:pre; cursor:text;
8009
+ transform-origin:0% 0%; user-select:text; }
8010
+ .pdf-view .textLayer > :not(.markedContent), .pdf-view .textLayer .markedContent span:not(.markedContent) {
8011
+ z-index:1; --font-height:0; font-size:calc(var(--text-scale-factor) * var(--font-height));
8012
+ --scale-x:1; --rotate:0deg; transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
8013
+ .pdf-view .textLayer .markedContent { display:contents; }
8014
+ .pdf-view .textLayer span[role="img"] { user-select:none; cursor:default; }
8015
+ .pdf-view .textLayer ::selection { background:color-mix(in srgb, var(--accent) 35%, transparent); color:transparent; }
8016
+ .pdf-view .textLayer .endOfContent { display:block; position:absolute; inset:100% 0 0; z-index:0; cursor:default; user-select:none; }
8017
+ @media (max-width:420px) {
8018
+ .pdf-view-name { max-width:100%; flex-basis:100%; }
8019
+ .pdf-view-btn { min-height:32px; }
8020
+ }
7898
8021
  .kb-view-img-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center;
7899
8022
  padding:20px; overflow:hidden; }
7900
8023
  .kb-view-img { max-width:100%; max-height:100%; object-fit:contain; }
@@ -8534,6 +8657,29 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8534
8657
  .ph-note { margin:0; }
8535
8658
  .ph-cut { display:flex; align-items:center; gap:8px; flex-wrap:wrap; max-width:1040px; margin-top:12px; }
8536
8659
  .ph-earlier-failed { color:var(--err-text); }
8660
+ /* A watcher reaction's details (#2470 R6.5c): a chevron before its time opens a panel under the sentence with what the
8661
+ source reported and what each step did. A list holding any chevron keeps a same-width slot so every time lines up. */
8662
+ .ph-when { display:flex; align-items:flex-start; gap:4px; min-width:0; }
8663
+ .ph-toggle, .ph-toggle-slot { flex:none; width:20px; height:20px; margin:-2px 0 0 -4px; }
8664
+ .ph-toggle { display:inline-flex; align-items:center; justify-content:center; padding:0; background:none; border:0; border-radius:6px;
8665
+ color:var(--text-muted); cursor:pointer; }
8666
+ .ph-toggle:hover { color:var(--text); background:var(--surface-3); }
8667
+ .ph-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
8668
+ .ph-toggle .hd-caret { display:inline-block; font-size:10px; transition:transform .12s; }
8669
+ .ph-toggle[aria-expanded="true"] .hd-caret { transform:rotate(90deg); }
8670
+ .ph-detail { grid-column:2 / -1; margin:2px 0 4px; padding:10px 12px; background:var(--surface-3); border:1px solid var(--border);
8671
+ border-radius:8px; display:flex; flex-direction:column; gap:12px; min-width:0; }
8672
+ .ph-detail[hidden] { display:none; }
8673
+ .ph-sub-h { margin:0 0 6px; font-size:11px; font-weight:600; color:var(--text-muted); }
8674
+ .ph-sub-note { margin:0; font-size:12px; color:var(--text-muted); }
8675
+ .ph-kv { display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:4px 14px; margin:0; font-size:12px; }
8676
+ .ph-kv dt { color:var(--text-muted); }
8677
+ .ph-kv dd { margin:0; color:var(--text); overflow-wrap:anywhere; user-select:text; }
8678
+ .ph-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
8679
+ .ph-step { display:grid; grid-template-columns:minmax(0, 12rem) auto; gap:4px 10px; align-items:center; justify-items:start; font-size:12px; }
8680
+ .ph-step-id { color:var(--text); overflow-wrap:anywhere; }
8681
+ .ph-step-err { grid-column:1 / -1; margin:0; color:var(--err-text); overflow-wrap:anywhere; line-height:1.45; }
8682
+ .ph-detail-actions { display:flex; gap:6px; }
8537
8683
  /* A narrow centre column (its width follows the chat pane, so a container query, not a viewport one): when, outcome and
8538
8684
  duration on one line; what it rests on, then the actions, below. */
8539
8685
  @container (max-width: 640px) {
@@ -8541,6 +8687,9 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
8541
8687
  .ph-row { grid-template-columns:auto minmax(0, 1fr); row-gap:4px; }
8542
8688
  .ph-labels { justify-content:flex-start; grid-row:1; grid-column:2; }
8543
8689
  .ph-text { grid-column:1 / -1; }
8690
+ .ph-detail { grid-column:1 / -1; }
8691
+ .ph-kv { grid-template-columns:minmax(0, 1fr); }
8692
+ .ph-kv dd + dt { margin-top:4px; }
8544
8693
  .rh-dur { text-align:left; }
8545
8694
  .rh-detail, .rh-actions { grid-column:1 / -1; }
8546
8695
  .rh-detail:empty { display:none; }
@@ -9171,3 +9320,69 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
9171
9320
  .company-cat-edit { margin-left:calc(var(--kb-depth, 0) * 12px); }
9172
9321
  .company-pop { position:absolute; z-index:5; background:var(--surface); border:1px solid var(--border-strong); border-radius:7px; box-shadow:0 8px 24px color-mix(in srgb, var(--bg) 50%, transparent); }
9173
9322
  .company-pop.hist-confirm { padding:10px 12px; max-width:320px; }
9323
+
9324
+ /* ── The FloLess window (Electron shell) ─────────────────────────────────────────────────────────────────────────────
9325
+ Everything below hangs off `html.desktop`, which web/desktop-window.js adds ONLY when the shell's bridge is present, so
9326
+ a browser tab never sees a single rule of it. The header becomes the window's title bar: Windows draws the caption
9327
+ buttons over its right end, and the page is given the free area through env(titlebar-area-x / -width). */
9328
+ html.desktop header {
9329
+ -webkit-app-region: drag;
9330
+ flex-wrap: nowrap;
9331
+ /* Lay the header out inside the safe rectangle: nothing sits under the caption buttons. Without the env() values (no
9332
+ overlay) both fall back to the tab's own insets. */
9333
+ padding-left: max(var(--ham-inset), env(titlebar-area-x, 0px));
9334
+ padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 18px);
9335
+ }
9336
+ /* Every control, pill and popover stays clickable and keeps its tooltip (a drag region swallows both). */
9337
+ html.desktop header :is(button, a, input, select, textarea, .mode-switch, .wf-combo, .wf-popover, .wf-forked-pill,
9338
+ .wf-update-pill, .ws-quick-chips, #run-state) { -webkit-app-region: no-drag; }
9339
+
9340
+ /* The ≡ menu runs off the bottom of a short window: it scrolls instead (themed by the global scrollbar rule above). */
9341
+ html.desktop .menu {
9342
+ max-height: calc(100vh - var(--header-h) - 8px);
9343
+ overflow-y: auto;
9344
+ overscroll-behavior: contain;
9345
+ }
9346
+
9347
+ /* The one-time "Go fullscreen" nudge is for a browser tab; the window has its own maximise. ≡ → Enter full screen stays. */
9348
+ html.desktop .fullscreen-nudge { display: none; }
9349
+
9350
+ /* Narrow window: the header is one 40px row that cannot wrap, so what is decoration goes first and what is labelled goes
9351
+ icon-only. Nothing is removed: a collapsed label stays in the accessible name (visually hidden, never display:none).
9352
+ Thresholds are window widths: the caption buttons take ~140px, so a window of 960px leaves ~820px of header. */
9353
+ @media (max-width: 1240px) {
9354
+ html.desktop #wf-label, html.desktop #ws-proj-label {
9355
+ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
9356
+ }
9357
+ }
9358
+ @media (max-width: 1160px) {
9359
+ html.desktop .mode-switch button:not(.active) > span {
9360
+ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
9361
+ }
9362
+ html.desktop .mode-switch button:not(.active) { padding-left: 9px; padding-right: 9px; }
9363
+ }
9364
+ @media (max-width: 1100px) {
9365
+ html.desktop .ws-access-label {
9366
+ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
9367
+ }
9368
+ html.desktop #run-state { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
9369
+ }
9370
+ @media (max-width: 1060px) {
9371
+ html.desktop .brand .name, html.desktop .mode-switch button.active > span {
9372
+ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
9373
+ }
9374
+ html.desktop .mode-switch button.active { padding-left: 9px; padding-right: 9px; }
9375
+ html.desktop .controls { gap: 6px; }
9376
+ html.desktop .controls button { padding-left: 8px; padding-right: 8px; }
9377
+ html.desktop #wf-update, html.desktop #wf-forked, html.desktop #wf-agent-step {
9378
+ max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
9379
+ }
9380
+ /* The run state's words stay for screen readers (role=status); the Run and Stop buttons already show what is going on. */
9381
+ html.desktop #run-state {
9382
+ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
9383
+ }
9384
+ }
9385
+ @media (max-width: 1000px) {
9386
+ /* The pickers are the shrink sink: below their 180px floor they still truncate, so the run buttons never leave the safe area. */
9387
+ html.desktop .wf-combo { min-width: 120px; }
9388
+ }
package/dist/web/app.js CHANGED
@@ -144,7 +144,7 @@ function onboardingHtml() {
144
144
  return (
145
145
  `<div class="canvas-empty onboarding" data-kind="empty">` +
146
146
  `<div class="onb-headline">Your terminal AI builds the workflows.<br>You run and inspect them here.</div>` +
147
- `<div class="onb-sub">floless.app shows the canvas, triggers runs, and streams results. Compose in Claude Code or Codex; the browser is the window.</div>` +
147
+ `<div class="onb-sub">floless.app shows the canvas, triggers runs, and streams results. Compose in Claude Code or Codex; ${document.documentElement.classList.contains('desktop') ? 'this window shows what they build.' : 'the browser is the window.'}</div>` +
148
148
  `<div class="onb-tour">` +
149
149
  `<span class="onb-tour-hint">New here? The Guide looks at your setup in AI Chat and suggests where to start.</span>` +
150
150
  `<button class="onb-tour-btn" type="button" data-command-id="shell.ask-guide#the Workflows page" data-tip="Ask the Guide in AI Chat to look at your setup and suggest what to do first."><span class="onb-tour-label">Ask the Guide</span><span class="onb-tour-ico" aria-hidden="true">→</span></button>` +
@@ -1296,7 +1296,12 @@ function relAgo(iso) {
1296
1296
  function receiptItemText(prefix, value) {
1297
1297
  if (typeof value === 'string') return `${prefix}: ${value}`;
1298
1298
  if (!value || typeof value !== 'object') return `${prefix}: ${String(value)}`;
1299
- const parts = [value.id, value.code, value.message].filter((part) => typeof part === 'string' && part.trim());
1299
+ // #3097: the item (its id locates it) and what happened to it, in words. The code is for diagnosis and stays in the
1300
+ // receipt; it is shown only when nothing else says what happened, then as words ("unsupported-profile" → "unsupported
1301
+ // profile"), never as a bare token.
1302
+ const said = (part) => typeof part === 'string' && part.trim() ? part.trim() : '';
1303
+ const what = said(value.message) || said(value.code).replace(/[-_]+/g, ' ');
1304
+ const parts = [said(value.id), what].filter(Boolean);
1300
1305
  if (parts.length) return `${prefix}: ${parts.join(' · ')}`;
1301
1306
  try { return `${prefix}: ${JSON.stringify(value)}`; }
1302
1307
  catch { return `${prefix}: detail unavailable`; }
@@ -1389,6 +1394,9 @@ function handleMenuAction(action) {
1389
1394
  // #2046: the Guide — opens its conversation, or asks first (web/guide.js).
1390
1395
  case 'guide': if (window.flolessGuide) void window.flolessGuide.open({ returnFocus: document.getElementById('menu-btn') }); break;
1391
1396
  case 'fullscreen': toggleFullscreen(); break;
1397
+ // The FloLess window (web/desktop-window.js): one item per side, each shown only where it makes sense.
1398
+ case 'open-in-browser': window.flolessDesktopWindow?.openInBrowser(); break;
1399
+ case 'open-in-app': void window.flolessDesktopWindow?.openInApp(); break;
1392
1400
  // Asks first (unsaved work, a running workflow) — see web/leave-guard.js.
1393
1401
  case 'stop-app': if (window.flolessLeaveGuard) window.flolessLeaveGuard.stopApp(); break;
1394
1402
  }
@@ -1484,9 +1492,10 @@ document.getElementById('find-close').onclick = closeFind;
1484
1492
 
1485
1493
  const THEME_KEY = 'floless-demo-theme-v1';
1486
1494
 
1487
- function setTheme(theme) {
1495
+ // Paints a theme. Saving it is a separate step (setTheme): a theme the server told us about, or the dark default at boot, must not
1496
+ // be written back as if the person had chosen it (#2963).
1497
+ function applyTheme(theme) {
1488
1498
  document.documentElement.dataset.theme = theme;
1489
- localStorage.setItem(THEME_KEY, theme);
1490
1499
  document.querySelectorAll('.theme-btn').forEach(b => {
1491
1500
  b.classList.toggle('active', b.dataset.theme === theme);
1492
1501
  });
@@ -1496,9 +1505,23 @@ function setTheme(theme) {
1496
1505
  }
1497
1506
  }
1498
1507
 
1508
+ // The person's choice: painted now, kept in this browser for first paint, and shared with the other FloLess client through the server.
1509
+ function setTheme(theme) {
1510
+ applyTheme(theme);
1511
+ if (globalThis.flolessPrefs) globalThis.flolessPrefs.set('theme', theme);
1512
+ else { try { localStorage.setItem(THEME_KEY, theme); } catch { /* private mode */ } }
1513
+ }
1514
+
1499
1515
  function initTheme() {
1500
- const t = localStorage.getItem(THEME_KEY) || 'dark';
1501
- setTheme(t);
1516
+ let t = 'dark';
1517
+ try { t = (globalThis.flolessPrefs ? globalThis.flolessPrefs.get('theme') : localStorage.getItem(THEME_KEY)) || 'dark'; } catch { /* private mode */ }
1518
+ applyTheme(t === 'light' ? 'light' : 'dark');
1519
+ // The other client changed the theme (or the server answered after first paint): follow it, without saving it again.
1520
+ globalThis.flolessPrefs?.onChange((keys) => {
1521
+ if (!keys.includes('theme')) return;
1522
+ const next = globalThis.flolessPrefs.get('theme');
1523
+ if ((next === 'light' || next === 'dark') && document.documentElement.dataset.theme !== next) applyTheme(next);
1524
+ });
1502
1525
  }
1503
1526
 
1504
1527
  document.querySelectorAll('.theme-btn').forEach(b => {
@@ -1536,7 +1559,7 @@ async function revealStartOnLogin() {
1536
1559
  // Read the setting first: if it has gone (or can't be read), say so and leave Routines open.
1537
1560
  await refreshStartup();
1538
1561
  if (!$startupRow || $startupRow.hidden || !$startupToggle) {
1539
- showToast('Start on startup isn’t available on this computer right now, so FloLess runs routines only while you keep it open.', 'warn');
1562
+ showToast('Start with Windows isn’t available on this computer right now, so FloLess runs routines only while you keep it open.', 'warn');
1540
1563
  return;
1541
1564
  }
1542
1565
  // Only the Routines list carries the link (the editor would drop a routine being written).
@@ -1566,13 +1589,21 @@ if ($startupToggle) {
1566
1589
  body: JSON.stringify({ enabled: want }),
1567
1590
  });
1568
1591
  const d = await r.json().catch(() => ({}));
1569
- if (!r.ok || !d.ok) throw new Error(d.error || 'request failed');
1592
+ if (!r.ok || !d.ok) {
1593
+ // #3070: the server reads Windows back and says what is really true; show that, never the flip we guessed.
1594
+ const failure = new Error('autostart-change-refused');
1595
+ failure.enabled = typeof d.enabled === 'boolean' ? d.enabled : null;
1596
+ // Plain words written by this route; `saved` marks them (any other failing body is not ours to show).
1597
+ failure.userMessage = typeof d.saved === 'boolean' && typeof d.error === 'string' && d.error ? d.error : null;
1598
+ throw failure;
1599
+ }
1570
1600
  $startupToggle.checked = !!d.enabled; // trust server truth (schtasks re-queried)
1571
1601
  // Success is silent — the switch position IS the confirmation (matches Theme).
1572
1602
  // UX review 2026-05-31: a preference write doesn't rise to a toast.
1573
1603
  } catch (e) {
1574
- $startupToggle.checked = !want; // revert the optimistic flip
1575
- showToast('We couldn’t save that startup setting. Try again. If it keeps happening, reopen FloLess.', 'err');
1604
+ $startupToggle.checked = typeof e?.enabled === 'boolean' ? e.enabled : !want; // what Windows really has, else revert the optimistic flip
1605
+ showToast(e?.userMessage
1606
+ || 'We couldn’t save that startup setting. Try again. If it keeps happening, reopen FloLess.', 'err');
1576
1607
  } finally {
1577
1608
  $startupToggle.disabled = false;
1578
1609
  }
@@ -1647,6 +1678,7 @@ function nudgeAlreadySeen() {
1647
1678
  // was never dismissed/used. Delayed ~2s so the layout settles first.
1648
1679
  function maybeShowFsNudge() {
1649
1680
  if (nudgeAlreadySeen()) return;
1681
+ if (document.documentElement.classList.contains('desktop')) return; // the window has its own maximise
1650
1682
  setTimeout(() => {
1651
1683
  if (!$fsNudge || !$fsNudge.isConnected || !$fsNudge.hidden) return;
1652
1684
  if (nudgeAlreadySeen() || isFullscreen()) return;
@@ -1692,8 +1724,13 @@ function userSafeToastMessage(msg, type) {
1692
1724
  const text = String(msg ?? '').trim();
1693
1725
  // #2868: the reason behind raw text is unknown, so this says so. It used to blame a lost connection and promise the
1694
1726
  // work was still there, neither of which this line can know.
1727
+ // #3097: a status number in brackets ("failed (500)") or after "answered"/"returned", a lost fetch and an exit code are
1728
+ // diagnostics too.
1729
+ // A bare "(450)" is not matched alone: a detailer's dimension can sit in brackets; it must follow "failed"/"error".
1695
1730
  if ((type === 'warn' || type === 'err')
1696
- && /\b(?:http\s*\d+|error:|exception|stack trace|server log|status code|undefined|null|subscription required|unauthori[sz]ed|forbidden)\b/i.test(text)) {
1731
+ && (/\b(?:http\s*\d+|error:|exception|stack trace|server log|status code|exit code|failed to fetch|undefined|null|subscription required|unauthori[sz]ed|forbidden)\b/i.test(text)
1732
+ || /\((?:http|error|status)\s*[45]\d\d\)|\b(?:failed|error)\s*\([45]\d\d\)|\b(?:answered|returned|status)\s+[45]\d\d\b/i.test(text))) {
1733
+ console.warn('[toast] raw text replaced with the unknown-failure sentence:', text);
1697
1734
  return UNKNOWN_FAILURE_TOAST;
1698
1735
  }
1699
1736
  return text || UNKNOWN_FAILURE_TOAST;
@@ -2023,10 +2060,13 @@ let workspaceRootInterruption = '';
2023
2060
  async function workspaceRootApi(path, opts) {
2024
2061
  await globalThis.flolessStartupAdmission?.admit(path, { method: opts?.method, signal: opts?.signal });
2025
2062
  const response = await fetch(path, { headers: { 'content-type': 'application/json' }, ...opts });
2026
- const body = await response.json().catch(() => ({ ok: false, error: `Unreadable response (HTTP ${response.status})` }));
2063
+ // #3097: an unreadable answer and an unexplained failure read as the shared sentence, never "HTTP N".
2064
+ const body = await response.json().catch(() => ({ ok: false, code: 'response-unreadable' }));
2027
2065
  if (!response.ok || body.ok === false) {
2028
- const error = new Error(body.error || `HTTP ${response.status}`);
2066
+ const method = String(opts?.method || 'GET').toUpperCase();
2067
+ const error = new Error(body.error || failureCopy({ status: response.status, body }, { retrySafe: method === 'GET' || method === 'HEAD' }).text);
2029
2068
  error.body = body;
2069
+ error.status = response.status;
2030
2070
  throw error;
2031
2071
  }
2032
2072
  return body;
@@ -220,13 +220,16 @@
220
220
  });
221
221
  }
222
222
  if (!result.response.ok) {
223
- const message = result.body.error || `Could not read AWARE upgrade status (HTTP ${result.response.status}).`;
223
+ // #3097: the server's reason when it gave one; never a status number. The outcome is unknown here, so the
224
+ // person is asked to look again before starting another upgrade.
225
+ const message = result.body.error || 'FloLess lost track of the AWARE upgrade, so it can’t say whether it finished. Reopen this window to check before starting another upgrade.';
226
+ console.warn('[aware-update] status read failed', result.response.status, result.body);
224
227
  return emit({ status: 'runtime-failed', transaction, target: state.target, observedVersion: null,
225
228
  // Identity is immutable, and DEFAULTED because start()/resume() emit before any poll
226
229
  // has supplied it — copying a bare `state.operation` there copies undefined, which
227
230
  // renders as a runtime upgrade anyway. The defaults match normalize()'s own.
228
231
  operation: state.operation || 'runtime-update', origin: state.origin || 'user',
229
- error: { code: 'status-request-failed', message: String(message) } });
232
+ error: { code: 'status-request-failed', status: result.response.status, message: String(message) } });
230
233
  }
231
234
  let next;
232
235
  try { next = normalize(result.body, transaction); }
@@ -299,12 +302,14 @@
299
302
  }
300
303
  if (!result) return state;
301
304
  if (!result.response.ok) {
305
+ console.warn('[aware-update] start refused', result.response.status, result.body);
302
306
  // Spread from `identity`, not from `state`: emit() replaces state wholesale, so a refused
303
307
  // RECOVERY that reported no operation was indistinguishable from a refused upgrade — and a
304
308
  // hard-coded 'runtime-update' was worse still, because it SHADOWED the painters' fallback.
305
309
  return emit({ ...identity, status: 'runtime-failed', origin: 'user',
306
- error: { code: String(result.body.code || 'start-refused'),
307
- message: String(result.body.error || result.body.message || `AWARE could not start (HTTP ${result.response.status}).`) } });
310
+ error: { code: String(result.body.code || 'start-refused'), status: result.response.status,
311
+ // #3097: never a status number. Refused or not, the server gave no reason, so whether it started is unknown.
312
+ message: String(result.body.error || result.body.message || 'FloLess couldn’t confirm that the AWARE upgrade started. Reopen this window to see whether it is running before you try again. If it keeps happening, use Report an issue at the bottom of the window.') } });
308
313
  }
309
314
  const transaction = transactionOf(result.body) || transactionOf(payloadOf(result.body));
310
315
  if (!transaction) {
@@ -433,7 +438,10 @@
433
438
 
434
439
  async function check() {
435
440
  const result = await request('/api/aware/update');
436
- if (!result.response.ok) throw new Error(result.body.error || `Could not check AWARE updates (HTTP ${result.response.status}).`);
441
+ if (!result.response.ok) {
442
+ throw Object.assign(new Error(result.body.error || 'FloLess couldn’t check for AWARE updates just now. Try again in a moment.'),
443
+ { status: result.response.status, body: result.body });
444
+ }
437
445
  return result.body;
438
446
  }
439
447