@kenz1117/dsh-ui-usage-billing 1.4.31 → 1.4.32

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 (2) hide show
  1. package/lib/index.js +9 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -7238,10 +7238,17 @@ function apply(ctx, config = {}) {
7238
7238
  const workspaceTitleResolver = buildWorkspaceTitleResolver(ctx);
7239
7239
  applyBuiltinCatalog(BUILTIN_MODEL_CATALOG, BUILTIN_MODEL_KEY_ALIASES);
7240
7240
  applyUserModelAliases(config.modelKeyAliases);
7241
+ let llmRegistryWarned = false;
7241
7242
  const registeredProvidersOf = () => {
7242
7243
  try {
7243
- return new Set(ctx.llm.listProviders().map((provider) => provider.id));
7244
- } catch {
7244
+ const providers = (ctx.get?.("llm"))?.listProviders() ?? [];
7245
+ llmRegistryWarned = false;
7246
+ return new Set(providers.map((provider) => provider.id));
7247
+ } catch (error) {
7248
+ if (!llmRegistryWarned) {
7249
+ llmRegistryWarned = true;
7250
+ console.warn("[usage-billing] llm registry unavailable; plugin-registered adapter channels stay unknown (issue #91):", error);
7251
+ }
7245
7252
  return /* @__PURE__ */ new Set();
7246
7253
  }
7247
7254
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kenz1117/dsh-ui-usage-billing",
3
3
  "description": "Usage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.",
4
- "version": "1.4.31",
4
+ "version": "1.4.32",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "deepseek",