@floless/app 0.152.1 → 0.154.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/dist/floless-server.cjs +5913 -3408
- package/dist/internal-workflows/floless-rfi-gmail-send/.floless-owner.json +1 -1
- package/dist/internal-workflows/floless-rfi-gmail-send/floless-rfi-gmail-send.flo +4 -2
- package/dist/schemas/revit.model.v1.schema.json +5 -0
- package/dist/schemas/steel.model.v2.schema.json +1 -1
- package/dist/skills/floless-app-new-workflow/SKILL.md +8 -2
- package/dist/skills/floless-app-onboarding/SKILL.md +8 -5
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +8 -3
- package/dist/skills/floless-app-queue/SKILL.md +23 -4
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +18 -2
- package/dist/web/agents.js +8 -1
- package/dist/web/app.css +107 -5
- package/dist/web/app.js +106 -12
- package/dist/web/aware.js +424 -57
- package/dist/web/chat.css +60 -13
- package/dist/web/chat.js +814 -148
- package/dist/web/commands-shell.js +200 -21
- package/dist/web/commands-steel.js +78 -3
- package/dist/web/guide.js +213 -13
- package/dist/web/index.html +16 -9
- package/dist/web/instructor.js +2 -1
- package/dist/web/leave-guard.js +51 -7
- package/dist/web/left-pane.js +251 -46
- package/dist/web/model-editor-steel-adapter.js +3 -0
- package/dist/web/model-viewport.js +14 -6
- package/dist/web/revit-editor.js +1 -0
- package/dist/web/steel-3d-view.js +15 -7
- package/dist/web/steel-editor.html +367 -54
- package/dist/web/tekla-structural-grid-adapter.js +7 -1
- package/dist/web/tool-updates.js +141 -33
- package/dist/web/workspaces.js +125 -21
- package/package.json +1 -1
|
@@ -1514,7 +1514,7 @@ function buildFromScene(sc) {
|
|
|
1514
1514
|
buildRefLines();
|
|
1515
1515
|
syncMemberLabels(); // refresh the member-label pool from the (possibly edited) member set
|
|
1516
1516
|
syncPropLabels(); // re-anchor the property labels too (member geometry may have moved)
|
|
1517
|
-
if (hadVisibilityFilter !== hasVisibilityFilter()) notifyVisibilityChange(); // keep the host's recovery control honest when an edit removes the last hidden/isolated mesh
|
|
1517
|
+
if (hadVisibilityFilter !== hasVisibilityFilter()) notifyVisibilityChange({ intentional: false }); // keep the host's recovery control honest when an edit removes the last hidden/isolated mesh
|
|
1518
1518
|
applyGroupVisibility(); applyDisplayMode();
|
|
1519
1519
|
built = true;
|
|
1520
1520
|
// Fit only on entering 3D (rebuild(true)) — NOT on every edit. Frames whatever is on screen, so a
|
|
@@ -4225,7 +4225,12 @@ function visibleObjectIds() {
|
|
|
4225
4225
|
return out;
|
|
4226
4226
|
}
|
|
4227
4227
|
function visibleGridIds() { return [...structGridLines].filter(([, line]) => line.visible).map(([id]) => id); }
|
|
4228
|
-
|
|
4228
|
+
// Counts every INTENTIONAL scene-side visibility change; the facade adds the controller's own count (its writers + this report), so the sum only ever rises.
|
|
4229
|
+
// notifyVisibilityChange() is the intentional path (a user's hide/solo/isolate/show-all/saved view/work area/Ghost). An internal refresh that only keeps the
|
|
4230
|
+
// host's controls honest (a stale grid selection dropped, a rebuild pruning the last hidden mesh) passes { intentional: false }: it republishes the state but
|
|
4231
|
+
// does not move the revision, so a review does not mistake it for the user choosing something.
|
|
4232
|
+
let sceneVisibilityRevision = 0;
|
|
4233
|
+
function notifyVisibilityChange(options) { const intentional = !options || options.intentional !== false; if (intentional) sceneVisibilityRevision += 1; syncSpatialVisibility(); viewportReports?.reportVisibility(undefined, { intentional }); if (api && api.onIsolateChange) api.onIsolateChange(isolatedIds !== null || isolatedGridIds !== null); }
|
|
4229
4234
|
function toggleGroup(k) { if (groupHidden.has(k)) groupHidden.delete(k); else groupHidden.add(k); soloGroups.clear(); applyGroupVisibility(); applyDisplayMode(); rebuildEndpoints(); refreshOverlayDims(); refreshDims(); notifyVisibilityChange(); }
|
|
4230
4235
|
// Hide/show a SET of groups in one pass (a legend type-category master toggle) — deterministic (not a flip),
|
|
4231
4236
|
// so "hide all" / "show all" for the category is exact. Clears solo, like toggleGroup.
|
|
@@ -4742,7 +4747,7 @@ function setWorkAreaBox(box) {
|
|
|
4742
4747
|
const whole = workArea ? workArea.whole : true; // keep the current cut/whole mode across a re-define; a brand-new work area defaults to "show whole parts" (no surprise slicing)
|
|
4743
4748
|
workArea = { enabled: true, whole, planes: boxToPlanes(box), box: box.clone() };
|
|
4744
4749
|
applyClips(); renderWorkArea(); refreshWorkAreaVis(); renderWorkPlane();
|
|
4745
|
-
publishWorkAreaState();
|
|
4750
|
+
publishWorkAreaState(); notifyVisibilityChange(); // a work area (whole-parts) hides/shows whole meshes: that is a visibility change the user made
|
|
4746
4751
|
return true;
|
|
4747
4752
|
}
|
|
4748
4753
|
function workAreaSetAll() { return setWorkAreaBox(visibleWorldBox()); } // "set work area to all objects" — ALL objects, so a visible reference model counts; steel-only made this return false (a dead control) on a project holding only a borrowed IFC
|
|
@@ -4755,7 +4760,7 @@ function workAreaToggle(on) {
|
|
|
4755
4760
|
if (api && api.beginClipEdit) api.beginClipEdit(); // undoable
|
|
4756
4761
|
workArea.enabled = on === undefined ? !workArea.enabled : !!on;
|
|
4757
4762
|
applyClips(); renderWorkArea(); refreshWorkAreaVis(); renderWorkPlane();
|
|
4758
|
-
publishWorkAreaState();
|
|
4763
|
+
publishWorkAreaState(); notifyVisibilityChange();
|
|
4759
4764
|
return workArea.enabled;
|
|
4760
4765
|
}
|
|
4761
4766
|
// "Show whole parts" toggle: whole → a part touching the box shows in full (nothing sliced); cut → hard planar
|
|
@@ -4765,10 +4770,10 @@ function workAreaSetWhole(on) {
|
|
|
4765
4770
|
if (api && api.beginClipEdit) api.beginClipEdit(); // undoable
|
|
4766
4771
|
workArea.whole = on === undefined ? !workArea.whole : !!on;
|
|
4767
4772
|
applyClips(); refreshWorkAreaVis();
|
|
4768
|
-
publishWorkAreaState();
|
|
4773
|
+
publishWorkAreaState(); notifyVisibilityChange();
|
|
4769
4774
|
return workArea.whole;
|
|
4770
4775
|
}
|
|
4771
|
-
function clearWorkArea() { if (api && api.beginClipEdit && workArea) api.beginClipEdit(); workArea = null; applyClips(); renderWorkArea(); refreshWorkAreaVis(); renderWorkPlane(); publishWorkAreaState(); }
|
|
4776
|
+
function clearWorkArea() { const had = workArea !== null; if (api && api.beginClipEdit && workArea) api.beginClipEdit(); workArea = null; applyClips(); renderWorkArea(); refreshWorkAreaVis(); renderWorkPlane(); publishWorkAreaState(); if (had) notifyVisibilityChange(); }
|
|
4772
4777
|
function workAreaState() { return workArea ? { on: workArea.enabled, whole: !!workArea.whole } : null; }
|
|
4773
4778
|
// The camera viewpoint as plain data — position + orbit target + projection + the ortho frustum half-height
|
|
4774
4779
|
// and zoom. A saved view restores it via setCameraState. (perspCam/orthoCam share position; orthoBaseH+zoom
|
|
@@ -5789,7 +5794,7 @@ function reconcileGridVisibilityState(scopeChanged=false){
|
|
|
5789
5794
|
selectedGridIds=new Set(next.selected);gridSelectionHidden=new Set(next.hidden);isolatedGridIds=next.isolated===null?null:new Set(next.isolated);
|
|
5790
5795
|
if(next.clearMeshIsolation){isolatedIds=null;applyGroupVisibility();rebuildEndpoints();refreshOverlayDims();refreshDims();}
|
|
5791
5796
|
if(next.selectionChanged&&api&&api.onGridSelectionReset)api.onGridSelectionReset();
|
|
5792
|
-
if(next.changed){updateStatusChip();notifyVisibilityChange();}
|
|
5797
|
+
if(next.changed){updateStatusChip();notifyVisibilityChange({intentional:false});}
|
|
5793
5798
|
}
|
|
5794
5799
|
function setGridSelection(ids){selectedGridIds=ids instanceof Set?new Set(ids):new Set(ids||[]);applyDisplayMode();updateStatusChip();}
|
|
5795
5800
|
// A Ghost change arriving here is an object-visibility change like any other, so it notifies as
|
|
@@ -9121,6 +9126,7 @@ function disposeSteel() {
|
|
|
9121
9126
|
function dispose() {
|
|
9122
9127
|
if (!viewportController) return disposeSteel();
|
|
9123
9128
|
const current = viewportController;
|
|
9129
|
+
sceneVisibilityRevision += current.visibilityRevision(); // keep the facade's revision from falling when the controller goes away
|
|
9124
9130
|
viewportController = null;
|
|
9125
9131
|
return current.dispose();
|
|
9126
9132
|
}
|
|
@@ -9364,6 +9370,8 @@ window.Steel3DView = {
|
|
|
9364
9370
|
// Instructor seam: what this module has armed, and the one slot that paints what the shell produced.
|
|
9365
9371
|
instructorCommand, renderGuidance,
|
|
9366
9372
|
isolateSelected, hideSelected, clearIsolation, isIsolated, hasVisibilityFilter, hasVisibilityTreatment,
|
|
9373
|
+
// Monotonic count of every Ghost/Isolate/Hide/Show-all/saved-view change; a caller compares two readings to learn whether visibility was touched in between.
|
|
9374
|
+
visibilityRevision: () => sceneVisibilityRevision + (viewportController ? viewportController.visibilityRevision() : 0),
|
|
9367
9375
|
setGhostUnselected: (on) => viewportController ? viewportController.setGhostUnselected(on) : setGhostUnselected(on),
|
|
9368
9376
|
toggleGhostUnselected: () => viewportController ? viewportController.toggleGhostUnselected() : setGhostUnselected(!ghostUnselectedEnabled),
|
|
9369
9377
|
ghostUnselected: () => viewportController ? viewportController.ghostUnselected() : ghostUnselectedEnabled,
|