dsh-desktop-statusbar 3.0.4 → 3.0.6

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.
Files changed (597) hide show
  1. package/README.de.md +267 -0
  2. package/README.en.md +136 -14
  3. package/README.es.md +267 -0
  4. package/README.fr.md +267 -0
  5. package/README.ja.md +267 -0
  6. package/README.md +136 -14
  7. package/README.pt.md +267 -0
  8. package/README.ru.md +267 -0
  9. package/docs/pricing.de.png +0 -0
  10. package/docs/pricing.es.png +0 -0
  11. package/docs/pricing.fr.png +0 -0
  12. package/docs/pricing.ja.png +0 -0
  13. package/docs/pricing.pt.png +0 -0
  14. package/docs/pricing.ru.png +0 -0
  15. package/docs/settings.de.png +0 -0
  16. package/docs/settings.es.png +0 -0
  17. package/docs/settings.fr.png +0 -0
  18. package/docs/settings.ja.png +0 -0
  19. package/docs/settings.pt.png +0 -0
  20. package/docs/settings.ru.png +0 -0
  21. package/lib/balance-api.js +1042 -782
  22. package/lib/client.js +12775 -12364
  23. package/lib/index.js +8340 -7784
  24. package/lib/vendor/zod/LICENSE +21 -0
  25. package/lib/vendor/zod/index.cjs +52 -0
  26. package/lib/vendor/zod/index.js +7 -0
  27. package/lib/vendor/zod/locales/index.cjs +36 -0
  28. package/lib/vendor/zod/locales/index.d.cts +1 -0
  29. package/lib/vendor/zod/locales/index.d.ts +1 -0
  30. package/lib/vendor/zod/locales/index.js +1 -0
  31. package/lib/vendor/zod/locales/package.json +7 -0
  32. package/lib/vendor/zod/mini/index.cjs +51 -0
  33. package/lib/vendor/zod/mini/index.d.cts +3 -0
  34. package/lib/vendor/zod/mini/index.d.ts +3 -0
  35. package/lib/vendor/zod/mini/index.js +3 -0
  36. package/lib/vendor/zod/mini/package.json +7 -0
  37. package/lib/vendor/zod/package.json +147 -0
  38. package/lib/vendor/zod/v3/ZodError.cjs +167 -0
  39. package/lib/vendor/zod/v3/ZodError.d.cts +164 -0
  40. package/lib/vendor/zod/v3/ZodError.d.ts +164 -0
  41. package/lib/vendor/zod/v3/ZodError.js +143 -0
  42. package/lib/vendor/zod/v3/errors.cjs +36 -0
  43. package/lib/vendor/zod/v3/errors.d.cts +5 -0
  44. package/lib/vendor/zod/v3/errors.d.ts +5 -0
  45. package/lib/vendor/zod/v3/errors.js +9 -0
  46. package/lib/vendor/zod/v3/external.cjs +41 -0
  47. package/lib/vendor/zod/v3/external.d.cts +6 -0
  48. package/lib/vendor/zod/v3/external.d.ts +6 -0
  49. package/lib/vendor/zod/v3/external.js +6 -0
  50. package/lib/vendor/zod/v3/helpers/enumUtil.cjs +21 -0
  51. package/lib/vendor/zod/v3/helpers/enumUtil.d.cts +8 -0
  52. package/lib/vendor/zod/v3/helpers/enumUtil.d.ts +8 -0
  53. package/lib/vendor/zod/v3/helpers/enumUtil.js +1 -0
  54. package/lib/vendor/zod/v3/helpers/errorUtil.cjs +28 -0
  55. package/lib/vendor/zod/v3/helpers/errorUtil.d.cts +9 -0
  56. package/lib/vendor/zod/v3/helpers/errorUtil.d.ts +9 -0
  57. package/lib/vendor/zod/v3/helpers/errorUtil.js +6 -0
  58. package/lib/vendor/zod/v3/helpers/parseUtil.cjs +143 -0
  59. package/lib/vendor/zod/v3/helpers/parseUtil.d.cts +78 -0
  60. package/lib/vendor/zod/v3/helpers/parseUtil.d.ts +78 -0
  61. package/lib/vendor/zod/v3/helpers/parseUtil.js +109 -0
  62. package/lib/vendor/zod/v3/helpers/partialUtil.cjs +21 -0
  63. package/lib/vendor/zod/v3/helpers/partialUtil.d.cts +8 -0
  64. package/lib/vendor/zod/v3/helpers/partialUtil.d.ts +8 -0
  65. package/lib/vendor/zod/v3/helpers/partialUtil.js +1 -0
  66. package/lib/vendor/zod/v3/helpers/typeAliases.cjs +21 -0
  67. package/lib/vendor/zod/v3/helpers/typeAliases.d.cts +2 -0
  68. package/lib/vendor/zod/v3/helpers/typeAliases.d.ts +2 -0
  69. package/lib/vendor/zod/v3/helpers/typeAliases.js +1 -0
  70. package/lib/vendor/zod/v3/helpers/util.cjs +156 -0
  71. package/lib/vendor/zod/v3/helpers/util.d.cts +85 -0
  72. package/lib/vendor/zod/v3/helpers/util.d.ts +85 -0
  73. package/lib/vendor/zod/v3/helpers/util.js +133 -0
  74. package/lib/vendor/zod/v3/index.cjs +52 -0
  75. package/lib/vendor/zod/v3/index.d.cts +4 -0
  76. package/lib/vendor/zod/v3/index.d.ts +4 -0
  77. package/lib/vendor/zod/v3/index.js +4 -0
  78. package/lib/vendor/zod/v3/locales/en.cjs +112 -0
  79. package/lib/vendor/zod/v3/locales/en.d.cts +3 -0
  80. package/lib/vendor/zod/v3/locales/en.d.ts +3 -0
  81. package/lib/vendor/zod/v3/locales/en.js +109 -0
  82. package/lib/vendor/zod/v3/package.json +7 -0
  83. package/lib/vendor/zod/v3/standard-schema.cjs +21 -0
  84. package/lib/vendor/zod/v3/standard-schema.d.cts +102 -0
  85. package/lib/vendor/zod/v3/standard-schema.d.ts +102 -0
  86. package/lib/vendor/zod/v3/standard-schema.js +1 -0
  87. package/lib/vendor/zod/v3/types.cjs +3798 -0
  88. package/lib/vendor/zod/v3/types.d.cts +1034 -0
  89. package/lib/vendor/zod/v3/types.d.ts +1034 -0
  90. package/lib/vendor/zod/v3/types.js +3697 -0
  91. package/lib/vendor/zod/v4/classic/checks.cjs +53 -0
  92. package/lib/vendor/zod/v4/classic/checks.d.cts +1 -0
  93. package/lib/vendor/zod/v4/classic/checks.d.ts +1 -0
  94. package/lib/vendor/zod/v4/classic/checks.js +1 -0
  95. package/lib/vendor/zod/v4/classic/coerce.cjs +66 -0
  96. package/lib/vendor/zod/v4/classic/coerce.d.cts +17 -0
  97. package/lib/vendor/zod/v4/classic/coerce.d.ts +17 -0
  98. package/lib/vendor/zod/v4/classic/coerce.js +17 -0
  99. package/lib/vendor/zod/v4/classic/compat.cjs +80 -0
  100. package/lib/vendor/zod/v4/classic/compat.d.cts +48 -0
  101. package/lib/vendor/zod/v4/classic/compat.d.ts +48 -0
  102. package/lib/vendor/zod/v4/classic/compat.js +31 -0
  103. package/lib/vendor/zod/v4/classic/deep-partial.cjs +58 -0
  104. package/lib/vendor/zod/v4/classic/deep-partial.d.cts +14 -0
  105. package/lib/vendor/zod/v4/classic/deep-partial.d.ts +14 -0
  106. package/lib/vendor/zod/v4/classic/deep-partial.js +13 -0
  107. package/lib/vendor/zod/v4/classic/errors.cjs +102 -0
  108. package/lib/vendor/zod/v4/classic/errors.d.cts +29 -0
  109. package/lib/vendor/zod/v4/classic/errors.d.ts +29 -0
  110. package/lib/vendor/zod/v4/classic/errors.js +57 -0
  111. package/lib/vendor/zod/v4/classic/external.cjs +97 -0
  112. package/lib/vendor/zod/v4/classic/external.d.cts +19 -0
  113. package/lib/vendor/zod/v4/classic/external.d.ts +19 -0
  114. package/lib/vendor/zod/v4/classic/external.js +17 -0
  115. package/lib/vendor/zod/v4/classic/from-json-schema.cjs +926 -0
  116. package/lib/vendor/zod/v4/classic/from-json-schema.d.cts +12 -0
  117. package/lib/vendor/zod/v4/classic/from-json-schema.d.ts +12 -0
  118. package/lib/vendor/zod/v4/classic/from-json-schema.js +881 -0
  119. package/lib/vendor/zod/v4/classic/in-out.cjs +82 -0
  120. package/lib/vendor/zod/v4/classic/in-out.d.cts +8 -0
  121. package/lib/vendor/zod/v4/classic/in-out.d.ts +8 -0
  122. package/lib/vendor/zod/v4/classic/in-out.js +36 -0
  123. package/lib/vendor/zod/v4/classic/index.cjs +52 -0
  124. package/lib/vendor/zod/v4/classic/index.d.cts +3 -0
  125. package/lib/vendor/zod/v4/classic/index.d.ts +3 -0
  126. package/lib/vendor/zod/v4/classic/index.js +4 -0
  127. package/lib/vendor/zod/v4/classic/iso.cjs +68 -0
  128. package/lib/vendor/zod/v4/classic/iso.d.cts +7 -0
  129. package/lib/vendor/zod/v4/classic/iso.d.ts +7 -0
  130. package/lib/vendor/zod/v4/classic/iso.js +15 -0
  131. package/lib/vendor/zod/v4/classic/package.json +7 -0
  132. package/lib/vendor/zod/v4/classic/parse.cjs +63 -0
  133. package/lib/vendor/zod/v4/classic/parse.d.cts +44 -0
  134. package/lib/vendor/zod/v4/classic/parse.d.ts +44 -0
  135. package/lib/vendor/zod/v4/classic/parse.js +16 -0
  136. package/lib/vendor/zod/v4/classic/schemas.cjs +1676 -0
  137. package/lib/vendor/zod/v4/classic/schemas.d.cts +816 -0
  138. package/lib/vendor/zod/v4/classic/schemas.d.ts +816 -0
  139. package/lib/vendor/zod/v4/classic/schemas.js +1535 -0
  140. package/lib/vendor/zod/v4/core/api.cjs +1269 -0
  141. package/lib/vendor/zod/v4/core/api.d.cts +335 -0
  142. package/lib/vendor/zod/v4/core/api.d.ts +335 -0
  143. package/lib/vendor/zod/v4/core/api.js +1107 -0
  144. package/lib/vendor/zod/v4/core/checks.cjs +561 -0
  145. package/lib/vendor/zod/v4/core/checks.d.cts +294 -0
  146. package/lib/vendor/zod/v4/core/checks.d.ts +294 -0
  147. package/lib/vendor/zod/v4/core/checks.js +516 -0
  148. package/lib/vendor/zod/v4/core/compile.cjs +1908 -0
  149. package/lib/vendor/zod/v4/core/compile.d.cts +65 -0
  150. package/lib/vendor/zod/v4/core/compile.d.ts +65 -0
  151. package/lib/vendor/zod/v4/core/compile.js +1858 -0
  152. package/lib/vendor/zod/v4/core/core.cjs +167 -0
  153. package/lib/vendor/zod/v4/core/core.d.cts +82 -0
  154. package/lib/vendor/zod/v4/core/core.d.ts +82 -0
  155. package/lib/vendor/zod/v4/core/core.js +141 -0
  156. package/lib/vendor/zod/v4/core/doc.cjs +61 -0
  157. package/lib/vendor/zod/v4/core/doc.d.cts +16 -0
  158. package/lib/vendor/zod/v4/core/doc.d.ts +16 -0
  159. package/lib/vendor/zod/v4/core/doc.js +38 -0
  160. package/lib/vendor/zod/v4/core/errors.cjs +317 -0
  161. package/lib/vendor/zod/v4/core/errors.d.cts +225 -0
  162. package/lib/vendor/zod/v4/core/errors.d.ts +225 -0
  163. package/lib/vendor/zod/v4/core/errors.js +267 -0
  164. package/lib/vendor/zod/v4/core/index.cjs +70 -0
  165. package/lib/vendor/zod/v4/core/index.d.cts +19 -0
  166. package/lib/vendor/zod/v4/core/index.d.ts +19 -0
  167. package/lib/vendor/zod/v4/core/index.js +19 -0
  168. package/lib/vendor/zod/v4/core/json-schema-generator.cjs +122 -0
  169. package/lib/vendor/zod/v4/core/json-schema-generator.d.cts +65 -0
  170. package/lib/vendor/zod/v4/core/json-schema-generator.d.ts +65 -0
  171. package/lib/vendor/zod/v4/core/json-schema-generator.js +99 -0
  172. package/lib/vendor/zod/v4/core/json-schema-processors.cjs +929 -0
  173. package/lib/vendor/zod/v4/core/json-schema-processors.d.cts +65 -0
  174. package/lib/vendor/zod/v4/core/json-schema-processors.d.ts +65 -0
  175. package/lib/vendor/zod/v4/core/json-schema-processors.js +843 -0
  176. package/lib/vendor/zod/v4/core/json-schema.cjs +21 -0
  177. package/lib/vendor/zod/v4/core/json-schema.d.cts +89 -0
  178. package/lib/vendor/zod/v4/core/json-schema.d.ts +89 -0
  179. package/lib/vendor/zod/v4/core/json-schema.js +1 -0
  180. package/lib/vendor/zod/v4/core/memoizer.cjs +360 -0
  181. package/lib/vendor/zod/v4/core/memoizer.d.cts +15 -0
  182. package/lib/vendor/zod/v4/core/memoizer.d.ts +15 -0
  183. package/lib/vendor/zod/v4/core/memoizer.js +311 -0
  184. package/lib/vendor/zod/v4/core/package.json +7 -0
  185. package/lib/vendor/zod/v4/core/parse.cjs +233 -0
  186. package/lib/vendor/zod/v4/core/parse.d.cts +52 -0
  187. package/lib/vendor/zod/v4/core/parse.d.ts +52 -0
  188. package/lib/vendor/zod/v4/core/parse.js +175 -0
  189. package/lib/vendor/zod/v4/core/regexes.cjs +209 -0
  190. package/lib/vendor/zod/v4/core/regexes.d.cts +90 -0
  191. package/lib/vendor/zod/v4/core/regexes.d.ts +90 -0
  192. package/lib/vendor/zod/v4/core/regexes.js +156 -0
  193. package/lib/vendor/zod/v4/core/registries.cjs +75 -0
  194. package/lib/vendor/zod/v4/core/registries.d.cts +35 -0
  195. package/lib/vendor/zod/v4/core/registries.d.ts +35 -0
  196. package/lib/vendor/zod/v4/core/registries.js +51 -0
  197. package/lib/vendor/zod/v4/core/schemas.cjs +2669 -0
  198. package/lib/vendor/zod/v4/core/schemas.d.cts +1273 -0
  199. package/lib/vendor/zod/v4/core/schemas.d.ts +1273 -0
  200. package/lib/vendor/zod/v4/core/schemas.js +2606 -0
  201. package/lib/vendor/zod/v4/core/standard-schema.cjs +21 -0
  202. package/lib/vendor/zod/v4/core/standard-schema.d.cts +126 -0
  203. package/lib/vendor/zod/v4/core/standard-schema.d.ts +126 -0
  204. package/lib/vendor/zod/v4/core/standard-schema.js +1 -0
  205. package/lib/vendor/zod/v4/core/to-json-schema.cjs +681 -0
  206. package/lib/vendor/zod/v4/core/to-json-schema.d.cts +154 -0
  207. package/lib/vendor/zod/v4/core/to-json-schema.d.ts +154 -0
  208. package/lib/vendor/zod/v4/core/to-json-schema.js +651 -0
  209. package/lib/vendor/zod/v4/core/util.cjs +949 -0
  210. package/lib/vendor/zod/v4/core/util.d.cts +278 -0
  211. package/lib/vendor/zod/v4/core/util.d.ts +278 -0
  212. package/lib/vendor/zod/v4/core/util.js +859 -0
  213. package/lib/vendor/zod/v4/core/versions.cjs +27 -0
  214. package/lib/vendor/zod/v4/core/versions.d.cts +5 -0
  215. package/lib/vendor/zod/v4/core/versions.d.ts +5 -0
  216. package/lib/vendor/zod/v4/core/versions.js +5 -0
  217. package/lib/vendor/zod/v4/core/visit.cjs +214 -0
  218. package/lib/vendor/zod/v4/core/visit.d.cts +30 -0
  219. package/lib/vendor/zod/v4/core/visit.d.ts +30 -0
  220. package/lib/vendor/zod/v4/core/visit.js +169 -0
  221. package/lib/vendor/zod/v4/index.cjs +51 -0
  222. package/lib/vendor/zod/v4/index.d.cts +3 -0
  223. package/lib/vendor/zod/v4/index.d.ts +3 -0
  224. package/lib/vendor/zod/v4/index.js +4 -0
  225. package/lib/vendor/zod/v4/locales/ar.cjs +138 -0
  226. package/lib/vendor/zod/v4/locales/ar.d.cts +5 -0
  227. package/lib/vendor/zod/v4/locales/ar.d.ts +4 -0
  228. package/lib/vendor/zod/v4/locales/ar.js +111 -0
  229. package/lib/vendor/zod/v4/locales/az.cjs +137 -0
  230. package/lib/vendor/zod/v4/locales/az.d.cts +5 -0
  231. package/lib/vendor/zod/v4/locales/az.d.ts +4 -0
  232. package/lib/vendor/zod/v4/locales/az.js +110 -0
  233. package/lib/vendor/zod/v4/locales/be.cjs +195 -0
  234. package/lib/vendor/zod/v4/locales/be.d.cts +5 -0
  235. package/lib/vendor/zod/v4/locales/be.d.ts +4 -0
  236. package/lib/vendor/zod/v4/locales/be.js +168 -0
  237. package/lib/vendor/zod/v4/locales/bg.cjs +152 -0
  238. package/lib/vendor/zod/v4/locales/bg.d.cts +5 -0
  239. package/lib/vendor/zod/v4/locales/bg.d.ts +4 -0
  240. package/lib/vendor/zod/v4/locales/bg.js +125 -0
  241. package/lib/vendor/zod/v4/locales/bn.cjs +140 -0
  242. package/lib/vendor/zod/v4/locales/bn.d.cts +5 -0
  243. package/lib/vendor/zod/v4/locales/bn.d.ts +4 -0
  244. package/lib/vendor/zod/v4/locales/bn.js +113 -0
  245. package/lib/vendor/zod/v4/locales/ca.cjs +139 -0
  246. package/lib/vendor/zod/v4/locales/ca.d.cts +5 -0
  247. package/lib/vendor/zod/v4/locales/ca.d.ts +4 -0
  248. package/lib/vendor/zod/v4/locales/ca.js +112 -0
  249. package/lib/vendor/zod/v4/locales/ckb.cjs +160 -0
  250. package/lib/vendor/zod/v4/locales/ckb.d.cts +5 -0
  251. package/lib/vendor/zod/v4/locales/ckb.d.ts +4 -0
  252. package/lib/vendor/zod/v4/locales/ckb.js +133 -0
  253. package/lib/vendor/zod/v4/locales/cs.cjs +143 -0
  254. package/lib/vendor/zod/v4/locales/cs.d.cts +5 -0
  255. package/lib/vendor/zod/v4/locales/cs.d.ts +4 -0
  256. package/lib/vendor/zod/v4/locales/cs.js +116 -0
  257. package/lib/vendor/zod/v4/locales/da.cjs +147 -0
  258. package/lib/vendor/zod/v4/locales/da.d.cts +5 -0
  259. package/lib/vendor/zod/v4/locales/da.d.ts +4 -0
  260. package/lib/vendor/zod/v4/locales/da.js +120 -0
  261. package/lib/vendor/zod/v4/locales/de.cjs +140 -0
  262. package/lib/vendor/zod/v4/locales/de.d.cts +5 -0
  263. package/lib/vendor/zod/v4/locales/de.d.ts +4 -0
  264. package/lib/vendor/zod/v4/locales/de.js +113 -0
  265. package/lib/vendor/zod/v4/locales/el.cjs +139 -0
  266. package/lib/vendor/zod/v4/locales/el.d.cts +5 -0
  267. package/lib/vendor/zod/v4/locales/el.d.ts +4 -0
  268. package/lib/vendor/zod/v4/locales/el.js +112 -0
  269. package/lib/vendor/zod/v4/locales/en.cjs +152 -0
  270. package/lib/vendor/zod/v4/locales/en.d.cts +5 -0
  271. package/lib/vendor/zod/v4/locales/en.d.ts +4 -0
  272. package/lib/vendor/zod/v4/locales/en.js +125 -0
  273. package/lib/vendor/zod/v4/locales/eo.cjs +141 -0
  274. package/lib/vendor/zod/v4/locales/eo.d.cts +5 -0
  275. package/lib/vendor/zod/v4/locales/eo.d.ts +4 -0
  276. package/lib/vendor/zod/v4/locales/eo.js +114 -0
  277. package/lib/vendor/zod/v4/locales/es.cjs +163 -0
  278. package/lib/vendor/zod/v4/locales/es.d.cts +5 -0
  279. package/lib/vendor/zod/v4/locales/es.d.ts +4 -0
  280. package/lib/vendor/zod/v4/locales/es.js +136 -0
  281. package/lib/vendor/zod/v4/locales/fa.cjs +146 -0
  282. package/lib/vendor/zod/v4/locales/fa.d.cts +5 -0
  283. package/lib/vendor/zod/v4/locales/fa.d.ts +4 -0
  284. package/lib/vendor/zod/v4/locales/fa.js +119 -0
  285. package/lib/vendor/zod/v4/locales/fi.cjs +144 -0
  286. package/lib/vendor/zod/v4/locales/fi.d.cts +5 -0
  287. package/lib/vendor/zod/v4/locales/fi.d.ts +4 -0
  288. package/lib/vendor/zod/v4/locales/fi.js +117 -0
  289. package/lib/vendor/zod/v4/locales/fr-CA.cjs +139 -0
  290. package/lib/vendor/zod/v4/locales/fr-CA.d.cts +5 -0
  291. package/lib/vendor/zod/v4/locales/fr-CA.d.ts +4 -0
  292. package/lib/vendor/zod/v4/locales/fr-CA.js +112 -0
  293. package/lib/vendor/zod/v4/locales/fr.cjs +156 -0
  294. package/lib/vendor/zod/v4/locales/fr.d.cts +5 -0
  295. package/lib/vendor/zod/v4/locales/fr.d.ts +4 -0
  296. package/lib/vendor/zod/v4/locales/fr.js +129 -0
  297. package/lib/vendor/zod/v4/locales/gu.cjs +140 -0
  298. package/lib/vendor/zod/v4/locales/gu.d.cts +5 -0
  299. package/lib/vendor/zod/v4/locales/gu.d.ts +4 -0
  300. package/lib/vendor/zod/v4/locales/gu.js +113 -0
  301. package/lib/vendor/zod/v4/locales/he.cjs +248 -0
  302. package/lib/vendor/zod/v4/locales/he.d.cts +5 -0
  303. package/lib/vendor/zod/v4/locales/he.d.ts +4 -0
  304. package/lib/vendor/zod/v4/locales/he.js +221 -0
  305. package/lib/vendor/zod/v4/locales/hi.cjs +138 -0
  306. package/lib/vendor/zod/v4/locales/hi.d.cts +5 -0
  307. package/lib/vendor/zod/v4/locales/hi.d.ts +4 -0
  308. package/lib/vendor/zod/v4/locales/hi.js +111 -0
  309. package/lib/vendor/zod/v4/locales/hr.cjs +153 -0
  310. package/lib/vendor/zod/v4/locales/hr.d.cts +5 -0
  311. package/lib/vendor/zod/v4/locales/hr.d.ts +4 -0
  312. package/lib/vendor/zod/v4/locales/hr.js +126 -0
  313. package/lib/vendor/zod/v4/locales/hu.cjs +140 -0
  314. package/lib/vendor/zod/v4/locales/hu.d.cts +5 -0
  315. package/lib/vendor/zod/v4/locales/hu.d.ts +4 -0
  316. package/lib/vendor/zod/v4/locales/hu.js +113 -0
  317. package/lib/vendor/zod/v4/locales/hy.cjs +185 -0
  318. package/lib/vendor/zod/v4/locales/hy.d.cts +5 -0
  319. package/lib/vendor/zod/v4/locales/hy.d.ts +4 -0
  320. package/lib/vendor/zod/v4/locales/hy.js +158 -0
  321. package/lib/vendor/zod/v4/locales/id.cjs +138 -0
  322. package/lib/vendor/zod/v4/locales/id.d.cts +5 -0
  323. package/lib/vendor/zod/v4/locales/id.d.ts +4 -0
  324. package/lib/vendor/zod/v4/locales/id.js +111 -0
  325. package/lib/vendor/zod/v4/locales/index.cjs +152 -0
  326. package/lib/vendor/zod/v4/locales/index.d.cts +63 -0
  327. package/lib/vendor/zod/v4/locales/index.d.ts +63 -0
  328. package/lib/vendor/zod/v4/locales/index.js +63 -0
  329. package/lib/vendor/zod/v4/locales/is.cjs +141 -0
  330. package/lib/vendor/zod/v4/locales/is.d.cts +5 -0
  331. package/lib/vendor/zod/v4/locales/is.d.ts +4 -0
  332. package/lib/vendor/zod/v4/locales/is.js +114 -0
  333. package/lib/vendor/zod/v4/locales/it.cjs +140 -0
  334. package/lib/vendor/zod/v4/locales/it.d.cts +5 -0
  335. package/lib/vendor/zod/v4/locales/it.d.ts +4 -0
  336. package/lib/vendor/zod/v4/locales/it.js +113 -0
  337. package/lib/vendor/zod/v4/locales/ja.cjs +139 -0
  338. package/lib/vendor/zod/v4/locales/ja.d.cts +5 -0
  339. package/lib/vendor/zod/v4/locales/ja.d.ts +4 -0
  340. package/lib/vendor/zod/v4/locales/ja.js +112 -0
  341. package/lib/vendor/zod/v4/locales/ka.cjs +144 -0
  342. package/lib/vendor/zod/v4/locales/ka.d.cts +5 -0
  343. package/lib/vendor/zod/v4/locales/ka.d.ts +4 -0
  344. package/lib/vendor/zod/v4/locales/ka.js +117 -0
  345. package/lib/vendor/zod/v4/locales/kh.cjs +12 -0
  346. package/lib/vendor/zod/v4/locales/kh.d.cts +5 -0
  347. package/lib/vendor/zod/v4/locales/kh.d.ts +5 -0
  348. package/lib/vendor/zod/v4/locales/kh.js +5 -0
  349. package/lib/vendor/zod/v4/locales/km.cjs +142 -0
  350. package/lib/vendor/zod/v4/locales/km.d.cts +5 -0
  351. package/lib/vendor/zod/v4/locales/km.d.ts +4 -0
  352. package/lib/vendor/zod/v4/locales/km.js +115 -0
  353. package/lib/vendor/zod/v4/locales/kn.cjs +143 -0
  354. package/lib/vendor/zod/v4/locales/kn.d.cts +5 -0
  355. package/lib/vendor/zod/v4/locales/kn.d.ts +4 -0
  356. package/lib/vendor/zod/v4/locales/kn.js +116 -0
  357. package/lib/vendor/zod/v4/locales/ko.cjs +143 -0
  358. package/lib/vendor/zod/v4/locales/ko.d.cts +5 -0
  359. package/lib/vendor/zod/v4/locales/ko.d.ts +4 -0
  360. package/lib/vendor/zod/v4/locales/ko.js +116 -0
  361. package/lib/vendor/zod/v4/locales/lt.cjs +234 -0
  362. package/lib/vendor/zod/v4/locales/lt.d.cts +5 -0
  363. package/lib/vendor/zod/v4/locales/lt.d.ts +4 -0
  364. package/lib/vendor/zod/v4/locales/lt.js +207 -0
  365. package/lib/vendor/zod/v4/locales/mk.cjs +141 -0
  366. package/lib/vendor/zod/v4/locales/mk.d.cts +5 -0
  367. package/lib/vendor/zod/v4/locales/mk.d.ts +4 -0
  368. package/lib/vendor/zod/v4/locales/mk.js +114 -0
  369. package/lib/vendor/zod/v4/locales/ms.cjs +139 -0
  370. package/lib/vendor/zod/v4/locales/ms.d.cts +5 -0
  371. package/lib/vendor/zod/v4/locales/ms.d.ts +4 -0
  372. package/lib/vendor/zod/v4/locales/ms.js +112 -0
  373. package/lib/vendor/zod/v4/locales/ne.cjs +138 -0
  374. package/lib/vendor/zod/v4/locales/ne.d.cts +5 -0
  375. package/lib/vendor/zod/v4/locales/ne.d.ts +4 -0
  376. package/lib/vendor/zod/v4/locales/ne.js +111 -0
  377. package/lib/vendor/zod/v4/locales/nl.cjs +142 -0
  378. package/lib/vendor/zod/v4/locales/nl.d.cts +5 -0
  379. package/lib/vendor/zod/v4/locales/nl.d.ts +4 -0
  380. package/lib/vendor/zod/v4/locales/nl.js +115 -0
  381. package/lib/vendor/zod/v4/locales/nn.cjs +140 -0
  382. package/lib/vendor/zod/v4/locales/nn.d.cts +5 -0
  383. package/lib/vendor/zod/v4/locales/nn.d.ts +4 -0
  384. package/lib/vendor/zod/v4/locales/nn.js +113 -0
  385. package/lib/vendor/zod/v4/locales/no.cjs +140 -0
  386. package/lib/vendor/zod/v4/locales/no.d.cts +5 -0
  387. package/lib/vendor/zod/v4/locales/no.d.ts +4 -0
  388. package/lib/vendor/zod/v4/locales/no.js +113 -0
  389. package/lib/vendor/zod/v4/locales/ota.cjs +141 -0
  390. package/lib/vendor/zod/v4/locales/ota.d.cts +5 -0
  391. package/lib/vendor/zod/v4/locales/ota.d.ts +4 -0
  392. package/lib/vendor/zod/v4/locales/ota.js +114 -0
  393. package/lib/vendor/zod/v4/locales/package.json +7 -0
  394. package/lib/vendor/zod/v4/locales/pl.cjs +141 -0
  395. package/lib/vendor/zod/v4/locales/pl.d.cts +5 -0
  396. package/lib/vendor/zod/v4/locales/pl.d.ts +4 -0
  397. package/lib/vendor/zod/v4/locales/pl.js +114 -0
  398. package/lib/vendor/zod/v4/locales/ps.cjs +146 -0
  399. package/lib/vendor/zod/v4/locales/ps.d.cts +5 -0
  400. package/lib/vendor/zod/v4/locales/ps.d.ts +4 -0
  401. package/lib/vendor/zod/v4/locales/ps.js +119 -0
  402. package/lib/vendor/zod/v4/locales/pt-BR.cjs +170 -0
  403. package/lib/vendor/zod/v4/locales/pt-BR.d.cts +5 -0
  404. package/lib/vendor/zod/v4/locales/pt-BR.d.ts +4 -0
  405. package/lib/vendor/zod/v4/locales/pt-BR.js +143 -0
  406. package/lib/vendor/zod/v4/locales/pt.cjs +169 -0
  407. package/lib/vendor/zod/v4/locales/pt.d.cts +5 -0
  408. package/lib/vendor/zod/v4/locales/pt.d.ts +4 -0
  409. package/lib/vendor/zod/v4/locales/pt.js +142 -0
  410. package/lib/vendor/zod/v4/locales/ro.cjs +149 -0
  411. package/lib/vendor/zod/v4/locales/ro.d.cts +5 -0
  412. package/lib/vendor/zod/v4/locales/ro.d.ts +4 -0
  413. package/lib/vendor/zod/v4/locales/ro.js +122 -0
  414. package/lib/vendor/zod/v4/locales/ru.cjs +195 -0
  415. package/lib/vendor/zod/v4/locales/ru.d.cts +5 -0
  416. package/lib/vendor/zod/v4/locales/ru.d.ts +4 -0
  417. package/lib/vendor/zod/v4/locales/ru.js +168 -0
  418. package/lib/vendor/zod/v4/locales/sk.cjs +143 -0
  419. package/lib/vendor/zod/v4/locales/sk.d.cts +5 -0
  420. package/lib/vendor/zod/v4/locales/sk.d.ts +4 -0
  421. package/lib/vendor/zod/v4/locales/sk.js +116 -0
  422. package/lib/vendor/zod/v4/locales/sl.cjs +141 -0
  423. package/lib/vendor/zod/v4/locales/sl.d.cts +5 -0
  424. package/lib/vendor/zod/v4/locales/sl.d.ts +4 -0
  425. package/lib/vendor/zod/v4/locales/sl.js +114 -0
  426. package/lib/vendor/zod/v4/locales/sv.cjs +142 -0
  427. package/lib/vendor/zod/v4/locales/sv.d.cts +5 -0
  428. package/lib/vendor/zod/v4/locales/sv.d.ts +4 -0
  429. package/lib/vendor/zod/v4/locales/sv.js +115 -0
  430. package/lib/vendor/zod/v4/locales/ta.cjs +142 -0
  431. package/lib/vendor/zod/v4/locales/ta.d.cts +5 -0
  432. package/lib/vendor/zod/v4/locales/ta.d.ts +4 -0
  433. package/lib/vendor/zod/v4/locales/ta.js +115 -0
  434. package/lib/vendor/zod/v4/locales/tg.cjs +144 -0
  435. package/lib/vendor/zod/v4/locales/tg.d.cts +5 -0
  436. package/lib/vendor/zod/v4/locales/tg.d.ts +4 -0
  437. package/lib/vendor/zod/v4/locales/tg.js +117 -0
  438. package/lib/vendor/zod/v4/locales/th.cjs +142 -0
  439. package/lib/vendor/zod/v4/locales/th.d.cts +5 -0
  440. package/lib/vendor/zod/v4/locales/th.d.ts +4 -0
  441. package/lib/vendor/zod/v4/locales/th.js +115 -0
  442. package/lib/vendor/zod/v4/locales/tk.cjs +134 -0
  443. package/lib/vendor/zod/v4/locales/tk.d.cts +5 -0
  444. package/lib/vendor/zod/v4/locales/tk.d.ts +4 -0
  445. package/lib/vendor/zod/v4/locales/tk.js +107 -0
  446. package/lib/vendor/zod/v4/locales/tr.cjs +137 -0
  447. package/lib/vendor/zod/v4/locales/tr.d.cts +5 -0
  448. package/lib/vendor/zod/v4/locales/tr.d.ts +4 -0
  449. package/lib/vendor/zod/v4/locales/tr.js +110 -0
  450. package/lib/vendor/zod/v4/locales/ua.cjs +12 -0
  451. package/lib/vendor/zod/v4/locales/ua.d.cts +5 -0
  452. package/lib/vendor/zod/v4/locales/ua.d.ts +5 -0
  453. package/lib/vendor/zod/v4/locales/ua.js +5 -0
  454. package/lib/vendor/zod/v4/locales/uk.cjs +140 -0
  455. package/lib/vendor/zod/v4/locales/uk.d.cts +5 -0
  456. package/lib/vendor/zod/v4/locales/uk.d.ts +4 -0
  457. package/lib/vendor/zod/v4/locales/uk.js +113 -0
  458. package/lib/vendor/zod/v4/locales/ur.cjs +142 -0
  459. package/lib/vendor/zod/v4/locales/ur.d.cts +5 -0
  460. package/lib/vendor/zod/v4/locales/ur.d.ts +4 -0
  461. package/lib/vendor/zod/v4/locales/ur.js +115 -0
  462. package/lib/vendor/zod/v4/locales/uz.cjs +140 -0
  463. package/lib/vendor/zod/v4/locales/uz.d.cts +5 -0
  464. package/lib/vendor/zod/v4/locales/uz.d.ts +4 -0
  465. package/lib/vendor/zod/v4/locales/uz.js +113 -0
  466. package/lib/vendor/zod/v4/locales/vi.cjs +140 -0
  467. package/lib/vendor/zod/v4/locales/vi.d.cts +5 -0
  468. package/lib/vendor/zod/v4/locales/vi.d.ts +4 -0
  469. package/lib/vendor/zod/v4/locales/vi.js +113 -0
  470. package/lib/vendor/zod/v4/locales/yo.cjs +139 -0
  471. package/lib/vendor/zod/v4/locales/yo.d.cts +5 -0
  472. package/lib/vendor/zod/v4/locales/yo.d.ts +4 -0
  473. package/lib/vendor/zod/v4/locales/yo.js +112 -0
  474. package/lib/vendor/zod/v4/locales/zh-CN.cjs +141 -0
  475. package/lib/vendor/zod/v4/locales/zh-CN.d.cts +5 -0
  476. package/lib/vendor/zod/v4/locales/zh-CN.d.ts +4 -0
  477. package/lib/vendor/zod/v4/locales/zh-CN.js +114 -0
  478. package/lib/vendor/zod/v4/locales/zh-TW.cjs +139 -0
  479. package/lib/vendor/zod/v4/locales/zh-TW.d.cts +5 -0
  480. package/lib/vendor/zod/v4/locales/zh-TW.d.ts +4 -0
  481. package/lib/vendor/zod/v4/locales/zh-TW.js +112 -0
  482. package/lib/vendor/zod/v4/mini/checks.cjs +54 -0
  483. package/lib/vendor/zod/v4/mini/checks.d.cts +1 -0
  484. package/lib/vendor/zod/v4/mini/checks.d.ts +1 -0
  485. package/lib/vendor/zod/v4/mini/checks.js +1 -0
  486. package/lib/vendor/zod/v4/mini/coerce.cjs +71 -0
  487. package/lib/vendor/zod/v4/mini/coerce.d.cts +7 -0
  488. package/lib/vendor/zod/v4/mini/coerce.d.ts +7 -0
  489. package/lib/vendor/zod/v4/mini/coerce.js +22 -0
  490. package/lib/vendor/zod/v4/mini/deep-partial.cjs +58 -0
  491. package/lib/vendor/zod/v4/mini/deep-partial.d.cts +14 -0
  492. package/lib/vendor/zod/v4/mini/deep-partial.d.ts +14 -0
  493. package/lib/vendor/zod/v4/mini/deep-partial.js +13 -0
  494. package/lib/vendor/zod/v4/mini/external.cjs +95 -0
  495. package/lib/vendor/zod/v4/mini/external.d.cts +16 -0
  496. package/lib/vendor/zod/v4/mini/external.d.ts +16 -0
  497. package/lib/vendor/zod/v4/mini/external.js +16 -0
  498. package/lib/vendor/zod/v4/mini/in-out.cjs +82 -0
  499. package/lib/vendor/zod/v4/mini/in-out.d.cts +8 -0
  500. package/lib/vendor/zod/v4/mini/in-out.d.ts +8 -0
  501. package/lib/vendor/zod/v4/mini/in-out.js +36 -0
  502. package/lib/vendor/zod/v4/mini/index.cjs +51 -0
  503. package/lib/vendor/zod/v4/mini/index.d.cts +3 -0
  504. package/lib/vendor/zod/v4/mini/index.d.ts +3 -0
  505. package/lib/vendor/zod/v4/mini/index.js +3 -0
  506. package/lib/vendor/zod/v4/mini/iso.cjs +83 -0
  507. package/lib/vendor/zod/v4/mini/iso.d.cts +22 -0
  508. package/lib/vendor/zod/v4/mini/iso.d.ts +22 -0
  509. package/lib/vendor/zod/v4/mini/iso.js +34 -0
  510. package/lib/vendor/zod/v4/mini/package.json +7 -0
  511. package/lib/vendor/zod/v4/mini/parse.cjs +37 -0
  512. package/lib/vendor/zod/v4/mini/parse.d.cts +1 -0
  513. package/lib/vendor/zod/v4/mini/parse.d.ts +1 -0
  514. package/lib/vendor/zod/v4/mini/parse.js +1 -0
  515. package/lib/vendor/zod/v4/mini/schemas.cjs +1147 -0
  516. package/lib/vendor/zod/v4/mini/schemas.d.cts +480 -0
  517. package/lib/vendor/zod/v4/mini/schemas.d.ts +480 -0
  518. package/lib/vendor/zod/v4/mini/schemas.js +1002 -0
  519. package/lib/vendor/zod/v4/package.json +7 -0
  520. package/lib/vendor/zod/v4-mini/index.cjs +51 -0
  521. package/lib/vendor/zod/v4-mini/index.d.cts +3 -0
  522. package/lib/vendor/zod/v4-mini/index.d.ts +3 -0
  523. package/lib/vendor/zod/v4-mini/index.js +3 -0
  524. package/lib/vendor/zod/v4-mini/package.json +7 -0
  525. package/package.json +84 -72
  526. package/tests/_host-lib.js +50 -0
  527. package/tests/fixtures/holiday-notice-2023.txt +8 -0
  528. package/tests/fixtures/holiday-notice-2024.txt +9 -0
  529. package/tests/fixtures/holiday-notice-2025.txt +8 -0
  530. package/tests/fixtures/holiday-notice-2026.txt +9 -0
  531. package/tests/helpers/client-harness.js +86 -0
  532. package/tests/package.json +3 -0
  533. package/tests/verify-activemodel.js +173 -0
  534. package/tests/verify-balance-api.js +368 -0
  535. package/tests/verify-balance-vendors.js +422 -0
  536. package/tests/verify-balance.js +1041 -0
  537. package/tests/verify-billing-stall.js +404 -0
  538. package/tests/verify-client-hygiene.js +425 -0
  539. package/tests/verify-client-price.mjs +133 -0
  540. package/tests/verify-clock.js +246 -0
  541. package/tests/verify-compaction-usage.js +342 -0
  542. package/tests/verify-context.js +179 -0
  543. package/tests/verify-copy.js +317 -0
  544. package/tests/verify-cost-overflow.js +150 -0
  545. package/tests/verify-deadcode.js +171 -0
  546. package/tests/verify-dev-fixtures.js +850 -0
  547. package/tests/verify-dev-mode.js +659 -0
  548. package/tests/verify-drag-card.js +176 -0
  549. package/tests/verify-fixes.js +520 -0
  550. package/tests/verify-generic-relay.js +487 -0
  551. package/tests/verify-holiday-persist.js +180 -0
  552. package/tests/verify-holiday-route.js +65 -0
  553. package/tests/verify-holiday-update.js +226 -0
  554. package/tests/verify-holiday.js +118 -0
  555. package/tests/verify-holidays.js +91 -0
  556. package/tests/verify-host-guards.mjs +97 -0
  557. package/tests/verify-host.js +461 -0
  558. package/tests/verify-hover.js +619 -0
  559. package/tests/verify-ledger-keep.js +1015 -0
  560. package/tests/verify-ledger-prices.js +238 -0
  561. package/tests/verify-list-layout.js +610 -0
  562. package/tests/verify-magpie-quota.mjs +582 -0
  563. package/tests/verify-migration.js +179 -0
  564. package/tests/verify-model-match.js +306 -0
  565. package/tests/verify-modelrow-scroll.js +669 -0
  566. package/tests/verify-navicon.js +348 -0
  567. package/tests/verify-price-filled.js +831 -0
  568. package/tests/verify-price-parity.js +392 -0
  569. package/tests/verify-prices.js +258 -0
  570. package/tests/verify-pricing.js +161 -0
  571. package/tests/verify-progress-events.js +260 -0
  572. package/tests/verify-provider-fees.js +919 -0
  573. package/tests/verify-relay-settings.js +2447 -0
  574. package/tests/verify-release-age.js +394 -0
  575. package/tests/verify-release.js +200 -0
  576. package/tests/verify-render.js +557 -0
  577. package/tests/verify-reprice.js +127 -0
  578. package/tests/verify-routes.js +215 -0
  579. package/tests/verify-self-update-status.js +155 -0
  580. package/tests/verify-self-update.js +467 -0
  581. package/tests/verify-speed.js +61 -0
  582. package/tests/verify-star-tip.js +156 -0
  583. package/tests/verify-subagent-total.js +1354 -0
  584. package/tests/verify-timing.js +671 -0
  585. package/tests/verify-tips.js +1046 -0
  586. package/tests/verify-tokens.js +230 -0
  587. package/tests/verify-update-duration.js +135 -0
  588. package/tests/verify-update-retry.js +375 -0
  589. package/tests/verify-version.js +127 -0
  590. package/tests/verify-weekend.js +104 -0
  591. package/tests/verify.js +3510 -0
  592. package/tools/shot.cjs +12 -10
  593. package/tools/sync-from-plugin.cjs +63 -22
  594. package/tools/sync-to-plugin.cjs +38 -16
  595. package/tools/test.cjs +53 -17
  596. package/docs/statusbar.en.png +0 -0
  597. package/docs/statusbar.png +0 -0
