@floless/app 0.140.0 → 0.141.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 +31058 -36164
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +8 -3
- package/dist/web/app.css +24 -2
- package/dist/web/aware.js +297 -38
- package/dist/web/chat.css +319 -31
- package/dist/web/chat.js +1588 -88
- package/dist/web/commands-filter.js +86 -8
- package/dist/web/commands-shell.js +62 -7
- 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 +24 -9
- package/dist/web/instructor.js +205 -29
- 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 +1604 -59
- package/dist/web/vector-3d.html +3 -0
- package/dist/web/vector-editor.html +3 -0
- package/dist/web/workspaces.js +48 -9
- 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';
|
package/dist/web/workspaces.js
CHANGED
|
@@ -1148,8 +1148,19 @@
|
|
|
1148
1148
|
let modeChangeSequence = 0;
|
|
1149
1149
|
function showWorkflowOpening(opening) {
|
|
1150
1150
|
if (!$workflowTab) return;
|
|
1151
|
-
|
|
1152
|
-
|
|
1151
|
+
// Explicit ARIA "true", never toggleAttribute: that writes a valueless `aria-busy=""`, which is not
|
|
1152
|
+
// a valid ARIA state and matches neither setMode()'s `=== 'true'` re-click guard nor the app.css
|
|
1153
|
+
// `[aria-busy="true"]` rule — so every re-click started another read (#1489).
|
|
1154
|
+
// Instructor reads aria-disabled="true" as blocked; data-blocked-reason is what `?` then says.
|
|
1155
|
+
if (opening) {
|
|
1156
|
+
$workflowTab.setAttribute('aria-busy', 'true');
|
|
1157
|
+
$workflowTab.setAttribute('aria-disabled', 'true');
|
|
1158
|
+
$workflowTab.setAttribute('data-blocked-reason', 'Workflows is already opening. Wait a moment, or choose Workspaces to stay where you are.');
|
|
1159
|
+
} else {
|
|
1160
|
+
$workflowTab.removeAttribute('aria-busy');
|
|
1161
|
+
$workflowTab.removeAttribute('aria-disabled');
|
|
1162
|
+
$workflowTab.removeAttribute('data-blocked-reason');
|
|
1163
|
+
}
|
|
1153
1164
|
if (opening) {
|
|
1154
1165
|
$workflowTab.setAttribute('aria-label', 'Opening Workflows');
|
|
1155
1166
|
$workflowTab.innerHTML = '<span class="rtn-spinner" aria-hidden="true"></span><span>Opening Workflows…</span>';
|
|
@@ -3498,6 +3509,21 @@
|
|
|
3498
3509
|
// Keep steel projects stage-by-stage while the first drawing read is in progress. The later tabs
|
|
3499
3510
|
// stay visible so the user can see what comes next, but explain their prerequisite instead of
|
|
3500
3511
|
// opening empty destinations during a potentially long terminal-AI read.
|
|
3512
|
+
function savedFilterNextStep(req) {
|
|
3513
|
+
const continuation = req?.filterSaveContinuation;
|
|
3514
|
+
if (continuation?.state === 'queued') return 'FloLess will continue the drawing read in the linked AI Chat when that conversation is ready.';
|
|
3515
|
+
if (continuation?.state === 'continuing') return 'FloLess sent the saved filter to the linked AI Chat. Follow that conversation for the drawing read.';
|
|
3516
|
+
if (continuation?.state === 'completed') return 'The linked AI Chat finished its response. Review its result in that conversation.';
|
|
3517
|
+
if (continuation?.nextAction) return continuation.nextAction;
|
|
3518
|
+
return 'Return to the same terminal AI session that prepared this Drawing Filter and tell it to continue the drawing read.';
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
function readyFilterNextStep(req) {
|
|
3522
|
+
return req?.chatConversation?.executionOwner === 'chat'
|
|
3523
|
+
? 'Then press Save filter in the top-right corner. FloLess will continue the drawing read in the linked AI Chat.'
|
|
3524
|
+
: 'Then press Save filter in the top-right corner. After Save, return to the terminal AI that prepared it and tell it to continue.';
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3501
3527
|
function stageGateFor(step) {
|
|
3502
3528
|
const d = wsApp();
|
|
3503
3529
|
if (!d || !d.filter || !['model', 'exports', 'history'].includes(step)) return '';
|
|
@@ -3519,8 +3545,9 @@
|
|
|
3519
3545
|
if (step === 'model') {
|
|
3520
3546
|
if (waitingForInitial && revCardReq?.preparationState === 'blocked') return 'FloLess could not finish drawing preparation. Restart FloLess, then open Requests and follow the detailed instructions if it remains blocked.';
|
|
3521
3547
|
if (waitingForInitial && revCardReq?.preparationState === 'manifest-published' && !revCardReq?.prepassReady) return 'Drawing preparation is complete and saved. Return to the same terminal AI session and tell it to continue creating the Drawing Filter.';
|
|
3522
|
-
if (waitingForInitial && revCardReq?.
|
|
3523
|
-
if (waitingForInitial && revCardReq?.
|
|
3548
|
+
if (waitingForInitial && revCardReq?.filterSaveContinuation?.state === 'recovery-needed') return `The Drawing Filter needs attention. ${savedFilterNextStep(revCardReq)}`;
|
|
3549
|
+
if (waitingForInitial && revCardReq?.filterCheckpointCurrent) return `The Drawing Filter is saved. ${savedFilterNextStep(revCardReq)}`;
|
|
3550
|
+
if (waitingForInitial && revCardReq?.prepassReady) return `Check steel, member marks, grids, dimensions, and relevant callouts. Ask in AI Chat on the left if you need help. ${readyFilterNextStep(revCardReq)}`;
|
|
3524
3551
|
if (waitingForInitial && revCardReq?.preparationRetryable) return 'Steel Filter preparation was interrupted. Your drawings are still attached. Return to the same terminal AI and retry preparation for this same request.';
|
|
3525
3552
|
if (waitingForInitial) return 'The initial drawing read is waiting for your terminal AI. The model unlocks after you review the Drawing Filter and press Save filter.';
|
|
3526
3553
|
if (projectContractLifecycle === 'filter-checkpoint') return 'Attach the drawing set again in Drawing Filter to restart the read. The earlier request is no longer available to receive a saved filter.';
|
|
@@ -3620,10 +3647,12 @@
|
|
|
3620
3647
|
? 'FloLess could not finish drawing preparation · Restart FloLess, then open Requests and follow the detailed instructions if it remains blocked. Your drawings are still attached.'
|
|
3621
3648
|
: waitingForInitial && revCardReq?.preparationState === 'manifest-published' && !revCardReq?.prepassReady
|
|
3622
3649
|
? 'Drawing preparation is complete and saved · Return to the same terminal AI session and tell it to continue creating the Drawing Filter. Do not start or copy this request again.'
|
|
3650
|
+
: waitingForInitial && revCardReq?.filterSaveContinuation?.state === 'recovery-needed'
|
|
3651
|
+
? `Drawing Filter needs attention · ${savedFilterNextStep(revCardReq)}`
|
|
3623
3652
|
: waitingForInitial && revCardReq?.filterCheckpointCurrent
|
|
3624
|
-
?
|
|
3653
|
+
? `The Drawing Filter is saved · ${savedFilterNextStep(revCardReq)} Live progress appears here once the read starts.`
|
|
3625
3654
|
: waitingForInitial && revCardReq?.prepassReady
|
|
3626
|
-
? 'Drawing Filter ready for review ·
|
|
3655
|
+
? 'Drawing Filter ready for review · ' + (window.FilterGuidance?.scope || 'Check what this steel read may use — not only the steel. Keep the steel plus member labels and sizes, grid references, scale or location dimensions, and relevant detail or section callouts.') + ' Ask in AI Chat on the left if you are unsure. ' + readyFilterNextStep(revCardReq)
|
|
3627
3656
|
: waitingForInitial && revCardReq?.preparationRetryable
|
|
3628
3657
|
? 'Steel Filter preparation was interrupted · Your drawings are still attached. Return to the same terminal AI and retry preparation for this same request.'
|
|
3629
3658
|
: waitingForInitial
|
|
@@ -8759,11 +8788,21 @@
|
|
|
8759
8788
|
txt.appendChild(document.createTextNode(' Return to the same terminal AI session and tell it to continue creating the Drawing Filter. Do not start or copy this request again.'));
|
|
8760
8789
|
return [dot, txt];
|
|
8761
8790
|
}
|
|
8791
|
+
if (req.filterSaveContinuation?.state === 'recovery-needed') {
|
|
8792
|
+
const dot = revEl('span', 'wrc-warn-ico', '⚠'); dot.setAttribute('aria-hidden', 'true');
|
|
8793
|
+
const txt = revEl('span', 'wrc-text');
|
|
8794
|
+
txt.appendChild(revEl('b', null, 'Drawing Filter needs attention.'));
|
|
8795
|
+
txt.appendChild(document.createTextNode(` ${savedFilterNextStep(req)}`));
|
|
8796
|
+
const review = revEl('button', 'btn-mini', 'Open Drawing Filter');
|
|
8797
|
+
review.type = 'button'; review.dataset.revfilter = ''; review.dataset.commandId = 'shell.revision-filter-open';
|
|
8798
|
+
review.setAttribute('data-tip', 'Focus the Drawing Filter below');
|
|
8799
|
+
return [dot, txt, review];
|
|
8800
|
+
}
|
|
8762
8801
|
if (req.prepassReady && req.filterCheckpointCurrent) {
|
|
8763
8802
|
const dot = revEl('span', 'wrc-dot'); dot.setAttribute('aria-hidden', 'true');
|
|
8764
8803
|
const txt = revEl('span', 'wrc-text');
|
|
8765
8804
|
txt.appendChild(revEl('b', null, 'Drawing Filter saved.'));
|
|
8766
|
-
txt.appendChild(document.createTextNode(
|
|
8805
|
+
txt.appendChild(document.createTextNode(` ${savedFilterNextStep(req)}`));
|
|
8767
8806
|
return [dot, txt];
|
|
8768
8807
|
}
|
|
8769
8808
|
// Defensive fallback for a strip that could not paint; ordinary initial reads put this action in
|
|
@@ -8772,7 +8811,7 @@
|
|
|
8772
8811
|
const dot = revEl('span', 'wrc-dot'); dot.setAttribute('aria-hidden', 'true');
|
|
8773
8812
|
const txt = revEl('span', 'wrc-text');
|
|
8774
8813
|
txt.appendChild(revEl('b', null, 'Drawing Filter is ready.'));
|
|
8775
|
-
txt.appendChild(document.createTextNode('
|
|
8814
|
+
txt.appendChild(document.createTextNode(' ' + (window.FilterGuidance?.scope || 'Check what this steel read may use — not only the steel. Keep the steel plus member labels and sizes, grid references, scale or location dimensions, and relevant detail or section callouts.') + ' Ask in AI Chat on the left if you are unsure. ' + readyFilterNextStep(req)));
|
|
8776
8815
|
const review = revEl('button', 'btn-mini', 'Open Drawing Filter');
|
|
8777
8816
|
review.type = 'button'; review.dataset.revfilter = ''; review.dataset.commandId = 'shell.revision-filter-open';
|
|
8778
8817
|
review.setAttribute('data-tip', 'Focus the Drawing Filter below');
|
|
@@ -9092,7 +9131,7 @@
|
|
|
9092
9131
|
// card too produced the two contradictory-looking status bands in the reported UI.
|
|
9093
9132
|
if (retireRevisionCardForStrip(pending)) return;
|
|
9094
9133
|
const cardKey = `${state}:${revCardReq ? revCardReq.id : ''}:${pending && pending.filterCheckpointCurrent ? 'filter-saved' : pending && pending.prepassReady ? 'filter-ready' : 'read-pending'}:${pending && pending.run ? pending.run.state || '' : ''}`
|
|
9095
|
-
+ (pending ? `:${pending.preparationState || ''}:${pending.preparationRetryable === true}:${pending.canRun === true}:${pending.canCopy === true}:${pending.canClear === true}:${pending.clearWhy || ''}` : '')
|
|
9134
|
+
+ (pending ? `:${pending.preparationState || ''}:${pending.preparationRetryable === true}:${pending.canRun === true}:${pending.canCopy === true}:${pending.canClear === true}:${pending.clearWhy || ''}:${pending.filterSaveContinuation?.state || ''}:${pending.filterSaveContinuation?.nextAction || ''}` : '')
|
|
9096
9135
|
+ (staged ? `:${staged.baseVersion}:${staged.headVersion}:${staged.stageId || ''}:${staged.canDiscardRevision === true}:${staged.discardState || ''}:${staged.discardWhy || ''}:${staged.canClear === true}:${staged.clearWhy || ''}:${unavailableRevisionReviewStages.has(staged.stageId)}` : '');
|
|
9097
9136
|
// The key below exists to preserve focus in the card across the three-second poll. It says
|
|
9098
9137
|
// nothing about the strip, whose progress record advances on its own revision, so the strip is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floless/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.141.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
|
|
6
6
|
"bin": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"app:restart": "node launch.mjs restart",
|
|
24
24
|
"test": "node build/run-tests.mjs",
|
|
25
25
|
"test:steel-inspector": "tsx --test steel-filter-inspector.required.ts",
|
|
26
|
+
"test:drawing-identify": "tsx --test drawing-identify.required.ts",
|
|
26
27
|
"test:project-import-pdf": "node build/run-required-tests.mjs projects-store.test.ts rfi-import.test.ts",
|
|
27
28
|
"test:platform": "node build/run-tests.mjs --platform-only",
|
|
28
29
|
"build": "node build/bundle.mjs",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"verify:flo-naming": "node build/verify-flo-naming.mjs",
|
|
39
40
|
"verify:forward-merge": "node build/verify-forward-merge.mjs",
|
|
40
41
|
"verify:no-title": "node build/verify-no-title.mjs",
|
|
42
|
+
"verify:css-vars": "node build/verify-css-vars.mjs",
|
|
41
43
|
"verify:runtime-pins": "node build/verify-runtime-pins.mjs",
|
|
42
44
|
"verify:rvt-registry-pins": "node build/verify-rvt-registry-pins.mjs",
|
|
43
45
|
"verify:native-steel": "node build/verify-native-steel.mjs",
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
"yaml": "^2.9.0"
|
|
95
97
|
},
|
|
96
98
|
"dependencies": {
|
|
97
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
99
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.281",
|
|
98
100
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
99
101
|
"zod": "4.6.5"
|
|
100
102
|
},
|