@jxgame2020/dsh-token-quota 0.1.13 → 0.1.14

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 CHANGED
@@ -180,86 +180,86 @@ window.__ModuleLoader__.load({
180
180
  document.head.appendChild(tag);
181
181
  }
182
182
  var TokenQuotaPanel_module_css_default = {
183
- "logPager": "NPLLIq_logPager",
184
- "checkUpdatesLabel": "NPLLIq_checkUpdatesLabel",
185
- "dialogHeader": "NPLLIq_dialogHeader",
183
+ "dialogTitle": "NPLLIq_dialogTitle",
184
+ "dialog": "NPLLIq_dialog",
185
+ "logPagerControls": "NPLLIq_logPagerControls",
186
+ "fillWarn": "NPLLIq_fillWarn",
187
+ "header": "NPLLIq_header",
188
+ "logDialog": "NPLLIq_logDialog",
189
+ "panel": "NPLLIq_panel",
186
190
  "resetRow": "NPLLIq_resetRow",
187
- "logSearch": "NPLLIq_logSearch",
188
- "upgradeHint": "NPLLIq_upgradeHint",
189
- "settingsBtn": "NPLLIq_settingsBtn",
190
- "monitorRow": "NPLLIq_monitorRow",
191
- "dialogBody": "NPLLIq_dialogBody",
192
- "logHeader": "NPLLIq_logHeader",
193
- "save": "NPLLIq_save",
194
- "currentBadge": "NPLLIq_currentBadge",
195
- "upgradeCommands": "NPLLIq_upgradeCommands",
191
+ "logScroll": "NPLLIq_logScroll",
192
+ "dialogHeader": "NPLLIq_dialogHeader",
193
+ "logPager": "NPLLIq_logPager",
194
+ "logDayCol": "NPLLIq_logDayCol",
195
+ "tabLabel": "NPLLIq_tabLabel",
196
+ "noticeError": "NPLLIq_noticeError",
197
+ "bar": "NPLLIq_bar",
198
+ "logPageSizeSelect": "NPLLIq_logPageSizeSelect",
199
+ "dialogClose": "NPLLIq_dialogClose",
200
+ "copyBtn": "NPLLIq_copyBtn",
196
201
  "switch": "NPLLIq_switch",
197
- "collapse": "NPLLIq_collapse",
198
- "checkErrorHint": "NPLLIq_checkErrorHint",
199
- "header": "NPLLIq_header",
202
+ "logPagerPages": "NPLLIq_logPagerPages",
203
+ "version": "NPLLIq_version",
204
+ "tabIcon": "NPLLIq_tabIcon",
205
+ "dialogSection": "NPLLIq_dialogSection",
206
+ "controls": "NPLLIq_controls",
207
+ "resetSelect": "NPLLIq_resetSelect",
208
+ "dialogActions": "NPLLIq_dialogActions",
209
+ "fillIdle": "NPLLIq_fillIdle",
210
+ "headerActions": "NPLLIq_headerActions",
211
+ "monitorHint": "NPLLIq_monitorHint",
212
+ "body": "NPLLIq_body",
213
+ "currentBadge": "NPLLIq_currentBadge",
214
+ "logPagerInfo": "NPLLIq_logPagerInfo",
215
+ "checkBtn": "NPLLIq_checkBtn",
216
+ "monitorList": "NPLLIq_monitorList",
200
217
  "input": "NPLLIq_input",
201
218
  "upgradeBannerText": "NPLLIq_upgradeBannerText",
202
- "fillOver": "NPLLIq_fillOver",
203
- "title": "NPLLIq_title",
204
- "row": "NPLLIq_row",
205
- "selectBtn": "NPLLIq_selectBtn",
206
- "copyBtn": "NPLLIq_copyBtn",
207
- "checkBtn": "NPLLIq_checkBtn",
208
- "dialogClose": "NPLLIq_dialogClose",
209
- "logDayCol": "NPLLIq_logDayCol",
210
- "upgradeBanner": "NPLLIq_upgradeBanner",
211
- "dialogActions": "NPLLIq_dialogActions",
212
- "versionNew": "NPLLIq_versionNew",
213
219
  "checkUpdatesRow": "NPLLIq_checkUpdatesRow",
220
+ "headerText": "NPLLIq_headerText",
221
+ "logClearDate": "NPLLIq_logClearDate",
222
+ "logClearBtn": "NPLLIq_logClearBtn",
223
+ "logHeader": "NPLLIq_logHeader",
214
224
  "dialogLabel": "NPLLIq_dialogLabel",
215
- "monitorHint": "NPLLIq_monitorHint",
216
- "bar": "NPLLIq_bar",
217
- "version": "NPLLIq_version",
218
225
  "notice": "NPLLIq_notice",
219
- "logToolbar": "NPLLIq_logToolbar",
220
226
  "logUsedCol": "NPLLIq_logUsedCol",
221
- "logPagerControls": "NPLLIq_logPagerControls",
222
- "dialog": "NPLLIq_dialog",
223
- "logClearDialog": "NPLLIq_logClearDialog",
227
+ "collapse": "NPLLIq_collapse",
228
+ "upgradeHint": "NPLLIq_upgradeHint",
229
+ "monitorName": "NPLLIq_monitorName",
230
+ "logPagerBtn": "NPLLIq_logPagerBtn",
231
+ "fillOver": "NPLLIq_fillOver",
232
+ "upgradeBanner": "NPLLIq_upgradeBanner",
224
233
  "rowHeader": "NPLLIq_rowHeader",
225
- "fillWarn": "NPLLIq_fillWarn",
226
- "noticeError": "NPLLIq_noticeError",
234
+ "dialogBtnPrimary": "NPLLIq_dialogBtnPrimary",
235
+ "upgradeCommand": "NPLLIq_upgradeCommand",
227
236
  "logModelCol": "NPLLIq_logModelCol",
228
- "logDialog": "NPLLIq_logDialog",
237
+ "rowName": "NPLLIq_rowName",
238
+ "logClearDialog": "NPLLIq_logClearDialog",
239
+ "save": "NPLLIq_save",
240
+ "upgradeClose": "NPLLIq_upgradeClose",
229
241
  "rowMeta": "NPLLIq_rowMeta",
230
- "logClearBtn": "NPLLIq_logClearBtn",
231
- "monitorName": "NPLLIq_monitorName",
232
- "logPagerBtn": "NPLLIq_logPagerBtn",
233
- "dialogSection": "NPLLIq_dialogSection",
234
- "radioRow": "NPLLIq_radioRow",
235
- "monitorList": "NPLLIq_monitorList",
236
- "logPagerInfo": "NPLLIq_logPagerInfo",
237
- "panel": "NPLLIq_panel",
238
- "logTable": "NPLLIq_logTable",
239
- "logPagerPages": "NPLLIq_logPagerPages",
242
+ "upgradeCommandRow": "NPLLIq_upgradeCommandRow",
243
+ "versionNew": "NPLLIq_versionNew",
244
+ "subtitle": "NPLLIq_subtitle",
240
245
  "gearBtn": "NPLLIq_gearBtn",
246
+ "checkUpdatesLabel": "NPLLIq_checkUpdatesLabel",
247
+ "settingsBtn": "NPLLIq_settingsBtn",
248
+ "row": "NPLLIq_row",
249
+ "selectBtn": "NPLLIq_selectBtn",
250
+ "radioRow": "NPLLIq_radioRow",
241
251
  "dialogBtn": "NPLLIq_dialogBtn",
242
- "controls": "NPLLIq_controls",
243
- "logScroll": "NPLLIq_logScroll",
244
- "upgradeClose": "NPLLIq_upgradeClose",
245
- "resetSelect": "NPLLIq_resetSelect",
246
- "logPageSizeSelect": "NPLLIq_logPageSizeSelect",
247
- "rowName": "NPLLIq_rowName",
248
- "tabLabel": "NPLLIq_tabLabel",
249
- "tab": "NPLLIq_tab",
250
- "fillIdle": "NPLLIq_fillIdle",
251
- "headerText": "NPLLIq_headerText",
252
- "tabIcon": "NPLLIq_tabIcon",
253
- "dialogTitle": "NPLLIq_dialogTitle",
254
- "body": "NPLLIq_body",
255
- "upgradeCommandRow": "NPLLIq_upgradeCommandRow",
252
+ "logToolbar": "NPLLIq_logToolbar",
253
+ "logSearch": "NPLLIq_logSearch",
254
+ "dialogBody": "NPLLIq_dialogBody",
255
+ "checkErrorHint": "NPLLIq_checkErrorHint",
256
+ "upgradeCommands": "NPLLIq_upgradeCommands",
256
257
  "dialogOverlay": "NPLLIq_dialogOverlay",
257
- "subtitle": "NPLLIq_subtitle",
258
- "headerActions": "NPLLIq_headerActions",
259
- "upgradeCommand": "NPLLIq_upgradeCommand",
260
- "dialogBtnPrimary": "NPLLIq_dialogBtnPrimary",
261
- "logClearDate": "NPLLIq_logClearDate",
262
- "fullNotice": "NPLLIq_fullNotice"
258
+ "monitorRow": "NPLLIq_monitorRow",
259
+ "title": "NPLLIq_title",
260
+ "tab": "NPLLIq_tab",
261
+ "fullNotice": "NPLLIq_fullNotice",
262
+ "logTable": "NPLLIq_logTable"
263
263
  };
264
264
  //#endregion
265
265
  //#region lib/types/client/TokenQuotaPanel.js
@@ -506,13 +506,13 @@ window.__ModuleLoader__.load({
506
506
  title: t("upgradeAvailableHint"),
507
507
  children: [
508
508
  "v",
509
- "0.1.13",
509
+ "0.1.14",
510
510
  " → v",
511
511
  upgrade.latestVersion
512
512
  ]
513
513
  }) : (0, react_jsx_runtime.jsxs)("span", {
514
514
  className: TokenQuotaPanel_module_css_default.version,
515
- children: ["v", "0.1.13"]
515
+ children: ["v", "0.1.14"]
516
516
  })]
