@kenz1117/dsh-ui-usage-billing 0.2.4 → 0.2.5
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/client.js +73 -72
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -33,93 +33,93 @@ window.__ModuleLoader__.load({
|
|
|
33
33
|
document.head.appendChild(tag);
|
|
34
34
|
}
|
|
35
35
|
var UsageBilling_module_css_default = {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
36
|
+
"triggerAmount": "VWh0dG_triggerAmount",
|
|
37
|
+
"bandPriceOff": "VWh0dG_bandPriceOff",
|
|
38
|
+
"chartBar": "VWh0dG_chartBar",
|
|
39
|
+
"bandTag": "VWh0dG_bandTag",
|
|
40
|
+
"triggerMonth": "VWh0dG_triggerMonth",
|
|
41
|
+
"chartTooltipSwatch": "VWh0dG_chartTooltipSwatch",
|
|
42
|
+
"deltaDown": "VWh0dG_deltaDown",
|
|
43
|
+
"modelTable": "VWh0dG_modelTable",
|
|
44
|
+
"pricingTable": "VWh0dG_pricingTable",
|
|
45
|
+
"heroSideItem": "VWh0dG_heroSideItem",
|
|
41
46
|
"modelDot": "VWh0dG_modelDot",
|
|
42
|
-
"
|
|
47
|
+
"pricingChevronOpen": "VWh0dG_pricingChevronOpen",
|
|
48
|
+
"kpiValue": "VWh0dG_kpiValue",
|
|
49
|
+
"flatTag": "VWh0dG_flatTag",
|
|
50
|
+
"panel": "VWh0dG_panel",
|
|
51
|
+
"triggerAmountSub": "VWh0dG_triggerAmountSub",
|
|
52
|
+
"dashboard": "VWh0dG_dashboard",
|
|
53
|
+
"kpiTile": "VWh0dG_kpiTile",
|
|
54
|
+
"heroMain": "VWh0dG_heroMain",
|
|
55
|
+
"healthBad": "VWh0dG_healthBad",
|
|
43
56
|
"rateBadge": "VWh0dG_rateBadge",
|
|
57
|
+
"heroMeta": "VWh0dG_heroMeta",
|
|
58
|
+
"triggerDivider": "VWh0dG_triggerDivider",
|
|
44
59
|
"bandTagOff": "VWh0dG_bandTagOff",
|
|
60
|
+
"triggerToday": "VWh0dG_triggerToday",
|
|
45
61
|
"heroSideLabel": "VWh0dG_heroSideLabel",
|
|
46
|
-
"triggerAmountSub": "VWh0dG_triggerAmountSub",
|
|
47
|
-
"healthIdle": "VWh0dG_healthIdle",
|
|
48
|
-
"chartGrid": "VWh0dG_chartGrid",
|
|
49
|
-
"deltaUp": "VWh0dG_deltaUp",
|
|
50
|
-
"healthBadgeOk": "VWh0dG_healthBadgeOk",
|
|
51
|
-
"kpiValue": "VWh0dG_kpiValue",
|
|
52
|
-
"kpiGrid": "VWh0dG_kpiGrid",
|
|
53
|
-
"heroSide": "VWh0dG_heroSide",
|
|
54
|
-
"chartDot": "VWh0dG_chartDot",
|
|
55
|
-
"heroSideItem": "VWh0dG_heroSideItem",
|
|
56
|
-
"chartTooltipSwatch": "VWh0dG_chartTooltipSwatch",
|
|
57
|
-
"deltaDown": "VWh0dG_deltaDown",
|
|
58
|
-
"rateBadgeLive": "VWh0dG_rateBadgeLive",
|
|
59
|
-
"pricingChevron": "VWh0dG_pricingChevron",
|
|
60
|
-
"heroLabel": "VWh0dG_heroLabel",
|
|
61
|
-
"trigger": "VWh0dG_trigger",
|
|
62
|
-
"chartAxisLabel": "VWh0dG_chartAxisLabel",
|
|
63
|
-
"modelTable": "VWh0dG_modelTable",
|
|
64
|
-
"chartBar": "VWh0dG_chartBar",
|
|
65
62
|
"modelProvider": "VWh0dG_modelProvider",
|
|
66
|
-
"
|
|
63
|
+
"chartEmpty": "VWh0dG_chartEmpty",
|
|
64
|
+
"heroLabel": "VWh0dG_heroLabel",
|
|
65
|
+
"deltaUp": "VWh0dG_deltaUp",
|
|
67
66
|
"chartCrosshair": "VWh0dG_chartCrosshair",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
67
|
+
"chartTooltipRow": "VWh0dG_chartTooltipRow",
|
|
68
|
+
"chartLegendBar": "VWh0dG_chartLegendBar",
|
|
69
|
+
"triggerIcon": "VWh0dG_triggerIcon",
|
|
70
|
+
"railButton": "VWh0dG_railButton",
|
|
71
|
+
"chartStack": "VWh0dG_chartStack",
|
|
72
|
+
"panelTitle": "VWh0dG_panelTitle",
|
|
73
|
+
"modelName": "VWh0dG_modelName",
|
|
74
|
+
"chartAxisLabel": "VWh0dG_chartAxisLabel",
|
|
75
|
+
"heroSide": "VWh0dG_heroSide",
|
|
76
|
+
"healthOk": "VWh0dG_healthOk",
|
|
77
|
+
"heroSideValue": "VWh0dG_heroSideValue",
|
|
78
|
+
"kpiDetail": "VWh0dG_kpiDetail",
|
|
70
79
|
"pricingToggleText": "VWh0dG_pricingToggleText",
|
|
71
80
|
"closeButton": "VWh0dG_closeButton",
|
|
72
|
-
"costCol": "VWh0dG_costCol",
|
|
73
|
-
"bandPriceOff": "VWh0dG_bandPriceOff",
|
|
74
|
-
"hero": "VWh0dG_hero",
|
|
75
|
-
"heroMain": "VWh0dG_heroMain",
|
|
76
|
-
"chartEmpty": "VWh0dG_chartEmpty",
|
|
77
|
-
"triggerMeta": "VWh0dG_triggerMeta",
|
|
78
|
-
"kpiDetail": "VWh0dG_kpiDetail",
|
|
79
|
-
"pricingChevronOpen": "VWh0dG_pricingChevronOpen",
|
|
80
81
|
"dashboardTitle": "VWh0dG_dashboardTitle",
|
|
82
|
+
"dashboardBody": "VWh0dG_dashboardBody",
|
|
83
|
+
"chartLegendLine": "VWh0dG_chartLegendLine",
|
|
84
|
+
"chartLegend": "VWh0dG_chartLegend",
|
|
85
|
+
"numCol": "VWh0dG_numCol",
|
|
86
|
+
"healthBadgeBad": "VWh0dG_healthBadgeBad",
|
|
87
|
+
"kpiGrid": "VWh0dG_kpiGrid",
|
|
88
|
+
"chartDot": "VWh0dG_chartDot",
|
|
81
89
|
"healthDot": "VWh0dG_healthDot",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"modelCell": "VWh0dG_modelCell",
|
|
88
|
-
"healthOk": "VWh0dG_healthOk",
|
|
89
|
-
"chartWrap": "VWh0dG_chartWrap",
|
|
90
|
-
"bandTag": "VWh0dG_bandTag",
|
|
91
|
-
"kpiGreen": "VWh0dG_kpiGreen",
|
|
92
|
-
"flatTag": "VWh0dG_flatTag",
|
|
90
|
+
"pricingChevron": "VWh0dG_pricingChevron",
|
|
91
|
+
"emptyRow": "VWh0dG_emptyRow",
|
|
92
|
+
"rateBadgeBuiltin": "VWh0dG_rateBadgeBuiltin",
|
|
93
|
+
"healthIdle": "VWh0dG_healthIdle",
|
|
94
|
+
"trigger": "VWh0dG_trigger",
|
|
93
95
|
"dashboardHead": "VWh0dG_dashboardHead",
|
|
94
|
-
"pricingTable": "VWh0dG_pricingTable",
|
|
95
|
-
"kpiLabel": "VWh0dG_kpiLabel",
|
|
96
|
-
"numCol": "VWh0dG_numCol",
|
|
97
96
|
"tableScroll": "VWh0dG_tableScroll",
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
97
|
+
"kpiGreen": "VWh0dG_kpiGreen",
|
|
98
|
+
"na": "VWh0dG_na",
|
|
99
|
+
"healthBadgeOk": "VWh0dG_healthBadgeOk",
|
|
100
|
+
"hero": "VWh0dG_hero",
|
|
101
|
+
"chartTooltipDate": "VWh0dG_chartTooltipDate",
|
|
102
|
+
"modelCell": "VWh0dG_modelCell",
|
|
103
|
+
"planTag": "VWh0dG_planTag",
|
|
104
|
+
"costCol": "VWh0dG_costCol",
|
|
105
|
+
"panelHead": "VWh0dG_panelHead",
|
|
106
|
+
"kpiLabel": "VWh0dG_kpiLabel",
|
|
107
|
+
"chartWrap": "VWh0dG_chartWrap",
|
|
108
|
+
"heroValue": "VWh0dG_heroValue",
|
|
109
|
+
"triggerMeta": "VWh0dG_triggerMeta",
|
|
110
|
+
"chartGrid": "VWh0dG_chartGrid",
|
|
107
111
|
"chartLine": "VWh0dG_chartLine",
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"healthBadgeBad": "VWh0dG_healthBadgeBad",
|
|
111
|
-
"railButton": "VWh0dG_railButton",
|
|
112
|
-
"triggerIcon": "VWh0dG_triggerIcon",
|
|
112
|
+
"chartTooltip": "VWh0dG_chartTooltip",
|
|
113
|
+
"rateBadgeLive": "VWh0dG_rateBadgeLive",
|
|
113
114
|
"healthBadge": "VWh0dG_healthBadge",
|
|
114
|
-
"chartSvg": "VWh0dG_chartSvg",
|
|
115
|
-
"panelHead": "VWh0dG_panelHead",
|
|
116
|
-
"heroMeta": "VWh0dG_heroMeta",
|
|
117
|
-
"delta": "VWh0dG_delta",
|
|
118
|
-
"chartTooltipDate": "VWh0dG_chartTooltipDate",
|
|
119
|
-
"triggerToday": "VWh0dG_triggerToday",
|
|
120
115
|
"dashboardRight": "VWh0dG_dashboardRight",
|
|
121
116
|
"dashboardSubtitle": "VWh0dG_dashboardSubtitle",
|
|
122
|
-
"
|
|
117
|
+
"pricingToggle": "VWh0dG_pricingToggle",
|
|
118
|
+
"delta": "VWh0dG_delta",
|
|
119
|
+
"dashboardModal": "VWh0dG_dashboardModal",
|
|
120
|
+
"bandPrice": "VWh0dG_bandPrice",
|
|
121
|
+
"chartSvg": "VWh0dG_chartSvg",
|
|
122
|
+
"panelHint": "VWh0dG_panelHint"
|
|
123
123
|
};
|
|
124
124
|
/** 运行时实时覆盖:undefined = 用内置目录与内置汇率(默认值降级)。 */
|
|
125
125
|
let liveRate;
|
|
@@ -155,8 +155,9 @@ window.__ModuleLoader__.load({
|
|
|
155
155
|
* costs no tokens: the estimator treats them as ¥0 and the billing table
|
|
156
156
|
* labels them 订阅包含. Add any model key your deployment serves through a
|
|
157
157
|
* plan here; leave empty when every route is pay-as-you-go.
|
|
158
|
+
* kimi-k3: 月之暗面 coding plan 通道的调用按套餐计费,费用记 0。
|
|
158
159
|
*/
|
|
159
|
-
const SUBSCRIPTION_PLAN_KEYS = [];
|
|
160
|
+
const SUBSCRIPTION_PLAN_KEYS = ["kimi-k3"];
|
|
160
161
|
/** Whether one stats model key is billed through a subscription plan. */
|
|
161
162
|
function isSubscriptionPlan(key) {
|
|
162
163
|
return SUBSCRIPTION_PLAN_KEYS.includes(key);
|
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": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|