@laoyuehanni/dsh-token-usage 0.4.1 → 0.4.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.
Files changed (79) hide show
  1. package/README.md +4 -12
  2. package/README.zh.md +4 -12
  3. package/docs/pricing.md +3 -13
  4. package/lib/client/PricingDialog.d.ts +51 -0
  5. package/lib/client/PricingDialog.d.ts.map +1 -0
  6. package/lib/client/PricingDialog.js +127 -0
  7. package/lib/client/PricingDialog.js.map +1 -0
  8. package/lib/client/PricingOverviewDialog.d.ts +76 -0
  9. package/lib/client/PricingOverviewDialog.d.ts.map +1 -0
  10. package/lib/client/PricingOverviewDialog.js +361 -0
  11. package/lib/client/PricingOverviewDialog.js.map +1 -0
  12. package/lib/client/SessionTable.d.ts +39 -0
  13. package/lib/client/SessionTable.d.ts.map +1 -0
  14. package/lib/client/SessionTable.js +181 -0
  15. package/lib/client/SessionTable.js.map +1 -0
  16. package/lib/client/TokenUsageCard.d.ts.map +1 -1
  17. package/lib/client/TokenUsageCard.js +4 -1
  18. package/lib/client/TokenUsageCard.js.map +1 -1
  19. package/lib/client/TokenUsageSection.d.ts +17 -9
  20. package/lib/client/TokenUsageSection.d.ts.map +1 -1
  21. package/lib/client/TokenUsageSection.js +67 -127
  22. package/lib/client/TokenUsageSection.js.map +1 -1
  23. package/lib/client/format.d.ts.map +1 -1
  24. package/lib/client/format.js +12 -4
  25. package/lib/client/format.js.map +1 -1
  26. package/lib/client/index.d.ts +3 -2
  27. package/lib/client/index.d.ts.map +1 -1
  28. package/lib/client/index.js +23 -3
  29. package/lib/client/index.js.map +1 -1
  30. package/lib/client/locales.d.ts +35 -2
  31. package/lib/client/locales.d.ts.map +1 -1
  32. package/lib/client/locales.js +70 -4
  33. package/lib/client/locales.js.map +1 -1
  34. package/lib/client.js +1438 -317
  35. package/lib/client.js.map +1 -1
  36. package/lib/index.d.ts.map +1 -1
  37. package/lib/index.js +59 -20
  38. package/lib/index.js.map +1 -1
  39. package/lib/migrate.d.ts +3 -2
  40. package/lib/migrate.d.ts.map +1 -1
  41. package/lib/migrate.js +4 -2
  42. package/lib/migrate.js.map +1 -1
  43. package/lib/pricing.d.ts +63 -21
  44. package/lib/pricing.d.ts.map +1 -1
  45. package/lib/pricing.js +82 -53
  46. package/lib/pricing.js.map +1 -1
  47. package/lib/rollup.d.ts +7 -1
  48. package/lib/rollup.d.ts.map +1 -1
  49. package/lib/rollup.js +15 -0
  50. package/lib/rollup.js.map +1 -1
  51. package/lib/session-meta.d.ts +68 -0
  52. package/lib/session-meta.d.ts.map +1 -0
  53. package/lib/session-meta.js +174 -0
  54. package/lib/session-meta.js.map +1 -0
  55. package/lib/stats-route.d.ts +22 -0
  56. package/lib/stats-route.d.ts.map +1 -1
  57. package/lib/stats-route.js +93 -12
  58. package/lib/stats-route.js.map +1 -1
  59. package/lib/stats.d.ts +57 -11
  60. package/lib/stats.d.ts.map +1 -1
  61. package/lib/stats.js +239 -26
  62. package/lib/stats.js.map +1 -1
  63. package/lib/sync-state.d.ts +42 -10
  64. package/lib/sync-state.d.ts.map +1 -1
  65. package/lib/sync-state.js +61 -19
  66. package/lib/sync-state.js.map +1 -1
  67. package/lib/sync.d.ts +122 -15
  68. package/lib/sync.d.ts.map +1 -1
  69. package/lib/sync.js +142 -20
  70. package/lib/sync.js.map +1 -1
  71. package/lib/usage-log.d.ts +35 -0
  72. package/lib/usage-log.d.ts.map +1 -1
  73. package/lib/usage-log.js +111 -0
  74. package/lib/usage-log.js.map +1 -1
  75. package/lib/wire.d.ts +117 -11
  76. package/lib/wire.d.ts.map +1 -1
  77. package/lib/wire.js +4 -1
  78. package/lib/wire.js.map +1 -1
  79. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  [简体中文](./README.zh.md) | English