517
517
  }), (0, react_jsx_runtime.jsx)("div", {
518
518
  className: TokenQuotaPanel_module_css_default.subtitle,
package/lib/index.js CHANGED
@@ -406,11 +406,11 @@ var TokenQuotaService = class TokenQuotaService extends Service {
406
406
  return this.upgradeCheck;
407
407
  }
408
408
  async doRefreshUpgrade() {
409
- const current = "0.1.13";
409
+ const current = "0.1.14";
410
410
  let latest;
411
411
  try {
412
412
  const response = await fetch(REGISTRY_LATEST_URL, {
413
- headers: { accept: "application/vnd.npm.install-v1+json" },
413
+ headers: { accept: "application/json" },
414
414
  signal: AbortSignal.timeout(1e4)
415
415
  });
416
416
  if (!response.ok) {
@@ -434,8 +434,11 @@ export class TokenQuotaService extends Service {
434
434
  }
435
435
  let latest;
436
436
  try {
437
+ // NOTE: do NOT send `accept: application/vnd.npm.install-v1+json` here —
438
+ // that install-manifest media type gets 406 from some proxies/mirrors/CDNs.
439
+ // Plain JSON works everywhere and still carries the `version` field.
437
440
  const response = await fetch(REGISTRY_LATEST_URL, {
438
- headers: { accept: 'application/vnd.npm.install-v1+json' },
441
+ headers: { accept: 'application/json' },
439
442
  signal: AbortSignal.timeout(10_000),
440
443
  });
441
444
  if (!response.ok) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jxgame2020/dsh-token-quota",
3
3
  "description": "Daily per-model token quota accounting, enforcement, and a floating quota panel for the DeepSeek Harness — a fully self-contained plugin (no core-Harness wiring, no generated RPC contract)",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },