dsh-any-deepseek 0.0.25 → 0.0.27
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/lib/client.js +17 -8
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1397,14 +1397,23 @@ window.__ModuleLoader__.load({
|
|
|
1397
1397
|
const inject = ["slots"];
|
|
1398
1398
|
function apply(ctx) {
|
|
1399
1399
|
ctx.inject(["slots"], (scope) => {
|
|
1400
|
-
scope.effect(() => scope.slots.
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1400
|
+
scope.effect(() => scope.slots.inject("sidebar.footer.action", () => {
|
|
1401
|
+
try {
|
|
1402
|
+
return scope.slots.register({
|
|
1403
|
+
name: "sidebar.footer.action",
|
|
1404
|
+
id: "any-deepseek-usage",
|
|
1405
|
+
order: 90,
|
|
1406
|
+
inject: () => ({ loadToday: () => {
|
|
1407
|
+
const start = /* @__PURE__ */ new Date();
|
|
1408
|
+
start.setHours(0, 0, 0, 0);
|
|
1409
|
+
return fetchStats("day", start.toISOString());
|
|
1410
|
+
} })
|
|
1411
|
+
}, UsageBadge);
|
|
1412
|
+
} catch (error) {
|
|
1413
|
+
console.error("[dsh-any-deepseek] sidebar usage badge registration refused:", error);
|
|
1414
|
+
throw error;
|
|
1415
|
+
}
|
|
1416
|
+
}), "any-deepseek sidebar usage badge");
|
|
1408
1417
|
});
|
|
1409
1418
|
ctx.inject(["slots", "configForms"], (scope) => {
|
|
1410
1419
|
const form = scope.configForms.get(SETTINGS_NS);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-any-deepseek",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "One DeepSeek V4.1 Flash provider for DeepSeek Harness: paste a key per channel, switch channels manually, token usage booked per real upstream.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|