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/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.6",
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-warning-primary, #e06c00)";
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-brand-primary, #315fc7)"
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
- background: "#ffffff",
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
  });
@@ -203,4 +203,4 @@ export const CONSUMED_PREVIEW_CODES = new Set([
203
203
  "unsafe_destination",
204
204
  ]);
205
205
 
206
- export const PLUGIN_VERSION = "0.5.6";
206
+ export const PLUGIN_VERSION = "0.5.7";
@@ -61,9 +61,11 @@ export const buttonStyle: CSSProperties = {
61
61
  };
62
62
  export const primaryButtonStyle: CSSProperties = {
63
63
  ...buttonStyle,
64
- borderColor: "var(--dsw-alias-brand-primary, #315fc7)",
65
- background: "var(--dsw-alias-brand-primary, #315fc7)",
66
- color: "#ffffff",
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-brand-primary, #315fc7)",
238
- borderColor: "var(--dsw-alias-brand-primary, #315fc7)",
239
- color: "#ffffff",
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
- return "var(--dsw-alias-state-warning-primary, #e06c00)";
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
- return "var(--dsw-alias-label-dimmed, #9aa0a6)";
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-dimmed, #9aa0a6)"
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-dimmed, #9aa0a6)";
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