@kenz1117/dsh-ui-usage-billing 1.2.2 → 1.2.4

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
@@ -345,7 +345,7 @@ const GEMINI_PEAK_HOURS = "Standard / Flex";
345
345
  const MODEL_CATALOG = [
346
346
  {
347
347
  key: "flash",
348
- name: "DeepSeek V4 Flash",
348
+ name: "DeepSeek V4.1 Flash",
349
349
  provider: "DeepSeek",
350
350
  colorVar: "dsw-static-blue-500",
351
351
  price: {
@@ -366,6 +366,7 @@ const MODEL_CATALOG = [
366
366
  name: "DeepSeek V4 Flash Vision (Exp)",
367
367
  provider: "DeepSeek",
368
368
  colorVar: "dsw-static-blue-500",
369
+ retired: true,
369
370
  price: {
370
371
  currency: "CNY",
371
372
  input: 2,
@@ -315,6 +315,11 @@ export interface ModelEntry {
315
315
  uncatalogued?: boolean;
316
316
  /** 该条目当前按用户自定义单价计价(设置面板可维护);费率表标注「自定义」。 */
317
317
  userPriced?: boolean;
318
+ /**
319
+ * 厂商已下线的模型(请求由继任型号服务、按继任单价计):不进费率表面板,
320
+ * 目录条目与历史回算保留——存量用量仍按原键计价与显示,删条目会破坏历史计算。
321
+ */
322
+ retired?: boolean;
318
323
  }
319
324
  export declare const MODEL_CATALOG: readonly ModelEntry[];
320
325
  /**
@@ -362,7 +367,9 @@ export declare function applyPromo(entry: ModelEntry, nowMs: number): ModelEntry
362
367
  * 会把费率表撑爆;它们只作为目录外模型的计价回退源(见 {@link livePriceOf} /
363
368
  * {@link modelOf})。探活模型在此逐个对价:内置已有的跳过去重;目录外但
364
369
  * models.dev 有价的按归一化 id 复用其 USD 价;两者皆无的标 `uncatalogued`。
365
- * 内置条目按 nowMs 折算限时促销(生效中的条目显示折后单价,过期自动恢复刊例价)。
370
+ * 内置条目按 nowMs 折算限时促销(生效中的条目显示折后单价,过期自动恢复刊例价),
371
+ * 应用路由分界期的现行价覆盖(V4 Pro 见 {@link applyRoutingDisplay}),并滤除
372
+ * 已下线条目(retired:官方下线的型号不进面板,目录与历史回算保留)。
366
373
  * @param nowMs - 促销判定时刻;缺省当前时刻。
367
374
  */
368
375
  export declare function catalogEntries(nowMs?: number): readonly ModelEntry[];
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.2.2",
4
+ "version": "1.2.4",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "deepseek",