dsh-keys-manager 0.2.10 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to dsh-keys-manager are documented here. Assembled from `.changes/unreleased/` fragments by the release-prep workflow.
4
4
 
5
+ ## [0.3.0] - 2026-11-06
6
+
7
+ ### Changed
8
+
9
+ - Narrow the `@deepseek-ai/cordis` peer to `~4.1.0`, the range `dsh-llm@0.2.2-rc.1` declares, so cordis 4.2 and later no longer satisfy this plugin.
10
+ - Align the transport's `@deepseek-ai/schemastery` peer to `~3.19.0`, the range `dsh-llm@0.2.2-rc.1` depends on.
11
+ - Move the `@deepseek-ai/dsh-*` peer corridor from `dsh-v0.2.1-rc.4` to `dsh-v0.2.2-rc.1`.
12
+ - No session or storage format changed for this plugin; existing keys, settings, and transport configuration keep working as before.
13
+
14
+ ## [0.2.11] - 2026-10-28
15
+
16
+ ### Changed
17
+
18
+ - A route without a usage probe now says "usage is not shown for this route" instead of leaving the plan-usage line looking like a failed read.
19
+
5
20
  ## [0.2.10] - 2026-10-26
6
21
 
7
22
  ### Added
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm downloads](https://img.shields.io/npm/dm/dsh-keys-manager)](https://www.npmjs.com/package/dsh-keys-manager)
4
4
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
5
  [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-339933)](https://www.npmjs.com/package/dsh-keys-manager)
6
- [![DSH](https://img.shields.io/badge/DSH-%5E0.2.1--rc.3-0969DA)](https://www.npmjs.com/package/@deepseek-ai/dsh-llm)
6
+ [![DSH](https://img.shields.io/badge/DSH-%5E0.2.2--rc.1-0969DA)](https://www.npmjs.com/package/@deepseek-ai/dsh-llm)
7
7
 
8
8
  **English** | [简体中文](README.zh-CN.md)
9
9
 
package/README.zh-CN.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm downloads](https://img.shields.io/npm/dm/dsh-keys-manager)](https://www.npmjs.com/package/dsh-keys-manager)
4
4
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
5
  [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-339933)](https://www.npmjs.com/package/dsh-keys-manager)
6
- [![DSH](https://img.shields.io/badge/DSH-%5E0.2.1--rc.3-0969DA)](https://www.npmjs.com/package/@deepseek-ai/dsh-llm)
6
+ [![DSH](https://img.shields.io/badge/DSH-%5E0.2.2--rc.1-0969DA)](https://www.npmjs.com/package/@deepseek-ai/dsh-llm)
7
7
 
8
8
  [English](README.md) | **简体中文**
9
9
 
package/lib/client.js CHANGED
@@ -230,10 +230,15 @@ var zh = {
230
230
  transportModelsMissingCatalog: "\u5DF2\u5B89\u88C5\u7684\u4F20\u8F93\u6784\u5EFA\u6CA1\u6709\u4E3A\u8BE5\u8DEF\u7531\u63D0\u4F9B\u6A21\u578B\u76EE\u5F55\uFF1B\u5217\u8868\u4F1A\u4E00\u76F4\u4E3A\u7A7A\uFF0C\u76F4\u5230\u91CD\u65B0\u6784\u5EFA\u6216\u5347\u7EA7 dsh-llm-omp-transports\u3002",
231
231
  // Plan usage on a key row (issue #22). The window abbreviations (5h / W)
232
232
  // are technical and stay untranslated, so they are code, not dictionary
233
- // entries; a pending, `absent` or `error` snapshot needs no copy at all.
234
- // `natively-managed` does: it is the host saying a DSH projection serves
235
- // the route while its usage stays unreadable, which is its own verdict.
233
+ // entries; a pending, `error` or probe-reported `absent` snapshot needs no
234
+ // copy at all. `natively-managed` does: it is the host saying a DSH
235
+ // projection serves the route while its usage stays unreadable, which is
236
+ // its own verdict. `quotaNoProbe` says only that this card does not show
237
+ // usage for the route (issue #62): some of those routes DO have an
238
+ // endpoint whose payload this window model cannot carry, so the copy must
239
+ // not claim there is none.
236
240
  quotaNativelyManaged: "\u7531 DSH \u539F\u751F\u7BA1\u7406",
241
+ quotaNoProbe: "\u8BE5\u8DEF\u7531\u6682\u4E0D\u663E\u793A\u7528\u91CF",
237
242
  quotaNotReported: "\u672A\u62A5\u544A",
238
243
  quotaResetDue: "\u5DF2\u5230\u91CD\u7F6E\u65F6\u95F4",
239
244
  quotaSignInAgain: "\u8BF7\u91CD\u65B0\u767B\u5F55",
@@ -428,6 +433,7 @@ var en = {
428
433
  transportModelsMissingCatalog: "The installed transport build ships no model catalog for this route; the list stays empty until dsh-llm-omp-transports is rebuilt or upgraded.",
429
434
  // Plan usage on a key row (issue #22).
430
435
  quotaNativelyManaged: "Managed by DSH",
436
+ quotaNoProbe: "Usage is not shown for this route",
431
437
  quotaNotReported: "Not reported",
432
438
  quotaResetDue: "Reset due",
433
439
  quotaSignInAgain: "Sign in again",
@@ -2043,6 +2049,9 @@ function quotaInline(row, t, now, rejected = false) {
2043
2049
  if (row.quota?.status === "unauthorized" && row.kind === "oauth") {
2044
2050
  return h("div", { className: "km-quota-inline" }, t("quotaSignInAgain"));
2045
2051
  }
2052
+ if (row.quota?.status === "absent" && row.quota.absentCause === "no-probe") {
2053
+ return h("div", { className: "km-quota-inline" }, t("quotaNoProbe"));
2054
+ }
2046
2055
  if (rejected && row.quota === void 0) {
2047
2056
  return h("div", { className: "km-quota-inline" }, t("quotaNotReported"));
2048
2057
  }
package/lib/domain.d.ts CHANGED
@@ -143,6 +143,11 @@ export interface QuotaView {
143
143
  fetchedAt: number;
144
144
  /** True when the windows are last-good data served behind a failed probe. */
145
145
  stale?: boolean;
146
+ /**
147
+ * Set on `absent`: `no-probe` = this route has no usage endpoint at all,
148
+ * `reported-nothing` = a probe ran and the vendor reported no usage.
149
+ */
150
+ absentCause?: 'no-probe' | 'reported-nothing';
146
151
  windows: QuotaWindowView[];
147
152
  }
148
153
  /** Public key row returned to the UI (no credential reference or value). */
package/lib/index.js CHANGED
@@ -6840,6 +6840,9 @@ export class KeysManagerService {
6840
6840
  status: snapshot.status,
6841
6841
  fetchedAt: snapshot.fetchedAt,
6842
6842
  ...(snapshot.stale === true ? { stale: true } : {}),
6843
+ // Why an `absent` read is empty travels with it: the card must not read
6844
+ // "this route has no usage endpoint" as "the read failed" (#62).
6845
+ ...(snapshot.absentCause === undefined ? {} : { absentCause: snapshot.absentCause }),
6843
6846
  windows: snapshot.windows.map(window => ({
6844
6847
  id: window.id,
6845
6848
  usedFraction: window.usedFraction,