dsh-token-dash 1.0.1 → 1.0.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/README.en.md CHANGED
@@ -155,6 +155,8 @@ npm run e2e # end-to-end (temp DSH_HOME + web profile + Playwright)
155
155
  npm run pack # build the release tarball into build/
156
156
  ```
157
157
 
158
+ Releases: pushing a `v*` tag triggers the GitHub Release (tarball) and an npm staged publish automatically (goes live after a maintainer approves it on npmjs.com with 2FA); see [doc/release.md](./doc/release.md) for the full checklist.
159
+
158
160
  ## Acknowledgements
159
161
 
160
162
  Attribution and billing semantics learned from these community plugins:
package/README.md CHANGED
@@ -179,6 +179,8 @@ npm run e2e # 端到端(临时 DSH_HOME + web profile + Playwright)
179
179
  npm run pack # 发布 tarball 生成到 build/
180
180
  ```
181
181
 
182
+ 发版:推 `v*` tag 自动触发 GitHub Release(tarball)与 npm 暂存(staged publishing,网页 2FA 审批后上线);完整流程见 [doc/release.md](./doc/release.md)。
183
+
182
184
  ## 致谢
183
185
 
184
186
  归属与计费语义参考了以下社区插件:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-token-dash",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "DSH Token 看板:API/订阅动态 provider、预算、配额、模型费用/用量与诊断日志。",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/adapters.js CHANGED
@@ -118,7 +118,7 @@ async function deepseek(ctx) {
118
118
  const account = ctx.get?.('deepseekAccount')
119
119
  if (account !== undefined && typeof account.getBalance === 'function') {
120
120
  try {
121
- const data = await account.getBalance({ version: '1.0.1', locale: 'zh-CN', timezoneOffsetSeconds: -new Date().getTimezoneOffset() * 60 })
121
+ const data = await account.getBalance({ version: '1.0.2', locale: 'zh-CN', timezoneOffsetSeconds: -new Date().getTimezoneOffset() * 60 })
122
122
  if (data?.status === 'ready') {
123
123
  const wallets = [...(Array.isArray(data.value) ? data.value : Object.values(data.value ?? {})), ...(data.bonusWallets ?? [])]
124
124
  const amount = wallets.filter((wallet) => wallet?.currency === undefined || wallet.currency === 'CNY')