@sixzjd/dsh-usage-dashboard 0.6.0 → 0.6.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/CHANGELOG.md +15 -0
- package/client.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
### Fixed — the settings entry never appeared
|
|
6
|
+
|
|
7
|
+
The client bundle registered itself as `dsh-usage-dashboard`, but the host keys
|
|
8
|
+
its boot graph by PACKAGE name and asserts that a loaded bundle registered that
|
|
9
|
+
exact id. The bundle loaded and then failed that assertion, so the settings
|
|
10
|
+
section was never mounted — the host half worked (its routes answered) while
|
|
11
|
+
nothing showed in the UI.
|
|
12
|
+
|
|
13
|
+
Escaped 0.6.0 because the rename changed the package name to
|
|
14
|
+
`@sixzjd/dsh-usage-dashboard` without changing the bundle id inside
|
|
15
|
+
`client.js`. Every other working client plugin in the profile registers under
|
|
16
|
+
its full package name; this one now does too, and a test pins the two together.
|
|
17
|
+
|
|
3
18
|
## 0.6.0
|
|
4
19
|
|
|
5
20
|
### Fixed — deleted sessions no longer erase their usage
|
package/client.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
// The bundle id MUST be the package name: the host composes its boot graph
|
|
2
|
+
// keyed by package (`client-modules` passes the Loader row's package name as
|
|
3
|
+
// the resource id) and the browser asserts that a loaded bundle registered
|
|
4
|
+
// exactly that id. A bare plugin id here makes the bundle load but never
|
|
5
|
+
// satisfy the manifest, so the settings entry silently never appears.
|
|
1
6
|
window.__ModuleLoader__.load({
|
|
2
|
-
id: "dsh-usage-dashboard",
|
|
7
|
+
id: "@sixzjd/dsh-usage-dashboard",
|
|
3
8
|
factory: (require) => {
|
|
4
9
|
const React = require("react");
|
|
5
10
|
const SUMMARY_PATH = "/api/dsh-usage-dashboard/summary";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixzjd/dsh-usage-dashboard",
|
|
3
3
|
"displayName": "用量统计",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"description": "Usage statistics for DeepSeek Harness: daily token usage, request count, cache hit rate and estimated cost as a native settings section, with durable history that survives deleted sessions.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|