@floless/app 0.167.0 → 0.169.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autostart.mjs +169 -63
- package/cli-actions.mjs +8 -1
- package/desktop-shell.mjs +335 -0
- package/dist/floless-server.cjs +73121 -55759
- package/dist/schemas/steel.model.v2.schema.json +2 -1
- package/dist/skills/floless-app-onboarding/SKILL.md +13 -4
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +3 -0
- package/dist/skills/floless-app-rfi/SKILL.md +4 -2
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +21 -2
- package/dist/skills/floless-app-ui/SKILL.md +2 -2
- package/dist/skills/floless-app-workflows/SKILL.md +2 -2
- package/dist/templates/college-phase-exporter.flo +7 -2
- package/dist/templates/trimble-list-projects.flo +10 -2
- package/dist/web/agent-steps.js +2 -2
- package/dist/web/agents.js +50 -14
- package/dist/web/app.css +209 -11
- package/dist/web/app.js +99 -16
- package/dist/web/aware-update-client.js +14 -6
- package/dist/web/aware.js +583 -69
- package/dist/web/chat.css +12 -1
- package/dist/web/chat.js +627 -96
- package/dist/web/commands-drawing-check.js +3 -0
- package/dist/web/commands-filter.js +5 -5
- package/dist/web/commands-shell.js +283 -14
- package/dist/web/commands-steel.js +9 -2
- package/dist/web/commands-vector.js +69 -0
- package/dist/web/desktop-window.js +435 -0
- package/dist/web/drawing-check-editor.html +10 -0
- package/dist/web/drawing-check-editor.js +515 -187
- package/dist/web/failure-copy.js +33 -2
- package/dist/web/flo-3d.js +310 -0
- package/dist/web/flo-card.js +72 -0
- package/dist/web/guide.js +78 -10
- package/dist/web/index.html +90 -10
- package/dist/web/instructor.js +4 -1
- package/dist/web/leave-guard.js +347 -14
- package/dist/web/model-editor-steel-adapter.js +41 -1
- package/dist/web/model-viewport-toolbar.js +11 -0
- package/dist/web/pages.js +21 -14
- package/dist/web/panels.js +5 -2
- package/dist/web/pdf-view.js +421 -0
- package/dist/web/project-history.js +3 -2
- package/dist/web/project-modules.js +5 -3
- package/dist/web/project-reconciliation.js +1 -1
- package/dist/web/project-rfis.js +4 -2
- package/dist/web/project-workflows.js +8 -4
- package/dist/web/reference-geometry-worker.js +11 -2
- package/dist/web/renderers.js +6 -0
- package/dist/web/report-csp.js +68 -0
- package/dist/web/revit-editor.html +1 -0
- package/dist/web/revit-editor.js +37 -8
- package/dist/web/run-history.js +2 -3
- package/dist/web/shared-prefs.js +364 -0
- package/dist/web/steel-3d-flo.js +309 -0
- package/dist/web/steel-3d-view.js +159 -0
- package/dist/web/steel-editor.html +329 -47
- package/dist/web/steel-filter-flo.js +74 -18
- package/dist/web/steel-filter.html +22 -6
- package/dist/web/tab-signal.js +36 -1
- package/dist/web/tekla-editor.html +1 -0
- package/dist/web/terminal-requests.js +78 -0
- package/dist/web/tool-updates.js +160 -38
- package/dist/web/vector-3d.html +14 -3
- package/dist/web/vector-editor.html +60 -10
- package/dist/web/vendor/README.md +23 -0
- package/dist/web/vendor/pdfjs/LICENSE +177 -0
- package/dist/web/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/LICENSE +36 -0
- package/dist/web/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- package/dist/web/vendor/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
- package/dist/web/vendor/pdfjs/iccs/LICENSE +116 -0
- package/dist/web/vendor/pdfjs/pdf.min.mjs +28 -0
- package/dist/web/vendor/pdfjs/pdf.worker.mjs +64908 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_JBIG2 +196 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_QCMS +21 -0
- package/dist/web/vendor/pdfjs/wasm/jbig2.wasm +0 -0
- package/dist/web/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js +15 -0
- package/dist/web/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
- package/dist/web/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
- package/dist/web/vendor/pdfjs/wasm/qcms_bg.wasm +0 -0
- package/dist/web/workspace-root-management.js +1 -1
- package/dist/web/workspaces.js +792 -165
- package/home-env.mjs +28 -0
- package/install-path.mjs +59 -3
- package/launch-starting-page.mjs +35 -15
- package/launch.mjs +363 -51
- package/package.json +9 -8
- package/pin-home.mjs +6 -0
- package/post-update-marker.mjs +14 -0
- package/preferences-file.mjs +289 -0
- 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); }
|
|
@@ -3355,6 +3356,11 @@
|
|
|
3355
3356
|
.wf-upd-row[data-state="done"] .tool-updates-needs-sentence { color: var(--ok); }
|
|
3356
3357
|
.wf-upd-row[data-next="undo-anyway"] .tool-updates-needs-sentence { color: var(--warn-text, var(--warn)); }
|
|
3357
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: "· "; }
|
|
3358
3364
|
.wf-upd-new { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
3359
3365
|
.wf-upd-warn { color: var(--warn-text, var(--warn)); font-size: 11.5px; line-height: 1.4; }
|
|
3360
3366
|
.wf-upd-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; max-width: 55%; }
|
|
@@ -3433,6 +3439,9 @@
|
|
|
3433
3439
|
.tool-updates-progress { flex: none; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
|
|
3434
3440
|
.tool-updates-progress-head { margin-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.45; }
|
|
3435
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); }
|
|
3436
3445
|
.tool-updates-progress-hint { margin-top: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
|
|
3437
3446
|
.tool-updates-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
|
|
3438
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; }
|
|
@@ -3545,7 +3554,7 @@
|
|
|
3545
3554
|
/* #2062: routines run only while FloLess is running — said in the Routines list and the editor. */
|
|
3546
3555
|
.rtn-local-note { margin: -4px 0 12px; font-size: 11.5px; color: var(--text-dim); line-height: 1.55; }
|
|
3547
3556
|
.rtn-local-hint { margin: 2px 0 12px; }
|
|
3548
|
-
/* The ≡ menu's Start
|
|
3557
|
+
/* The ≡ menu's Start with Windows row, pointed at from Routines: a brief accent ring, then nothing. */
|
|
3549
3558
|
.menu-startup.is-pointed { animation: menu-startup-point 1.6s ease-out 1; border-radius: 6px; }
|
|
3550
3559
|
@keyframes menu-startup-point {
|
|
3551
3560
|
0%, 60% { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft, transparent); }
|
|
@@ -3891,6 +3900,27 @@
|
|
|
3891
3900
|
.leave-guard-note { margin: 10px 0 0; font: 12.5px/1.45 var(--ui); color: var(--text); }
|
|
3892
3901
|
.leave-guard-running { margin: 12px 0 0; padding: 6px 10px; border-left: 2px solid var(--warn);
|
|
3893
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; }
|
|
3894
3924
|
|
|
3895
3925
|
/* ── "FloLess has stopped" — the terminal screen after Stop FloLess (the sign-in gate's recipe) ── */
|
|
3896
3926
|
#app-stopped { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
|
|
@@ -4196,7 +4226,7 @@
|
|
|
4196
4226
|
}
|
|
4197
4227
|
/* #2399: "Suggestions" On / Quiet / Off in the ≡ menu: the Theme segmented look with text labels. Its own class, so
|
|
4198
4228
|
the theme buttons' click handler never sees these. */
|
|
4199
|
-
.suggest-btn {
|
|
4229
|
+
.suggest-btn, .client-btn {
|
|
4200
4230
|
background: transparent;
|
|
4201
4231
|
border: none;
|
|
4202
4232
|
min-width: 38px;
|
|
@@ -4208,12 +4238,14 @@
|
|
|
4208
4238
|
border-radius: 3px;
|
|
4209
4239
|
cursor: pointer;
|
|
4210
4240
|
}
|
|
4211
|
-
.suggest-btn:hover { color: var(--text); }
|
|
4212
|
-
.suggest-btn.active {
|
|
4241
|
+
.suggest-btn:hover, .client-btn:hover { color: var(--text); }
|
|
4242
|
+
.suggest-btn.active, .client-btn.active {
|
|
4213
4243
|
background: var(--accent);
|
|
4214
4244
|
color: white;
|
|
4215
4245
|
}
|
|
4216
|
-
.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; }
|
|
4217
4249
|
.menu-suggest-note { padding: 0 9px 7px; font-size: 11px; color: var(--text-muted); }
|
|
4218
4250
|
.menu-suggest-note[hidden] { display: none; }
|
|
4219
4251
|
|
|
@@ -6216,7 +6248,15 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
6216
6248
|
.wf-draft-failure:focus { outline:none; }
|
|
6217
6249
|
/* The Draft chip is a state, not a warning: neutral, not the accent. */
|
|
6218
6250
|
.ws-card .ws-kind.wf-kind.is-draft, .wf-draft-where .ws-kind.is-draft { color:var(--text-muted); border-color:var(--border-strong); }
|
|
6219
|
-
|
|
6251
|
+
/* The text column and, on a card of yours, the ⋯ on the right, as on a project card. */
|
|
6252
|
+
.ws-card.wf-card .ws-body { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
|
|
6253
|
+
.ws-card.wf-card .wf-card-text { flex:1 1 auto; min-width:0; }
|
|
6254
|
+
.ws-card .ws-kebab.wf-kebab { cursor:pointer; }
|
|
6255
|
+
.ws-card .ws-kebab.wf-kebab:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
|
|
6256
|
+
.ws-card .ws-kebab.wf-kebab[aria-expanded="true"] { border-color:var(--border-strong); color:var(--text); }
|
|
6257
|
+
/* The open menu covers the card's name, so the card it belongs to keeps its hover border while the menu is open. */
|
|
6258
|
+
#wf-landing .ws-card.wf-card:has(.wf-kebab[aria-expanded="true"]) { border-color:color-mix(in srgb, var(--part-mark) 60%, transparent); }
|
|
6259
|
+
.wf-card-menu .menu-item:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
|
|
6220
6260
|
.ws-card.wf-card .ws-kind.wf-kind { position:static; display:inline-block; margin-bottom:6px; }
|
|
6221
6261
|
/* "Scheduled" is a status beside the origin chip, so it recedes: same chip, neutral ink. Not --ok, which the Routines
|
|
6222
6262
|
window uses for "last run succeeded", something this card cannot know. */
|
|
@@ -6321,7 +6361,12 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
6321
6361
|
.graft-check-picker { display:grid; gap:8px; margin-top:8px; max-height:260px; overflow:auto; scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
|
|
6322
6362
|
.graft-success-actions { display:grid; gap:6px; margin-top:12px; }
|
|
6323
6363
|
#lib-discover-local { margin-right:0 !important; }
|
|
6324
|
-
.ws-spine { display:flex; align-items:center; gap:10px; }
|
|
6364
|
+
.ws-spine { display:flex; align-items:center; gap:10px; min-width:0; }
|
|
6365
|
+
/* When the header is tight the project name gives way (it has its own ellipsis), so the Quick chip and Review & approve
|
|
6366
|
+
stay whole instead of sliding under the account button (#2554). Any flex shrink, even a fraction of a pixel, would
|
|
6367
|
+
ellipsize the chip, so it does not shrink; its cap is what ellipsizes an unusually long one. */
|
|
6368
|
+
#ws-proj-combo { min-width:140px; flex-shrink:40; }
|
|
6369
|
+
#ws-quick.ws-quick-chips { flex-shrink:0; max-width:34ch; }
|
|
6325
6370
|
#ws-proj-name { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
6326
6371
|
#ws-proj-trigger { display:inline-flex; align-items:center; gap:8px; }
|
|
6327
6372
|
|
|
@@ -6577,11 +6622,30 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
|
|
|
6577
6622
|
[data-theme="light"] .quick-pill { color:#b45309; border-color:color-mix(in srgb, #b45309 40%, transparent); background:color-mix(in srgb, #b45309 7%, transparent); }
|
|
6578
6623
|
/* On a selected (accent-filled) picker row the amber would sit on blue: take the row's own text colour instead. */
|
|
6579
6624
|
.export-source-option.selected .quick-pill { color:inherit; border-color:currentColor; background:transparent; }
|
|
6625
|
+
/* #2554 slice 2: which drawing files a model did not read. The Quick pill's shape, but neutral: amber is the Quick label's
|
|
6626
|
+
(AI decided), and this is a different fact. Its outline is its own muted text at 45%, as the Quick pill's is its amber
|
|
6627
|
+
(the border token alone vanishes on a dark card, and with it the dashed state). Dashed when FloLess could not tell. One set of tokens
|
|
6628
|
+
reads in both themes. */
|
|
6629
|
+
.coverage-pill { display:inline-flex; align-items:center; margin-left:6px; padding:0 7px; border:1px solid color-mix(in srgb, var(--text-muted) 45%, transparent);
|
|
6630
|
+
border-radius:999px; background:transparent; color:var(--text-muted); font-size:10.5px; font-weight:500;
|
|
6631
|
+
line-height:16px; white-space:nowrap; vertical-align:middle; cursor:default; }
|
|
6632
|
+
.coverage-pill.is-unknown { border-style:dashed; }
|
|
6633
|
+
.export-source-option.selected .coverage-pill { color:inherit; border-color:currentColor; }
|
|
6634
|
+
.ws-card .ws-meta.ws-quick > .coverage-pill:first-child,
|
|
6635
|
+
.ws-quick-chips .coverage-pill,
|
|
6636
|
+
.hd-quick .coverage-pill { margin-left:0; }
|
|
6637
|
+
.ws-quick-chips .coverage-pill { min-width:0; flex:0 1 auto; display:inline-block; overflow:hidden; text-overflow:ellipsis; }
|
|
6638
|
+
/* Its Exports note: the Quick note's box with the pill's neutral outline. The light pair outranks the Quick note's own
|
|
6639
|
+
light amber rules, which come later in this file. */
|
|
6640
|
+
.export-quick-note.is-coverage { border-color:color-mix(in srgb, var(--text-muted) 35%, transparent); }
|
|
6641
|
+
.export-quick-note.is-coverage b { color:var(--text); }
|
|
6642
|
+
[data-theme="light"] .export-quick-note.is-coverage { border-color:color-mix(in srgb, var(--text-muted) 35%, transparent); }
|
|
6643
|
+
[data-theme="light"] .export-quick-note.is-coverage b { color:var(--text); }
|
|
6580
6644
|
.ws-card .ws-meta.ws-quick { white-space:normal; overflow:visible; }
|
|
6581
6645
|
.ws-card .ws-meta.ws-quick .quick-pill,
|
|
6582
6646
|
.ws-quick-chips .quick-pill,
|
|
6583
6647
|
.hd-quick .quick-pill { margin-left:0; }
|
|
6584
|
-
/*
|
|
6648
|
+
/* Each chip ellipsizes inside the header's cap (#ws-quick above), its full text staying in the tip. */
|
|
6585
6649
|
.ws-quick-chips { display:inline-flex; align-items:center; gap:6px; min-width:0; flex:0 1 auto; overflow:hidden; }
|
|
6586
6650
|
.ws-quick-chips .quick-pill { min-width:0; flex:0 1 auto; display:inline-block; overflow:hidden; text-overflow:ellipsis; }
|
|
6587
6651
|
.ws-quick-chips[hidden] { display:none; }
|
|
@@ -7924,9 +7988,68 @@ tr.hist-diff-row[hidden] { display:none; }
|
|
|
7924
7988
|
.kb-view-x:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
|
|
7925
7989
|
.kb-view-body { flex:1; min-height:0; display:flex; flex-direction:column; background:var(--bg); }
|
|
7926
7990
|
|
|
7927
|
-
/*
|
|
7928
|
-
|
|
7929
|
-
|
|
7991
|
+
/* #3018: FloLess's own PDF viewer (web/pdf-view.js), shared by the Knowledge preview and AI Chat's cited-file viewer.
|
|
7992
|
+
Every part of it is FloLess's, so every part is themed: the toolbar, the page field, the scroll area's scrollbars. Only
|
|
7993
|
+
the page itself is white, as the document is. */
|
|
7994
|
+
.kb-view-body > .pdf-view { flex:1; min-height:0; }
|
|
7995
|
+
.pdf-view { display:flex; flex-direction:column; min-height:0; font:11px/1.4 var(--ui); color:var(--text); }
|
|
7996
|
+
.pdf-view-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:6px 8px;
|
|
7997
|
+
border-bottom:1px solid var(--border); background:var(--surface); }
|
|
7998
|
+
.pdf-view-name { min-width:0; max-width:40%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
|
|
7999
|
+
font-weight:600; color:var(--text); }
|
|
8000
|
+
.pdf-view-group { display:flex; align-items:center; gap:4px; }
|
|
8001
|
+
.pdf-view-group[hidden], .pdf-view-name[hidden] { display:none; }
|
|
8002
|
+
.pdf-view-btn { font:inherit; min-width:28px; padding:4px 8px; color:var(--text-muted); background:transparent;
|
|
8003
|
+
border:1px solid var(--border-strong); border-radius:5px; cursor:pointer; text-decoration:none; text-align:center; line-height:1.3; }
|
|
8004
|
+
.pdf-view-btn:hover:not(:disabled) { color:var(--accent-bright); border-color:var(--accent); background:var(--accent-soft); }
|
|
8005
|
+
.pdf-view-btn:disabled { color:var(--text-dim); cursor:default; }
|
|
8006
|
+
.pdf-view-btn:focus-visible, .pdf-view-page:focus-visible, .pdf-view-password-field:focus-visible {
|
|
8007
|
+
outline:2px solid var(--accent); outline-offset:1px; }
|
|
8008
|
+
.pdf-view-btn[aria-pressed="true"] { color:var(--text); background:var(--surface-3); }
|
|
8009
|
+
.pdf-view-download { margin-left:auto; }
|
|
8010
|
+
.pdf-view-page, .pdf-view-password-field { font:inherit; color:var(--text); background:var(--surface-2);
|
|
8011
|
+
border:1px solid var(--border-strong); border-radius:5px; padding:3px 6px; }
|
|
8012
|
+
.pdf-view-page { width:4ch; text-align:center; font-family:var(--mono); }
|
|
8013
|
+
.pdf-view-total, .pdf-view-level { color:var(--text-muted); font-family:var(--mono); font-variant-numeric:tabular-nums; }
|
|
8014
|
+
.pdf-view-level { min-width:4.5ch; text-align:center; }
|
|
8015
|
+
.pdf-view-stage { position:relative; flex:1; min-height:0; overflow:auto; padding:12px; background:var(--surface-2);
|
|
8016
|
+
display:flex; flex-direction:column; align-items:flex-start; gap:12px;
|
|
8017
|
+
scrollbar-width:thin; scrollbar-color:var(--text-dim) var(--surface-2); scrollbar-gutter:stable; }
|
|
8018
|
+
.pdf-view-stage::-webkit-scrollbar { width:8px; height:8px; }
|
|
8019
|
+
.pdf-view-stage::-webkit-scrollbar-track { background:var(--surface-2); }
|
|
8020
|
+
.pdf-view-stage::-webkit-scrollbar-thumb { background:var(--text-dim); border-radius:8px; }
|
|
8021
|
+
.pdf-view-stage::-webkit-scrollbar-corner { background:var(--surface-2); }
|
|
8022
|
+
.pdf-view-stage:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
|
|
8023
|
+
.pdf-view-sheet { position:relative; flex:none; margin-inline:auto; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.35); }
|
|
8024
|
+
.pdf-view-canvas { display:block; }
|
|
8025
|
+
/* A page pdf.js could not draw: said on the page, in the page's own place. */
|
|
8026
|
+
.pdf-view-sheet-failed { position:absolute; inset:auto 16px 50%; margin:0; padding:8px 10px; text-align:center;
|
|
8027
|
+
color:var(--text); background:var(--surface-2); border:1px solid var(--border-strong); border-radius:5px; }
|
|
8028
|
+
.pdf-view-status { margin:auto; max-width:46ch; text-align:center; color:var(--text-muted); }
|
|
8029
|
+
.pdf-view-password { display:flex; gap:6px; }
|
|
8030
|
+
.pdf-view-password[hidden] { display:none; }
|
|
8031
|
+
.pdf-view-live { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
|
|
8032
|
+
[data-theme="light"] .pdf-view { --text-muted:#475569; }
|
|
8033
|
+
[data-theme="light"] .pdf-view-sheet { box-shadow:0 1px 3px rgba(15,23,42,.18); }
|
|
8034
|
+
/* pdf.js's text layer: invisible text laid exactly over the drawn page, so it can be selected and copied. Taken from
|
|
8035
|
+
pdf.js's own pdf_viewer.css (6.4.299), only the rules this viewer uses. */
|
|
8036
|
+
.pdf-view .textLayer { position:absolute; inset:0; overflow:clip; line-height:1; text-align:initial;
|
|
8037
|
+
-webkit-text-size-adjust:none; text-size-adjust:none; forced-color-adjust:none; transform-origin:0 0; z-index:0;
|
|
8038
|
+
--min-font-size:1; --text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));
|
|
8039
|
+
--min-font-size-inv:calc(1 / var(--min-font-size)); }
|
|
8040
|
+
.pdf-view .textLayer :is(span, br) { color:transparent; position:absolute; white-space:pre; cursor:text;
|
|
8041
|
+
transform-origin:0% 0%; user-select:text; }
|
|
8042
|
+
.pdf-view .textLayer > :not(.markedContent), .pdf-view .textLayer .markedContent span:not(.markedContent) {
|
|
8043
|
+
z-index:1; --font-height:0; font-size:calc(var(--text-scale-factor) * var(--font-height));
|
|
8044
|
+
--scale-x:1; --rotate:0deg; transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
|
|
8045
|
+
.pdf-view .textLayer .markedContent { display:contents; }
|
|
8046
|
+
.pdf-view .textLayer span[role="img"] { user-select:none; cursor:default; }
|
|
8047
|
+
.pdf-view .textLayer ::selection { background:color-mix(in srgb, var(--accent) 35%, transparent); color:transparent; }
|
|
8048
|
+
.pdf-view .textLayer .endOfContent { display:block; position:absolute; inset:100% 0 0; z-index:0; cursor:default; user-select:none; }
|
|
8049
|
+
@media (max-width:420px) {
|
|
8050
|
+
.pdf-view-name { max-width:100%; flex-basis:100%; }
|
|
8051
|
+
.pdf-view-btn { min-height:32px; }
|
|
8052
|
+
}
|
|
7930
8053
|
.kb-view-img-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center;
|
|
7931
8054
|
padding:20px; overflow:hidden; }
|
|
7932
8055
|
.kb-view-img { max-width:100%; max-height:100%; object-fit:contain; }
|
|
@@ -8114,6 +8237,8 @@ button.kb-wikilink:focus-visible, .ai-chat-source-viewer button.kb-wikilink:focu
|
|
|
8114
8237
|
.company-knowledge-confirm span { color:var(--text-muted); font-size:11px; line-height:1.5; }
|
|
8115
8238
|
.company-knowledge-error { margin-top:10px; padding:8px 10px; border:1px solid color-mix(in srgb, var(--err) 35%, transparent);
|
|
8116
8239
|
border-radius:6px; color:var(--err); background:color-mix(in srgb, var(--err) 7%, var(--surface)); font-size:11px; }
|
|
8240
|
+
.company-knowledge-status { margin-top:10px; color:var(--text-dim); font-size:11px; line-height:1.45; }
|
|
8241
|
+
.company-knowledge-status[hidden] { display:none; }
|
|
8117
8242
|
.company-knowledge-dialog[aria-busy="true"] .company-knowledge-body { opacity:.7; }
|
|
8118
8243
|
.company-knowledge-dialog > .modal-actions { flex:none; }
|
|
8119
8244
|
@media (max-width:720px) {
|
|
@@ -8900,6 +9025,13 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
|
|
|
8900
9025
|
.ac-dialog .modal-actions button.primary[aria-disabled="true"]:hover { background: var(--accent); box-shadow: none; }
|
|
8901
9026
|
.ac-dialog .modal-actions { flex: none; flex-wrap: wrap; }
|
|
8902
9027
|
.ac-dialog .modal-actions #ac-cancel { margin-right: auto; }
|
|
9028
|
+
/* #2732: export past the archive bounds. Built on .ac-dialog; tokens only, both themes. Long folder paths wrap, never scroll. */
|
|
9029
|
+
.xo-dialog .xo-path { font-family: var(--mono); font-size: 11.5px; background: var(--surface-2); color: var(--text); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
|
|
9030
|
+
.xo-choices { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
|
9031
|
+
.xo-choices li { font-size: 12px; line-height: 1.5; color: var(--text-muted); padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
|
|
9032
|
+
.xo-choices li b { color: var(--text); font-weight: 600; }
|
|
9033
|
+
.xo-left-out { font-size: 11.5px; line-height: 1.5; color: var(--text-dim); margin: -4px 0 12px; overflow-wrap: anywhere; }
|
|
9034
|
+
.xo-dialog .modal-actions #xo-cancel { margin-right: auto; }
|
|
8903
9035
|
.ac-vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
8904
9036
|
|
|
8905
9037
|
/* ── Two steps share one name (#2314, epic #2241 slice 3c): the rename ask. Built on the AI step confirmation's dialog (.ac-dialog)
|
|
@@ -9229,3 +9361,69 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
|
|
|
9229
9361
|
.company-cat-edit { margin-left:calc(var(--kb-depth, 0) * 12px); }
|
|
9230
9362
|
.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); }
|
|
9231
9363
|
.company-pop.hist-confirm { padding:10px 12px; max-width:320px; }
|
|
9364
|
+
|
|
9365
|
+
/* ── The FloLess window (Electron shell) ─────────────────────────────────────────────────────────────────────────────
|
|
9366
|
+
Everything below hangs off `html.desktop`, which web/desktop-window.js adds ONLY when the shell's bridge is present, so
|
|
9367
|
+
a browser tab never sees a single rule of it. The header becomes the window's title bar: Windows draws the caption
|
|
9368
|
+
buttons over its right end, and the page is given the free area through env(titlebar-area-x / -width). */
|
|
9369
|
+
html.desktop header {
|
|
9370
|
+
-webkit-app-region: drag;
|
|
9371
|
+
flex-wrap: nowrap;
|
|
9372
|
+
/* Lay the header out inside the safe rectangle: nothing sits under the caption buttons. Without the env() values (no
|
|
9373
|
+
overlay) both fall back to the tab's own insets. */
|
|
9374
|
+
padding-left: max(var(--ham-inset), env(titlebar-area-x, 0px));
|
|
9375
|
+
padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 18px);
|
|
9376
|
+
}
|
|
9377
|
+
/* Every control, pill and popover stays clickable and keeps its tooltip (a drag region swallows both). */
|
|
9378
|
+
html.desktop header :is(button, a, input, select, textarea, .mode-switch, .wf-combo, .wf-popover, .wf-forked-pill,
|
|
9379
|
+
.wf-update-pill, .ws-quick-chips, #run-state) { -webkit-app-region: no-drag; }
|
|
9380
|
+
|
|
9381
|
+
/* The ≡ menu runs off the bottom of a short window: it scrolls instead (themed by the global scrollbar rule above). */
|
|
9382
|
+
html.desktop .menu {
|
|
9383
|
+
max-height: calc(100vh - var(--header-h) - 8px);
|
|
9384
|
+
overflow-y: auto;
|
|
9385
|
+
overscroll-behavior: contain;
|
|
9386
|
+
}
|
|
9387
|
+
|
|
9388
|
+
/* The one-time "Go fullscreen" nudge is for a browser tab; the window has its own maximise. ≡ → Enter full screen stays. */
|
|
9389
|
+
html.desktop .fullscreen-nudge { display: none; }
|
|
9390
|
+
|
|
9391
|
+
/* Narrow window: the header is one 40px row that cannot wrap, so what is decoration goes first and what is labelled goes
|
|
9392
|
+
icon-only. Nothing is removed: a collapsed label stays in the accessible name (visually hidden, never display:none).
|
|
9393
|
+
Thresholds are window widths: the caption buttons take ~140px, so a window of 960px leaves ~820px of header. */
|
|
9394
|
+
@media (max-width: 1240px) {
|
|
9395
|
+
html.desktop #wf-label, html.desktop #ws-proj-label {
|
|
9396
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9397
|
+
}
|
|
9398
|
+
}
|
|
9399
|
+
@media (max-width: 1160px) {
|
|
9400
|
+
html.desktop .mode-switch button:not(.active) > span {
|
|
9401
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9402
|
+
}
|
|
9403
|
+
html.desktop .mode-switch button:not(.active) { padding-left: 9px; padding-right: 9px; }
|
|
9404
|
+
}
|
|
9405
|
+
@media (max-width: 1100px) {
|
|
9406
|
+
html.desktop .ws-access-label {
|
|
9407
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9408
|
+
}
|
|
9409
|
+
html.desktop #run-state { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
9410
|
+
}
|
|
9411
|
+
@media (max-width: 1060px) {
|
|
9412
|
+
html.desktop .brand .name, html.desktop .mode-switch button.active > span {
|
|
9413
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9414
|
+
}
|
|
9415
|
+
html.desktop .mode-switch button.active { padding-left: 9px; padding-right: 9px; }
|
|
9416
|
+
html.desktop .controls { gap: 6px; }
|
|
9417
|
+
html.desktop .controls button { padding-left: 8px; padding-right: 8px; }
|
|
9418
|
+
html.desktop #wf-update, html.desktop #wf-forked, html.desktop #wf-agent-step {
|
|
9419
|
+
max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
9420
|
+
}
|
|
9421
|
+
/* The run state's words stay for screen readers (role=status); the Run and Stop buttons already show what is going on. */
|
|
9422
|
+
html.desktop #run-state {
|
|
9423
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9424
|
+
}
|
|
9425
|
+
}
|
|
9426
|
+
@media (max-width: 1000px) {
|
|
9427
|
+
/* The pickers are the shrink sink: below their 180px floor they still truncate, so the run buttons never leave the safe area. */
|
|
9428
|
+
html.desktop .wf-combo { min-width: 120px; }
|
|
9429
|
+
}
|
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
|
|
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>` +
|
|
@@ -627,9 +627,10 @@ function renderCategorySuggestions() {
|
|
|
627
627
|
const cats = [...new Set(state.favorites.map(f => f.category).filter(Boolean))];
|
|
628
628
|
const defaults = ['Tekla', 'MEP', 'Fab Pipeline', 'Coordination', 'QA'];
|
|
629
629
|
const all = [...new Set([...cats, ...defaults])];
|
|
630
|
-
$favCatSug.innerHTML = all.slice(0, 6).map(c => `<button data-cat="${escapeAttr(c)}">${escapeHtml(c)}</button>`).join('');
|
|
630
|
+
$favCatSug.innerHTML = all.slice(0, 6).map(c => `<button type="button" data-cat="${escapeAttr(c)}" data-command-id="shell.favourite-category-suggestion#${escapeAttr(c)}">${escapeHtml(c)}</button>`).join('');
|
|
631
631
|
$favCatSug.querySelectorAll('button').forEach(b => {
|
|
632
|
-
|
|
632
|
+
// Fill the field and hand focus back to it, so a following Enter saves (#3140).
|
|
633
|
+
b.onclick = () => { $favCat.value = b.dataset.cat; $favCat.focus(); };
|
|
633
634
|
});
|
|
634
635
|
}
|
|
635
636
|
|
|
@@ -1232,12 +1233,38 @@ document.getElementById('lib-close').onclick = () => $libModal.classList.remove(
|
|
|
1232
1233
|
onBackdropDismiss($addFavModal, closeAddFavModal);
|
|
1233
1234
|
onBackdropDismiss($libModal, () => $libModal.classList.remove('show'));
|
|
1234
1235
|
|
|
1236
|
+
// Save as Template keys (#3140). Enter saves only from the Name or Category field: a focused button answers Enter
|
|
1237
|
+
// itself, so Save saves once, Cancel cancels and a category suggestion only fills the field. Tab wraps inside the
|
|
1238
|
+
// dialog, so focus never walks onto the page behind it.
|
|
1239
|
+
function onAddFavKey(e) {
|
|
1240
|
+
if (!$addFavModal.classList.contains('show')) return;
|
|
1241
|
+
if (e.key === 'Enter') {
|
|
1242
|
+
// A held Enter repeats; only its first press saves.
|
|
1243
|
+
if (e.isComposing || e.repeat || (e.target !== $favName && e.target !== $favCat)) return;
|
|
1244
|
+
e.preventDefault();
|
|
1245
|
+
commitFav();
|
|
1246
|
+
return;
|
|
1247
|
+
}
|
|
1248
|
+
if (e.key !== 'Tab') return;
|
|
1249
|
+
const active = document.activeElement;
|
|
1250
|
+
// A dialog opened over this one keeps its own Tab.
|
|
1251
|
+
if (active && !$addFavModal.contains(active) && active.closest('[role="dialog"], [role="alertdialog"]')) return;
|
|
1252
|
+
const controls = Array.from($addFavModal.querySelectorAll('input, button'))
|
|
1253
|
+
.filter((el) => !el.disabled && !el.hidden && el.getClientRects().length);
|
|
1254
|
+
if (!controls.length) return;
|
|
1255
|
+
const first = controls[0];
|
|
1256
|
+
const last = controls[controls.length - 1];
|
|
1257
|
+
const inside = $addFavModal.contains(active);
|
|
1258
|
+
if (e.shiftKey && (!inside || active === first)) { e.preventDefault(); last.focus(); }
|
|
1259
|
+
else if (!e.shiftKey && (!inside || active === last)) { e.preventDefault(); first.focus(); }
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1235
1262
|
document.addEventListener('keydown', (e) => {
|
|
1236
1263
|
if (e.key === 'Escape') {
|
|
1237
1264
|
if ($addFavModal.classList.contains('show')) closeAddFavModal();
|
|
1238
1265
|
if ($libModal.classList.contains('show')) $libModal.classList.remove('show');
|
|
1239
1266
|
}
|
|
1240
|
-
|
|
1267
|
+
onAddFavKey(e);
|
|
1241
1268
|
});
|
|
1242
1269
|
|
|
1243
1270
|
$libSearch.oninput = renderLibrary;
|
|
@@ -1296,7 +1323,12 @@ function relAgo(iso) {
|
|
|
1296
1323
|
function receiptItemText(prefix, value) {
|
|
1297
1324
|
if (typeof value === 'string') return `${prefix}: ${value}`;
|
|
1298
1325
|
if (!value || typeof value !== 'object') return `${prefix}: ${String(value)}`;
|
|
1299
|
-
|
|
1326
|
+
// #3097: the item (its id locates it) and what happened to it, in words. The code is for diagnosis and stays in the
|
|
1327
|
+
// receipt; it is shown only when nothing else says what happened, then as words ("unsupported-profile" → "unsupported
|
|
1328
|
+
// profile"), never as a bare token.
|
|
1329
|
+
const said = (part) => typeof part === 'string' && part.trim() ? part.trim() : '';
|
|
1330
|
+
const what = said(value.message) || said(value.code).replace(/[-_]+/g, ' ');
|
|
1331
|
+
const parts = [said(value.id), what].filter(Boolean);
|
|
1300
1332
|
if (parts.length) return `${prefix}: ${parts.join(' · ')}`;
|
|
1301
1333
|
try { return `${prefix}: ${JSON.stringify(value)}`; }
|
|
1302
1334
|
catch { return `${prefix}: detail unavailable`; }
|
|
@@ -1318,6 +1350,22 @@ function onBackdropDismiss(modal, dismiss, guard) {
|
|
|
1318
1350
|
};
|
|
1319
1351
|
}
|
|
1320
1352
|
|
|
1353
|
+
// #3147: Escape closes `modal` while it shows, as its Cancel does. The key is left alone when something above the
|
|
1354
|
+
// dialog owns it: a press another handler already used, or focus in another dialog. While `guard()` says the dialog
|
|
1355
|
+
// cannot close (work it shows is still running), the press is used up but closes nothing, so it never falls through
|
|
1356
|
+
// to whatever sits underneath either.
|
|
1357
|
+
function onEscapeDismiss(modal, dismiss, guard) {
|
|
1358
|
+
if (!modal) return;
|
|
1359
|
+
document.addEventListener('keydown', (e) => {
|
|
1360
|
+
if (e.key !== 'Escape' || e.defaultPrevented || e.isComposing || !modal.classList.contains('show')) return;
|
|
1361
|
+
const active = document.activeElement;
|
|
1362
|
+
if (active && active !== document.body && !modal.contains(active)
|
|
1363
|
+
&& active.closest('[role="dialog"], [role="alertdialog"], .modal-backdrop')) return;
|
|
1364
|
+
e.preventDefault();
|
|
1365
|
+
if (!guard || guard()) dismiss();
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1321
1369
|
/* ============= MENU ============= */
|
|
1322
1370
|
|
|
1323
1371
|
const $menuBtn = document.getElementById('menu-btn');
|
|
@@ -1389,6 +1437,9 @@ function handleMenuAction(action) {
|
|
|
1389
1437
|
// #2046: the Guide — opens its conversation, or asks first (web/guide.js).
|
|
1390
1438
|
case 'guide': if (window.flolessGuide) void window.flolessGuide.open({ returnFocus: document.getElementById('menu-btn') }); break;
|
|
1391
1439
|
case 'fullscreen': toggleFullscreen(); break;
|
|
1440
|
+
// The FloLess window (web/desktop-window.js): one item per side, each shown only where it makes sense.
|
|
1441
|
+
case 'open-in-browser': window.flolessDesktopWindow?.openInBrowser(); break;
|
|
1442
|
+
case 'open-in-app': void window.flolessDesktopWindow?.openInApp(); break;
|
|
1392
1443
|
// Asks first (unsaved work, a running workflow) — see web/leave-guard.js.
|
|
1393
1444
|
case 'stop-app': if (window.flolessLeaveGuard) window.flolessLeaveGuard.stopApp(); break;
|
|
1394
1445
|
}
|
|
@@ -1484,9 +1535,10 @@ document.getElementById('find-close').onclick = closeFind;
|
|
|
1484
1535
|
|
|
1485
1536
|
const THEME_KEY = 'floless-demo-theme-v1';
|
|
1486
1537
|
|
|
1487
|
-
|
|
1538
|
+
// 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
|
|
1539
|
+
// be written back as if the person had chosen it (#2963).
|
|
1540
|
+
function applyTheme(theme) {
|
|
1488
1541
|
document.documentElement.dataset.theme = theme;
|
|
1489
|
-
localStorage.setItem(THEME_KEY, theme);
|
|
1490
1542
|
document.querySelectorAll('.theme-btn').forEach(b => {
|
|
1491
1543
|
b.classList.toggle('active', b.dataset.theme === theme);
|
|
1492
1544
|
});
|
|
@@ -1496,9 +1548,23 @@ function setTheme(theme) {
|
|
|
1496
1548
|
}
|
|
1497
1549
|
}
|
|
1498
1550
|
|
|
1551
|
+
// The person's choice: painted now, kept in this browser for first paint, and shared with the other FloLess client through the server.
|
|
1552
|
+
function setTheme(theme) {
|
|
1553
|
+
applyTheme(theme);
|
|
1554
|
+
if (globalThis.flolessPrefs) globalThis.flolessPrefs.set('theme', theme);
|
|
1555
|
+
else { try { localStorage.setItem(THEME_KEY, theme); } catch { /* private mode */ } }
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1499
1558
|
function initTheme() {
|
|
1500
|
-
|
|
1501
|
-
|
|
1559
|
+
let t = 'dark';
|
|
1560
|
+
try { t = (globalThis.flolessPrefs ? globalThis.flolessPrefs.get('theme') : localStorage.getItem(THEME_KEY)) || 'dark'; } catch { /* private mode */ }
|
|
1561
|
+
applyTheme(t === 'light' ? 'light' : 'dark');
|
|
1562
|
+
// The other client changed the theme (or the server answered after first paint): follow it, without saving it again.
|
|
1563
|
+
globalThis.flolessPrefs?.onChange((keys) => {
|
|
1564
|
+
if (!keys.includes('theme')) return;
|
|
1565
|
+
const next = globalThis.flolessPrefs.get('theme');
|
|
1566
|
+
if ((next === 'light' || next === 'dark') && document.documentElement.dataset.theme !== next) applyTheme(next);
|
|
1567
|
+
});
|
|
1502
1568
|
}
|
|
1503
1569
|
|
|
1504
1570
|
document.querySelectorAll('.theme-btn').forEach(b => {
|
|
@@ -1536,7 +1602,7 @@ async function revealStartOnLogin() {
|
|
|
1536
1602
|
// Read the setting first: if it has gone (or can't be read), say so and leave Routines open.
|
|
1537
1603
|
await refreshStartup();
|
|
1538
1604
|
if (!$startupRow || $startupRow.hidden || !$startupToggle) {
|
|
1539
|
-
showToast('Start
|
|
1605
|
+
showToast('Start with Windows isn’t available on this computer right now, so FloLess runs routines only while you keep it open.', 'warn');
|
|
1540
1606
|
return;
|
|
1541
1607
|
}
|
|
1542
1608
|
// Only the Routines list carries the link (the editor would drop a routine being written).
|
|
@@ -1566,13 +1632,21 @@ if ($startupToggle) {
|
|
|
1566
1632
|
body: JSON.stringify({ enabled: want }),
|
|
1567
1633
|
});
|
|
1568
1634
|
const d = await r.json().catch(() => ({}));
|
|
1569
|
-
if (!r.ok || !d.ok)
|
|
1635
|
+
if (!r.ok || !d.ok) {
|
|
1636
|
+
// #3070: the server reads Windows back and says what is really true; show that, never the flip we guessed.
|
|
1637
|
+
const failure = new Error('autostart-change-refused');
|
|
1638
|
+
failure.enabled = typeof d.enabled === 'boolean' ? d.enabled : null;
|
|
1639
|
+
// Plain words written by this route; `saved` marks them (any other failing body is not ours to show).
|
|
1640
|
+
failure.userMessage = typeof d.saved === 'boolean' && typeof d.error === 'string' && d.error ? d.error : null;
|
|
1641
|
+
throw failure;
|
|
1642
|
+
}
|
|
1570
1643
|
$startupToggle.checked = !!d.enabled; // trust server truth (schtasks re-queried)
|
|
1571
1644
|
// Success is silent — the switch position IS the confirmation (matches Theme).
|
|
1572
1645
|
// UX review 2026-05-31: a preference write doesn't rise to a toast.
|
|
1573
1646
|
} catch (e) {
|
|
1574
|
-
$startupToggle.checked = !want; // revert the optimistic flip
|
|
1575
|
-
showToast(
|
|
1647
|
+
$startupToggle.checked = typeof e?.enabled === 'boolean' ? e.enabled : !want; // what Windows really has, else revert the optimistic flip
|
|
1648
|
+
showToast(e?.userMessage
|
|
1649
|
+
|| 'We couldn’t save that startup setting. Try again. If it keeps happening, reopen FloLess.', 'err');
|
|
1576
1650
|
} finally {
|
|
1577
1651
|
$startupToggle.disabled = false;
|
|
1578
1652
|
}
|
|
@@ -1647,6 +1721,7 @@ function nudgeAlreadySeen() {
|
|
|
1647
1721
|
// was never dismissed/used. Delayed ~2s so the layout settles first.
|
|
1648
1722
|
function maybeShowFsNudge() {
|
|
1649
1723
|
if (nudgeAlreadySeen()) return;
|
|
1724
|
+
if (document.documentElement.classList.contains('desktop')) return; // the window has its own maximise
|
|
1650
1725
|
setTimeout(() => {
|
|
1651
1726
|
if (!$fsNudge || !$fsNudge.isConnected || !$fsNudge.hidden) return;
|
|
1652
1727
|
if (nudgeAlreadySeen() || isFullscreen()) return;
|
|
@@ -1692,8 +1767,13 @@ function userSafeToastMessage(msg, type) {
|
|
|
1692
1767
|
const text = String(msg ?? '').trim();
|
|
1693
1768
|
// #2868: the reason behind raw text is unknown, so this says so. It used to blame a lost connection and promise the
|
|
1694
1769
|
// work was still there, neither of which this line can know.
|
|
1770
|
+
// #3097: a status number in brackets ("failed (500)") or after "answered"/"returned", a lost fetch and an exit code are
|
|
1771
|
+
// diagnostics too.
|
|
1772
|
+
// A bare "(450)" is not matched alone: a detailer's dimension can sit in brackets; it must follow "failed"/"error".
|
|
1695
1773
|
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)
|
|
1774
|
+
&& (/\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)
|
|
1775
|
+
|| /\((?: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))) {
|
|
1776
|
+
console.warn('[toast] raw text replaced with the unknown-failure sentence:', text);
|
|
1697
1777
|
return UNKNOWN_FAILURE_TOAST;
|
|
1698
1778
|
}
|
|
1699
1779
|
return text || UNKNOWN_FAILURE_TOAST;
|
|
@@ -2023,10 +2103,13 @@ let workspaceRootInterruption = '';
|
|
|
2023
2103
|
async function workspaceRootApi(path, opts) {
|
|
2024
2104
|
await globalThis.flolessStartupAdmission?.admit(path, { method: opts?.method, signal: opts?.signal });
|
|
2025
2105
|
const response = await fetch(path, { headers: { 'content-type': 'application/json' }, ...opts });
|
|
2026
|
-
|
|
2106
|
+
// #3097: an unreadable answer and an unexplained failure read as the shared sentence, never "HTTP N".
|
|
2107
|
+
const body = await response.json().catch(() => ({ ok: false, code: 'response-unreadable' }));
|
|
2027
2108
|
if (!response.ok || body.ok === false) {
|
|
2028
|
-
const
|
|
2109
|
+
const method = String(opts?.method || 'GET').toUpperCase();
|
|
2110
|
+
const error = new Error(personText(body) || failureCopy({ status: response.status, body }, { retrySafe: method === 'GET' || method === 'HEAD' }).text);
|
|
2029
2111
|
error.body = body;
|
|
2112
|
+
error.status = response.status;
|
|
2030
2113
|
throw error;
|
|
2031
2114
|
}
|
|
2032
2115
|
return body;
|
|
@@ -220,13 +220,16 @@
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
if (!result.response.ok) {
|
|
223
|
-
|
|
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 = personText(result.body) || '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
|
-
|
|
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(personText(result.body) || 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)
|
|
441
|
+
if (!result.response.ok) {
|
|
442
|
+
throw Object.assign(new Error(personText(result.body) || '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
|
|
|
@@ -465,7 +473,7 @@
|
|
|
465
473
|
}
|
|
466
474
|
if (!result.response.ok) {
|
|
467
475
|
return emit({ ...state, status: 'partial',
|
|
468
|
-
retryError: String(result.body
|
|
476
|
+
retryError: String(personText(result.body) || result.body.message || `The ${row.host} bridge retry was refused.`) });
|
|
469
477
|
}
|
|
470
478
|
store(transaction);
|
|
471
479
|
emit({ ...state, status: 'retrying', host: row.host, retryError: null });
|