dsh-coding-subscription-oauth 0.5.6 → 0.5.7
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 +7 -0
- package/INSTALL.md +4 -4
- package/README.de.md +4 -4
- package/README.es.md +4 -4
- package/README.fr.md +4 -4
- package/README.ja.md +4 -4
- package/README.ko.md +4 -4
- package/README.md +4 -4
- package/README.pt-BR.md +4 -4
- package/README.ru.md +4 -4
- package/README.zh-CN.md +4 -4
- package/docs/02-architecture.md +1 -1
- package/docs/02-architecture.zh-CN.md +1 -1
- package/lib/client.js +1 -1
- package/lib/client.js.map +2 -2
- package/package.json +1 -1
- package/src/client/components/ProgressBar.tsx +1 -1
- package/src/client/components/ToggleSwitch.tsx +4 -2
- package/src/client/constants.ts +1 -1
- package/src/client/styles.ts +16 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-coding-subscription-oauth",
|
|
3
3
|
"description": "DeepSeek Harness coding-subscription OAuth: SuperGrok/Grok Build, ChatGPT Plus Codex, Kimi Code, Claude Code. Fixes AUTH API key is invalid, INVALID_REPLAY_STATE, grok-4.6 xhigh, Kimi Bearer vs x-api-key.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.7",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -11,7 +11,7 @@ export interface ProgressBarProps {
|
|
|
11
11
|
|
|
12
12
|
function barColor(percent: number): string {
|
|
13
13
|
if (percent >= 90) return "var(--dsw-alias-state-error-primary, #d92d20)";
|
|
14
|
-
if (percent >= 75) return "var(--dsw-alias-state-
|
|
14
|
+
if (percent >= 75) return "var(--dsw-alias-state-warn-primary, #e06c00)";
|
|
15
15
|
return "var(--dsw-alias-brand-primary, #1677ff)";
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ const trackStyle = (checked: boolean, disabled: boolean): CSSProperties => ({
|
|
|
19
19
|
borderRadius: 11,
|
|
20
20
|
flex: "0 0 auto",
|
|
21
21
|
background: checked
|
|
22
|
-
? "var(--dsw-alias-
|
|
22
|
+
? "var(--dsw-alias-button-primary-fill)"
|
|
23
23
|
: "var(--dsw-alias-border-l4, rgba(127, 127, 127, 0.45))",
|
|
24
24
|
opacity: disabled ? 0.5 : 1,
|
|
25
25
|
cursor: disabled ? "not-allowed" : "pointer",
|
|
@@ -35,7 +35,9 @@ const thumbStyle = (checked: boolean): CSSProperties => ({
|
|
|
35
35
|
width: 18,
|
|
36
36
|
height: 18,
|
|
37
37
|
borderRadius: "50%",
|
|
38
|
-
|
|
38
|
+
// Match DSH primary fill/foreground pairing so the thumb stays visible when
|
|
39
|
+
// dark theme inverts brand-primary to near-white.
|
|
40
|
+
background: checked ? "var(--dsw-alias-label-primary-foreground)" : "var(--dsw-alias-button-elevated-fill, #ffffff)",
|
|
39
41
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.25)",
|
|
40
42
|
transition: TRANSITION,
|
|
41
43
|
});
|
package/src/client/constants.ts
CHANGED
package/src/client/styles.ts
CHANGED
|
@@ -61,9 +61,11 @@ export const buttonStyle: CSSProperties = {
|
|
|
61
61
|
};
|
|
62
62
|
export const primaryButtonStyle: CSSProperties = {
|
|
63
63
|
...buttonStyle,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
// DSH dark theme flips brand-primary to near-white; use the button/foreground
|
|
65
|
+
// pair so primary CTAs stay readable in both light and dark mode.
|
|
66
|
+
border: "none",
|
|
67
|
+
background: "var(--dsw-alias-button-primary-fill)",
|
|
68
|
+
color: "var(--dsw-alias-label-primary-foreground)",
|
|
67
69
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.28)",
|
|
68
70
|
fontWeight: 600,
|
|
69
71
|
};
|
|
@@ -234,9 +236,9 @@ export const stepNumberStyle: CSSProperties = {
|
|
|
234
236
|
};
|
|
235
237
|
export const stepNumberActiveStyle: CSSProperties = {
|
|
236
238
|
...stepNumberStyle,
|
|
237
|
-
background: "var(--dsw-alias-
|
|
238
|
-
borderColor: "var(--dsw-alias-
|
|
239
|
-
color: "
|
|
239
|
+
background: "var(--dsw-alias-button-primary-fill)",
|
|
240
|
+
borderColor: "var(--dsw-alias-button-primary-fill)",
|
|
241
|
+
color: "var(--dsw-alias-label-primary-foreground)",
|
|
240
242
|
};
|
|
241
243
|
|
|
242
244
|
export type StatusTone = "success" | "error" | "warning" | "info" | "neutral";
|
|
@@ -248,11 +250,15 @@ export function statusToneColor(tone: StatusTone): string {
|
|
|
248
250
|
case "error":
|
|
249
251
|
return "var(--dsw-alias-state-error-primary, #d92d20)";
|
|
250
252
|
case "warning":
|
|
251
|
-
|
|
253
|
+
// DSH token is `state-warn-*` (not `state-warning-*`).
|
|
254
|
+
return "var(--dsw-alias-state-warn-primary, #e06c00)";
|
|
252
255
|
case "info":
|
|
256
|
+
// Accent/text color (not a solid fill + white text pair).
|
|
253
257
|
return "var(--dsw-alias-brand-primary, #1677ff)";
|
|
254
258
|
default:
|
|
255
|
-
|
|
259
|
+
// Prefer tertiary over dimmed: dimmed is near-invisible on light cards
|
|
260
|
+
// and too dark on dark cards.
|
|
261
|
+
return "var(--dsw-alias-label-tertiary, #81858c)";
|
|
256
262
|
}
|
|
257
263
|
}
|
|
258
264
|
|
|
@@ -279,14 +285,14 @@ export function dotStyle(
|
|
|
279
285
|
installed = true,
|
|
280
286
|
): CSSProperties {
|
|
281
287
|
const color = !installed
|
|
282
|
-
? "var(--dsw-alias-label-
|
|
288
|
+
? "var(--dsw-alias-label-tertiary, #81858c)"
|
|
283
289
|
: status === "signed-in" || status === "available"
|
|
284
290
|
? "var(--dsw-alias-state-success-primary, #22a06b)"
|
|
285
291
|
: status === "error"
|
|
286
292
|
? "var(--dsw-alias-state-error-primary, #d92d20)"
|
|
287
293
|
: status === "signing-in" || status === "loading"
|
|
288
294
|
? "var(--dsw-alias-brand-primary, #1677ff)"
|
|
289
|
-
: "var(--dsw-alias-label-
|
|
295
|
+
: "var(--dsw-alias-label-tertiary, #81858c)";
|
|
290
296
|
return { width: 9, height: 9, borderRadius: "50%", flex: "0 0 auto", background: color };
|
|
291
297
|
}
|
|
292
298
|
|