dsh-any-deepseek 0.0.24 → 0.0.26
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 +15 -4
- package/package.json +3 -2
package/lib/client.js
CHANGED
|
@@ -1382,18 +1382,29 @@ window.__ModuleLoader__.load({
|
|
|
1382
1382
|
* official plugins follow the same rule (`configForms.get('ui-settings')`, `get('ui-chat')`).
|
|
1383
1383
|
*/
|
|
1384
1384
|
const SETTINGS_NS = "dsh-any-deepseek";
|
|
1385
|
-
/**
|
|
1386
|
-
|
|
1385
|
+
/**
|
|
1386
|
+
* Services this half waits for.
|
|
1387
|
+
*
|
|
1388
|
+
* 🔴 `configForms` is deliberately NOT here, and that is a correction measured in a real browser
|
|
1389
|
+
* (2026-11-01). It used to be, which meant the module waited for BOTH services before `apply` ran
|
|
1390
|
+
* at all — so a settings service that was late or absent would take the header badge down with it,
|
|
1391
|
+
* silently. That is exactly the coupling the badge's own doc comment says must not exist, made one
|
|
1392
|
+
* level up where the comment could not see it.
|
|
1393
|
+
*
|
|
1394
|
+
* `configForms` is now awaited inside the panel branch only (`ctx.inject(['slots', 'configForms'])`
|
|
1395
|
+
* below), so the two surfaces wait for their own dependencies and neither can strand the other.
|
|
1396
|
+
*/
|
|
1397
|
+
const inject = ["slots"];
|
|
1387
1398
|
function apply(ctx) {
|
|
1388
1399
|
ctx.inject(["slots"], (scope) => {
|
|
1389
|
-
scope.effect(() => scope.slots.register({
|
|
1400
|
+
scope.effect(() => scope.slots.inject("conversation.header", () => scope.slots.register({
|
|
1390
1401
|
name: "conversation.header.leading",
|
|
1391
1402
|
inject: () => ({ loadToday: () => {
|
|
1392
1403
|
const start = /* @__PURE__ */ new Date();
|
|
1393
1404
|
start.setHours(0, 0, 0, 0);
|
|
1394
1405
|
return fetchStats("day", start.toISOString());
|
|
1395
1406
|
} })
|
|
1396
|
-
}, UsageBadge), "any-deepseek header usage badge");
|
|
1407
|
+
}, UsageBadge)), "any-deepseek header usage badge");
|
|
1397
1408
|
});
|
|
1398
1409
|
ctx.inject(["slots", "configForms"], (scope) => {
|
|
1399
1410
|
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.26",
|
|
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": {
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"@deepseek-ai/dsh-api-remotes",
|
|
44
44
|
"@deepseek-ai/dsh-client-connection",
|
|
45
45
|
"@deepseek-ai/dsh-client-ui-settings",
|
|
46
|
-
"@deepseek-ai/dsh-client-ui-slots"
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-conversation"
|
|
47
48
|
],
|
|
48
49
|
"platform": "web"
|
|
49
50
|
}
|