dsh-ds-balance 2.1.2 → 2.2.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/README.md +78 -19
- package/README_en.md +81 -19
- package/lib/adapters/domain-core-store.d.ts +2 -2
- package/lib/adapters/domain-core-store.js +3 -1
- package/lib/adapters/host-account.d.ts +66 -0
- package/lib/adapters/host-account.js +68 -0
- package/lib/client.js +473 -114
- package/lib/domain/account.d.ts +40 -0
- package/lib/domain/account.js +74 -0
- package/lib/domain/balance.d.ts +20 -1
- package/lib/domain/normalize.d.ts +3 -2
- package/lib/domain/normalize.js +3 -2
- package/lib/domain/severity.d.ts +8 -2
- package/lib/domain/severity.js +11 -4
- package/lib/domain/situation.d.ts +104 -0
- package/lib/domain/situation.js +93 -0
- package/lib/http/handlers.d.ts +1 -1
- package/lib/http/handlers.js +29 -5
- package/lib/http/wire.d.ts +11 -1
- package/lib/http/wire.js +2 -0
- package/lib/index.js +122 -6
- package/lib/ports/account.d.ts +27 -0
- package/lib/ports/account.js +9 -0
- package/lib/services/balance-service.d.ts +66 -85
- package/lib/services/balance-service.js +132 -181
- package/lib/services/balance-source.d.ts +174 -0
- package/lib/services/balance-source.js +294 -0
- package/lib/services/scheduler.d.ts +31 -2
- package/lib/services/scheduler.js +29 -2
- package/lib/services/source-readers.d.ts +26 -0
- package/lib/services/source-readers.js +73 -0
- package/lib/services/source-selector.d.ts +50 -0
- package/lib/services/source-selector.js +64 -0
- package/lib/types/client/api-types.d.ts +16 -0
- package/lib/types/client/data.d.ts +12 -3
- package/lib/types/client/index.d.ts +6 -0
- package/lib/types/client/locales.d.ts +10 -18
- package/lib/types/client/mock/index.d.ts +12 -11
- package/lib/types/client/mock/scenarios.d.ts +13 -5
- package/lib/types/client/model.d.ts +49 -25
- package/lib/types/client/route-hint.d.ts +61 -0
- package/lib/types/client/sidebar/BalancePopover.d.ts +7 -0
- package/lib/types/client/sidebar/PercentRing.d.ts +13 -5
- package/lib/types/client/sidebar/SidebarBalance.d.ts +9 -1
- package/lib/types/client/situation.d.ts +164 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +25 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ds-balance",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"icon": "./icon.svg",
|
|
5
5
|
"description": "DSH plugin: shows the DeepSeek account balance at the bottom of the sidebar, with a configuration card on the Plugins page.",
|
|
6
6
|
"keywords": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"LICENSE"
|
|
48
48
|
],
|
|
49
49
|
"engines": {
|
|
50
|
-
"dsh": ">=0.
|
|
50
|
+
"dsh": ">=0.2.0-rc.1",
|
|
51
51
|
"node": ">=20"
|
|
52
52
|
},
|
|
53
53
|
"dsh": {
|
|
@@ -75,15 +75,16 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@deepseek-ai/cordis": "^4.0.3",
|
|
78
|
-
"@deepseek-ai/dsh-client-connection": ">=0.
|
|
79
|
-
"@deepseek-ai/dsh-client-locale": ">=0.
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-primitives": ">=0.
|
|
81
|
-
"@deepseek-ai/dsh-client-ui-settings": ">=0.
|
|
82
|
-
"@deepseek-ai/dsh-client-ui-slots": ">=0.
|
|
83
|
-
"@deepseek-ai/dsh-credentials": ">=0.
|
|
84
|
-
"@deepseek-ai/dsh-
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
"@deepseek-ai/dsh-
|
|
78
|
+
"@deepseek-ai/dsh-client-connection": ">=0.2.0-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.0-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-credentials": ">=0.2.0-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-deepseek-account-platform": ">=0.2.0-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-home-paths": ">=0.2.0-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-settings": ">=0.2.0-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.2.0-rc.1",
|
|
87
88
|
"@deepseek-ai/schemastery": "^3.18.3",
|
|
88
89
|
"react": "^18.3.1",
|
|
89
90
|
"react-dom": "^18.3.1"
|
|
@@ -91,18 +92,19 @@
|
|
|
91
92
|
"devDependencies": {
|
|
92
93
|
"@deepseek-ai/cordis": "^4.0.3",
|
|
93
94
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.4",
|
|
94
|
-
"@deepseek-ai/dsh-client-connection": ">=0.
|
|
95
|
-
"@deepseek-ai/dsh-client-locale": ">=0.
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-primitives": ">=0.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-renderer": ">=0.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-settings": ">=0.
|
|
100
|
-
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.
|
|
101
|
-
"@deepseek-ai/dsh-client-ui-slots": ">=0.
|
|
102
|
-
"@deepseek-ai/dsh-credentials": ">=0.
|
|
103
|
-
"@deepseek-ai/dsh-
|
|
104
|
-
"@deepseek-ai/dsh-
|
|
105
|
-
"@deepseek-ai/dsh-
|
|
95
|
+
"@deepseek-ai/dsh-client-connection": ">=0.2.0-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.0-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.2.0-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.0-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.0-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-credentials": ">=0.2.0-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-deepseek-account-platform": ">=0.2.0-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-home-paths": ">=0.2.0-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-settings": ">=0.2.0-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.2.0-rc.1",
|
|
106
108
|
"@deepseek-ai/schemastery": "^3.18.3",
|
|
107
109
|
"@eslint/js": "^10.0.1",
|
|
108
110
|
"@types/node": "^20.0.0",
|