package/README.de.md ADDED
@@ -0,0 +1,267 @@
1
+ <h1 align="center">dsh-desktop-statusbar</h1>
2
+
3
+ <p align="center">
4
+ <a href="https://github.com/raphael-y7/dsh-desktop-statusbar/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/raphael-y7/dsh-desktop-statusbar?style=flat&logo=github&color=f5f5f5"></a>
5
+ <a href="https://www.npmjs.com/package/dsh-desktop-statusbar"><img alt="npm downloads" src="https://img.shields.io/npm/dt/dsh-desktop-statusbar?style=flat&logo=npm&label=downloads&color=e74c3c"></a>
6
+ <a href="https://www.npmjs.com/package/dsh-desktop-statusbar"><img alt="npm version" src="https://img.shields.io/npm/v/dsh-desktop-statusbar?style=flat&color=9B59B6"></a>
7
+ <a href="https://github.com/deepseek-ai/deepseek-harness"><img alt="DeepSeek Harness" src="https://img.shields.io/github/v/tag/deepseek-ai/deepseek-harness?label=DeepSeek%20Harness&color=4d6bfe"></a>
8
+ <a href="https://awesome-dsh-plugin.com/p/raphael-y7/dsh-desktop-statusbar/"><img alt="dshmarket" src="https://img.shields.io/badge/dshmarket-listed-%23e6b800?style=flat"></a>
9
+ <a href="https://dshfind.com/zh/plugins/raphael-y7/dsh-desktop-statusbar"><img alt="dshfind" src="https://img.shields.io/badge/dshfind-listed-%2300897B?style=flat"></a>
10
+ <a href="https://deepseek1024.com/plugins/Rapheal-Y7/dsh-desktop-statusbar"><img alt="1024Store" src="https://img.shields.io/badge/1024Store-listed-%23e67e22?style=flat"></a>
11
+ <br>
12
+ <a href="https://nodejs.org/"><img alt="node" src="https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-%230099cc?style=flat"></a>
13
+ <img alt="language" src="https://img.shields.io/badge/javascript-100%25-%23ec407a?style=flat">
14
+ <a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-MIT-%2327ae60?style=flat"></a>
15
+ </p>
16
+
17
+ <p align="center"><a href="README.md">简体中文</a> | <a href="README.en.md">English</a> | <a href="README.ja.md">日本語</a> | <a href="README.es.md">Español</a> | <a href="README.fr.md">Français</a> | <a href="README.de.md">Deutsch</a> | <a href="README.ru.md">Русский</a> | <a href="README.pt.md">Português</a></p>
18
+
19
+ Ersetzt die Statistikzeile unter der Nachrichteneingabe in der DSH-Desktop-App durch eine konfigurierbare Statusleiste: Felder, Reihenfolge, Preise pro Modell und Währung sind alle konfigurierbar, mit Live-Kostenschätzungen anhand der offiziellen Peak-/Off-Peak-Tarife von DeepSeek.
20
+
21
+ https://github.com/user-attachments/assets/5a4f7fd8-a445-490d-a557-1ec840c611df
22
+
23
+ ## Funktionen
24
+
25
+ - **9 optionale Felder plus der Kontextring**: Kontextauslastung (der Ring am Anfang der Leiste), Peak-/Off-Peak-Prüfung, Runden & Schritte, Cache-Trefferquote, Ausgabegeschwindigkeit, TTFT, Laufzeit, Kosten dieser Runde, Sitzungskosten, Guthaben
26
+ - **Für Details auf ein Feld klicken**:
27
+
28
+ | Feld | Inhalt |
29
+ | --- | --- |
30
+ | Kontextring (Leistenanfang) | System-Prompt / Tool-Definitionen / Nachrichten |
31
+ | Peak-/Off-Peak-Prüfung | Nutzungs-Heatmap: Tag / Woche / Monat / Jahr |
32
+ | Runden & Schritte | Kontextkomprimierungen / injizierte Skills / Tool-Aufrufe |
33
+ | Kombinierte Trefferquote | Diese Runde / höchste / niedrigste Cache-Trefferquote |
34
+ | TPS | Diese Runde / schnellste / langsamste Geschwindigkeit |
35
+ | TTFT | Diese Runde / schnellste / langsamste Verzögerung bis zum ersten Token |
36
+ | Laufzeit | Wartezeit / Modellzeit / Tool-Aufrufe |
37
+ | Kosten dieser Runde | Token-Aufschlüsselung für diese Runde |
38
+ | Sitzungskosten | Kumulative Token-Aufschlüsselung für diese Sitzung |
39
+ | Guthaben | Aufgeladenes Guthaben / gewährtes Guthaben / verbleibendes Kontingent |
40
+
41
+ - **Drill-down der Sitzungsdaten**: Kontextkomprimierungen markieren den Knoten, an dem sie stattfanden, „injizierte Skills“ zählt die in dieser Sitzung injizierten Skills, und Tool-Aufrufe listen jedes von der Sitzung verwendete Tool mit seiner Aufrufzahl auf; klicken Sie auf den Titel, um zurückzugehen
42
+ - **Versionsprüfung und Update**: DSH prüft beim Start auf die neueste Version, zeigt einen Hinweis neben dem Navigationspunkt „Statusleiste“, wenn eine verfügbar ist, und bietet in den Einstellungen eine Schaltfläche zum Ein-Klick-Update an
43
+ - **GitHub-Unterstützung**: Die Schaltfläche öffnet die GitHub-Projektseite, auf der Sie das Projekt mit einem Stern versehen können.
44
+ - **Kostenschätzung**: bepreist nach den offiziellen Peak-/Off-Peak-Regeln; jeder Aufruf wird anhand des Zeitpunkts, an dem er stattfand, und des verwendeten Modells berechnet
45
+ - **Preisbuch**: eigene Preise, eine optionale Peak-/Off-Peak-Aufteilung und ein Währungsumschalter CNY / USD
46
+ - **Außerdem**: automatische Feiertagsaktualisierungen, Guthaben jede Minute aktualisiert, 8 Oberflächensprachen (简体中文 / English / 日本語 / Español / Français / Deutsch / Русский / Português)
47
+
48
+ ## Installation
49
+
50
+ Öffnen Sie in der DSH-Desktop-App **Plugins → Plugin hinzufügen** und installieren Sie nach Paketnamen:
51
+
52
+ ```
53
+ dsh-desktop-statusbar
54
+ ```
55
+
56
+ Wo die npm-Registry nicht erreichbar ist, bietet derselbe Dialog den Mirror für das chinesische Festland als Installationsquelle an. Eine GitHub-Repository-URL wird ebenfalls akzeptiert:
57
+
58
+ ```
59
+ https://github.com/raphael-y7/dsh-desktop-statusbar
60
+ ```
61
+
62
+ Kommandozeile:
63
+
64
+ ```powershell
65
+ dsh plugin --profile desktop add dsh-desktop-statusbar
66
+ ```
67
+
68
+ ### Installation von npm
69
+
70
+ Beide oben genannten Wege installieren aus der npm-Registry; der Paketname lautet `dsh-desktop-statusbar`. Um die aktuelle Version auf npm zu prüfen:
71
+
72
+ ```powershell
73
+ npm view dsh-desktop-statusbar version
74
+ ```
75
+
76
+ ### Wenn der integrierte Updater fehlschlägt
77
+
78
+ Die integrierte Schaltfläche für das Ein-Klick-Update kann bei manchen Desktop-Builds fehlschlagen — sie reagiert entweder nicht oder meldet einen Fehler. Verwenden Sie in diesem Fall den offiziellen Installationseingang und **hängen Sie `@version` an den Paketnamen an**, um die genaue Version zu installieren:
79
+
80
+ ```powershell
81
+ dsh plugin --profile desktop add dsh-desktop-statusbar@3.0.5
82
+ ```
83
+
84
+ Derselbe String funktioniert im Plugin-Panel: Geben Sie `dsh-desktop-statusbar@3.0.5` in das Feld **Plugin hinzufügen** ein.
85
+
86
+ Verwenden Sie die aktuell neueste Version (angezeigt auf der Release-Seite oder in der obigen `npm view`-Ausgabe). Das Festlegen der Version stellt außerdem sicher, dass **Sie genau die Ziel-Build installieren**, wodurch ein veraltetes zwischengespeichertes Paket vermieden wird.
87
+
88
+ Ebenfalls gelistet auf [dshmarket](https://awesome-dsh-plugin.com/p/raphael-y7/dsh-desktop-statusbar/), [dshfind](https://dshfind.com/zh/plugins/raphael-y7/dsh-desktop-statusbar) und [1024Store](https://deepseek1024.com/plugins/Rapheal-Y7/dsh-desktop-statusbar).
89
+
90
+ ## Verwendung
91
+
92
+ Öffnen Sie **Einstellungen → Statusleiste**:
93
+
94
+ ![Settings page](docs/settings.de.png)
95
+
96
+ - **Kontextauslastung**: der Ring am Anfang der Leiste — der Fortschritt zeigt den verbrauchten Kontextanteil, die Lücke markiert die Komprimierungsschwelle und die Farbe zeigt den Ausführungszustand (inaktiv-grau / läuft-grün / Sub-Agent läuft-blau / tieferer Sub-Agent läuft-violett / Fehler-rot / wartet auf Genehmigung-bernstein)
97
+ - **Statistikfelder**: Das Ankreuzen steuert nur die Sichtbarkeit, daher blendet das Entfernen des Häkchens ein Feld aus, ohne es zu verschieben; ziehen Sie den Griff auf der rechten Seite, um die Reihenfolge zu ändern; „Einstellungen zurücksetzen“ stellt die Werkseinstellung wieder her
98
+ - **Benutzerdefinierte Modellpreise**: Geben Sie einen Modellnamen ein und klicken Sie auf „Hinzufügen“, um einen Eintrag zu erstellen; „Bearbeiten“ öffnet den Editor, und Änderungen werden beim Speichern geschrieben; aktivieren Sie „Peak-/Off-Peak-Preisgestaltung“, um nach Tageszeit aufzuteilen, andernfalls gilt ein pauschaler Ganztagspreis
99
+ - **Währung**: CNY oder USD in der oberen rechten Ecke des Editors. Beim Umschalten werden die beiden integrierten Modelle durch die offiziellen Referenzpreise dieser Währung ersetzt (bearbeitete Einträge bleiben erhalten) und das Symbol in den Kostenfeldern geändert; das Guthaben folgt der von der API gemeldeten Währung
100
+ - **Feiertage**: holt und schreibt nach dem 31. Dezember jedes Jahres automatisch den Kalender des nächsten Jahres
101
+ - **Guthaben**: einmal pro Minute aktualisiert
102
+
103
+ ### Abrechnungsregeln
104
+
105
+ Die Peak-Zeiten sind **09:00–12:00 und 14:00–18:00 Pekinger Zeit, Montag bis Freitag**, und die Off-Peak-Tarife betragen die Hälfte der Peak-Tarife; chinesische Feiertage und Wochenenden werden ganztägig zum Off-Peak-Tarif abgerechnet (entsprechend der [offiziellen Dokumentation](https://api-docs.deepseek.com/quick_start/pricing), geprüft im September 2026).
106
+
107
+ ![Custom model prices](docs/pricing.de.png)
108
+
109
+ ## Guthabenabfrage für Relais
110
+
111
+ Bei der Guthabenabfrage wählt die Statusleiste das Abfrageverfahren anhand **der tatsächlich von der aktuellen Sitzung genutzten Plattform**; es gibt zwei Fälle: automatische Zuordnung und manuelle Konfiguration.
112
+
113
+ ### 1. Automatische Zuordnung
114
+
115
+ Wenn das Relais auf der DSH-Seite **Modelle** als normaler Provider konfiguriert ist (mit baseURL und API-Schlüssel), prüft das Plugin mit diesem Schlüssel parallel die folgenden gängigen Guthaben-Endpunkte; sobald ein auswertbarer Endpunkt antwortet, wird das Guthaben ohne weitere Konfiguration angezeigt:
116
+
117
+ - `/v1/usage`
118
+ - `/v1/user/self`, `/api/user/self`, `/api/v1/user/self`
119
+ - `/api/usage`
120
+ - `/v1/dashboard/billing/credit_grants`
121
+ - `/v1/credits`
122
+
123
+ Entspricht der Guthaben-Endpunkt der Site einer der oben genannten Standardformen und ist er über `Authorization: Bearer <API-Schlüssel>` lesbar, wird das Guthaben automatisch angezeigt.
124
+
125
+ ### 2. Manuelle Konfiguration
126
+
127
+ In einem der folgenden Fälle müssen Sie unter **Einstellungen → Statusleiste → Benutzerdefinierte Modellpreise → Plattform** einen Plattform-Eintrag hinzufügen und Endpunkt sowie Anmeldedaten eintragen:
128
+
129
+ - der Provider hat auf der Seite **Modelle** keine baseURL konfiguriert;
130
+ - der Guthaben-Endpunkt oder das Authentifizierungsverfahren entspricht keiner Standardform (z. B. benötigt New API einen zusätzlichen User-ID-Request-Header);
131
+ - die Antwortstruktur des Endpunkts lässt sich nicht automatisch auswerten.
132
+
133
+ Die Felder sind wie folgt definiert:
134
+
135
+ | Feld | Beschreibung | Beispiel |
136
+ | --- | --- | --- |
137
+ | Request-Header | Name des Request-Headers für die Benutzer-ID; die Token-Authentifizierung verwendet stets `authorization: Bearer` und muss nicht eingetragen werden | `New-Api-User` |
138
+ | Benutzer-ID | Die Benutzerkennung für den obigen Request-Header | `12345` |
139
+ | Token | New API: „Zugriffstoken“ (das System-Zugriffstoken in den persönlichen Einstellungen) eintragen; Sub2API: „Anmeldetoken“ eintragen; gewöhnliches Relais: den für Modellaufrufe verwendeten `sk-` Schlüssel eintragen | `sk-...` |
140
+ | Guthaben-Endpunkt | Vollständige URL des Guthaben-Endpunkts | `https://example.com/api/user/self` |
141
+ | Guthabenfeld | Währungssymbol, Feldpfad und Divisor im Format `<Währung><Feldpfad> / <Divisor>` | `$data.quota / 500000` |
142
+ | Geeignete Modelle | Modelle, die zu dieser Plattform gehören | — |
143
+ | Kostenmultiplikator | Preisgestaltungsmultiplikator, Standard 1 | `1` |
144
+
145
+ #### Beispiel 1: New-API-kompatible Site
146
+
147
+ - Guthaben-Endpunkt: `https://example.com/api/user/self`
148
+ - Guthabenfeld: `$data.quota / 500000` (diese Site rechnet 500000 Kontingent als 1 Yuan)
149
+ - Token: das in den persönlichen Einstellungen erzeugte Zugriffstoken (kein Modellaufruf-Schlüssel)
150
+ - Request-Header: `New-Api-User`; Benutzer-ID: die Konto-Benutzer-ID
151
+
152
+ #### Beispiel 2: Sub2API-Site
153
+
154
+ Der Guthaben-Endpunkt von Sub2API-Sites hat häufig eine der folgenden beiden Formen; wählen Sie je nach Site:
155
+
156
+ - Unterstützt OpenAI-kompatibles `GET /v1/usage` (Authentifizierung mit dem `sk-` Modellschlüssel): wird in der Regel automatisch zugeordnet, keine manuelle Konfiguration nötig; bei fehlender Zuordnung das Token auf diesen `sk-` Schlüssel und den Guthaben-Endpunkt auf `https://example.com/v1/usage` setzen.
157
+ - Nur ein Konsolen-Endpunkt ist abfragbar (der Endpunkt liegt unter `/api/v1/*` und erfordert eine Konsolen-Anmeldung): den Guthaben-Endpunkt auf den Konsolen-Guthaben-Endpunkt der Site (gemäß tatsächlicher Site) setzen, **das Token auf das „Anmeldetoken“** setzen (die nach der Konsolen-Anmeldung erhaltene Zugriffsberechtigung, kein Modellaufruf-Schlüssel), und das Guthabenfeld gemäß der Antwortstruktur des Endpunkts eintragen.
158
+
159
+ #### Beispiel 3: OpenAI-kompatibles Relais mit einem einzigen Schlüssel
160
+
161
+ - Token: der für Modellaufrufe verwendete `sk-` Schlüssel
162
+ - Wird in der Regel automatisch zugeordnet; bei fehlender Zuordnung den Guthaben-Endpunkt und das Guthabenfeld (z. B. `$balance` oder `$data.balance`) ergänzen.
163
+
164
+ > Hinweis: Bleibt der Guthaben-Endpunkt leer, wird das Guthaben dieser Plattform nicht abgefragt; sie nimmt jedoch weiterhin über den Kostenmultiplikator an der Abrechnung teil.
165
+
166
+ ## Bekannte Einschränkungen
167
+
168
+ - Die schnellste / langsamste TTFT und Geschwindigkeit stammen aus einer neuen hostseitigen Projektion: **Sie müssen DSH vollständig beenden und neu starten**, bevor es mit der Erfassung beginnt
169
+ - Ein Modell ohne Preis wird nicht abgerechnet; das Hinzufügen des Preises füllt seine früheren Aufrufe nachträglich auf
170
+ - Das Ein-Klick-Update basiert auf `pnpm`: Die Desktop-App verwendet die mit dem Host gebündelte Kopie, während die Nutzung über CLI / Web `pnpm` im System erfordert. Wird keines gefunden, weist das Update ausdrücklich darauf hin **und protokolliert jeden versuchten Speicherort**; Sie können es auch über die Umgebungsvariable `DSH_DESKTOP_STATUSBAR_PNPM` auf einen bestimmten Befehl verweisen
171
+
172
+ ## Berechtigungen & externer Zugriff
173
+
174
+ Das Plugin liest Sitzungsprotokolle und lokale Konfiguration, um Nutzung, Guthaben und Kosten zu berechnen, und unterstützt das Ein-Klick-Selbstupdate, daher ist es ein **hochprivilegiertes Plugin**. Unten folgt die tatsächliche Berechtigungsgrenze (entsprechend dem Code in `lib/`). Bitte überprüfen Sie sie vor der Installation.
175
+
176
+ ### Dateien
177
+
178
+ | Pfad | Zweck | Hinweise |
179
+ | --- | --- | --- |
180
+ | `<DSH_HOME>/dsh-status-bar/usage-ledger.json` | Lokales Nutzungs-Ledger, beim Start aus dem Verlauf nachbefüllt | Schreibt nur im eigenen Verzeichnis des Plugins |
181
+ | `<DSH_HOME>/dsh-status-bar/holidays.json` | Cache für Feiertage | Wird bei automatischen Feiertagsaktualisierungen im Hintergrund geschrieben |
182
+ | `<DSH_HOME>/dsh-status-bar/exchange-rate.json` | Täglicher Wechselkurs-Cache | Wird beim Aktualisieren der Wechselkurse im Hintergrund geschrieben |
183
+ | `<DSH_HOME>/dsh-status-bar/tip-diag.log` | Diagnoseprotokoll | Zeichnet Diagnosedaten zur Tooltip-Positionierung zur Fehlerbehebung auf |
184
+ | `<DSH_HOME>/dsh-status-bar/relay-balance.json` | Relay-Guthaben-Konfiguration (kein Klartext-Geheimnis) | Plugin-Verzeichnis |
185
+ | `<DSH_HOME>/sessions` | Sitzungsprotokolle lesen, um Token-/Kostenstatistiken zu berechnen | Nur lesen |
186
+ | `<DSH_HOME>/.credentials.yaml` | Liest API-Schlüssel nur über Refs, wenn weder der Credentials-Dienst noch Umgebungsvariablen einen bereitstellen | Nur lesen |
187
+ | Profil `package.json` / `pnpm-lock.yaml` / `pnpm-workspace.yaml` | Beim Ein-Klick-Selbstupdate gesichert und zurückgeschrieben | Nur wenn Sie auf „Ein-Klick-Update“ klicken |
188
+
189
+ ### Netzwerk
190
+
191
+ Anfragen werden nur gestellt, um Guthaben, Wechselkurse oder Feiertage anzuzeigen oder auf Updates zu prüfen; alle außer dem lokalen Loopback 127.0.0.1 über HTTPS, und sie schlagen bei Zeitüberschreitung still fehl, ohne die anderen Statusleistenfelder zu blockieren.
192
+
193
+ | Domäne | Zweck |
194
+ | --- | --- |
195
+ | `api.deepseek.com` | DeepSeek-Kontoguthaben |
196
+ | `openrouter.ai` | OpenRouter-Guthaben |
197
+ | `api.siliconflow.com` / `api.siliconflow.cn` | SiliconFlow-Kontoinformationen |
198
+ | `api.moonshot.ai` / `api.moonshot.cn` | Moonshot-Guthaben |
199
+ | `open.bigmodel.cn` / `api.z.ai` | Zhipu-Kontingent |
200
+ | `api.b.ai` | B.AI-Guthaben |
201
+ | `api.xiaomimimo.com` | Xiaomi MiMo-Guthaben |
202
+ | `api.stepfun.com` / `api.stepfun.ai` | StepFun-Kontoguthaben (China / International) |
203
+ | `www.minimax.cn` | MiniMax Token Plan-Kontingent |
204
+ | `management-api.x.ai` | xAI-Team-Guthaben |
205
+ | `business.aliyuncs.com` | Alibaba Cloud BSS-Kontoguthaben |
206
+ | `open.er-api.com` | CNY-Wechselkurs |
207
+ | `sousuo.www.gov.cn` | Automatische Aktualisierung der gesetzlichen Feiertage |
208
+ | `registry.npmjs.org` | Versionsprüfung (Selbstupdate) |
209
+ | `127.0.0.1` (Loopback) | Host-Web-Port / lokale Adapter |
210
+
211
+ Wenn die Guthaben-URL einer Plattform leer gelassen wird, wird sie nicht abgefragt, was die Abrechnung nicht beeinflusst.
212
+
213
+ ### Anmeldedaten
214
+
215
+ - Verwendet zuerst den Anmeldedaten-Dienst des Hosts `ctx.credentials` (die maßgebliche Quelle, die von der Modelle-Seite geschrieben wird); ist er nicht verfügbar, wird auf Umgebungsvariablen zurückgegriffen (z. B. `DEEPSEEK_API_KEY` und den Refs-Namen jedes Adapters), dann auf den Refs-Abschnitt von `<DSH_HOME>/.credentials.yaml`.
216
+ - API-Schlüssel werden **nur zum Abfragen des Guthabens dieser Plattform verwendet**; sie werden niemals woanders hochgeladen, protokolliert oder in das Ledger geschrieben.
217
+ - Die Einstellungsseite zeigt Token als Punkte mit Auswahl-zum-Kopieren; `GET /dsh-desktop-statusbar/api/relay-balance-config` gibt das Same-Origin-Token an das Frontend zurück. Dieser Endpunkt ist nur über Loopback erreichbar (Prüfungen von Host / Origin / remoteAddress) und verlässt niemals den Rechner.
218
+
219
+ ### Befehle
220
+
221
+ - `pnpm` wird nur aufgerufen, wenn Sie auf „Ein-Klick-Update“ klicken: Es wird das mit dem Host gebündelte pnpm bevorzugt (z. B. `runtime/primary-runtime/dependencies/pnpm/bin/pnpm.mjs`), mit Rückgriff auf das System-`pnpm`; Sie können es mit der Umgebungsvariable `DSH_DESKTOP_STATUSBAR_PNPM` festlegen.
222
+ - Bei einem Fehler stellt das Update das Profil-Backup wieder her und zeigt den Grund an; wenn pnpm nicht gefunden wird, meldet es dies ausdrücklich und protokolliert jeden versuchten Speicherort.
223
+
224
+ ### Fehlergrenzen
225
+
226
+ - Keine Anmeldedaten: Das Guthaben dieser Plattform zeigt „—“; andere Felder funktionieren weiter.
227
+ - Netzwerkfehler / Zeitüberschreitung: Nur dieses Guthaben oder dieser Kurs ist betroffen; andere Statistiken sind nicht betroffen.
228
+ - pnpm nicht gefunden: Das Ein-Klick-Update meldet explizit einen Fehler, statt still zu scheitern.
229
+ - Selbstupdate-Fehler: Das `package.json`- / Lockdatei-Backup des Profils wird wiederhergestellt.
230
+
231
+ ### Bekannte Risiken
232
+
233
+ - Hochprivilegiertes Plugin (Datei lesen/schreiben + Netzwerk + Anmeldedaten + Befehle) — bitte entscheiden Sie nach Kenntnis des Berechtigungsumfangs, ob Sie es installieren.
234
+ - Wenn externe Guthabendienste nicht verfügbar sind, fehlen die zugehörigen Zahlen oder sind veraltet.
235
+ - Das Ein-Klick-Selbstupdate benötigt Schreibzugriff auf das Profil-Verzeichnis.
236
+
237
+ ## Entwicklung
238
+
239
+ Jeder Test ist ein eigenständiges Skript, das mit reinem node ausgeführt werden soll — kein Test-Framework.
240
+
241
+ ```powershell
242
+ npm test # runs every verify*.js/.mjs under tests/, then checks project vs installed plugin dir
243
+ npm run sync # copies lib/ into the installed plugin dir
244
+ ```
245
+
246
+ Entwicklungsskripte unter `tools/` werden mit dem Paket ausgeliefert (das Feld `files` enthält sie),
247
+ sodass sowohl ein Git-Klon als auch eine npm-Installation sie erhalten:
248
+
249
+ | Skript | Zweck |
250
+ |---|---|
251
+ | `tools/test.cjs` | vollständiger Testlauf + Konsistenzprüfung |
252
+ | `tools/sync-to-plugin.cjs` | Projekt-`lib/` → installiertes Plugin-Verzeichnis |
253
+ | `tools/sync-from-plugin.cjs` | installiertes Plugin-Verzeichnis → Projekt-`lib/` |
254
+ | `tools/plugin-dir.cjs` | lokalisiert das Plugin-Verzeichnis |
255
+ | `tools/shot.cjs` | erzeugt die README-Screenshots neu |
256
+
257
+ Sie werden nur während der Entwicklung verwendet; das Plugin lädt sie zur Laufzeit nie.
258
+ Das npm-Paket enthält `tests/` und `tools/`, sodass eine installierte Kopie `node tools/test.cjs` direkt
259
+ ausführen kann (vollständiger Testlauf + Konsistenzprüfung).
260
+
261
+ Das Plugin-Verzeichnis wird automatisch lokalisiert: Umgebungsvariable `DSH_STATUS_BAR_PLUGIN_DIR` →
262
+ bekannte Layouts unter `~/.dsh` (`local-plugins/`, jedes `profiles/*/node_modules/`) → abgeleitet vom
263
+ `tools/`-Speicherort. Beim Wechsel von Rechner oder Benutzernamen sind keine Codeänderungen erforderlich.
264
+
265
+ ## Lizenz
266
+
267
+ [MIT](LICENSE): frei zu verwenden, zu ändern und weiterzuverbreiten; behalten Sie den Urheberrechts- und Lizenzhinweis bei.
package/README.en.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <a href="https://github.com/raphael-y7/dsh-desktop-statusbar/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/raphael-y7/dsh-desktop-statusbar?style=flat&logo=github&color=f5f5f5"></a>
5
5
  <a href="https://www.npmjs.com/package/dsh-desktop-statusbar"><img alt="npm downloads" src="https://img.shields.io/npm/dt/dsh-desktop-statusbar?style=flat&logo=npm&label=downloads&color=e74c3c"></a>
6
6
  <a href="https://www.npmjs.com/package/dsh-desktop-statusbar"><img alt="npm version" src="https://img.shields.io/npm/v/dsh-desktop-statusbar?style=flat&color=9B59B6"></a>
7
- <a href="https://github.com/deepseek-ai/deepseek-harness"><img alt="DeepSeek Harness" src="https://img.shields.io/badge/DeepSeek%20Harness-0.2.1--rc.5-%234d6bfe?style=flat"></a>
7
+ <a href="https://github.com/deepseek-ai/deepseek-harness"><img alt="DeepSeek Harness" src="https://img.shields.io/github/v/tag/deepseek-ai/deepseek-harness?label=DeepSeek%20Harness&color=4d6bfe"></a>
8
8
  <a href="https://awesome-dsh-plugin.com/p/raphael-y7/dsh-desktop-statusbar/"><img alt="dshmarket" src="https://img.shields.io/badge/dshmarket-listed-%23e6b800?style=flat"></a>
9
9
  <a href="https://dshfind.com/zh/plugins/raphael-y7/dsh-desktop-statusbar"><img alt="dshfind" src="https://img.shields.io/badge/dshfind-listed-%2300897B?style=flat"></a>
10
10
  <a href="https://deepseek1024.com/plugins/Rapheal-Y7/dsh-desktop-statusbar"><img alt="1024Store" src="https://img.shields.io/badge/1024Store-listed-%23e67e22?style=flat"></a>
@@ -14,11 +14,11 @@
14
14
  <a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-MIT-%2327ae60?style=flat"></a>
15
15
  </p>
16
16
 
17
- <p align="center"><a href="README.md">中文</a> | English</p>
17
+ <p align="center"><a href="README.md">简体中文</a> | <a href="README.en.md">English</a> | <a href="README.ja.md">日本語</a> | <a href="README.es.md">Español</a> | <a href="README.fr.md">Français</a> | <a href="README.de.md">Deutsch</a> | <a href="README.ru.md">Русский</a> | <a href="README.pt.md">Português</a></p>
18
18
 
19
19
  Replaces the stats line under the message input in the DSH desktop app with a configurable status bar: fields, ordering, per-model prices and currency are all configurable, with live cost estimates using DeepSeek's official peak/off-peak rates.
20
20
 
21
- ![Status bar](docs/statusbar.en.png)
21
+ https://github.com/user-attachments/assets/5a4f7fd8-a445-490d-a557-1ec840c611df
22
22
 
23
23
  ## Features
24
24
 
@@ -40,10 +40,10 @@ Replaces the stats line under the message input in the DSH desktop app with a co
40
40
 
41
41
  - **Session data drill-down**: context compactions mark the node they happened at, skills injected counts the skills injected in this session, and tool calls list every tool the session used with its call count; click the title to go back up
42
42
  - **Version check and update**: DSH checks for the latest version on startup, shows a hint next to the "Status bar" nav item when one is available, and offers a one-click update button in settings
43
- - **GitHub support**: your support is the biggest motivation for the developer to keep going! Click the button to open the GitHub project page and help with a star — thanks, everyone!
43
+ - **GitHub support**: the button opens the GitHub project page, where you can star the project.
44
44
  - **Cost estimation**: priced with the official peak/off-peak rules; each call is computed from the moment it happened and the model it used
45
45
  - **Price book**: your own prices, an optional peak/off-peak split, and a CNY / USD currency switch
46
- - **Also**: one-click holiday calendar update, balance refreshed every minute, bilingual UI
46
+ - **Also**: automatic holiday updates, balance refreshed every minute, 8 UI languages (Simplified Chinese / English / 日本語 / Español / Français / Deutsch / Русский / Português)
47
47
 
48
48
  ## Install
49
49
 
@@ -75,15 +75,15 @@ npm view dsh-desktop-statusbar version
75
75
 
76
76
  ### When the built-in updater fails
77
77
 
78
- The one-click update button inside the plugin can fail on some desktop builds — it either does nothing or reports a failure. Do not keep clicking it. Use the official install entry instead and **append `@version` to the package name** to pin the exact version:
78
+ The built-in one-click update button may fail on some desktop builds, either not responding or reporting an error. In that case, use the official install entry and **append `@version` to the package name** to install the exact version:
79
79
 
80
80
  ```powershell
81
- dsh plugin --profile desktop add dsh-desktop-statusbar@3.0.0
81
+ dsh plugin --profile desktop add dsh-desktop-statusbar@3.0.5
82
82
  ```
83
83
 
84
- The same string works in the plugin panel — type `dsh-desktop-statusbar@3.0.0` into the **Add plugin** field.
84
+ The same string works in the plugin panel: type `dsh-desktop-statusbar@3.0.5` into the **Add plugin** field.
85
85
 
86
- Use whatever version you see (the version on the release page, or the output of the `npm view` command above). Pinning the version has a second benefit: **you get exactly the build you asked for**, with no chance of a stale cached package.
86
+ Use the current latest version (shown on the release page or in the `npm view` output above). Pinning the version also ensures **you install exactly the target build**, avoiding a stale cached package.
87
87
 
88
88
  Also listed on [dshmarket](https://awesome-dsh-plugin.com/p/raphael-y7/dsh-desktop-statusbar/), [dshfind](https://dshfind.com/zh/plugins/raphael-y7/dsh-desktop-statusbar) and [1024Store](https://deepseek1024.com/plugins/Rapheal-Y7/dsh-desktop-statusbar).
89
89
 
@@ -93,11 +93,11 @@ Open **Settings → Status bar**:
93
93
 
94
94
  ![Settings page](docs/settings.en.png)
95
95
 
96
- - **Context occupancy**: the ring at the head of the bar — progress shows the share of context used, the gap marks the compaction threshold, and the colour shows the run state (grey idle / green running / red error / amber pending approval)
96
+ - **Context occupancy**: the ring at the head of the bar — progress shows the share of context used, the gap marks the compaction threshold, and the colour shows the run state (idle-grey / running-green / sub-agent running-blue / deeper sub-agent running-purple / error-red / pending approval-yellow)
97
97
  - **Stats fields**: ticking controls visibility only, so unticking hides a field without moving it; drag the handle on the right to reorder; "Reset settings" restores the factory order
98
98
  - **Custom model prices**: enter a model name and "Add" to create an entry; "Edit" opens the editor and changes are written on save; tick "peak / off-peak pricing" to split by time of day, otherwise a flat all-day price applies
99
99
  - **Currency**: CNY or USD in the top-right corner of the editor. Switching replaces the two built-in models with that currency's official reference prices (edited entries are kept) and changes the symbol in the cost fields; the balance follows the currency reported by the API
100
- - **Holidays**: click "Update holidays" to fetch and write the next year's public-holiday calendar
100
+ - **Holidays**: automatically fetch and write next year's schedule after December 31 each year
101
101
  - **Balance**: refreshed once a minute
102
102
 
103
103
  ### Billing rules
@@ -106,18 +106,140 @@ Peak hours are **09:00–12:00 and 14:00–18:00 Beijing time, Monday to Friday*
106
106
 
107
107
  ![Custom model prices](docs/pricing.en.png)
108
108
 
109
+ ## Relay balance query
110
+
111
+ When the status bar queries a balance, it selects the query method based on **the platform actually used by the current session**, covering two cases: automatic matching and manual configuration.
112
+
113
+ ### 1. Automatic matching
114
+
115
+ When the relay is configured as an ordinary provider on the DSH **Models** page (with a baseURL and an API key), the plugin uses that key to probe the following common balance endpoints concurrently; if any parseable endpoint responds, the balance is shown with no extra configuration:
116
+
117
+ - `/v1/usage`
118
+ - `/v1/user/self`, `/api/user/self`, `/api/v1/user/self`
119
+ - `/api/usage`
120
+ - `/v1/dashboard/billing/credit_grants`
121
+ - `/v1/credits`
122
+
123
+ If the site's balance endpoint follows one of the standard forms above and can be read with `Authorization: Bearer <API key>`, the balance is shown automatically.
124
+
125
+ ### 2. Manual configuration
126
+
127
+ In any of the following cases, you must add a platform entry under **Settings → Status bar → Custom model prices → Platform** and fill in the endpoint and credentials:
128
+
129
+ - the provider has no baseURL configured on the **Models** page;
130
+ - the balance endpoint or authentication scheme is not a standard form (for example, New API requires an extra user ID request header);
131
+ - the endpoint's response structure cannot be parsed automatically.
132
+
133
+ The fields are defined as follows:
134
+
135
+ | Field | Description | Example |
136
+ | --- | --- | --- |
137
+ | Request header | Name of the request header used for the user ID; token authentication always uses `authorization: Bearer` and needs no entry | `New-Api-User` |
138
+ | User ID | The user identifier for the above request header | `12345` |
139
+ | Token | New API: enter the “access token” (the system access token in personal settings); Sub2API: enter the “login token”; ordinary relay: enter the `sk-` key used for model calls | `sk-...` |
140
+ | Balance endpoint | Full URL of the balance endpoint | `https://example.com/api/user/self` |
141
+ | Balance field | Currency symbol, field path and divisor, in the form `<currency><field path> / <divisor>` | `$data.quota / 500000` |
142
+ | Applicable models | Models belonging to this platform | — |
143
+ | Cost multiplier | Pricing multiplier, default 1 | `1` |
144
+
145
+ #### Example 1: New API-compatible site
146
+
147
+ - Balance endpoint: `https://example.com/api/user/self`
148
+ - Balance field: `$data.quota / 500000` (this site counts 500000 quota as 1 CNY)
149
+ - Token: the access token generated in personal settings (not a model-call key)
150
+ - Request header: `New-Api-User`; User ID: the account user ID
151
+
152
+ #### Example 2: Sub2API site
153
+
154
+ Sub2API sites commonly expose the balance endpoint in one of the following two forms; choose according to the site:
155
+
156
+ - Supports OpenAI-compatible `GET /v1/usage` (authenticated with the `sk-` model key): usually matched automatically, with no manual configuration; if not matched, set the token to that `sk-` key and the balance endpoint to `https://example.com/v1/usage`.
157
+ - Only a console endpoint is available (the endpoint is under `/api/v1/*` and requires a console login session): set the balance endpoint to the site's console balance endpoint (as actually provided by the site), and **set the token to the “login token”** (the access credential obtained after console login, not a model-call key); fill in the balance field according to the endpoint's response structure.
158
+
159
+ #### Example 3: OpenAI-compatible relay with a single key
160
+
161
+ - Token: the `sk-` key used for model calls
162
+ - Usually matched automatically; if not matched, add the balance endpoint and balance field (such as `$balance` or `$data.balance`).
163
+
164
+ > Note: if the balance endpoint is left empty, the platform's balance is not queried, but it still takes part in billing by cost multiplier.
165
+
109
166
  ## Known limitations
110
167
 
111
168
  - Fastest / slowest TTFT and speed come from a new host-side projection: **you must fully quit and restart DSH** before it starts collecting
112
169
  - A model with no price is not billed; adding the price back-fills its earlier calls
113
170
  - One-click update relies on `pnpm`: the desktop app uses the copy bundled with the host, while CLI / web usage needs `pnpm` on the system. If neither is found, the update says so explicitly **and logs every location it tried**; you can also point it at a specific command with the `DSH_DESKTOP_STATUSBAR_PNPM` environment variable
114
171
 
172
+ ## Permissions & external access
173
+
174
+ The plugin reads session logs and local config to compute usage, balance and cost, and supports one-click self-update, so it is a **high-privilege plugin**. Below is the real permission boundary (matching the `lib/` code). Please review it before installing.
175
+
176
+ ### Files
177
+
178
+ | Path | Purpose | Notes |
179
+ | --- | --- | --- |
180
+ | `<DSH_HOME>/dsh-status-bar/usage-ledger.json` | Local usage ledger, back-filled from history on startup | Writes only inside the plugin's own directory |
181
+ | `<DSH_HOME>/dsh-status-bar/holidays.json` | Public-holiday cache | Written during automatic holiday updates in the background |
182
+ | `<DSH_HOME>/dsh-status-bar/exchange-rate.json` | Daily exchange-rate cache | Written when exchange rates are refreshed in the background |
183
+ | `<DSH_HOME>/dsh-status-bar/tip-diag.log` | Diagnostic log | Records tooltip-positioning diagnostics to help troubleshoot |
184
+ | `<DSH_HOME>/dsh-status-bar/relay-balance.json` | Relay balance config (no plaintext secret) | Plugin directory |
185
+ | `<DSH_HOME>/sessions` | Read session logs to compute token / cost stats | Read-only |
186
+ | `<DSH_HOME>/.credentials.yaml` | Reads API keys by refs only when neither the credentials service nor env vars provide one | Read-only |
187
+ | Profile `package.json` / `pnpm-lock.yaml` / `pnpm-workspace.yaml` | Backed up and written back during one-click self-update | Only when you click "one-click update" |
188
+
189
+ ### Network
190
+
191
+ Requests are made only to show balance, exchange rates, public holidays or check for updates; all except the local loopback 127.0.0.1 use HTTPS, and they fail quietly on timeout without blocking the other status-bar fields.
192
+
193
+ | Domain | Purpose |
194
+ | --- | --- |
195
+ | `api.deepseek.com` | DeepSeek account balance |
196
+ | `openrouter.ai` | OpenRouter credits |
197
+ | `api.siliconflow.com` / `api.siliconflow.cn` | SiliconFlow account info |
198
+ | `api.moonshot.ai` / `api.moonshot.cn` | Moonshot balance |
199
+ | `open.bigmodel.cn` / `api.z.ai` | Zhipu quota |
200
+ | `api.b.ai` | B.AI balance |
201
+ | `api.xiaomimimo.com` | Xiaomi MiMo balance |
202
+ | `api.stepfun.com` / `api.stepfun.ai` | StepFun account balance (China / International) |
203
+ | `www.minimax.cn` | MiniMax Token Plan quota |
204
+ | `management-api.x.ai` | xAI team balance |
205
+ | `business.aliyuncs.com` | Alibaba Cloud BSS account balance |
206
+ | `open.er-api.com` | CNY exchange rate |
207
+ | `sousuo.www.gov.cn` | Automatic public-holiday updates |
208
+ | `registry.npmjs.org` | Version check (self-update) |
209
+ | `127.0.0.1` (loopback) | Host web port / local adapters |
210
+
211
+ Leaving a platform's balance URL empty means it is not queried, and does not affect billing.
212
+
213
+ ### Credentials
214
+
215
+ - Uses the host credentials service `ctx.credentials` first (the authoritative source written by the models page); if unavailable it falls back to environment variables (e.g. `DEEPSEEK_API_KEY` and each adapter's refs name), then to the refs section of `<DSH_HOME>/.credentials.yaml`.
216
+ - API keys are **only used to query that platform's balance**; they are never uploaded elsewhere, logged, or written to the ledger.
217
+ - The settings page shows tokens as dots with select-to-copy; `GET /dsh-desktop-statusbar/api/relay-balance-config` returns the same-origin token to the frontend. That endpoint is loopback-only (Host / Origin / remoteAddress checks) and never leaves the machine.
218
+
219
+ ### Commands
220
+
221
+ - `pnpm` is invoked only when you click "one-click update": it prefers the pnpm bundled with the host (e.g. `runtime/primary-runtime/dependencies/pnpm/bin/pnpm.mjs`), falling back to the system `pnpm`; you can point it with the `DSH_DESKTOP_STATUSBAR_PNPM` environment variable.
222
+ - On failure the update restores the Profile backup and shows the reason; if pnpm is not found it reports explicitly and logs every location tried.
223
+
224
+ ### Failure boundaries
225
+
226
+ - No credentials: that platform's balance shows "—"; other fields keep working.
227
+ - Network failure / timeout: only that balance or rate is affected; other stats are unaffected.
228
+ - pnpm not found: one-click update errors explicitly instead of failing silently.
229
+ - Self-update failure: the Profile's `package.json` / lockfile backup is restored.
230
+
231
+ ### Known risks
232
+
233
+ - High-privilege plugin (file read/write + network + credentials + commands) — please decide whether to install after understanding the permission scope.
234
+ - When external balance services are unavailable the related numbers are missing or stale.
235
+ - One-click self-update needs write access to the Profile directory.
236
+
115
237
  ## Development
116
238
 
117
239
  Every test is a standalone script meant to be run with plain node — no test framework.
118
240
 
119
241
  ```powershell
120
- npm test # runs every verify*.js under tests/, then checks project vs installed plugin dir
242
+ npm test # runs every verify*.js/.mjs under tests/, then checks project vs installed plugin dir
121
243
  npm run sync # copies lib/ into the installed plugin dir
122
244
  ```
123
245
 
@@ -133,8 +255,8 @@ so both a git clone and an npm install get them:
133
255
  | `tools/shot.cjs` | regenerates the README screenshots |
134
256
 
135
257
  They are only used while developing; the plugin never loads them at runtime.
136
- `npm test` needs the repository's `tests/` directory, so an npm-installed copy can only run
137
- `sync-*` and `shot`.
258
+ The npm package includes `tests/` and `tools/`, so an installed copy can run `node tools/test.cjs` directly
259
+ (full test run + consistency guard).
138
260
 
139
261
  The plugin directory is located automatically: environment variable `DSH_STATUS_BAR_PLUGIN_DIR` →
140
262
  known layouts under `~/.dsh` (`local-plugins/`, each `profiles/*/node_modules/`) → derived from the