@floless/app 0.148.1 → 0.149.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/bin/floless.mjs +1 -1
- package/dist/floless-server.cjs +28663 -18914
- package/dist/schemas/drawing-check.profile.v1.schema.json +156 -0
- package/dist/schemas/steel.model.v2.schema.json +43 -1
- package/dist/schemas/tekla.model.v2.schema.json +6 -2
- package/dist/skills/floless-app-steel-model/SKILL.md +54 -11
- package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +9 -5
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +128 -15
- package/dist/skills/floless-app-vectorize/SKILL.md +7 -4
- package/dist/templates/check-drawings.flo +46 -0
- package/dist/templates/drawing-check.flo +55 -0
- package/dist/templates/tekla-parser.flo +6 -2
- package/dist/web/app.css +143 -8
- package/dist/web/aware.js +444 -39
- package/dist/web/chat.css +171 -9
- package/dist/web/chat.js +2005 -759
- package/dist/web/commands-drawing-check.js +53 -0
- package/dist/web/commands-shell.js +275 -3
- package/dist/web/commands-steel.js +1 -0
- package/dist/web/commands-tekla-parser.js +3 -0
- package/dist/web/commands.js +1 -1
- package/dist/web/connections.js +382 -0
- package/dist/web/display-units.js +15 -1
- package/dist/web/drawing-check-editor.html +289 -0
- package/dist/web/drawing-check-editor.js +1242 -0
- package/dist/web/drawing-check-overlay.js +36 -0
- package/dist/web/filter-ai-proposal.js +32 -13
- package/dist/web/index.html +25 -3
- package/dist/web/instructor.js +2 -2
- package/dist/web/local-discovery.js +144 -2
- package/dist/web/model-display-units.js +23 -9
- package/dist/web/model-viewport-revit-adapter.js +12 -2
- package/dist/web/revit-editor.css +5 -0
- package/dist/web/revit-editor.js +141 -20
- package/dist/web/steel-editor.html +166 -27
- package/dist/web/steel-filter.html +60 -166
- package/dist/web/steel-model-v2-commands.js +13 -3
- package/dist/web/steel-model-v2-projection.js +20 -0
- package/dist/web/steel-units.js +3 -1
- package/dist/web/workspaces.js +306 -22
- package/launch.mjs +5 -5
- package/package.json +3 -1
- package/dist/web/filter-ai-context.js +0 -92
package/dist/web/workspaces.js
CHANGED
|
@@ -355,6 +355,11 @@
|
|
|
355
355
|
/** The failed import the "Report this problem" button would hand to support, or null. */
|
|
356
356
|
let reportImportOperation = null;
|
|
357
357
|
const $revitCancel = document.getElementById('ws-revit-cancel');
|
|
358
|
+
const $teklaAddCatalogues = document.getElementById('ws-tekla-add-catalogues');
|
|
359
|
+
const $teklaContinueWithout = document.getElementById('ws-tekla-continue-without');
|
|
360
|
+
const $teklaCatalogueInput = document.getElementById('ws-tekla-catalogue-input');
|
|
361
|
+
const $sourceFiles = document.getElementById('ws-source-files');
|
|
362
|
+
const $sourceHint = document.getElementById('ws-source-hint');
|
|
358
363
|
const $revitReassure = document.getElementById('ws-source-reassure');
|
|
359
364
|
let revitSourceState = null;
|
|
360
365
|
let revitActiveOperation = null;
|
|
@@ -827,6 +832,60 @@
|
|
|
827
832
|
},
|
|
828
833
|
},
|
|
829
834
|
},
|
|
835
|
+
'drawing-check': {
|
|
836
|
+
// A Drawing Checker project is one CLIENT PROFILE: reference drawings → a ticked checklist →
|
|
837
|
+
// runs that mark up shop drawings. Server-authorized like the parsers (its card appears only once
|
|
838
|
+
// /api/apps reports it, locked for an account without the module), but it has NO model source:
|
|
839
|
+
// it opens straight into its own editor frame, never the read-only source chrome. Every branch
|
|
840
|
+
// that means "Revit or Tekla" therefore says so (isModelSourceProject), not serverAuthorizedOnly.
|
|
841
|
+
serverAuthorizedOnly: true,
|
|
842
|
+
cardIcon: 'D', // R = Revit, T = Tekla, D = Drawing Checker
|
|
843
|
+
displayName: 'Drawing Checker',
|
|
844
|
+
projectCapability: 'checks shop drawings',
|
|
845
|
+
createActions: [{
|
|
846
|
+
kind: 'drawing-check-profile',
|
|
847
|
+
headline: 'Drawing Checker',
|
|
848
|
+
capability: 'Checks shop drawings',
|
|
849
|
+
sub: 'Make a profile for one client from drawings you already trust.',
|
|
850
|
+
label: 'New client profile…',
|
|
851
|
+
}],
|
|
852
|
+
editor: '/drawing-check-editor.html',
|
|
853
|
+
filter: null,
|
|
854
|
+
steps: [
|
|
855
|
+
{ key: 'knowledge', label: 'Knowledge' }, // the client's standards are knowledge, as for every app
|
|
856
|
+
{ key: 'model', label: 'Checker' },
|
|
857
|
+
{ key: 'history', label: 'History' },
|
|
858
|
+
],
|
|
859
|
+
diff: false,
|
|
860
|
+
exports: [],
|
|
861
|
+
accessCopy: {
|
|
862
|
+
'access-required': {
|
|
863
|
+
status: 'Access required', body: 'Drawing Checker is not included for this account. Ask your FloLess account owner to enable it.',
|
|
864
|
+
action: '', aria: 'Drawing Checker access required',
|
|
865
|
+
},
|
|
866
|
+
'account-selection-required': {
|
|
867
|
+
status: 'Choose an account', body: 'Choose which FloLess account to use for Drawing Checker.',
|
|
868
|
+
action: 'Choose account', aria: 'Choose a FloLess account for Drawing Checker',
|
|
869
|
+
},
|
|
870
|
+
'setup-unavailable': {
|
|
871
|
+
status: 'Needs setup', body: 'Drawing Checker setup didn’t finish. Try setup again.',
|
|
872
|
+
action: 'Try setup again', aria: 'Drawing Checker needs setup — try setup again',
|
|
873
|
+
},
|
|
874
|
+
'setup-provisioning': {
|
|
875
|
+
status: 'Setting up', body: 'FloLess is preparing Drawing Checker.',
|
|
876
|
+
action: '', aria: 'Drawing Checker setup in progress',
|
|
877
|
+
},
|
|
878
|
+
'setup-integrity-failure': {
|
|
879
|
+
status: 'Setup could not be verified',
|
|
880
|
+
body: 'FloLess could not verify this Drawing Checker setup, so it was not used. No drawings were changed.',
|
|
881
|
+
action: 'Try setup again', aria: 'Drawing Checker setup could not be verified — try setup again',
|
|
882
|
+
},
|
|
883
|
+
'check-unavailable': {
|
|
884
|
+
status: 'Couldn’t check access', body: 'FloLess couldn’t verify Drawing Checker access. Existing profiles were not changed.',
|
|
885
|
+
action: 'Check again', aria: 'Drawing Checker access check unavailable — check again',
|
|
886
|
+
},
|
|
887
|
+
},
|
|
888
|
+
},
|
|
830
889
|
};
|
|
831
890
|
// A project names its app by the LIVE id, which a rename or a duplicate moves off the descriptor
|
|
832
891
|
// keys above — so resolve through the lineage ROOT the server ships beside it (`templateId`, derived
|
|
@@ -1132,7 +1191,7 @@
|
|
|
1132
1191
|
// review while the import is active, but that refusal is not a lasting error.
|
|
1133
1192
|
if (sourceStateProbe) await sourceStateProbe;
|
|
1134
1193
|
if (gen !== approvalStateGen || !current || current.id !== projectId) return null;
|
|
1135
|
-
if (
|
|
1194
|
+
if (isModelSourceProject(current) && revitActiveOperation
|
|
1136
1195
|
&& !['ready', 'failed', 'cancelled'].includes(revitActiveOperation.state)) {
|
|
1137
1196
|
approvalState = { status: 'waiting-for-model-read', review: null, pendingCount: 0,
|
|
1138
1197
|
headVersion: null, error: '' };
|
|
@@ -1385,6 +1444,8 @@
|
|
|
1385
1444
|
// and the read would then drop them in Workflows anyway.
|
|
1386
1445
|
const pending = $switch.getAttribute('aria-busy') === 'true';
|
|
1387
1446
|
if (!pending && b.dataset.mode === 'workspaces' && mode === 'workspaces' && current) { closeProject(); return; }
|
|
1447
|
+
// #1890: the active Workflows tab goes home to the Workflows landing, the same way.
|
|
1448
|
+
if (!pending && b.dataset.mode === 'workflows' && mode === 'workflows' && bridge.showWorkflowsLanding) { bridge.showWorkflowsLanding(); return; }
|
|
1388
1449
|
setMode(b.dataset.mode);
|
|
1389
1450
|
});
|
|
1390
1451
|
document.addEventListener('keydown', (e) => {
|
|
@@ -2065,12 +2126,20 @@
|
|
|
2065
2126
|
const revitCommand = entry.capabilityStatus === 'setup-unavailable'
|
|
2066
2127
|
? 'data-command-id="shell.revit-retry-setup"'
|
|
2067
2128
|
: 'data-command-id="shell.revit-view-access"';
|
|
2129
|
+
// Drawing Checker has its own remedies. It must never fall into the Tekla branch: that would
|
|
2130
|
+
// retry the Tekla provider setup and open the Tekla account dialog from a Drawing Checker card.
|
|
2131
|
+
const drawingCheckCommand = ['setup-unavailable', 'setup-integrity-failure'].includes(entry.capabilityStatus)
|
|
2132
|
+
? 'data-command-id="shell.drawing-check-retry-setup"'
|
|
2133
|
+
: 'data-command-id="shell.drawing-check-view-access"';
|
|
2134
|
+
const remedyState = escapeAttr(entry.capabilityStatus || 'check-unavailable');
|
|
2068
2135
|
return `<${actionable ? 'button type="button"' : 'div'} class="ws-seed ws-seed-remedy" ` +
|
|
2069
2136
|
`aria-label="${escapeAttr(state.aria)}" aria-describedby="${escapeAttr(descriptionId)}" ` +
|
|
2070
2137
|
(provisioning ? 'aria-busy="true" ' : '') +
|
|
2071
2138
|
(actionable ? entry.templateId === 'revit-model'
|
|
2072
|
-
? `${revitCommand} data-revit-remedy="${
|
|
2073
|
-
:
|
|
2139
|
+
? `${revitCommand} data-revit-remedy="${remedyState}"`
|
|
2140
|
+
: entry.templateId === 'drawing-check'
|
|
2141
|
+
? `${drawingCheckCommand} data-module-remedy="drawing-check" data-module-remedy-state="${remedyState}"`
|
|
2142
|
+
: `${teklaCommand} data-module-remedy="tekla-parser" data-module-remedy-state="${remedyState}"` : '') + `>` +
|
|
2074
2143
|
`<span class="ws-seed-icon" aria-hidden="true">${escapeHtml(descriptor.cardIcon || '!')}</span>` +
|
|
2075
2144
|
`<span class="ws-seed-headline">${escapeHtml(descriptor.displayName)}</span>` +
|
|
2076
2145
|
(descriptor.readOnlyLabel ? `<span class="ws-seed-readonly">${escapeHtml(descriptor.readOnlyLabel)}</span>` : '') +
|
|
@@ -2081,6 +2150,7 @@
|
|
|
2081
2150
|
}
|
|
2082
2151
|
const acceptsDrop = action.kind === 'drawing' || action.kind === 'rvt';
|
|
2083
2152
|
const createCommand = action.kind === 'tekla-source' ? 'data-command-id="shell.project-create-tekla-read" '
|
|
2153
|
+
: action.kind === 'drawing-check-profile' ? 'data-command-id="shell.project-create-drawing-check-profile" '
|
|
2084
2154
|
: action.kind !== 'drawing' ? ''
|
|
2085
2155
|
: entry.templateId === 'steel-model' ? 'data-command-id="shell.project-create-steel-from-drawings" '
|
|
2086
2156
|
: entry.templateId === 'vectorize' ? 'data-command-id="shell.project-create-trace-from-drawing" '
|
|
@@ -2375,6 +2445,38 @@
|
|
|
2375
2445
|
return null;
|
|
2376
2446
|
}
|
|
2377
2447
|
|
|
2448
|
+
/**
|
|
2449
|
+
* The locked Drawing Checker card's remedies — its own, never Tekla's. Setup is retried through the
|
|
2450
|
+
* shared bootstrap retry (which re-runs Drawing Checker provisioning when it failed); account choice
|
|
2451
|
+
* and access checks go to the shell's account gate under Drawing Checker's name.
|
|
2452
|
+
*/
|
|
2453
|
+
async function runDrawingCheckRemedy(remedy) {
|
|
2454
|
+
const state = remedy.dataset.moduleRemedyState;
|
|
2455
|
+
if (state === 'setup-provisioning' || state === 'access-required') return;
|
|
2456
|
+
if (state === 'setup-unavailable' || state === 'setup-integrity-failure') {
|
|
2457
|
+
const action = remedy.querySelector('.ws-seed-action');
|
|
2458
|
+
const originalAction = action?.textContent || '';
|
|
2459
|
+
remedy.disabled = true;
|
|
2460
|
+
remedy.setAttribute('aria-busy', 'true');
|
|
2461
|
+
if (action) action.textContent = 'Trying…';
|
|
2462
|
+
let retried = true; let answered = false;
|
|
2463
|
+
// A reply from FloLess that refused is not "FloLess is not running": only an unreachable server is.
|
|
2464
|
+
try { await api('/api/bootstrap/retry', { method: 'POST', body: '{}' }); }
|
|
2465
|
+
catch (e) { retried = false; answered = typeof e?.status === 'number' && e.status > 0; }
|
|
2466
|
+
remedy.disabled = false;
|
|
2467
|
+
remedy.removeAttribute('aria-busy');
|
|
2468
|
+
if (action) action.textContent = originalAction;
|
|
2469
|
+
await loadProjects({ quiet: true });
|
|
2470
|
+
showToast(retried
|
|
2471
|
+
? 'Drawing Checker setup is running again. The card updates when it finishes.'
|
|
2472
|
+
: answered
|
|
2473
|
+
? 'FloLess couldn’t start Drawing Checker setup again right now. Restart FloLess, then try again from this card.'
|
|
2474
|
+
: 'FloLess couldn’t start Drawing Checker setup again. Check that FloLess is running, then try again.', retried ? 'info' : 'warn');
|
|
2475
|
+
return;
|
|
2476
|
+
}
|
|
2477
|
+
window.dispatchEvent(new CustomEvent('floless:open-drawing-check-access', { detail: { state } }));
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2378
2480
|
$landing.addEventListener('click', async (e) => {
|
|
2379
2481
|
const kebab = e.target.closest('[data-kebab]');
|
|
2380
2482
|
if (kebab) { e.stopPropagation(); openProjMenu(kebab.dataset.kebab, kebab); return; }
|
|
@@ -2483,6 +2585,10 @@
|
|
|
2483
2585
|
return;
|
|
2484
2586
|
}
|
|
2485
2587
|
const moduleRemedy = e.target.closest('[data-module-remedy]');
|
|
2588
|
+
if (moduleRemedy && moduleRemedy.dataset.moduleRemedy === 'drawing-check') {
|
|
2589
|
+
await runDrawingCheckRemedy(moduleRemedy);
|
|
2590
|
+
return;
|
|
2591
|
+
}
|
|
2486
2592
|
if (moduleRemedy) {
|
|
2487
2593
|
if (moduleRemedy.dataset.moduleRemedyState === 'setup-provisioning') return;
|
|
2488
2594
|
if (moduleRemedy.dataset.moduleRemedyState === 'setup-integrity-failure') {
|
|
@@ -2574,6 +2680,11 @@
|
|
|
2574
2680
|
if (file) createFromRvt(appId, templateId, file);
|
|
2575
2681
|
} else if (seed.dataset.seedAction === 'tekla-source') {
|
|
2576
2682
|
openTeklaSourceChoice(appId, templateId, seed);
|
|
2683
|
+
} else if (seed.dataset.seedAction === 'drawing-check-profile') {
|
|
2684
|
+
// A client profile starts empty: the reference drawings are added on its own page, where
|
|
2685
|
+
// their page counts and the proposed checklist can be shown. The setup dialog asks only the
|
|
2686
|
+
// folder and the client's name.
|
|
2687
|
+
createFromDrawing(appId, templateId, [], { kind: 'drawing-check-profile', sourceLabel: 'Client profile', returnFocus: seed });
|
|
2577
2688
|
} else {
|
|
2578
2689
|
// Unreachable today, and it must not be SILENT the day it isn't: an unhandled kind still
|
|
2579
2690
|
// renders a full dashed, focusable card, so without this the first person to add one gets a
|
|
@@ -2686,6 +2797,12 @@
|
|
|
2686
2797
|
else if (!event.shiftKey && document.activeElement === last) { event.preventDefault(); first.focus(); }
|
|
2687
2798
|
});
|
|
2688
2799
|
const isTeklaParserProject = (project = current) => wsDescOf(project) === WORKSPACE_APPS['tekla-parser'];
|
|
2800
|
+
const isRevitProject = (project = current) => wsDescOf(project) === WORKSPACE_APPS['revit-model'];
|
|
2801
|
+
const isDrawingCheckProject = (project = current) => wsDescOf(project) === WORKSPACE_APPS['drawing-check'];
|
|
2802
|
+
// The two server-authorized apps that READ A MODEL SOURCE (an RVT, a Tekla folder) and so own the
|
|
2803
|
+
// read-only source chrome, the secure editor session and the /api/{revit,tekla}-projects endpoints.
|
|
2804
|
+
// `serverAuthorizedOnly` is NOT this: Drawing Checker is server-authorized and has no model source.
|
|
2805
|
+
const isModelSourceProject = (project = current) => isTeklaParserProject(project) || isRevitProject(project);
|
|
2689
2806
|
$revitReplace?.addEventListener('click', async () => {
|
|
2690
2807
|
const project = current;
|
|
2691
2808
|
if (!project) return;
|
|
@@ -2943,7 +3060,7 @@
|
|
|
2943
3060
|
$projectSetupCreate.textContent = label || 'Create project & start chat';
|
|
2944
3061
|
$projectSetupCreateOnly.textContent = busy && !projectSetupState.settingUp
|
|
2945
3062
|
? 'Creating…'
|
|
2946
|
-
: (
|
|
3063
|
+
: (NO_CHAT_SETUP_KINDS.includes(projectSetupState.kind) ? 'Create project' : 'Create project only');
|
|
2947
3064
|
if (!busy) {
|
|
2948
3065
|
$projectSetupCreate.disabled = !projectSetupReady();
|
|
2949
3066
|
$projectSetupCreateOnly.disabled = !projectSetupReady();
|
|
@@ -2965,8 +3082,11 @@
|
|
|
2965
3082
|
// Every answer is checked against what can start now: preferredChatProvider() prefers the open
|
|
2966
3083
|
// conversation's AI, which may since have been uninstalled, and a choice that cannot start must
|
|
2967
3084
|
// never be the one shown as chosen and sent.
|
|
3085
|
+
// Setup kinds that create a project only — no AI Chat intake, no drawing-intake task. The two model
|
|
3086
|
+
// sources are read by FloLess itself; a Drawing Checker profile starts empty and is built on its page.
|
|
3087
|
+
const NO_CHAT_SETUP_KINDS = ['rvt', 'tekla-source', 'drawing-check-profile'];
|
|
2968
3088
|
function projectSetupProvider(state) {
|
|
2969
|
-
if (!state ||
|
|
3089
|
+
if (!state || NO_CHAT_SETUP_KINDS.includes(state.kind)) return null;
|
|
2970
3090
|
const runtimes = bridge.chatProviderRuntimes?.() || [];
|
|
2971
3091
|
const readiness = (id) => (id ? projectSetupProviderReadiness(runtimes.find((runtime) => runtime.id === id)) : 'unavailable');
|
|
2972
3092
|
const canStart = (id) => readiness(id) !== 'unavailable';
|
|
@@ -3090,7 +3210,7 @@
|
|
|
3090
3210
|
$projectSetupCreateOnly.classList.toggle('primary', !provider);
|
|
3091
3211
|
$projectSetupTitle.textContent = `New ${descDisplayName(state.templateId)} project`;
|
|
3092
3212
|
$projectSetupSourceName.textContent = state.sourceLabel || state.files[0]?.name || (state.kind === 'rvt' ? 'Revit model' : 'Drawing set');
|
|
3093
|
-
$projectSetupCreateOnly.textContent = state.busy ? 'Creating…' : (
|
|
3213
|
+
$projectSetupCreateOnly.textContent = state.busy ? 'Creating…' : (NO_CHAT_SETUP_KINDS.includes(state.kind) ? 'Create project' : 'Create project only');
|
|
3094
3214
|
$projectSetupSourceCount.textContent = state.files.length > 1 ? `+ ${state.files.length - 1} more` : '';
|
|
3095
3215
|
$projectSetupFolder.textContent = state.directory
|
|
3096
3216
|
? state.directory.path
|
|
@@ -3207,7 +3327,7 @@
|
|
|
3207
3327
|
app: state.appId,
|
|
3208
3328
|
...(state.askCatalogue ? { environment: state.environment } : {}),
|
|
3209
3329
|
directorySelectionId: state.directory.selectionId,
|
|
3210
|
-
...(
|
|
3330
|
+
...(NO_CHAT_SETUP_KINDS.includes(state.kind) ? {} : { initialTask: { kind: 'drawing-intake', sourceNames: state.files.map((file) => file.name) } }),
|
|
3211
3331
|
};
|
|
3212
3332
|
const { project } = await api('/api/projects', { method: 'POST', body: JSON.stringify(payload) });
|
|
3213
3333
|
if (state.kind === 'rvt') {
|
|
@@ -3222,6 +3342,14 @@
|
|
|
3222
3342
|
await importTeklaIntoProject(project, state.teklaSource, state.appId);
|
|
3223
3343
|
return;
|
|
3224
3344
|
}
|
|
3345
|
+
if (state.kind === 'drawing-check-profile') {
|
|
3346
|
+
projects.unshift(project);
|
|
3347
|
+
track('workspace_project_created', { app: state.appId });
|
|
3348
|
+
setProjectSetupBusy(false);
|
|
3349
|
+
closeProjectSetup({ restoreFocus: false });
|
|
3350
|
+
await openProject(project.id, 'model');
|
|
3351
|
+
return;
|
|
3352
|
+
}
|
|
3225
3353
|
projects.unshift(project);
|
|
3226
3354
|
track('workspace_project_created', { app: state.appId });
|
|
3227
3355
|
setProjectSetupBusy(false);
|
|
@@ -3308,7 +3436,8 @@
|
|
|
3308
3436
|
*/
|
|
3309
3437
|
async function createFromDrawing(appId, templateId, files, { kind = 'drawings', sourceLabel = '', teklaSource = null, returnFocus = null } = {}) {
|
|
3310
3438
|
if (!$projectSetup || projectSetupState) return false;
|
|
3311
|
-
|
|
3439
|
+
// A Drawing Checker profile is the one setup with no source file: its references come later.
|
|
3440
|
+
if (!Array.isArray(files) || (!files.length && kind !== 'drawing-check-profile')) return false;
|
|
3312
3441
|
if (kind === 'drawings' && files.length > 20) {
|
|
3313
3442
|
showToast('Choose up to 20 drawings for a new project.', 'warn');
|
|
3314
3443
|
return false;
|
|
@@ -3337,7 +3466,7 @@
|
|
|
3337
3466
|
renderProjectSetup();
|
|
3338
3467
|
$projectSetup.classList.add('show');
|
|
3339
3468
|
$projectSetupFolderChoose.focus();
|
|
3340
|
-
if (kind
|
|
3469
|
+
if (!NO_CHAT_SETUP_KINDS.includes(kind)) void refreshProjectSetupProviders(state);
|
|
3341
3470
|
try {
|
|
3342
3471
|
if (kind !== 'tekla-source') {
|
|
3343
3472
|
await Promise.all(files.map(assertProjectSourceReadable));
|
|
@@ -3416,6 +3545,128 @@
|
|
|
3416
3545
|
renderProjectSetup();
|
|
3417
3546
|
});
|
|
3418
3547
|
|
|
3548
|
+
// #1836: what each Tekla catalogue file gives the model, in the person's words.
|
|
3549
|
+
const TEKLA_CATALOGUE_USES = Object.freeze({
|
|
3550
|
+
'profdb.bin': 'Profile shapes. Gives beams and columns their real cross-section.',
|
|
3551
|
+
'matdb.bin': 'Material grades. Kept with the model. Nothing is drawn differently without it.',
|
|
3552
|
+
'screwdb.db': 'Bolt sizes. Needed to draw bolts at the right size.',
|
|
3553
|
+
'assdb.db': 'Bolt assemblies. Nuts and washers for each bolt.',
|
|
3554
|
+
});
|
|
3555
|
+
let teklaAsk = null;
|
|
3556
|
+
|
|
3557
|
+
function clearTeklaAsk() {
|
|
3558
|
+
teklaAsk = null;
|
|
3559
|
+
$sourcePlaceholder?.removeAttribute('data-asking');
|
|
3560
|
+
if ($sourceFiles) { $sourceFiles.hidden = true; $sourceFiles.replaceChildren(); }
|
|
3561
|
+
if ($sourceHint) { $sourceHint.hidden = true; $sourceHint.textContent = ''; }
|
|
3562
|
+
if ($teklaAddCatalogues) $teklaAddCatalogues.hidden = true;
|
|
3563
|
+
if ($teklaContinueWithout) $teklaContinueWithout.hidden = true;
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
/** Paint the question for the missing catalogue files: one row per file, then Add / Continue / Cancel. */
|
|
3567
|
+
function paintTeklaAsk(status = '') {
|
|
3568
|
+
const ask = teklaAsk;
|
|
3569
|
+
if (!ask || current?.id !== ask.projectId || !$sourcePlaceholder) return;
|
|
3570
|
+
const count = ask.missing.length;
|
|
3571
|
+
// While files are being added the pane says so, and a repaint from elsewhere must not re-offer the answers.
|
|
3572
|
+
if (ask.adding) paintRevitSourceState('Adding catalogue files…', 'Copying the files you chose to FloLess.');
|
|
3573
|
+
else paintRevitSourceState(count === 1 ? 'A Tekla catalogue file is missing' : `${count} Tekla catalogue files are missing`,
|
|
3574
|
+
[status || ask.status, 'FloLess copied your model but hasn’t read it yet. These files come from the Tekla environment the model was made in.']
|
|
3575
|
+
.filter(Boolean).join('\n\n'));
|
|
3576
|
+
paintRevitSourceActions('asking', false);
|
|
3577
|
+
$sourcePlaceholder.setAttribute('data-asking', 'true');
|
|
3578
|
+
$sourceFiles.replaceChildren(...ask.missing.map((file) => {
|
|
3579
|
+
const row = document.createElement('li');
|
|
3580
|
+
const name = document.createElement('code'); name.textContent = file;
|
|
3581
|
+
const use = document.createElement('span'); use.textContent = TEKLA_CATALOGUE_USES[file] || 'A Tekla catalogue file.';
|
|
3582
|
+
row.append(name, use); return row;
|
|
3583
|
+
}));
|
|
3584
|
+
$sourceFiles.hidden = false;
|
|
3585
|
+
$sourceHint.textContent = 'You’ll usually find them in the folder of the Tekla environment the model was made in. Your original model folder or ZIP is never changed.';
|
|
3586
|
+
$sourceHint.hidden = false;
|
|
3587
|
+
$teklaAddCatalogues.hidden = false; $teklaAddCatalogues.disabled = !!ask.adding;
|
|
3588
|
+
$teklaContinueWithout.hidden = false; $teklaContinueWithout.disabled = !!ask.adding;
|
|
3589
|
+
if (!ask.adding) $sourcePlaceholder.querySelector('.ws-source-title')?.focus({ preventScroll: true });
|
|
3590
|
+
window.__instructor?.notifyChanged?.();
|
|
3591
|
+
}
|
|
3592
|
+
|
|
3593
|
+
/**
|
|
3594
|
+
* Ask what to do about missing catalogue files (#1836). Resolves `{ continue: true }` or
|
|
3595
|
+
* `{ added: true, status }`; rejects with AbortError when the person cancels the read.
|
|
3596
|
+
*/
|
|
3597
|
+
function askTeklaCatalogues(project, sessionId, missing, status = '') {
|
|
3598
|
+
return new Promise((resolve, reject) => {
|
|
3599
|
+
const controller = new AbortController();
|
|
3600
|
+
teklaUploadAbort = controller; teklaUploadProjectId = project.id;
|
|
3601
|
+
const settle = (fn, value) => {
|
|
3602
|
+
if (teklaUploadAbort === controller) { teklaUploadAbort = null; teklaUploadProjectId = null; }
|
|
3603
|
+
clearTeklaAsk(); fn(value);
|
|
3604
|
+
};
|
|
3605
|
+
controller.signal.addEventListener('abort', () => settle(reject, new DOMException('Read cancelled', 'AbortError')), { once: true });
|
|
3606
|
+
teklaAsk = {
|
|
3607
|
+
projectId: project.id, missing: [...missing], abandon: () => controller.abort(),
|
|
3608
|
+
onContinue: () => settle(resolve, { continue: true }),
|
|
3609
|
+
onFiles: async (files) => {
|
|
3610
|
+
const wanted = new Set(missing); const picked = new Map(); const skipped = [];
|
|
3611
|
+
for (const file of files) {
|
|
3612
|
+
const name = String(file.name || '').toLowerCase();
|
|
3613
|
+
if (wanted.has(name) && !picked.has(name)) picked.set(name, file); else skipped.push(file.name);
|
|
3614
|
+
}
|
|
3615
|
+
const skippedLine = skipped.length ? `Skipped ${skipped.join(', ')}: ${skipped.length === 1 ? 'it isn’t' : 'they aren’t'} one of the missing catalogue files.` : '';
|
|
3616
|
+
if (!picked.size) { paintTeklaAsk(skippedLine); return; }
|
|
3617
|
+
const ask = teklaAsk;
|
|
3618
|
+
if (!ask) return;
|
|
3619
|
+
ask.adding = true; paintTeklaAsk();
|
|
3620
|
+
const added = []; const failed = [];
|
|
3621
|
+
for (const [name, file] of picked) {
|
|
3622
|
+
try {
|
|
3623
|
+
await copyTeklaSourceBytes(`/api/tekla-source-sessions/${encodeURIComponent(sessionId)}/catalogues/${encodeURIComponent(name)}`, file, { signal: controller.signal, whole: true });
|
|
3624
|
+
added.push(name);
|
|
3625
|
+
} catch (error) {
|
|
3626
|
+
if (error?.name === 'AbortError') return;
|
|
3627
|
+
failed.push(`Couldn’t add ${name}: ${teklaCatalogueAddReason(error)}`);
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
ask.adding = false;
|
|
3631
|
+
const lines = [added.length ? `Added ${added.join(', ')}.` : '', ...failed, skippedLine].filter(Boolean);
|
|
3632
|
+
if (!added.length) { ask.status = lines.join(' · '); paintTeklaAsk(); return; }
|
|
3633
|
+
settle(resolve, { added: true, status: lines.join(' · ') });
|
|
3634
|
+
},
|
|
3635
|
+
};
|
|
3636
|
+
paintTeklaAsk(status);
|
|
3637
|
+
}).catch(async (error) => {
|
|
3638
|
+
if (error?.name === 'AbortError') {
|
|
3639
|
+
// The server also discards an unclaimed upload when it expires; a failed DELETE only delays that.
|
|
3640
|
+
await fetch(`/api/tekla-source-sessions/${encodeURIComponent(sessionId)}`, { method: 'DELETE', credentials: 'same-origin' })
|
|
3641
|
+
.catch((cleanupError) => console.warn('FloLess could not discard the cancelled Tekla upload yet', cleanupError));
|
|
3642
|
+
}
|
|
3643
|
+
throw error;
|
|
3644
|
+
});
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
/** Why one catalogue file could not be added, worded as what to do next. Only an unfinished copy is worth retrying. */
|
|
3648
|
+
function teklaCatalogueAddReason(error) {
|
|
3649
|
+
const message = error?.message || '';
|
|
3650
|
+
if (/already (added|has)/i.test(message)) return 'this read already has that file.';
|
|
3651
|
+
if (/larger than FloLess accepts/i.test(message)) return 'it is larger than FloLess accepts.';
|
|
3652
|
+
if (/is empty/i.test(message)) return 'the file is empty. Choose the real file from your Tekla environment.';
|
|
3653
|
+
if (/finalized|unavailable|expired/i.test(message)) return 'this read has already moved on. Choose the model again to start a new read.';
|
|
3654
|
+
if (/sign.?in|access|\b40[13]\b/i.test(message)) return 'FloLess could not confirm your access. Sign in again, then choose the model again.';
|
|
3655
|
+
return 'the copy did not finish. Try choosing it again.';
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
$teklaAddCatalogues?.addEventListener('click', () => {
|
|
3659
|
+
if (!teklaAsk || !$teklaCatalogueInput) return;
|
|
3660
|
+
$teklaCatalogueInput.value = '';
|
|
3661
|
+
$teklaCatalogueInput.click();
|
|
3662
|
+
});
|
|
3663
|
+
$teklaCatalogueInput?.addEventListener('change', () => {
|
|
3664
|
+
const files = [...($teklaCatalogueInput.files || [])];
|
|
3665
|
+
$teklaCatalogueInput.value = '';
|
|
3666
|
+
if (files.length) void teklaAsk?.onFiles(files);
|
|
3667
|
+
});
|
|
3668
|
+
$teklaContinueWithout?.addEventListener('click', () => teklaAsk?.onContinue());
|
|
3669
|
+
|
|
3419
3670
|
function paintRevitSourceState(title, detail) {
|
|
3420
3671
|
if (!$sourcePlaceholder) return;
|
|
3421
3672
|
const titleNode = $sourcePlaceholder.querySelector('.ws-source-title');
|
|
@@ -3426,6 +3677,11 @@
|
|
|
3426
3677
|
|
|
3427
3678
|
function teklaAdmissionMessage(error) {
|
|
3428
3679
|
const message = error?.message || String(error || '');
|
|
3680
|
+
// #1849: reading without some catalogue files needs a newer AWARE; the server names the version.
|
|
3681
|
+
const degradedAware = /needs AWARE (\d+\.\d+\.\d+) or newer/.exec(message);
|
|
3682
|
+
if (degradedAware) return /could not check which AWARE/.test(message)
|
|
3683
|
+
? `Reading a model without some of its catalogue files needs AWARE ${degradedAware[1]} or newer, and FloLess could not check which AWARE this computer has. Restart FloLess so it can check AWARE again, then choose the model again. Or add the missing files and read it with them. The source model was not changed.`
|
|
3684
|
+
: `Reading a model without some of its catalogue files needs AWARE ${degradedAware[1]} or newer. Use Upgrade AWARE at the bottom of the window, then choose the model again. Or add the missing files and read it with them. The source model was not changed.`;
|
|
3429
3685
|
if (/No upload progress was detected for 30 seconds/i.test(message)) return 'No upload progress was detected for 30 seconds, so FloLess stopped this copy. No partial snapshot was saved, and the source ZIP was not changed.';
|
|
3430
3686
|
if (/upload made no progress for 2 minutes/i.test(message)) return 'The Tekla ZIP upload made no progress for 2 minutes, so FloLess stopped this copy. No partial snapshot was saved, and the source ZIP was not changed.';
|
|
3431
3687
|
if (/413|too large|payload too large/i.test(message)) return 'This Tekla ZIP is too large to copy in one read. Choose the model folder instead, or make a smaller ZIP and try again.';
|
|
@@ -3437,6 +3693,7 @@
|
|
|
3437
3693
|
function teklaAdmissionTitle(error) {
|
|
3438
3694
|
const message = error?.message || String(error || '');
|
|
3439
3695
|
return /No upload progress was detected for 30 seconds/i.test(message) ? 'Tekla ZIP copy stopped'
|
|
3696
|
+
: /needs AWARE \d+\.\d+\.\d+ or newer/.test(message) ? 'Update AWARE to read without catalogue files'
|
|
3440
3697
|
: /layout|format|framing/i.test(message)
|
|
3441
3698
|
? 'We can’t safely read this model yet' : 'Tekla source needs attention';
|
|
3442
3699
|
}
|
|
@@ -3495,15 +3752,22 @@
|
|
|
3495
3752
|
if (!$revitSourceActions) return;
|
|
3496
3753
|
if (isTeklaParserProject()) canRetry = false;
|
|
3497
3754
|
const busy = mode === 'active' || mode === 'uploading';
|
|
3755
|
+
const asking = mode === 'asking';
|
|
3756
|
+
if (!asking && teklaAsk) {
|
|
3757
|
+
// Another painter ran while FloLess was asking. On another project the question is dropped and
|
|
3758
|
+
// its copy discarded; on this project the question stays on screen (#1836).
|
|
3759
|
+
if (current?.id !== teklaAsk.projectId) teklaAsk.abandon();
|
|
3760
|
+
else { queueMicrotask(() => paintTeklaAsk()); return; }
|
|
3761
|
+
}
|
|
3498
3762
|
const canReport = mode === 'failed' && reportableImport(failedOperation);
|
|
3499
3763
|
reportImportOperation = canReport ? failedOperation : null;
|
|
3500
3764
|
$revitOpenModel.hidden = mode !== 'imported';
|
|
3501
3765
|
// Report counts toward the row: a failure with no Replace access and no Retry still offers it.
|
|
3502
|
-
$revitSourceActions.hidden = !canReplace && !busy && !(mode === 'failed' && canRetry) && !canReport && mode !== 'imported';
|
|
3766
|
+
$revitSourceActions.hidden = !canReplace && !busy && !asking && !(mode === 'failed' && canRetry) && !canReport && mode !== 'imported';
|
|
3503
3767
|
$revitReplace.hidden = busy || !canReplace;
|
|
3504
3768
|
$revitRetry.hidden = mode !== 'failed' || !canRetry;
|
|
3505
3769
|
if ($importReport) $importReport.hidden = !canReport;
|
|
3506
|
-
$revitCancel.hidden = mode !== 'active';
|
|
3770
|
+
$revitCancel.hidden = mode !== 'active' && !asking;
|
|
3507
3771
|
$revitReassure.hidden = !busy;
|
|
3508
3772
|
// This is also the live region: aria-busy would suppress spoken progress.
|
|
3509
3773
|
$sourcePlaceholder?.setAttribute('data-importing', String(busy));
|
|
@@ -3524,7 +3788,7 @@
|
|
|
3524
3788
|
}
|
|
3525
3789
|
|
|
3526
3790
|
async function refreshRevitSourceState(projectId = current?.id) {
|
|
3527
|
-
if (!projectId || !current || current.id !== projectId ||
|
|
3791
|
+
if (!projectId || !current || current.id !== projectId || !isModelSourceProject(current)) return null;
|
|
3528
3792
|
const operationAtRequest = revitActiveOperation;
|
|
3529
3793
|
try {
|
|
3530
3794
|
const tekla = isTeklaParserProject(current);
|
|
@@ -3596,8 +3860,9 @@
|
|
|
3596
3860
|
const TEKLA_COPY_STALL_MS = 30_000;
|
|
3597
3861
|
const TEKLA_COPY_ACTIVE_STALL_MS = 2 * 60_000;
|
|
3598
3862
|
const TEKLA_ZIP_CHUNK_BYTES = 8 * 1024 * 1024;
|
|
3599
|
-
async function copyTeklaSourceBytes(url, file, { signal, relativePath = '', onProgress = () => {} } = {}) {
|
|
3600
|
-
|
|
3863
|
+
async function copyTeklaSourceBytes(url, file, { signal, relativePath = '', whole = false, onProgress = () => {} } = {}) {
|
|
3864
|
+
// Only the ZIP archive endpoint reassembles chunks; a catalogue file (#1836) always goes up whole.
|
|
3865
|
+
const chunked = !whole && !relativePath && file.size > TEKLA_ZIP_CHUNK_BYTES;
|
|
3601
3866
|
const sendChunk = async (blob, offset) => {
|
|
3602
3867
|
const controller = new AbortController();
|
|
3603
3868
|
let stalled = false;
|
|
@@ -3761,9 +4026,22 @@
|
|
|
3761
4026
|
// A completed admission owns session cleanup. Retrying DELETE after its refusal only produces
|
|
3762
4027
|
// a spurious browser error for a session it already removed; earlier upload failures still delete.
|
|
3763
4028
|
finishAttempted = true;
|
|
3764
|
-
const
|
|
3765
|
-
method: 'POST', body: JSON.stringify({ projectId: project.id }),
|
|
4029
|
+
const finalize = (catalogues) => api(`/api/tekla-source-sessions/${encodeURIComponent(sessionId)}/finalize`, {
|
|
4030
|
+
method: 'POST', body: JSON.stringify({ projectId: project.id, ...(catalogues ? { catalogues } : {}) }),
|
|
3766
4031
|
});
|
|
4032
|
+
let started = await finalize();
|
|
4033
|
+
let status = '';
|
|
4034
|
+
// #1836: missing catalogue files are a question, not a failure. Ask until every file is
|
|
4035
|
+
// supplied or the person chooses to continue without the rest; cancelling discards the copy.
|
|
4036
|
+
while (started.needs === 'catalogues') {
|
|
4037
|
+
const answer = await askTeklaCatalogues(project, sessionId, started.missing || [], status);
|
|
4038
|
+
if (isCurrentProject()) {
|
|
4039
|
+
paintRevitSourceState('Checking Tekla model…', answer.status || 'Checking the copied model before reading it. This check cannot be cancelled.');
|
|
4040
|
+
paintRevitSourceActions('uploading', true);
|
|
4041
|
+
}
|
|
4042
|
+
status = answer.status || '';
|
|
4043
|
+
started = await finalize(answer.continue ? { continue: true, revision: started.revision } : undefined);
|
|
4044
|
+
}
|
|
3767
4045
|
teklaAdmissionFailures.delete(project.id);
|
|
3768
4046
|
if (isCurrentProject()) {
|
|
3769
4047
|
revitSourceState = { ...(revitSourceState || {}), generation: generation + 1 };
|
|
@@ -3952,6 +4230,8 @@
|
|
|
3952
4230
|
return;
|
|
3953
4231
|
}
|
|
3954
4232
|
current = p;
|
|
4233
|
+
// #1890: a new workspace conversation suggests this project's units (the one opened last).
|
|
4234
|
+
try { localStorage.setItem('floless:last-project', p.id); } catch { /* private mode: no suggestion */ }
|
|
3955
4235
|
revitSourceState = null;
|
|
3956
4236
|
revitActiveOperation = null;
|
|
3957
4237
|
// Project lifecycle is project-scoped. Reset it before the first setStep so one project's model
|
|
@@ -3980,7 +4260,7 @@
|
|
|
3980
4260
|
// the 'model' frame loads the app's editor; the 'drawings' frame loads its filter (steel) OR is
|
|
3981
4261
|
// left empty when the app has no filter step (vectorize — its Source step shows a placeholder).
|
|
3982
4262
|
const d = wsDescOf(p); // guaranteed present — the guard above bailed on an unknown app
|
|
3983
|
-
if (
|
|
4263
|
+
if (isModelSourceProject(p)) {
|
|
3984
4264
|
configureReadOnlySourceChrome(p);
|
|
3985
4265
|
try {
|
|
3986
4266
|
const session = await fetch('/api/editor/session', { method: 'POST', credentials: 'same-origin' });
|
|
@@ -4001,7 +4281,11 @@
|
|
|
4001
4281
|
// import that would act on the OTHER project's operation.
|
|
4002
4282
|
paintRevitSourceActions('ready', false);
|
|
4003
4283
|
}
|
|
4004
|
-
|
|
4284
|
+
// Drawing Checker has no Drawings or Exports step; a step carried over from another project's tabs
|
|
4285
|
+
// would open an empty pane, so it lands on its Checker step. Scoped to Drawing Checker on purpose:
|
|
4286
|
+
// Revit and Tekla keep their existing behaviour for a carried-over step.
|
|
4287
|
+
if (isDrawingCheckProject(p) && !d.steps.some((step) => step.key === initialStep)) initialStep = 'model';
|
|
4288
|
+
if ((d.filter || isModelSourceProject(p)) && ['model', 'exports', 'history'].includes(initialStep)) {
|
|
4005
4289
|
pendingPresenceStep = { projectId: p.id, step: initialStep };
|
|
4006
4290
|
}
|
|
4007
4291
|
// The LIVE app id, deliberately: the frames address the server with it (contract reads, saves),
|
|
@@ -4901,10 +5185,10 @@
|
|
|
4901
5185
|
if (window.flolessLeftPane) {
|
|
4902
5186
|
window.flolessLeftPane.setWorkspaceModelVisible(s === 'model');
|
|
4903
5187
|
}
|
|
4904
|
-
// The visible step IS the surface AI Chat reads
|
|
4905
|
-
//
|
|
4906
|
-
// kept the previous step's
|
|
4907
|
-
// independent QA switching Drawing Filter → Model. `try` because this function is also evaluated
|
|
5188
|
+
// The visible step IS the surface AI Chat reads: what it shares with a message (the Drawing
|
|
5189
|
+
// Filter's selection, #1859) and the composer's note about it depend on it. Nothing else told the
|
|
5190
|
+
// chat pane, so it kept the previous step's view until some unrelated repaint happened to run —
|
|
5191
|
+
// caught by the independent QA switching Drawing Filter → Model. `try` because this function is also evaluated
|
|
4908
5192
|
// on its own by workspace-instructor-handoff.test.ts, where no event constructor exists.
|
|
4909
5193
|
try { window.dispatchEvent(new CustomEvent('floless:workspace-step-changed', { detail: { step: s } })); }
|
|
4910
5194
|
catch { /* a harness without CustomEvent; the real shell always has one */ }
|
package/launch.mjs
CHANGED
|
@@ -167,21 +167,21 @@ function openBrowser(url) {
|
|
|
167
167
|
// hands the URL to the browser via ShellExecute (independent of cmd's tree), so the browser
|
|
168
168
|
// still survives this launcher exiting. unref() keeps it from holding the event loop.
|
|
169
169
|
if (isWin) spawn('cmd', ['/c', 'start', '', url], { windowsHide: true }).unref();
|
|
170
|
-
else spawn(process.platform === 'darwin' ? 'open' : 'xdg-open', [url], { detached: true }).unref();
|
|
170
|
+
else spawn(process.platform === 'darwin' ? 'open' : 'xdg-open', [url], { detached: true, windowsHide: true }).unref();
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
// Kill whatever is LISTENING on PORT (robust: works no matter how the server was
|
|
174
174
|
// started — launcher, `npm run dev`, or a bare `tsx`). Returns true if it killed.
|
|
175
175
|
function stopServer() {
|
|
176
176
|
if (!isWin) {
|
|
177
|
-
try { execSync(`bash -lc "fuser -k ${PORT}/tcp"`, { stdio: 'ignore' }); return true; } catch { return false; }
|
|
177
|
+
try { execSync(`bash -lc "fuser -k ${PORT}/tcp"`, { stdio: 'ignore', windowsHide: true }); return true; } catch { return false; }
|
|
178
178
|
}
|
|
179
179
|
try {
|
|
180
180
|
const ps =
|
|
181
181
|
`$p = Get-NetTCPConnection -LocalPort ${PORT} -State Listen -ErrorAction SilentlyContinue ` +
|
|
182
182
|
`| Select-Object -Expand OwningProcess -Unique; ` +
|
|
183
183
|
`if ($p) { $p | ForEach-Object { taskkill /PID $_ /T /F } } else { exit 9 }`;
|
|
184
|
-
execSync(`powershell -NoProfile -Command "${ps}"`, { stdio: 'ignore' });
|
|
184
|
+
execSync(`powershell -NoProfile -Command "${ps}"`, { stdio: 'ignore', windowsHide: true });
|
|
185
185
|
return true;
|
|
186
186
|
} catch {
|
|
187
187
|
return false; // exit 9 → nothing was listening
|
|
@@ -598,7 +598,7 @@ export async function cmdUninstall(flags = {}) {
|
|
|
598
598
|
if (removeAware) {
|
|
599
599
|
log('removing the AWARE runtime — this will affect ANY other tool that uses @aware-aeco/cli.');
|
|
600
600
|
try {
|
|
601
|
-
execSync('npm uninstall -g @aware-aeco/cli', { stdio: 'inherit', shell: isWin });
|
|
601
|
+
execSync('npm uninstall -g @aware-aeco/cli', { stdio: 'inherit', shell: isWin, windowsHide: true });
|
|
602
602
|
} catch {
|
|
603
603
|
log('warning: "npm uninstall -g @aware-aeco/cli" failed — see the output above.');
|
|
604
604
|
}
|
|
@@ -614,7 +614,7 @@ export async function cmdUninstall(flags = {}) {
|
|
|
614
614
|
lsJson = execSync('npm ls -g @aware-aeco/cli --depth=0 --json', {
|
|
615
615
|
encoding: 'utf8',
|
|
616
616
|
stdio: ['ignore', 'pipe', 'ignore'],
|
|
617
|
-
shell: isWin,
|
|
617
|
+
shell: isWin, windowsHide: true,
|
|
618
618
|
});
|
|
619
619
|
} catch (err) {
|
|
620
620
|
lsJson = String(err?.stdout ?? '');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floless/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.149.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": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"test": "node build/run-tests.mjs",
|
|
25
25
|
"test:steel-inspector": "tsx --test steel-filter-inspector.required.ts",
|
|
26
26
|
"test:drawing-identify": "tsx --test drawing-identify.required.ts",
|
|
27
|
+
"test:drawing-check": "tsx --test drawing-check.required.ts",
|
|
27
28
|
"test:project-import-pdf": "node build/run-required-tests.mjs projects-store.test.ts rfi-import.test.ts",
|
|
28
29
|
"test:platform": "node build/run-tests.mjs --platform-only",
|
|
29
30
|
"build": "node build/bundle.mjs",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"verify:flo-naming": "node build/verify-flo-naming.mjs",
|
|
41
42
|
"verify:forward-merge": "node build/verify-forward-merge.mjs",
|
|
42
43
|
"verify:no-title": "node build/verify-no-title.mjs",
|
|
44
|
+
"verify:windows-hide": "node build/verify-windows-hide.mjs",
|
|
43
45
|
"verify:css-vars": "node build/verify-css-vars.mjs",
|
|
44
46
|
"verify:runtime-pins": "node build/verify-runtime-pins.mjs",
|
|
45
47
|
"verify:rvt-registry-pins": "node build/verify-rvt-registry-pins.mjs",
|