dsh-budget 0.4.7 → 0.4.9
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 +17 -0
- package/{README.es.md → README-es.md} +4 -3
- package/{README.hi.md → README-hi.md} +4 -3
- package/{README.pt.md → README-pt.md} +4 -3
- package/{README.zh.md → README-zh.md} +4 -3
- package/README.md +4 -3
- package/lib/client.js.map +1 -1
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/index.d.ts +3 -3
- package/package.json +23 -20
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `dsh-budget`, browser half: mounts the `budget` Remote contribution, then
|
|
3
3
|
* registers the budget tab into the Plugins settings section
|
|
4
4
|
* (`settings.plugins.tab`, id `budget`). All data arrives through the
|
|
5
|
-
* `remote.budget` namespace
|
|
5
|
+
* `remote.budget` namespace — the tab issues no other RPC and holds no state
|
|
6
6
|
* of its own beyond the edit form and the last loaded snapshot.
|
|
7
7
|
*
|
|
8
8
|
* @module dsh-budget/client
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `dsh-budget`
|
|
2
|
+
* `dsh-budget` — cost governance for DeepSeek Harness. Aggregated
|
|
3
3
|
* token/cost/carbon metering per model, session and day; session/daily/monthly
|
|
4
4
|
* budget caps with threshold alerts (webhook + desktop notification flag) and
|
|
5
5
|
* alert/block/degrade over-limit policies; per-model latency statistics; the
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* `/budget` command; and `budget/alert` + `budget/block` session audit events
|
|
9
9
|
* (suppressed on hosts whose fail-closed event vocabulary rejects them).
|
|
10
10
|
*
|
|
11
|
-
* Function plugin
|
|
11
|
+
* Function plugin — no default export (the Loader unwraps
|
|
12
12
|
* `exports.default ?? exports`).
|
|
13
13
|
*
|
|
14
14
|
* Seam notes (verified against 0.1.1-rc.2 and the local checkout):
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* (`header.config.provider` / `header.config.model`).
|
|
18
18
|
* - Blocking happens on the `llm/stream` waterfall: when a scope is blocked
|
|
19
19
|
* the listener short-circuits (no `next()`) and yields a text block plus an
|
|
20
|
-
* error finish that names the budget breach
|
|
20
|
+
* error finish that names the budget breach — loop-built requests are
|
|
21
21
|
* deep-frozen and may NOT be rewritten, so `degrade` manifests the same way
|
|
22
22
|
* with corrective text naming the degraded model (plus the alert). A
|
|
23
23
|
* waterfall listener short-circuit is a deliberate claim, not a passthrough
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-budget",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Cost governance for DeepSeek Harness: aggregated token/cost metering per model, session and day, session/daily/monthly budget caps with threshold alerts (desktop notification + webhook) and alert/block/degrade over-limit policies, built-in carbon footprint estimation and per-model latency benchmarks, a Settings budget tab, and the /budget command",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"THIRD_PARTY_NOTICES.md",
|
|
38
38
|
"SECURITY.md",
|
|
39
39
|
"README.md",
|
|
40
|
-
"README
|
|
41
|
-
"README
|
|
42
|
-
"README
|
|
43
|
-
"README
|
|
40
|
+
"README-zh.md",
|
|
41
|
+
"README-es.md",
|
|
42
|
+
"README-pt.md",
|
|
43
|
+
"README-hi.md",
|
|
44
44
|
"LICENSE"
|
|
45
45
|
],
|
|
46
46
|
"dsh": {
|
|
@@ -79,7 +79,10 @@
|
|
|
79
79
|
"native-code:none"
|
|
80
80
|
],
|
|
81
81
|
"compatibility": {
|
|
82
|
-
"dshVersions": [
|
|
82
|
+
"dshVersions": [
|
|
83
|
+
"0.1.2-rc.1",
|
|
84
|
+
"0.1.5-rc.2"
|
|
85
|
+
]
|
|
83
86
|
},
|
|
84
87
|
"capability": {
|
|
85
88
|
"id": "budget-governance",
|
|
@@ -142,23 +145,23 @@
|
|
|
142
145
|
"zod": "^4.4.3"
|
|
143
146
|
},
|
|
144
147
|
"devDependencies": {
|
|
145
|
-
"@deepseek-ai/dsh-api-remotes": "0.1.5-
|
|
146
|
-
"@deepseek-ai/dsh-attachment": "0.1.5-
|
|
148
|
+
"@deepseek-ai/dsh-api-remotes": "0.1.5-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-attachment": "0.1.5-rc.2",
|
|
147
150
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
148
151
|
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
149
152
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
150
|
-
"@deepseek-ai/dsh-agent": "0.1.5-
|
|
151
|
-
"@deepseek-ai/dsh-client-connection": "0.1.5-
|
|
152
|
-
"@deepseek-ai/dsh-client-locale": "0.1.5-
|
|
153
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-
|
|
154
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-
|
|
155
|
-
"@deepseek-ai/dsh-commands": "0.1.5-
|
|
156
|
-
"@deepseek-ai/dsh-llm": "0.1.5-
|
|
157
|
-
"@deepseek-ai/dsh-session": "0.1.5-
|
|
158
|
-
"@deepseek-ai/dsh-storage-domain": "0.1.5-
|
|
159
|
-
"@deepseek-ai/dsh-token-meter": "0.1.5-
|
|
160
|
-
"@deepseek-ai/dsh-tools": "0.1.5-
|
|
161
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.5-
|
|
153
|
+
"@deepseek-ai/dsh-agent": "0.1.5-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-client-connection": "0.1.5-rc.2",
|
|
155
|
+
"@deepseek-ai/dsh-client-locale": "0.1.5-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.2",
|
|
158
|
+
"@deepseek-ai/dsh-commands": "0.1.5-rc.2",
|
|
159
|
+
"@deepseek-ai/dsh-llm": "0.1.5-rc.2",
|
|
160
|
+
"@deepseek-ai/dsh-session": "0.1.5-rc.2",
|
|
161
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.5-rc.2",
|
|
162
|
+
"@deepseek-ai/dsh-token-meter": "0.1.5-rc.2",
|
|
163
|
+
"@deepseek-ai/dsh-tools": "0.1.5-rc.2",
|
|
164
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.2",
|
|
162
165
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
163
166
|
"@types/node": "^22.19.0",
|
|
164
167
|
"@types/react": "18.3.31",
|