dsh-budget 0.2.0 → 0.3.0
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 +6 -0
- package/README.es.md +1 -0
- package/README.hi.md +1 -0
- package/README.md +1 -0
- package/README.pt.md +1 -0
- package/README.zh.md +1 -0
- package/cordis.patch.yml +7 -0
- package/lib/index.js +7058 -174
- package/lib/rolldown-runtime-D7D4PA-g.js +13 -0
- package/lib/typert.host.js +1 -1
- package/lib/types/aggregate/usage.d.ts +31 -0
- package/lib/types/aggregate/usage.d.ts.map +1 -1
- package/lib/types/config.d.ts +13 -0
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/index.d.ts +7 -3
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/store.d.ts +62 -0
- package/lib/types/store.d.ts.map +1 -0
- package/lib/{wire-Bq5J-SHv.js → wire-zYaXk7IG.js} +2858 -74
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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.3.0] - 2026-08-26
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Persist daily and monthly budget buckets across restarts.
|
|
13
|
+
|
|
8
14
|
## [0.2.0] - 2026-08-23
|
|
9
15
|
|
|
10
16
|
### Changed
|
package/README.es.md
CHANGED
|
@@ -84,6 +84,7 @@ Todos los ajustes son campos `Config` de Schemastery (modificables desde cordis.
|
|
|
84
84
|
| `currency` | `{code: USD, rate: 1.0, decimals: 2}` | Moneda de visualización (los costos se calculan en USD) |
|
|
85
85
|
| `outputLanguage` | `en` | Idioma de salida de `/budget`: `en` / `zh` |
|
|
86
86
|
| `historyDays` | `30` | Días de historial de uso diario en la instantánea |
|
|
87
|
+
| `persistence.enabled` / `intervalMs` | `true` / `10000` | Persistencia duradera diaria/mensual entre reinicios (dominio de almacenamiento); degrada a en-memoria si falta el dominio |
|
|
87
88
|
|
|
88
89
|
## Herramientas y superficies
|
|
89
90
|
|
package/README.hi.md
CHANGED
|
@@ -84,6 +84,7 @@ dsh --profile web --dump-config | grep -A2 'id: budget'
|
|
|
84
84
|
| `currency` | `{code: USD, rate: 1.0, decimals: 2}` | प्रदर्शन मुद्रा (लागत USD में गणित) |
|
|
85
85
|
| `outputLanguage` | `en` | `/budget` आउटपुट भाषा: `en` / `zh` |
|
|
86
86
|
| `historyDays` | `30` | स्नैपशॉट में रखे प्रति-दिन उपयोग इतिहास के दिन |
|
|
87
|
+
| `persistence.enabled` / `intervalMs` | `true` / `10000` | पुनरारंभ के बीच टिकाऊ दैनिक/मासिक संग्रहण (स्टोरेज डोमेन); डोमेन अनुपस्थित होने पर इन-मेमोरी में पतन |
|
|
87
88
|
|
|
88
89
|
## टूल और सतहें
|
|
89
90
|
|
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ All tunables are Schemastery `Config` fields (changeable from cordis.yml). `cord
|
|
|
85
85
|
| `currency` | `{code: USD, rate: 1.0, decimals: 2}` | Display currency (costs are computed in USD) |
|
|
86
86
|
| `outputLanguage` | `en` | `/budget` output language: `en` / `zh` |
|
|
87
87
|
| `historyDays` | `30` | Per-day usage history kept in the panel snapshot |
|
|
88
|
+
| `persistence.enabled` / `intervalMs` | `true` / `10000` | Durable day/month persistence across restarts (storage domain); degrades to in-memory when the domain is absent |
|
|
88
89
|
|
|
89
90
|
## Tools & surfaces
|
|
90
91
|
|
package/README.pt.md
CHANGED
|
@@ -84,6 +84,7 @@ Todos os ajustes são campos `Config` do Schemastery (alteráveis pelo cordis.ym
|
|
|
84
84
|
| `currency` | `{code: USD, rate: 1.0, decimals: 2}` | Moeda de exibição (custos calculados em USD) |
|
|
85
85
|
| `outputLanguage` | `en` | Idioma de saída do `/budget`: `en` / `zh` |
|
|
86
86
|
| `historyDays` | `30` | Dias de histórico de uso diário no snapshot |
|
|
87
|
+
| `persistence.enabled` / `intervalMs` | `true` / `10000` | Persistência durável diária/mensal entre reinícios (domínio de armazenamento); degrada para em-memória se o domínio estiver ausente |
|
|
87
88
|
|
|
88
89
|
## Ferramentas e superfícies
|
|
89
90
|
|
package/README.zh.md
CHANGED
|
@@ -84,6 +84,7 @@ dsh --profile web --dump-config | grep -A2 'id: budget'
|
|
|
84
84
|
| `currency` | `{code: USD, rate: 1.0, decimals: 2}` | 展示货币(成本以 USD 计算,仅展示换算) |
|
|
85
85
|
| `outputLanguage` | `en` | `/budget` 输出语言:`en` / `zh` |
|
|
86
86
|
| `historyDays` | `30` | 面板快照保留的按天用量历史天数 |
|
|
87
|
+
| `persistence.enabled` / `intervalMs` | `true` / `10000` | 日/月用量跨重启持久化(storage 域);域缺失时降级为进程内聚合 |
|
|
87
88
|
|
|
88
89
|
## 工具与界面
|
|
89
90
|
|
package/cordis.patch.yml
CHANGED
|
@@ -71,3 +71,10 @@
|
|
|
71
71
|
outputLanguage: en
|
|
72
72
|
# Days of per-day usage history kept in the panel snapshot.
|
|
73
73
|
historyDays: 30
|
|
74
|
+
# Durable day/month persistence across restarts (storage domain).
|
|
75
|
+
# When the storage domain is absent the plugin degrades to in-memory
|
|
76
|
+
# aggregation (the pre-persistence behavior).
|
|
77
|
+
persistence:
|
|
78
|
+
enabled: true
|
|
79
|
+
# Milliseconds between persistence snapshots (1000..300000).
|
|
80
|
+
intervalMs: 10000
|