@floless/app 0.167.0 → 0.169.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autostart.mjs +169 -63
- package/cli-actions.mjs +8 -1
- package/desktop-shell.mjs +335 -0
- package/dist/floless-server.cjs +73121 -55759
- package/dist/schemas/steel.model.v2.schema.json +2 -1
- package/dist/skills/floless-app-onboarding/SKILL.md +13 -4
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +3 -0
- package/dist/skills/floless-app-rfi/SKILL.md +4 -2
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +21 -2
- package/dist/skills/floless-app-ui/SKILL.md +2 -2
- package/dist/skills/floless-app-workflows/SKILL.md +2 -2
- package/dist/templates/college-phase-exporter.flo +7 -2
- package/dist/templates/trimble-list-projects.flo +10 -2
- package/dist/web/agent-steps.js +2 -2
- package/dist/web/agents.js +50 -14
- package/dist/web/app.css +209 -11
- package/dist/web/app.js +99 -16
- package/dist/web/aware-update-client.js +14 -6
- package/dist/web/aware.js +583 -69
- package/dist/web/chat.css +12 -1
- package/dist/web/chat.js +627 -96
- package/dist/web/commands-drawing-check.js +3 -0
- package/dist/web/commands-filter.js +5 -5
- package/dist/web/commands-shell.js +283 -14
- package/dist/web/commands-steel.js +9 -2
- package/dist/web/commands-vector.js +69 -0
- package/dist/web/desktop-window.js +435 -0
- package/dist/web/drawing-check-editor.html +10 -0
- package/dist/web/drawing-check-editor.js +515 -187
- package/dist/web/failure-copy.js +33 -2
- package/dist/web/flo-3d.js +310 -0
- package/dist/web/flo-card.js +72 -0
- package/dist/web/guide.js +78 -10
- package/dist/web/index.html +90 -10
- package/dist/web/instructor.js +4 -1
- package/dist/web/leave-guard.js +347 -14
- package/dist/web/model-editor-steel-adapter.js +41 -1
- package/dist/web/model-viewport-toolbar.js +11 -0
- package/dist/web/pages.js +21 -14
- package/dist/web/panels.js +5 -2
- package/dist/web/pdf-view.js +421 -0
- package/dist/web/project-history.js +3 -2
- package/dist/web/project-modules.js +5 -3
- package/dist/web/project-reconciliation.js +1 -1
- package/dist/web/project-rfis.js +4 -2
- package/dist/web/project-workflows.js +8 -4
- package/dist/web/reference-geometry-worker.js +11 -2
- package/dist/web/renderers.js +6 -0
- package/dist/web/report-csp.js +68 -0
- package/dist/web/revit-editor.html +1 -0
- package/dist/web/revit-editor.js +37 -8
- package/dist/web/run-history.js +2 -3
- package/dist/web/shared-prefs.js +364 -0
- package/dist/web/steel-3d-flo.js +309 -0
- package/dist/web/steel-3d-view.js +159 -0
- package/dist/web/steel-editor.html +329 -47
- package/dist/web/steel-filter-flo.js +74 -18
- package/dist/web/steel-filter.html +22 -6
- package/dist/web/tab-signal.js +36 -1
- package/dist/web/tekla-editor.html +1 -0
- package/dist/web/terminal-requests.js +78 -0
- package/dist/web/tool-updates.js +160 -38
- package/dist/web/vector-3d.html +14 -3
- package/dist/web/vector-editor.html +60 -10
- package/dist/web/vendor/README.md +23 -0
- package/dist/web/vendor/pdfjs/LICENSE +177 -0
- package/dist/web/vendor/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Add-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- package/dist/web/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Ext-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-H.bcmap +4 -0
- package/dist/web/vendor/pdfjs/cmaps/GB-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBT-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Hankaku.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Hiragana.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Katakana.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/LICENSE +36 -0
- package/dist/web/vendor/pdfjs/cmaps/NWP-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/NWP-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/Roman.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/V.bcmap +0 -0
- package/dist/web/vendor/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- package/dist/web/vendor/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
- package/dist/web/vendor/pdfjs/iccs/LICENSE +116 -0
- package/dist/web/vendor/pdfjs/pdf.min.mjs +28 -0
- package/dist/web/vendor/pdfjs/pdf.worker.mjs +64908 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/dist/web/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_JBIG2 +196 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/dist/web/vendor/pdfjs/wasm/LICENSE_QCMS +21 -0
- package/dist/web/vendor/pdfjs/wasm/jbig2.wasm +0 -0
- package/dist/web/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js +15 -0
- package/dist/web/vendor/pdfjs/wasm/openjpeg.wasm +0 -0
- package/dist/web/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
- package/dist/web/vendor/pdfjs/wasm/qcms_bg.wasm +0 -0
- package/dist/web/workspace-root-management.js +1 -1
- package/dist/web/workspaces.js +792 -165
- package/home-env.mjs +28 -0
- package/install-path.mjs +59 -3
- package/launch-starting-page.mjs +35 -15
- package/launch.mjs +363 -51
- package/package.json +9 -8
- package/pin-home.mjs +6 -0
- package/post-update-marker.mjs +14 -0
- package/preferences-file.mjs +289 -0
- package/supervisor-lock.mjs +195 -0
package/dist/web/failure-copy.js
CHANGED
|
@@ -108,7 +108,9 @@ function failureCopy(error, ctx) {
|
|
|
108
108
|
const refused = failureSentence(c.nothingDone) || lead;
|
|
109
109
|
const said = (s) => s.filter(Boolean).join(' ');
|
|
110
110
|
const userMessage = typeof body.userMessage === 'string' ? body.userMessage.trim() : '';
|
|
111
|
-
|
|
111
|
+
// #3097: a `diagnostic` reply's `reason` is what a tool printed (AWARE's stderr), kept for Technical details and the
|
|
112
|
+
// AI, never for the person's sentence.
|
|
113
|
+
const reason = typeof body.reason === 'string' && !body.diagnostic ? body.reason.trim() : '';
|
|
112
114
|
if (kind === 'busy') {
|
|
113
115
|
if (body.code === 'maintenance-busy' && typeof body.message === 'string' && body.message.trim()) {
|
|
114
116
|
return { kind, type: 'warn', text: said([refused, failureSentence(body.message)]) };
|
|
@@ -134,6 +136,10 @@ function failureCopy(error, ctx) {
|
|
|
134
136
|
// A refusal the server wrote for the person. Not for an unexpected failure: a 5xx is not a considered answer, and
|
|
135
137
|
// the person is told the reason is unknown rather than a sentence that may describe something else (#2764).
|
|
136
138
|
if (userMessage && kind !== 'unexpected') return { kind, type: 'warn', text: said([refused, failureSentence(userMessage)]) };
|
|
139
|
+
// #3097: a 4xx FloLess does not class (409 with no stale code, 412, 428, 429) is still a considered refusal, so its
|
|
140
|
+
// sentence is shown. The status alone proves no outcome, so it leads with what could not be done, not `nothingDone`.
|
|
141
|
+
const status = Number(error && error.status) || 0;
|
|
142
|
+
if (userMessage && status >= 400 && status < 500) return { kind, type: 'warn', text: said([lead, failureSentence(userMessage)]) };
|
|
137
143
|
if (kind === 'outdated') {
|
|
138
144
|
return { kind, type: 'err', text: said([refused, 'The AWARE runtime on this computer is too old for it.', 'Update AWARE, then try again.']) };
|
|
139
145
|
}
|
|
@@ -163,6 +169,31 @@ function failureCopy(error, ctx) {
|
|
|
163
169
|
return { kind, type: 'err', text: said([`Couldn’t ${action}, and FloLess couldn’t tell why.`, unsure, report]) };
|
|
164
170
|
}
|
|
165
171
|
|
|
172
|
+
/**
|
|
173
|
+
* #3097: the same sentence for a page's own empty or error state, which shows a headline and a line under it: the first
|
|
174
|
+
* sentence (what could not be done) is the headline, the rest (why, and what to do) the detail. Standalone pages
|
|
175
|
+
* (the Drawing Filter, the editors) load this file for it, so no page builds its own "(error 403)" again.
|
|
176
|
+
* @returns {{ kind: string, type: 'warn'|'err', headline: string, detail: string }}
|
|
177
|
+
*/
|
|
178
|
+
function failureParts(error, ctx) {
|
|
179
|
+
const copy = failureCopy(error, ctx);
|
|
180
|
+
const cut = copy.text.search(/[.!?](?=\s)/);
|
|
181
|
+
if (cut < 0) return { kind: copy.kind, type: copy.type, headline: copy.text, detail: '' };
|
|
182
|
+
return { kind: copy.kind, type: copy.type, headline: copy.text.slice(0, cut + 1), detail: copy.text.slice(cut + 1).trim() };
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* #3097 slice 2: the server's own sentence for the person, when it wrote one. `userMessage` is always for a person;
|
|
187
|
+
* `error` is too, unless the server marked it `diagnostic` (raw exception text on a 5xx, written for a developer).
|
|
188
|
+
* '' means the server said nothing a person should read, and the caller falls back to failureCopy.
|
|
189
|
+
*/
|
|
190
|
+
function personText(body) {
|
|
191
|
+
if (!body || typeof body !== 'object') return '';
|
|
192
|
+
if (typeof body.userMessage === 'string' && body.userMessage.trim()) return body.userMessage.trim();
|
|
193
|
+
if (!body.diagnostic && typeof body.error === 'string' && body.error.trim()) return body.error.trim();
|
|
194
|
+
return '';
|
|
195
|
+
}
|
|
196
|
+
|
|
166
197
|
if (typeof module !== 'undefined' && module.exports) {
|
|
167
|
-
module.exports = { failureKind, failureCopy, FAILURE_BUSY_CODES, FAILURE_BUSY_WORK };
|
|
198
|
+
module.exports = { failureKind, failureCopy, failureParts, personText, FAILURE_BUSY_CODES, FAILURE_BUSY_WORK };
|
|
168
199
|
}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
// Flo in 3D: the same Flo web/flo.js draws (the icon's node with pill eyes and the white hard hat), built as a
|
|
2
|
+
// small lacquered object that stands on a model and moves by hopping, with squash and stretch, as the design
|
|
3
|
+
// says it must (no body, no legs: docs/superpowers/specs/2026-10-07-flo-avatar-and-explainer-design.md).
|
|
4
|
+
// Everything Flo's face does (blink, glance, mood, hat tip) comes from floPose(), so the 2D and 3D Flo cannot
|
|
5
|
+
// drift. This module builds and moves Flo and nothing else: where Flo goes and which mood it shows is the
|
|
6
|
+
// caller's (web/steel-3d-flo.js), and it decides nothing about the model.
|
|
7
|
+
//
|
|
8
|
+
// Proportions are in units of r, the ring's centre-line radius, exactly as flo.js has them. Flo's own frame is
|
|
9
|
+
// Y up and faces +Z; the root group turns that into the scene's up axis, so a Z-up model works unchanged.
|
|
10
|
+
|
|
11
|
+
const HOP_MIN_S = 0.42, HOP_MAX_S = 0.95; // airtime, from a step to a leap across the model
|
|
12
|
+
const CROUCH_S = 0.12, LAND_S = 0.2; // anticipation before take-off, the settle after landing
|
|
13
|
+
const HELLO_S = 0.9; // one hat tip, as flo-avatar.js's Hello plays it
|
|
14
|
+
const STROKE = 0.29; // ring width / r (flo.js default)
|
|
15
|
+
const EYE_Z = 0.07; // how far the eyes stand proud of the face
|
|
16
|
+
|
|
17
|
+
// Flo in 3D wears the brand navy of the logo and the end cards (ring, eyes and hat ridge on a light face), not
|
|
18
|
+
// the 2D dark theme's lighter blue: the light face and white hat carry its outline on the dark 3D stage.
|
|
19
|
+
export const FLO_3D_COLORS = Object.freeze({ line: '#1e3a5f', fill: '#f1f5f9', hat: '#f1f5f9', pulse: '#c7d9ef' });
|
|
20
|
+
|
|
21
|
+
const clamp = (v, a = 0, b = 1) => Math.max(a, Math.min(b, v));
|
|
22
|
+
const easeOut = (u) => 1 - (1 - u) * (1 - u);
|
|
23
|
+
const bump = (u) => Math.sin(Math.PI * clamp(u));
|
|
24
|
+
|
|
25
|
+
// The hop as data, so it can be tested without a renderer: where Flo is (0..1 along the way, height in r) and
|
|
26
|
+
// how it squashes at time `s` into a hop that lasts `air` seconds. Before take-off it crouches, in the air it
|
|
27
|
+
// stretches along the way it is going, and on landing it squashes and springs back once.
|
|
28
|
+
export function floHopPose(s, air, rise) {
|
|
29
|
+
if (s < 0) {
|
|
30
|
+
const u = clamp(1 + s / CROUCH_S); // -CROUCH_S..0
|
|
31
|
+
const k = 0.22 * bump(u * 0.5 + 0.25) * u; // dips, holds, releases into the jump
|
|
32
|
+
return { along: 0, lift: 0, sx: 1 + k * 0.6, sy: 1 - k };
|
|
33
|
+
}
|
|
34
|
+
if (s < air) {
|
|
35
|
+
const u = s / air;
|
|
36
|
+
const stretch = 0.16 * bump(u) * (1 - Math.abs(2 * u - 1) * 0.6);
|
|
37
|
+
return { along: u, lift: 4 * rise * u * (1 - u), sx: 1 - stretch * 0.55, sy: 1 + stretch };
|
|
38
|
+
}
|
|
39
|
+
const u = clamp((s - air) / LAND_S);
|
|
40
|
+
const k = 0.26 * Math.exp(-5 * u) * Math.cos(u * Math.PI * 1.6);
|
|
41
|
+
return { along: 1, lift: 0, sx: 1 + k * 0.7, sy: 1 - k };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// How long a hop takes and how high it goes, from the distance in r. Short steps are quick and low; a leap
|
|
45
|
+
// across the model takes longer but never so long that the person waits for it.
|
|
46
|
+
// A step shorter than SHORT_R stays low and quick, so moving to the next member along reads as a shuffle
|
|
47
|
+
// rather than a leap; nothing rises more than 5 r, so a long hop stays in the frame it started in.
|
|
48
|
+
const SHORT_R = 4;
|
|
49
|
+
export function floHopShape(distR) {
|
|
50
|
+
const d = Math.max(0, distR);
|
|
51
|
+
if (d < SHORT_R) return { air: HOP_MIN_S * 0.75, rise: 0.4 + d * 0.15 };
|
|
52
|
+
const air = clamp(0.3 + 0.07 * Math.sqrt(d), HOP_MIN_S, HOP_MAX_S);
|
|
53
|
+
const rise = clamp(1.4 + d * 0.18, 1.4, 5);
|
|
54
|
+
return { air, rise };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function createFlo3D(THREE, opts = {}) {
|
|
58
|
+
const pose = opts.floPose;
|
|
59
|
+
if (typeof pose !== 'function') throw new Error('createFlo3D needs flo.js floPose');
|
|
60
|
+
const up = (opts.up ?? new THREE.Vector3(0, 1, 0)).clone().normalize();
|
|
61
|
+
let r = opts.r ?? 300;
|
|
62
|
+
let mood = 'idle', hat = true, reduced = !!opts.reducedMotion;
|
|
63
|
+
const seed = opts.seed ?? 0;
|
|
64
|
+
|
|
65
|
+
// root: placed in the world, turned so its +Y is the scene's up. body: yaw toward the camera.
|
|
66
|
+
// squash: scales about Flo's feet (the bottom of the ring). Everything inside is built at r = 1 and scaled.
|
|
67
|
+
const root = new THREE.Group(); root.name = 'flo-3d'; root.userData.flo = true;
|
|
68
|
+
root.quaternion.setFromUnitVectors(new THREE.Vector3(0, 1, 0), up);
|
|
69
|
+
const body = new THREE.Group(); root.add(body);
|
|
70
|
+
const squash = new THREE.Group(); body.add(squash);
|
|
71
|
+
const unit = new THREE.Group(); unit.position.y = 1 + STROKE / 2; squash.add(unit); // the ring's outer edge rests on the feet
|
|
72
|
+
|
|
73
|
+
const mats = {
|
|
74
|
+
line: new THREE.MeshPhysicalMaterial({ roughness: 0.32, metalness: 0.05, clearcoat: 1, clearcoatRoughness: 0.18 }),
|
|
75
|
+
eye: new THREE.MeshPhysicalMaterial({ roughness: 0.22, metalness: 0, clearcoat: 1, clearcoatRoughness: 0.08 }),
|
|
76
|
+
face: new THREE.MeshStandardMaterial({ roughness: 0.75, metalness: 0 }),
|
|
77
|
+
hat: new THREE.MeshPhysicalMaterial({ roughness: 0.38, metalness: 0, clearcoat: 0.9, clearcoatRoughness: 0.25, transparent: true }),
|
|
78
|
+
ridge: new THREE.MeshPhysicalMaterial({ roughness: 0.32, metalness: 0.05, clearcoat: 1, transparent: true }),
|
|
79
|
+
pulse: new THREE.MeshBasicMaterial({ toneMapped: false }),
|
|
80
|
+
shadow: new THREE.MeshBasicMaterial({ transparent: true, depthWrite: false, opacity: 0.45, color: 0x000000 }),
|
|
81
|
+
ripple: new THREE.MeshBasicMaterial({ transparent: true, depthWrite: false, opacity: 0, side: THREE.DoubleSide, toneMapped: false }),
|
|
82
|
+
};
|
|
83
|
+
const geos = [];
|
|
84
|
+
const mesh = (g, m) => { geos.push(g); const o = new THREE.Mesh(g, m); o.userData.flo = true; return o; };
|
|
85
|
+
|
|
86
|
+
// The ring: a torus as thick as flo.js's stroke, with the face set just inside it in the background colour.
|
|
87
|
+
const tube = STROKE / 2, inner = 1 - tube;
|
|
88
|
+
unit.add(mesh(new THREE.TorusGeometry(1, tube, 28, 96), mats.line));
|
|
89
|
+
const face = mesh(new THREE.CylinderGeometry(inner + 0.01, inner + 0.01, 0.16, 64), mats.face);
|
|
90
|
+
face.rotation.x = Math.PI / 2; unit.add(face);
|
|
91
|
+
|
|
92
|
+
// Eyes: pills on both faces, so Flo never shows a blank back while it turns. Their size, gap and blink are
|
|
93
|
+
// floPose's numbers. The happy arc (success) is a half torus that replaces the pill.
|
|
94
|
+
const eyes = [];
|
|
95
|
+
for (const side of [1, -1]) for (const sx of [-1, 1]) {
|
|
96
|
+
const pill = mesh(new THREE.CapsuleGeometry(0.5, 1, 6, 18), mats.eye);
|
|
97
|
+
const arc = mesh(new THREE.TorusGeometry(1, 0.38, 10, 24, Math.PI), mats.eye);
|
|
98
|
+
const g = new THREE.Group(); g.add(pill, arc);
|
|
99
|
+
g.position.z = side * (0.08 + EYE_Z * 0.5);
|
|
100
|
+
if (side < 0) g.rotation.y = Math.PI;
|
|
101
|
+
unit.add(g); eyes.push({ g, pill, arc, sx: side * sx });
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// The hard hat: dome, brim and the ridge over the top, sized to the ring as floDrawHat sizes it. It pivots
|
|
105
|
+
// near the brim's left end, so a tip reads as a tip.
|
|
106
|
+
const hatPivot = new THREE.Group(); hatPivot.position.set(-0.9, 0.8, 0); unit.add(hatPivot);
|
|
107
|
+
const hatG = new THREE.Group(); hatG.position.set(0.9, -0.8, 0); hatPivot.add(hatG);
|
|
108
|
+
const dome = mesh(new THREE.SphereGeometry(1, 48, 24, 0, Math.PI * 2, 0, Math.PI / 2), mats.hat);
|
|
109
|
+
dome.scale.set(0.958, 0.95, 0.9); dome.position.y = 0.96; hatG.add(dome);
|
|
110
|
+
const brim = mesh(new THREE.CylinderGeometry(1, 1, 1, 64), mats.hat);
|
|
111
|
+
brim.scale.set(1.25, 0.13, 1.08); brim.position.set(0, 0.95, 0.06); hatG.add(brim);
|
|
112
|
+
const ridge = mesh(new THREE.TorusGeometry(0.93, 0.085, 10, 40, Math.PI * 0.62), mats.ridge);
|
|
113
|
+
ridge.rotation.set(0, Math.PI / 2, Math.PI * 0.19); ridge.position.y = 0.96; ridge.scale.set(1, 1.02, 0.96);
|
|
114
|
+
hatG.add(ridge);
|
|
115
|
+
|
|
116
|
+
// Working / Thinking: a short arc of light that runs round the ring, as the 2D one does.
|
|
117
|
+
const orbitGeos = {};
|
|
118
|
+
const orbit = mesh(new THREE.BufferGeometry(), mats.pulse);
|
|
119
|
+
orbit.position.z = 0; unit.add(orbit);
|
|
120
|
+
function orbitArc(len) {
|
|
121
|
+
const key = len.toFixed(3);
|
|
122
|
+
if (!orbitGeos[key]) { orbitGeos[key] = new THREE.TorusGeometry(1, tube * 0.62, 10, 48, len); geos.push(orbitGeos[key]); }
|
|
123
|
+
return orbitGeos[key];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Contact shadow and the landing ripple sit on the surface Flo stands on, outside the squash.
|
|
127
|
+
const shadowTex = radialTexture(THREE, [[0, 'rgba(0,0,0,0.55)'], [0.55, 'rgba(0,0,0,0.22)'], [1, 'rgba(0,0,0,0)']]);
|
|
128
|
+
mats.shadow.map = shadowTex; mats.shadow.color.set(0xffffff);
|
|
129
|
+
const shadow = mesh(new THREE.PlaneGeometry(2.6, 2.6), mats.shadow);
|
|
130
|
+
shadow.rotation.x = -Math.PI / 2; shadow.position.y = 0.01; shadow.renderOrder = 1; root.add(shadow);
|
|
131
|
+
const ripple = mesh(new THREE.RingGeometry(0.92, 1, 64), mats.ripple);
|
|
132
|
+
ripple.rotation.x = -Math.PI / 2; ripple.position.y = 0.012; ripple.renderOrder = 1; root.add(ripple);
|
|
133
|
+
|
|
134
|
+
for (const m of [shadow, ripple]) m.raycast = () => {};
|
|
135
|
+
|
|
136
|
+
const here = new THREE.Vector3(); // where Flo stands (world)
|
|
137
|
+
let hop = null; // { from, to, t0, air, rise, onLand, heading }
|
|
138
|
+
let hello = null; // t0 of a hat tip
|
|
139
|
+
let landAt = -Infinity; // when the last hop landed (ripple)
|
|
140
|
+
let lookYaw = 0, faceYaw = 0, lastTick = null;
|
|
141
|
+
const tmp = new THREE.Vector3(), tmp2 = new THREE.Vector3(), inv = new THREE.Quaternion();
|
|
142
|
+
|
|
143
|
+
function setColors(c) {
|
|
144
|
+
mats.line.color.set(c.line); mats.eye.color.set(c.line); mats.ridge.color.set(c.line);
|
|
145
|
+
mats.face.color.set(c.fill); mats.hat.color.set(c.hat); mats.pulse.color.set(c.pulse);
|
|
146
|
+
mats.ripple.color.set(c.pulse);
|
|
147
|
+
// A little of each colour as its own light, so under the model's lights the hat still reads as the brand's
|
|
148
|
+
// white and the ring as its blue, not as grey and navy (the shading stays: it is what makes Flo solid).
|
|
149
|
+
mats.line.emissive.set(c.line).multiplyScalar(0.3); mats.eye.emissive.set(c.line).multiplyScalar(0.35);
|
|
150
|
+
mats.ridge.emissive.set(c.line).multiplyScalar(0.3); mats.hat.emissive.set(c.hat).multiplyScalar(0.42);
|
|
151
|
+
mats.face.emissive.set(c.fill).multiplyScalar(0.3);
|
|
152
|
+
}
|
|
153
|
+
setColors(opts.colors ?? FLO_3D_COLORS);
|
|
154
|
+
|
|
155
|
+
function setSize(next) { r = next; root.scale.setScalar(r); }
|
|
156
|
+
setSize(r);
|
|
157
|
+
|
|
158
|
+
// Turn a world direction into Flo's upright frame and return its heading about up (0 = facing +Z).
|
|
159
|
+
function headingOf(worldDir) {
|
|
160
|
+
inv.copy(root.quaternion).invert();
|
|
161
|
+
tmp2.copy(worldDir).applyQuaternion(inv);
|
|
162
|
+
return Math.atan2(tmp2.x, tmp2.z);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function placeAt(p) { hop = null; here.copy(p); root.position.copy(p); }
|
|
166
|
+
|
|
167
|
+
// Hop to a world point. A hop already under way finishes where Flo is now, so a second click mid-air turns
|
|
168
|
+
// it in the air rather than snapping it back.
|
|
169
|
+
// o.drop: fall straight onto the point under gravity (Flo arriving from above) instead of an arc.
|
|
170
|
+
function hopTo(p, onLand, now, o = {}) {
|
|
171
|
+
const from = hop ? root.position.clone() : here.clone();
|
|
172
|
+
const distR = from.distanceTo(p) / r;
|
|
173
|
+
if (distR < 0.05) { if (onLand) onLand(); return; }
|
|
174
|
+
if (reduced) { placeAt(p); landAt = now; if (onLand) onLand(); return; }
|
|
175
|
+
const { air, rise } = floHopShape(distR);
|
|
176
|
+
// a hop that starts mid-air skips the crouch
|
|
177
|
+
hop = o.drop
|
|
178
|
+
? { from, to: p.clone(), t0: now, air: clamp(Math.sqrt(distR) * 0.16, 0.25, 0.7), rise: 0, drop: true, onLand, heading: lookYaw }
|
|
179
|
+
: { from, to: p.clone(), t0: now + (hop ? 0 : CROUCH_S), air, rise, onLand, heading: headingOf(tmp.copy(p).sub(from)) };
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function sayHello(now) { if (!reduced) hello = now; }
|
|
183
|
+
|
|
184
|
+
// Advance to `now` (seconds) for this camera. Returns how soon Flo next changes: 0 while it is moving, the
|
|
185
|
+
// seconds to its next blink or glance while it is idle, Infinity when nothing will change on its own.
|
|
186
|
+
function tick(now, camera) {
|
|
187
|
+
let sx = 1, sy = 1, moving = false;
|
|
188
|
+
if (hop) {
|
|
189
|
+
const s = now - hop.t0;
|
|
190
|
+
const hp = hop.drop && s < hop.air ? { along: s < 0 ? 0 : (s / hop.air) ** 2, lift: 0, sx: 0.9, sy: 1.12 } : floHopPose(s, hop.air, hop.rise);
|
|
191
|
+
tmp.lerpVectors(hop.from, hop.to, hp.along);
|
|
192
|
+
root.position.copy(tmp).addScaledVector(up, hp.lift * r);
|
|
193
|
+
sx = hp.sx; sy = hp.sy;
|
|
194
|
+
// the shadow stays on the line between the two ends; falling, it waits on the landing point
|
|
195
|
+
const above = hop.drop ? (1 - hp.along) * hop.from.distanceTo(hop.to) / r : hp.lift;
|
|
196
|
+
shadow.position.y = 0.01 - above;
|
|
197
|
+
const fade = 1 / (1 + above * 0.6);
|
|
198
|
+
shadow.scale.setScalar(0.6 + 0.4 * fade); mats.shadow.opacity = 0.45 * fade;
|
|
199
|
+
if (s >= hop.air && !hop.landed) {
|
|
200
|
+
hop.landed = true; here.copy(hop.to); landAt = now;
|
|
201
|
+
const cb = hop.onLand; if (cb) cb();
|
|
202
|
+
}
|
|
203
|
+
if (s >= hop.air + LAND_S) { hop = null; root.position.copy(here); shadow.position.y = 0.01; }
|
|
204
|
+
moving = true;
|
|
205
|
+
} else { shadow.position.y = 0.01; shadow.scale.setScalar(1); mats.shadow.opacity = 0.45; }
|
|
206
|
+
squash.scale.set(sx, sy, sx);
|
|
207
|
+
|
|
208
|
+
// Face the camera, turning about up only: Flo stands upright on the model. In the air it faces where it is going.
|
|
209
|
+
if (camera) {
|
|
210
|
+
camera.getWorldPosition(tmp); tmp.sub(root.position);
|
|
211
|
+
faceYaw = headingOf(tmp);
|
|
212
|
+
}
|
|
213
|
+
const want = hop && now >= hop.t0 && now < hop.t0 + hop.air ? hop.heading : faceYaw;
|
|
214
|
+
let d = want - lookYaw; d = Math.atan2(Math.sin(d), Math.cos(d));
|
|
215
|
+
// turn by time, not by frame, so a 144 Hz screen turns Flo no faster than a 60 Hz one (~90% in 0.15 s)
|
|
216
|
+
const dt = lastTick == null ? 1 : clamp(now - lastTick, 0, 0.25); lastTick = now;
|
|
217
|
+
lookYaw = reduced ? want : lookYaw + d * (1 - Math.exp(-dt * 16));
|
|
218
|
+
body.rotation.y = lookYaw;
|
|
219
|
+
if (Math.abs(d) > 0.01 && !reduced) moving = true;
|
|
220
|
+
|
|
221
|
+
const saying = hello != null && now - hello < HELLO_S;
|
|
222
|
+
if (hello != null && !saying) hello = null;
|
|
223
|
+
const m = saying ? 'hello' : mood;
|
|
224
|
+
const t = reduced ? 0.6 : saying ? now - hello : now;
|
|
225
|
+
const p = pose({ r: 1, stroke: STROKE, mood: m, t, hat, seed });
|
|
226
|
+
applyFace(p);
|
|
227
|
+
|
|
228
|
+
const ru = clamp((now - landAt) / 0.5);
|
|
229
|
+
mats.ripple.opacity = ru < 1 && !reduced ? 0.3 * (1 - ru) : 0;
|
|
230
|
+
ripple.scale.setScalar(0.9 + ru * 1.4);
|
|
231
|
+
if (ru < 1 && !reduced) moving = true;
|
|
232
|
+
|
|
233
|
+
if (moving || saying || (!reduced && (m === 'thinking' || m === 'working' || m === 'yourcall'))) return 0;
|
|
234
|
+
if (reduced) return Infinity;
|
|
235
|
+
return nextChange(now);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function applyFace(p) {
|
|
239
|
+
const e = p.eyes;
|
|
240
|
+
for (const eye of eyes) {
|
|
241
|
+
eye.g.position.x = eye.sx * e.sep + e.dx * Math.sign(eye.g.position.z);
|
|
242
|
+
eye.g.position.y = -e.dy; // canvas y grows down
|
|
243
|
+
const arc = e.kind === 'arc';
|
|
244
|
+
eye.pill.visible = !arc; eye.arc.visible = arc;
|
|
245
|
+
if (arc) { eye.arc.scale.setScalar(e.w * 0.9); eye.arc.position.y = -e.h * 0.1; }
|
|
246
|
+
else {
|
|
247
|
+
const h = Math.max(e.h, e.w * 0.3);
|
|
248
|
+
// a capsule of radius 0.5 and length 1 is 2 tall and 1 wide
|
|
249
|
+
eye.pill.scale.set(e.w, h / 2, e.w * 0.55);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
const h = p.hat;
|
|
253
|
+
hatPivot.visible = !!h;
|
|
254
|
+
if (h) {
|
|
255
|
+
hatPivot.rotation.z = -h.rot;
|
|
256
|
+
hatPivot.position.y = 0.8 - h.dy + h.lift * 2.2;
|
|
257
|
+
const a = 1 - clamp((h.lift - 0.5) / 0.5);
|
|
258
|
+
mats.hat.opacity = a; mats.ridge.opacity = a;
|
|
259
|
+
}
|
|
260
|
+
orbit.visible = !!p.orbit;
|
|
261
|
+
if (p.orbit) { orbit.geometry = orbitArc(p.orbit.len); orbit.rotation.z = -p.orbit.a - p.orbit.len; }
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// The idle face changes only at a blink or a glance (flo.js: blink every 3.4 s at 1.6 s, glance every 1.5 s
|
|
265
|
+
// of a 5 s cycle), so between those the caller need not draw at all.
|
|
266
|
+
function nextChange(now) {
|
|
267
|
+
const cands = [];
|
|
268
|
+
const b = ((now + seed - 1.6) % 3.4 + 3.4) % 3.4; // seconds since the blink began
|
|
269
|
+
cands.push(b < 0.14 ? 0 : 3.4 - b);
|
|
270
|
+
const g = ((now % 5) + 5) % 5;
|
|
271
|
+
cands.push(g < 1.5 ? 1.5 - g : g < 3 ? 3 - g : g < 4.5 ? 4.5 - g : 5 - g);
|
|
272
|
+
return Math.max(0, Math.min(...cands));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function setMood(m) { mood = m; }
|
|
276
|
+
function setHat(on) { hat = !!on; }
|
|
277
|
+
function setReducedMotion(on) {
|
|
278
|
+
reduced = !!on;
|
|
279
|
+
if (on && hop) { const cb = hop.landed ? null : hop.onLand; placeAt(hop.to); if (cb) cb(); } // land now, and say so once
|
|
280
|
+
}
|
|
281
|
+
function isBusy() { return !!hop || hello != null; }
|
|
282
|
+
|
|
283
|
+
// Did the pointer hit Flo? The caller owns picking; this lets it give a click on Flo to Flo.
|
|
284
|
+
function hit(raycaster) {
|
|
285
|
+
const hits = raycaster.intersectObject(squash, true);
|
|
286
|
+
return hits.length > 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function dispose() {
|
|
290
|
+
root.removeFromParent();
|
|
291
|
+
for (const g of geos) g.dispose();
|
|
292
|
+
for (const m of Object.values(mats)) m.dispose();
|
|
293
|
+
shadowTex.dispose();
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
return {
|
|
297
|
+
object: root, get r() { return r; }, get position() { return here; },
|
|
298
|
+
setColors, setSize, setMood, setHat, setReducedMotion, placeAt, hopTo, sayHello, tick, hit, isBusy, dispose,
|
|
299
|
+
get mood() { return mood; },
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
function radialTexture(THREE, stops) {
|
|
304
|
+
const n = 128, cv = document.createElement('canvas'); cv.width = cv.height = n;
|
|
305
|
+
const c = cv.getContext('2d'), g = c.createRadialGradient(n / 2, n / 2, 0, n / 2, n / 2, n / 2);
|
|
306
|
+
for (const [at, col] of stops) g.addColorStop(at, col);
|
|
307
|
+
c.fillStyle = g; c.fillRect(0, 0, n, n);
|
|
308
|
+
const tex = new THREE.CanvasTexture(cv); tex.colorSpace = THREE.SRGBColorSpace;
|
|
309
|
+
return tex;
|
|
310
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Flo's card on the steel model (3D): when Flo lands on a member, a small card beside Flo's head says what that
|
|
2
|
+
// member is. The person chooses which details it shows (3D toolbar → Labels → Flo); this decides what the card says
|
|
3
|
+
// from those choices and the member's already-formatted values, and nothing else. The 3D view draws it
|
|
4
|
+
// (web/steel-3d-view.js) and the editor supplies the values from its property registry (PROP_DEFS), so a value on
|
|
5
|
+
// the card is always the one Properties and the property labels show.
|
|
6
|
+
//
|
|
7
|
+
// The card's shape: a caption (type · mark), a headline (the profile), then one row per other detail. A detail the
|
|
8
|
+
// member has no value for is left out rather than printed as a dash, which would read as missing data.
|
|
9
|
+
//
|
|
10
|
+
// With several members selected the card speaks for the whole selection, as the Properties pane does: a detail
|
|
11
|
+
// they all share shows its value, one that differs shows Varies, and one none of them has is left out. The caption
|
|
12
|
+
// then leads with how many are selected, so the card is never read as being about the one member Flo stands on.
|
|
13
|
+
(function (root) {
|
|
14
|
+
// The details on offer, in the order the card shows them. Keys are PROP_DEFS keys.
|
|
15
|
+
const FLO_CARD_FIELDS = ['type', 'mark', 'profile', 'length', 'weight', 'col_tos', 'col_bos', 'tos_start', 'tos_end', 'verified', 'id'];
|
|
16
|
+
const FLO_CARD_DEFAULT = ['type', 'mark', 'profile', 'length', 'weight'];
|
|
17
|
+
const CAPTION = ['type', 'mark'];
|
|
18
|
+
const STORE_KEY = 'steel:floCard:v2';
|
|
19
|
+
const VARIES = 'Varies';
|
|
20
|
+
|
|
21
|
+
// A stored choice, kept to the details this build offers and in the card's own order. Anything that is not a
|
|
22
|
+
// list (nothing stored yet, or a damaged value) is the default; an empty list is a real choice (an empty card
|
|
23
|
+
// is simply not shown).
|
|
24
|
+
function sanitizeFloCardFields(v) {
|
|
25
|
+
if (!Array.isArray(v)) return FLO_CARD_DEFAULT.slice();
|
|
26
|
+
return FLO_CARD_FIELDS.filter((k) => v.includes(k));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function readFloCardFields(storage) {
|
|
30
|
+
try { const raw = storage && storage.getItem(STORE_KEY); return sanitizeFloCardFields(raw ? JSON.parse(raw) : null); }
|
|
31
|
+
catch { return FLO_CARD_DEFAULT.slice(); }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function writeFloCardFields(storage, fields) {
|
|
35
|
+
try { storage && storage.setItem(STORE_KEY, JSON.stringify(sanitizeFloCardFields(fields))); } catch { /* private mode: this page only */ }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// One detail across the selection, by the Properties pane's own rule (steel-editor.html propAggRow): each entry is
|
|
39
|
+
// the member's formatted text, or undefined where the detail does not apply to it. Returns the shared text,
|
|
40
|
+
// VARIES, or undefined when no member has a value (the card then leaves the detail out). A member with an empty
|
|
41
|
+
// value beside one with a value is a difference, as it is in the pane.
|
|
42
|
+
function aggregateFloCardValue(texts) {
|
|
43
|
+
const applicable = texts.filter((t) => t !== undefined);
|
|
44
|
+
const nonEmpty = [...new Set(applicable.filter((t) => t !== ''))];
|
|
45
|
+
if (!nonEmpty.length) return undefined;
|
|
46
|
+
return nonEmpty.length === 1 && applicable.every((t) => t === nonEmpty[0]) ? nonEmpty[0] : VARIES;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// values: { key: { label, text, varies? } } for the details the member (or the selection) HAS, text non-empty;
|
|
50
|
+
// count: how many members the card speaks for. Returns { caption, headline, headlineVaries, rows: [{ label,
|
|
51
|
+
// value, varies }] }, or null when nothing chosen has a value.
|
|
52
|
+
function floCardModel(values, fields, { count = 1 } = {}) {
|
|
53
|
+
const want = sanitizeFloCardFields(fields);
|
|
54
|
+
const has = (k) => want.includes(k) && values && values[k] && typeof values[k].text === 'string' && values[k].text !== '';
|
|
55
|
+
if (!want.some(has)) return null; // "3 selected" alone says nothing about the members
|
|
56
|
+
// In the caption a differing type or mark is simply not named: "3 selected" already says they are several.
|
|
57
|
+
const named = CAPTION.filter((k) => has(k) && !values[k].varies).map((k) => values[k].text);
|
|
58
|
+
const caption = [...(count > 1 ? [count + ' selected'] : []), ...named].join(' · ');
|
|
59
|
+
const rows = want.filter((k) => !CAPTION.includes(k) && k !== 'profile' && has(k))
|
|
60
|
+
.map((k) => ({ label: values[k].label, value: values[k].text, varies: !!values[k].varies }));
|
|
61
|
+
// No profile, no headline: a lone "25.0 ft" in large type would not say what it measures, so the rows keep
|
|
62
|
+
// their labels instead.
|
|
63
|
+
const headline = has('profile') ? values.profile.text : '';
|
|
64
|
+
const headlineVaries = has('profile') && !!values.profile.varies;
|
|
65
|
+
if (!caption && !headline && !rows.length) return null;
|
|
66
|
+
return { caption, headline, headlineVaries, rows };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const api = { FLO_CARD_FIELDS, FLO_CARD_DEFAULT, VARIES, sanitizeFloCardFields, readFloCardFields, writeFloCardFields, aggregateFloCardValue, floCardModel };
|
|
70
|
+
if (typeof module === 'object' && module.exports) module.exports = api;
|
|
71
|
+
else root.FloCard = api;
|
|
72
|
+
})(globalThis);
|
package/dist/web/guide.js
CHANGED
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
apps: 'Installed programs', running: 'Open now', recentFiles: 'Recent files', accounts: 'Connected accounts',
|
|
20
20
|
};
|
|
21
21
|
const FLOLESS_LABEL = { projects: 'Projects', workflows: 'Workflows', agents: 'Agents', routines: 'Routines', tools: 'Tools' };
|
|
22
|
+
/** #3082: a project in the look carries its id for the AI ({ id, name }); the preview shows its name. */
|
|
23
|
+
const lookItemName = (item) => (typeof item === 'string' ? item : (item && typeof item.name === 'string' ? item.name : ''));
|
|
24
|
+
// #3082: where a person chooses again when the project or workflow an Open card named is gone.
|
|
25
|
+
const RECOVER_LABEL = { workspaces: 'Open Workspaces', archived: 'Show archived projects', workflows: 'Open Workflows' };
|
|
26
|
+
// Instructor's {instance}: where the button goes.
|
|
27
|
+
const RECOVER_PLACE = { workspaces: 'Workspaces', archived: 'the archived projects on Workspaces', workflows: 'Workflows' };
|
|
22
28
|
|
|
23
29
|
// A click or key press this recently means the person is mid-action: the launch question waits.
|
|
24
30
|
const QUIET_AFTER_INTERACTION_MS = 4000;
|
|
@@ -92,7 +98,9 @@
|
|
|
92
98
|
return api(path, body, true);
|
|
93
99
|
}
|
|
94
100
|
if (!response.ok) {
|
|
95
|
-
const failure = new Error(data
|
|
101
|
+
const failure = new Error(personText(data) || (body
|
|
102
|
+
? failureCopy({ status: response.status, body: data }, { action: 'do that' }).text
|
|
103
|
+
: 'FloLess couldn’t do that just now. Try again; if it keeps happening, restart FloLess.'));
|
|
96
104
|
failure.code = data?.code || null; failure.body = data;
|
|
97
105
|
throw failure;
|
|
98
106
|
}
|
|
@@ -280,7 +288,7 @@
|
|
|
280
288
|
const line = el('p', 'guide-preview-empty');
|
|
281
289
|
line.textContent = section?.problem
|
|
282
290
|
? `${FLOLESS_LABEL[key]}: couldn’t read`
|
|
283
|
-
: `${FLOLESS_LABEL[key]}: ${(section?.items || []).length ? section.items.join(', ') : 'none'}`;
|
|
291
|
+
: `${FLOLESS_LABEL[key]}: ${(section?.items || []).length ? section.items.map(lookItemName).filter(Boolean).join(', ') : 'none'}`;
|
|
284
292
|
floBlock.append(line);
|
|
285
293
|
}
|
|
286
294
|
const summary = el('p', 'guide-preview-summary');
|
|
@@ -673,13 +681,23 @@
|
|
|
673
681
|
case 'create-workflow': return { title: `Build a workflow: ${move.name}`, action: 'Build it', detail: move.purpose };
|
|
674
682
|
case 'create-agent': return { title: `Set up an agent: ${move.name}`, action: 'Review this agent…' };
|
|
675
683
|
case 'create-routine': return { title: `Run ${move.target?.name || 'it'} on a schedule`, action: 'Set up the schedule…' };
|
|
676
|
-
case 'open':
|
|
684
|
+
case 'open':
|
|
685
|
+
// #3082: one project (at the step the suggestion is about) or one workflow, named on the card.
|
|
686
|
+
if (move.project?.name) {
|
|
687
|
+
const action = move.project.step === 'history' ? 'Open History' : move.project.step === 'model' ? 'View model' : 'Open project';
|
|
688
|
+
return { title: `Open ${move.project.name}`, action };
|
|
689
|
+
}
|
|
690
|
+
if (move.workflow?.name) return { title: `Open ${move.workflow.name}`, action: 'Open workflow' };
|
|
691
|
+
return { title: `Open ${PAGE_LABEL[move.page] || 'this page'}`, action: `Open ${PAGE_LABEL[move.page] || 'it'}` };
|
|
677
692
|
default: return null;
|
|
678
693
|
}
|
|
679
694
|
}
|
|
680
695
|
|
|
681
|
-
/**
|
|
682
|
-
|
|
696
|
+
/**
|
|
697
|
+
* Opens the existing flow for a move; true (or `{ said }`, a note on where it landed) when it opened. Nothing is done
|
|
698
|
+
* from here. An Open card for one project or workflow only shows it: nothing is approved, compiled, run or exported.
|
|
699
|
+
*/
|
|
700
|
+
async function openFlow(move, opts = {}) {
|
|
683
701
|
const bridge = window.flolessBridge;
|
|
684
702
|
switch (move.kind) {
|
|
685
703
|
case 'install-tool':
|
|
@@ -691,6 +709,17 @@
|
|
|
691
709
|
if (move.target?.kind === 'agent') { await window.flolessRoutines?.editForAgent?.(move.target.id); return Boolean(window.flolessRoutines); }
|
|
692
710
|
await window.flolessRoutines?.editForWorkflow?.(move.target?.id); return Boolean(window.flolessRoutines?.editForWorkflow);
|
|
693
711
|
case 'open':
|
|
712
|
+
if (move.project) {
|
|
713
|
+
if (typeof window.flolessWorkspaces?.openSuggestedProject !== 'function') return false;
|
|
714
|
+
const outcome = await window.flolessWorkspaces.openSuggestedProject(move.project, opts.ticket);
|
|
715
|
+
// A later press or open took over while this one was checking: that one speaks for itself.
|
|
716
|
+
if (outcome?.superseded) return true;
|
|
717
|
+
return outcome?.said ? { said: outcome.said } : Boolean(outcome?.ok);
|
|
718
|
+
}
|
|
719
|
+
if (move.workflow) {
|
|
720
|
+
if (typeof bridge?.openApp !== 'function') return false;
|
|
721
|
+
return Boolean(await bridge.openApp(move.workflow.id));
|
|
722
|
+
}
|
|
694
723
|
if (['workspaces', 'workflows', 'agents'].includes(move.page)) { await window.flolessWorkspaces?.setMode?.(move.page); return Boolean(window.flolessWorkspaces); }
|
|
695
724
|
if (move.page === 'routines' && typeof openRoutines === 'function') { openRoutines(); return true; }
|
|
696
725
|
if (move.page === 'tools' && typeof openLibrary === 'function') { openLibrary(); return true; }
|
|
@@ -848,6 +877,35 @@
|
|
|
848
877
|
card.setAttribute('aria-label', `Suggestion: ${text.title}`);
|
|
849
878
|
const status = el('p', 'ai-chat-filter-note guide-move-status');
|
|
850
879
|
status.setAttribute('role', 'status');
|
|
880
|
+
// #3082: when the project or workflow the card named is gone, where to choose again. Kept across repaints, like status.
|
|
881
|
+
const recoverRow = el('div', 'ai-chat-filter-actions guide-move-recover');
|
|
882
|
+
recoverRow.hidden = true;
|
|
883
|
+
const clearRecover = () => { recoverRow.replaceChildren(); recoverRow.hidden = true; };
|
|
884
|
+
const offerRecover = (where) => {
|
|
885
|
+
clearRecover();
|
|
886
|
+
const label = RECOVER_LABEL[where];
|
|
887
|
+
if (!label) return;
|
|
888
|
+
const button = el('button', '', label);
|
|
889
|
+
button.type = 'button';
|
|
890
|
+
button.dataset.commandId = `shell.guide-move-recover#${where}`;
|
|
891
|
+
button.dataset.commandInstanceLabel = RECOVER_PLACE[where];
|
|
892
|
+
button.dataset.tip = `${label}. Nothing changes.`;
|
|
893
|
+
button.addEventListener('click', async () => {
|
|
894
|
+
button.disabled = true;
|
|
895
|
+
try {
|
|
896
|
+
const ws = window.flolessWorkspaces;
|
|
897
|
+
let shown = true;
|
|
898
|
+
if (where === 'archived') shown = await ws?.showArchivedProjects?.(button) !== false;
|
|
899
|
+
else if (where === 'workspaces') shown = await ws?.showProjectList?.(button) !== false;
|
|
900
|
+
else await ws?.setMode?.('workflows');
|
|
901
|
+
// Leaving a project can be declined (unsaved work): say so instead of seeming to do nothing.
|
|
902
|
+
if (!shown) status.textContent = 'You stayed in the project you have open, so the list was not shown.';
|
|
903
|
+
} catch (error) { status.textContent = error.message; }
|
|
904
|
+
finally { button.disabled = false; }
|
|
905
|
+
});
|
|
906
|
+
recoverRow.append(button);
|
|
907
|
+
recoverRow.hidden = false;
|
|
908
|
+
};
|
|
851
909
|
// A button press in progress — { commandId, label } — on this card: every drawing keeps every button waiting for it.
|
|
852
910
|
let pending = null;
|
|
853
911
|
// #2185: an install card's last painted answer (installed or not), so only a real change repaints it.
|
|
@@ -877,7 +935,8 @@
|
|
|
877
935
|
finally { pending = null; paintCard(); }
|
|
878
936
|
});
|
|
879
937
|
line.append(el('span', '', `Not now: ${text.title}`), undo);
|
|
880
|
-
|
|
938
|
+
clearRecover(); // set aside: no way to choose again is offered for it
|
|
939
|
+
card.append(line, status, recoverRow);
|
|
881
940
|
if (focusBack) undo.focus();
|
|
882
941
|
return;
|
|
883
942
|
}
|
|
@@ -917,16 +976,23 @@
|
|
|
917
976
|
go.dataset.tip = opensOnly ? `${text.action}. Nothing changes.` : 'Opens the place to do this. Nothing happens until you confirm there.';
|
|
918
977
|
go.addEventListener('click', async () => {
|
|
919
978
|
go.disabled = true; go.setAttribute('aria-busy', 'true'); go.textContent = 'Checking…';
|
|
920
|
-
status.textContent = '';
|
|
979
|
+
status.textContent = ''; clearRecover();
|
|
980
|
+
let opened = false;
|
|
981
|
+
// #3082: a project card claims its turn at the press, so a later press wins even while this one is being checked.
|
|
982
|
+
const ticket = move.kind === 'open' && move.project ? window.flolessWorkspaces?.claimSuggestedOpen?.() : undefined;
|
|
921
983
|
try {
|
|
922
984
|
const { check } = await api('/api/chat/guide/next-moves/recheck', { move });
|
|
923
|
-
if (!check.ok) { status.textContent = check.message; return; }
|
|
924
|
-
|
|
985
|
+
if (!check.ok) { status.textContent = check.message; if (check.recover) offerRecover(check.recover); return; }
|
|
986
|
+
opened = await openFlow(move, { ticket });
|
|
925
987
|
if (!opened) status.textContent = 'FloLess couldn’t open that from here. Open it from the ≡ menu instead.';
|
|
988
|
+
else if (opened.said) status.textContent = opened.said;
|
|
926
989
|
} catch (error) {
|
|
927
990
|
status.textContent = error.message;
|
|
928
991
|
} finally {
|
|
929
992
|
go.disabled = false; go.removeAttribute('aria-busy'); go.textContent = text.action;
|
|
993
|
+
// Disabled while checking, the button dropped focus to the page; when nothing opened and the card is still shown,
|
|
994
|
+
// put it back (after an open, focus belongs to what opened).
|
|
995
|
+
if (!opened && go.isConnected && (!document.activeElement || document.activeElement === document.body)) go.focus();
|
|
930
996
|
}
|
|
931
997
|
});
|
|
932
998
|
const later = el('button', '', 'Not now');
|
|
@@ -945,7 +1011,9 @@
|
|
|
945
1011
|
}
|
|
946
1012
|
});
|
|
947
1013
|
actions.append(go, later);
|
|
948
|
-
|
|
1014
|
+
// #3082: an Open card for one project or workflow opens that, not a page.
|
|
1015
|
+
const opensWhat = move.kind === 'open' && (move.project || move.workflow) ? `This only opens ${move.project ? 'the project' : 'the workflow'}. Nothing changes.` : 'This only opens the page. Nothing changes.';
|
|
1016
|
+
card.append(actions, el('p', 'ai-chat-filter-note', opensOnly ? opensWhat : 'Nothing happens until you confirm in the next step.'), status, recoverRow);
|
|
949
1017
|
if (focusBack) go.focus();
|
|
950
1018
|
};
|
|
951
1019
|
/**
|