@floless/app 0.169.0 → 0.171.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.
Files changed (87) hide show
  1. package/dist/floless-server.cjs +65531 -43728
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +12 -2
  3. package/dist/schemas/steel.model.v2.schema.json +196 -4
  4. package/dist/skills/floless-app-bridge/SKILL.md +3 -3
  5. package/dist/skills/floless-app-knowledge/SKILL.md +46 -15
  6. package/dist/skills/floless-app-new-workflow/SKILL.md +8 -1
  7. package/dist/skills/floless-app-onboarding/SKILL.md +5 -4
  8. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +0 -3
  9. package/dist/skills/floless-app-queue/SKILL.md +2 -3
  10. package/dist/skills/floless-app-report-issue/SKILL.md +2 -2
  11. package/dist/skills/floless-app-routines/SKILL.md +2 -2
  12. package/dist/skills/floless-app-routines/references/routines-api.md +20 -8
  13. package/dist/skills/floless-app-steel-model/SKILL.md +42 -39
  14. package/dist/skills/floless-app-steel-model/references/custom-connections.md +47 -0
  15. package/dist/skills/floless-app-steel-model/references/custom-sections.md +32 -0
  16. package/dist/skills/floless-app-steel-takeoff/SKILL.md +31 -1
  17. package/dist/skills/floless-app-ui/SKILL.md +71 -126
  18. package/dist/skills/floless-app-workflows/SKILL.md +22 -3
  19. package/dist/skills/floless-app-workflows/references/agent-steps.md +40 -6
  20. package/dist/skills/floless-app-workflows/references/exec-contract.md +27 -0
  21. package/dist/skills/floless-app-workflows/references/script-runner.md +105 -0
  22. package/dist/web/add-ons.js +407 -0
  23. package/dist/web/agent-steps.js +89 -18
  24. package/dist/web/agents.js +32 -22
  25. package/dist/web/analytics.js +1 -1
  26. package/dist/web/app.css +331 -190
  27. package/dist/web/app.js +33 -13
  28. package/dist/web/aware.js +926 -218
  29. package/dist/web/chat.css +6 -1
  30. package/dist/web/chat.js +316 -112
  31. package/dist/web/checkpoint-standard.js +5 -3
  32. package/dist/web/commands-drawing-check.js +1 -0
  33. package/dist/web/commands-filter.js +23 -0
  34. package/dist/web/commands-shell.js +479 -78
  35. package/dist/web/commands-steel.js +69 -2
  36. package/dist/web/commands-tekla-parser.js +23 -0
  37. package/dist/web/connections.js +14 -3
  38. package/dist/web/drawing-check-editor.js +352 -88
  39. package/dist/web/failure-copy.js +33 -2
  40. package/dist/web/filter-ai-proposal.js +11 -8
  41. package/dist/web/flo-3d.js +1 -1
  42. package/dist/web/guide.js +36 -29
  43. package/dist/web/index.html +98 -57
  44. package/dist/web/instructor.js +101 -17
  45. package/dist/web/kb-categories.js +64 -7
  46. package/dist/web/left-pane.js +4 -1
  47. package/dist/web/local-discovery.js +8 -7
  48. package/dist/web/missed-routines.js +239 -0
  49. package/dist/web/model-change-findings.js +430 -0
  50. package/dist/web/model-change-review.js +414 -0
  51. package/dist/web/model-editor-steel-adapter.js +2 -2
  52. package/dist/web/model-measure.js +6 -0
  53. package/dist/web/model-spatial-panel.js +19 -4
  54. package/dist/web/model-spatial-tools.js +3 -3
  55. package/dist/web/model-viewport-revit-adapter.js +3 -3
  56. package/dist/web/origin-rule.js +155 -0
  57. package/dist/web/project-access.js +1 -1
  58. package/dist/web/project-history.js +7 -1
  59. package/dist/web/project-modules.js +2 -2
  60. package/dist/web/project-rfis.js +6 -1
  61. package/dist/web/project-workflows.js +2 -2
  62. package/dist/web/revit-editor.css +85 -0
  63. package/dist/web/revit-editor.js +58 -9
  64. package/dist/web/run-history.js +12 -1
  65. package/dist/web/sha256-sync.js +62 -0
  66. package/dist/web/steel-3d-core.js +46 -9
  67. package/dist/web/steel-3d-flo.js +153 -7
  68. package/dist/web/steel-3d-view.js +33 -5
  69. package/dist/web/steel-ai-marks.js +3 -1
  70. package/dist/web/steel-custom-connection.js +161 -0
  71. package/dist/web/steel-custom-sections.js +1796 -0
  72. package/dist/web/steel-editor.html +732 -161
  73. package/dist/web/steel-environments.js +297 -0
  74. package/dist/web/steel-filter-usage.js +299 -0
  75. package/dist/web/steel-filter.html +104 -6
  76. package/dist/web/steel-model-v2-client-validation.js +11 -1
  77. package/dist/web/steel-model-v2-commands.js +116 -13
  78. package/dist/web/steel-model-v2-projection.js +1 -1
  79. package/dist/web/steel-read-confidence.js +1 -56
  80. package/dist/web/step-rename.js +3 -2
  81. package/dist/web/tekla-editor.html +1 -0
  82. package/dist/web/terminal-requests.js +1 -1
  83. package/dist/web/tool-updates.js +7 -6
  84. package/dist/web/workspaces.js +1968 -138
  85. package/launch.mjs +87 -9
  86. package/package.json +4 -1
  87. package/dist/web/panels.js +0 -831
