@laoyuehanni/dsh-token-usage 0.4.0 → 0.4.2
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/README.md +2 -10
- package/README.zh.md +2 -10
- package/docs/pricing.md +3 -13
- package/lib/client/PricingDialog.d.ts +51 -0
- package/lib/client/PricingDialog.d.ts.map +1 -0
- package/lib/client/PricingDialog.js +127 -0
- package/lib/client/PricingDialog.js.map +1 -0
- package/lib/client/PricingOverviewDialog.d.ts +76 -0
- package/lib/client/PricingOverviewDialog.d.ts.map +1 -0
- package/lib/client/PricingOverviewDialog.js +361 -0
- package/lib/client/PricingOverviewDialog.js.map +1 -0
- package/lib/client/QuotaButton.d.ts.map +1 -1
- package/lib/client/QuotaButton.js.map +1 -1
- package/lib/client/SessionStatsChip.d.ts.map +1 -1
- package/lib/client/SessionStatsChip.js.map +1 -1
- package/lib/client/SessionTable.d.ts +39 -0
- package/lib/client/SessionTable.d.ts.map +1 -0
- package/lib/client/SessionTable.js +181 -0
- package/lib/client/SessionTable.js.map +1 -0
- package/lib/client/TokenUsageSection.d.ts +16 -9
- package/lib/client/TokenUsageSection.d.ts.map +1 -1
- package/lib/client/TokenUsageSection.js +66 -128
- package/lib/client/TokenUsageSection.js.map +1 -1
- package/lib/client/TrendChart.d.ts +1 -1
- package/lib/client/TrendChart.d.ts.map +1 -1
- package/lib/client/TrendChart.js +13 -5
- package/lib/client/TrendChart.js.map +1 -1
- package/lib/client/UsageView.d.ts +10 -3
- package/lib/client/UsageView.d.ts.map +1 -1
- package/lib/client/UsageView.js +12 -3
- package/lib/client/UsageView.js.map +1 -1
- package/lib/client/card-form.d.ts +1 -1
- package/lib/client/card-form.d.ts.map +1 -1
- package/lib/client/index.d.ts +7 -6
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/index.js +27 -7
- package/lib/client/index.js.map +1 -1
- package/lib/client/locales.d.ts +25 -0
- package/lib/client/locales.d.ts.map +1 -1
- package/lib/client/locales.js +50 -0
- package/lib/client/locales.js.map +1 -1
- package/lib/client/trend-chart/index.d.ts +2 -0
- package/lib/client/trend-chart/index.d.ts.map +1 -1
- package/lib/client/trend-chart/index.js +1 -0
- package/lib/client/trend-chart/index.js.map +1 -1
- package/lib/client/trend-chart/path.d.ts +36 -0
- package/lib/client/trend-chart/path.d.ts.map +1 -0
- package/lib/client/trend-chart/path.js +51 -0
- package/lib/client/trend-chart/path.js.map +1 -0
- package/lib/client/trend-chart/points.d.ts +1 -0
- package/lib/client/trend-chart/points.d.ts.map +1 -1
- package/lib/client/trend-chart/points.js +1 -0
- package/lib/client/trend-chart/points.js.map +1 -1
- package/lib/client/trend-chart/scale.d.ts +8 -3
- package/lib/client/trend-chart/scale.d.ts.map +1 -1
- package/lib/client/trend-chart/scale.js +22 -14
- package/lib/client/trend-chart/scale.js.map +1 -1
- package/lib/client.js +1478 -304
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +9 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +72 -28
- package/lib/index.js.map +1 -1
- package/lib/migrate.d.ts +3 -2
- package/lib/migrate.d.ts.map +1 -1
- package/lib/migrate.js +4 -2
- package/lib/migrate.js.map +1 -1
- package/lib/pricing.d.ts +29 -23
- package/lib/pricing.d.ts.map +1 -1
- package/lib/pricing.js +38 -50
- package/lib/pricing.js.map +1 -1
- package/lib/rollup.d.ts +7 -1
- package/lib/rollup.d.ts.map +1 -1
- package/lib/rollup.js +15 -0
- package/lib/rollup.js.map +1 -1
- package/lib/session-meta.d.ts +68 -0
- package/lib/session-meta.d.ts.map +1 -0
- package/lib/session-meta.js +174 -0
- package/lib/session-meta.js.map +1 -0
- package/lib/stats-route.d.ts +22 -0
- package/lib/stats-route.d.ts.map +1 -1
- package/lib/stats-route.js +85 -6
- package/lib/stats-route.js.map +1 -1
- package/lib/stats.d.ts +35 -3
- package/lib/stats.d.ts.map +1 -1
- package/lib/stats.js +185 -6
- package/lib/stats.js.map +1 -1
- package/lib/sync-state.d.ts +42 -10
- package/lib/sync-state.d.ts.map +1 -1
- package/lib/sync-state.js +61 -19
- package/lib/sync-state.js.map +1 -1
- package/lib/sync.d.ts +55 -9
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +55 -10
- package/lib/sync.js.map +1 -1
- package/lib/wire.d.ts +114 -10
- package/lib/wire.d.ts.map +1 -1
- package/lib/wire.js +3 -0
- package/lib/wire.js.map +1 -1
- package/package.json +26 -21
package/README.md
CHANGED
|
@@ -29,21 +29,13 @@ Repo: <https://github.com/LaoYueHanNi/dsh-token-usage>
|
|
|
29
29
|
|
|
30
30
|

