@kenz1117/dsh-ui-usage-billing 1.0.33 → 1.0.35

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/lib/index.js CHANGED
@@ -1781,7 +1781,8 @@ const DEFAULT_SUBSCRIPTION_PROVIDERS = [
1781
1781
  "xiaomi-token-plan-ams",
1782
1782
  "xiaomi-token-plan-cn",
1783
1783
  "xiaomi-token-plan-sgp",
1784
- "tencent-token-plan"
1784
+ "tencent-token-plan",
1785
+ "grok"
1785
1786
  ];
1786
1787
  /**
1787
1788
  * 官方渠道 provider id 判定:`deepseek` 前缀(DeepSeek 官方直连)视为官方,
@@ -4356,10 +4357,11 @@ const SUBSCRIPTION_DISPLAY_NAMES = {
4356
4357
  "minimax-token-plan-cn": "MiniMax Token Plan(国内)",
4357
4358
  "minimax-cn": "MiniMax Token Plan(国内)",
4358
4359
  "openrouter": "OpenRouter",
4359
- "tencent-token-plan": "腾讯云 Token Plan"
4360
+ "tencent-token-plan": "腾讯云 Token Plan",
4361
+ "grok": "Grok(X Premium)"
4360
4362
  };
4361
4363
  /** 订阅类 provider id 判定:带 coding / agent-plan / token-plan 后缀,或已知订阅通道。 */
4362
- const SUBSCRIPTION_ID_RE = /* @__PURE__ */ new RegExp("(?:^|-)(?:coding|agent[-_]?plan|token[-_]?plan)(?:$|-|_)|^(?:opencode|opencode-go|kimi-coding|zai-coding|minimax|minimax-cn|minimax-token-plan|minimax-token-plan-cn|openrouter)", "i");
4364
+ const SUBSCRIPTION_ID_RE = /* @__PURE__ */ new RegExp("(?:^|-)(?:coding|agent[-_]?plan|token[-_]?plan)(?:$|-|_)|^(?:opencode|opencode-go|kimi-coding|zai-coding|minimax|minimax-cn|minimax-token-plan|minimax-token-plan-cn|openrouter|grok)", "i");
4363
4365
  /** 是否是订阅类 provider id(如 kimi-coding、xiaomi-token-plan-cn)。 */
4364
4366
  function isSubscriptionProviderId(providerId) {
4365
4367
  if (SUBSCRIPTION_ID_RE.test(providerId)) return true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kenz1117/dsh-ui-usage-billing",
3
3
  "description": "Usage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.",
4
- "version": "1.0.33",
4
+ "version": "1.0.35",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "deepseek",