package/dist/web/app.js CHANGED
@@ -1283,10 +1283,10 @@ function escapeHtml(s) {
1283
1283
  function escapeAttr(s) { return escapeHtml(s).replace(/"/g, '"'); }
1284
1284
 
1285
1285
  /**
1286
- * How long ago a PAST instant was, in the spaced long form the project grid and the history
1287
- * list both show: '' · 'just now' · '7 min ago' · '3 h ago' · '2 d ago'.
1286
+ * How long ago a PAST instant was, in the spaced long form the project grid
1287
+ * shows: '' · 'just now' · '7 min ago' · '3 h ago' · '2 d ago'.
1288
1288
  *
1289
- * DEFINED HERE (app.js loads first) and reused by panels.js and workspaces.js, which each
1289
+ * DEFINED HERE (app.js loads first) and reused by workspaces.js, which (with the removed panels.js) each
1290
1290
  * carried a byte-identical copy — the same drift the `escapeHtml`/`onBackdropDismiss` pair
1291
1291
  * above exists to avoid. A blank string for an unparseable or future instant is part of the
1292
1292
  * contract: every caller interpolates the result straight into a meta line, so a caller that
@@ -1432,6 +1432,7 @@ function handleMenuAction(action) {
1432
1432
  case 'workspace-folder': openWorkspaceRoot(); break;
1433
1433
  case 'agents': openLibrary(); break;
1434
1434
  case 'routines': openRoutines(); break;
1435
+ case 'add-ons': window.flolessAddOns?.open(); break;
1435
1436
  case 'tool-update-policy': if (typeof window.openToolUpdatePolicy === 'function') window.openToolUpdatePolicy(); break;
1436
1437
  case 'report-issue': openReportIssue(); break;
1437
1438
  // #2046: the Guide — opens its conversation, or asks first (web/guide.js).
@@ -1483,15 +1484,24 @@ const $findOverlay = document.getElementById('find-overlay');
1483
1484
  const $findInput = document.getElementById('find-input');
1484
1485
  const $findCount = document.getElementById('find-count');
1485
1486
 
1487
+ // Returns whether the overlay opened, so Ctrl/Cmd+F only takes the key from the browser's own
1488
+ // Find when there was something on screen for FloLess to search (#3142).
1486
1489
  function openFind() {
1487
1490
  const ws = window.flolessWorkspaces && window.flolessWorkspaces.findActive();
1491
+ const app = document.getElementById('app');
1488
1492
  // In Workspaces mode there's nothing to find off the Model step — don't pop a dead overlay.
1489
- if (document.getElementById('app').classList.contains('mode-workspaces') && !ws) return;
1493
+ if (app.classList.contains('mode-workspaces') && !ws) return false;
1494
+ // Agents hides the overlay in CSS: opening it there would focus an
1495
+ // invisible input and swallow the browser's Find for nothing.
1496
+ if (app.classList.contains('mode-agents')) return false;
1497
+ // An open dialog is what the person is looking at; the overlay would open behind it.
1498
+ if (document.querySelector('.modal-backdrop.show')) return false;
1490
1499
  $findInput.placeholder = ws ? 'Find in model…' : 'Find tool…';
1491
1500
  $findOverlay.classList.add('show');
1492
1501
  $findInput.value = '';
1493
1502
  $findCount.textContent = '';
1494
1503
  setTimeout(() => $findInput.focus(), 50);
1504
+ return true;
1495
1505
  }
1496
1506
  function closeFind() {
1497
1507
  $findOverlay.classList.remove('show');
@@ -1945,8 +1955,14 @@ const $canvasEl = document.querySelector('.canvas');
1945
1955
  function workflowCanvasGesture(target) {
1946
1956
  if ($app.classList.contains('mode-workspaces') || $app.classList.contains('mode-agents')
1947
1957
  || document.body.classList.contains('wf-landing-open') || document.body.classList.contains('wf-draft-open')
1948
- || $canvasEl.classList.contains('view-dashboard') || !$topology.getClientRects().length) return false;
1949
- return !target?.closest?.('#ws-landing, #ws-project, #wf-landing, #wf-draft, #agents-surface, .dashboard');
1958
+ || !$topology.getClientRects().length) return false;
1959
+ return !target?.closest?.('#ws-landing, #ws-project, #wf-landing, #wf-draft, #agents-surface');
1960
+ }
1961
+
1962
+ function homeFitsCanvas(target) {
1963
+ if (document.querySelector('.modal-backdrop.show') || !workflowCanvasGesture(target)) return false;
1964
+ if (target?.isContentEditable) return false;
1965
+ return !target || target === document.body || target === document.documentElement || !!target.closest?.('.canvas');
1950
1966
  }
1951
1967
 
1952
1968
  // Ctrl/Cmd + scroll wheel = zoom on canvas (skips OS-level browser zoom)
@@ -1983,10 +1999,8 @@ $canvasEl.addEventListener('mousedown', (e) => {
1983
1999
  // middle-mouse handler above (#115). Bail on interactive chrome so clicks/drags there still
1984
2000
  // work: node cards (their own select + HTML5 drag), the zoom toolbar, the Templates
1985
2001
  // fav-bar, and the find input. Non-interactive chrome (panel label, hint, notes) still pans.
1986
- // `.dashboard` (the custom-panels view that replaces the topology) is excluded too — it has
1987
- // its own scroll/click surface and the topology it would pan is hidden in that view.
1988
2002
  $canvasEl.addEventListener('mousedown', (e) => {
1989
- if (e.button !== 0 || !workflowCanvasGesture(e.target) || e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, .dashboard, input, textarea, select, button, [contenteditable]')) return;
2003
+ if (e.button !== 0 || !workflowCanvasGesture(e.target) || e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, input, textarea, select, button, [contenteditable]')) return;
1990
2004
  e.preventDefault();
1991
2005
  startPan(e);
1992
2006
  });
@@ -2016,8 +2030,8 @@ $canvasEl.addEventListener('touchstart', (e) => {
2016
2030
  tPinch = true; tPan = false;
2017
2031
  pinchDist0 = pinchSpan(e.touches) || 1; pinchZoom0 = zoom;
2018
2032
  } else if (e.touches.length === 1) {
2019
- // Let taps on interactive chrome through (node select, zoom toolbar, fav-bar, find, dashboard).
2020
- if (e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, .dashboard, input, textarea, select, button, [contenteditable]')) return;
2033
+ // Let taps on interactive chrome through (node select, zoom toolbar, fav-bar, find).
2034
+ if (e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, input, textarea, select, button, [contenteditable]')) return;
2021
2035
  e.preventDefault();
2022
2036
  tPan = true; tPinch = false;
2023
2037
  tFromX = e.touches[0].clientX; tFromY = e.touches[0].clientY;
@@ -2410,7 +2424,7 @@ document.addEventListener('keydown', (e) => {
2410
2424
  if (cmd && !e.shiftKey && e.key.toLowerCase() === 'o') { e.preventDefault(); doOpen(); return; }
2411
2425
  if (cmd && e.shiftKey && e.key.toLowerCase() === 's') { e.preventDefault(); doSaveAs(); return; }
2412
2426
  if (cmd && !e.shiftKey && e.key.toLowerCase() === 's') { e.preventDefault(); doSave(); return; }
2413
- if (cmd && e.key.toLowerCase() === 'f') { e.preventDefault(); openFind(); return; }
2427
+ if (cmd && e.key.toLowerCase() === 'f') { if (openFind()) e.preventDefault(); return; }
2414
2428
  if (cmd && e.key.toLowerCase() === 'i') { e.preventDefault(); openIntegrations(); return; }
2415
2429
  // Agents and Routines — the panels reachable from the ≡ menu since #149 moved their
2416
2430
  // toolbar buttons there. Use the same Ctrl-or-Cmd modifier (`cmd`) as Ctrl+O/S/F/I
@@ -2421,7 +2435,13 @@ document.addEventListener('keydown', (e) => {
2421
2435
  if (cmd && (e.key === '=' || e.key === '+')) { e.preventDefault(); zoomBy(+1); return; }
2422
2436
  if (cmd && e.key === '-') { e.preventDefault(); zoomBy(-1); return; }
2423
2437
  if (cmd && e.key === '0') { e.preventDefault(); resetView(); autoFit = false; return; }
2424
- if (e.key === 'Home') { e.preventDefault(); fitToScreen(); autoFit = true; return; }
2438
+ // Home re-fits the workflow graph only when that graph is what is on screen and the key came
2439
+ // from the canvas itself (or nothing focused). Anywhere else — Workspaces, Agents, a list, an
2440
+ // open dialog — Home stays the browser's: scroll to the top, first row, start of line (#3142).
2441
+ if (e.key === 'Home') {
2442
+ if (!homeFitsCanvas(e.target)) return;
2443
+ e.preventDefault(); fitToScreen(); autoFit = true; return;
2444
+ }
2425
2445
  if (e.key === 'Escape') {
2426
2446
  if ($findOverlay.classList.contains('show')) closeFind();
2427
2447
  if ($integrationsModal.classList.contains('show')) $integrationsModal.classList.remove('show');