@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
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
if (typeof bridge().api === 'function') return bridge().api(path);
|
|
14
14
|
return fetch(path).then(async (res) => {
|
|
15
15
|
const body = await res.json().catch(() => ({}));
|
|
16
|
-
|
|
16
|
+
// #3097: the server's own sentence when it wrote one, else the shared one (this only reads); never "HTTP <status>".
|
|
17
|
+
if (!res.ok || body.ok === false) { const err = new Error(personText(body) || failureCopy({ status: res.status, body }, { retrySafe: true }).text); err.status = res.status; err.body = body; throw err; }
|
|
17
18
|
return body;
|
|
18
19
|
});
|
|
19
20
|
};
|
|
@@ -308,7 +309,8 @@
|
|
|
308
309
|
const post = (path, body) => fetch(path, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) })
|
|
309
310
|
.then(async (res) => {
|
|
310
311
|
const answer = await res.json().catch(() => ({}));
|
|
311
|
-
|
|
312
|
+
// #3097: a POST, so the shared sentence never tells the person to retry blindly; never "HTTP <status>".
|
|
313
|
+
if (!res.ok || answer.ok === false) { const err = new Error(personText(answer) || failureCopy({ status: res.status, body: answer }, { retrySafe: false }).text); err.status = res.status; err.body = answer; throw err; }
|
|
312
314
|
return answer;
|
|
313
315
|
});
|
|
314
316
|
|
|
@@ -342,9 +344,11 @@
|
|
|
342
344
|
const code = error?.body?.code;
|
|
343
345
|
const unreadable = code === 'source-unreadable';
|
|
344
346
|
// The server's own sentence when it wrote one (it says what changed); a fixed one only when nothing answered.
|
|
345
|
-
const said =
|
|
347
|
+
const said = personText(error?.body) || null;
|
|
346
348
|
if (!said) console.error('[project-workflows] a set-apart folder could not be answered', error);
|
|
347
|
-
const message = unreadable ? null : said ||
|
|
349
|
+
const message = unreadable ? null : said || (error?.status
|
|
350
|
+
? 'FloLess couldn’t tell whether that went through. Look at the list again before trying once more.'
|
|
351
|
+
: 'FloLess couldn’t reach the server just now. Look at the list again before trying once more.');
|
|
348
352
|
if (!ctx.alive()) return;
|
|
349
353
|
ctx.setRow(id, { unreadable: unreadable || !!ctx.rows()[id]?.unreadable, error: message });
|
|
350
354
|
ctx.repaint();
|
|
@@ -171,9 +171,13 @@ self.onmessage = async (event) => {
|
|
|
171
171
|
try {
|
|
172
172
|
const response = await fetch(message.url, { signal: controller.signal });
|
|
173
173
|
const contentType = (response.headers.get('content-type') || '').split(';')[0].trim().toLowerCase();
|
|
174
|
+
// #3097: a worker cannot load failure-copy.js, so it never writes the sentence a person reads. It posts FACTS —
|
|
175
|
+
// the status, the server's own JSON when there is some, or a `failure` kind — and the page says them in FloLess
|
|
176
|
+
// words (steel-editor.html referenceFailureReason). What a developer needs rides in `diagnostic`, for the console.
|
|
174
177
|
if (!response.ok || contentType !== TYPE) {
|
|
175
178
|
const data = await response.json().catch(() => ({
|
|
176
|
-
|
|
179
|
+
failure: 'unreadable',
|
|
180
|
+
diagnostic: response.ok
|
|
177
181
|
? `reference geometry had content type “${contentType || 'missing'}”, expected “${TYPE}”`
|
|
178
182
|
: `the server answered ${response.status} without a readable error`,
|
|
179
183
|
}));
|
|
@@ -186,9 +190,14 @@ self.onmessage = async (event) => {
|
|
|
186
190
|
self.postMessage({ id: message.id, ok: true, data: decoded }, transfer);
|
|
187
191
|
} catch (error) {
|
|
188
192
|
const corrupt = decoding || error?.referenceBinaryCorrupt === true;
|
|
193
|
+
// No answer at all (the fetch was refused or stopped) is a lost connection; bytes that arrived but could not be
|
|
194
|
+
// read whole (a cut-off body, an unknown layout) are an unreadable answer; complete bytes that fail their own
|
|
195
|
+
// checks are a corrupt cache, the one case the page rebuilds.
|
|
196
|
+
const lost = !corrupt && (error?.name === 'AbortError' || (error?.name === 'TypeError' && /fetch|network|load failed/i.test(String(error?.message))));
|
|
189
197
|
self.postMessage({ id: message.id, ok: false, status: corrupt ? 422 : 0, data: {
|
|
190
198
|
...(corrupt ? { code: 'reference-binary-corrupt' } : {}),
|
|
191
|
-
|
|
199
|
+
failure: corrupt ? 'corrupt' : lost ? 'connection' : 'unreadable',
|
|
200
|
+
diagnostic: error?.message || 'could not decode reference geometry',
|
|
192
201
|
} });
|
|
193
202
|
} finally { controllers.delete(message.id); }
|
|
194
203
|
};
|
package/dist/web/renderers.js
CHANGED
|
@@ -27,6 +27,12 @@ window.CONTRACT_RENDERERS = {
|
|
|
27
27
|
// Local read-only 3D reconstruction viewer (views-to-scene) — NOT the AWARE exporter chain
|
|
28
28
|
// (`scene`), which only steel supports; extrusion bodies render floless-side only for now.
|
|
29
29
|
viewerUrl: (appId) => '/vector-3d.html?app=' + encodeURIComponent(appId),
|
|
30
|
+
// What the shell's close question calls it (#3143) — the same name the leave guard uses.
|
|
31
|
+
name: 'the drawing editor',
|
|
32
|
+
// It autosaves to the server and keeps no copy on this computer, so closing the overlay over a
|
|
33
|
+
// write that is unfinished, failed or refused as a conflict loses those edits: Close asks first.
|
|
34
|
+
// (The steel editor keeps such edits as a local draft, so it does not set this.)
|
|
35
|
+
asksBeforeClose: true,
|
|
30
36
|
},
|
|
31
37
|
};
|
|
32
38
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The report viewer's own content rules (#3130, audit 1 F3).
|
|
3
|
+
*
|
|
4
|
+
* A static report is painted into `#report-frame` through `srcdoc`. That frame has no `allow-scripts`, but nothing else
|
|
5
|
+
* limited what the report could ask for: a picture or stylesheet at any `http:` address — FloLess's own loopback API
|
|
6
|
+
* included, which the frame's `allow-same-origin` makes a same-origin request — a form, a `<base>`. `withReportCsp` puts
|
|
7
|
+
* the policy FloLess already gives a report's browser copy (#2476, `INERT_REPORT_CSP` in server/report-files-inert.ts) at
|
|
8
|
+
* the very top of the report: no script, no form, no `<base>`, nothing from FloLess or any `http:` address, while pictures,
|
|
9
|
+
* styles, fonts and media from `data:` or `https:` keep working as the report was written. A report cannot loosen it — a
|
|
10
|
+
* second policy only narrows.
|
|
11
|
+
*
|
|
12
|
+
* `openDocument` is what ↗ Open shows in a new tab. It used to be the report itself as a blob: URL, and a blob: URL has
|
|
13
|
+
* the ORIGIN OF THE PAGE THAT MADE IT — so the report ran as FloLess, and any script in it (the interactive 3D view runs
|
|
14
|
+
* scripts by design) could call the local API as the app. Now the tab is always a script-free page holding the report in
|
|
15
|
+
* a sandboxed frame with no `allow-same-origin`, so the browser itself keeps the report away from FloLess: the policy
|
|
16
|
+
* cannot stop a `<meta http-equiv="refresh">` navigating an unsandboxed tab, and no parse of the report on FloLess's side
|
|
17
|
+
* can be sure to find one the way the browser does (Codex, PR review), but a sandbox stops it whatever the markup.
|
|
18
|
+
* The cost: printing that tab prints only the frame's one screen (follow-up listed in epic #3137).
|
|
19
|
+
*
|
|
20
|
+
* Loaded as a classic script before aware.js; tested by server/report-csp-ui.test.ts.
|
|
21
|
+
*/
|
|
22
|
+
(function (root) {
|
|
23
|
+
'use strict';
|
|
24
|
+
|
|
25
|
+
var POLICY = "default-src 'none'; img-src data: https:; style-src 'unsafe-inline' https:; font-src data: https:; media-src data: https:; form-action 'none'; base-uri 'none'";
|
|
26
|
+
var META = '<meta http-equiv="Content-Security-Policy" content="' + POLICY + '">';
|
|
27
|
+
// Whether the report asks for standards mode. This only ever chooses the rendering mode, never where the policy goes:
|
|
28
|
+
// the policy is the first thing in the document either way, ahead of anything the report says, so no markup in the
|
|
29
|
+
// report — a comment the browser closes early, a `>` inside a quoted doctype — can put an element before it.
|
|
30
|
+
var LOOKS_LIKE_DOCTYPE = /^\s*(?:<!--[\s\S]*?-->\s*)*<!doctype/i;
|
|
31
|
+
|
|
32
|
+
function withReportCsp(html) {
|
|
33
|
+
var text = String(html == null ? '' : html).replace(/^/, '');
|
|
34
|
+
// With a doctype, ours comes first (the report's own, now later, is ignored by the parser): a policy placed before a
|
|
35
|
+
// doctype would put the report into quirks mode. Without one the report keeps the mode it always had.
|
|
36
|
+
return (LOOKS_LIKE_DOCTYPE.test(text) ? '<!doctype html>' : '') + META + text;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function escapeAttr(value) {
|
|
40
|
+
return String(value).replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function page(title, frame) {
|
|
44
|
+
return '<!doctype html><html><head><meta charset="utf-8"><title>' + escapeAttr(title) + '</title>'
|
|
45
|
+
+ '<style>html,body{margin:0;height:100%}iframe{display:block;border:0;width:100%;height:100%}</style></head><body>'
|
|
46
|
+
+ frame + '</body></html>';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** What ↗ Open puts in a new tab: a page with no script and no policy of its own (a frame inherits its parent's, which
|
|
50
|
+
* would stop the 3D view's scripts), holding the report in an opaque-origin frame. A static report goes in like
|
|
51
|
+
* #report-frame, with its policy first, but without `allow-same-origin` — no script, no automatic navigation, links
|
|
52
|
+
* still open in a new tab. The interactive 3D view goes in like #report-frame-3d, as a `data:` frame with only
|
|
53
|
+
* `allow-scripts`: its scripts run, but their requests carry `Origin: null`, which the server's origin guard refuses.
|
|
54
|
+
* `name` (the workflow's) titles the tab. */
|
|
55
|
+
function openDocument(html, interactive, name) {
|
|
56
|
+
var text = String(html == null ? '' : html);
|
|
57
|
+
if (!interactive) {
|
|
58
|
+
return page(name ? 'FloLess report – ' + name : 'FloLess report',
|
|
59
|
+
'<iframe sandbox="allow-popups allow-popups-to-escape-sandbox" title="Report" srcdoc="'
|
|
60
|
+
+ escapeAttr(withReportCsp(text)) + '"></iframe>');
|
|
61
|
+
}
|
|
62
|
+
return page(name ? 'FloLess 3D view – ' + name : 'FloLess 3D view',
|
|
63
|
+
'<iframe sandbox="allow-scripts" title="3D view" src="data:text/html;charset=utf-8,'
|
|
64
|
+
+ escapeAttr(encodeURIComponent(text)) + '"></iframe>');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
root.FlolessReportCsp = { POLICY: POLICY, withReportCsp: withReportCsp, openDocument: openDocument };
|
|
68
|
+
})(typeof window !== 'undefined' ? window : globalThis);
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
<button id="inspectorToggle" class="model-inspector-toggle" type="button" data-command-id="revit.inspector-toggle" data-tip="Collapse Properties" aria-label="Collapse Properties" aria-controls="inspectorPanel" aria-expanded="true"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="m6 3 5 5-5 5"/></svg></button>
|
|
66
66
|
</main>
|
|
67
67
|
<div id="toast" role="status" aria-live="polite"></div>
|
|
68
|
+
<script src="failure-copy.js"></script>
|
|
68
69
|
<script src="commands.js"></script>
|
|
69
70
|
<script src="commands-revit.js"></script>
|
|
70
71
|
<script src="instructor-reporter.js"></script>
|
package/dist/web/revit-editor.js
CHANGED
|
@@ -213,7 +213,14 @@ function fail(failure = null) {
|
|
|
213
213
|
state.replaceChildren(); const strong = document.createElement('strong'); strong.textContent = 'Model unavailable'; const copy = document.createElement('span'); copy.textContent = modelUnavailableCopy(); state.append(strong, copy);
|
|
214
214
|
}
|
|
215
215
|
// Any answer that is not ok rides on the error (`status`, `body`), so a failure can say what the server wrote for a person.
|
|
216
|
-
|
|
216
|
+
// #3097: the message is the server's own sentence when it wrote one, else the shared one (failure-copy.js); never "(<status>)".
|
|
217
|
+
function sharedFailureText(response, value, ctx, thrown) {
|
|
218
|
+
const copy = globalThis.failureCopy;
|
|
219
|
+
// `thrown`: a fetch that never got an answer (TypeError/AbortError) is passed through so it reads as a lost connection.
|
|
220
|
+
if (typeof copy === 'function') return copy(thrown && !thrown.status ? thrown : { status: response.status, body: value }, ctx).text;
|
|
221
|
+
return `Couldn’t ${ctx?.action || 'finish that'}. Reload this window, then try again.`;
|
|
222
|
+
}
|
|
223
|
+
async function json(url, options) { const response = await fetch(url, { credentials: 'same-origin', ...options }); const value = await response.json().catch(() => ({})); if (!response.ok || value.ok === false) throw Object.assign(new Error(value.message || (typeof globalThis.personText === 'function' ? globalThis.personText(value) : '') || sharedFailureText(response, value, { retrySafe: /^(GET|HEAD)$/.test(String(options?.method || 'GET').toUpperCase()) })), { status: response.status, body: value }); return value; }
|
|
217
224
|
|
|
218
225
|
function propertySection(heading, rows) {
|
|
219
226
|
return { id: heading.toLowerCase().replace(/\W+/g, '-'), heading, editable: false, render(host) {
|
|
@@ -1354,20 +1361,37 @@ function payloadOnly(state) {
|
|
|
1354
1361
|
return payload;
|
|
1355
1362
|
}
|
|
1356
1363
|
|
|
1364
|
+
// #3097: the editor-state route answers `{ error: <code>, message }`. The message is shown as written; a code that came
|
|
1365
|
+
// without one is said in words, and anything else gets the shared sentence. A bare code or a status is never shown.
|
|
1366
|
+
const EDITOR_STATE_CODE_WORDS = {
|
|
1367
|
+
'state-access-unconfirmed': 'FloLess couldn’t confirm your access to this model.',
|
|
1368
|
+
model_module_unavailable: 'This model is open for viewing only here, so its view settings aren’t saved.',
|
|
1369
|
+
'state-conflict': 'The view settings were changed in another window.',
|
|
1370
|
+
'state-binding-mismatch': 'The saved view settings belong to a different version of this model.',
|
|
1371
|
+
'state-pin-unavailable': 'This version of the model is no longer available.',
|
|
1372
|
+
};
|
|
1373
|
+
function editorStateFailureText(response, value, action, retrySafe) {
|
|
1374
|
+
if (typeof value?.message === 'string' && value.message.trim()) return value.message;
|
|
1375
|
+
console.warn('[model] editor state request failed', action, response?.status, value?.error);
|
|
1376
|
+
const words = EDITOR_STATE_CODE_WORDS[value?.error];
|
|
1377
|
+
if (words) return `Couldn’t ${action}. ${words}`;
|
|
1378
|
+
return sharedFailureText(response, value, retrySafe ? { action, retrySafe: true } : { action, unsure: 'Change the view again to save it once more.' });
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1357
1381
|
async function putEditorState({ binding, token, payload, etag }) {
|
|
1358
1382
|
const request = async (body, currentEtag) => fetch(editorStateUrl(binding), { method: 'PUT', credentials: 'same-origin',
|
|
1359
1383
|
headers: { 'content-type': 'application/json', ...(currentEtag ? { 'if-match': currentEtag } : { 'if-none-match': '*' }) }, body: JSON.stringify(body) });
|
|
1360
1384
|
let sentPayload = payload; let response = await request(sentPayload, etag);
|
|
1361
1385
|
if (response.status === 412) {
|
|
1362
1386
|
const fresh = await fetch(editorStateUrl(binding), { credentials: 'same-origin' });
|
|
1363
|
-
if (!fresh.ok) throw new Error(
|
|
1387
|
+
if (!fresh.ok) throw Object.assign(new Error(editorStateFailureText(fresh, await fresh.json().catch(() => ({})), 'save this model view')), { forPerson: true });
|
|
1364
1388
|
const freshValue = await fresh.json(); const freshPayload = payloadOnly(freshValue.state) || {};
|
|
1365
1389
|
sentPayload = { ...freshPayload, namedViews: payload.namedViews, coordinateFrames: payload.coordinateFrames, sections: payload.sections,
|
|
1366
1390
|
...(payload.gridVisibility ? { gridVisibility: payload.gridVisibility } : {}) };
|
|
1367
1391
|
response = await request(sentPayload, fresh.headers.get('etag') || freshValue.state?.etag || null);
|
|
1368
1392
|
}
|
|
1369
1393
|
const value = await response.json().catch(() => ({}));
|
|
1370
|
-
if (!response.ok || value.ok === false) throw Object.assign(new Error(
|
|
1394
|
+
if (!response.ok || value.ok === false) throw Object.assign(new Error(editorStateFailureText(response, value, 'save this model view')), { code: value.error, forPerson: true });
|
|
1371
1395
|
if (token !== editorStateBindingToken) return;
|
|
1372
1396
|
editorStateAccessWarned = null;
|
|
1373
1397
|
editorStateEtag = response.headers.get('etag') || value.state?.etag || editorStateEtag;
|
|
@@ -1394,10 +1418,15 @@ function drainEditorStateSaves() {
|
|
|
1394
1418
|
// change is kept in this browser (retainEditorStateRecovery) and retried on the next open, best-effort, so the copy
|
|
1395
1419
|
// promises nothing. `state-access-unconfirmed` is the server failing to confirm access for this save at all.
|
|
1396
1420
|
const editorStateAccessRefused = (error) => error?.code === 'model_module_unavailable' || error?.code === 'state-access-unconfirmed';
|
|
1397
|
-
function reportEditorStateSaveError(error,
|
|
1421
|
+
function reportEditorStateSaveError(error, action) {
|
|
1398
1422
|
const refused = editorStateAccessRefused(error);
|
|
1399
1423
|
if (refused) { if (editorStateAccessWarned === error.message) return; editorStateAccessWarned = error.message; }
|
|
1400
|
-
|
|
1424
|
+
// #3097: only a sentence written for the person (editorStateFailureText) is shown as is; a lost connection
|
|
1425
|
+
// ("Failed to fetch") or an unreadable answer gets the shared sentence, and the raw error goes to the console.
|
|
1426
|
+
if (!error?.forPerson) console.warn('[model] editor state save failed', error);
|
|
1427
|
+
const text = error?.forPerson ? error.message
|
|
1428
|
+
: sharedFailureText(error || {}, error?.body || {}, { action: action || 'save this model view', unsure: 'Change the view again to save it once more.' }, error);
|
|
1429
|
+
toast(text, refused ? 8000 : undefined);
|
|
1401
1430
|
}
|
|
1402
1431
|
|
|
1403
1432
|
async function flushEditorStateSave() {
|
|
@@ -1418,7 +1447,7 @@ function scheduleEditorStateSave(reason) {
|
|
|
1418
1447
|
editorStateDirtyPayload = editorStatePayload(); editorStateDirtyGeneration += 1;
|
|
1419
1448
|
retainEditorStateRecovery();
|
|
1420
1449
|
clearTimeout(editorStateSaveTimer);
|
|
1421
|
-
editorStateSaveTimer = setTimeout(() => { editorStateSaveTimer = null; drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, '
|
|
1450
|
+
editorStateSaveTimer = setTimeout(() => { editorStateSaveTimer = null; drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, 'save this model view')); }, 350);
|
|
1422
1451
|
}
|
|
1423
1452
|
|
|
1424
1453
|
async function prepareSpatialForRevision(state, handle) {
|
|
@@ -1437,7 +1466,7 @@ async function prepareSpatialForRevision(state, handle) {
|
|
|
1437
1466
|
// geometry so a stale/mismatched authority cannot replace the last good scene.
|
|
1438
1467
|
const url = editorStateUrl(binding);
|
|
1439
1468
|
const response = await fetch(url, { credentials: 'same-origin' }); let stored = null;
|
|
1440
|
-
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(
|
|
1469
|
+
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(editorStateFailureText(response, value, 'read this model’s saved view', true)); }
|
|
1441
1470
|
const value = await response.json(); stored = value.state;
|
|
1442
1471
|
const etag = response.headers.get('etag') || stored?.etag || null;
|
|
1443
1472
|
const recovered = readEditorStateRecovery(binding, etag);
|
|
@@ -1477,7 +1506,7 @@ function commitSpatialForRevision(candidate) {
|
|
|
1477
1506
|
spatialPanel = mountModelSpatialPanel({ tools: spatialTools, trigger: $('modelFrameStatus'), onBeforeOpen: () => { closeSpatialDialog(); toolbarChrome?.closeMenus(); selectionFilterChrome?.close(); lightingPanel?.close({ restoreFocus: false }); },
|
|
1478
1507
|
lengthDisplay: { format: (mm) => formatLength(mm, displayUnitControl.units()), parse: (text) => parseLengthMm(text, displayUnitControl.units()), unitLabel: () => displayUnitControl.units() },
|
|
1479
1508
|
onError: (error) => toast(error.message || 'That spatial action is unavailable.') });
|
|
1480
|
-
if (candidate.recovered) { editorStateDirtyPayload = editorStatePayload(); editorStateDirtyGeneration = 1; retainEditorStateRecovery(); editorStateSaveTimer = setTimeout(() => drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, '
|
|
1509
|
+
if (candidate.recovered) { editorStateDirtyPayload = editorStatePayload(); editorStateDirtyGeneration = 1; retainEditorStateRecovery(); editorStateSaveTimer = setTimeout(() => drainEditorStateSaves().catch((error) => reportEditorStateSaveError(error, 'restore this model view')), 0); }
|
|
1481
1510
|
}
|
|
1482
1511
|
|
|
1483
1512
|
function positionDialog(panel, anchor) {
|
package/dist/web/run-history.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
const api = bridge.api || (async (path) => {
|
|
9
9
|
const res = await fetch(path);
|
|
10
10
|
const body = await res.json().catch(() => ({}));
|
|
11
|
-
if (!res.ok) throw Object.assign(new Error(body
|
|
11
|
+
if (!res.ok) throw Object.assign(new Error(personText(body) || failureCopy({ status: res.status, body }, { action: 'load the run history', retrySafe: true }).text), { status: res.status, body });
|
|
12
12
|
return body;
|
|
13
13
|
});
|
|
14
14
|
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
@@ -145,8 +145,7 @@
|
|
|
145
145
|
console.warn('The run history could not be read', err);
|
|
146
146
|
cache = null;
|
|
147
147
|
container.dataset.rhState = 'error';
|
|
148
|
-
const said =
|
|
149
|
-
: 'FloLess couldn’t read the run history. Check that FloLess is running, then try again.';
|
|
148
|
+
const said = personText(err?.body) || 'FloLess couldn’t read the run history. Check that FloLess is running, then try again.';
|
|
150
149
|
container.innerHTML = `<div class="pg-empty" role="alert"><p>${esc(said)}</p>`
|
|
151
150
|
+ `<p><button type="button" class="ghost rh-act" data-rh-act="retry" data-command-id="shell.workflows-history-retry">Try again</button></p></div>`;
|
|
152
151
|
return;
|