@duke-dsh-plugins/dsh-token-stats 1.5.4 → 1.5.5
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/client.js +3 -3
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -1022,8 +1022,8 @@ window.__ModuleLoader__.load({
|
|
|
1022
1022
|
if (!ref || !trimmed) return;
|
|
1023
1023
|
setCredSaving((s) => ({ ...s, [p]: true }));
|
|
1024
1024
|
try {
|
|
1025
|
-
// 官方 credentials 命名空间(settings-models
|
|
1026
|
-
// inject
|
|
1025
|
+
// 官方 credentials 命名空间(settings-models 同款用法;依赖已在
|
|
1026
|
+
// exports.inject 声明——cordis 强制 inject 才能取服务属性,v1.5.5)。
|
|
1027
1027
|
const ns = (ctx.remote && ctx.remote.credentials) || ctx.get("remote.credentials");
|
|
1028
1028
|
if (!ns || typeof ns.set !== "function") throw new Error("credentials Remote 不可用");
|
|
1029
1029
|
const r = await ns.set(ref, trimmed);
|
|
@@ -1320,7 +1320,7 @@ window.__ModuleLoader__.load({
|
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
exports.apply = apply;
|
|
1323
|
-
exports.inject = ["slots", "remote"];
|
|
1323
|
+
exports.inject = ["slots", "remote", "remote.credentials"];
|
|
1324
1324
|
return module.exports;
|
|
1325
1325
|
},
|
|
1326
1326
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duke-dsh-plugins/dsh-token-stats",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "Token usage statistics for DeepSeek Harness (7/30-day per-model charts + yearly heatmap) plus an inline coding-plan balance/quota readout in the composer (minimax/deepseek/kimi/openrouter/zhipu).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|