dsh-budget 0.1.0 → 0.1.2
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 +8 -0
- package/README.es.md +38 -2
- package/README.hi.md +38 -2
- package/README.md +39 -2
- package/README.pt.md +38 -2
- package/README.zh.md +38 -2
- package/lib/types/aggregate/usage.d.ts +1 -1
- package/lib/types/client/BudgetTab.d.ts +1 -1
- package/lib/types/client/index.d.ts +5 -5
- package/lib/types/client/present.d.ts +1 -1
- package/lib/types/client/remote.d.ts +1 -1
- package/lib/types/command.d.ts +3 -3
- package/lib/types/governance.d.ts +2 -2
- package/lib/types/index.d.ts +10 -10
- package/lib/types/service.d.ts +4 -4
- package/package.json +29 -22
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.2] - 2026-08-22
|
|
9
|
+
|
|
10
|
+
- Compatibility release for DeepSeek Harness `0.1.1-rc.2`: all `@deepseek-ai/dsh-*` devDependencies moved to rc.2 (peers unchanged at `>=0.1.0-rc.8 <0.2.0`); `dshWorkshop.compatibility.dshVersions` set to `0.1.1-rc.2`; the READMEs, AGENTS notes, and CI `compat`/`typecheck` pins synced to rc.2. No source changes required — the session/llm/typert/commands/client seams used here are unchanged in rc.2.
|
|
11
|
+
|
|
12
|
+
## [0.1.1] - 2026-08-21
|
|
13
|
+
|
|
14
|
+
- Compatibility release for DeepSeek Harness `0.1.0-rc.8`: all `@deepseek-ai/dsh-*` peers and devDependencies moved to rc.8 (peers declared as `>=0.1.0-rc.8 <0.2.0`); verified against the rc.8 harness checkout and the npm-published rc.8 type faces. No source changes required — the session/llm/typert/commands/client seams used here are unchanged in rc.8.
|
|
15
|
+
|
|
8
16
|
## [0.1.0] - 2026-08-16
|
|
9
17
|
|
|
10
18
|
- Initial release: aggregated token/cost metering, budget caps with threshold alerts and over-limit policies, carbon footprint estimation, per-model latency benchmarks, and the /budget command.
|
package/README.es.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| Superficie | Estado |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Superficies | Host + cliente Web (pestaña Budget en Settings); comando `/budget` |
|
|
30
30
|
|
|
@@ -119,7 +119,7 @@ Todos los ajustes son campos `Config` de Schemastery (modificables desde cordis.
|
|
|
119
119
|
```sh
|
|
120
120
|
pnpm install # node ^22.19 || >=24
|
|
121
121
|
pnpm run typecheck # tsc: src + tests contra el checkout local del harness
|
|
122
|
-
pnpm run typecheck:ci # tsc contra los tipos publicados 0.1.
|
|
122
|
+
pnpm run typecheck:ci # tsc contra los tipos publicados 0.1.1-rc.2 (sin paths)
|
|
123
123
|
pnpm test # vitest: 45 tests
|
|
124
124
|
pnpm run build # declaraciones tsc + bundles tsdown (lib/)
|
|
125
125
|
pnpm run verify:self-contained # las especificaciones de dependencias resuelven desde el registry
|
|
@@ -135,6 +135,42 @@ pnpm pack # el tarball publicado
|
|
|
135
135
|
|
|
136
136
|
- [@PerryLink](https://github.com/PerryLink) — creador y mantenedor: agregación, gobernanza de presupuesto, portes de carbono y latencia, la pestaña de Settings y la documentación en cinco idiomas.
|
|
137
137
|
|
|
138
|
+
## PerryLink DSH Plugin Family
|
|
139
|
+
|
|
140
|
+
Este proyecto es uno de los [29 complementos de DeepSeek Harness](https://github.com/PerryLink) mantenidos por [PerryLink](https://github.com/PerryLink). Si este te ayuda, los demás probablemente también:
|
|
141
|
+
|
|
142
|
+
| Plugin | One-liner |
|
|
143
|
+
|---|---|
|
|
144
|
+
| [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | Auto-revisión con segundo modelo en la cadena de aprobación, cerrado ante fallo por defecto |
|
|
145
|
+
| [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | Agentes secundarios en segundo plano y duraderos con barra lateral Web, mensajería e interrupción |
|
|
146
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | Gobernanza de costes para DeepSeek Harness: presupuestos, carbono y latencia en un panel. |
|
|
147
|
+
| [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Equivalente a /rewind de Claude Code: instantáneas, bifurcaciones y restauración de una vez |
|
|
148
|
+
| [dsh-claude-move](https://github.com/PerryLink/dsh-claude-move) | Migra sesiones, memoria, skills y CLAUDE.md de Claude Code a DSH |
|
|
149
|
+
| [dsh-click](https://github.com/PerryLink/dsh-click) | Control de escritorio nativo multiplataforma para DeepSeek Harness — Windows primero. |
|
|
150
|
+
| [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Historial de entrada estilo terminal para el compositor web: flechas, búsqueda Ctrl+R |
|
|
151
|
+
| [dsh-defend](https://github.com/PerryLink/dsh-defend) | Defensa contra inyección de prompts, jailbreak y fuga de secretos para DeepSeek Harness. |
|
|
152
|
+
| [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | Guardia de disciplina de ingeniería: interrogatorio de requisitos, puertas de test, revisión adversaria |
|
|
153
|
+
| [dsh-draw](https://github.com/PerryLink/dsh-draw) | Enrutamiento unificado de generación de imágenes estáticas para DeepSeek Harness. |
|
|
154
|
+
| [dsh-fast](https://github.com/PerryLink/dsh-fast) | Diagnóstico de rendimiento de solo lectura para DeepSeek Harness. |
|
|
155
|
+
| [dsh-github](https://github.com/PerryLink/dsh-github) | Integración de PR/issues de GitHub para DSH, cada escritura con aprobación |
|
|
156
|
+
| [dsh-library](https://github.com/PerryLink/dsh-library) | Base de conocimiento documental local para DeepSeek Harness. |
|
|
157
|
+
| [dsh-local-ai](https://github.com/PerryLink/dsh-local-ai) | Integración de modelos locales (Ollama) para DeepSeek Harness. |
|
|
158
|
+
| [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | Diagnóstico, formato, completado, acciones y renombrado LSP vía servidores de lenguaje |
|
|
159
|
+
| [dsh-mask](https://github.com/PerryLink/dsh-mask) | Middleware de enmascarado PII para DeepSeek Harness — anonimiza antes del modelo y restaura en la capa de visualización. |
|
|
160
|
+
| [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | Panel MCP de solo lectura: comando /mcp + pestaña de ajustes con estado, herramientas y errores |
|
|
161
|
+
| [dsh-memento](https://github.com/PerryLink/dsh-memento) | Memoria entre sesiones con puerta de aprobación: seam ctx.memory + SQLite + herramienta memory |
|
|
162
|
+
| [dsh-observe](https://github.com/PerryLink/dsh-observe) | Exportador de observabilidad OpenTelemetry y Langfuse para DeepSeek Harness. |
|
|
163
|
+
| [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Cambio de estilos en tiempo de ejecución equivalente a outputStyles de Claude Code |
|
|
164
|
+
| [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Reglas declarativas allow/deny/ask estilo Claude Code con auditoría |
|
|
165
|
+
| [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | Base de conocimiento de desarrollo de complementos como skill de agente bajo demanda |
|
|
166
|
+
| [dsh-score](https://github.com/PerryLink/dsh-score) | Puntuación de calidad multidimensional para complementos de DeepSeek Harness. |
|
|
167
|
+
| [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | Fija sesiones en la barra lateral Web con orden durable |
|
|
168
|
+
| [dsh-session-sync](https://github.com/PerryLink/dsh-session-sync) | Sincronización de sesiones entre dispositivos para DeepSeek Harness — un espejo git dedicado de tu almacén de sesiones. |
|
|
169
|
+
| [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | Paquete de skills de auditoría de seguridad: escaneo de secretos, revisión de dependencias y cadena de suministro |
|
|
170
|
+
| [dsh-talk](https://github.com/PerryLink/dsh-talk) | Bucle de sesión con voz para DeepSeek Harness: háblale y escucha su respuesta. |
|
|
171
|
+
| [dsh-test-drive](https://github.com/PerryLink/dsh-test-drive) | Pruebas de instalación y arranque aisladas para complementos de DeepSeek Harness. |
|
|
172
|
+
| [dsh-translate](https://github.com/PerryLink/dsh-translate) | Traducción de parámetros entre proveedores y reparación determinista de JSON para DeepSeek Harness. |
|
|
173
|
+
|
|
138
174
|
## License
|
|
139
175
|
|
|
140
176
|
[Apache License 2.0](LICENSE) © 2026 dsh-budget contributors
|
package/README.hi.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| सतह | स्थिति |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| सतहें | Host + वेब क्लाइंट (Settings में Budget टैब); `/budget` कमांड |
|
|
30
30
|
|
|
@@ -119,7 +119,7 @@ dsh --profile web --dump-config | grep -A2 'id: budget'
|
|
|
119
119
|
```sh
|
|
120
120
|
pnpm install # node ^22.19 || >=24
|
|
121
121
|
pnpm run typecheck # tsc: src + tests स्थानीय हार्नेस चेकआउट के विरुद्ध
|
|
122
|
-
pnpm run typecheck:ci # tsc प्रकाशित 0.1.
|
|
122
|
+
pnpm run typecheck:ci # tsc प्रकाशित 0.1.1-rc.2 प्रकारों के विरुद्ध (बिना paths)
|
|
123
123
|
pnpm test # vitest: 45 टेस्ट
|
|
124
124
|
pnpm run build # tsc घोषणाएँ + tsdown बंडल (lib/)
|
|
125
125
|
pnpm run verify:self-contained # निर्भरता स्पेक registry से हल होती हैं
|
|
@@ -135,6 +135,42 @@ pnpm pack # प्रकाशित tarball
|
|
|
135
135
|
|
|
136
136
|
- [@PerryLink](https://github.com/PerryLink) — निर्माता और मेंटेनर: एग्रीगेशन, बजट प्रशासन, कार्बन और लेटेंसी पोर्ट, Settings टैब और पाँच-भाषा दस्तावेज़।
|
|
137
137
|
|
|
138
|
+
## PerryLink DSH Plugin Family
|
|
139
|
+
|
|
140
|
+
यह प्रोजेक्ट [PerryLink](https://github.com/PerryLink) द्वारा अनुरक्षित [29 DeepSeek Harness प्लगइनों](https://github.com/PerryLink) में से एक है। अगर यह आपकी मदद करता है, तो बाकी भी करेंगे:
|
|
141
|
+
|
|
142
|
+
| Plugin | One-liner |
|
|
143
|
+
|---|---|
|
|
144
|
+
| [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | अनुमोदन श्रृंखला पर दूसरे मॉडल से स्वतः-समीक्षा, डिफ़ॉल्ट रूप से असफल-बंद |
|
|
145
|
+
| [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | Web UI साइडबार, संदेश और रुकावट के साथ स्थायी पृष्ठभूमि चाइल्ड एजेंट |
|
|
146
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | DeepSeek Harness के लिए लागत प्रशासन: बजट, कार्बन और विलंबता एक पैनल में। |
|
|
147
|
+
| [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Claude Code /rewind-समतुल्य: स्नैपशॉट, सत्र फोर्क, एक-बार पुनर्स्थापन |
|
|
148
|
+
| [dsh-claude-move](https://github.com/PerryLink/dsh-claude-move) | Claude Code सत्र, स्मृति, skills और CLAUDE.md को DSH में स्थानांतरित करें |
|
|
149
|
+
| [dsh-click](https://github.com/PerryLink/dsh-click) | DeepSeek Harness के लिए क्रॉस-प्लेटफ़ॉर्म नेटिव डेस्कटॉप नियंत्रण — Windows पहले। |
|
|
150
|
+
| [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Web कंपोज़र के लिए टर्मिनल-शैली इनपुट इतिहास: तीर, Ctrl+R खोज |
|
|
151
|
+
| [dsh-defend](https://github.com/PerryLink/dsh-defend) | DeepSeek Harness के लिए प्रॉम्प्ट-इंजेक्शन, जेलब्रेक और सीक्रेट-लीक रक्षा। |
|
|
152
|
+
| [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | इंजीनियरिंग-अनुशासन गार्ड: आवश्यकताएँ पूछताछ, परीक्षण द्वार, विरोधी समीक्षा |
|
|
153
|
+
| [dsh-draw](https://github.com/PerryLink/dsh-draw) | DeepSeek Harness के लिए एकीकृत स्थैतिक-छवि निर्माण रूटिंग। |
|
|
154
|
+
| [dsh-fast](https://github.com/PerryLink/dsh-fast) | DeepSeek Harness के लिए केवल-पठन प्रदर्शन निदान। |
|
|
155
|
+
| [dsh-github](https://github.com/PerryLink/dsh-github) | DSH के लिए GitHub PR/issues एकीकरण, हर लेखन अनुमोदन-द्वारित |
|
|
156
|
+
| [dsh-library](https://github.com/PerryLink/dsh-library) | DeepSeek Harness के लिए स्थानीय दस्तावेज़ ज्ञानकोश। |
|
|
157
|
+
| [dsh-local-ai](https://github.com/PerryLink/dsh-local-ai) | DeepSeek Harness के लिए स्थानीय-मॉडल (Ollama) एकीकरण। |
|
|
158
|
+
| [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | भाषा सर्वरों पर LSP निदान, फ़ॉर्मेटिंग, पूर्णता, कोड क्रियाएँ और नाम बदलना |
|
|
159
|
+
| [dsh-mask](https://github.com/PerryLink/dsh-mask) | DeepSeek Harness के लिए PII मास्किंग मिडलवेयर — मॉडल तक पहुँचने से पहले व्यक्तिगत डेटा अनाम करता है, प्रदर्शन परत पर बहाल करता है। |
|
|
160
|
+
| [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | केवल-पठन MCP रनटाइम पैनल: /mcp कमांड + स्थिति, टूल और त्रुटियों वाला सेटिंग टैब |
|
|
161
|
+
| [dsh-memento](https://github.com/PerryLink/dsh-memento) | अनुमोदन-द्वारित क्रॉस-सत्र स्मृति: ctx.memory seam + SQLite + memory टूल |
|
|
162
|
+
| [dsh-observe](https://github.com/PerryLink/dsh-observe) | DeepSeek Harness के लिए OpenTelemetry और Langfuse अवलोकनीयता निर्यातक। |
|
|
163
|
+
| [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Claude Code outputStyles-समतुल्य रनटाइम शैली स्विचिंग |
|
|
164
|
+
| [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Claude Code-शैली घोषणात्मक allow/deny/ask अनुमति नियम, ऑडिट के साथ |
|
|
165
|
+
| [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | माँग-पर एजेंट स्किल के रूप में प्लगइन-विकास ज्ञानकोश |
|
|
166
|
+
| [dsh-score](https://github.com/PerryLink/dsh-score) | DeepSeek Harness प्लगइनों के लिए बहु-आयामी गुणवत्ता स्कोरिंग। |
|
|
167
|
+
| [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | Web साइडबार में सत्र पिन करें, स्थायी क्रम के साथ |
|
|
168
|
+
| [dsh-session-sync](https://github.com/PerryLink/dsh-session-sync) | DeepSeek Harness के लिए क्रॉस-डिवाइस सत्र सिंक — आपके सत्र स्टोर का एक समर्पित git मिरर। |
|
|
169
|
+
| [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | सुरक्षा-ऑडिट स्किल पैक: सीक्रेट स्कैन, निर्भरता और आपूर्ति-श्रृंखला समीक्षा |
|
|
170
|
+
| [dsh-talk](https://github.com/PerryLink/dsh-talk) | DeepSeek Harness के लिए आवाज़-प्रथम सत्र लूप: बोलें और उत्तर सुनें। |
|
|
171
|
+
| [dsh-test-drive](https://github.com/PerryLink/dsh-test-drive) | DeepSeek Harness प्लगइनों के लिए पृथक इंस्टॉल-और-स्मोक परीक्षण। |
|
|
172
|
+
| [dsh-translate](https://github.com/PerryLink/dsh-translate) | DeepSeek Harness के लिए वेंडर पैरामीटर अनुवाद और नियतात्मक JSON मरम्मत। |
|
|
173
|
+
|
|
138
174
|
## License
|
|
139
175
|
|
|
140
176
|
[Apache License 2.0](LICENSE) © 2026 dsh-budget contributors
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
# 💰 dsh-budget
|
|
4
|
+
[](https://gitee.com/perrylink/dsh-budget)
|
|
4
5
|
|
|
5
6
|
**Cost governance for DeepSeek Harness: budgets, carbon, and latency in one panel.**
|
|
6
7
|
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
|
|
25
26
|
| Surface | Status |
|
|
26
27
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
28
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` |
|
|
28
29
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
30
|
| Surfaces | Host + Web client (Settings budget tab); `/budget` command |
|
|
30
31
|
|
|
@@ -119,7 +120,7 @@ All tunables are Schemastery `Config` fields (changeable from cordis.yml). `cord
|
|
|
119
120
|
```sh
|
|
120
121
|
pnpm install # node ^22.19 || >=24
|
|
121
122
|
pnpm run typecheck # tsc: src + tests against the local harness checkout
|
|
122
|
-
pnpm run typecheck:ci # tsc against the published 0.1.
|
|
123
|
+
pnpm run typecheck:ci # tsc against the published 0.1.1-rc.2 types (no paths)
|
|
123
124
|
pnpm test # vitest: 45 tests
|
|
124
125
|
pnpm run build # tsc declarations + tsdown bundles (lib/)
|
|
125
126
|
pnpm run verify:self-contained # dependency specs resolve from the registry
|
|
@@ -135,6 +136,42 @@ pnpm pack # the published tarball
|
|
|
135
136
|
|
|
136
137
|
- [@PerryLink](https://github.com/PerryLink) — creator and maintainer: aggregation, budget governance, carbon and latency ports, the Settings tab, and the five-language docs.
|
|
137
138
|
|
|
139
|
+
## PerryLink DSH Plugin Family
|
|
140
|
+
|
|
141
|
+
This project is one of the [29 DeepSeek Harness plugins](https://github.com/PerryLink) maintained by [PerryLink](https://github.com/PerryLink). If this one helps you, the others likely will too:
|
|
142
|
+
|
|
143
|
+
| Plugin | One-liner |
|
|
144
|
+
|---|---|
|
|
145
|
+
| [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | Second-model auto-review on the approval chain, fail-closed by default |
|
|
146
|
+
| [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | Durable background child agents with a Web UI sidebar, messaging and interrupt |
|
|
147
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | Cost governance for DeepSeek Harness: budgets, carbon, and latency in one panel. |
|
|
148
|
+
| [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Claude Code /rewind-equivalent: snapshots, session forks, one-shot restore |
|
|
149
|
+
| [dsh-claude-move](https://github.com/PerryLink/dsh-claude-move) | Migrate Claude Code sessions, memory, skills and CLAUDE.md into DSH |
|
|
150
|
+
| [dsh-click](https://github.com/PerryLink/dsh-click) | Cross-platform native desktop control for DeepSeek Harness — Windows first. |
|
|
151
|
+
| [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Terminal-style input history for the web composer: arrows, Ctrl+R search |
|
|
152
|
+
| [dsh-defend](https://github.com/PerryLink/dsh-defend) | Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness. |
|
|
153
|
+
| [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | Engineering-discipline guard: requirements grill, test gates, adversary review |
|
|
154
|
+
| [dsh-draw](https://github.com/PerryLink/dsh-draw) | Unified static-image generation routing for DeepSeek Harness. |
|
|
155
|
+
| [dsh-fast](https://github.com/PerryLink/dsh-fast) | Read-only performance diagnostics for DeepSeek Harness. |
|
|
156
|
+
| [dsh-github](https://github.com/PerryLink/dsh-github) | GitHub PR/issues integration for DSH, every write gated by approval |
|
|
157
|
+
| [dsh-library](https://github.com/PerryLink/dsh-library) | Local document knowledge base for DeepSeek Harness. |
|
|
158
|
+
| [dsh-local-ai](https://github.com/PerryLink/dsh-local-ai) | Local-model (Ollama) integration for DeepSeek Harness. |
|
|
159
|
+
| [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | LSP diagnostics, formatting, completion, code actions and rename over language servers |
|
|
160
|
+
| [dsh-mask](https://github.com/PerryLink/dsh-mask) | PII masking middleware for DeepSeek Harness — anonymize personal data before it reaches the model, restore it at the display layer. |
|
|
161
|
+
| [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | Read-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors |
|
|
162
|
+
| [dsh-memento](https://github.com/PerryLink/dsh-memento) | Approval-gated cross-session memory: ctx.memory seam + SQLite + memory tool |
|
|
163
|
+
| [dsh-observe](https://github.com/PerryLink/dsh-observe) | OpenTelemetry and Langfuse observability exporter for DeepSeek Harness. |
|
|
164
|
+
| [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Claude Code outputStyles-equivalent runtime style switching |
|
|
165
|
+
| [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Claude Code-style declarative allow/deny/ask permission rules with audit |
|
|
166
|
+
| [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | Plugin-development knowledge base as an on-demand agent skill |
|
|
167
|
+
| [dsh-score](https://github.com/PerryLink/dsh-score) | Multi-dimensional quality scoring for DeepSeek Harness plugins. |
|
|
168
|
+
| [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | Pin sessions in the Web sidebar with durable ordering |
|
|
169
|
+
| [dsh-session-sync](https://github.com/PerryLink/dsh-session-sync) | Cross-device session sync for DeepSeek Harness — a dedicated git mirror of your session store. |
|
|
170
|
+
| [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | Security-audit skill pack: secret scan, dependency and supply-chain review |
|
|
171
|
+
| [dsh-talk](https://github.com/PerryLink/dsh-talk) | Voice-first session loop for DeepSeek Harness: talk to it, hear it answer. |
|
|
172
|
+
| [dsh-test-drive](https://github.com/PerryLink/dsh-test-drive) | Isolated install-and-smoke test drives for DeepSeek Harness plugins. |
|
|
173
|
+
| [dsh-translate](https://github.com/PerryLink/dsh-translate) | Vendor parameter translation and deterministic JSON repair for DeepSeek Harness. |
|
|
174
|
+
|
|
138
175
|
## License
|
|
139
176
|
|
|
140
177
|
[Apache License 2.0](LICENSE) © 2026 dsh-budget contributors
|
package/README.pt.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| Superfície | Status |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| Superfícies | Host + cliente Web (aba Budget em Settings); comando `/budget` |
|
|
30
30
|
|
|
@@ -119,7 +119,7 @@ Todos os ajustes são campos `Config` do Schemastery (alteráveis pelo cordis.ym
|
|
|
119
119
|
```sh
|
|
120
120
|
pnpm install # node ^22.19 || >=24
|
|
121
121
|
pnpm run typecheck # tsc: src + tests contra o checkout local do harness
|
|
122
|
-
pnpm run typecheck:ci # tsc contra os tipos publicados 0.1.
|
|
122
|
+
pnpm run typecheck:ci # tsc contra os tipos publicados 0.1.1-rc.2 (sem paths)
|
|
123
123
|
pnpm test # vitest: 45 testes
|
|
124
124
|
pnpm run build # declarações tsc + bundles tsdown (lib/)
|
|
125
125
|
pnpm run verify:self-contained # especificações de dependências resolvem pelo registry
|
|
@@ -135,6 +135,42 @@ pnpm pack # o tarball publicado
|
|
|
135
135
|
|
|
136
136
|
- [@PerryLink](https://github.com/PerryLink) — criador e mantenedor: agregação, governança de orçamento, portes de carbono e latência, a aba de Settings e a documentação em cinco idiomas.
|
|
137
137
|
|
|
138
|
+
## PerryLink DSH Plugin Family
|
|
139
|
+
|
|
140
|
+
Este projeto é um dos [29 complementos do DeepSeek Harness](https://github.com/PerryLink) mantidos por [PerryLink](https://github.com/PerryLink). Se este ajuda você, os outros provavelmente também ajudarão:
|
|
141
|
+
|
|
142
|
+
| Plugin | One-liner |
|
|
143
|
+
|---|---|
|
|
144
|
+
| [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | Auto-revisão com segundo modelo na cadeia de aprovação, falha fechada por padrão |
|
|
145
|
+
| [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | Agentes filhos em segundo plano e duráveis com barra lateral Web, mensagens e interrupção |
|
|
146
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | Governança de custos para DeepSeek Harness: orçamentos, carbono e latência em um painel. |
|
|
147
|
+
| [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Equivalente ao /rewind do Claude Code: instantâneos, bifurcações e restauração de uma vez |
|
|
148
|
+
| [dsh-claude-move](https://github.com/PerryLink/dsh-claude-move) | Migra sessões, memória, skills e CLAUDE.md do Claude Code para o DSH |
|
|
149
|
+
| [dsh-click](https://github.com/PerryLink/dsh-click) | Controle de desktop nativo multiplataforma para DeepSeek Harness — Windows primeiro. |
|
|
150
|
+
| [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Histórico de entrada estilo terminal para o compositor web: setas, busca Ctrl+R |
|
|
151
|
+
| [dsh-defend](https://github.com/PerryLink/dsh-defend) | Defesa contra injeção de prompt, jailbreak e vazamento de segredos para DeepSeek Harness. |
|
|
152
|
+
| [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | Guarda de disciplina de engenharia: sabatina de requisitos, portões de teste, revisão adversária |
|
|
153
|
+
| [dsh-draw](https://github.com/PerryLink/dsh-draw) | Roteamento unificado de geração de imagens estáticas para DeepSeek Harness. |
|
|
154
|
+
| [dsh-fast](https://github.com/PerryLink/dsh-fast) | Diagnóstico de desempenho somente leitura para DeepSeek Harness. |
|
|
155
|
+
| [dsh-github](https://github.com/PerryLink/dsh-github) | Integração de PR/issues do GitHub para DSH, toda escrita com aprovação |
|
|
156
|
+
| [dsh-library](https://github.com/PerryLink/dsh-library) | Base de conhecimento documental local para DeepSeek Harness. |
|
|
157
|
+
| [dsh-local-ai](https://github.com/PerryLink/dsh-local-ai) | Integração de modelos locais (Ollama) para DeepSeek Harness. |
|
|
158
|
+
| [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | Diagnóstico, formatação, completação, ações e renomeação LSP via servidores de linguagem |
|
|
159
|
+
| [dsh-mask](https://github.com/PerryLink/dsh-mask) | Middleware de mascaramento de PII para DeepSeek Harness — anonimiza antes do modelo e restaura na camada de exibição. |
|
|
160
|
+
| [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | Painel MCP somente leitura: comando /mcp + aba de configurações com status, ferramentas e erros |
|
|
161
|
+
| [dsh-memento](https://github.com/PerryLink/dsh-memento) | Memória entre sessões com porta de aprovação: seam ctx.memory + SQLite + ferramenta memory |
|
|
162
|
+
| [dsh-observe](https://github.com/PerryLink/dsh-observe) | Exportador de observabilidade OpenTelemetry e Langfuse para DeepSeek Harness. |
|
|
163
|
+
| [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Troca de estilos em tempo de execução equivalente ao outputStyles do Claude Code |
|
|
164
|
+
| [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Regras declarativas allow/deny/ask estilo Claude Code com auditoria |
|
|
165
|
+
| [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | Base de conhecimento de desenvolvimento de plugins como skill de agente sob demanda |
|
|
166
|
+
| [dsh-score](https://github.com/PerryLink/dsh-score) | Pontuação de qualidade multidimensional para plugins do DeepSeek Harness. |
|
|
167
|
+
| [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | Fixa sessões na barra lateral Web com ordenação durável |
|
|
168
|
+
| [dsh-session-sync](https://github.com/PerryLink/dsh-session-sync) | Sincronização de sessões entre dispositivos para DeepSeek Harness — um espelho git dedicado do seu armazenamento de sessões. |
|
|
169
|
+
| [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | Pacote de skills de auditoria de segurança: varredura de segredos, revisão de dependências e cadeia de suprimentos |
|
|
170
|
+
| [dsh-talk](https://github.com/PerryLink/dsh-talk) | Loop de sessão com voz para DeepSeek Harness: fale e ouça a resposta. |
|
|
171
|
+
| [dsh-test-drive](https://github.com/PerryLink/dsh-test-drive) | Testes isolados de instalação e inicialização para plugins do DeepSeek Harness. |
|
|
172
|
+
| [dsh-translate](https://github.com/PerryLink/dsh-translate) | Tradução de parâmetros entre fornecedores e reparo determinístico de JSON para DeepSeek Harness. |
|
|
173
|
+
|
|
138
174
|
## License
|
|
139
175
|
|
|
140
176
|
[Apache License 2.0](LICENSE) © 2026 dsh-budget contributors
|
package/README.zh.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
| 方面 | 状态 |
|
|
26
26
|
|---|---|
|
|
27
|
-
| Harness | DeepSeek Harness `0.1.
|
|
27
|
+
| Harness | DeepSeek Harness `0.1.1-rc.2` |
|
|
28
28
|
| Node | `^22.19.0 \|\| >=24.0.0` |
|
|
29
29
|
| 界面 | Host + Web 客户端(设置页预算页签);`/budget` 命令 |
|
|
30
30
|
|
|
@@ -119,7 +119,7 @@ dsh --profile web --dump-config | grep -A2 'id: budget'
|
|
|
119
119
|
```sh
|
|
120
120
|
pnpm install # node ^22.19 || >=24
|
|
121
121
|
pnpm run typecheck # tsc:src + tests,对照本地 harness checkout
|
|
122
|
-
pnpm run typecheck:ci # tsc:对照已发布的 0.1.
|
|
122
|
+
pnpm run typecheck:ci # tsc:对照已发布的 0.1.1-rc.2 类型(无 paths)
|
|
123
123
|
pnpm test # vitest:45 个测试
|
|
124
124
|
pnpm run build # tsc 声明 + tsdown bundles(lib/)
|
|
125
125
|
pnpm run verify:self-contained # 依赖声明全部来自 registry
|
|
@@ -135,6 +135,42 @@ pnpm pack # 发布用 tarball
|
|
|
135
135
|
|
|
136
136
|
- [@PerryLink](https://github.com/PerryLink) —— 创建者与维护者:聚合、预算治理、碳足迹与延迟移植、设置页签与五语文档。
|
|
137
137
|
|
|
138
|
+
## PerryLink DSH Plugin Family
|
|
139
|
+
|
|
140
|
+
本项目是由 [PerryLink](https://github.com/PerryLink) 维护的 [29 个 DeepSeek Harness 插件](https://github.com/PerryLink)之一。如果这个对你有用,其他插件很可能也会:
|
|
141
|
+
|
|
142
|
+
| Plugin | One-liner |
|
|
143
|
+
|---|---|
|
|
144
|
+
| [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | 审批链上的第二模型自动审查,默认失败关闭 |
|
|
145
|
+
| [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | 持久化后台子代理,带 Web UI 侧边栏、消息与打断 |
|
|
146
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | DeepSeek Harness 的成本治理:预算、碳排与延迟一屏呈现。 |
|
|
147
|
+
| [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Claude Code /rewind 等价物:快照、会话分叉、一次性恢复 |
|
|
148
|
+
| [dsh-claude-move](https://github.com/PerryLink/dsh-claude-move) | 将 Claude Code 会话、记忆、技能与 CLAUDE.md 迁入 DSH |
|
|
149
|
+
| [dsh-click](https://github.com/PerryLink/dsh-click) | 跨平台原生桌面控制(DeepSeek Harness),Windows 优先。 |
|
|
150
|
+
| [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Web 输入框的终端式输入历史:方向键、Ctrl+R 搜索 |
|
|
151
|
+
| [dsh-defend](https://github.com/PerryLink/dsh-defend) | DeepSeek Harness 的提示注入、越狱与密钥泄露防护。 |
|
|
152
|
+
| [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | 工程纪律门禁:需求质询、测试门禁、对抗式审查 |
|
|
153
|
+
| [dsh-draw](https://github.com/PerryLink/dsh-draw) | DeepSeek Harness 的统一静态图像生成路由。 |
|
|
154
|
+
| [dsh-fast](https://github.com/PerryLink/dsh-fast) | DeepSeek Harness 的只读性能诊断。 |
|
|
155
|
+
| [dsh-github](https://github.com/PerryLink/dsh-github) | DSH 的 GitHub PR/issue 集成,每次写入都经审批门 |
|
|
156
|
+
| [dsh-library](https://github.com/PerryLink/dsh-library) | DeepSeek Harness 的本地文档知识库。 |
|
|
157
|
+
| [dsh-local-ai](https://github.com/PerryLink/dsh-local-ai) | DeepSeek Harness 的本地模型(Ollama)接入。 |
|
|
158
|
+
| [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | 经语言服务器的 LSP 诊断、格式化、补全、代码操作与重命名 |
|
|
159
|
+
| [dsh-mask](https://github.com/PerryLink/dsh-mask) | DeepSeek Harness 的 PII 脱敏中间件——数据到模型前匿名化,展示层还原。 |
|
|
160
|
+
| [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | 只读 MCP 运行时面板:/mcp 命令 + 带状态、工具与错误的设置页 |
|
|
161
|
+
| [dsh-memento](https://github.com/PerryLink/dsh-memento) | 带审批门的跨会话记忆:ctx.memory 接缝 + SQLite + memory 工具 |
|
|
162
|
+
| [dsh-observe](https://github.com/PerryLink/dsh-observe) | DeepSeek Harness 的 OpenTelemetry 与 Langfuse 可观测导出器。 |
|
|
163
|
+
| [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Claude Code outputStyles 等价的运行时样式切换 |
|
|
164
|
+
| [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Claude Code 风格声明式 allow/deny/ask 权限规则,带审计 |
|
|
165
|
+
| [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | 按需 agent 技能形式的插件开发知识库 |
|
|
166
|
+
| [dsh-score](https://github.com/PerryLink/dsh-score) | DeepSeek Harness 插件的多指标质量评分。 |
|
|
167
|
+
| [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | 在 Web 侧边栏置顶会话,顺序持久化 |
|
|
168
|
+
| [dsh-session-sync](https://github.com/PerryLink/dsh-session-sync) | DeepSeek Harness 的跨设备会话同步——会话存储的专用 git 镜像。 |
|
|
169
|
+
| [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | 安全审计技能包:密钥扫描、依赖与供应链审查 |
|
|
170
|
+
| [dsh-talk](https://github.com/PerryLink/dsh-talk) | DeepSeek Harness 的语音优先会话闭环:对它说,听它答。 |
|
|
171
|
+
| [dsh-test-drive](https://github.com/PerryLink/dsh-test-drive) | DeepSeek Harness 插件的隔离式安装冒烟实测。 |
|
|
172
|
+
| [dsh-translate](https://github.com/PerryLink/dsh-translate) | DeepSeek Harness 的厂商参数翻译与确定性 JSON 修复。 |
|
|
173
|
+
|
|
138
174
|
## License
|
|
139
175
|
|
|
140
176
|
[Apache License 2.0](LICENSE) © 2026 dsh-budget contributors
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module dsh-budget/aggregate
|
|
9
9
|
*/
|
|
10
10
|
import type { TokenUsage } from '@deepseek-ai/dsh-llm';
|
|
11
|
-
import type { ResolvedConfig } from '../config.
|
|
11
|
+
import type { ResolvedConfig } from '../config.js';
|
|
12
12
|
/** One scope's token buckets (disjoint, mirroring TokenUsage). */
|
|
13
13
|
export interface TokenBuckets {
|
|
14
14
|
inputTokens: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** The budget settings tab: usage bars, model breakdown, alerts, cap editors, and unblock actions. */
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
4
|
-
import type { BudgetStatus } from '../wire.
|
|
4
|
+
import type { BudgetStatus } from '../wire.js';
|
|
5
5
|
/** Registration-side injected face: the budget RPCs (RemoteResult already unwrapped). */
|
|
6
6
|
export interface BudgetTabInjected {
|
|
7
7
|
/** Read the current Host snapshot. */
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* @module dsh-budget/client
|
|
9
9
|
*/
|
|
10
10
|
import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client';
|
|
11
|
-
import { type BudgetLocaleKey } from './locales.
|
|
12
|
-
export type { BudgetTabInjected, BudgetTabProps } from './BudgetTab.
|
|
13
|
-
export type { BudgetLocaleKey } from './locales.
|
|
14
|
-
export { formatAlertTime, formatMoney, scopePercent, scopeTone } from './present.
|
|
15
|
-
export type { BudgetTone } from './present.
|
|
11
|
+
import { type BudgetLocaleKey } from './locales.js';
|
|
12
|
+
export type { BudgetTabInjected, BudgetTabProps } from './BudgetTab.js';
|
|
13
|
+
export type { BudgetLocaleKey } from './locales.js';
|
|
14
|
+
export { formatAlertTime, formatMoney, scopePercent, scopeTone } from './present.js';
|
|
15
|
+
export type { BudgetTone } from './present.js';
|
|
16
16
|
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
17
17
|
interface LocaleNamespaceMap {
|
|
18
18
|
/** Budget settings tab copy. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module dsh-budget/client/present
|
|
7
7
|
*/
|
|
8
|
-
import type { BudgetStatus, ScopeLine } from '../wire.
|
|
8
|
+
import type { BudgetStatus, ScopeLine } from '../wire.js';
|
|
9
9
|
/** One scope row's bar tone. */
|
|
10
10
|
export type BudgetTone = 'ok' | 'warn' | 'over';
|
|
11
11
|
/** Format one USD amount through the snapshot's display currency. */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module dsh-budget/client/remote
|
|
9
9
|
*/
|
|
10
10
|
import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol';
|
|
11
|
-
import type { BudgetStatus } from '../wire.
|
|
11
|
+
import type { BudgetStatus } from '../wire.js';
|
|
12
12
|
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
13
13
|
interface TypertRemoteNamespace$budget {
|
|
14
14
|
/** Read the current budget snapshot (session-attributed). */
|
package/lib/types/command.d.ts
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @module dsh-budget/command
|
|
9
9
|
*/
|
|
10
10
|
import type { CommandDefinition } from '@deepseek-ai/dsh-commands';
|
|
11
|
-
import { sanitizeText } from './estimate/sanitize.
|
|
12
|
-
import type { BudgetService } from './service.
|
|
13
|
-
import type { BudgetStatus, BudgetScope } from './wire.
|
|
11
|
+
import { sanitizeText } from './estimate/sanitize.js';
|
|
12
|
+
import type { BudgetService } from './service.js';
|
|
13
|
+
import type { BudgetStatus, BudgetScope } from './wire.js';
|
|
14
14
|
/** Command output language. */
|
|
15
15
|
export type BudgetCommandLanguage = 'en' | 'zh';
|
|
16
16
|
/** Message bundle per language. */
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module dsh-budget/governance
|
|
9
9
|
*/
|
|
10
|
-
import type { ResolvedConfig } from './config.
|
|
11
|
-
import { BudgetAggregator } from './aggregate/usage.
|
|
10
|
+
import type { ResolvedConfig } from './config.js';
|
|
11
|
+
import { BudgetAggregator } from './aggregate/usage.js';
|
|
12
12
|
/** One scope's budget check outcome. */
|
|
13
13
|
export interface ScopeDecision {
|
|
14
14
|
scope: 'session' | 'daily' | 'monthly';
|
package/lib/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Function plugin 鈥?no default export (the Loader unwraps
|
|
11
11
|
* `exports.default ?? exports`).
|
|
12
12
|
*
|
|
13
|
-
* Seam notes (verified against 0.1.
|
|
13
|
+
* Seam notes (verified against 0.1.1-rc.2 and the local checkout):
|
|
14
14
|
* - Usage arrives as `assistant/message` events (`usage?: TokenUsage`);
|
|
15
15
|
* provider/model attribution comes from the latest `request/header`
|
|
16
16
|
* (`header.config.provider` / `header.config.model`).
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
* waterfall listener short-circuit is a deliberate claim, not a passthrough
|
|
23
23
|
* bug: pass-through paths always call `next()`.
|
|
24
24
|
* - Session audit appends use the two-argument `Session.append` form (the
|
|
25
|
-
* pinned rc.
|
|
25
|
+
* pinned rc.2 peers have no append-envelope option).
|
|
26
26
|
*
|
|
27
27
|
* @module dsh-budget
|
|
28
28
|
*/
|
|
29
29
|
import type { Context } from '@deepseek-ai/cordis';
|
|
30
|
-
import { Config } from './config.
|
|
30
|
+
import { Config } from './config.js';
|
|
31
31
|
export declare const name = "dsh-budget";
|
|
32
32
|
/** Hard services: the session store every aggregation keys off. */
|
|
33
33
|
export declare const inject: string[];
|
|
34
|
-
export { Config, resolveConfig } from './config.
|
|
35
|
-
export type { ResolvedConfig } from './config.
|
|
36
|
-
export { BudgetAggregator } from './aggregate/usage.
|
|
37
|
-
export { checkBudgets, degradationFor } from './governance.
|
|
38
|
-
export { BudgetService, effectiveCap } from './service.
|
|
39
|
-
export { budgetCommand, parseBudgetArgs, renderBudgetModels, renderBudgetOverview } from './command.
|
|
40
|
-
export { ALERT_EVENT, BLOCK_EVENT } from './events.
|
|
34
|
+
export { Config, resolveConfig } from './config.js';
|
|
35
|
+
export type { ResolvedConfig } from './config.js';
|
|
36
|
+
export { BudgetAggregator } from './aggregate/usage.js';
|
|
37
|
+
export { checkBudgets, degradationFor } from './governance.js';
|
|
38
|
+
export { BudgetService, effectiveCap } from './service.js';
|
|
39
|
+
export { budgetCommand, parseBudgetArgs, renderBudgetModels, renderBudgetOverview } from './command.js';
|
|
40
|
+
export { ALERT_EVENT, BLOCK_EVENT } from './events.js';
|
|
41
41
|
/**
|
|
42
42
|
* Mount the plugin: resolve config, build the aggregator, wire the session
|
|
43
43
|
* event feed, the budget checks, the `llm/stream` blocker, the webhook
|
package/lib/types/service.d.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { Context } from '@deepseek-ai/cordis';
|
|
12
12
|
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
13
|
-
import type { ResolvedConfig } from './config.
|
|
14
|
-
import { BudgetAggregator } from './aggregate/usage.
|
|
15
|
-
import type { BudgetScope } from './wire.
|
|
16
|
-
import { type BudgetStatus } from './wire.
|
|
13
|
+
import type { ResolvedConfig } from './config.js';
|
|
14
|
+
import { BudgetAggregator } from './aggregate/usage.js';
|
|
15
|
+
import type { BudgetScope } from './wire.js';
|
|
16
|
+
import { type BudgetStatus } from './wire.js';
|
|
17
17
|
declare module '@deepseek-ai/cordis' {
|
|
18
18
|
interface Context {
|
|
19
19
|
/** Budget snapshot + runtime actions service (this package). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-budget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
],
|
|
82
82
|
"compatibility": {
|
|
83
83
|
"dshVersions": [
|
|
84
|
-
"0.1.
|
|
84
|
+
"0.1.1-rc.2"
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
"capability": {
|
|
@@ -115,14 +115,14 @@
|
|
|
115
115
|
"packageManager": "pnpm@11.7.0",
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
118
|
-
"@deepseek-ai/
|
|
119
|
-
"@deepseek-ai/dsh-
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-
|
|
124
|
-
"@deepseek-ai/dsh-
|
|
125
|
-
"@deepseek-ai/
|
|
118
|
+
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.8 <0.2.0",
|
|
119
|
+
"@deepseek-ai/dsh-commands": ">=0.1.0-rc.8 <0.2.0",
|
|
120
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
|
|
121
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
|
|
122
|
+
"@deepseek-ai/dsh-token-meter": ">=0.1.0-rc.8 <0.2.0",
|
|
123
|
+
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
|
|
124
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.0-rc.8 <0.2.0",
|
|
125
|
+
"@deepseek-ai/schemastery": "^3.18.0"
|
|
126
126
|
},
|
|
127
127
|
"dependencies": {
|
|
128
128
|
"tsdown": "^0.22.14",
|
|
@@ -131,21 +131,25 @@
|
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
133
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
134
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.6",
|
|
135
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
136
|
+
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
137
|
+
"@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
|
|
138
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
139
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-commands": "0.1.1-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-token-meter": "0.1.1-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.1-rc.2",
|
|
134
148
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
135
|
-
"@deepseek-ai/dsh-agent": "0.1.0-rc.6",
|
|
136
|
-
"@deepseek-ai/dsh-client-connection": "0.1.0-rc.6",
|
|
137
|
-
"@deepseek-ai/dsh-client-locale": "0.1.0-rc.6",
|
|
138
|
-
"@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
|
|
139
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.0-rc.6",
|
|
140
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
|
|
141
|
-
"@deepseek-ai/dsh-commands": "0.1.0-rc.6",
|
|
142
|
-
"@deepseek-ai/dsh-llm": "0.1.0-rc.6",
|
|
143
|
-
"@deepseek-ai/dsh-session": "0.1.0-rc.6",
|
|
144
|
-
"@deepseek-ai/dsh-token-meter": "0.1.0-rc.6",
|
|
145
|
-
"@deepseek-ai/dsh-tools": "0.1.0-rc.6",
|
|
146
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.0-rc.6",
|
|
147
149
|
"@types/node": "^22.19.0",
|
|
148
150
|
"@types/react": "18.3.31",
|
|
151
|
+
"@vitest/coverage-v8": "3.2.7",
|
|
152
|
+
"oxlint": "0.18.1",
|
|
149
153
|
"react": "18.3.1",
|
|
150
154
|
"react-dom": "18.3.1",
|
|
151
155
|
"vitest": "^3.2.0"
|
|
@@ -156,6 +160,9 @@
|
|
|
156
160
|
"typecheck:ci": "tsc -p tsconfig.ci.json --noEmit",
|
|
157
161
|
"test": "vitest run",
|
|
158
162
|
"test:watch": "vitest",
|
|
163
|
+
"test:coverage": "vitest run --coverage",
|
|
164
|
+
"lint": "oxlint",
|
|
165
|
+
"check:readmes": "node scripts/check-readme-sync.mjs",
|
|
159
166
|
"prepare": "node scripts/prepare.mjs",
|
|
160
167
|
"verify:self-contained": "node scripts/verify-self-contained.mjs",
|
|
161
168
|
"verify:artifacts": "node scripts/verify-artifacts.mjs"
|