@floless/app 0.148.1 → 0.149.1
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 +29115 -18888
- 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 +189 -12
- package/dist/web/chat.js +2203 -772
- package/dist/web/commands-drawing-check.js +53 -0
- package/dist/web/commands-shell.js +299 -6
- 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 +29 -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/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;
|
|
@@ -652,7 +655,20 @@
|
|
|
652
655
|
.ai-chat-message-body p:last-child { margin-bottom: 0; }
|
|
653
656
|
.ai-chat-message-body h1, .ai-chat-message-body h2, .ai-chat-message-body h3 { margin: 0 0 7px; color: var(--text); font-size: 13px; line-height: 1.35; }
|
|
654
657
|
.ai-chat-message-body ul, .ai-chat-message-body ol { margin: 5px 0 8px; padding-left: 20px; }
|
|
658
|
+
.ai-chat-message-body ol { padding-left: 22px; }
|
|
655
659
|
.ai-chat-message-body li + li { margin-top: 3px; }
|
|
660
|
+
/* #1854: a quote, a continuation paragraph or a sub-list written under an item now lives inside it. */
|
|
661
|
+
.ai-chat-message-body li > blockquote, .ai-chat-message-body li > p, .ai-chat-message-body li > ul, .ai-chat-message-body li > ol { margin-top: 4px; margin-bottom: 4px; }
|
|
662
|
+
.ai-chat-message-body li > :last-child { margin-bottom: 0; }
|
|
663
|
+
/* A quoted drawing note is evidence to read, so it keeps --text; the fill marks it as quoted rather
|
|
664
|
+
than repeating the message's own left stripe. */
|
|
665
|
+
.ai-chat-message-body blockquote { margin: 5px 0 8px; padding: 5px 9px; border-left: 2px solid var(--border-strong); border-radius: 0 4px 4px 0; background: var(--surface-3); color: var(--text); }
|
|
666
|
+
.ai-chat-message-body blockquote > :first-child { margin-top: 0; }
|
|
667
|
+
.ai-chat-message-body blockquote > :last-child { margin-bottom: 0; }
|
|
668
|
+
.ai-chat-message-body blockquote p { margin-bottom: 4px; }
|
|
669
|
+
/* Code shares the quote's fill, so inside a quote it steps back to the body surface to stay boxed. */
|
|
670
|
+
.ai-chat-message-body blockquote code, .ai-chat-message-body blockquote pre { background: var(--surface-2); }
|
|
671
|
+
.ai-chat-message-body blockquote pre code { background: transparent; }
|
|
656
672
|
.ai-chat-message-body code { padding: 1px 4px; border-radius: 3px; background: var(--surface-3); color: var(--text); font: .9em var(--mono); }
|
|
657
673
|
.ai-chat-message-body pre { margin: 7px 0; padding: 8px; overflow-x: auto; border-radius: 4px; background: var(--surface-3); }
|
|
658
674
|
.ai-chat-message-body pre code { padding: 0; background: transparent; white-space: pre; }
|
|
@@ -732,6 +748,7 @@
|
|
|
732
748
|
}
|
|
733
749
|
.ai-chat-filter-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 15px; }
|
|
734
750
|
.ai-chat-filter-card-head strong { font-weight: 600; }
|
|
751
|
+
.ai-chat-filter-why { margin: 6px 0 0; color: var(--text); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
735
752
|
.ai-chat-filter-state { color: var(--text-dim); font: 600 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
736
753
|
.ai-chat-filter-changes { display: flex; flex-direction: column; gap: 4px; max-height: 180px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none;
|
|
737
754
|
scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface-2); }
|
|
@@ -756,12 +773,114 @@
|
|
|
756
773
|
.ai-chat-filter-actions .ai-chat-filter-apply[aria-disabled="true"] { border-color: var(--border-strong); background: var(--surface); color: var(--text-dim); }
|
|
757
774
|
.ai-chat-filter-actions button[aria-disabled="true"]:hover { background: var(--surface); color: var(--text-dim); filter: none; }
|
|
758
775
|
.ai-chat-filter-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
759
|
-
/*
|
|
760
|
-
live status, so a longer note wraps under the message instead of being cut off at the left edge. */
|
|
761
|
-
.ai-chat-live-status.ai-chat-filter-pending { align-self: flex-end; gap: 6px; height: auto; max-width: min(100%, 360px); margin: 2px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
|
|
762
|
-
.ai-chat-filter-pending .ai-chat-live-label { white-space: normal; text-align: right; overflow-wrap: anywhere; }
|
|
776
|
+
/* A note under the person's own (right-aligned) message, e.g. that the filter's selection did not go with it. */
|
|
763
777
|
.ai-chat-filter-notice { align-self: flex-end; max-width: min(100%, 360px); margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
|
|
764
778
|
|
|
779
|
+
/* #1882 — a height question the drawing read asked the person. The filter card's shell; the row controls
|
|
780
|
+
copy the filter card's buttons so every action in AI Chat reads the same in both themes. */
|
|
781
|
+
.ai-chat-height-card[data-state="answered"] { border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface-2)); }
|
|
782
|
+
.ai-chat-height-card[data-state="closed"] { border-left-color: var(--border-strong); }
|
|
783
|
+
[data-theme="light"] .ai-chat-height-card[data-state="answered"] { --text-muted: #475569; }
|
|
784
|
+
.ai-chat-height-count { margin: 6px 0 0; color: var(--text-dim); font: 600 9px/1.3 var(--mono); letter-spacing: .04em; }
|
|
785
|
+
.ai-chat-height-rows { display: flex; flex-direction: column; gap: 6px; max-height: min(320px, 50vh); margin: 6px 0 0; padding: 0 2px 0 0; overflow-y: auto; list-style: none;
|
|
786
|
+
scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface-2); }
|
|
787
|
+
.ai-chat-height-rows::-webkit-scrollbar { width: 8px; }
|
|
788
|
+
.ai-chat-height-rows::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--text-dim); }
|
|
789
|
+
.ai-chat-height-rows::-webkit-scrollbar-track { background: var(--surface-2); }
|
|
790
|
+
.ai-chat-height-rows:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
791
|
+
.ai-chat-height-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
|
|
792
|
+
.ai-chat-height-row[data-status="superseded"] { opacity: .6; }
|
|
793
|
+
.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
|
+
.ai-chat-height-meta { color: var(--text-muted); font: 9px/1.3 var(--mono); overflow-wrap: anywhere; }
|
|
795
|
+
.ai-chat-height-proposal, .ai-chat-height-field, .ai-chat-height-answered { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
796
|
+
.ai-chat-height-proposal span { flex: 1; min-width: 0; color: var(--text); font: 11px/15px var(--mono); overflow-wrap: anywhere; }
|
|
797
|
+
.ai-chat-height-answered { color: var(--text); font-size: 11px; line-height: 15px; }
|
|
798
|
+
.ai-chat-height-answered > span:not(.ai-chat-height-glyph) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
799
|
+
.ai-chat-height-glyph { flex: none; width: 1em; color: var(--ok); font: 600 11px/15px var(--mono); text-align: center; }
|
|
800
|
+
.ai-chat-height-input { appearance: none; box-sizing: border-box; flex: 1; min-width: 0; height: 26px; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 4px;
|
|
801
|
+
background: var(--surface-2); color: var(--text); font: 11px var(--mono); caret-color: var(--accent); }
|
|
802
|
+
.ai-chat-height-input::placeholder { color: var(--text-dim); }
|
|
803
|
+
.ai-chat-height-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
804
|
+
.ai-chat-height-row button { flex: none; min-height: 26px; padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
|
|
805
|
+
.ai-chat-height-row button:hover { color: var(--text); background: var(--surface-3); }
|
|
806
|
+
.ai-chat-height-row button.ai-chat-filter-apply { border-color: var(--accent); background: var(--accent); color: #fff; }
|
|
807
|
+
.ai-chat-height-row button.ai-chat-filter-apply:hover { background: var(--accent); filter: brightness(1.08); }
|
|
808
|
+
.ai-chat-height-row button.ai-chat-height-change { min-height: 22px; padding: 2px 7px; font-weight: 500; }
|
|
809
|
+
.ai-chat-height-row button[aria-disabled="true"], .ai-chat-height-row button[aria-disabled="true"]:hover { cursor: default; opacity: .45; background: var(--surface); color: var(--text-dim); border-color: var(--border-strong); filter: none; }
|
|
810
|
+
.ai-chat-height-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
811
|
+
.ai-chat-height-error { margin: 0; color: var(--err-text); font: 10.5px/1.45 var(--ui); overflow-wrap: anywhere; }
|
|
812
|
+
.ai-chat-height-error:empty { display: none; }
|
|
813
|
+
.ai-chat-height-card > .ai-chat-height-error { margin-top: 6px; }
|
|
814
|
+
.ai-chat-height-done { margin: 8px 0 0; color: var(--text-muted); font-size: 10.5px; line-height: 14px; }
|
|
815
|
+
|
|
816
|
+
/* #1906 — height groups, the bulk bar and themed checkboxes (no native box in either theme). */
|
|
817
|
+
.ai-chat-height-group { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
|
|
818
|
+
.ai-chat-height-group-name { flex: 1; min-width: 0; overflow: hidden; color: var(--text); font: 600 10.5px/14px var(--ui); text-overflow: ellipsis; white-space: nowrap; }
|
|
819
|
+
.ai-chat-height-labelline { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
|
|
820
|
+
.ai-chat-height-labelline .ai-chat-height-label { flex: 1; min-width: 0; }
|
|
821
|
+
.ai-chat-check { appearance: none; flex: none; box-sizing: border-box; width: 14px; height: 14px; margin: 1px 0 0; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface-2); cursor: pointer; display: grid; place-content: center; }
|
|
822
|
+
.ai-chat-check::before { content: ""; width: 8px; height: 8px; transform: scale(0); background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
|
|
823
|
+
.ai-chat-check:checked { border-color: var(--accent); background: var(--accent); }
|
|
824
|
+
.ai-chat-check:checked::before { transform: scale(1); }
|
|
825
|
+
.ai-chat-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
826
|
+
.ai-chat-check:disabled { cursor: default; opacity: .45; }
|
|
827
|
+
.ai-chat-height-bulk { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 7px; border: 1px solid var(--accent); border-radius: 5px; background: var(--surface); }
|
|
828
|
+
.ai-chat-height-bulk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--text); font: 600 10px/14px var(--mono); }
|
|
829
|
+
.ai-chat-height-bulk button, .ai-chat-answer-source button { flex: none; min-height: 24px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
|
|
830
|
+
.ai-chat-height-bulk button:hover, .ai-chat-answer-source button:hover { color: var(--text); background: var(--surface-3); }
|
|
831
|
+
.ai-chat-height-bulk button.ai-chat-filter-apply { border-color: var(--accent); background: var(--accent); color: #fff; }
|
|
832
|
+
.ai-chat-height-bulk button.ai-chat-filter-apply:hover { background: var(--accent); filter: brightness(1.08); }
|
|
833
|
+
.ai-chat-height-bulk button[aria-disabled="true"], .ai-chat-answer-source button[aria-disabled="true"] { cursor: default; opacity: .45; background: var(--surface); color: var(--text-dim); filter: none; }
|
|
834
|
+
.ai-chat-height-bulk button:focus-visible, .ai-chat-answer-source button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
835
|
+
|
|
836
|
+
/* #1906 — where an answer came from: a note and the person's pictures. */
|
|
837
|
+
.ai-chat-answer-source { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
838
|
+
.ai-chat-answer-source button.ai-chat-answer-add { align-self: flex-start; min-height: 20px; padding: 1px 4px; border-color: transparent; background: transparent; color: var(--text-muted); font-weight: 500; }
|
|
839
|
+
.ai-chat-answer-source button.ai-chat-answer-add:hover { color: var(--text); background: transparent; text-decoration: underline; }
|
|
840
|
+
.ai-chat-answer-box { display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 1px dashed var(--border-strong); border-radius: 4px; }
|
|
841
|
+
.ai-chat-answer-box.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
|
|
842
|
+
.ai-chat-answer-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
843
|
+
.ai-chat-answer-source button.ai-chat-answer-clip { width: 28px; height: 26px; padding: 0; display: grid; place-items: center; }
|
|
844
|
+
.ai-chat-answer-clip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
845
|
+
.ai-chat-answer-files { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
|
|
846
|
+
.ai-chat-answer-lead { color: var(--text-muted); font: 10px/14px var(--ui); overflow-wrap: anywhere; }
|
|
847
|
+
.ai-chat-answer-files .ai-chat-attachment button { width: 18px; height: 18px; min-height: 18px; padding: 0; }
|
|
848
|
+
.ai-chat-answer-picture button.ai-chat-answer-open { width: auto; min-height: 18px; height: auto; max-width: 140px; padding: 0 2px; overflow: hidden; border: 0; background: transparent; color: var(--text); font: 9px/1.25 var(--mono); text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; }
|
|
849
|
+
.ai-chat-answer-picture button.ai-chat-answer-open:hover { background: transparent; color: var(--accent); }
|
|
850
|
+
.ai-chat-answer-missing { color: var(--text-dim); font: 9px/1.25 var(--ui); }
|
|
851
|
+
.ai-chat-answered-source { padding-left: calc(1em + 6px); }
|
|
852
|
+
.ai-chat-answer-source button.ai-chat-answer-picture-only { align-self: flex-start; }
|
|
853
|
+
|
|
854
|
+
/* #1906 — the read setup card: three stacked sections in ONE scroller, header and footer outside it. */
|
|
855
|
+
.ai-chat-setup-body { max-height: min(420px, 55vh); gap: 8px; }
|
|
856
|
+
.ai-chat-setup-section { display: flex; flex-direction: column; gap: 5px; }
|
|
857
|
+
.ai-chat-setup-section-head { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 2px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: 600 11px/15px var(--ui); text-align: left; cursor: pointer; }
|
|
858
|
+
.ai-chat-setup-section-head::before { content: "▸"; color: var(--text-dim); font-size: 9px; }
|
|
859
|
+
.ai-chat-setup-section-head[aria-expanded="true"]::before { content: "▾"; }
|
|
860
|
+
.ai-chat-setup-section-head > span:first-child { flex: 1; }
|
|
861
|
+
.ai-chat-setup-section-head:hover { color: var(--accent); }
|
|
862
|
+
.ai-chat-setup-section-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
863
|
+
.ai-chat-setup-summary { margin: 0; color: var(--text-muted); font: 10px/14px var(--mono); overflow-wrap: anywhere; }
|
|
864
|
+
.ai-chat-setup-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
|
865
|
+
.ai-chat-setup-proposal { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; border-top: 1px solid var(--border); }
|
|
866
|
+
.ai-chat-setup-evidence { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-muted); font: 10px/13px var(--ui); overflow-wrap: anywhere; }
|
|
867
|
+
.ai-chat-setup-tag { color: var(--text-dim); font: 600 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
|
|
868
|
+
.ai-chat-setup-why, .ai-chat-setup-frozen { margin: 0; color: var(--text-muted); font: 10.5px/14px var(--ui); overflow-wrap: anywhere; }
|
|
869
|
+
.ai-chat-setup-conflict { display: flex; flex-direction: column; gap: 2px; padding: 5px 7px; border: 1px solid var(--border-strong); border-left: 2px solid var(--err-text); border-radius: 4px; background: var(--surface-2); color: var(--text); font: 10.5px/14px var(--ui); overflow-wrap: anywhere; }
|
|
870
|
+
.ai-chat-setup-conflict-lead { color: var(--err-text); font-weight: 600; }
|
|
871
|
+
.ai-chat-setup-origin, .ai-chat-setup-also { min-width: 0; margin: 0; padding: 0; border: 0; }
|
|
872
|
+
.ai-chat-setup-origin legend, .ai-chat-setup-also legend { padding: 0; margin-bottom: 4px; color: var(--text); font: 600 10.5px/14px var(--ui); }
|
|
873
|
+
.ai-chat-setup-also { margin-top: 6px; }
|
|
874
|
+
.ai-chat-setup-also legend { color: var(--text-muted); font-weight: 500; }
|
|
875
|
+
.ai-chat-setup-choices { display: flex; flex-wrap: wrap; gap: 4px 12px; }
|
|
876
|
+
.ai-chat-setup-also { display: flex; flex-wrap: wrap; gap: 4px 12px; }
|
|
877
|
+
.ai-chat-setup-also legend { flex: 0 0 100%; }
|
|
878
|
+
.ai-chat-setup-choice { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; color: var(--text); cursor: pointer; }
|
|
879
|
+
.ai-chat-setup-choice-name { font: 11px/15px var(--mono); }
|
|
880
|
+
.ai-chat-setup-statement { padding: 5px 7px; border: 1px solid var(--border-strong); border-left: 2px solid var(--accent); border-radius: 4px; background: var(--surface-3); color: var(--text); font: 10.5px/14px var(--ui); overflow-wrap: anywhere; }
|
|
881
|
+
.ai-chat-height-row button.ai-chat-setup-secondary { align-self: flex-start; font-weight: 500; }
|
|
882
|
+
.ai-chat-setup-row .ai-chat-height-proposal button { white-space: normal; text-align: left; }
|
|
883
|
+
|
|
765
884
|
.ai-chat-event {
|
|
766
885
|
border: 1px solid var(--border);
|
|
767
886
|
border-radius: 5px;
|
|
@@ -772,10 +891,11 @@
|
|
|
772
891
|
overflow-wrap: anywhere;
|
|
773
892
|
}
|
|
774
893
|
.ai-chat-event strong { color: var(--text); font-weight: 500; }
|
|
775
|
-
.ai-chat-event.error { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); color: var(--err); }
|
|
894
|
+
.ai-chat-event.error { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); color: var(--err-text); }
|
|
776
895
|
.ai-chat-event.knowledge { border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }
|
|
777
896
|
/* The chat model's object links (#1653): a quiet receipt under its answer. */
|
|
778
897
|
.ai-chat-event.links { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
|
|
898
|
+
.ai-chat-event.evidence:not(.error) { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
|
|
779
899
|
.ai-chat-live-status {
|
|
780
900
|
align-self: flex-start;
|
|
781
901
|
display: inline-flex;
|
|
@@ -892,8 +1012,13 @@
|
|
|
892
1012
|
grid-row: 5;
|
|
893
1013
|
padding: 6px 9px 0;
|
|
894
1014
|
display: flex;
|
|
1015
|
+
/* Chips wrap rather than shrink (#1853: up to five pictures and four data files). Shrunk chips lost their
|
|
1016
|
+
names and slid one chip's remove button under its neighbour. Past two rows the list scrolls. */
|
|
1017
|
+
flex-wrap: wrap;
|
|
1018
|
+
max-height: 80px; /* two rows of picture chips: 2 × 34px + 5px gap + 6px top padding = 79px */
|
|
895
1019
|
gap: 5px;
|
|
896
|
-
overflow-x:
|
|
1020
|
+
overflow-x: hidden;
|
|
1021
|
+
overflow-y: auto;
|
|
897
1022
|
scrollbar-width: thin;
|
|
898
1023
|
scrollbar-color: var(--border-strong) transparent;
|
|
899
1024
|
}
|
|
@@ -912,7 +1037,7 @@
|
|
|
912
1037
|
font: 9px/1.25 var(--mono);
|
|
913
1038
|
}
|
|
914
1039
|
.ai-chat-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
915
|
-
.ai-chat-attachment img { width: 24px; height: 24px; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
|
|
1040
|
+
.ai-chat-attachment img { width: 24px; height: 24px; flex: none; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
|
|
916
1041
|
.ai-chat-attachment button { width: 18px; height: 18px; padding: 0; flex: none; }
|
|
917
1042
|
/* #1653: the selected Steel objects that go with the next question. The label is the chip's own text made
|
|
918
1043
|
focusable (so its tooltip reaches a keyboard), not a second button look. */
|
|
@@ -928,6 +1053,49 @@
|
|
|
928
1053
|
so a cut-off line would hide the permission. Deliberately neutral — no success colour or icon —
|
|
929
1054
|
because it is not a verification claim; each approved read gets its own receipt card. */
|
|
930
1055
|
.ai-chat-tekla-context { margin-bottom: 6px; }
|
|
1056
|
+
/* #1890: a workspace conversation's units — asked once above the message box, then a quiet line to change them. */
|
|
1057
|
+
.ai-chat-units {
|
|
1058
|
+
display: flex;
|
|
1059
|
+
flex-wrap: wrap;
|
|
1060
|
+
align-items: center;
|
|
1061
|
+
gap: 6px 8px;
|
|
1062
|
+
margin-bottom: 6px;
|
|
1063
|
+
color: var(--text-muted);
|
|
1064
|
+
font: 10.5px/1.45 var(--ui);
|
|
1065
|
+
}
|
|
1066
|
+
.ai-chat-units[hidden] { display: none; }
|
|
1067
|
+
/* #1907: the person's own connectors allowed for this conversation, each with its own Revoke. */
|
|
1068
|
+
.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); }
|
|
1069
|
+
.ai-chat-connectors[hidden] { display: none; }
|
|
1070
|
+
.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; }
|
|
1071
|
+
.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; }
|
|
1072
|
+
.ai-chat-connector-revoke:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1073
|
+
.ai-chat-connector-revoke:disabled { opacity: .55; cursor: default; }
|
|
1074
|
+
/* #1907: "Your Claude connectors are on · Turn off" — quiet, with the units line's Change button. */
|
|
1075
|
+
.ai-chat-connectors-status { color: var(--text); }
|
|
1076
|
+
.ai-chat-connectors .ai-chat-units-change:disabled { opacity: .55; cursor: default; }
|
|
1077
|
+
.ai-chat-event.connector { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
|
|
1078
|
+
.ai-chat-approval-warning { color: var(--text); font-weight: 600; }
|
|
1079
|
+
.ai-chat-units-question { color: var(--text); }
|
|
1080
|
+
.ai-chat-units-options { display: inline-flex; flex-wrap: wrap; gap: 4px; }
|
|
1081
|
+
.ai-chat-units-option, .ai-chat-units-change {
|
|
1082
|
+
appearance: none;
|
|
1083
|
+
min-height: 24px;
|
|
1084
|
+
padding: 2px 8px;
|
|
1085
|
+
border: 1px solid var(--border-strong);
|
|
1086
|
+
border-radius: 5px;
|
|
1087
|
+
background: var(--surface-2);
|
|
1088
|
+
color: var(--text);
|
|
1089
|
+
font: inherit;
|
|
1090
|
+
cursor: pointer;
|
|
1091
|
+
}
|
|
1092
|
+
.ai-chat-units-option:hover, .ai-chat-units-change:hover { border-color: var(--accent-dim); }
|
|
1093
|
+
/* A suggestion is a hint, not a choice: a dim accent border; only the chosen option is filled. */
|
|
1094
|
+
.ai-chat-units-option.is-suggested { border-color: var(--accent-dim); }
|
|
1095
|
+
.ai-chat-units-option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
1096
|
+
.ai-chat-units-hint { color: var(--text-dim); }
|
|
1097
|
+
.ai-chat-units-change { padding: 1px 6px; color: var(--text-muted); background: transparent; border-color: transparent; text-decoration: underline; }
|
|
1098
|
+
.ai-chat-units-option:focus-visible, .ai-chat-units-change:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
931
1099
|
.ai-chat-tekla-context[hidden] { display: none; }
|
|
932
1100
|
.ai-chat-tekla-chip {
|
|
933
1101
|
display: flex;
|
|
@@ -973,7 +1141,7 @@
|
|
|
973
1141
|
.ai-chat-tekla-context[data-state="error"] .ai-chat-tekla-chip { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); }
|
|
974
1142
|
.ai-chat-tekla-context[data-state="removing"] .ai-chat-tekla-chip,
|
|
975
1143
|
.ai-chat-tekla-context[data-state="binding"] .ai-chat-tekla-chip { opacity: .75; }
|
|
976
|
-
.ai-chat-tekla-error { margin: 5px 2px 0; color: var(--err); font: 10.5px/1.45 var(--ui); }
|
|
1144
|
+
.ai-chat-tekla-error { margin: 5px 2px 0; color: var(--err-text); font: 10.5px/1.45 var(--ui); }
|
|
977
1145
|
|
|
978
1146
|
/* A server-authored receipt of one approved live Tekla read, in the Graft receipt's look. */
|
|
979
1147
|
.ai-chat-tekla-read {
|
|
@@ -1037,7 +1205,9 @@
|
|
|
1037
1205
|
text-transform: uppercase;
|
|
1038
1206
|
}
|
|
1039
1207
|
.ai-chat-tekla-parts th:nth-child(1) { width: 17%; }
|
|
1040
|
-
.
|
|
1208
|
+
/* Wide enough for "12,345.6" in the 10px mono digits: pounds run 2.2x the kilograms, so a share of a narrow
|
|
1209
|
+
chat cut "1,100.6" to "1100…" (#1798). */
|
|
1210
|
+
.ai-chat-tekla-parts th:nth-child(5) { width: 62px; }
|
|
1041
1211
|
.ai-chat-tekla-parts td {
|
|
1042
1212
|
padding: 3px 6px;
|
|
1043
1213
|
border-bottom: 1px solid var(--border);
|
|
@@ -1161,6 +1331,13 @@
|
|
|
1161
1331
|
.ai-chat-composer-disclosure[hidden] { display: none; }
|
|
1162
1332
|
.ai-chat-compose-hint { flex: 1; min-width: 0; color: var(--text-dim); font: 8px/1.4 var(--mono); overflow-wrap: anywhere; }
|
|
1163
1333
|
.ai-chat-compose-hint.working { display: inline-flex; align-items: center; min-height: 16px; padding-left: 4px; }
|
|
1334
|
+
/* The refusal the composer itself reports — "could not send", a filter note. chat.js toggles this
|
|
1335
|
+
class at five sites (adds at 361, 443, 476; removes at 437, 999) and no rule ever styled it, so
|
|
1336
|
+
the one line in the pane that says the message did not go anywhere was painted in --text-dim like
|
|
1337
|
+
an ordinary hint. In the light theme --text-dim resolves through the `inherit` at line 72 to
|
|
1338
|
+
hsl(215.4 16.3% 60%), which on the composer's white --surface is 3.0:1 — worse than the 3.5:1
|
|
1339
|
+
error row #1864 was filed for. Error ink, same token as the row. */
|
|
1340
|
+
.ai-chat-compose-hint.error { color: var(--err-text); }
|
|
1164
1341
|
.ai-chat-compose-context { min-height: 12px; padding: 5px 0 0 30px; color: var(--text-dim); font: 8px/1.3 var(--mono); overflow-wrap: anywhere; }
|
|
1165
1342
|
.ai-chat-compose-context strong { color: var(--text-muted); font-weight: 600; }
|
|
1166
1343
|
/* Send and Stop are icon-only circles: the composer's primary actions, set apart from the square
|