@kenz1117/dsh-ui-usage-billing 1.5.0 → 1.6.0

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 (46) hide show
  1. package/README.md +2 -1
  2. package/lib/client.js +5 -5
  3. package/lib/index.js +830 -460
  4. package/lib/types/aggregate.d.ts +31 -0
  5. package/lib/types/client/TokenPanel.d.ts +1 -1
  6. package/lib/types/client/UsageBilling.d.ts +7 -336
  7. package/lib/types/client/api/balance.d.ts +24 -0
  8. package/lib/types/client/api/pricing.d.ts +26 -0
  9. package/lib/types/client/api/relay.d.ts +13 -0
  10. package/lib/types/client/api/subscriptions.d.ts +13 -0
  11. package/lib/types/client/api/usage-stats.d.ts +11 -0
  12. package/lib/types/client/api/usage-tool.d.ts +16 -0
  13. package/lib/types/client/budget-store.d.ts +6 -0
  14. package/lib/types/client/constants.d.ts +28 -0
  15. package/lib/types/client/domain/forecast.d.ts +24 -0
  16. package/lib/types/client/domain/host-version.d.ts +18 -0
  17. package/lib/types/client/domain/icons.d.ts +9 -0
  18. package/lib/types/client/domain/kpi.d.ts +34 -0
  19. package/lib/types/client/domain/model-budget.d.ts +13 -0
  20. package/lib/types/client/domain/notify.d.ts +14 -0
  21. package/lib/types/client/domain/provider-aliases.d.ts +28 -0
  22. package/lib/types/client/domain/provider-merge.d.ts +26 -0
  23. package/lib/types/client/domain/recharge.d.ts +15 -0
  24. package/lib/types/client/domain/recost.d.ts +10 -0
  25. package/lib/types/client/domain/session-viewer.d.ts +13 -0
  26. package/lib/types/client/domain/streak.d.ts +25 -0
  27. package/lib/types/client/domain/subscription-vendors.d.ts +11 -0
  28. package/lib/types/client/domain/types.d.ts +312 -0
  29. package/lib/types/client/domain/week.d.ts +35 -0
  30. package/lib/types/client/export.d.ts +7 -1
  31. package/lib/types/client/live-cost.d.ts +13 -3
  32. package/lib/types/client/locales.d.ts +1 -1
  33. package/lib/types/client/settings-search.d.ts +12 -0
  34. package/lib/types/client/usage-billing-settings.d.ts +3 -1
  35. package/lib/types/config.d.ts +79 -0
  36. package/lib/types/guard.d.ts +49 -0
  37. package/lib/types/index.d.ts +3 -100
  38. package/lib/types/routes/balance.d.ts +37 -0
  39. package/lib/types/routes/notify-claim.d.ts +24 -0
  40. package/lib/types/routes/pricing.d.ts +26 -0
  41. package/lib/types/routes/relay-quotas.d.ts +27 -0
  42. package/lib/types/routes/subscriptions.d.ts +28 -0
  43. package/lib/types/routes/usage-stats.d.ts +44 -0
  44. package/lib/types/routes/usage-tool.d.ts +27 -0
  45. package/lib/types/silent.d.ts +21 -0
  46. package/package.json +40 -34
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.5.0",
4
+ "version": "1.6.0",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "deepseek",
@@ -77,7 +77,8 @@
77
77
  "0.2.0-rc.2": "compatible",
78
78
  "0.2.1-alpha.1": "compatible",
79
79
  "0.2.1-alpha.2": "compatible",
80
- "0.2.1-alpha.3": "compatible"
80
+ "0.2.1-alpha.3": "compatible",
81
+ "0.2.1-rc.2": "compatible"
81
82
  }
82
83
  }
83
84
  },
@@ -85,7 +86,10 @@
85
86
  "build": "tsc -b tsconfig.json && tsdown",
86
87
  "bundle": "tsdown",
87
88
  "watch": "tsdown --watch",
88
- "test": "vitest run"
89
+ "lint": "node scripts/lint.mjs && node scripts/check-clientbundle-sync.mjs",
90
+ "test": "vitest run",
91
+ "test:e2e": "playwright test",
92
+ "test:e2e:install": "playwright install chromium"
89
93
  },
90
94
  "license": "MIT",
