dsh-context-compression-improved 0.8.0-beta.1 → 0.8.0-beta.3
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.de.md +539 -0
- package/CHANGELOG.es.md +547 -0
- package/CHANGELOG.fr.md +534 -0
- package/CHANGELOG.it.md +536 -0
- package/CHANGELOG.md +15 -0
- package/CHANGELOG.ru.md +517 -0
- package/README.de.md +98 -0
- package/README.es.md +98 -0
- package/README.fr.md +98 -0
- package/README.it.md +98 -0
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.ru.md +98 -0
- package/README.zh.md +1 -1
- package/docs/installation.de.md +104 -0
- package/docs/installation.es.md +104 -0
- package/docs/installation.fr.md +104 -0
- package/docs/installation.it.md +104 -0
- package/docs/installation.ja.md +78 -78
- package/docs/installation.ko.md +78 -78
- package/docs/installation.md +103 -103
- package/docs/installation.ru.md +104 -0
- package/docs/installation.zh.md +100 -100
- package/package.json +17 -16
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/advisor-state.js +503 -1
- package/packages/selector/lib/client.d.ts +14 -0
- package/packages/selector/lib/client.js +1053 -3
- package/packages/selector/lib/index.js +122 -2
- package/packages/selector/lib/pruner.js +87 -258
- package/packages/selector/lib/style.css +42 -0
- package/packages/selector/src/client/CompressionProfileSelector.module.css +199 -170
- package/packages/selector/src/client/index.ts +244 -213
- package/packages/selector/src/client/locales/de.ts +113 -0
- package/packages/selector/src/client/locales/es.ts +113 -0
- package/packages/selector/src/client/locales/fr.ts +113 -0
- package/packages/selector/src/client/locales/it.ts +113 -0
- package/packages/selector/src/client/locales/ja.ts +113 -0
- package/packages/selector/src/client/locales/ko.ts +113 -0
- package/packages/selector/src/client/locales/ru.ts +113 -0
- package/packages/selector/src/client/locales.ts +226 -196
- package/packages/selector/src/client/savings-card.tsx +150 -0
- package/packages/selector/src/client/settings-section.tsx +126 -124
- package/packages/selector/src/index.ts +547 -411
- package/packages/selector/src/pruner.ts +2505 -2421
- package/packages/selector/src/runtime/retrieve.ts +479 -457
- package/packages/selector/src/runtime/savings.ts +337 -0
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +192 -188
- package/packages/selector/tests/runtime/savings.spec.ts +120 -0
- package/tests/TEST_INVENTORY.md +41 -41
|
@@ -1,170 +1,199 @@
|
|
|
1
|
-
.settingsSection {
|
|
2
|
-
display: flex;
|
|
3
|
-
max-width: 720px;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 12px;
|
|
6
|
-
color: var(--dsw-alias-label-primary);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.settingsTitle {
|
|
10
|
-
margin: 0;
|
|
11
|
-
color: var(--dsw-alias-label-primary);
|
|
12
|
-
font-size: 16px;
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
line-height: 24px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.settingsDescription {
|
|
18
|
-
margin: 0;
|
|
19
|
-
color: var(--dsw-alias-label-tertiary);
|
|
20
|
-
font-size: 14px;
|
|
21
|
-
line-height: 22px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.root {
|
|
25
|
-
width: 100%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.profileGrid {
|
|
29
|
-
display: grid;
|
|
30
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
31
|
-
gap: 10px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.profileCard {
|
|
35
|
-
min-height: 112px;
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: 8px;
|
|
39
|
-
padding: 14px;
|
|
40
|
-
border: 1px solid var(--dsw-alias-border-l2);
|
|
41
|
-
border-radius: 10px;
|
|
42
|
-
background: transparent;
|
|
43
|
-
color: var(--dsw-alias-label-primary);
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
text-align: left;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.profileCard:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); }
|
|
49
|
-
.profileCard[aria-pressed="true"] { border-color: var(--dsw-alias-label-primary); }
|
|
50
|
-
.profileCard:active:not(:disabled) { transform: scale(.99); }
|
|
51
|
-
.profileCard:disabled { cursor: default; opacity: .6; }
|
|
52
|
-
.profileCard:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
53
|
-
.profileCardTop { display: flex; align-items: center; gap: 8px; }
|
|
54
|
-
.profileCardTitle { font-size: 14px; font-weight: 500; line-height: 20px; }
|
|
55
|
-
.profileCurrent { padding: 1px 6px; border-radius: 999px; background: var(--dsw-alias-label-primary); color: var(--dsw-alias-bg-base); font-size: 10px; line-height: 14px; }
|
|
56
|
-
.profileCardDetail { color: var(--dsw-alias-label-secondary); font-size: 12px; line-height: 18px; }
|
|
57
|
-
|
|
58
|
-
.button {
|
|
59
|
-
width: 100%;
|
|
60
|
-
min-height: 34px;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
gap: 8px;
|
|
64
|
-
padding: 6px 8px;
|
|
65
|
-
border: 1px solid var(--dsw-alias-border-l2);
|
|
66
|
-
border-radius: 10px;
|
|
67
|
-
background: transparent;
|
|
68
|
-
color: var(--dsw-alias-label-primary);
|
|
69
|
-
cursor: pointer;
|
|
70
|
-
text-align: left;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.button:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
|
74
|
-
.button:disabled { cursor: default; opacity: .6; }
|
|
75
|
-
|
|
76
|
-
.copy { flex: 1; min-width: 0; }
|
|
77
|
-
.label { font-size: 11px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
|
|
78
|
-
.value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 17px; }
|
|
79
|
-
.chevron { flex: none; color: var(--dsw-alias-label-secondary); }
|
|
80
|
-
|
|
81
|
-
.menuCopy { display: flex; min-width: 220px; flex-direction: column; gap: 2px; }
|
|
82
|
-
.menuTitle { font-size: 13px; line-height: 17px; }
|
|
83
|
-
.menuDetail { max-width: 290px; white-space: normal; font-size: 11px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
|
|
84
|
-
|
|
85
|
-
.error {
|
|
86
|
-
padding: 4px 8px 0;
|
|
87
|
-
color: var(--dsw-alias-state-error-primary);
|
|
88
|
-
font-size: 11px;
|
|
89
|
-
line-height: 15px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.unavailable {
|
|
93
|
-
padding: 4px 8px 0;
|
|
94
|
-
color: var(--dsw-alias-label-tertiary);
|
|
95
|
-
font-size: 11px;
|
|
96
|
-
line-height: 15px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.settingsHint {
|
|
100
|
-
padding: 4px 8px 0;
|
|
101
|
-
color: var(--dsw-alias-label-secondary);
|
|
102
|
-
font-size: 11px;
|
|
103
|
-
line-height: 15px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.pricing {
|
|
107
|
-
padding: 4px 8px 0;
|
|
108
|
-
color: var(--dsw-alias-label-tertiary);
|
|
109
|
-
font-size: 11px;
|
|
110
|
-
line-height: 15px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.custom {
|
|
114
|
-
margin-top: 16px;
|
|
115
|
-
padding: 16px 0 0;
|
|
116
|
-
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.customTitle { margin: 0 0 6px; font-size: 13px; line-height: 17px; }
|
|
120
|
-
.customNote { margin: 4px 0; color: var(--dsw-alias-label-tertiary); font-size: 11px; line-height: 15px; }
|
|
121
|
-
|
|
122
|
-
.stage {
|
|
123
|
-
margin: 12px 0 0;
|
|
124
|
-
padding: 12px 0 0;
|
|
125
|
-
border: 0;
|
|
126
|
-
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.stageToggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; }
|
|
130
|
-
.fieldGrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
|
|
131
|
-
.field { display: flex; min-width: 0; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--dsw-alias-label-secondary); font-size: 11px; line-height: 15px; }
|
|
132
|
-
.field input, .field select {
|
|
133
|
-
width: 100%;
|
|
134
|
-
min-width: 0;
|
|
135
|
-
min-height: 30px;
|
|
136
|
-
box-sizing: border-box;
|
|
137
|
-
padding: 4px 6px;
|
|
138
|
-
border: 1px solid var(--dsw-alias-border-l2);
|
|
139
|
-
border-radius: 7px;
|
|
140
|
-
background: var(--dsw-alias-bg-base);
|
|
141
|
-
color: var(--dsw-alias-label-primary);
|
|
142
|
-
}
|
|
143
|
-
.field input:focus-visible, .field select:focus-visible, .actions button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
144
|
-
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
|
|
145
|
-
.actions button { min-height: 30px; padding: 4px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 7px; background: transparent; color: var(--dsw-alias-label-primary); }
|
|
146
|
-
.actions button:active:not(:disabled) { transform: scale(.98); }
|
|
147
|
-
.actions button:disabled { opacity: .6; }
|
|
148
|
-
|
|
149
|
-
@media (max-width: 560px) {
|
|
150
|
-
.profileGrid { grid-template-columns: 1fr; }
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.autoCompact {
|
|
154
|
-
margin-top: 24px;
|
|
155
|
-
padding: 16px;
|
|
156
|
-
border: 1px solid rgba(128, 128, 128, 0.35);
|
|
157
|
-
border-radius: 8px;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.autoCompactTitle {
|
|
161
|
-
margin: 0 0 8px;
|
|
162
|
-
font-size: 15px;
|
|
163
|
-
font-weight: 600;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.autoCompactRisk {
|
|
167
|
-
margin: 8px 0 0;
|
|
168
|
-
font-size: 12px;
|
|
169
|
-
opacity: 0.9;
|
|
170
|
-
}
|
|
1
|
+
.settingsSection {
|
|
2
|
+
display: flex;
|
|
3
|
+
max-width: 720px;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
color: var(--dsw-alias-label-primary);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.settingsTitle {
|
|
10
|
+
margin: 0;
|
|
11
|
+
color: var(--dsw-alias-label-primary);
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
line-height: 24px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.settingsDescription {
|
|
18
|
+
margin: 0;
|
|
19
|
+
color: var(--dsw-alias-label-tertiary);
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
line-height: 22px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.root {
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.profileGrid {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
31
|
+
gap: 10px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.profileCard {
|
|
35
|
+
min-height: 112px;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 8px;
|
|
39
|
+
padding: 14px;
|
|
40
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
41
|
+
border-radius: 10px;
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: var(--dsw-alias-label-primary);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
text-align: left;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.profileCard:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); }
|
|
49
|
+
.profileCard[aria-pressed="true"] { border-color: var(--dsw-alias-label-primary); }
|
|
50
|
+
.profileCard:active:not(:disabled) { transform: scale(.99); }
|
|
51
|
+
.profileCard:disabled { cursor: default; opacity: .6; }
|
|
52
|
+
.profileCard:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
53
|
+
.profileCardTop { display: flex; align-items: center; gap: 8px; }
|
|
54
|
+
.profileCardTitle { font-size: 14px; font-weight: 500; line-height: 20px; }
|
|
55
|
+
.profileCurrent { padding: 1px 6px; border-radius: 999px; background: var(--dsw-alias-label-primary); color: var(--dsw-alias-bg-base); font-size: 10px; line-height: 14px; }
|
|
56
|
+
.profileCardDetail { color: var(--dsw-alias-label-secondary); font-size: 12px; line-height: 18px; }
|
|
57
|
+
|
|
58
|
+
.button {
|
|
59
|
+
width: 100%;
|
|
60
|
+
min-height: 34px;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 8px;
|
|
64
|
+
padding: 6px 8px;
|
|
65
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
66
|
+
border-radius: 10px;
|
|
67
|
+
background: transparent;
|
|
68
|
+
color: var(--dsw-alias-label-primary);
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
text-align: left;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.button:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
|
74
|
+
.button:disabled { cursor: default; opacity: .6; }
|
|
75
|
+
|
|
76
|
+
.copy { flex: 1; min-width: 0; }
|
|
77
|
+
.label { font-size: 11px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
|
|
78
|
+
.value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 17px; }
|
|
79
|
+
.chevron { flex: none; color: var(--dsw-alias-label-secondary); }
|
|
80
|
+
|
|
81
|
+
.menuCopy { display: flex; min-width: 220px; flex-direction: column; gap: 2px; }
|
|
82
|
+
.menuTitle { font-size: 13px; line-height: 17px; }
|
|
83
|
+
.menuDetail { max-width: 290px; white-space: normal; font-size: 11px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
|
|
84
|
+
|
|
85
|
+
.error {
|
|
86
|
+
padding: 4px 8px 0;
|
|
87
|
+
color: var(--dsw-alias-state-error-primary);
|
|
88
|
+
font-size: 11px;
|
|
89
|
+
line-height: 15px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.unavailable {
|
|
93
|
+
padding: 4px 8px 0;
|
|
94
|
+
color: var(--dsw-alias-label-tertiary);
|
|
95
|
+
font-size: 11px;
|
|
96
|
+
line-height: 15px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.settingsHint {
|
|
100
|
+
padding: 4px 8px 0;
|
|
101
|
+
color: var(--dsw-alias-label-secondary);
|
|
102
|
+
font-size: 11px;
|
|
103
|
+
line-height: 15px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.pricing {
|
|
107
|
+
padding: 4px 8px 0;
|
|
108
|
+
color: var(--dsw-alias-label-tertiary);
|
|
109
|
+
font-size: 11px;
|
|
110
|
+
line-height: 15px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.custom {
|
|
114
|
+
margin-top: 16px;
|
|
115
|
+
padding: 16px 0 0;
|
|
116
|
+
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.customTitle { margin: 0 0 6px; font-size: 13px; line-height: 17px; }
|
|
120
|
+
.customNote { margin: 4px 0; color: var(--dsw-alias-label-tertiary); font-size: 11px; line-height: 15px; }
|
|
121
|
+
|
|
122
|
+
.stage {
|
|
123
|
+
margin: 12px 0 0;
|
|
124
|
+
padding: 12px 0 0;
|
|
125
|
+
border: 0;
|
|
126
|
+
border-top: 1px solid var(--dsw-alias-border-l2);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.stageToggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; }
|
|
130
|
+
.fieldGrid { display: grid; grid-template-columns: 1fr; gap: 8px; }
|
|
131
|
+
.field { display: flex; min-width: 0; flex-direction: column; gap: 4px; margin-top: 8px; color: var(--dsw-alias-label-secondary); font-size: 11px; line-height: 15px; }
|
|
132
|
+
.field input, .field select {
|
|
133
|
+
width: 100%;
|
|
134
|
+
min-width: 0;
|
|
135
|
+
min-height: 30px;
|
|
136
|
+
box-sizing: border-box;
|
|
137
|
+
padding: 4px 6px;
|
|
138
|
+
border: 1px solid var(--dsw-alias-border-l2);
|
|
139
|
+
border-radius: 7px;
|
|
140
|
+
background: var(--dsw-alias-bg-base);
|
|
141
|
+
color: var(--dsw-alias-label-primary);
|
|
142
|
+
}
|
|
143
|
+
.field input:focus-visible, .field select:focus-visible, .actions button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
144
|
+
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
|
|
145
|
+
.actions button { min-height: 30px; padding: 4px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 7px; background: transparent; color: var(--dsw-alias-label-primary); }
|
|
146
|
+
.actions button:active:not(:disabled) { transform: scale(.98); }
|
|
147
|
+
.actions button:disabled { opacity: .6; }
|
|
148
|
+
|
|
149
|
+
@media (max-width: 560px) {
|
|
150
|
+
.profileGrid { grid-template-columns: 1fr; }
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.autoCompact {
|
|
154
|
+
margin-top: 24px;
|
|
155
|
+
padding: 16px;
|
|
156
|
+
border: 1px solid rgba(128, 128, 128, 0.35);
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.autoCompactTitle {
|
|
161
|
+
margin: 0 0 8px;
|
|
162
|
+
font-size: 15px;
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.autoCompactRisk {
|
|
167
|
+
margin: 8px 0 0;
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
opacity: 0.9;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.savingsCard {
|
|
173
|
+
margin-top: 14px;
|
|
174
|
+
padding: 10px 12px;
|
|
175
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
176
|
+
border-radius: 8px;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.savingsRow {
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: space-between;
|
|
185
|
+
align-items: baseline;
|
|
186
|
+
gap: 12px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.savingsNetPositive strong { color: #30d158; }
|
|
190
|
+
.savingsNetNegative strong { color: #ff9f0a; }
|
|
191
|
+
.savingsMuted { opacity: 0.66; font-size: 0.92em; }
|
|
192
|
+
|
|
193
|
+
.savingsBreakdown {
|
|
194
|
+
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
195
|
+
margin-top: 4px;
|
|
196
|
+
padding-top: 4px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.savingsNote { opacity: 0.5; font-size: 0.85em; margin-top: 4px; }
|