tuxevil-rotator 4.2.2 → 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 +48 -1
- package/README.md +11 -4
- package/package.json +2 -1
- package/plugins/opencode-discovery/capabilities.d.mts +7 -0
- package/plugins/opencode-discovery/capabilities.mjs +54 -0
- package/plugins/opencode-discovery/index.d.mts +2 -1
- package/plugins/opencode-discovery/index.mjs +6 -1
- package/plugins/opencode-discovery/package.json +3 -1
- package/src/access-evidence.ts +153 -0
- package/src/access-probe.ts +85 -0
- package/src/admin-auth.ts +4 -1
- package/src/audio-transcription.ts +32 -6
- 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/cli.ts +3 -3
- package/src/compat/model-specs.ts +4 -0
- package/src/compat.ts +253 -37
- 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-app.ts +1 -0
- package/src/dashboard.ts +5 -0
- package/src/db-store.ts +10 -0
- package/src/index.ts +2 -0
- package/src/install-agent.ts +211 -129
- package/src/install-opencode.ts +80 -18
- 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/catalog.ts +14 -6
- package/src/providers/google-antigravity/dynamic-catalog.ts +87 -3
- package/src/providers/google-antigravity/forward.ts +4 -2
- package/src/providers/google-antigravity/quota.ts +7 -0
- package/src/providers/ollama/context-window.ts +13 -0
- package/src/providers/ollama/forward.ts +10 -0
- package/src/providers/ollama/quota.ts +4 -0
- package/src/providers/ollama/translators.ts +19 -2
- package/src/providers/openai-codex/catalog.ts +157 -18
- 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 +113 -5
- package/src/quota-observation.ts +26 -0
- package/src/quota-pools.ts +322 -0
- package/src/rotator.ts +167 -40
- package/src/settings-repository.ts +1 -0
- package/src/types.ts +106 -29
- package/src/usage-limits-auth.ts +24 -0
- package/src/usage-limits.ts +148 -0
- package/src/validators.ts +26 -0
- package/src/web/app.tsx +4 -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/audio-recorder.ts +159 -0
- package/src/web/lib/colors.ts +4 -0
- package/src/web/lib/playground-storage.ts +261 -0
- package/src/web/lib/playground.ts +483 -0
- package/src/web/lib/pool-navigation.ts +4 -0
- package/src/web/lib/pools.ts +2 -243
- package/src/web/nav.ts +1 -0
- 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 +1692 -0
- package/src/web/pages/Transcription.tsx +562 -0
- package/src/web/state/api.ts +6 -0
- package/src/web/state/playground-client.ts +136 -0
- package/src/web/state/playground.ts +69 -0
- package/src/web/state/router.ts +2 -2
- package/src/web/state/transcription-client.ts +93 -0
- package/src/web/styles/app.css +501 -0
- package/tools/telemetry-receiver/receiver.js +59 -46
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 {
|
|
@@ -334,61 +334,74 @@ function sanitizeTokensByModel(raw) {
|
|
|
334
334
|
|
|
335
335
|
// Pricing per 1M tokens (USD) — mirrors MODEL_PRICING in the rotator
|
|
336
336
|
const MODEL_PRICING = {
|
|
337
|
-
"claude-opus-4-6-thinking": { inputPer1M: 5.
|
|
338
|
-
"claude-sonnet-4-6":
|
|
339
|
-
"gemini-3.1-pro":
|
|
340
|
-
"gemini-3.1-pro-low":
|
|
341
|
-
"gemini-3.1-pro-high":
|
|
342
|
-
"gemini-3-flash":
|
|
343
|
-
"gemini-3.6-flash":
|
|
344
|
-
"gemini-3.6-flash-high":
|
|
345
|
-
"gemini-3.6-flash-medium":
|
|
346
|
-
"gemini-3.6-flash-low":
|
|
347
|
-
"gemini-3.6-flash-tiered":
|
|
348
|
-
// Gemini
|
|
349
|
-
|
|
350
|
-
// these double to input 1.50 / output 7.50 per 1M tokens.
|
|
351
|
-
"gemini-3.7-flash-tiered": { inputPer1M: 0.75, outputPer1M: 3.75 },
|
|
337
|
+
"claude-opus-4-6-thinking": { inputPer1M: 5.0, outputPer1M: 25.0 },
|
|
338
|
+
"claude-sonnet-4-6": { inputPer1M: 3.0, outputPer1M: 15.0 },
|
|
339
|
+
"gemini-3.1-pro": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
340
|
+
"gemini-3.1-pro-low": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
341
|
+
"gemini-3.1-pro-high": { inputPer1M: 2.0, outputPer1M: 12.0 },
|
|
342
|
+
"gemini-3-flash": { inputPer1M: 0.5, outputPer1M: 3.0 },
|
|
343
|
+
"gemini-3.6-flash": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
344
|
+
"gemini-3.6-flash-high": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
345
|
+
"gemini-3.6-flash-medium": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
346
|
+
"gemini-3.6-flash-low": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
347
|
+
"gemini-3.6-flash-tiered": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
348
|
+
// Gemini introductory pricing: see docs/model-pricing.md (2026-10-25).
|
|
349
|
+
"gemini-3.7-flash-tiered": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
352
350
|
// Gemini 3.8 Flash uses the same introductory window and doubles on 2027-01-01.
|
|
353
|
-
"gemini-3.8-flash-low":
|
|
354
|
-
"gemini-3.8-flash-medium":
|
|
355
|
-
"gemini-3.8-flash-high":
|
|
356
|
-
"gpt-oss-120b-medium":
|
|
357
|
-
|
|
358
|
-
// Ollama Cloud
|
|
359
|
-
"gpt-oss:20b":
|
|
360
|
-
"gpt-oss:120b":
|
|
351
|
+
"gemini-3.8-flash-low": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
352
|
+
"gemini-3.8-flash-medium": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
353
|
+
"gemini-3.8-flash-high": { inputPer1M: 0.75, outputPer1M: 3.75, cachingPer1M: 0.075, cachingStoragePer1MPerHour: 0.5 },
|
|
354
|
+
"gpt-oss-120b-medium": { inputPer1M: 2.0, outputPer1M: 10.0 },
|
|
355
|
+
|
|
356
|
+
// Ollama Cloud standard-price models — mirrors MODEL_PRICING in src/types.ts
|
|
357
|
+
"gpt-oss:20b": { inputPer1M: 0.07, outputPer1M: 0.30, cachingPer1M: 0.035 },
|
|
358
|
+
"gpt-oss:120b": { inputPer1M: 0.15, outputPer1M: 0.60, cachingPer1M: 0.014 },
|
|
361
359
|
"deepseek-v4-flash:preview": { inputPer1M: 0.14, outputPer1M: 0.28 },
|
|
362
|
-
"deepseek-v4-flash:0731":
|
|
363
|
-
"deepseek-v4-pro":
|
|
364
|
-
"qwen3.5:397b":
|
|
365
|
-
"glm-5.1":
|
|
366
|
-
"glm-5.2":
|
|
367
|
-
"gemma4:31b":
|
|
368
|
-
"kimi-k2.6":
|
|
369
|
-
"kimi-k2.7-code":
|
|
370
|
-
"kimi-k3":
|
|
371
|
-
"minimax-m2.7":
|
|
372
|
-
"minimax-m3":
|
|
373
|
-
"mistral-large-3:675b":
|
|
374
|
-
"nemotron-3-nano:30b":
|
|
375
|
-
"nemotron-3-super":
|
|
376
|
-
"nemotron-3-ultra":
|
|
360
|
+
"deepseek-v4-flash:0731": { inputPer1M: 0.14, outputPer1M: 0.28, cachingPer1M: 0.0028 },
|
|
361
|
+
"deepseek-v4-pro": { inputPer1M: 1.32, outputPer1M: 3.96, cachingPer1M: 0.044 },
|
|
362
|
+
"qwen3.5:397b": { inputPer1M: 0.60, outputPer1M: 3.60 },
|
|
363
|
+
"glm-5.1": { inputPer1M: 0.80, outputPer1M: 2.56 },
|
|
364
|
+
"glm-5.2": { inputPer1M: 1.40, outputPer1M: 4.40, cachingPer1M: 0.26 },
|
|
365
|
+
"gemma4:31b": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
366
|
+
"kimi-k2.6": { inputPer1M: 0.95, outputPer1M: 4.00, cachingPer1M: 0.16 },
|
|
367
|
+
"kimi-k2.7-code": { inputPer1M: 0.95, outputPer1M: 4.00, cachingPer1M: 0.19 },
|
|
368
|
+
"kimi-k3": { inputPer1M: 3.00, outputPer1M: 15.00, cachingPer1M: 0.30 },
|
|
369
|
+
"minimax-m2.7": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.06 },
|
|
370
|
+
"minimax-m3": { inputPer1M: 0.60, outputPer1M: 2.40, cachingPer1M: 0.12 },
|
|
371
|
+
"mistral-large-3:675b": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
372
|
+
"nemotron-3-nano:30b": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
373
|
+
"nemotron-3-super": { inputPer1M: 0.015, outputPer1M: 0.60, cachingPer1M: 0.015 },
|
|
374
|
+
"nemotron-3-ultra": { inputPer1M: 0.10, outputPer1M: 3.00, cachingPer1M: 0.10 },
|
|
377
375
|
|
|
378
376
|
// OpenCode Zen free models — mirrors MODEL_PRICING in src/types.ts
|
|
379
|
-
"big-pickle":
|
|
380
|
-
"mimo-v2.5-free":
|
|
381
|
-
"ling-3.0-flash-fin-free":
|
|
382
|
-
"nemotron-3-ultra-free":
|
|
383
|
-
"nemotron-3.5-lightning-free":
|
|
377
|
+
"big-pickle": { inputPer1M: 0.00, outputPer1M: 0.00 },
|
|
378
|
+
"mimo-v2.5-free": { inputPer1M: 0.00, outputPer1M: 0.00 },
|
|
379
|
+
"ling-3.0-flash-fin-free": { inputPer1M: 0.00, outputPer1M: 0.00 },
|
|
380
|
+
"nemotron-3-ultra-free": { inputPer1M: 0.00, outputPer1M: 0.00 },
|
|
381
|
+
"nemotron-3.5-lightning-free": { inputPer1M: 0.00, outputPer1M: 0.00 },
|
|
384
382
|
"muse-spark-1.3-contributor-free": { inputPer1M: 0.00, outputPer1M: 0.00 },
|
|
385
383
|
"ling-3.0-tiny-free": { inputPer1M: 0.05, outputPer1M: 0.20 },
|
|
386
384
|
"laguna-s-2.1-free": { inputPer1M: 0.20, outputPer1M: 0.80 },
|
|
387
385
|
|
|
388
386
|
// OpenAI Codex models — mirrors MODEL_PRICING in src/types.ts
|
|
389
|
-
"gpt-5.6-sol":
|
|
390
|
-
"gpt-5.6-terra": { inputPer1M: 2.
|
|
391
|
-
"gpt-5.6-luna":
|
|
387
|
+
"gpt-5.6-sol": { inputPer1M: 4.0, outputPer1M: 20.0, cachingPer1M: 0.40 },
|
|
388
|
+
"gpt-5.6-terra": { inputPer1M: 2.0, outputPer1M: 12.0, cachingPer1M: 0.20 },
|
|
389
|
+
"gpt-5.6-luna": { inputPer1M: 0.20, outputPer1M: 1.20, cachingPer1M: 0.02 },
|
|
390
|
+
"gemini-4-argon": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
391
|
+
"gemini-4-argon-low": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
392
|
+
"gemini-4-argon-medium": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
393
|
+
"gemini-4-argon-high": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.1 },
|
|
394
|
+
"gpt-6-astra": { inputPer1M: 10.0, outputPer1M: 50.0, cachingPer1M: 1.0 },
|
|
395
|
+
"gpt-6-sol": { inputPer1M: 2.0, outputPer1M: 10.0, cachingPer1M: 0.2 },
|
|
396
|
+
"gpt-6-luna": { inputPer1M: 0.1, outputPer1M: 0.5, cachingPer1M: 0.01 },
|
|
397
|
+
"deepseek-v4.1-flash": { inputPer1M: 0.30, outputPer1M: 1.20, cachingPer1M: 0.006 },
|
|
398
|
+
"glm-5.3": { inputPer1M: 1.40, outputPer1M: 4.40, cachingPer1M: 0.26 },
|
|
399
|
+
"glm-5.3-flash": { inputPer1M: 0.15, outputPer1M: 0.50, cachingPer1M: 0.03 },
|
|
400
|
+
"gemma4": { inputPer1M: 0.14, outputPer1M: 0.40, cachingPer1M: 0.05 },
|
|
401
|
+
"mistral-large-4": { inputPer1M: 0.68, outputPer1M: 2.09, cachingPer1M: 0.07 },
|
|
402
|
+
"mistral-large-3": { inputPer1M: 0.50, outputPer1M: 1.50 },
|
|
403
|
+
"nemotron-3-nano": { inputPer1M: 0.06, outputPer1M: 0.24 },
|
|
404
|
+
"deepseek-v4-pro:0813": { inputPer1M: 1.74, outputPer1M: 3.48 },
|
|
392
405
|
};
|
|
393
406
|
|
|
394
407
|
function getModelPricing(model) {
|