tuxevil-rotator 4.3.0 → 4.4.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/CHANGELOG.md +21 -0
- package/README.md +4 -2
- package/package.json +2 -1
- package/src/access-evidence.ts +153 -0
- package/src/access-probe.ts +85 -0
- package/src/admin-auth.ts +4 -1
- package/src/auto-access-shadow.ts +11 -0
- package/src/auto-model-access.ts +185 -0
- package/src/auto-output-health.ts +12 -0
- package/src/auto-routing-evaluation.ts +80 -0
- package/src/auto-routing-quality.ts +308 -0
- package/src/auto-routing.ts +403 -26
- package/src/compat.ts +223 -36
- package/src/compression/index.ts +6 -6
- package/src/compression/lite.ts +3 -9
- package/src/compression/rtk/index.ts +0 -3
- package/src/config-defaults.ts +7 -0
- package/src/dashboard.ts +5 -0
- package/src/db-store.ts +10 -0
- package/src/index.ts +2 -0
- package/src/model-access-api.ts +74 -0
- package/src/model-access.ts +56 -0
- package/src/ollama-output-gate.ts +18 -0
- package/src/onboarding.ts +1 -1
- package/src/provider-catalog-evidence.ts +26 -0
- package/src/providers/google-antigravity/dynamic-catalog.ts +8 -0
- package/src/providers/google-antigravity/quota.ts +3 -0
- package/src/providers/ollama/context-window.ts +13 -0
- package/src/providers/ollama/quota.ts +4 -0
- package/src/providers/ollama/translators.ts +19 -2
- package/src/providers/openai-codex/compat.ts +5 -1
- package/src/providers/openai-codex/credentials.ts +22 -6
- package/src/providers/openai-codex/index.ts +9 -1
- package/src/providers/openai-codex/quota.ts +19 -6
- package/src/providers/opencode-zen/forward.ts +1 -1
- package/src/providers/opencode-zen/quota.ts +2 -0
- package/src/proxy.ts +78 -3
- package/src/quota-observation.ts +26 -0
- package/src/quota-pools.ts +322 -0
- package/src/rotator.ts +151 -38
- package/src/settings-repository.ts +1 -0
- package/src/types.ts +28 -0
- package/src/usage-limits-auth.ts +24 -0
- package/src/usage-limits.ts +148 -0
- package/src/validators.ts +26 -0
- package/src/web/components/icons.tsx +15 -0
- package/src/web/components/overlays.tsx +4 -0
- package/src/web/components/ui.tsx +9 -9
- package/src/web/lib/playground.ts +35 -0
- package/src/web/lib/pool-navigation.ts +4 -0
- package/src/web/lib/pools.ts +2 -243
- package/src/web/pages/AccountDetail.tsx +2 -1
- package/src/web/pages/ModelAccess.tsx +88 -0
- package/src/web/pages/Models.tsx +2 -0
- package/src/web/pages/Overview.tsx +26 -9
- package/src/web/pages/Playground.tsx +1132 -551
- package/src/web/pages/Transcription.tsx +304 -170
- package/src/web/state/api.ts +3 -0
- package/src/web/styles/app.css +501 -45
package/src/web/styles/app.css
CHANGED
|
@@ -1562,6 +1562,21 @@ textarea {
|
|
|
1562
1562
|
color: var(--text-3);
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
+
/* background-color only, so the chevron gradients survive. */
|
|
1566
|
+
.select:disabled {
|
|
1567
|
+
background-color: var(--surface-2);
|
|
1568
|
+
color: var(--text-3);
|
|
1569
|
+
cursor: not-allowed;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/* `.input` is sized for one line; multi-line fields need their own box. */
|
|
1573
|
+
textarea.input {
|
|
1574
|
+
height: auto;
|
|
1575
|
+
padding: 8px 11px;
|
|
1576
|
+
line-height: 1.5;
|
|
1577
|
+
resize: vertical;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1565
1580
|
.input-sm {
|
|
1566
1581
|
height: 30px;
|
|
1567
1582
|
font-size: 13px;
|
|
@@ -1915,6 +1930,11 @@ input[type="radio"] {
|
|
|
1915
1930
|
flex: 1 1 auto;
|
|
1916
1931
|
}
|
|
1917
1932
|
|
|
1933
|
+
/* Unknown quota keeps the bar footprint without implying empty/full capacity. */
|
|
1934
|
+
.meter-unknown {
|
|
1935
|
+
background: repeating-linear-gradient(135deg, var(--meter-track) 0 4px, var(--border) 4px 6px);
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1918
1938
|
.meter-sm {
|
|
1919
1939
|
height: 4px;
|
|
1920
1940
|
min-width: 36px;
|
|
@@ -4787,6 +4807,487 @@ a.hero-metric:hover {
|
|
|
4787
4807
|
color: var(--text-2);
|
|
4788
4808
|
}
|
|
4789
4809
|
|
|
4810
|
+
/* ── Playground ───────────────────────────────────────────────────────── */
|
|
4811
|
+
|
|
4812
|
+
/* Chat, Compare, Compliance and Transcription. Everything visible is built
|
|
4813
|
+
* from the shared classes (page-head, toolbar, segmented, panel, btn, select,
|
|
4814
|
+
* code-input, tag-row, switch, empty, inspector, model-grid, table); these
|
|
4815
|
+
* rules only add playground layout and the conversation surfaces. */
|
|
4816
|
+
|
|
4817
|
+
/* Page top (shared by every playground tab) */
|
|
4818
|
+
|
|
4819
|
+
.pg-history {
|
|
4820
|
+
display: flex;
|
|
4821
|
+
width: 300px;
|
|
4822
|
+
min-width: 0;
|
|
4823
|
+
}
|
|
4824
|
+
|
|
4825
|
+
.pg-history .select {
|
|
4826
|
+
width: 100%;
|
|
4827
|
+
text-overflow: ellipsis;
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4830
|
+
/* Conversation panels */
|
|
4831
|
+
|
|
4832
|
+
.pg-panel {
|
|
4833
|
+
display: flex;
|
|
4834
|
+
flex-direction: column;
|
|
4835
|
+
container: pg-panel / inline-size;
|
|
4836
|
+
}
|
|
4837
|
+
|
|
4838
|
+
/* Narrow conversation panels (three Compare columns, phones) drop the
|
|
4839
|
+
* labels of their header buttons; the label stays for screen readers. */
|
|
4840
|
+
@container pg-panel (max-width: 480px) {
|
|
4841
|
+
.pg-collapsible.btn-sm {
|
|
4842
|
+
width: 28px;
|
|
4843
|
+
padding: 0;
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4846
|
+
.pg-collapsible > span {
|
|
4847
|
+
position: absolute;
|
|
4848
|
+
width: 1px;
|
|
4849
|
+
height: 1px;
|
|
4850
|
+
padding: 0;
|
|
4851
|
+
margin: -1px;
|
|
4852
|
+
overflow: hidden;
|
|
4853
|
+
clip: rect(0, 0, 0, 0);
|
|
4854
|
+
white-space: nowrap;
|
|
4855
|
+
border: 0;
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4858
|
+
|
|
4859
|
+
.pg-panel > .panel-head {
|
|
4860
|
+
align-items: center;
|
|
4861
|
+
flex-wrap: nowrap;
|
|
4862
|
+
}
|
|
4863
|
+
|
|
4864
|
+
.pg-panel > .panel-head > .panel-titles {
|
|
4865
|
+
flex: none;
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4868
|
+
.pg-panel > .panel-head > .panel-actions {
|
|
4869
|
+
flex: 1 1 auto;
|
|
4870
|
+
justify-content: flex-end;
|
|
4871
|
+
flex-wrap: nowrap;
|
|
4872
|
+
min-width: 0;
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4875
|
+
/* Compare columns have no title: the model select leads the header and the
|
|
4876
|
+
* Parameters toggle and menu stay on the right. */
|
|
4877
|
+
.pg-panel > .panel-head > .panel-titles:empty {
|
|
4878
|
+
display: none;
|
|
4879
|
+
}
|
|
4880
|
+
|
|
4881
|
+
.pg-panel > .panel-head > .panel-titles:empty + .panel-actions > .pg-model {
|
|
4882
|
+
flex: 0 1 260px;
|
|
4883
|
+
margin-right: auto;
|
|
4884
|
+
}
|
|
4885
|
+
|
|
4886
|
+
/* Compact model picker in the panel header (same size as `.new-models`). */
|
|
4887
|
+
.pg-model {
|
|
4888
|
+
display: flex;
|
|
4889
|
+
flex: 0 1 220px;
|
|
4890
|
+
min-width: 120px;
|
|
4891
|
+
}
|
|
4892
|
+
|
|
4893
|
+
.pg-model .select {
|
|
4894
|
+
width: 100%;
|
|
4895
|
+
height: 30px;
|
|
4896
|
+
font-size: 13px;
|
|
4897
|
+
text-overflow: ellipsis;
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
.pg-panel > .panel-body {
|
|
4901
|
+
flex: 1;
|
|
4902
|
+
display: flex;
|
|
4903
|
+
flex-direction: column;
|
|
4904
|
+
gap: 16px;
|
|
4905
|
+
min-width: 0;
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
/* Parameters: the form sits in an inset well under the header. */
|
|
4909
|
+
.pg-params {
|
|
4910
|
+
padding: 16px;
|
|
4911
|
+
border-radius: var(--radius);
|
|
4912
|
+
background: var(--surface-2);
|
|
4913
|
+
box-shadow: inset 0 0 0 1px var(--border);
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
.pg-params .code-input {
|
|
4917
|
+
min-height: 96px;
|
|
4918
|
+
background: var(--surface);
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
.pg-params .code-input::placeholder {
|
|
4922
|
+
color: var(--text-4);
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4925
|
+
/* Turns */
|
|
4926
|
+
|
|
4927
|
+
.pg-turns {
|
|
4928
|
+
flex: 1;
|
|
4929
|
+
display: flex;
|
|
4930
|
+
flex-direction: column;
|
|
4931
|
+
gap: 24px;
|
|
4932
|
+
min-width: 0;
|
|
4933
|
+
overflow-wrap: anywhere;
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
/* Focus lands here only from code (after an inline Retry). */
|
|
4937
|
+
.pg-turns:focus-visible {
|
|
4938
|
+
box-shadow: none;
|
|
4939
|
+
}
|
|
4940
|
+
|
|
4941
|
+
.pg-turn {
|
|
4942
|
+
display: flex;
|
|
4943
|
+
flex-direction: column;
|
|
4944
|
+
gap: 14px;
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
.pg-user {
|
|
4948
|
+
display: flex;
|
|
4949
|
+
flex-direction: column;
|
|
4950
|
+
gap: 4px;
|
|
4951
|
+
padding: 12px 14px;
|
|
4952
|
+
border-radius: var(--radius);
|
|
4953
|
+
background: var(--surface-2);
|
|
4954
|
+
box-shadow: inset 0 0 0 1px var(--border);
|
|
4955
|
+
}
|
|
4956
|
+
|
|
4957
|
+
/* Images sent with the message: the composer's tiles, without remove buttons. */
|
|
4958
|
+
.pg-user > .pg-attachments {
|
|
4959
|
+
margin-top: 4px;
|
|
4960
|
+
}
|
|
4961
|
+
|
|
4962
|
+
/* Assistant text lines up with the text inside the user well. */
|
|
4963
|
+
.pg-assistant {
|
|
4964
|
+
display: flex;
|
|
4965
|
+
flex-direction: column;
|
|
4966
|
+
gap: 4px;
|
|
4967
|
+
padding-inline: 14px;
|
|
4968
|
+
min-width: 0;
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
.pg-message {
|
|
4972
|
+
font-size: 14px;
|
|
4973
|
+
line-height: 1.6;
|
|
4974
|
+
white-space: pre-wrap;
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4977
|
+
.pg-reasoning {
|
|
4978
|
+
padding: 10px 14px;
|
|
4979
|
+
border-radius: var(--radius);
|
|
4980
|
+
background: var(--surface-2);
|
|
4981
|
+
box-shadow: inset 0 0 0 1px var(--border);
|
|
4982
|
+
color: var(--text-2);
|
|
4983
|
+
font-size: 13px;
|
|
4984
|
+
line-height: 1.6;
|
|
4985
|
+
white-space: pre-wrap;
|
|
4986
|
+
/* Long chains of thought scroll instead of pushing the answer away. */
|
|
4987
|
+
max-height: 320px;
|
|
4988
|
+
overflow: auto;
|
|
4989
|
+
}
|
|
4990
|
+
|
|
4991
|
+
.pg-turn-foot {
|
|
4992
|
+
display: flex;
|
|
4993
|
+
flex-wrap: wrap;
|
|
4994
|
+
align-items: center;
|
|
4995
|
+
justify-content: space-between;
|
|
4996
|
+
gap: 4px 12px;
|
|
4997
|
+
margin-top: 6px;
|
|
4998
|
+
}
|
|
4999
|
+
|
|
5000
|
+
/* Metrics read as one sentence: "Total 279ms · First content 13ms · …".
|
|
5001
|
+
* Every item carries a leading separator; the first one on each line falls
|
|
5002
|
+
* into the clipped strip on the left, so wrapped lines never start or end
|
|
5003
|
+
* with a stray dot. When the sentence doesn't fit beside the Details toggle,
|
|
5004
|
+
* the toggle wraps under it (space-between keeps a lone item at the start). */
|
|
5005
|
+
.pg-metrics {
|
|
5006
|
+
--pg-sep: 18px;
|
|
5007
|
+
flex: 0 1 auto;
|
|
5008
|
+
min-width: 0;
|
|
5009
|
+
gap: 2px 0;
|
|
5010
|
+
margin-left: calc(var(--pg-sep) * -1);
|
|
5011
|
+
clip-path: inset(0 0 0 var(--pg-sep));
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
.pg-metrics > span {
|
|
5015
|
+
white-space: nowrap;
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
.pg-metrics > span::before {
|
|
5019
|
+
content: "·";
|
|
5020
|
+
display: inline-block;
|
|
5021
|
+
width: var(--pg-sep);
|
|
5022
|
+
text-align: center;
|
|
5023
|
+
color: var(--text-4);
|
|
5024
|
+
}
|
|
5025
|
+
|
|
5026
|
+
/* Negative inline margins line the ghost toggle's label (right) or its
|
|
5027
|
+
* chevron (left, once wrapped) up with the text edge. */
|
|
5028
|
+
.pg-turn-foot > .btn-ghost {
|
|
5029
|
+
flex: none;
|
|
5030
|
+
margin-inline: -10px;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
.pg-assistant > .inspector {
|
|
5034
|
+
margin-top: 8px;
|
|
5035
|
+
}
|
|
5036
|
+
|
|
5037
|
+
/* Composer */
|
|
5038
|
+
|
|
5039
|
+
.pg-composer > .panel-body {
|
|
5040
|
+
display: flex;
|
|
5041
|
+
flex-direction: column;
|
|
5042
|
+
gap: 12px;
|
|
5043
|
+
padding-top: 20px;
|
|
5044
|
+
}
|
|
5045
|
+
|
|
5046
|
+
.pg-composer textarea.input {
|
|
5047
|
+
min-height: 84px;
|
|
5048
|
+
}
|
|
5049
|
+
|
|
5050
|
+
.pg-composer-foot {
|
|
5051
|
+
display: flex;
|
|
5052
|
+
align-items: center;
|
|
5053
|
+
gap: 8px;
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5056
|
+
.pg-attachments {
|
|
5057
|
+
display: flex;
|
|
5058
|
+
flex-wrap: wrap;
|
|
5059
|
+
gap: 8px;
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
.pg-attachment {
|
|
5063
|
+
position: relative;
|
|
5064
|
+
display: grid;
|
|
5065
|
+
place-items: center;
|
|
5066
|
+
width: 72px;
|
|
5067
|
+
height: 72px;
|
|
5068
|
+
border-radius: var(--radius-sm);
|
|
5069
|
+
overflow: hidden;
|
|
5070
|
+
background: var(--surface-2);
|
|
5071
|
+
color: var(--text-3);
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
.pg-attachment img {
|
|
5075
|
+
display: block;
|
|
5076
|
+
width: 100%;
|
|
5077
|
+
height: 100%;
|
|
5078
|
+
object-fit: cover;
|
|
5079
|
+
}
|
|
5080
|
+
|
|
5081
|
+
/* Ring drawn above the image so it stays visible on light pictures. */
|
|
5082
|
+
.pg-attachment::after {
|
|
5083
|
+
content: "";
|
|
5084
|
+
position: absolute;
|
|
5085
|
+
inset: 0;
|
|
5086
|
+
border-radius: inherit;
|
|
5087
|
+
box-shadow: inset 0 0 0 1px var(--border);
|
|
5088
|
+
pointer-events: none;
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
.pg-attachment > .btn {
|
|
5092
|
+
position: absolute;
|
|
5093
|
+
top: 4px;
|
|
5094
|
+
right: 4px;
|
|
5095
|
+
z-index: 1;
|
|
5096
|
+
width: 22px;
|
|
5097
|
+
height: 22px;
|
|
5098
|
+
border-radius: var(--radius-xs);
|
|
5099
|
+
background: var(--raised);
|
|
5100
|
+
box-shadow: var(--shadow-sm);
|
|
5101
|
+
}
|
|
5102
|
+
|
|
5103
|
+
/* Compare */
|
|
5104
|
+
|
|
5105
|
+
.pg-compare {
|
|
5106
|
+
display: grid;
|
|
5107
|
+
gap: 20px;
|
|
5108
|
+
align-items: stretch;
|
|
5109
|
+
}
|
|
5110
|
+
|
|
5111
|
+
.pg-compare-2 {
|
|
5112
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
5113
|
+
}
|
|
5114
|
+
|
|
5115
|
+
.pg-compare-3 {
|
|
5116
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
/* Compliance: model and test pickers */
|
|
5120
|
+
|
|
5121
|
+
/* Same markup as the Keys model picker. `.checkbox` has no disabled state. */
|
|
5122
|
+
.pg-picker .model-option:has(> input:disabled) {
|
|
5123
|
+
color: var(--text-4);
|
|
5124
|
+
cursor: not-allowed;
|
|
5125
|
+
}
|
|
5126
|
+
|
|
5127
|
+
/* "Audio only": keep the 22px pill from making its grid row taller. */
|
|
5128
|
+
.pg-picker .model-option > .pill {
|
|
5129
|
+
flex: none;
|
|
5130
|
+
margin-block: -2px;
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
/* Compliance: results table */
|
|
5134
|
+
|
|
5135
|
+
.pg-results .history-row > td:nth-child(-n + 2) {
|
|
5136
|
+
white-space: nowrap;
|
|
5137
|
+
}
|
|
5138
|
+
|
|
5139
|
+
/* Result takes the slack so Duration and the toggle hug the right edge. */
|
|
5140
|
+
.pg-results .history-row > td:nth-child(3) {
|
|
5141
|
+
width: 100%;
|
|
5142
|
+
}
|
|
5143
|
+
|
|
5144
|
+
/* Transcription: audio input */
|
|
5145
|
+
|
|
5146
|
+
.pg-audio-actions {
|
|
5147
|
+
display: flex;
|
|
5148
|
+
align-items: center;
|
|
5149
|
+
gap: 8px;
|
|
5150
|
+
flex-wrap: wrap;
|
|
5151
|
+
}
|
|
5152
|
+
|
|
5153
|
+
/* The loaded file sits in an inset well (same recipe as the chat user turn). */
|
|
5154
|
+
.pg-audio-file {
|
|
5155
|
+
display: flex;
|
|
5156
|
+
flex-direction: column;
|
|
5157
|
+
gap: 10px;
|
|
5158
|
+
padding: 12px 14px;
|
|
5159
|
+
border-radius: var(--radius);
|
|
5160
|
+
background: var(--surface-2);
|
|
5161
|
+
box-shadow: inset 0 0 0 1px var(--border);
|
|
5162
|
+
}
|
|
5163
|
+
|
|
5164
|
+
.pg-audio-file-head {
|
|
5165
|
+
display: flex;
|
|
5166
|
+
align-items: flex-start;
|
|
5167
|
+
gap: 12px;
|
|
5168
|
+
}
|
|
5169
|
+
|
|
5170
|
+
.pg-audio-file-name {
|
|
5171
|
+
flex: 1;
|
|
5172
|
+
min-width: 0;
|
|
5173
|
+
}
|
|
5174
|
+
|
|
5175
|
+
.pg-audio-file-name strong {
|
|
5176
|
+
font-weight: 600;
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
.pg-audio-file audio {
|
|
5180
|
+
display: block;
|
|
5181
|
+
width: 100%;
|
|
5182
|
+
height: 40px;
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
/* Transcription: saved transcripts (attention-list row rhythm) */
|
|
5186
|
+
|
|
5187
|
+
.pg-transcripts {
|
|
5188
|
+
list-style: none;
|
|
5189
|
+
margin: 0;
|
|
5190
|
+
padding: 0;
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
.pg-transcript {
|
|
5194
|
+
display: grid;
|
|
5195
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
5196
|
+
gap: 14px;
|
|
5197
|
+
padding: 14px 20px;
|
|
5198
|
+
border-top: 1px solid var(--border);
|
|
5199
|
+
}
|
|
5200
|
+
|
|
5201
|
+
.pg-transcript-name {
|
|
5202
|
+
font-weight: 600;
|
|
5203
|
+
word-break: break-word;
|
|
5204
|
+
}
|
|
5205
|
+
|
|
5206
|
+
.pg-transcript-text {
|
|
5207
|
+
margin-top: 8px;
|
|
5208
|
+
font-size: 14px;
|
|
5209
|
+
line-height: 1.6;
|
|
5210
|
+
white-space: pre-wrap;
|
|
5211
|
+
word-break: break-word;
|
|
5212
|
+
}
|
|
5213
|
+
|
|
5214
|
+
.pg-transcript-actions {
|
|
5215
|
+
display: flex;
|
|
5216
|
+
align-items: flex-start;
|
|
5217
|
+
gap: 2px;
|
|
5218
|
+
}
|
|
5219
|
+
|
|
5220
|
+
/* Playground layout follows the canvas width, like the rest of the pages. */
|
|
5221
|
+
|
|
5222
|
+
@container canvas (max-width: 1180px) {
|
|
5223
|
+
.pg-compare-3 {
|
|
5224
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
|
|
5228
|
+
@container canvas (max-width: 940px) {
|
|
5229
|
+
.pg-compare-2 {
|
|
5230
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5231
|
+
}
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
@container canvas (max-width: 700px) {
|
|
5235
|
+
/* Saved-playground picker and its menu share a row; New goes below. */
|
|
5236
|
+
.page-actions:has(> .pg-history) {
|
|
5237
|
+
display: grid;
|
|
5238
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
5239
|
+
width: 100%;
|
|
5240
|
+
}
|
|
5241
|
+
|
|
5242
|
+
.pg-history {
|
|
5243
|
+
width: auto;
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5246
|
+
.page-actions > .pg-new {
|
|
5247
|
+
grid-column: 1 / -1;
|
|
5248
|
+
justify-self: start;
|
|
5249
|
+
}
|
|
5250
|
+
|
|
5251
|
+
.pg-modes {
|
|
5252
|
+
display: flex;
|
|
5253
|
+
width: 100%;
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
.pg-modes > button {
|
|
5257
|
+
flex: 1 1 auto;
|
|
5258
|
+
padding: 0 8px;
|
|
5259
|
+
}
|
|
5260
|
+
|
|
5261
|
+
.pg-panel > .panel-head {
|
|
5262
|
+
flex-wrap: wrap;
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
.pg-panel > .panel-head > .panel-actions {
|
|
5266
|
+
flex-basis: 100%;
|
|
5267
|
+
justify-content: flex-start;
|
|
5268
|
+
}
|
|
5269
|
+
|
|
5270
|
+
.pg-model {
|
|
5271
|
+
flex: 1 1 auto;
|
|
5272
|
+
}
|
|
5273
|
+
|
|
5274
|
+
/* Results: let Model and Test wrap; Duration hides (.hide-sm) and stays
|
|
5275
|
+
* in the inspector as "Total". */
|
|
5276
|
+
.pg-results .history-row > td:nth-child(-n + 2) {
|
|
5277
|
+
white-space: normal;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
/* Transcript actions drop under the text; the ghost padding lines up. */
|
|
5281
|
+
.pg-transcript {
|
|
5282
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5283
|
+
gap: 8px;
|
|
5284
|
+
}
|
|
5285
|
+
|
|
5286
|
+
.pg-transcript-actions {
|
|
5287
|
+
margin-left: -10px;
|
|
5288
|
+
}
|
|
5289
|
+
}
|
|
5290
|
+
|
|
4790
5291
|
/* ── Overlays ─────────────────────────────────────────────────────────── */
|
|
4791
5292
|
|
|
4792
5293
|
dialog {
|
|
@@ -5895,48 +6396,3 @@ dialog::backdrop {
|
|
|
5895
6396
|
box-shadow: none;
|
|
5896
6397
|
}
|
|
5897
6398
|
}
|
|
5898
|
-
|
|
5899
|
-
/* Playground: the same controls and surfaces as the rest of the dashboard. */
|
|
5900
|
-
.playground { display: flex; flex-direction: column; gap: 18px; }
|
|
5901
|
-
.pg-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
|
|
5902
|
-
.pg-toolbar label { display: inline-flex; align-items: center; gap: 6px; }
|
|
5903
|
-
.pg-toolbar .pg-history { display: block; flex: 1; min-width: 0; max-width: 440px; }
|
|
5904
|
-
.pg-history select { text-overflow: ellipsis; min-width: 0; width: 100%; max-width: 100%; }
|
|
5905
|
-
.pg-panels { display: grid; gap: 16px; align-items: start; }
|
|
5906
|
-
.pg-panels-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
5907
|
-
.pg-panels-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
5908
|
-
.pg-panels > .panel { min-width: 0; }
|
|
5909
|
-
.pg-parameters { margin: 14px 0; padding: 12px 0; border-block: 1px solid var(--border); }
|
|
5910
|
-
.pg-parameters summary, .pg-inspect summary { color: var(--text-2); cursor: pointer; font-size: 12px; }
|
|
5911
|
-
.pg-parameters fieldset { border: 0; padding: 14px 0 0; margin: 0; min-width: 0; }
|
|
5912
|
-
.pg-turns { max-height: 65vh; overflow: auto; margin-block: 14px; overflow-wrap: anywhere; }
|
|
5913
|
-
.pg-turn { border-top: 1px solid var(--border); padding-block: 14px; }
|
|
5914
|
-
.pg-user { background: var(--surface-2); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
|
|
5915
|
-
.pg-user p { white-space: pre-wrap; }
|
|
5916
|
-
.pg-user img, .pg-images img { display: block; max-width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; margin-block: 8px; }
|
|
5917
|
-
.pg-answer { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; line-height: 1.65; font-size: 13px; margin-block: 10px; }
|
|
5918
|
-
.pg-code { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
|
|
5919
|
-
.pg-metrics { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: 11px; margin-block: 12px; }
|
|
5920
|
-
.pg-composer { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
|
|
5921
|
-
.pg-images { display: flex; flex-wrap: wrap; gap: 14px; }
|
|
5922
|
-
.pg-images > div { max-width: 220px; }
|
|
5923
|
-
.pg-check-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; max-height: 240px; overflow: auto; margin-bottom: 18px; }
|
|
5924
|
-
.pg-check-models label { display: flex; align-items: start; gap: 8px; overflow-wrap: anywhere; font-size: 12px; }
|
|
5925
|
-
.pg-check-models + .pg-toolbar { margin-bottom: 18px; }
|
|
5926
|
-
.pg-results { display: grid; gap: 16px; }
|
|
5927
|
-
.playground input[type="checkbox"] { accent-color: var(--accent); }
|
|
5928
|
-
@media (max-width: 1100px) { .pg-panels-3 { grid-template-columns: 1fr; } }
|
|
5929
|
-
@media (max-width: 760px) {
|
|
5930
|
-
.pg-panels-2 { grid-template-columns: 1fr; }
|
|
5931
|
-
.pg-toolbar .pg-history { max-width: 100%; flex: 1 0 100%; }
|
|
5932
|
-
.pg-check-models { grid-template-columns: 1fr; }
|
|
5933
|
-
}
|
|
5934
|
-
.pg-composer textarea.input { min-height: 100px; height: auto; resize: vertical; }
|
|
5935
|
-
.pg-parameters textarea.input { min-height: 90px; height: auto; resize: vertical; }
|
|
5936
|
-
|
|
5937
|
-
/* Audio preview and results share the existing playground surfaces. */
|
|
5938
|
-
.pg-transcription { display: grid; gap: 16px; }
|
|
5939
|
-
.pg-audio-preview { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
|
|
5940
|
-
.pg-audio-preview audio { width: 100%; max-width: 600px; }
|
|
5941
|
-
.pg-audio-context.input { min-height: 72px; height: auto; resize: vertical; }
|
|
5942
|
-
@media (max-width: 760px) { .playground > .pg-toolbar > .segmented { flex-wrap: wrap; } }
|