|
|
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
|
|
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 — 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.
|
|
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). 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
|
@@ -29,21 +29,13 @@
|
|
|
29
29
|
|
|
30
30
|

|
|
31
31
|
|
|
32
|
-
- **费用统计与模型定价**:按模型单价(¥/百万 token)逐条实时计费,未定价模型高亮提示(费用按 ¥0
|
|
32
|
+
- **费用统计与模型定价**:按模型单价(¥/百万 token)逐条实时计费,未定价模型高亮提示(费用按 ¥0 计)。定价模型的名字旁有**「定价」小按钮**,点击弹窗展示该模型的完整价格表。价格每次启动自动从云端同步——详见「[模型定价](#模型定价)」。
|
|
33
33
|
- **供应商配额**:输入栏模型选择器左侧的配额按钮,跟随当前选中的供应商展示套餐余量。详见「[供应商配额](#供应商配额)」。
|
|
34
34
|
- **历史补齐**:首次启动自动同步安装前已发生的请求(幂等);无法解析的会话日志跳过并计数,绝不中断同步。
|
|
35
35
|
|
|
36
36
|
## 模型定价
|
|
37
37
|
|
|
38
|
-
|
|
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` 升级后不再被读取(文件保留在磁盘上,不会主动删除)。镜像损坏只影响对应模型(按未定价处理),不影响统计页。默认目录:`~/.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`
|
|
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":[],"m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ricing 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,oBAAoB,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC;QACxD,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC;QAC1D,SAAS,EAAE,oBAAoB,CAAC,KAAK,CAAC,mBAAmB,IAAI,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC;QACzF,UAAU,EAAE,oBAAoB,CAAC,KAAK,CAAC,oBAAoB,IAAI,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC;KAC5F,CAAA;AACH,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,UAAU,CAAC,MAAkB;IAC3C,MAAM,KAAK,GAAG,CAAC,MAAc,EAAU,EAAE,CACvC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,Q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AK,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI;YAAE,MAAM,CAAC,SAAS,EAAE,CAAA;IACzD,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,CACL,kBACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,gBACf,CAAC,CAAC,eAAe,CAAC,EAC9B,OAAO,EAAE,OAAO;QAChB,oEAAoE;QACpE,qEAAqE;QACrE,8DAA8D;QAC9D,mDAAmD;QACnD,WAAW,EAAE,KAAK,CAAC,EAAE,GAAG,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,OAAO,CAAA,CAAC,CAAC,EACpF,OAAO,EAAE,KAAK,CAAC,EAAE;YACf,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC,OAAO,IAAI,aAAa,CAAC,OAAO;gBAAE,SAAS,CAAC,OAAO,EAAE,KAAK,EAAE,CAAA;QAC7F,CAAC,aAED,eAAK,SAAS,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=Pricing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