dsh-model-usage 0.8.2 → 0.8.4
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 +57 -45
- package/LICENSE +21 -21
- package/README.md +312 -295
- package/cordis.patch.yml +11 -11
- package/docs/screenshots/u1.png +0 -0
- package/docs/screenshots/u2.png +0 -0
- package/docs/screenshots/u3.png +0 -0
- package/docs/screenshots/u4.png +0 -0
- package/docs/screenshots/u5.png +0 -0
- package/icon.svg +29 -7
- package/lib/client.js +1787 -1410
- package/lib/index.js +1083 -1083
- package/locale/en.json +6 -6
- package/locale/zh.json +6 -6
- package/package.json +84 -84
- package/docs/screenshots/usage-panel.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,45 +1,57 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this package are documented in this file. Versions follow Semantic Versioning.
|
|
4
|
-
|
|
5
|
-
## 0.8.
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## 0.8.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## 0.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this package are documented in this file. Versions follow Semantic Versioning.
|
|
4
|
+
|
|
5
|
+
## 0.8.4
|
|
6
|
+
|
|
7
|
+
- Command Code balance history: sample on ten-minute clock marks, retain the current and two
|
|
8
|
+
preceding calendar months, support custom date ranges and daily week/month aggregation, and add
|
|
9
|
+
month deletion and full reset controls.
|
|
10
|
+
|
|
11
|
+
## 0.8.3
|
|
12
|
+
|
|
13
|
+
- Command Code balance history: record account balance snapshots every 30 minutes, retain up to
|
|
14
|
+
seven days locally, and show spend trends with last 30 minutes, last 12 hours, today and yesterday
|
|
15
|
+
filters.
|
|
16
|
+
|
|
17
|
+
## 0.8.2
|
|
18
|
+
|
|
19
|
+
- Documentation: README restructured for the npm package page and the repository; usage panel
|
|
20
|
+
screenshot added under `docs/screenshots/` and shipped with the package.
|
|
21
|
+
- Package metadata: shorter description, expanded keyword set for npm search, `npm test` alias,
|
|
22
|
+
normalized JSON layout.
|
|
23
|
+
- `scripts/check.mjs` validates npm metadata, README image references and `files[]` glob semantics.
|
|
24
|
+
|
|
25
|
+
## 0.8.1
|
|
26
|
+
|
|
27
|
+
- Published with `publishConfig.access` set for public access.
|
|
28
|
+
|
|
29
|
+
## 0.8.0
|
|
30
|
+
|
|
31
|
+
Published to npm as `dsh-model-usage`.
|
|
32
|
+
|
|
33
|
+
- Host half: `webServer` is the only hard dependency. `connection`, `credentials`, `llm`, `settings`,
|
|
34
|
+
`sessions`, `sessionProjections`, `sessionController`, `agentDefaultModel` and `deepseekAccount`
|
|
35
|
+
are resolved per call through `ctx.get()`.
|
|
36
|
+
- Browser half: locale is resolved lazily; without a locale service the panel renders the Chinese
|
|
37
|
+
source copy.
|
|
38
|
+
- Publish metadata: `engines`, `repository`, `homepage`, `bugs`, `keywords`; `prepublishOnly` runs the
|
|
39
|
+
verification scripts.
|
|
40
|
+
|
|
41
|
+
## 0.7.0
|
|
42
|
+
|
|
43
|
+
- The browser half no longer imports Harness Client packages; the button and dialogs use the plugin's
|
|
44
|
+
own controls and the theme tokens exposed by the running build.
|
|
45
|
+
- Interface copy moved to the Client locale service (namespace `dsh-model-usage`, Chinese and
|
|
46
|
+
English), following the interface language.
|
|
47
|
+
- Styles render as part of the cell rather than `document.head`.
|
|
48
|
+
- Host routes apply the browser trust fence and answer 401/403; the browser addresses them with
|
|
49
|
+
document-relative URLs.
|
|
50
|
+
- Display metadata: `locale/zh.json`, `locale/en.json`, `icon.svg`, `dsh.manifestVersion: 1` and
|
|
51
|
+
`engines.dsh`.
|
|
52
|
+
- `modelSelection` is read through its wire view (`{ lastUsed, next }`).
|
|
53
|
+
|
|
54
|
+
## 0.6.0
|
|
55
|
+
|
|
56
|
+
- Usage query for the current conversation's model, manual target override, background auto-refresh
|
|
57
|
+
and a read-only provider directory.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 liuchaoxu
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 liuchaoxu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|