@floless/app 0.149.1 → 0.150.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 (48) hide show
  1. package/dist/floless-server.cjs +101814 -88311
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +45 -2
  3. package/dist/schemas/steel.model.v2.schema.json +9 -0
  4. package/dist/skills/floless-app-approval/SKILL.md +79 -4
  5. package/dist/skills/floless-app-onboarding/SKILL.md +4 -4
  6. package/dist/skills/floless-app-onboarding/references/aware-runtime.md +1 -1
  7. package/dist/skills/floless-app-onboarding/references/floless-app-tour.md +15 -13
  8. package/dist/skills/floless-app-routines/SKILL.md +4 -1
  9. package/dist/skills/floless-app-routines/references/routines-api.md +14 -2
  10. package/dist/skills/floless-app-steel-model/SKILL.md +4 -2
  11. package/dist/skills/floless-app-steel-takeoff/SKILL.md +14 -9
  12. package/dist/skills/floless-app-workflows/SKILL.md +2 -2
  13. package/dist/templates/tekla-parser.flo +13 -3
  14. package/dist/web/agents.js +887 -0
  15. package/dist/web/app.css +458 -23
  16. package/dist/web/app.js +20 -5
  17. package/dist/web/aware.js +1339 -134
  18. package/dist/web/chat.css +50 -1
  19. package/dist/web/chat.js +1582 -52
  20. package/dist/web/commands-drawing-check.js +15 -0
  21. package/dist/web/commands-revit.js +5 -0
  22. package/dist/web/commands-shell.js +761 -47
  23. package/dist/web/commands-tekla-parser.js +8 -1
  24. package/dist/web/connections.js +57 -14
  25. package/dist/web/drawing-check-editor.html +10 -2
  26. package/dist/web/drawing-check-editor.js +569 -40
  27. package/dist/web/drawing-check-overlay.js +45 -2
  28. package/dist/web/index.html +98 -27
  29. package/dist/web/instructor.js +85 -8
  30. package/dist/web/leave-guard.js +1 -0
  31. package/dist/web/left-pane.js +20 -1
  32. package/dist/web/local-discovery.js +12 -2
  33. package/dist/web/model-editor.css +32 -32
  34. package/dist/web/model-panel-bridge.js +11 -3
  35. package/dist/web/model-viewport-lighting.js +4 -2
  36. package/dist/web/model-viewport-revit-adapter.js +3 -0
  37. package/dist/web/model-viewport-toolbar.js +6 -3
  38. package/dist/web/model-viewport.js +11 -1
  39. package/dist/web/revit-editor.css +14 -14
  40. package/dist/web/revit-editor.js +64 -12
  41. package/dist/web/steel-3d-core.js +133 -0
  42. package/dist/web/steel-3d-view.js +10 -0
  43. package/dist/web/steel-editor.html +171 -39
  44. package/dist/web/steel-model-v2-client-validation.js +11 -0
  45. package/dist/web/steel-model-v2-commands.js +80 -5
  46. package/dist/web/tool-updates.js +367 -0
  47. package/dist/web/workspaces.js +679 -59
  48. package/package.json +1 -1
package/dist/web/chat.css CHANGED
@@ -272,6 +272,24 @@
272
272
  scrollbar-color: var(--text-dim) var(--surface-2);
273
273
  }
274
274
  .ai-chat-picker[hidden] { display: none; }
275
+ .ai-chat-scope-controls { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 6px; }
276
+ .ai-chat-scope-controls[hidden] { display: none; }
277
+ .ai-chat-scope-controls > button,
278
+ .ai-chat-scope-action,
279
+ .ai-chat-scope-close { appearance: none; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-2); color: var(--text); font: 10px var(--ui); padding: 4px 7px; cursor: pointer; }
280
+ .ai-chat-scope-controls > button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
281
+ .ai-chat-scope-controls button:hover { background: var(--accent-soft); }
282
+ .ai-chat-scope-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
283
+ .ai-chat-scope-controls button:disabled { cursor: default; opacity: .55; }
284
+ #chat-scope-disclosure { color: var(--text-muted); font: 10px/1.4 var(--ui); }
285
+ .ai-chat-scope-picker { top: auto; bottom: calc(100% + 6px); left: 0; right: 0; padding: 8px; max-height: min(320px, 48vh); }
286
+ .ai-chat-scope-head, .ai-chat-scope-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
287
+ .ai-chat-scope-head strong, .ai-chat-scope-picker > strong { color: var(--text); font: 600 11px var(--ui); }
288
+ .ai-chat-scope-row { padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 4px; color: var(--text); font: 11px var(--ui); }
289
+ .ai-chat-scope-row > span { min-width: 0; overflow-wrap: anywhere; }
290
+ .ai-chat-scope-row > small { color: var(--text-muted); }
291
+ .ai-chat-scope-note, .ai-chat-change-scope-help { color: var(--text-muted); font: 10px/1.45 var(--ui); margin: 6px 0; display: block; }
292
+ .ai-chat-scope-action { margin: 3px 3px 3px 0; flex-shrink: 0; }
275
293
  .ai-chat-picker::-webkit-scrollbar,
276
294
  .ai-chat-history::-webkit-scrollbar,
277
295
  .ai-chat-feed::-webkit-scrollbar,
@@ -446,7 +464,7 @@
446
464
  }