8
8
 
9
- A dsh usage plugin that displays model token usage right in the Web UI. After installation, open **Settings** (the gear icon in the sidebar) and you'll find the **Token Usage** page — summary cards (with cost), a daily total-token line chart, a per-model breakdown, and per-model pricing dialogs, all filterable by date range and model, exactly as shown in the screenshot above.
9
+ A dsh usage plugin that displays model token usage right in the Web UI. After installation, open **Settings** (the gear icon in the sidebar) and you'll find the **Token Usage** page — summary cards (with cost), a daily total-token line chart, a per-model / per-session breakdown, and per-model pricing dialogs, all filterable by date range and model, exactly as shown in the screenshot above.
10
10
 
11
11
  [dsh]: https://github.com/cordiverse/dsh
12
12
 
@@ -24,26 +24,18 @@ Repo: <https://github.com/LaoYueHanNi/dsh-token-usage>
24
24
  ## Features
25
25
 
26
26
  - **Live recording**: every provider-billed model call is recorded as it happens — tokens, cost, model, session — context-compaction calls included.
27
- - **Web stats page**: filters (date range + model + `1d`/`7d`/`30d` shortcuts), summary cards, daily trend chart (hover a day for its total), per-model table.
27
+ - **Web stats page**: filters (date range + model + `1d`/`7d`/`30d` shortcuts), summary cards, daily trend chart (hover a day for its total), per-model table. The table block toggles between **per-model / per-session**: the session table groups by working directory (switchable to a flat list), sorts by total tokens / cost / recent activity on header click, and **Ctrl+click** on a session row jumps straight to that session's usage tab.
28
28
  - **Session usage tab**: the conversation pane gains a **Usage** view tab (beside Chat / Trajectory) with the active session's dashboard — six stat cards (successful requests with a failure pill, cost, cache hit rate, average time-to-first-token, generation throughput, total tokens), a 4-bucket token strip, an hourly trend chart, and a per-model table. A scope switch toggles **Session / With subagents**, and the subagent table drills into each child and back. Hovering the failure pill breaks failures down per class (rate limited, server error, context exceeded, …).
29
29
 
30
30
  ![Session Usage tab](docs/images/usage-tab.png)
31
31
 
32
- - **Cost figures & model pricing**: per-request cost is computed live from per-model rates (¥ per million tokens); unpriced models warn and count as ¥0. Every priced model's name carries a **rates button** opening its full price table. Rates sync from the cloud feed on every startup; `pricing.json` holds manual overrides — see [Model pricing](#model-pricing).
32
+ - **Cost figures & model pricing**: per-request cost is computed live from per-model rates (¥ per million tokens); unpriced models warn and count as ¥0. Every priced model's name carries a **rates button** opening its full price table, and the filter row carries a **pricing table** entry opening an overview of every model in the cloud feed — searchable, with simulated billing and expandable effective rates. Rates sync from the cloud feed on every startup — see [Model pricing](#model-pricing).
33
33
  - **Provider quota**: an input-bar button (left of the model chip) shows the selected provider's remaining quota. See [Provider quota](#provider-quota).
34
34
  - **History backfill**: the first startup syncs requests that happened before installation (idempotent); unreadable session logs are skipped and counted, never fatal to the sync.
35
35
 
36
36
  ## Model pricing
37
37
 
