@laoyuehanni/dsh-token-usage 0.4.5 → 0.4.6

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/locale/en.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "meta": {}
3
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Token 用量",
4
+ "description": "记录每次请求的 token 用量、费用,按模型、会话统计"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laoyuehanni/dsh-token-usage",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "dsh local plugin: persist per-request model token usage (live hook + first-run history backfill + web settings stats page)",
5
5
  "keywords": [
6
6
  "dsh",
@@ -33,10 +33,12 @@
33
33
  "types": "./lib/client/index.d.ts",
34
34
  "default": "./lib/client.js"
35
35
  },
36
- "./package.json": "./package.json"
36
+ "./package.json": "./package.json",
37
+ "./locale/*.json": "./locale/*.json"
37
38
  },
38
39
  "files": [
39
40
  "lib",
41
+ "locale",
40
42
  "docs/pricing.md",
41
43
  "cordis.patch.yml",
42
44
  "README.md",
@@ -63,37 +65,37 @@
63
65
  "node": ">=22.19"
64
66
  },
65
67
  "peerDependencies": {
66
- "@deepseek-ai/cordis": "^4.0.3",
67
- "@deepseek-ai/dsh-credentials": "^0.1.7-rc.1",
68
- "@deepseek-ai/dsh-settings": "^0.1.7-rc.1",
69
- "@deepseek-ai/schemastery": "^3.18.3"
68
+ "@deepseek-ai/cordis": "^4.0.4",
69
+ "@deepseek-ai/dsh-credentials": "^0.2.0-rc.1",
70
+ "@deepseek-ai/dsh-settings": "^0.2.0-rc.1",
71
+ "@deepseek-ai/schemastery": "^3.18.4"
70
72
  },
71
73
  "devDependencies": {
72
- "@deepseek-ai/cordis": "^4.0.3",
73
- "@deepseek-ai/cordis-plugin-loader": "^1.0.4",
74
- "@deepseek-ai/dsh-api-session-controller": "0.1.7-rc.1",
75
- "@deepseek-ai/dsh-client-connection": "0.1.7-rc.1",
76
- "@deepseek-ai/dsh-client-locale": "0.1.7-rc.1",
77
- "@deepseek-ai/dsh-client-store": "0.1.7-rc.1",
78
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.1",
79
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.1",
80
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.1",
81
- "@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.1",
82
- "@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.1",
83
- "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.7-rc.1",
84
- "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.1",
85
- "@deepseek-ai/dsh-client-ui-workspace": "0.1.7-rc.1",
86
- "@deepseek-ai/dsh-compaction": "0.1.7-rc.1",
87
- "@deepseek-ai/dsh-credentials": "0.1.7-rc.1",
88
- "@deepseek-ai/dsh-host-webserver": "0.1.7-rc.1",
89
- "@deepseek-ai/dsh-llm": "0.1.7-rc.1",
90
- "@deepseek-ai/dsh-llm-retry": "0.1.7-rc.1",
91
- "@deepseek-ai/dsh-scope": "^0.1.7-rc.1",
92
- "@deepseek-ai/dsh-session": "0.1.7-rc.1",
93
- "@deepseek-ai/dsh-session-persistence": "0.1.7-rc.1",
94
- "@deepseek-ai/dsh-session-stats": "0.1.7-rc.1",
95
- "@deepseek-ai/dsh-settings": "0.1.7-rc.1",
96
- "@deepseek-ai/schemastery": "^3.18.3",
74
+ "@deepseek-ai/cordis": "^4.0.4",
75
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.5",
76
+ "@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.1",
77
+ "@deepseek-ai/dsh-client-connection": "0.2.0-rc.1",
78
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
79
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
80
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.1",
81
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
82
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.1",
83
+ "@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.1",
84
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
85
+ "@deepseek-ai/dsh-client-ui-settings-plugins": "0.2.0-rc.1",
86
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
87
+ "@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.1",
88
+ "@deepseek-ai/dsh-compaction": "0.2.0-rc.1",
89
+ "@deepseek-ai/dsh-credentials": "0.2.0-rc.1",
90
+ "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.1",
91
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
92
+ "@deepseek-ai/dsh-llm-retry": "0.2.0-rc.1",
93
+ "@deepseek-ai/dsh-scope": "0.2.0-rc.1",
94
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1",
95
+ "@deepseek-ai/dsh-session-persistence": "0.2.0-rc.1",
96
+ "@deepseek-ai/dsh-session-stats": "0.2.0-rc.1",
97
+ "@deepseek-ai/dsh-settings": "0.2.0-rc.1",
98
+ "@deepseek-ai/schemastery": "^3.18.4",
97
99
  "@testing-library/dom": "^10.4.2",
98
100
  "@testing-library/react": "^16.0.0",
99
101
  "@types/node": "^24.0.0",