@floless/app 0.126.2 → 0.126.4
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 +2021 -861
- package/dist/skills/floless-app-new-workflow/SKILL.md +38 -1
- package/dist/skills/floless-app-tweak-contract/SKILL.md +18 -2
- package/dist/skills/floless-app-workflows/SKILL.md +34 -1
- package/dist/skills/floless-app-workflows/references/workspace-data.md +16 -4
- package/dist/templates/floless-workspace-read.flo +1 -1
- package/dist/web/app.css +129 -0
- package/dist/web/app.js +4 -0
- package/dist/web/aware.js +433 -28
- package/dist/web/index.html +33 -2
- package/dist/web/steel-3d-view.js +14 -2
- package/dist/web/steel-editor.html +13 -8
- package/dist/web/vector-editor.html +6 -2
- package/dist/web/workspaces.js +3 -0
- package/package.json +1 -1
package/dist/web/index.html
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<span class="guide-beacon-ico" aria-hidden="true">✦</span>
|
|
107
107
|
<span class="guide-beacon-label">Start here</span>
|
|
108
108
|
</button>
|
|
109
|
-
<span class="run-state" id="run-state" role="status" aria-live="polite"></span>
|
|
109
|
+
<span class="run-state" id="run-state" role="status" aria-live="polite" aria-atomic="true"></span>
|
|
110
110
|
<!-- Restore + Customize: shown for a MAINTAINED (publisher:floless, non-forked) app. Restore
|
|
111
111
|
appears only when its logic drifted (re-installs the official version); Customize (fork) is
|
|
112
112
|
always available for a maintained app. When shown on drift they replace Compile, so a
|
|
@@ -734,6 +734,18 @@
|
|
|
734
734
|
<div class="integrations-hint">
|
|
735
735
|
Tokens are stored encrypted by AWARE under <code>~/.aware/credentials/</code>. To connect or refresh, run <code>aware connect <name></code> in claude-code (or codex / opencode). FloLess never touches secrets directly.
|
|
736
736
|
</div>
|
|
737
|
+
<!-- Headless runs (#571): which terminal AI floless may start for you, and where it runs.
|
|
738
|
+
Its own full-width section rather than a card in the 2-col grid below, because a
|
|
739
|
+
detected CLI is not an OAuth connection: there is no Connect, no expiry, and
|
|
740
|
+
deliberately no "ready" state — a signed-out CLI looks identical to a working one, so
|
|
741
|
+
a green tick two rows under a real "Connected" badge would claim what we can't back.
|
|
742
|
+
Rendered per-open by renderRuntimeSection() in aware.js. -->
|
|
743
|
+
<div class="int-section" id="int-runtimes-section" hidden>
|
|
744
|
+
<div class="int-section-title">Headless runs</div>
|
|
745
|
+
<div class="int-section-sub">floless can start your own terminal AI on a queued request instead of you pasting it. It runs on your machine, with your login — floless never sends your work anywhere.</div>
|
|
746
|
+
<div class="int-runtimes" id="int-runtimes"></div>
|
|
747
|
+
<div class="int-folder" id="int-folder"></div>
|
|
748
|
+
</div>
|
|
737
749
|
<div class="integrations-list" id="integrations-list"></div>
|
|
738
750
|
<div class="modal-actions">
|
|
739
751
|
<button id="integrations-close">Close</button>
|
|
@@ -772,11 +784,30 @@
|
|
|
772
784
|
<div class="request-help-step"><span>2</span><p>Paste the copied instructions.</p></div>
|
|
773
785
|
<div class="request-help-step"><span>3</span><p>Return here to track progress in Requests.</p></div>
|
|
774
786
|
</div>
|
|
787
|
+
<!-- Replaces the three steps above once floless has started the work itself: they describe
|
|
788
|
+
things the user must do, and after "Run it for me" there is nothing left for them to do.
|
|
789
|
+
Swapped wholesale rather than relabelled, or the modal would describe a paste that never
|
|
790
|
+
happened. Deliberately NOT live — this modal is dismissed in seconds and the Requests row
|
|
791
|
+
owns liveness; a second poller for a transient modal is plumbing nobody reads. -->
|
|
792
|
+
<div class="request-help-run-status" id="request-help-run-status" hidden>
|
|
793
|
+
<span class="rtn-spinner" aria-hidden="true"></span>
|
|
794
|
+
<div>
|
|
795
|
+
<p class="rhrs-title" id="request-help-run-title"></p>
|
|
796
|
+
<p class="rhrs-sub">This can take a few minutes, and you don’t need to wait. Keep working — the row in Requests updates as it goes.</p>
|
|
797
|
+
</div>
|
|
798
|
+
</div>
|
|
775
799
|
<div class="request-help-note" id="request-help-note">The web UI queues the request; your terminal agent applies it and reports progress back here.</div>
|
|
776
800
|
<div class="modal-actions">
|
|
777
801
|
<button id="request-help-copy" hidden>Copy instruction</button>
|
|
778
802
|
<button id="request-help-keep">Keep working</button>
|
|
779
|
-
<button id="request-help-open"
|
|
803
|
+
<button id="request-help-open">Open Requests</button>
|
|
804
|
+
<!-- The §E4 split: ▶ runs with the current default, ▾ opens folder + which terminal AI for
|
|
805
|
+
THIS run only. Hidden outright when no runtime is installed or this request's type
|
|
806
|
+
can't run headless — hide, never disable. -->
|
|
807
|
+
<span class="run-split" id="request-help-run-split" hidden>
|
|
808
|
+
<button id="request-help-run" class="primary run-split-main">▶ Run it for me</button>
|
|
809
|
+
<button id="request-help-run-opts" class="primary run-split-caret" aria-label="Choose folder and terminal AI" data-tip="Choose the folder and which terminal AI to use">▾</button>
|
|
810
|
+
</span>
|
|
780
811
|
</div>
|
|
781
812
|
</div>
|
|
782
813
|
</div>
|
|
@@ -430,10 +430,22 @@ function orientMember(mesh, dir, el) {
|
|
|
430
430
|
const m = dir.clone().normalize();
|
|
431
431
|
// el.rot (section roll about the reference line) applies to ANY member — columns AND beams. A member
|
|
432
432
|
// rendered as an explicit BOX (traced section, no profile) rolls about its length axis (local Y here).
|
|
433
|
+
// For a non-plumb BOX, first align its authored depth axis with world-up; a plumb member has no
|
|
434
|
+
// plan direction and `positionH` is unavailable, so its roll below only establishes display facing.
|
|
433
435
|
const rollRad = (el && typeof el.rot === 'number' && el.rot) ? el.rot * Math.PI / 180 : 0;
|
|
434
436
|
if (mesh.geometry.type === 'BoxGeometry') {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
+
const q = new THREE.Quaternion().setFromUnitVectors(_YA, m); // length on local Y
|
|
438
|
+
const proj = _ZA.clone().sub(m.clone().multiplyScalar(_ZA.dot(m)));
|
|
439
|
+
if (proj.lengthSq() > 1e-6) {
|
|
440
|
+
proj.normalize();
|
|
441
|
+
const lz = _ZA.clone().applyQuaternion(q); // local depth axis
|
|
442
|
+
const ang = Math.atan2(lz.clone().cross(proj).dot(m), lz.dot(proj));
|
|
443
|
+
q.premultiply(new THREE.Quaternion().setFromAxisAngle(m, ang));
|
|
444
|
+
if (rollRad) q.premultiply(new THREE.Quaternion().setFromAxisAngle(m, rollRad));
|
|
445
|
+
} else if (el && typeof el.rot === 'number') {
|
|
446
|
+
q.premultiply(new THREE.Quaternion().setFromAxisAngle(m, el.rot * Math.PI / 180));
|
|
447
|
+
}
|
|
448
|
+
mesh.quaternion.copy(q);
|
|
437
449
|
return;
|
|
438
450
|
}
|
|
439
451
|
const q = new THREE.Quaternion().setFromUnitVectors(_ZA, m); // member axis = extrude (local Z)
|
|
@@ -163,7 +163,9 @@
|
|
|
163
163
|
grouped form outright.
|
|
164
164
|
The three per-container rules keep their SIZING and have dropped the now-inert accent-color, so
|
|
165
165
|
nothing reads as if that were the remedy. */
|
|
166
|
-
input
|
|
166
|
+
/* The 24px border box is the pointer target. Chromium's 14px input formerly kept its 2px UA margin
|
|
167
|
+
on each side, so -3px margins retain that measured 18px outer flex footprint (24 - 3 - 3). */
|
|
168
|
+
input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:24px;margin-block:-3px;padding:0;border:0;
|
|
167
169
|
background:transparent;cursor:pointer}
|
|
168
170
|
input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--line)}
|
|
169
171
|
input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--line)}
|
|
@@ -187,7 +189,9 @@
|
|
|
187
189
|
control collapsed to a 120x4 sliver with no handle — measured in Chromium at forced-colors:active,
|
|
188
190
|
and WORSE than the 16px native widget these users had before this block existed. */
|
|
189
191
|
input[type=range]{appearance:revert;-webkit-appearance:revert;width:revert;height:revert;
|
|
190
|
-
padding:revert;border:revert;background:revert}
|
|
192
|
+
margin-block:revert;padding:revert;border:revert;background:revert}
|
|
193
|
+
/* The OS owns the paint in forced colours; re-assert only target geometry after that hand-back. */
|
|
194
|
+
input[type=range]{height:24px;margin-block:-3px}
|
|
191
195
|
input[type=range]::-webkit-slider-runnable-track{height:revert;border-radius:revert;background:revert}
|
|
192
196
|
input[type=range]::-moz-range-track{height:revert;border-radius:revert;background:revert}
|
|
193
197
|
input[type=range]::-moz-range-progress{height:revert;border-radius:revert;background:revert}
|
|
@@ -2685,12 +2689,11 @@ function hasPlanDir(m){
|
|
|
2685
2689
|
if(!m||m.role==='column'||!Array.isArray(m.wp)||m.wp.length<2)return false;
|
|
2686
2690
|
const k=304.8/((P&&P.pt_per_ft>0)?P.pt_per_ft:1);
|
|
2687
2691
|
return Math.hypot(m.wp[1][0]-m.wp[0][0],m.wp[1][1]-m.wp[0][1])*k>=1;}
|
|
2688
|
-
// Can this member be justified left/right?
|
|
2689
|
-
//
|
|
2690
|
-
//
|
|
2691
|
-
//
|
|
2692
|
-
|
|
2693
|
-
function posHEligible(m){return hasPlanDir(m)&&profileDimsIn(m&&m.profile)!=null;}
|
|
2692
|
+
// Can this member be justified left/right? It needs a plan direction and an authored section frame. A
|
|
2693
|
+
// resolved designation supplies that through profileDimsIn; a CUSTOM/imported section supplies w+d.
|
|
2694
|
+
// The BOX renderer now aligns that frame with the plan before applying Profile Rotation, so this
|
|
2695
|
+
// agrees with the server whether or not the AISC table has loaded.
|
|
2696
|
+
function posHEligible(m){return hasPlanDir(m)&&(profileDimsIn(m&&m.profile)!=null||!!(m&&m.section&&m.section.w>0&&m.section.d>0));}
|
|
2694
2697
|
// Profile Position copy, in ONE place so the single- and multi-select panels cannot drift (they already
|
|
2695
2698
|
// described the same control two different ways). Per-button tips, not one heading tip carrying
|
|
2696
2699
|
// everything: with two axes under one heading the two "Middle" buttons sit adjacent, and each button
|
|
@@ -14273,6 +14276,8 @@ if(new URLSearchParams(location.search).get('selftest')==='1'){(function(){
|
|
|
14273
14276
|
ok(hasPlanDir(Object.assign(mk(120,'W16X26'),{role:'column'}))===false,'a column never has a plan direction to justify to');
|
|
14274
14277
|
ok(posHEligible(mk(120,'W16X26'))===true,'a real beam with a resolved profile is eligible');
|
|
14275
14278
|
ok(posHEligible(mk(120,'MF'))===false,'an unresolved mark has no section to flush a face to');
|
|
14279
|
+
ok(posHEligible(Object.assign(mk(120,''),{section:{w:200,d:100}}))===true,'a sloped custom rectangle with w+d is eligible');
|
|
14280
|
+
ok(posHEligible(Object.assign(mk(0,''),{section:{w:200,d:100}}))===false,'a plumb custom rectangle has no left/right direction');
|
|
14276
14281
|
ok(posHDefault(mk(120,'W16X26'))==='middle','posHDefault centres a member that never set one');
|
|
14277
14282
|
ok(posHDefault(Object.assign(mk(120,'W16X26'),{positionH:'left'}))==='left','an explicit positionH wins');
|
|
14278
14283
|
P.pt_per_ft=sp3;}
|
|
@@ -79,7 +79,9 @@
|
|
|
79
79
|
Same declarations as steel-editor.html's block (indentation aside). Nothing enforces that they stay
|
|
80
80
|
in step; verify-native-controls holds each surface to the contract independently, which is what
|
|
81
81
|
actually matters if they ever drift. */
|
|
82
|
-
input
|
|
82
|
+
/* The 24px border box is the pointer target. Chromium's 14px input formerly kept its 2px UA margin
|
|
83
|
+
on each side, so -3px margins retain that measured 18px outer flex footprint (24 - 3 - 3). */
|
|
84
|
+
input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:24px;margin-block:-3px;padding:0;border:0;
|
|
83
85
|
background:transparent;cursor:pointer}
|
|
84
86
|
input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--line)}
|
|
85
87
|
input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--line)}
|
|
@@ -103,7 +105,9 @@
|
|
|
103
105
|
sliver with no handle — measured at forced-colors:active, and worse than the 16px native widget
|
|
104
106
|
these users had before this block existed. */
|
|
105
107
|
input[type=range]{appearance:revert;-webkit-appearance:revert;width:revert;height:revert;
|
|
106
|
-
padding:revert;border:revert;background:revert}
|
|
108
|
+
margin-block:revert;padding:revert;border:revert;background:revert}
|
|
109
|
+
/* The OS owns the paint in forced colours; re-assert only target geometry after that hand-back. */
|
|
110
|
+
input[type=range]{height:24px;margin-block:-3px}
|
|
107
111
|
input[type=range]::-webkit-slider-runnable-track{height:revert;border-radius:revert;background:revert}
|
|
108
112
|
input[type=range]::-moz-range-track{height:revert;border-radius:revert;background:revert}
|
|
109
113
|
input[type=range]::-moz-range-progress{height:revert;border-radius:revert;background:revert}
|
package/dist/web/workspaces.js
CHANGED
|
@@ -7630,6 +7630,9 @@
|
|
|
7630
7630
|
}
|
|
7631
7631
|
function openProjMenu(id, anchor) {
|
|
7632
7632
|
menuFor = id;
|
|
7633
|
+
// An explicit popup wins over the passive fullscreen suggestion. The app-shell listener removes
|
|
7634
|
+
// the nudge synchronously without persisting its seen key, before this menu can receive a click.
|
|
7635
|
+
document.dispatchEvent(new Event('floless:passive-overlay-yield'));
|
|
7633
7636
|
// The thumbnail items sit beside Rename because they are the same KIND of act — editing how the
|
|
7634
7637
|
// card presents itself — where Duplicate/Export are lineage and Archive (behind the divider) is
|
|
7635
7638
|
// lifecycle. "Thumbnail", not "snapshot": this app already spends that word twice (the screenshots
|