@floless/app 0.140.0 → 0.141.1
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/dist/floless-server.cjs +30007 -34004
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +8 -3
- package/dist/web/account-menu.js +168 -0
- package/dist/web/app.css +120 -11
- package/dist/web/app.js +2 -0
- package/dist/web/aware.js +1055 -102
- package/dist/web/chat.css +368 -31
- package/dist/web/chat.js +2382 -134
- package/dist/web/commands-filter.js +86 -8
- package/dist/web/commands-shell.js +180 -9
- package/dist/web/commands-steel.js +22 -14
- package/dist/web/commands.js +19 -0
- package/dist/web/filter-ai-context.js +57 -0
- package/dist/web/filter-ai-proposal.js +87 -0
- package/dist/web/filter-guidance.js +8 -0
- package/dist/web/index.html +102 -11
- package/dist/web/instructor.js +207 -31
- package/dist/web/leave-guard.js +480 -0
- package/dist/web/left-pane.js +185 -18
- package/dist/web/local-discovery.js +60 -13
- package/dist/web/model-editor.css +4 -4
- package/dist/web/model-revit-module.js +63 -0
- package/dist/web/overlay-escape.js +79 -0
- package/dist/web/revit-editor.css +7 -0
- package/dist/web/revit-editor.js +17 -7
- package/dist/web/steel-editor.html +20 -3
- package/dist/web/steel-filter-core.js +298 -12
- package/dist/web/steel-filter-hit.js +526 -0
- package/dist/web/steel-filter.html +1610 -64
- package/dist/web/vector-3d.html +3 -0
- package/dist/web/vector-editor.html +23 -3
- package/dist/web/workspaces.js +424 -41
- package/launch.mjs +32 -1
- package/package.json +4 -2
package/dist/web/vector-3d.html
CHANGED
|
@@ -219,6 +219,9 @@
|
|
|
219
219
|
<script src="commands-vector3d.js"></script>
|
|
220
220
|
<script src="instructor-reporter.js"></script>
|
|
221
221
|
<script>window.InstructorReporter.mount({ surface: 'vector-3d' });</script>
|
|
222
|
+
<!-- An Esc this page leaves unused closes the shell's editor overlay (#1571). -->
|
|
223
|
+
<script src="overlay-escape.js"></script>
|
|
224
|
+
<script>window.OverlayEscape.mount();</script>
|
|
222
225
|
|
|
223
226
|
<script type="importmap">{"imports":{"three":"./vendor/three.module.js","three/addons/":"./vendor/","three-bvh-csg":"./vendor/three-bvh-csg.module.js"}}</script>
|
|
224
227
|
<script type="module" src="./steel-3d-view.js"></script>
|
|
@@ -256,6 +256,9 @@
|
|
|
256
256
|
<script src="commands-vector.js"></script>
|
|
257
257
|
<script src="instructor-reporter.js"></script>
|
|
258
258
|
<script>window.InstructorReporter.mount({ surface: 'vector-editor' });</script>
|
|
259
|
+
<!-- An Esc this page leaves unused closes the shell's editor overlay (#1571). -->
|
|
260
|
+
<script src="overlay-escape.js"></script>
|
|
261
|
+
<script>window.OverlayEscape.mount();</script>
|
|
259
262
|
<script>
|
|
260
263
|
(function () {
|
|
261
264
|
'use strict';
|
|
@@ -584,20 +587,37 @@
|
|
|
584
587
|
const bar = document.getElementById('conflictBanner'); if (bar) bar.remove();
|
|
585
588
|
};
|
|
586
589
|
}
|
|
590
|
+
let pendingWrites = 0; // queued or in-flight PUTs — contractSaveState() reads 'saving' until they settle
|
|
587
591
|
function persistServer() {
|
|
588
592
|
if (!editable || !C) return Promise.resolve(true);
|
|
589
593
|
const gen = ++saveGen;
|
|
594
|
+
pendingWrites += 1;
|
|
590
595
|
saveQueue = saveQueue.then(() => (gen === saveGen ? doPut() : true)); // superseded → the newer write carries C
|
|
591
|
-
|
|
596
|
+
const tail = saveQueue;
|
|
597
|
+
const settle = () => { pendingWrites -= 1; };
|
|
598
|
+
tail.then(settle, settle);
|
|
599
|
+
return tail;
|
|
592
600
|
}
|
|
593
|
-
function scheduleSave() { if (!editable) return; setSaved('dirty'); clearTimeout(saveT); saveT = setTimeout(persistServer, 500); }
|
|
601
|
+
function scheduleSave() { if (!editable) return; setSaved('dirty'); clearTimeout(saveT); saveT = setTimeout(() => { saveT = 0; persistServer(); }, 500); }
|
|
594
602
|
// The shell's Approve button awaits this before baking — throw so a rejected save aborts the bake.
|
|
595
603
|
window.flushContract = async function flushContract() {
|
|
596
604
|
if (!editable) return;
|
|
597
|
-
clearTimeout(saveT);
|
|
605
|
+
clearTimeout(saveT); saveT = 0;
|
|
598
606
|
const ok = await persistServer(); // queued behind any in-flight write → latest state, in order
|
|
599
607
|
if (!ok) throw new Error('Save failed — the edited contract was rejected; fix it before Approve');
|
|
600
608
|
};
|
|
609
|
+
// Mirrors the steel editor's contractSaveState() so the shell's leave guard (Stop FloLess / Sign
|
|
610
|
+
// Out) can tell a saved drawing from one with a queued or failed write. Only 'clean' is saved.
|
|
611
|
+
window.contractSaveState = function contractSaveState() {
|
|
612
|
+
if (!editable) return 'clean'; // a read-only view holds nothing to lose
|
|
613
|
+
const el = $('saveStat');
|
|
614
|
+
if (conflicted || (el && el.classList.contains('conflict'))) return 'conflict';
|
|
615
|
+
if (pendingWrites > 0) return 'saving';
|
|
616
|
+
if (saveT) return 'dirty';
|
|
617
|
+
if (el && el.classList.contains('err')) return 'error';
|
|
618
|
+
if (el && el.classList.contains('dirty')) return 'dirty';
|
|
619
|
+
return 'clean';
|
|
620
|
+
};
|
|
601
621
|
|
|
602
622
|
// ── weak-trace review: Accept clears the flag (absent = trusted), Delete removes with 1-level Undo ──
|
|
603
623
|
function isWeak(el) { return el.confidence != null && el.confidence < WEAK; }
|