38
- Costs are billed per record at its own timestamp, and a rates update re-prices the whole history instantly. Rates come from two files merged on read — a cloud mirror auto-synced on every startup, and a hand-edited `pricing.json` whose entries always win (per model, wholesale):
39
-
40
- ```json
41
- {
42
- "deepseek-chat": { "inputPerMillion": 2, "outputPerMillion": 8, "cacheReadPerMillion": 0.5 }
43
- }
44
- ```
45
-
46
- Broken files degrade the affected models to unpriced without breaking the stats page. Default location: `~/.dsh/token-usage/`. Billing rule chain, cloud feed format, and self-hosted mirror URLs: [docs/pricing.md](./docs/pricing.md).
38
+ Costs are billed per record at its own timestamp, and a rates update re-prices the whole history instantly. The single source is a cloud mirror auto-synced on every startup — pricing corrections belong upstream in the [model-price-table](https://github.com/LaoYueHanNi/model-price-table) feed, so every user benefits at once. A hand-edited `pricing.json` is no longer read; if you maintain one it is silently ignored after upgrading (the file is left on disk). Upgrading from 0.4.1 or earlier to 0.4.2 triggers a one-time full rebuild of the usage rollup the first time the stats page is read — the larger the history, the longer it takes; this is expected. Broken mirrors degrade the affected models to unpriced without breaking the stats page. Default location: `~/.dsh/token-usage/`. Billing rule chain, cloud feed format, and self-hosted mirror URLs: [docs/pricing.md](./docs/pricing.md).
47
39
 
48
40
  ## Configuration
49
41
 
package/README.zh.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  简体中文 | [English](./README.md)
8
8
 
9
- 一个 [dsh] 用量插件:在 Web 界面直接展示模型 token 用量。安装后打开**设置**(侧栏底部齿轮),即可看到「Token 用量」页 —— 汇总卡片(含费用)、按日总 token 折线图、按模型明细表与定价弹窗,支持按日期区间和模型筛选,效果见上图。
9
+ 一个 [dsh] 用量插件:在 Web 界面直接展示模型 token 用量。安装后打开**设置**(侧栏底部齿轮),即可看到「Token 用量」页 —— 汇总卡片(含费用)、按日总 token 折线图、按模型 / 按会话明细表与定价弹窗,支持按日期区间和模型筛选,效果见上图。
10
10
 
11
11
  [dsh]: https://github.com/cordiverse/dsh
12
12
 
@@ -24,26 +24,18 @@
24
24
  ## 功能
25
25
 
26
26
  - **实时记录**:每一次 provider 计费调用发生即记录——token、费用、模型、会话,上下文压缩调用同样计入。
27
- - **Web 统计页**:过滤条(日期区间 + 模型下拉 + `1d`/`7d`/`30d` 快捷区间)、汇总卡片、按日趋势图(悬停查看当日总量)、按模型明细表。
27
+ - **Web 统计页**:过滤条(日期区间 + 模型下拉 + `1d`/`7d`/`30d` 快捷区间)、汇总卡片、按日趋势图(悬停查看当日总量)、按模型明细表。明细表可在**按模型 / 按会话**间切换:按会话表按工作区目录分组(可切为列表视图),总 token / 费用 / 最近活跃列可点击排序,**Ctrl+点击**会话行直达该会话的用量页。
28
28
  - **会话用量页签**:对话面板新增「用量」视图页签(与聊天 / 轨迹并列),展示当前会话的 dashboard —— 六张数值卡(成功请求数带失败胶囊、费用、缓存命中率、首 token 平均延迟、出字速度、总 token)+ 四项 token 明细条 + 按小时趋势图 + 按模型表。「本会话 / 含子会话」一键切换范围,子会话表逐行钻取并可逐级返回。悬停失败胶囊可看按失败类别的明细(限流 / 网络异常 / 上下文超限 等逐一计数)。
29
29
 
30
30
  ![会话用量页签](docs/images/usage-tab_zh.png)
31
31
 
32
- - **费用统计与模型定价**:按模型单价(¥/百万 token)逐条实时计费,未定价模型高亮提示(费用按 ¥0 计)。定价模型的名字旁有**「定价」小按钮**,点击弹窗展示该模型的完整价格表。价格每次启动自动从云端同步,`pricing.json` 手工覆盖——详见「[模型定价](#模型定价)」。
32
+ - **费用统计与模型定价**:按模型单价(¥/百万 token)逐条实时计费,未定价模型高亮提示(费用按 ¥0 计)。定价模型的名字旁有**「定价」小按钮**,点击弹窗展示该模型的完整价格表;过滤条行尾另有**「定价表」**入口,弹窗内可浏览云端定价的全部模型——搜索、模拟计费、展开当前生效价。价格每次启动自动从云端同步——详见「[模型定价](#模型定价)」。
33
33
  - **供应商配额**:输入栏模型选择器左侧的配额按钮,跟随当前选中的供应商展示套餐余量。详见「[供应商配额](#供应商配额)」。
34
34
  - **历史补齐**:首次启动自动同步安装前已发生的请求(幂等);无法解析的会话日志跳过并计数,绝不中断同步。
35
35
 
36
36
  ## 模型定价
37
37
 
38
- 每条记录按自身时间戳精确计费,价格更新后全部历史即时重算。定价来自两个文件,读取时合并——启动自动同步的云端镜像,加上手工编辑的 `pricing.json`(条目永远优先,整模型覆盖):
39
-
40
- ```json
41
- {
42
- "deepseek-chat": { "inputPerMillion": 2, "outputPerMillion": 8, "cacheReadPerMillion": 0.5 }
43
- }
44
- ```
45
-
46
- 文件损坏只影响对应模型(按未定价处理),不影响统计页。默认目录:`~/.dsh/token-usage/`。计费规则链、云端 feed 格式与自建镜像地址:[docs/pricing.md](./docs/pricing.md)。
38
+ 每条记录按自身时间戳精确计费,价格更新后全部历史即时重算。定价仅来自启动自动同步的云端镜像——价格修订请去上游 [model-price-table](https://github.com/LaoYueHanNi/model-price-table) 仓库提 PR,全用户受益。手工编辑的 `pricing.json` 升级后不再被读取(文件保留在磁盘上,不会主动删除)。从 0.4.1 或更早版本升级到 0.4.2 后,首次打开统计页会触发一次历史汇总的全量重建——历史越大耗时越久,属一次性预期行为。镜像损坏只影响对应模型(按未定价处理),不影响统计页。默认目录:`~/.dsh/token-usage/`。计费规则链、云端 feed 格式与自建镜像地址:[docs/pricing.md](./docs/pricing.md)。
47
39
 
48
40
  ## 配置
49
41
 
package/docs/pricing.md CHANGED
@@ -15,14 +15,13 @@ README 的深度延伸:计费规则链、价格文件格式、fork 维护者的
15
15
  - 档位匹配以上下文 token 量近似:本请求 `input + cacheRead + cacheWrite`。
16
16
  - 定价表更新价格后,全部历史按新价即时重算,无需重建数据。
17
17
 
18
- ## 价格来源:两个文件,读取时合并
18
+ ## 价格来源:云端镜像
19
19
 
20
20
  | 文件 | 来源 | 说明 |
21
21
  |---|---|---|
22
22
  | `pricing.ccsa.json` | 启动自动拉取 | 云端 model-price-table(cc-switch-analyzer 同源)的本地镜像,每次重启 dsh 自动刷新,失败时沿用旧镜像 |
23
- | `pricing.json` | 手工编辑 | 覆盖同步价或补充缺失模型,手动微调不会被同步冲掉 |
24
23
 
25
- `pricing.json` 的条目永远优先,**整模型覆盖**(该模型不再使用云端规则,可借此禁用其云端定价)。文件损坏或条目非法时对应模型按未定价处理,不影响统计页;保存后刷新页面即可生效。默认数据目录:`~/.dsh/token-usage/`(配置了 `path` 时以该目录为准)。
24
+ 只有这一份来源:启动自动同步的云端镜像。文件损坏或非 RMB 时按未定价处理,不影响统计页;保存到磁盘上的旧版 `pricing.json` 升级后会被忽略(只是不再被读取,文件不被主动删除)。默认数据目录:`~/.dsh/token-usage/`(配置了 `path` 时以该目录为准)。
26
25
 
27
26
  ### 云端 feed 格式
28
27
 
@@ -41,16 +40,6 @@ README 的深度延伸:计费规则链、价格文件格式、fork 维护者的
41
40
  }
42
41
  ```
43
42
 
44
- ### pricing.json 扁平格式
45
-
46
- 键为模型 id、与记录中的 `model` 完全一致;`inputPerMillion`、`outputPerMillion` 必填,`cacheReadPerMillion` / `cacheWritePerMillion` 可选、缺省按输入价计费:
47
-
48
- ```json
49
- {
50
- "deepseek-chat": { "inputPerMillion": 2, "outputPerMillion": 8, "cacheReadPerMillion": 0.5 }
51
- }
52
- ```
53
-
54
43
  ## 镜像与区域配置(fork 维护者)
55
44
 
56
45
  启动同步默认拉 **Gitee**(中国大陆内速度快),`pricingRegion: overseas` 切到同一张表的 **GitHub 镜像**(Web 设置里的「定价区域」下拉等效)。不做 IP 探测,部署时手动选一次。保存地区切换后立即重新同步;**不自动回退**:选定的镜像拉取失败就沿用旧镜像,等待下次同步重试。
@@ -77,3 +66,4 @@ README 的深度延伸:计费规则链、价格文件格式、fork 维护者的
77
66
 
78
67
  - [峰谷 daysOfWeek 语义](./decisions/implemented/2026-08-29-daily-slots-days-of-week.md)
79
68
  - [上下文压缩请求计费](./decisions/implemented/2026-09-02-compaction-billing.md)
69
+ - [废除手工 pricing.json 定价文件](./decisions/implemented/2026-09-05-abolish-manual-pricing-json.md)
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The pricing dialog of one model: a native `<dialog>` (Esc closes, focus
3
+ * is trapped, the backdrop dims, and the top layer renders it above the
4
+ * table's scroll shell) holding that model's full price table — billing
5
+ * conditions (default / context tiers / peak slots / time rules) × the four
6
+ * per-million rates, converted for a USD view. Shared by the settings
7
+ * page's per-model “定价” affordance and the pricing-overview dialog's
8
+ * drill-in rows; a native showModal naturally stacks a second instance
9
+ * above the overview.
10
+ *
11
+ * @module token-usage/client/PricingDialog
12
+ */
13
+ import type { ReactNode } from 'react';
14
+ import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
15
+ import type { ModelPricing, ModelRates, RateWindow } from '../wire.ts';
16
+ import type { CurrencyView } from './format.ts';
17
+ /** The four base rates of one model as display text (symbol included,
18
+ * converted for a USD view); a missing cache rate bills at the input rate. */
19
+ export declare function billedRates(rates: ModelPricing, view: CurrencyView): {
20
+ input: string;
21
+ output: string;
22
+ cacheRead: string;
23
+ cacheWrite: string;
24
+ };
25
+ /** `HH:MM-HH:MM` of one peak window (half-open, local minutes). */
26
+ export declare function windowText(window: RateWindow): string;
27
+ /**
28
+ * One model's price table: rows are billing conditions — grouped into the
29
+ * model root (“常规”, omitted when it is the only group) and one group per
30
+ * time rule with its date window — so tier, peak, and time-rule pricing
31
+ * each show when they apply and what they bill. The structure mirrors
32
+ * {@link resolveRate}'s node chain.
33
+ */
34
+ export declare function ModelPriceTable({ rules, view, t }: {
35
+ rules: ModelRates;
36
+ view: CurrencyView;
37
+ t: TranslateNS<'token-usage'>;
38
+ }): ReactNode;
39
+ /**
40
+ * The pricing dialog of one model. Mounts only while a model is selected;
41
+ * every close path funnels through the dialog's `close` event, which clears
42
+ * the selection and unmounts it.
43
+ */
44
+ export declare function PricingDialog({ model, rules, view, onClose, t }: {
45
+ model: string;
46
+ rules: ModelRates;
47
+ view: CurrencyView;
48
+ onClose: () => void;
49
+ t: TranslateNS<'token-usage'>;
50
+ }): ReactNode;
51
+ //# sourceMappingURL=PricingDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PricingDialog.d.ts","sourceRoot":"","sources":["../../src/client/PricingDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAA0B,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAG9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C;8EAC8E;AAC9E,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAO7I;AAED,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAIrD;AAyCD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;IAClD,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,YAAY,CAAA;IAClB,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CAC9B,GAAG,SAAS,CA2DZ;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CAC9B,GAAG,SAAS,CA0CZ"}
@@ -0,0 +1,127 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * The pricing dialog of one model: a native `<dialog>` (Esc closes, focus
4
+ * is trapped, the backdrop dims, and the top layer renders it above the
5
+ * table's scroll shell) holding that model's full price table — billing
6
+ * conditions (default / context tiers / peak slots / time rules) × the four
7
+ * per-million rates, converted for a USD view. Shared by the settings
8
+ * page's per-model “定价” affordance and the pricing-overview dialog's
9
+ * drill-in rows; a native showModal naturally stacks a second instance
10
+ * above the overview.
11
+ *
12
+ * @module token-usage/client/PricingDialog
13
+ */
14
+ import { useEffect, useRef } from 'react';
15
+ import { dayKeyOf } from "./day.js";
16
+ import { formatRate, formatRateWithSymbol, formatTokens } from "./format.js";
17
+ import styles from './PricingDialog.module.css';
18
+ /** The four base rates of one model as display text (symbol included,
19
+ * converted for a USD view); a missing cache rate bills at the input rate. */
20
+ export function billedRates(rates, view) {
21
+ return {
22
+ input: formatRateWithSymbol(rates.inputPerMillion, view),
23
+ output: formatRateWithSymbol(rates.outputPerMillion, view),
24
+ cacheRead: formatRateWithSymbol(rates.cacheReadPerMillion ?? rates.inputPerMillion, view),
25
+ cacheWrite: formatRateWithSymbol(rates.cacheWritePerMillion ?? rates.inputPerMillion, view),
26
+ };
27
+ }
28
+ /** `HH:MM-HH:MM` of one peak window (half-open, local minutes). */
29
+ export function windowText(window) {
30
+ const clock = (minute) => `${String(Math.floor(minute / 60)).padStart(2, '0')}:${String(minute % 60).padStart(2, '0')}`;
31
+ return `${clock(window.startMinute)}-${clock(window.endMinute)}`;
32
+ }
33
+ /** The when-it-applies text of one peak slot: its label plus its windows. */
34
+ function slotCondition(slot, t) {
35
+ return `${slot.label ?? t('pricing.peak')} ${slot.windows.map(windowText).join(t('pricing.windowSep'))}`;
36
+ }
37
+ /**
38
+ * The price rows of one rate node (a time rule's or the model root's): the
39
+ * node's own base rates, then its peak slots, then its context tiers
40
+ * (ascending), each tier followed by the peak slots hanging on that tier —
41
+ * mirroring {@link resolveRate}'s node chain, where a matching tier's slots
42
+ * replace the node's and peak rates replace the node's rates wholesale.
43
+ */
44
+ function nodePriceRows(node, t) {
45
+ const rows = [{ condition: t('pricing.default'), rates: node.rates }];
46
+ const tiers = [...node.tiers ?? []].sort((a, b) => a.threshold - b.threshold);
47
+ for (const tier of tiers) {
48
+ const tierCondition = t('pricing.tier', { threshold: formatTokens(tier.threshold) });
49
+ rows.push({ condition: tierCondition, rates: tier.rates });
50
+ for (const slot of tier.dailySlots ?? []) {
51
+ rows.push({ condition: `${tierCondition} · ${slotCondition(slot, t)}`, rates: slot.rates });
52
+ }
53
+ }
54
+ for (const slot of node.slots ?? []) {
55
+ rows.push({ condition: slotCondition(slot, t), rates: slot.rates });
56
+ }
57
+ return rows;
58
+ }
59
+ /**
60
+ * One model's price table: rows are billing conditions — grouped into the
61
+ * model root (“常规”, omitted when it is the only group) and one group per
62
+ * time rule with its date window — so tier, peak, and time-rule pricing
63
+ * each show when they apply and what they bill. The structure mirrors
64
+ * {@link resolveRate}'s node chain.
65
+ */
66
+ export function ModelPriceTable({ rules, view, t }) {
67
+ // Groups follow resolveRate's chain: the model root (the current era)
68
+ // first, then each time rule as an isolated price world, newest era
69
+ // first (descending rule end), regardless of the feed's listing order.
70
+ const groups = [
71
+ {
72
+ title: rules.timeRules.length > 0 ? t('pricing.regular') : null,
73
+ rows: nodePriceRows({ rates: rules.base, tiers: rules.contextTiers, slots: rules.dailySlots }, t),
74
+ },
75
+ ...[...rules.timeRules]
76
+ .sort((a, b) => b.endTime - a.endTime)
77
+ .map(rule => ({
78
+ // A zero start (the “since forever” rules some feeds carry) drops
79
+ // the bogus 1970 date and reads as “through <end>”.
80
+ title: `${rule.label !== undefined ? `${rule.label} ` : ''}${rule.startTime > 0 ? `${dayKeyOf(new Date(rule.startTime * 1000))} ~ ` : '~ '}${dayKeyOf(new Date(rule.endTime * 1000))}`,
81
+ rows: nodePriceRows({ rates: rule.rates, tiers: rule.contextTiers, slots: rule.dailySlots }, t),
82
+ })),
83
+ ];
84
+ return (_jsxs("div", { className: styles['tableWrap'], children: [_jsxs("table", { className: styles['table'], "aria-label": t('pricing.title'), children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: styles['conditionHead'], children: t('pricing.condition') }), _jsxs("th", { children: [t('pricing.input'), t('pricing.perMillion')] }), _jsxs("th", { children: [t('pricing.output'), t('pricing.perMillion')] }), _jsxs("th", { children: [t('pricing.cacheRead'), t('pricing.perMillion')] }), _jsxs("th", { children: [t('pricing.cacheWrite'), t('pricing.perMillion')] })] }) }), _jsx("tbody", { children: groups.flatMap(group => [
85
+ ...(group.title !== null
86
+ ? [
87
+ _jsx("tr", { className: styles['groupRow'], children: _jsx("td", { colSpan: 5, children: group.title }) }, group.title),
88
+ ]
89
+ : []),
90
+ ...group.rows.map((row, index) => {
91
+ const billed = billedRates(row.rates, view);
92
+ return (_jsxs("tr", { children: [_jsx("td", { className: styles['conditionCell'], children: row.condition }), _jsx("td", { children: billed.input }), _jsx("td", { children: billed.output }), _jsx("td", { children: billed.cacheRead }), _jsx("td", { children: billed.cacheWrite })] }, `${group.title ?? ''}-${index}-${row.condition}`));
93
+ }),
94
+ ]) })] }), view.symbol === '$'
95
+ ? _jsx("p", { className: styles['rateNote'], children: t('pricing.exchangeRateNote', { rate: formatRate(view.rate) }) })
96
+ : null] }));
97
+ }
98
+ /**
99
+ * The pricing dialog of one model. Mounts only while a model is selected;
100
+ * every close path funnels through the dialog's `close` event, which clears
101
+ * the selection and unmounts it.
102
+ */
103
+ export function PricingDialog({ model, rules, view, onClose, t }) {
104
+ const dialogRef = useRef(null);
105
+ // The backdrop-close press guard: a text-selection drag released outside
106
+ // the dialog lands its click on the dialog element (the click fires on
107
+ // the press/release targets' common ancestor, and outside a top-layer
108
+ // dialog every point resolves to the dialog) — the same target a real
109
+ // backdrop click produces. Only a press that began on the backdrop may
110
+ // close; see the overview dialog's backdropPress for the full story.
111
+ const backdropPress = useRef(false);
112
+ useEffect(() => {
113
+ const dialog = dialogRef.current;
114
+ if (dialog !== null && !dialog.open)
115
+ dialog.showModal();
116
+ }, []);
117
+ return (_jsxs("dialog", { ref: dialogRef, className: styles['dialog'], "aria-label": t('pricing.title'), onClose: onClose,
118
+ // A click that landed on the dialog element itself hit the backdrop
119
+ // (the content sits in child elements), which closes like Esc does —
120
+ // but only when the press started there too: a selection drag
121
+ // released outside produces the same click target.
122
+ onMouseDown: event => { backdropPress.current = event.target === dialogRef.current; }, onClick: event => {
123
+ if (event.target === dialogRef.current && backdropPress.current)
124
+ dialogRef.current?.close();
125
+ }, children: [_jsxs("div", { className: styles['dialogHead'], children: [_jsx("span", { className: styles['dialogTitle'], children: model }), _jsx("button", { type: "button", className: styles['dialogClose'], "aria-label": t('pricing.close'), onClick: () => dialogRef.current?.close(), children: "\u2715" })] }), _jsx(ModelPriceTable, { rules: rules, view: view, t: t })] }));
126
+ }
127
+ //# sourceMappingURL=PricingDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PricingDialog.js","sourceRoot":"","sources":["../../src/client/PricingDialog.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAIzC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE5E,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAE/C;8EAC8E;AAC9E,MAAM,UAAU,WAAW,CAAC,KAAmB,EAAE,IAAkB;IACjE,OAAO;QACL,KAAK,EAAE,oB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EAAE,MAAM,CAAC,YAAY,CAAC,aAClC,eAAM,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,YAAG,KAAK,GAAQ,EACtD,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,gBACpB,CAAC,CAAC,eAAe,CAAC,EAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,EAAE,uBAGlC,IACL,EACN,KAAC,eAAe,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,GAAI,IAC5C,CACV,CAAA;AACH,CAAC"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * The pricing-overview dialog of the settings page: the full cloud-mirror
3
+ * model list served by the filter-free `/token-usage/pricing` route — one
4
+ * flat row per model, sorted by the feed's upstream `family` field (zero
5
+ * client-side mapping) then by modelId, each row's four base rates in the
6
+ * page's display currency. Families drive order and search only — there is
7
+ * no grouping UI, every row is directly visible. Rows the page's filters
8
+ * have used carry a “已用” tag; clicking a row opens that model's full
9
+ * price table as a second native dialog stacked above.
10
+ *
11
+ * Above the table, four token-bucket inputs drive a simulated-cost column:
12
+ * what the buckets would bill at each model's base rates. Each bucket is
13
+ * an amount under a picked K/M/B unit — switching converts the amount, the
14
+ * token count stands still. Preset case buttons (「案例1」, hover-titled
15
+ * with the workload picture) refill the buckets compact in one click; the
16
+ * first case is prefilled on open, and the pressed highlight tracks exact
17
+ * token matches, so a manual edit un-presses. The column sorts by a
18
+ * three-state header cycle (family order → cost desc → cost asc → family);
19
+ * the header's glyph never disappears: a dim ⇅ in the default family
20
+ * order, then ▾ desc and ▴ asc.
21
+ *
22
+ * Aliases never render — they stay a search dimension only (a hit on an
23
+ * alias surfaces the model, whose id then reads as the result).
24
+ *
25
+ * @module token-usage/client/PricingOverviewDialog
26
+ */
27
+ import type { ReactNode } from 'react';
28
+ import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
29
+ import type { ContextTier, DailySlot, ModelPricing, ModelRates, PricingOverviewModel } from '../wire.ts';
30
+ import type { CurrencyView } from './format.ts';
31
+ /**
32
+ * Sort models by family (alphabetical, absent → `other`), then by modelId —
33
+ * the feed's own classification drives the browsing order so same-family
34
+ * models stay adjacent, with zero client-side mapping.
35
+ */
36
+ export declare function sortPricingModels(models: readonly PricingOverviewModel[]): PricingOverviewModel[];
37
+ /**
38
+ * Whether one model row matches the search: a case-insensitive substring
39
+ * hit on the modelId, any alias, or the family. An empty query
40
+ * matches everything.
41
+ */
42
+ export declare function matchesPricingSearch(model: PricingOverviewModel, query: string): boolean;
43
+ /**
44
+ * The effective world of one model at `nowMs`: the time rule whose date
45
+ * window contains the current date (rules are mutually exclusive — at most
46
+ * one matches; bounds are Unix seconds, `startTime` 0 reads as "since
47
+ * forever"), else the model root. The world's default rates are the main
48
+ * row (the root's prices are NOT shown while a rule owns the present);
49
+ * its slots and tiers are the expandable special rows — never the root's.
50
+ */
51
+ export interface EffectiveNode {
52
+ /** The world's default rates: the main row's four prices and cost. */
53
+ baseRates: ModelPricing;
54
+ /** Slot rows of this world: shown whenever defined, regardless of the
55
+ * current minute (peaks recur daily — hiding them at off-peak hours
56
+ * would hide the information). */
57
+ slots: DailySlot[];
58
+ /** The one tier this world's input side clears (largest threshold at or
59
+ * below the context), if any. */
60
+ tier: ContextTier | undefined;
61
+ }
62
+ export declare function hitNodeOf(rules: ModelRates, ctxTokens: number, nowMs: number): EffectiveNode;
63
+ /**
64
+ * The pricing-overview dialog. `usedModels` is the open-time snapshot of
65
+ * the page's filtered model selection (the modal's backdrop covers the
66
+ * filter row, so it cannot change while the dialog is open); `view` is the
67
+ * page's display currency. Mounts only while open; every close path
68
+ * funnels through the dialog's `close` event, which unmounts it.
69
+ */
70
+ export declare function PricingOverviewDialog({ usedModels, view, onClose, t }: {
71
+ usedModels: ReadonlySet<string>;
72
+ view: CurrencyView;
73
+ onClose: () => void;
74
+ t: TranslateNS<'token-usage'>;
75
+ }): ReactNode;
76
+ //# sourceMappingURL=PricingOverviewDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PricingOverviewDialog.d.ts","sourceRoot":"","sources":["../../src/client/PricingOverviewDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAA0B,MAAM,YAAY,CAAA;AAGhI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAgB/C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,CAOjG;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAMxF;AAgGD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,SAAS,EAAE,YAAY,CAAA;IACvB;;sCAEkC;IAClC,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB;qCACiC;IACjC,IAAI,EAAE,WAAW,GAAG,SAAS,CAAA;CAC9B;AAWD,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAO5F;AA8DD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE;IACtE,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA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