447
465
  .ai-chat-history-action-icon { width: 15px; height: 15px; display: block; pointer-events: none; }
448
466
  .ai-chat-history-action:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-3); }
449
- .ai-chat-history-action.danger:hover { border-color: var(--err); color: var(--err); }
467
+ .ai-chat-history-action.danger:hover { border-color: var(--err); color: var(--err-text); } /* icon ink: --err is 2.47:1 on dark --surface-3, below the 3:1 non-text bar (#1870) */
450
468
  .ai-chat-history-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
451
469
  .ai-chat-history-title-input {
452
470
  min-width: 0;
@@ -792,6 +810,8 @@
792
810
  .ai-chat-height-row[data-status="superseded"] { opacity: .6; }
793
811
  .ai-chat-height-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; }
794
812
  .ai-chat-height-meta { color: var(--text-muted); font: 9px/1.3 var(--mono); overflow-wrap: anywhere; }
813
+ /* #1903: a member already in the model — what it held when asked, and that the answer is only proposed. */
814
+ .ai-chat-height-inmodel { color: var(--text-muted); font-size: 10px; line-height: 14px; overflow-wrap: anywhere; }
795
815
  .ai-chat-height-proposal, .ai-chat-height-field, .ai-chat-height-answered { display: flex; align-items: center; gap: 6px; min-width: 0; }
796
816
  .ai-chat-height-proposal span { flex: 1; min-width: 0; color: var(--text); font: 11px/15px var(--mono); overflow-wrap: anywhere; }
797
817
  .ai-chat-height-answered { color: var(--text); font-size: 11px; line-height: 15px; }
@@ -1007,6 +1027,25 @@
1007
1027
  .ai-chat-recovery[hidden] { display: none; }
1008
1028
  .ai-chat-recovery span { flex: 1; }
1009
1029
  .ai-chat-recovery button { flex: none; padding: 5px 8px; font-size: 10px; }
1030
+ /* #1890 PR 3b: the move notice shares the recovery strip. Neutral when it only says where a conversation went (an
1031
+ accent stripe, like a request card); warn-bordered when the conversation is still here and the person chooses. */
1032
+ .ai-chat-move-notice { flex-wrap: wrap; overflow-wrap: anywhere; }
1033
+ .ai-chat-move-notice.neutral { border-color: var(--border-strong); border-left: 3px solid var(--accent); }
1034
+ .ai-chat-move-notice span { min-width: 12em; }
1035
+ .ai-chat-move-notice button.primary { border-color: var(--accent); color: var(--text); }
1036
+ .ai-chat-move-notice button[hidden] { display: none; }
1037
+ .ai-chat-recovery button.ai-chat-move-dismiss { width: 24px; padding: 3px 0; font-size: 13px; line-height: 1; color: var(--text-muted); }
1038
+ .ai-chat-shell:has(> .ai-chat-recovery#chat-recovery:not([hidden])) > .ai-chat-move-notice { display: none; }
1039
+ .ai-chat-history-row.moved .ai-chat-history-meta::after { content: ' →'; }
1040
+ .ai-chat-history-row.moved-gone { padding-right: 84px; }
1041
+ .ai-chat-history-row.moved-gone .ai-chat-history-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1042
+ .ai-chat-history-row.moved-gone .ai-chat-history-meta { font-size: 10px; white-space: normal; }
1043
+ .ai-chat-history-moved-remove {
1044
+ appearance: none; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface-2);
1045
+ color: var(--text); font: inherit; font-size: 10px; padding: 4px 8px; cursor: pointer;
1046
+ }
1047
+ .ai-chat-history-moved-remove:hover { background: var(--surface-3); color: var(--err-text, var(--text)); }
1048
+ .ai-chat-history-moved-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1010
1049
 
1011
1050
  .ai-chat-attachments {
1012
1051
  grid-row: 5;
@@ -1076,6 +1115,16 @@
1076
1115
  .ai-chat-connectors .ai-chat-units-change:disabled { opacity: .55; cursor: default; }
1077
1116
  .ai-chat-event.connector { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
1078
1117
  .ai-chat-approval-warning { color: var(--text); font-weight: 600; }
1118
+ /* #1890 PR 2b: a workspace conversation's file change — where it lands, grouped by project or workflow. */
1119
+ .ai-chat-change-owners { display: grid; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
1120
+ .ai-chat-change-owners li { display: grid; gap: 2px; min-width: 0; }
1121
+ .ai-chat-change-owner { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--text); font-size: 11px; }
1122
+ .ai-chat-change-owner b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
1123
+ .ai-chat-change-kind { color: var(--text-dim); font: 8px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
1124
+ .ai-chat-change-paths { display: grid; gap: 1px; min-width: 0; padding-left: 8px; border-left: 1px solid var(--border); }
1125
+ .ai-chat-change-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font: 9.5px/1.45 var(--mono); }
1126
+ .ai-chat-change-more { color: var(--text-dim); font: 9.5px/1.45 var(--ui); }
1127
+ .ai-chat-approval p.ai-chat-change-reason { color: var(--text); }
1079
1128
  .ai-chat-units-question { color: var(--text); }
1080
1129
  .ai-chat-units-options { display: inline-flex; flex-wrap: wrap; gap: 4px; }
1081
1130
  .ai-chat-units-option, .ai-chat-units-change {