@kenz1117/dsh-ui-usage-billing 0.2.0 → 0.2.1
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/cordis.patch.yml +8 -0
- package/lib/client.js +68 -68
- package/package.json +6 -2
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# The ui-usage-billing bundle patch: inserts the billing dashboard plugin into
|
|
2
|
+
# the profile root as one entry. Applied by `dsh plugin add @kenz1117/dsh-ui-usage-billing`;
|
|
3
|
+
# the row id addresses this plugin's host half, whose `/api/billing/usage-stats`
|
|
4
|
+
# route serves the browser half rendered in the sidebar footer.
|
|
5
|
+
|
|
6
|
+
- insert:
|
|
7
|
+
- id: ui-usage-billing
|
|
8
|
+
name: '@kenz1117/dsh-ui-usage-billing'
|
package/lib/client.js
CHANGED
|
@@ -33,89 +33,89 @@ window.__ModuleLoader__.load({
|
|
|
33
33
|
document.head.appendChild(tag);
|
|
34
34
|
}
|
|
35
35
|
var UsageBilling_module_css_default = {
|
|
36
|
-
"
|
|
36
|
+
"bandPrice": "VWh0dG_bandPrice",
|
|
37
|
+
"heroSideItem": "VWh0dG_heroSideItem",
|
|
38
|
+
"chartWrap": "VWh0dG_chartWrap",
|
|
39
|
+
"bandPriceOff": "VWh0dG_bandPriceOff",
|
|
40
|
+
"pricingToggle": "VWh0dG_pricingToggle",
|
|
37
41
|
"chartCrosshair": "VWh0dG_chartCrosshair",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
42
|
+
"healthBadgeBad": "VWh0dG_healthBadgeBad",
|
|
43
|
+
"hero": "VWh0dG_hero",
|
|
44
|
+
"kpiTile": "VWh0dG_kpiTile",
|
|
45
|
+
"kpiDetail": "VWh0dG_kpiDetail",
|
|
46
|
+
"triggerIcon": "VWh0dG_triggerIcon",
|
|
47
|
+
"chartDot": "VWh0dG_chartDot",
|
|
48
|
+
"numCol": "VWh0dG_numCol",
|
|
49
|
+
"railButton": "VWh0dG_railButton",
|
|
50
|
+
"deltaDown": "VWh0dG_deltaDown",
|
|
51
|
+
"kpiValue": "VWh0dG_kpiValue",
|
|
43
52
|
"kpiLabel": "VWh0dG_kpiLabel",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
53
|
+
"chartLine": "VWh0dG_chartLine",
|
|
54
|
+
"pricingChevronOpen": "VWh0dG_pricingChevronOpen",
|
|
55
|
+
"heroLabel": "VWh0dG_heroLabel",
|
|
56
|
+
"delta": "VWh0dG_delta",
|
|
57
|
+
"heroValue": "VWh0dG_heroValue",
|
|
58
|
+
"chartAxisLabel": "VWh0dG_chartAxisLabel",
|
|
59
|
+
"heroMain": "VWh0dG_heroMain",
|
|
60
|
+
"modelTable": "VWh0dG_modelTable",
|
|
61
|
+
"panelTitle": "VWh0dG_panelTitle",
|
|
62
|
+
"na": "VWh0dG_na",
|
|
63
|
+
"modelProvider": "VWh0dG_modelProvider",
|
|
64
|
+
"triggerText": "VWh0dG_triggerText",
|
|
46
65
|
"modelCell": "VWh0dG_modelCell",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
66
|
+
"chartLegendBar": "VWh0dG_chartLegendBar",
|
|
67
|
+
"modelDot": "VWh0dG_modelDot",
|
|
68
|
+
"healthBadgeOk": "VWh0dG_healthBadgeOk",
|
|
69
|
+
"triggerLabel": "VWh0dG_triggerLabel",
|
|
70
|
+
"chartEmpty": "VWh0dG_chartEmpty",
|
|
71
|
+
"chartBar": "VWh0dG_chartBar",
|
|
72
|
+
"heroDivider": "VWh0dG_heroDivider",
|
|
50
73
|
"triggerChevron": "VWh0dG_triggerChevron",
|
|
51
74
|
"dashboardRight": "VWh0dG_dashboardRight",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"heroMeta": "VWh0dG_heroMeta",
|
|
56
|
-
"heroSide": "VWh0dG_heroSide",
|
|
57
|
-
"triggerText": "VWh0dG_triggerText",
|
|
75
|
+
"dashboardTitle": "VWh0dG_dashboardTitle",
|
|
76
|
+
"panelHint": "VWh0dG_panelHint",
|
|
77
|
+
"panelHead": "VWh0dG_panelHead",
|
|
58
78
|
"tableScroll": "VWh0dG_tableScroll",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
79
|
+
"heroSideLabel": "VWh0dG_heroSideLabel",
|
|
80
|
+
"panel": "VWh0dG_panel",
|
|
81
|
+
"closeButton": "VWh0dG_closeButton",
|
|
82
|
+
"triggerMeta": "VWh0dG_triggerMeta",
|
|
83
|
+
"modelName": "VWh0dG_modelName",
|
|
63
84
|
"pricingChevron": "VWh0dG_pricingChevron",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
85
|
+
"deltaUp": "VWh0dG_deltaUp",
|
|
86
|
+
"emptyRow": "VWh0dG_emptyRow",
|
|
87
|
+
"healthOk": "VWh0dG_healthOk",
|
|
88
|
+
"chartStack": "VWh0dG_chartStack",
|
|
89
|
+
"dashboardBody": "VWh0dG_dashboardBody",
|
|
90
|
+
"dashboardHead": "VWh0dG_dashboardHead",
|
|
91
|
+
"dashboardModal": "VWh0dG_dashboardModal",
|
|
92
|
+
"kpiGrid": "VWh0dG_kpiGrid",
|
|
93
|
+
"kpiGreen": "VWh0dG_kpiGreen",
|
|
94
|
+
"heroSide": "VWh0dG_heroSide",
|
|
68
95
|
"bandTagOff": "VWh0dG_bandTagOff",
|
|
69
|
-
"hero": "VWh0dG_hero",
|
|
70
|
-
"modelTable": "VWh0dG_modelTable",
|
|
71
96
|
"planTag": "VWh0dG_planTag",
|
|
97
|
+
"pricingToggleText": "VWh0dG_pricingToggleText",
|
|
98
|
+
"heroMeta": "VWh0dG_heroMeta",
|
|
72
99
|
"chartGrid": "VWh0dG_chartGrid",
|
|
73
|
-
"
|
|
74
|
-
"healthOk": "VWh0dG_healthOk",
|
|
100
|
+
"healthDot": "VWh0dG_healthDot",
|
|
75
101
|
"chartTooltipSwatch": "VWh0dG_chartTooltipSwatch",
|
|
102
|
+
"dashboardSubtitle": "VWh0dG_dashboardSubtitle",
|
|
103
|
+
"pricingTable": "VWh0dG_pricingTable",
|
|
76
104
|
"healthIdle": "VWh0dG_healthIdle",
|
|
77
|
-
"pricingToggle": "VWh0dG_pricingToggle",
|
|
78
|
-
"kpiTile": "VWh0dG_kpiTile",
|
|
79
|
-
"panelHead": "VWh0dG_panelHead",
|
|
80
|
-
"chartBar": "VWh0dG_chartBar",
|
|
81
|
-
"na": "VWh0dG_na",
|
|
82
|
-
"chartTooltip": "VWh0dG_chartTooltip",
|
|
83
|
-
"bandPriceOff": "VWh0dG_bandPriceOff",
|
|
84
|
-
"triggerLabel": "VWh0dG_triggerLabel",
|
|
85
|
-
"numCol": "VWh0dG_numCol",
|
|
86
|
-
"panelHint": "VWh0dG_panelHint",
|
|
87
|
-
"healthBadgeOk": "VWh0dG_healthBadgeOk",
|
|
88
|
-
"healthBadgeBad": "VWh0dG_healthBadgeBad",
|
|
89
|
-
"chartStack": "VWh0dG_chartStack",
|
|
90
|
-
"dashboardModal": "VWh0dG_dashboardModal",
|
|
91
|
-
"kpiValue": "VWh0dG_kpiValue",
|
|
92
|
-
"chartSvg": "VWh0dG_chartSvg",
|
|
93
|
-
"heroMain": "VWh0dG_heroMain",
|
|
94
|
-
"chartLegendLine": "VWh0dG_chartLegendLine",
|
|
95
|
-
"dashboardTitle": "VWh0dG_dashboardTitle",
|
|
96
|
-
"closeButton": "VWh0dG_closeButton",
|
|
97
105
|
"costCol": "VWh0dG_costCol",
|
|
98
106
|
"healthBad": "VWh0dG_healthBad",
|
|
99
|
-
"
|
|
100
|
-
"modelName": "VWh0dG_modelName",
|
|
101
|
-
"delta": "VWh0dG_delta",
|
|
102
|
-
"healthBadge": "VWh0dG_healthBadge",
|
|
103
|
-
"chartEmpty": "VWh0dG_chartEmpty",
|
|
104
|
-
"dashboard": "VWh0dG_dashboard",
|
|
105
|
-
"heroLabel": "VWh0dG_heroLabel",
|
|
106
|
-
"deltaUp": "VWh0dG_deltaUp",
|
|
107
|
-
"heroSideItem": "VWh0dG_heroSideItem",
|
|
108
|
-
"kpiGrid": "VWh0dG_kpiGrid",
|
|
109
|
-
"dashboardBody": "VWh0dG_dashboardBody",
|
|
110
|
-
"kpiDetail": "VWh0dG_kpiDetail",
|
|
111
|
-
"panel": "VWh0dG_panel",
|
|
112
|
-
"railButton": "VWh0dG_railButton",
|
|
113
|
-
"emptyRow": "VWh0dG_emptyRow",
|
|
107
|
+
"bandTag": "VWh0dG_bandTag",
|
|
114
108
|
"chartTooltipRow": "VWh0dG_chartTooltipRow",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
109
|
+
"chartLegend": "VWh0dG_chartLegend",
|
|
110
|
+
"chartSvg": "VWh0dG_chartSvg",
|
|
111
|
+
"dashboard": "VWh0dG_dashboard",
|
|
112
|
+
"chartTooltipDate": "VWh0dG_chartTooltipDate",
|
|
113
|
+
"chartTooltip": "VWh0dG_chartTooltip",
|
|
114
|
+
"chartLegendLine": "VWh0dG_chartLegendLine",
|
|
115
|
+
"healthBadge": "VWh0dG_healthBadge",
|
|
116
|
+
"heroSideValue": "VWh0dG_heroSideValue",
|
|
117
|
+
"trigger": "VWh0dG_trigger",
|
|
118
|
+
"flatTag": "VWh0dG_flatTag"
|
|
119
119
|
};
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/client/pricing.ts
|
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.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"dsh": {
|
|
32
|
+
"bundle": {
|
|
33
|
+
"patch": "./cordis.patch.yml"
|
|
34
|
+
},
|
|
32
35
|
"client": {
|
|
33
36
|
"inject": [
|
|
34
37
|
"@deepseek-ai/dsh-client-runtime",
|
|
@@ -81,6 +84,7 @@
|
|
|
81
84
|
"lib/index.js",
|
|
82
85
|
"lib/invariant.js",
|
|
83
86
|
"lib/client.js",
|
|
84
|
-
"lib/types/**/*.d.ts"
|
|
87
|
+
"lib/types/**/*.d.ts",
|
|
88
|
+
"cordis.patch.yml"
|
|
85
89
|
]
|
|
86
90
|
}
|