91
95
  "engines": {
@@ -104,8 +108,8 @@
104
108
  "@deepseek-ai/dsh-client-ui-sidebar": "*",
105
109
  "@deepseek-ai/dsh-client-ui-slots": "*",
106
110
  "@deepseek-ai/dsh-credentials": "*",
107
- "@deepseek-ai/dsh-host-webserver": "*",
108
111
  "@deepseek-ai/dsh-home-paths": "*",
112
+ "@deepseek-ai/dsh-host-webserver": "*",
109
113
  "@deepseek-ai/dsh-invariants": "*",
110
114
  "@deepseek-ai/dsh-llm": "*",
111
115
  "@deepseek-ai/dsh-session": "*",
@@ -122,45 +126,47 @@
122
126
  "@deepseek-ai/cordis": "*",
123
127
  "@deepseek-ai/cordis-plugin-include": "^1.0.7",
124
128
  "@deepseek-ai/cordis-plugin-loader": "^1.0.5",
125
- "@deepseek-ai/dsh-api-gateway": "0.1.7-rc.1",
126
- "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.1",
127
- "@deepseek-ai/dsh-api-session-controller": "0.1.7-rc.1",
128
- "@deepseek-ai/dsh-atomic-write": "0.1.7-rc.1",
129
- "@deepseek-ai/dsh-agent": "0.1.7-rc.1",
130
- "@deepseek-ai/dsh-client-locale": "0.1.7-rc.1",
131
- "@deepseek-ai/dsh-client-store": "0.1.7-rc.1",
132
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.1",
133
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.1",
134
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.1",
135
- "@deepseek-ai/dsh-client-ui-sidebar": "0.1.7-rc.1",
136
- "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.1",
137
- "@deepseek-ai/dsh-credentials": "0.1.7-rc.1",
138
- "@deepseek-ai/dsh-host-webserver": "0.1.7-rc.1",
139
- "@deepseek-ai/dsh-home-paths": "0.1.7-rc.1",
140
- "@deepseek-ai/dsh-invariants": "0.1.7-rc.1",
141
- "@deepseek-ai/dsh-llm": "0.1.7-rc.1",
142
- "@deepseek-ai/dsh-ptc-runtime": "0.1.7-rc.1",
143
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.1",
144
- "@deepseek-ai/dsh-sandbox-policy": "0.1.7-rc.1",
145
- "@deepseek-ai/dsh-scope": "0.1.7-rc.1",
146
- "@deepseek-ai/dsh-session": "0.1.7-rc.1",
147
- "@deepseek-ai/dsh-session-persistence": "0.1.7-rc.1",
148
- "@deepseek-ai/dsh-settings": "0.1.7-rc.1",
149
- "@deepseek-ai/dsh-system-prompt": "0.1.7-rc.1",
150
- "@deepseek-ai/dsh-tools": "0.1.7-rc.1",
151
- "@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.1",
152
- "@deepseek-ai/dsh-user-approval": "0.1.7-rc.1",
153
- "@deepseek-ai/dsh-util-workspace-path": "0.1.7-rc.1",
129
+ "@deepseek-ai/dsh-agent": "0.2.1-rc.2",
130
+ "@deepseek-ai/dsh-api-gateway": "0.2.1-rc.2",
131
+ "@deepseek-ai/dsh-api-remotes": "0.2.1-rc.2",
132
+ "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
133
+ "@deepseek-ai/dsh-atomic-write": "0.2.1-rc.2",
134
+ "@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
135
+ "@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
136
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
137
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
138
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
139
+ "@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.2",
140
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
141
+ "@deepseek-ai/dsh-credentials": "0.2.1-rc.2",
142
+ "@deepseek-ai/dsh-home-paths": "0.2.1-rc.2",
143
+ "@deepseek-ai/dsh-host-webserver": "0.2.1-rc.2",
144
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
145
+ "@deepseek-ai/dsh-llm": "0.2.1-rc.2",
146
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.2",
147
+ "@deepseek-ai/dsh-sandbox": "0.2.1-rc.2",
148
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.2",
149
+ "@deepseek-ai/dsh-scope": "0.2.1-rc.2",
150
+ "@deepseek-ai/dsh-session": "0.2.1-rc.2",
151
+ "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.2",
152
+ "@deepseek-ai/dsh-settings": "0.2.1-rc.2",
153
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
154
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
155
+ "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
156
+ "@deepseek-ai/dsh-user-approval": "0.2.1-rc.2",
157
+ "@deepseek-ai/dsh-util-code-language": "0.2.1-rc.2",
158
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.2",
154
159
  "@deepseek-ai/schemastery": "^3.18.4",
160
+ "@playwright/test": "^1.64.1",
155
161
  "@shikijs/langs": "^4.3.1",
156
162
  "@testing-library/dom": "^10.4.1",
157
163
  "@testing-library/react": "^16.1.0",
158
164
  "@types/node": "^22.20.0",
159
165
  "@types/react": "~18.3.1",
160
166
  "@types/react-dom": "^19.2.7",
161
- "immer": "^10.1.1",
162
167
  "anser": "^2.3.5",
163
168
  "diff": "^9.0.0",
169
+ "immer": "^10.1.1",
164
170
  "jsdom": "^26.1.0",
165
171
  "katex": "^0.16.47",
166
172
  "lightningcss": "^1.32.0",