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 CHANGED
@@ -1,35 +1,51 @@
1
- # Changelog
2
- ## 0.8.1
3
- public
4
-
5
- ## 0.8.0
6
-
7
- First release prepared for npm (`dsh plugin --profile <profile> add dsh-model-usage`).
8
-
9
- - Host half: only `webServer` is a hard dependency. `connection` (browser trust fence),
10
- `credentials` (key lookup), `llm` / `settings` / `sessions` / `sessionProjections` /
11
- `sessionController` / `agentDefaultModel` / `deepseekAccount` are read through `ctx.get()` per use,
12
- so the plugin mounts in more compositions and picks up a service that activates later.
13
- - Browser half: `locale` is read through `ctx.get()` too; without it the panel falls back to the
14
- Chinese source copy instead of not rendering.
15
- - Publish metadata and docs: `engines.dsh` / `engines.node`, repository, homepage, bugs, keywords,
16
- a bilingual README, and `scripts/check.mjs` wired to `prepublishOnly`.
17
- - `private` removed so the package can be published.
18
-
19
- ## 0.7.0
20
-
21
- - The browser half no longer imports any Harness Client package: the button and the four dialogs are
22
- this plugin's own controls, styled only with the theme tokens the running build lists.
23
- - All interface copy moved into the Client locale service (namespace `dsh-model-usage`, zh + en);
24
- the panel follows the interface language live.
25
- - The stylesheet renders as part of the cell (no orphan `<style>` in `document.head`).
26
- - Host routes apply the composition's browser trust fence and answer 401/403 themselves; the browser
27
- half addresses them with document-relative URLs.
28
- - Display metadata: `locale/zh.json`, `locale/en.json`, `icon.svg`, plus `dsh.manifestVersion: 1`
29
- and `engines.dsh`.
30
- - `modelSelection` is read through its wire view (`{ lastUsed, next }`).
31
-
32
- ## 0.6.0
33
-
34
- - Usage for the current conversation's model, manual target override, background auto-refresh,
35
- read-only provider directory.
1
+ # Changelog
2
+
3
+ All notable changes to this package are documented in this file. Versions follow Semantic Versioning.
4
+
5
+ ## 0.8.3
6
+
7
+ - Command Code balance history: record account balance snapshots every 30 minutes, retain up to
8
+ seven days locally, and show spend trends with last 30 minutes, last 12 hours, today and yesterday
9
+ filters.
10
+
11
+ ## 0.8.2
12
+
13
+ - Documentation: README restructured for the npm package page and the repository; usage panel
14
+ screenshot added under `docs/screenshots/` and shipped with the package.
15
+ - Package metadata: shorter description, expanded keyword set for npm search, `npm test` alias,
16
+ normalized JSON layout.
17
+ - `scripts/check.mjs` validates npm metadata, README image references and `files[]` glob semantics.
18
+
19
+ ## 0.8.1
20
+
21
+ - Published with `publishConfig.access` set for public access.
22
+
23
+ ## 0.8.0
24
+
25
+ Published to npm as `dsh-model-usage`.
26
+
27
+ - Host half: `webServer` is the only hard dependency. `connection`, `credentials`, `llm`, `settings`,
28
+ `sessions`, `sessionProjections`, `sessionController`, `agentDefaultModel` and `deepseekAccount`
29
+ are resolved per call through `ctx.get()`.
30
+ - Browser half: locale is resolved lazily; without a locale service the panel renders the Chinese
31
+ source copy.
32
+ - Publish metadata: `engines`, `repository`, `homepage`, `bugs`, `keywords`; `prepublishOnly` runs the
33
+ verification scripts.
34
+
35
+ ## 0.7.0
36
+
37
+ - The browser half no longer imports Harness Client packages; the button and dialogs use the plugin's
38
+ own controls and the theme tokens exposed by the running build.
39
+ - Interface copy moved to the Client locale service (namespace `dsh-model-usage`, Chinese and
40
+ English), following the interface language.
41
+ - Styles render as part of the cell rather than `document.head`.
42
+ - Host routes apply the browser trust fence and answer 401/403; the browser addresses them with
43
+ document-relative URLs.
44
+ - Display metadata: `locale/zh.json`, `locale/en.json`, `icon.svg`, `dsh.manifestVersion: 1` and
45
+ `engines.dsh`.
46
+ - `modelSelection` is read through its wire view (`{ lastUsed, next }`).
47
+
48
+ ## 0.6.0
49
+
50
+ - Usage query for the current conversation's model, manual target override, background auto-refresh
51
+ 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.