@floless/app 0.149.0 → 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 +102295 -88314
  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 +68 -4
  19. package/dist/web/chat.js +1770 -55
  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 +785 -50
  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 +102 -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
@@ -212,7 +212,8 @@
212
212
  .ai-chat-provider-switch:disabled,
213
213
  .ai-chat-provider-switch[aria-disabled="true"] { cursor: default; color: var(--text-dim); border-color: var(--border); background: var(--surface); }
214
214
  .ai-chat-provider-switch[hidden] { display: none; }
215
- .ai-chat-integration-setting {
215
+ .ai-chat-integration-setting,
216
+ .ai-chat-own-connectors {
216
217
  grid-column: 1 / -1;
217
218
  display: flex;
218
219
  align-items: center;
@@ -221,8 +222,10 @@
221
222
  border-top: 1px solid var(--border);
222
223
  padding-inline: 7px;
223
224
  }
224
- .ai-chat-integration-setting > span,
225
- .ai-chat-integration-setting > strong { margin: 0; }
225
+ .ai-chat-integration-setting > span, .ai-chat-own-connectors > span,
226
+ .ai-chat-integration-setting > strong, .ai-chat-own-connectors > strong { margin: 0; }
227
+ /* #1907: the switch reads its state in the value slot, with the accent only while on. */
228
+ .ai-chat-own-connectors[aria-checked="true"] > strong { color: var(--accent); }
226
229
  .ai-chat-desktop-status {
227
230
  grid-column: 1 / -1;
228
231
  min-width: 0;
@@ -269,6 +272,24 @@
269
272
  scrollbar-color: var(--text-dim) var(--surface-2);
270
273
  }
271
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; }
272
293
  .ai-chat-picker::-webkit-scrollbar,
273
294
  .ai-chat-history::-webkit-scrollbar,
274
295
  .ai-chat-feed::-webkit-scrollbar,
@@ -443,7 +464,7 @@
443
464
  }
444
465
  .ai-chat-history-action-icon { width: 15px; height: 15px; display: block; pointer-events: none; }
445
466
  .ai-chat-history-action:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-3); }
446
- .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) */
447
468
  .ai-chat-history-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
448
469
  .ai-chat-history-title-input {
449
470
  min-width: 0;
@@ -789,6 +810,8 @@
789
810
  .ai-chat-height-row[data-status="superseded"] { opacity: .6; }
790
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; }
791
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; }
792
815
  .ai-chat-height-proposal, .ai-chat-height-field, .ai-chat-height-answered { display: flex; align-items: center; gap: 6px; min-width: 0; }
793
816
  .ai-chat-height-proposal span { flex: 1; min-width: 0; color: var(--text); font: 11px/15px var(--mono); overflow-wrap: anywhere; }
794
817
  .ai-chat-height-answered { color: var(--text); font-size: 11px; line-height: 15px; }
@@ -1004,6 +1027,25 @@
1004
1027
  .ai-chat-recovery[hidden] { display: none; }
1005
1028
  .ai-chat-recovery span { flex: 1; }
1006
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; }
1007
1049
 
1008
1050
  .ai-chat-attachments {
1009
1051
  grid-row: 5;
@@ -1061,6 +1103,28 @@
1061
1103
  font: 10.5px/1.45 var(--ui);
1062
1104
  }
1063
1105
  .ai-chat-units[hidden] { display: none; }
1106
+ /* #1907: the person's own connectors allowed for this conversation, each with its own Revoke. */
1107
+ .ai-chat-connectors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 6px; color: var(--text-muted); font: 10.5px/1.45 var(--ui); }
1108
+ .ai-chat-connectors[hidden] { display: none; }
1109
+ .ai-chat-connector-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 2px 1px 8px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 10px; }
1110
+ .ai-chat-connector-revoke { appearance: none; min-height: 24px; padding: 1px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-decoration: underline; }
1111
+ .ai-chat-connector-revoke:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1112
+ .ai-chat-connector-revoke:disabled { opacity: .55; cursor: default; }
1113
+ /* #1907: "Your Claude connectors are on · Turn off" — quiet, with the units line's Change button. */
1114
+ .ai-chat-connectors-status { color: var(--text); }
1115
+ .ai-chat-connectors .ai-chat-units-change:disabled { opacity: .55; cursor: default; }
1116
+ .ai-chat-event.connector { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
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); }
1064
1128
  .ai-chat-units-question { color: var(--text); }
1065
1129
  .ai-chat-units-options { display: inline-flex; flex-wrap: wrap; gap: 4px; }
1066
1130
  .ai-chat-units-option, .ai-chat-units-change {