@floless/app 0.167.0 → 0.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autostart.mjs +169 -63
- package/desktop-shell.mjs +335 -0
- package/dist/floless-server.cjs +14518 -11361
- 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-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/web/agents.js +1 -1
- package/dist/web/app.css +165 -8
- package/dist/web/app.js +53 -13
- package/dist/web/aware-update-client.js +13 -5
- package/dist/web/aware.js +183 -39
- package/dist/web/chat.css +2 -1
- package/dist/web/chat.js +410 -80
- package/dist/web/commands-filter.js +5 -5
- package/dist/web/commands-shell.js +172 -10
- package/dist/web/commands-steel.js +1 -1
- package/dist/web/desktop-window.js +435 -0
- package/dist/web/drawing-check-editor.js +18 -10
- package/dist/web/failure-copy.js +14 -1
- package/dist/web/guide.js +75 -9
- package/dist/web/index.html +64 -6
- package/dist/web/instructor.js +1 -1
- package/dist/web/leave-guard.js +347 -14
- package/dist/web/pages.js +5 -1
- package/dist/web/panels.js +5 -2
- package/dist/web/pdf-view.js +421 -0
- package/dist/web/project-history.js +2 -1
- package/dist/web/project-modules.js +3 -1
- package/dist/web/project-rfis.js +3 -1
- package/dist/web/project-workflows.js +4 -2
- package/dist/web/reference-geometry-worker.js +11 -2
- package/dist/web/revit-editor.html +1 -0
- package/dist/web/revit-editor.js +37 -8
- package/dist/web/shared-prefs.js +364 -0
- package/dist/web/steel-editor.html +204 -43
- 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/tool-updates.js +159 -38
- package/dist/web/vector-3d.html +14 -3
- package/dist/web/vector-editor.html +10 -2
- 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/workspaces.js +167 -26
- package/home-env.mjs +28 -0
- package/install-path.mjs +59 -3
- package/launch-starting-page.mjs +35 -15
- package/launch.mjs +358 -51
- package/package.json +2 -1
- 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
|
@@ -387,7 +387,8 @@
|
|
|
387
387
|
"properties": {
|
|
388
388
|
"low": { "type": "number" },
|
|
389
389
|
"high": { "type": "number" },
|
|
390
|
-
"observations": { "type": "integer", "minimum": 1 }
|
|
390
|
+
"observations": { "type": "integer", "minimum": 1 },
|
|
391
|
+
"evidenceDigest": { "type": "string", "pattern": "^[0-9a-f]{64}$", "description": "#2628: the drawn evidence the person saw on the card when they answered (sha256, domain floless:drawn-height-evidence/v1). Absent on an answer given before it was recorded: the drawings it was given against are then not known, and an end whose drawings disagree is asked again." }
|
|
391
392
|
}
|
|
392
393
|
},
|
|
393
394
|
"proposal": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-onboarding
|
|
3
3
|
description: Onboards a person into FloLess and the AWARE runtime underneath it, in four modes. Guide mode (the main one) runs inside FloLess AI Chat as the built-in Guide, whose first turn carries a JSON block of facts FloLess collected (apps, running, recentFiles, accounts, floless) — it briefs the person on what they seem to work on, then onboards them from their own situation, offering every next move as a button (floless_suggest_next_move, floless_connection_propose); the looks FloLess starts stay read only, and later it changes something only when the person asks and the chat's Access allows it. Terminal mode is the re-runnable guided tour for an AI in an external terminal (AWARE first, then the FloLess surfaces). Instructor focused mode answers one queued guide request about a single control. Project kickoff mode sets up a General project the person just created, from a project-kickoff request whose first turn carries a kickoff facts block (project, companyLibrary, projectKnowledge, modules, nextSteps) - one question on the question tool, company knowledge first (offered), then project knowledge, connections and at most two next steps, every change a card the person confirms. Use it when the Guide conversation or a project kickoff starts, and on asks like "what can FloLess do for me", "how do I", "onboard me", "get me started", "I'm new to FloLess or AWARE", "give me the guided tour", "walk me through floless.app", "what can AWARE do", "show me the agents", or "/floless-app-onboarding" - for the whole tour or one section.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.5.
|
|
5
|
+
version: 0.5.8
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Onboarding a person into FloLess + AWARE
|
|
@@ -55,7 +55,8 @@ What the block can hold (any section may be capped — it says how many were lef
|
|
|
55
55
|
- **recentFiles** — recently used work files with their folders, newest first. If the person did not
|
|
56
56
|
share file names, there are only **counts per file type** — never guess names from counts.
|
|
57
57
|
- **accounts** — services connected to FloLess and their status (names only).
|
|
58
|
-
- **floless** — what FloLess already holds here: projects, workflows, agents,
|
|
58
|
+
- **floless** — what FloLess already holds here: projects (each `{ id, name }`), workflows (each by its id), agents,
|
|
59
|
+
routines, installed tools.
|
|
59
60
|
|
|
60
61
|
### First reply: a short briefing
|
|
61
62
|
|
|
@@ -95,7 +96,13 @@ person confirms in FloLess's own flow:
|
|
|
95
96
|
what it makes, where the result goes. Pressing it again opens the same workflow; it never makes a second one.
|
|
96
97
|
- `create-agent` (`name`, `instructions`) — opens the Agents page with a draft.
|
|
97
98
|
- `create-routine` (`workflowId` or `agentId`) — opens the Routines editor; the person picks the schedule there.
|
|
98
|
-
- `open` (`page`) — opens one FloLess page: `workspaces`, `workflows`, `agents`, `routines`, `tools`, `discover` (Discover Local Tools), `integrations` or `requests`.
|
|
99
|
+
- `open` (`page`) — opens one FloLess page: `workspaces`, `workflows`, `agents`, `routines`, `tools`, `discover` (Discover Local Tools), `integrations` or `requests`.
|
|
100
|
+
- `open` (`projectId`, optional `step`: `model` or `history`) — opens that one project, at that step when the
|
|
101
|
+
suggestion is about it ("review its model", "look at its History"). `open` (`workflowId`) — opens that one workflow.
|
|
102
|
+
**Whenever a suggestion is about one project or workflow, open that one** — never only the Workspaces or Workflows
|
|
103
|
+
page, which leaves the person to find what you already named. Take the id from the facts (`floless.projects[].id`,
|
|
104
|
+
`floless.workflows`), never from a name: two projects can share a name. Use the bare `workspaces` / `workflows` page
|
|
105
|
+
only to browse or create. Knowledge lives inside a project: open that project and say which step in words.
|
|
99
106
|
Always give `why`: one short sentence tied to what you saw ("you open the same BOM spreadsheet every
|
|
100
107
|
Monday").
|
|
101
108
|
- `floless_connection_propose` (`target`, `why`) — for connecting a tool or service; its card opens
|
|
@@ -139,7 +146,9 @@ saying what it looked at; you do not need to repeat that.
|
|
|
139
146
|
you ask permission for to be declined. It always runs Read only, whatever Access the chat has.
|
|
140
147
|
- **Keep it short:** two to four lines on what they seem to be working on (what is open, what they
|
|
141
148
|
touched recently), then at most three next moves as buttons (`floless_suggest_next_move`, or
|
|
142
|
-
`floless_connection_propose` for a connection). Same kinds and fields as above, nothing else.
|
|
149
|
+
`floless_connection_propose` for a connection). Same kinds and fields as above, nothing else. A move about one
|
|
150
|
+
project or workflow you named ("review the newly listed project's model") opens that one, by its
|
|
151
|
+
`projectId` (and `step`) or `workflowId`, never only the landing page.
|
|
143
152
|
- If the facts are thin or a part could not be read, say so in one line rather than guessing.
|
|
144
153
|
- If the person later asks how to change it: the Guide conversation's settings in AI Chat hold the
|
|
145
154
|
**Morning briefing** switch, its time and days, and **Pause for a week**; turning the Guide off also
|
|
@@ -5,6 +5,9 @@ do I …". Point the person at the real thing on their screen (FloLess at `http:
|
|
|
5
5
|
where useful, at their live state. Keep each section short; check in before moving on.
|
|
6
6
|
|
|
7
7
|
Ground rules for describing any of it:
|
|
8
|
+
- FloLess opens in its **own window** on a new install (an install that was in use before keeps its browser tab).
|
|
9
|
+
Either way it is the same page: the ≡ menu's **Open FloLess in Window | Browser** switches, and *Open in browser*
|
|
10
|
+
is always one click away. Say "the FloLess window" unless you know they use the tab.
|
|
8
11
|
- FloLess is a **window**: it shows AWARE's state, starts `aware` verbs, and relays what the person
|
|
9
12
|
wants to the AI provider they chose. It never composes a workflow or calls an AI on its own.
|
|
10
13
|
- If something below is not on the person's screen, their build may be older — say so plainly and use
|
|
@@ -7,7 +7,7 @@ description: >-
|
|
|
7
7
|
two-phase Drawing Filter process: first prepare and save the deterministic Filter, then read only the
|
|
8
8
|
selected evidence into model-global members, registered plan views, observations, and revision history.
|
|
9
9
|
metadata:
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.98.0
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
## Shared height study: server-owned reader claims
|
|
@@ -229,7 +229,8 @@ third of the layers. Nobody can tick one, and saving the Filter again changes no
|
|
|
229
229
|
Lettering DRAWN as linework on a `notRead` layer was withheld with the rest of it, so a label missing
|
|
230
230
|
from the text elements is not proof the sheet lacks it. Once the Filter is saved, read it and the
|
|
231
231
|
withheld linework off the page picture (`GET …/steel-manifest/pages/<pageId>/picture`, `part=0` for
|
|
232
|
-
the whole sheet, `1..9` for enlarged tiles; a `404` names its own fallback, so follow it).
|
|
232
|
+
the whole sheet, `1..9` for enlarged tiles; a `404` names its own fallback, so follow it). In AI
|
|
233
|
+
Chat, `floless_evidence_read` takes `part` on an enlarged sheet: ask for the one tile you need. The
|
|
233
234
|
picture is context for grids, dimensions and annotation only: members still come from elements the
|
|
234
235
|
saved selection keeps.
|
|
235
236
|
- A `scaleProposals` refusal saying the sheet names **no grid family** is usually this same withholding,
|
|
@@ -275,6 +276,23 @@ Every audit response carries **`audit.rfis`**: the questions this read could not
|
|
|
275
276
|
derives them from what you stated - you cannot author one, merge two, or leave one out. They are there
|
|
276
277
|
whether the read was refused or went through.
|
|
277
278
|
|
|
279
|
+
**A row carrying `drawnHeights` is a drawing conflict:** the drawings now give that end a different
|
|
280
|
+
height than the model holds (a person's earlier answer included, when the drawings changed since or it
|
|
281
|
+
never recorded which drawings it was given against), and its question says both. It is the person's;
|
|
282
|
+
never settle it yourself. **In a precise read, ask it on a height card** like any other height of a
|
|
283
|
+
member already in the model, after auditing: the server puts what this audit found on the drawings on the
|
|
284
|
+
card beside the held height, and records with the person's answer which drawings they saw, so the end is
|
|
285
|
+
not asked again until the drawings change. The exception is a card that could read only some of the end's
|
|
286
|
+
drawn heights: its answer acknowledges none of them, so the next audit raises the end again until every
|
|
287
|
+
drawn height can be read. Within this read, never re-ask an end the person already answered unless its
|
|
288
|
+
readings changed. Ask it on the card **even when `rfiAnnotations` says its RFI
|
|
289
|
+
is filed** (`open`, `sent` or `answered`): never file that RFI again or re-ask it as an RFI; tell the
|
|
290
|
+
person the RFI stays the record and the card asks what height the model keeps. A card asked before any
|
|
291
|
+
audit of this read says the end is unchecked, and its answer acknowledges no drawings. **In a Quick read,
|
|
292
|
+
file it as an RFI**; never settle it. The model keeps its height until a person changes it; recording an
|
|
293
|
+
RFI's answer does not change it. If the endpoint check says some ends' drawn heights could not be
|
|
294
|
+
checked, say how many; never say the heights agree with the drawings.
|
|
295
|
+
|
|
278
296
|
The response also carries the response-only sibling **`rfiAnnotations`**, which checks those exact
|
|
279
297
|
questions against the project's durable RFI list without changing the signed audit. Read it before
|
|
280
298
|
asking anything:
|
|
@@ -724,6 +742,7 @@ In a Quick read:
|
|
|
724
742
|
these rows. The server answers 409 with what is wrong and you fix exactly that:
|
|
725
743
|
`quick-read-selection-incomplete` (neither), `quick-read-decided-and-filed` (both),
|
|
726
744
|
`quick-read-recommendation-stale` (the facts changed: audit again and update it),
|
|
745
|
+
`quick-read-drawn-height-settled` (a `drawnHeights` row was settled: file it in `gaps` instead),
|
|
727
746
|
`quick-question-generation-gone` (audit again), `quick-read-selection-too-large` (shorten `proposed`
|
|
728
747
|
and `tried`, never drop a question). `quick-read-set-too-large` is a stop: end the run as `needs-you`,
|
|
729
748
|
"this drawing set raises more questions than one read can file; read the set in parts". The RFIs are
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-ui
|
|
3
3
|
description: This skill should be used when the user wants to customize the floless.app Dashboard — add, change, rearrange, or remove custom panels (stat cards, data tables, report buttons, run buttons) — or when picking up queued 'ui-customize' requests from the floless.app Customize box. Use it when the user says things like "add a panel showing last night's BOM run", "pin a run button to my dashboard", "apply my dashboard change", "customize my floless dashboard", "pick up my floless UI request", after they type into the Dashboard's Customize box, OR when they paste a message beginning with a `[floless-request type=ui-customize id=…]` marker (a request copied from the Dashboard — resolve it via /api/requests, don't run it verbatim). It edits ~/.floless/ui/extensions.json (the declarative UI descriptor), validates with the AWARE ui agent, and the app re-renders live.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.2
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# floless.app Custom Panels — the dashboard descriptor
|
|
@@ -13,7 +13,7 @@ description; floless.app renders it** with its own design system. You never writ
|
|
|
13
13
|
CSS, or JS — and never need to: every string in the descriptor is escaped at render time,
|
|
14
14
|
so markup would show up as literal text.
|
|
15
15
|
|
|
16
|
-
The file is watched: the moment you write it, the open browser re-renders the Dashboard.
|
|
16
|
+
The file is watched: the moment you write it, the open FloLess window or browser tab re-renders the Dashboard.
|
|
17
17
|
No compile, no approve, no restart.
|
|
18
18
|
|
|
19
19
|
## Picking up a queued request
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-workflows
|
|
3
3
|
description: This skill should be used when building, modifying, or reasoning about FloLess .flo workflows for floless.app — especially reusable apps that take inputs (e.g. a phase number) and run across different models from any source (Tekla, Revit, Rhino, SketchUp, an IFC file, the FloLess steel model, a Workspace project), exec nodes that run code against a live host model (e.g. Roslyn C# in Tekla), Blender animations of a building (blender/exec Python rendered headlessly — construction sequence, fly-through, sun study), the in-app HTML Viewer, the Code tab, or "Debug in VS". Covers the exec contract, the install→validate→compile→run loop, app inputs templating, reading approved Workspace project data and immutable approved Revit model snapshots through the floless-workspace REST seam plus its themed pickers, and the server seams (aware-adapter, app-reader, index).
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.8.
|
|
5
|
+
version: 0.8.9
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Building reusable .flo workflows in floless.app
|
|
@@ -11,7 +11,7 @@ metadata:
|
|
|
11
11
|
|
|
12
12
|
floless.app is a **thin web UI over the `aware` CLI**. It owns **no engine and no LLM**.
|
|
13
13
|
Every capability is either `aware <verb>` (shelled through one adapter) or reading AWARE
|
|
14
|
-
state off disk. The browser is just the
|
|
14
|
+
state off disk. The FloLess window (or browser tab) is just the display. Never make the UI compose workflows or call
|
|
15
15
|
an LLM — it renders AWARE state, triggers `aware` verbs, and relays user intent.
|
|
16
16
|
|
|
17
17
|
The deliverable floless.app produces is a **reusable FloLess `.flo` app** (which runs on AWARE): one that declares
|
package/dist/web/agents.js
CHANGED
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
// Default scope is where you came from (#1337, 2026-10-02): the project or workflow you last had open.
|
|
286
286
|
const scope = [];
|
|
287
287
|
let lastProject = null;
|
|
288
|
-
try { lastProject = localStorage.getItem('floless:last-project'); } catch { /* private mode */ }
|
|
288
|
+
try { lastProject = window.flolessPrefs ? window.flolessPrefs.get('lastProject') : localStorage.getItem('floless:last-project'); } catch { /* private mode */ }
|
|
289
289
|
const project = lastProject && state.options?.projects.find((p) => p.id === lastProject);
|
|
290
290
|
if (project) scope.push({ kind: 'project', projectId: project.id, projectUuid: project.uuid });
|
|
291
291
|
return { name: '', instructions: '', scope, mode: 'separate', allowChanges: false };
|
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
|
|
|
@@ -7924,9 +7956,68 @@ tr.hist-diff-row[hidden] { display:none; }
|
|
|
7924
7956
|
.kb-view-x:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
|
|
7925
7957
|
.kb-view-body { flex:1; min-height:0; display:flex; flex-direction:column; background:var(--bg); }
|
|
7926
7958
|
|
|
7927
|
-
/*
|
|
7928
|
-
|
|
7929
|
-
|
|
7959
|
+
/* #3018: FloLess's own PDF viewer (web/pdf-view.js), shared by the Knowledge preview and AI Chat's cited-file viewer.
|
|
7960
|
+
Every part of it is FloLess's, so every part is themed: the toolbar, the page field, the scroll area's scrollbars. Only
|
|
7961
|
+
the page itself is white, as the document is. */
|
|
7962
|
+
.kb-view-body > .pdf-view { flex:1; min-height:0; }
|
|
7963
|
+
.pdf-view { display:flex; flex-direction:column; min-height:0; font:11px/1.4 var(--ui); color:var(--text); }
|
|
7964
|
+
.pdf-view-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:6px 8px;
|
|
7965
|
+
border-bottom:1px solid var(--border); background:var(--surface); }
|
|
7966
|
+
.pdf-view-name { min-width:0; max-width:40%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
|
|
7967
|
+
font-weight:600; color:var(--text); }
|
|
7968
|
+
.pdf-view-group { display:flex; align-items:center; gap:4px; }
|
|
7969
|
+
.pdf-view-group[hidden], .pdf-view-name[hidden] { display:none; }
|
|
7970
|
+
.pdf-view-btn { font:inherit; min-width:28px; padding:4px 8px; color:var(--text-muted); background:transparent;
|
|
7971
|
+
border:1px solid var(--border-strong); border-radius:5px; cursor:pointer; text-decoration:none; text-align:center; line-height:1.3; }
|
|
7972
|
+
.pdf-view-btn:hover:not(:disabled) { color:var(--accent-bright); border-color:var(--accent); background:var(--accent-soft); }
|
|
7973
|
+
.pdf-view-btn:disabled { color:var(--text-dim); cursor:default; }
|
|
7974
|
+
.pdf-view-btn:focus-visible, .pdf-view-page:focus-visible, .pdf-view-password-field:focus-visible {
|
|
7975
|
+
outline:2px solid var(--accent); outline-offset:1px; }
|
|
7976
|
+
.pdf-view-btn[aria-pressed="true"] { color:var(--text); background:var(--surface-3); }
|
|
7977
|
+
.pdf-view-download { margin-left:auto; }
|
|
7978
|
+
.pdf-view-page, .pdf-view-password-field { font:inherit; color:var(--text); background:var(--surface-2);
|
|
7979
|
+
border:1px solid var(--border-strong); border-radius:5px; padding:3px 6px; }
|
|
7980
|
+
.pdf-view-page { width:4ch; text-align:center; font-family:var(--mono); }
|
|
7981
|
+
.pdf-view-total, .pdf-view-level { color:var(--text-muted); font-family:var(--mono); font-variant-numeric:tabular-nums; }
|
|
7982
|
+
.pdf-view-level { min-width:4.5ch; text-align:center; }
|
|
7983
|
+
.pdf-view-stage { position:relative; flex:1; min-height:0; overflow:auto; padding:12px; background:var(--surface-2);
|
|
7984
|
+
display:flex; flex-direction:column; align-items:flex-start; gap:12px;
|
|
7985
|
+
scrollbar-width:thin; scrollbar-color:var(--text-dim) var(--surface-2); scrollbar-gutter:stable; }
|
|
7986
|
+
.pdf-view-stage::-webkit-scrollbar { width:8px; height:8px; }
|
|
7987
|
+
.pdf-view-stage::-webkit-scrollbar-track { background:var(--surface-2); }
|
|
7988
|
+
.pdf-view-stage::-webkit-scrollbar-thumb { background:var(--text-dim); border-radius:8px; }
|
|
7989
|
+
.pdf-view-stage::-webkit-scrollbar-corner { background:var(--surface-2); }
|
|
7990
|
+
.pdf-view-stage:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
|
|
7991
|
+
.pdf-view-sheet { position:relative; flex:none; margin-inline:auto; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.35); }
|
|
7992
|
+
.pdf-view-canvas { display:block; }
|
|
7993
|
+
/* A page pdf.js could not draw: said on the page, in the page's own place. */
|
|
7994
|
+
.pdf-view-sheet-failed { position:absolute; inset:auto 16px 50%; margin:0; padding:8px 10px; text-align:center;
|
|
7995
|
+
color:var(--text); background:var(--surface-2); border:1px solid var(--border-strong); border-radius:5px; }
|
|
7996
|
+
.pdf-view-status { margin:auto; max-width:46ch; text-align:center; color:var(--text-muted); }
|
|
7997
|
+
.pdf-view-password { display:flex; gap:6px; }
|
|
7998
|
+
.pdf-view-password[hidden] { display:none; }
|
|
7999
|
+
.pdf-view-live { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
|
|
8000
|
+
[data-theme="light"] .pdf-view { --text-muted:#475569; }
|
|
8001
|
+
[data-theme="light"] .pdf-view-sheet { box-shadow:0 1px 3px rgba(15,23,42,.18); }
|
|
8002
|
+
/* pdf.js's text layer: invisible text laid exactly over the drawn page, so it can be selected and copied. Taken from
|
|
8003
|
+
pdf.js's own pdf_viewer.css (6.4.299), only the rules this viewer uses. */
|
|
8004
|
+
.pdf-view .textLayer { position:absolute; inset:0; overflow:clip; line-height:1; text-align:initial;
|
|
8005
|
+
-webkit-text-size-adjust:none; text-size-adjust:none; forced-color-adjust:none; transform-origin:0 0; z-index:0;
|
|
8006
|
+
--min-font-size:1; --text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));
|
|
8007
|
+
--min-font-size-inv:calc(1 / var(--min-font-size)); }
|
|
8008
|
+
.pdf-view .textLayer :is(span, br) { color:transparent; position:absolute; white-space:pre; cursor:text;
|
|
8009
|
+
transform-origin:0% 0%; user-select:text; }
|
|
8010
|
+
.pdf-view .textLayer > :not(.markedContent), .pdf-view .textLayer .markedContent span:not(.markedContent) {
|
|
8011
|
+
z-index:1; --font-height:0; font-size:calc(var(--text-scale-factor) * var(--font-height));
|
|
8012
|
+
--scale-x:1; --rotate:0deg; transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
|
|
8013
|
+
.pdf-view .textLayer .markedContent { display:contents; }
|
|
8014
|
+
.pdf-view .textLayer span[role="img"] { user-select:none; cursor:default; }
|
|
8015
|
+
.pdf-view .textLayer ::selection { background:color-mix(in srgb, var(--accent) 35%, transparent); color:transparent; }
|
|
8016
|
+
.pdf-view .textLayer .endOfContent { display:block; position:absolute; inset:100% 0 0; z-index:0; cursor:default; user-select:none; }
|
|
8017
|
+
@media (max-width:420px) {
|
|
8018
|
+
.pdf-view-name { max-width:100%; flex-basis:100%; }
|
|
8019
|
+
.pdf-view-btn { min-height:32px; }
|
|
8020
|
+
}
|
|
7930
8021
|
.kb-view-img-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center;
|
|
7931
8022
|
padding:20px; overflow:hidden; }
|
|
7932
8023
|
.kb-view-img { max-width:100%; max-height:100%; object-fit:contain; }
|
|
@@ -9229,3 +9320,69 @@ input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer
|
|
|
9229
9320
|
.company-cat-edit { margin-left:calc(var(--kb-depth, 0) * 12px); }
|
|
9230
9321
|
.company-pop { position:absolute; z-index:5; background:var(--surface); border:1px solid var(--border-strong); border-radius:7px; box-shadow:0 8px 24px color-mix(in srgb, var(--bg) 50%, transparent); }
|
|
9231
9322
|
.company-pop.hist-confirm { padding:10px 12px; max-width:320px; }
|
|
9323
|
+
|
|
9324
|
+
/* ── The FloLess window (Electron shell) ─────────────────────────────────────────────────────────────────────────────
|
|
9325
|
+
Everything below hangs off `html.desktop`, which web/desktop-window.js adds ONLY when the shell's bridge is present, so
|
|
9326
|
+
a browser tab never sees a single rule of it. The header becomes the window's title bar: Windows draws the caption
|
|
9327
|
+
buttons over its right end, and the page is given the free area through env(titlebar-area-x / -width). */
|
|
9328
|
+
html.desktop header {
|
|
9329
|
+
-webkit-app-region: drag;
|
|
9330
|
+
flex-wrap: nowrap;
|
|
9331
|
+
/* Lay the header out inside the safe rectangle: nothing sits under the caption buttons. Without the env() values (no
|
|
9332
|
+
overlay) both fall back to the tab's own insets. */
|
|
9333
|
+
padding-left: max(var(--ham-inset), env(titlebar-area-x, 0px));
|
|
9334
|
+
padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 18px);
|
|
9335
|
+
}
|
|
9336
|
+
/* Every control, pill and popover stays clickable and keeps its tooltip (a drag region swallows both). */
|
|
9337
|
+
html.desktop header :is(button, a, input, select, textarea, .mode-switch, .wf-combo, .wf-popover, .wf-forked-pill,
|
|
9338
|
+
.wf-update-pill, .ws-quick-chips, #run-state) { -webkit-app-region: no-drag; }
|
|
9339
|
+
|
|
9340
|
+
/* The ≡ menu runs off the bottom of a short window: it scrolls instead (themed by the global scrollbar rule above). */
|
|
9341
|
+
html.desktop .menu {
|
|
9342
|
+
max-height: calc(100vh - var(--header-h) - 8px);
|
|
9343
|
+
overflow-y: auto;
|
|
9344
|
+
overscroll-behavior: contain;
|
|
9345
|
+
}
|
|
9346
|
+
|
|
9347
|
+
/* The one-time "Go fullscreen" nudge is for a browser tab; the window has its own maximise. ≡ → Enter full screen stays. */
|
|
9348
|
+
html.desktop .fullscreen-nudge { display: none; }
|
|
9349
|
+
|
|
9350
|
+
/* Narrow window: the header is one 40px row that cannot wrap, so what is decoration goes first and what is labelled goes
|
|
9351
|
+
icon-only. Nothing is removed: a collapsed label stays in the accessible name (visually hidden, never display:none).
|
|
9352
|
+
Thresholds are window widths: the caption buttons take ~140px, so a window of 960px leaves ~820px of header. */
|
|
9353
|
+
@media (max-width: 1240px) {
|
|
9354
|
+
html.desktop #wf-label, html.desktop #ws-proj-label {
|
|
9355
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9356
|
+
}
|
|
9357
|
+
}
|
|
9358
|
+
@media (max-width: 1160px) {
|
|
9359
|
+
html.desktop .mode-switch button:not(.active) > span {
|
|
9360
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9361
|
+
}
|
|
9362
|
+
html.desktop .mode-switch button:not(.active) { padding-left: 9px; padding-right: 9px; }
|
|
9363
|
+
}
|
|
9364
|
+
@media (max-width: 1100px) {
|
|
9365
|
+
html.desktop .ws-access-label {
|
|
9366
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9367
|
+
}
|
|
9368
|
+
html.desktop #run-state { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
9369
|
+
}
|
|
9370
|
+
@media (max-width: 1060px) {
|
|
9371
|
+
html.desktop .brand .name, html.desktop .mode-switch button.active > span {
|
|
9372
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9373
|
+
}
|
|
9374
|
+
html.desktop .mode-switch button.active { padding-left: 9px; padding-right: 9px; }
|
|
9375
|
+
html.desktop .controls { gap: 6px; }
|
|
9376
|
+
html.desktop .controls button { padding-left: 8px; padding-right: 8px; }
|
|
9377
|
+
html.desktop #wf-update, html.desktop #wf-forked, html.desktop #wf-agent-step {
|
|
9378
|
+
max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
9379
|
+
}
|
|
9380
|
+
/* The run state's words stay for screen readers (role=status); the Run and Stop buttons already show what is going on. */
|
|
9381
|
+
html.desktop #run-state {
|
|
9382
|
+
position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
|
|
9383
|
+
}
|
|
9384
|
+
}
|
|
9385
|
+
@media (max-width: 1000px) {
|
|
9386
|
+
/* The pickers are the shrink sink: below their 180px floor they still truncate, so the run buttons never leave the safe area. */
|
|
9387
|
+
html.desktop .wf-combo { min-width: 120px; }
|
|
9388
|
+
}
|
package/dist/web/app.js
CHANGED
|
@@ -144,7 +144,7 @@ function onboardingHtml() {
|
|
|
144
144
|
return (
|
|
145
145
|
`<div class="canvas-empty onboarding" data-kind="empty">` +
|
|
146
146
|
`<div class="onb-headline">Your terminal AI builds the workflows.<br>You run and inspect them here.</div>` +
|
|
147
|
-
`<div class="onb-sub">floless.app shows the canvas, triggers runs, and streams results. Compose in Claude Code or Codex; the browser is the window
|
|
147
|
+
`<div class="onb-sub">floless.app shows the canvas, triggers runs, and streams results. Compose in Claude Code or Codex; ${document.documentElement.classList.contains('desktop') ? 'this window shows what they build.' : 'the browser is the window.'}</div>` +
|
|
148
148
|
`<div class="onb-tour">` +
|
|
149
149
|
`<span class="onb-tour-hint">New here? The Guide looks at your setup in AI Chat and suggests where to start.</span>` +
|
|
150
150
|
`<button class="onb-tour-btn" type="button" data-command-id="shell.ask-guide#the Workflows page" data-tip="Ask the Guide in AI Chat to look at your setup and suggest what to do first."><span class="onb-tour-label">Ask the Guide</span><span class="onb-tour-ico" aria-hidden="true">→</span></button>` +
|
|
@@ -1296,7 +1296,12 @@ function relAgo(iso) {
|
|
|
1296
1296
|
function receiptItemText(prefix, value) {
|
|
1297
1297
|
if (typeof value === 'string') return `${prefix}: ${value}`;
|
|
1298
1298
|
if (!value || typeof value !== 'object') return `${prefix}: ${String(value)}`;
|
|
1299
|
-
|
|
1299
|
+
// #3097: the item (its id locates it) and what happened to it, in words. The code is for diagnosis and stays in the
|
|
1300
|
+
// receipt; it is shown only when nothing else says what happened, then as words ("unsupported-profile" → "unsupported
|
|
1301
|
+
// profile"), never as a bare token.
|
|
1302
|
+
const said = (part) => typeof part === 'string' && part.trim() ? part.trim() : '';
|
|
1303
|
+
const what = said(value.message) || said(value.code).replace(/[-_]+/g, ' ');
|
|
1304
|
+
const parts = [said(value.id), what].filter(Boolean);
|
|
1300
1305
|
if (parts.length) return `${prefix}: ${parts.join(' · ')}`;
|
|
1301
1306
|
try { return `${prefix}: ${JSON.stringify(value)}`; }
|
|
1302
1307
|
catch { return `${prefix}: detail unavailable`; }
|
|
@@ -1389,6 +1394,9 @@ function handleMenuAction(action) {
|
|
|
1389
1394
|
// #2046: the Guide — opens its conversation, or asks first (web/guide.js).
|
|
1390
1395
|
case 'guide': if (window.flolessGuide) void window.flolessGuide.open({ returnFocus: document.getElementById('menu-btn') }); break;
|
|
1391
1396
|
case 'fullscreen': toggleFullscreen(); break;
|
|
1397
|
+
// The FloLess window (web/desktop-window.js): one item per side, each shown only where it makes sense.
|
|
1398
|
+
case 'open-in-browser': window.flolessDesktopWindow?.openInBrowser(); break;
|
|
1399
|
+
case 'open-in-app': void window.flolessDesktopWindow?.openInApp(); break;
|
|
1392
1400
|
// Asks first (unsaved work, a running workflow) — see web/leave-guard.js.
|
|
1393
1401
|
case 'stop-app': if (window.flolessLeaveGuard) window.flolessLeaveGuard.stopApp(); break;
|
|
1394
1402
|
}
|
|
@@ -1484,9 +1492,10 @@ document.getElementById('find-close').onclick = closeFind;
|
|
|
1484
1492
|
|
|
1485
1493
|
const THEME_KEY = 'floless-demo-theme-v1';
|
|
1486
1494
|
|
|
1487
|
-
|
|
1495
|
+
// Paints a theme. Saving it is a separate step (setTheme): a theme the server told us about, or the dark default at boot, must not
|
|
1496
|
+
// be written back as if the person had chosen it (#2963).
|
|
1497
|
+
function applyTheme(theme) {
|
|
1488
1498
|
document.documentElement.dataset.theme = theme;
|
|
1489
|
-
localStorage.setItem(THEME_KEY, theme);
|
|
1490
1499
|
document.querySelectorAll('.theme-btn').forEach(b => {
|
|
1491
1500
|
b.classList.toggle('active', b.dataset.theme === theme);
|
|
1492
1501
|
});
|
|
@@ -1496,9 +1505,23 @@ function setTheme(theme) {
|
|
|
1496
1505
|
}
|
|
1497
1506
|
}
|
|
1498
1507
|
|
|
1508
|
+
// The person's choice: painted now, kept in this browser for first paint, and shared with the other FloLess client through the server.
|
|
1509
|
+
function setTheme(theme) {
|
|
1510
|
+
applyTheme(theme);
|
|
1511
|
+
if (globalThis.flolessPrefs) globalThis.flolessPrefs.set('theme', theme);
|
|
1512
|
+
else { try { localStorage.setItem(THEME_KEY, theme); } catch { /* private mode */ } }
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1499
1515
|
function initTheme() {
|
|
1500
|
-
|
|
1501
|
-
|
|
1516
|
+
let t = 'dark';
|
|
1517
|
+
try { t = (globalThis.flolessPrefs ? globalThis.flolessPrefs.get('theme') : localStorage.getItem(THEME_KEY)) || 'dark'; } catch { /* private mode */ }
|
|
1518
|
+
applyTheme(t === 'light' ? 'light' : 'dark');
|
|
1519
|
+
// The other client changed the theme (or the server answered after first paint): follow it, without saving it again.
|
|
1520
|
+
globalThis.flolessPrefs?.onChange((keys) => {
|
|
1521
|
+
if (!keys.includes('theme')) return;
|
|
1522
|
+
const next = globalThis.flolessPrefs.get('theme');
|
|
1523
|
+
if ((next === 'light' || next === 'dark') && document.documentElement.dataset.theme !== next) applyTheme(next);
|
|
1524
|
+
});
|
|
1502
1525
|
}
|
|
1503
1526
|
|
|
1504
1527
|
document.querySelectorAll('.theme-btn').forEach(b => {
|
|
@@ -1536,7 +1559,7 @@ async function revealStartOnLogin() {
|
|
|
1536
1559
|
// Read the setting first: if it has gone (or can't be read), say so and leave Routines open.
|
|
1537
1560
|
await refreshStartup();
|
|
1538
1561
|
if (!$startupRow || $startupRow.hidden || !$startupToggle) {
|
|
1539
|
-
showToast('Start
|
|
1562
|
+
showToast('Start with Windows isn’t available on this computer right now, so FloLess runs routines only while you keep it open.', 'warn');
|
|
1540
1563
|
return;
|
|
1541
1564
|
}
|
|
1542
1565
|
// Only the Routines list carries the link (the editor would drop a routine being written).
|
|
@@ -1566,13 +1589,21 @@ if ($startupToggle) {
|
|
|
1566
1589
|
body: JSON.stringify({ enabled: want }),
|
|
1567
1590
|
});
|
|
1568
1591
|
const d = await r.json().catch(() => ({}));
|
|
1569
|
-
if (!r.ok || !d.ok)
|
|
1592
|
+
if (!r.ok || !d.ok) {
|
|
1593
|
+
// #3070: the server reads Windows back and says what is really true; show that, never the flip we guessed.
|
|
1594
|
+
const failure = new Error('autostart-change-refused');
|
|
1595
|
+
failure.enabled = typeof d.enabled === 'boolean' ? d.enabled : null;
|
|
1596
|
+
// Plain words written by this route; `saved` marks them (any other failing body is not ours to show).
|
|
1597
|
+
failure.userMessage = typeof d.saved === 'boolean' && typeof d.error === 'string' && d.error ? d.error : null;
|
|
1598
|
+
throw failure;
|
|
1599
|
+
}
|
|
1570
1600
|
$startupToggle.checked = !!d.enabled; // trust server truth (schtasks re-queried)
|
|
1571
1601
|
// Success is silent — the switch position IS the confirmation (matches Theme).
|
|
1572
1602
|
// UX review 2026-05-31: a preference write doesn't rise to a toast.
|
|
1573
1603
|
} catch (e) {
|
|
1574
|
-
$startupToggle.checked = !want; // revert the optimistic flip
|
|
1575
|
-
showToast(
|
|
1604
|
+
$startupToggle.checked = typeof e?.enabled === 'boolean' ? e.enabled : !want; // what Windows really has, else revert the optimistic flip
|
|
1605
|
+
showToast(e?.userMessage
|
|
1606
|
+
|| 'We couldn’t save that startup setting. Try again. If it keeps happening, reopen FloLess.', 'err');
|
|
1576
1607
|
} finally {
|
|
1577
1608
|
$startupToggle.disabled = false;
|
|
1578
1609
|
}
|
|
@@ -1647,6 +1678,7 @@ function nudgeAlreadySeen() {
|
|
|
1647
1678
|
// was never dismissed/used. Delayed ~2s so the layout settles first.
|
|
1648
1679
|
function maybeShowFsNudge() {
|
|
1649
1680
|
if (nudgeAlreadySeen()) return;
|
|
1681
|
+
if (document.documentElement.classList.contains('desktop')) return; // the window has its own maximise
|
|
1650
1682
|
setTimeout(() => {
|
|
1651
1683
|
if (!$fsNudge || !$fsNudge.isConnected || !$fsNudge.hidden) return;
|
|
1652
1684
|
if (nudgeAlreadySeen() || isFullscreen()) return;
|
|
@@ -1692,8 +1724,13 @@ function userSafeToastMessage(msg, type) {
|
|
|
1692
1724
|
const text = String(msg ?? '').trim();
|
|
1693
1725
|
// #2868: the reason behind raw text is unknown, so this says so. It used to blame a lost connection and promise the
|
|
1694
1726
|
// work was still there, neither of which this line can know.
|
|
1727
|
+
// #3097: a status number in brackets ("failed (500)") or after "answered"/"returned", a lost fetch and an exit code are
|
|
1728
|
+
// diagnostics too.
|
|
1729
|
+
// A bare "(450)" is not matched alone: a detailer's dimension can sit in brackets; it must follow "failed"/"error".
|
|
1695
1730
|
if ((type === 'warn' || type === 'err')
|
|
1696
|
-
&& /\b(?:http\s*\d+|error:|exception|stack trace|server log|status code|undefined|null|subscription required|unauthori[sz]ed|forbidden)\b/i.test(text)
|
|
1731
|
+
&& (/\b(?:http\s*\d+|error:|exception|stack trace|server log|status code|exit code|failed to fetch|undefined|null|subscription required|unauthori[sz]ed|forbidden)\b/i.test(text)
|
|
1732
|
+
|| /\((?:http|error|status)\s*[45]\d\d\)|\b(?:failed|error)\s*\([45]\d\d\)|\b(?:answered|returned|status)\s+[45]\d\d\b/i.test(text))) {
|
|
1733
|
+
console.warn('[toast] raw text replaced with the unknown-failure sentence:', text);
|
|
1697
1734
|
return UNKNOWN_FAILURE_TOAST;
|
|
1698
1735
|
}
|
|
1699
1736
|
return text || UNKNOWN_FAILURE_TOAST;
|
|
@@ -2023,10 +2060,13 @@ let workspaceRootInterruption = '';
|
|
|
2023
2060
|
async function workspaceRootApi(path, opts) {
|
|
2024
2061
|
await globalThis.flolessStartupAdmission?.admit(path, { method: opts?.method, signal: opts?.signal });
|
|
2025
2062
|
const response = await fetch(path, { headers: { 'content-type': 'application/json' }, ...opts });
|
|
2026
|
-
|
|
2063
|
+
// #3097: an unreadable answer and an unexplained failure read as the shared sentence, never "HTTP N".
|
|
2064
|
+
const body = await response.json().catch(() => ({ ok: false, code: 'response-unreadable' }));
|
|
2027
2065
|
if (!response.ok || body.ok === false) {
|
|
2028
|
-
const
|
|
2066
|
+
const method = String(opts?.method || 'GET').toUpperCase();
|
|
2067
|
+
const error = new Error(body.error || failureCopy({ status: response.status, body }, { retrySafe: method === 'GET' || method === 'HEAD' }).text);
|
|
2029
2068
|
error.body = body;
|
|
2069
|
+
error.status = response.status;
|
|
2030
2070
|
throw error;
|
|
2031
2071
|
}
|
|
2032
2072
|
return body;
|
|
@@ -220,13 +220,16 @@
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
if (!result.response.ok) {
|
|
223
|
-
|
|
223
|
+
// #3097: the server's reason when it gave one; never a status number. The outcome is unknown here, so the
|
|
224
|
+
// person is asked to look again before starting another upgrade.
|
|
225
|
+
const message = result.body.error || 'FloLess lost track of the AWARE upgrade, so it can’t say whether it finished. Reopen this window to check before starting another upgrade.';
|
|
226
|
+
console.warn('[aware-update] status read failed', result.response.status, result.body);
|
|
224
227
|
return emit({ status: 'runtime-failed', transaction, target: state.target, observedVersion: null,
|
|
225
228
|
// Identity is immutable, and DEFAULTED because start()/resume() emit before any poll
|
|
226
229
|
// has supplied it — copying a bare `state.operation` there copies undefined, which
|
|
227
230
|
// renders as a runtime upgrade anyway. The defaults match normalize()'s own.
|
|
228
231
|
operation: state.operation || 'runtime-update', origin: state.origin || 'user',
|
|
229
|
-
error: { code: 'status-request-failed', message: String(message) } });
|
|
232
|
+
error: { code: 'status-request-failed', status: result.response.status, message: String(message) } });
|
|
230
233
|
}
|
|
231
234
|
let next;
|
|
232
235
|
try { next = normalize(result.body, transaction); }
|
|
@@ -299,12 +302,14 @@
|
|
|
299
302
|
}
|
|
300
303
|
if (!result) return state;
|
|
301
304
|
if (!result.response.ok) {
|
|
305
|
+
console.warn('[aware-update] start refused', result.response.status, result.body);
|
|
302
306
|
// Spread from `identity`, not from `state`: emit() replaces state wholesale, so a refused
|
|
303
307
|
// RECOVERY that reported no operation was indistinguishable from a refused upgrade — and a
|
|
304
308
|
// hard-coded 'runtime-update' was worse still, because it SHADOWED the painters' fallback.
|
|
305
309
|
return emit({ ...identity, status: 'runtime-failed', origin: 'user',
|
|
306
|
-
error: { code: String(result.body.code || 'start-refused'),
|
|
307
|
-
|
|
310
|
+
error: { code: String(result.body.code || 'start-refused'), status: result.response.status,
|
|
311
|
+
// #3097: never a status number. Refused or not, the server gave no reason, so whether it started is unknown.
|
|
312
|
+
message: String(result.body.error || result.body.message || 'FloLess couldn’t confirm that the AWARE upgrade started. Reopen this window to see whether it is running before you try again. If it keeps happening, use Report an issue at the bottom of the window.') } });
|
|
308
313
|
}
|
|
309
314
|
const transaction = transactionOf(result.body) || transactionOf(payloadOf(result.body));
|
|
310
315
|
if (!transaction) {
|
|
@@ -433,7 +438,10 @@
|
|
|
433
438
|
|
|
434
439
|
async function check() {
|
|
435
440
|
const result = await request('/api/aware/update');
|
|
436
|
-
if (!result.response.ok)
|
|
441
|
+
if (!result.response.ok) {
|
|
442
|
+
throw Object.assign(new Error(result.body.error || 'FloLess couldn’t check for AWARE updates just now. Try again in a moment.'),
|
|
443
|
+
{ status: result.response.status, body: result.body });
|
|
444
|
+
}
|
|
437
445
|
return result.body;
|
|
438
446
|
}
|
|
439
447
|
|