dsh-model-usage 0.8.1 → 0.8.3
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 +51 -35
- package/LICENSE +21 -21
- package/README.md +302 -239
- package/cordis.patch.yml +11 -11
- package/docs/screenshots/usage-panel.png +0 -0
- package/icon.svg +7 -7
- package/lib/client.js +1608 -1410
- package/lib/index.js +1083 -1083
- package/locale/en.json +6 -6
- package/locale/zh.json +6 -6
- package/package.json +84 -76
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta": {
|
|
3
|
-
"title": "Model usage",
|
|
4
|
-
"description": "Adds a Usage entry to the session header:
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Model usage",
|
|
4
|
+
"description": "Adds a Usage entry to the session header: provider account usage, manual query-target selection, background refresh, and a seven-day Command Code balance-spend trend."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta": {
|
|
3
|
-
"title": "用量",
|
|
4
|
-
"description": "在会话头部加一个「用量」入口:查看当前对话所用模型对应供应商账户的用量(余额 / 套餐窗口 /
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "用量",
|
|
4
|
+
"description": "在会话头部加一个「用量」入口:查看当前对话所用模型对应供应商账户的用量(余额 / 套餐窗口 / 请求数),可手动切换查询对象、后台自动刷新,并查看 Command Code 七天余额消耗趋势。"
|
|
5
|
+
}
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,76 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-model-usage",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "DeepSeek Harness
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "liuchaoxu <ischaoxu@163.com>",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/liuchaoxu/dsh-model-usage.git"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://github.com/liuchaoxu/dsh-model-usage#readme",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/liuchaoxu/dsh-model-usage/issues"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"dsh",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"cordis",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-model-usage",
|
|
3
|
+
"version": "0.8.3",
|
|
4
|
+
"description": "Provider-account usage for DeepSeek Harness: quota windows, credit balance and request counts for the model a conversation runs on, with per-provider adapters and manual target selection.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "liuchaoxu <ischaoxu@163.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/liuchaoxu/dsh-model-usage.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/liuchaoxu/dsh-model-usage#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/liuchaoxu/dsh-model-usage/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"dsh",
|
|
17
|
+
"dsh-plugin",
|
|
18
|
+
"deepseek",
|
|
19
|
+
"deepseek-harness",
|
|
20
|
+
"cordis",
|
|
21
|
+
"cordis-plugin",
|
|
22
|
+
"llm",
|
|
23
|
+
"usage",
|
|
24
|
+
"token-usage",
|
|
25
|
+
"quota",
|
|
26
|
+
"billing",
|
|
27
|
+
"balance",
|
|
28
|
+
"commandcode",
|
|
29
|
+
"openrouter",
|
|
30
|
+
"opencode",
|
|
31
|
+
"moonshot",
|
|
32
|
+
"siliconflow",
|
|
33
|
+
"new-api"
|
|
34
|
+
],
|
|
35
|
+
"type": "module",
|
|
36
|
+
"main": "lib/index.js",
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=18",
|
|
39
|
+
"dsh": ">=0.2.1-rc.2"
|
|
40
|
+
},
|
|
41
|
+
"exports": {
|
|
42
|
+
".": "./lib/index.js",
|
|
43
|
+
"./client": "./lib/client.js",
|
|
44
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
45
|
+
"./locale/*.json": "./locale/*.json",
|
|
46
|
+
"./icon": "./icon.svg",
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
"dsh": {
|
|
50
|
+
"manifestVersion": 1,
|
|
51
|
+
"bundle": {
|
|
52
|
+
"patch": "./cordis.patch.yml"
|
|
53
|
+
},
|
|
54
|
+
"client": {
|
|
55
|
+
"platform": "web",
|
|
56
|
+
"inject": [
|
|
57
|
+
"@deepseek-ai/dsh-client-locale",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-conversation"
|
|
59
|
+
],
|
|
60
|
+
"immediately": false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"check": "node scripts/check.mjs",
|
|
65
|
+
"smoke": "node scripts/smoke.mjs",
|
|
66
|
+
"verify": "node scripts/check.mjs && node scripts/smoke.mjs",
|
|
67
|
+
"test": "node scripts/check.mjs && node scripts/smoke.mjs",
|
|
68
|
+
"prepublishOnly": "node scripts/check.mjs && node scripts/smoke.mjs"
|
|
69
|
+
},
|
|
70
|
+
"files": [
|
|
71
|
+
"lib/index.js",
|
|
72
|
+
"lib/client.js",
|
|
73
|
+
"cordis.patch.yml",
|
|
74
|
+
"locale/*.json",
|
|
75
|
+
"icon.svg",
|
|
76
|
+
"docs/screenshots/",
|
|
77
|
+
"README.md",
|
|
78
|
+
"CHANGELOG.md",
|
|
79
|
+
"LICENSE"
|
|
80
|
+
],
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
}
|
|
84
|
+
}
|