@jxgame2020/dsh-token-quota 0.1.51 → 0.1.52

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.
@@ -0,0 +1,9 @@
1
+ # Composition bundle for @jxgame2020/dsh-token-quota.
2
+ #
3
+ # The Harness plugin manager installs a package only when it declares
4
+ # `dsh.bundle` and ships this patch: the patch is what actually mounts the
5
+ # plugin into the profile's loader tree. Installing the package alone puts the
6
+ # code in node_modules; this row is what makes the Harness load it.
7
+ - insert:
8
+ - id: token-quota
9
+ name: '@jxgame2020/dsh-token-quota'
package/lib/client.js CHANGED
@@ -132,7 +132,7 @@ window.__ModuleLoader__.load({
132
132
  d.transcribe = settings;
133
133
  },
134
134
  setUpgrade: (d, upgrade) => {
135
- const normalized = upgrade !== null && upgrade.latestVersion !== "" && upgrade.latestVersion !== "0.1.51" ? upgrade : null;
135
+ const normalized = upgrade !== null && upgrade.latestVersion !== "" && upgrade.latestVersion !== "0.1.52" ? upgrade : null;
136
136
  if (d.upgrade === null || d.upgrade.latestVersion !== normalized?.latestVersion) d.upgradeDismissed = false;
137
137
  d.upgrade = normalized;
138
138
  },
@@ -262,147 +262,147 @@ window.__ModuleLoader__.load({
262
262
  document.head.appendChild(tag);
263
263
  }
264
264
  var TokenQuotaPanel_module_css_default = {
265
- "tabIcon": "NPLLIq_tabIcon",
266
- "balanceWinTitle": "NPLLIq_balanceWinTitle",
267
- "fillWarn": "NPLLIq_fillWarn",
268
- "balanceRowValue": "NPLLIq_balanceRowValue",
265
+ "balanceBarDim": "NPLLIq_balanceBarDim",
266
+ "logPageSizeSelect": "NPLLIq_logPageSizeSelect",
267
+ "upgradeBannerFlash": "NPLLIq_upgradeBannerFlash",
269
268
  "rowDragging": "NPLLIq_rowDragging",
270
- "tab": "NPLLIq_tab",
269
+ "noteWin": "NPLLIq_noteWin",
270
+ "row": "NPLLIq_row",
271
+ "balanceBarBadge": "NPLLIq_balanceBarBadge",
271
272
  "fullNotice": "NPLLIq_fullNotice",
272
- "balanceValueError": "NPLLIq_balanceValueError",
273
- "upgradeCommands": "NPLLIq_upgradeCommands",
274
- "balanceWin": "NPLLIq_balanceWin",
275
- "balanceToggle": "NPLLIq_balanceToggle",
276
- "notesBar": "NPLLIq_notesBar",
277
- "keyRow": "NPLLIq_keyRow",
278
- "input": "NPLLIq_input",
279
- "dialog": "NPLLIq_dialog",
280
- "logHeader": "NPLLIq_logHeader",
281
- "subtitle": "NPLLIq_subtitle",
282
- "body": "NPLLIq_body",
283
- "balanceBarDim": "NPLLIq_balanceBarDim",
284
- "upgradeHint": "NPLLIq_upgradeHint",
285
- "panelDimStrong": "NPLLIq_panelDimStrong",
286
- "title": "NPLLIq_title",
287
- "noticeError": "NPLLIq_noticeError",
288
- "upgradeCommandRow": "NPLLIq_upgradeCommandRow",
289
- "logUsedCol": "NPLLIq_logUsedCol",
290
- "keySaveBtn": "NPLLIq_keySaveBtn",
291
- "noteWinTitleText": "NPLLIq_noteWinTitleText",
292
- "fillIdle": "NPLLIq_fillIdle",
293
- "settingsBtn": "NPLLIq_settingsBtn",
294
- "dialogActions": "NPLLIq_dialogActions",
295
- "balanceWinBody": "NPLLIq_balanceWinBody",
296
- "resetRow": "NPLLIq_resetRow",
297
- "balanceRowRefresh": "NPLLIq_balanceRowRefresh",
298
- "upgradeClose": "NPLLIq_upgradeClose",
299
- "noteMenuItem": "NPLLIq_noteMenuItem",
300
- "logSearch": "NPLLIq_logSearch",
301
- "logPagerBtn": "NPLLIq_logPagerBtn",
302
- "logClearDate": "NPLLIq_logClearDate",
303
- "headerText": "NPLLIq_headerText",
304
- "dialogTitle": "NPLLIq_dialogTitle",
273
+ "tabIcon": "NPLLIq_tabIcon",
305
274
  "upgradeBanner": "NPLLIq_upgradeBanner",
306
- "monitorRow": "NPLLIq_monitorRow",
307
- "dialogSection": "NPLLIq_dialogSection",
308
- "checkUpdatesLabel": "NPLLIq_checkUpdatesLabel",
275
+ "logSearch": "NPLLIq_logSearch",
276
+ "resetRow": "NPLLIq_resetRow",
277
+ "noteWinTitle": "NPLLIq_noteWinTitle",
278
+ "balanceToggleOpen": "NPLLIq_balanceToggleOpen",
309
279
  "balanceBarError": "NPLLIq_balanceBarError",
310
- "balanceRowName": "NPLLIq_balanceRowName",
311
- "balanceBarText": "NPLLIq_balanceBarText",
312
- "noteWinText": "NPLLIq_noteWinText",
313
- "balanceLastLine": "NPLLIq_balanceLastLine",
314
- "notice": "NPLLIq_notice",
315
- "logDialog": "NPLLIq_logDialog",
316
- "monitorName": "NPLLIq_monitorName",
317
- "balanceBarBadge": "NPLLIq_balanceBarBadge",
318
- "logScroll": "NPLLIq_logScroll",
319
- "settingsDialog": "NPLLIq_settingsDialog",
280
+ "balanceValueError": "NPLLIq_balanceValueError",
281
+ "monitorList": "NPLLIq_monitorList",
320
282
  "noteChip": "NPLLIq_noteChip",
321
- "noteMenuBackdrop": "NPLLIq_noteMenuBackdrop",
322
- "copyBtn": "NPLLIq_copyBtn",
323
- "radioRow": "NPLLIq_radioRow",
324
- "dialogOverlay": "NPLLIq_dialogOverlay",
325
- "checkErrorHint": "NPLLIq_checkErrorHint",
326
- "noteChipOpen": "NPLLIq_noteChipOpen",
327
- "fillOver": "NPLLIq_fillOver",
328
- "balanceSortBtn": "NPLLIq_balanceSortBtn",
329
283
  "rowName": "NPLLIq_rowName",
330
- "settingsBtnActive": "NPLLIq_settingsBtnActive",
331
- "logPagerPages": "NPLLIq_logPagerPages",
332
- "balanceStateError": "NPLLIq_balanceStateError",
333
- "balanceBarLow": "NPLLIq_balanceBarLow",
334
- "logToolbar": "NPLLIq_logToolbar",
335
- "balanceRow": "NPLLIq_balanceRow",
336
- "dialogHint": "NPLLIq_dialogHint",
337
- "noteWinTitle": "NPLLIq_noteWinTitle",
338
- "logPageSizeSelect": "NPLLIq_logPageSizeSelect",
339
- "rowHeader": "NPLLIq_rowHeader",
340
- "versionNew": "NPLLIq_versionNew",
341
- "balanceRowHeader": "NPLLIq_balanceRowHeader",
342
- "logClearDialog": "NPLLIq_logClearDialog",
343
- "dialogBody": "NPLLIq_dialogBody",
344
- "balanceRefreshAll": "NPLLIq_balanceRefreshAll",
345
- "checkUpdatesRow": "NPLLIq_checkUpdatesRow",
346
- "monitorList": "NPLLIq_monitorList",
284
+ "balanceLastLine": "NPLLIq_balanceLastLine",
285
+ "dialogSection": "NPLLIq_dialogSection",
286
+ "balanceWinTitle": "NPLLIq_balanceWinTitle",
287
+ "logClearDate": "NPLLIq_logClearDate",
288
+ "rowDropTarget": "NPLLIq_rowDropTarget",
347
289
  "dialogTabs": "NPLLIq_dialogTabs",
348
- "keyError": "NPLLIq_keyError",
349
- "switch": "NPLLIq_switch",
350
- "upgradeCommand": "NPLLIq_upgradeCommand",
351
- "dialogClose": "NPLLIq_dialogClose",
352
- "logPager": "NPLLIq_logPager",
353
- "noteWinBtn": "NPLLIq_noteWinBtn",
354
- "collapse": "NPLLIq_collapse",
290
+ "rowDrag": "NPLLIq_rowDrag",
291
+ "logDayCol": "NPLLIq_logDayCol",
292
+ "monitorRow": "NPLLIq_monitorRow",
293
+ "keyRow": "NPLLIq_keyRow",
294
+ "title": "NPLLIq_title",
295
+ "fillIdle": "NPLLIq_fillIdle",
296
+ "header": "NPLLIq_header",
297
+ "noteWinBar": "NPLLIq_noteWinBar",
298
+ "balanceRow": "NPLLIq_balanceRow",
299
+ "checkErrorHint": "NPLLIq_checkErrorHint",
300
+ "dialogLabel": "NPLLIq_dialogLabel",
355
301
  "monitorHint": "NPLLIq_monitorHint",
356
- "balanceBarRefresh": "NPLLIq_balanceBarRefresh",
357
- "row": "NPLLIq_row",
358
- "version": "NPLLIq_version",
359
- "dialogTab": "NPLLIq_dialogTab",
360
- "logClearBtn": "NPLLIq_logClearBtn",
361
- "noteWinCollapsed": "NPLLIq_noteWinCollapsed",
362
- "dialogHeader": "NPLLIq_dialogHeader",
363
- "noteNewPlus": "NPLLIq_noteNewPlus",
364
- "controls": "NPLLIq_controls",
365
- "dialogTabActive": "NPLLIq_dialogTabActive",
366
- "headerActions": "NPLLIq_headerActions",
302
+ "collapse": "NPLLIq_collapse",
303
+ "dialogClose": "NPLLIq_dialogClose",
304
+ "keyBadgeOff": "NPLLIq_keyBadgeOff",
305
+ "balanceValueLow": "NPLLIq_balanceValueLow",
306
+ "checkUpdatesRow": "NPLLIq_checkUpdatesRow",
307
+ "balanceToggle": "NPLLIq_balanceToggle",
308
+ "checkBtn": "NPLLIq_checkBtn",
309
+ "fillOver": "NPLLIq_fillOver",
310
+ "balanceBar": "NPLLIq_balanceBar",
311
+ "balanceValueOk": "NPLLIq_balanceValueOk",
312
+ "upgradeCommandRow": "NPLLIq_upgradeCommandRow",
313
+ "upgradeClose": "NPLLIq_upgradeClose",
367
314
  "dialogBtn": "NPLLIq_dialogBtn",
368
- "balanceStateHint": "NPLLIq_balanceStateHint",
369
- "keyBadgeOk": "NPLLIq_keyBadgeOk",
370
- "noteWinBar": "NPLLIq_noteWinBar",
371
- "balanceToggleOpen": "NPLLIq_balanceToggleOpen",
372
- "currentBadge": "NPLLIq_currentBadge",
373
- "copyBtnDone": "NPLLIq_copyBtnDone",
315
+ "logPagerControls": "NPLLIq_logPagerControls",
316
+ "tabLabel": "NPLLIq_tabLabel",
374
317
  "noteWinGripBar": "NPLLIq_noteWinGripBar",
375
- "balanceBar": "NPLLIq_balanceBar",
376
- "rowDropTarget": "NPLLIq_rowDropTarget",
318
+ "noteWinCollapsed": "NPLLIq_noteWinCollapsed",
319
+ "upgradeHint": "NPLLIq_upgradeHint",
320
+ "controls": "NPLLIq_controls",
321
+ "dialog": "NPLLIq_dialog",
377
322
  "upgradeBannerText": "NPLLIq_upgradeBannerText",
378
- "header": "NPLLIq_header",
379
- "balanceValueOk": "NPLLIq_balanceValueOk",
380
323
  "logModelCol": "NPLLIq_logModelCol",
324
+ "balanceRefreshAll": "NPLLIq_balanceRefreshAll",
325
+ "logPagerPages": "NPLLIq_logPagerPages",
326
+ "logClearDialog": "NPLLIq_logClearDialog",
327
+ "panelDim": "NPLLIq_panelDim",
328
+ "body": "NPLLIq_body",
329
+ "settingsDialog": "NPLLIq_settingsDialog",
330
+ "logPagerBtn": "NPLLIq_logPagerBtn",
331
+ "noteWinResize": "NPLLIq_noteWinResize",
332
+ "versionNew": "NPLLIq_versionNew",
333
+ "logDialog": "NPLLIq_logDialog",
334
+ "panel": "NPLLIq_panel",
335
+ "noteNewPlus": "NPLLIq_noteNewPlus",
336
+ "balanceBarRefresh": "NPLLIq_balanceBarRefresh",
337
+ "balanceWin": "NPLLIq_balanceWin",
338
+ "gearBtn": "NPLLIq_gearBtn",
339
+ "logHeader": "NPLLIq_logHeader",
340
+ "keyBadgeOk": "NPLLIq_keyBadgeOk",
381
341
  "logPagerInfo": "NPLLIq_logPagerInfo",
342
+ "input": "NPLLIq_input",
343
+ "keyError": "NPLLIq_keyError",
344
+ "keySaveBtn": "NPLLIq_keySaveBtn",
345
+ "noticeError": "NPLLIq_noticeError",
346
+ "subtitle": "NPLLIq_subtitle",
382
347
  "noteMenu": "NPLLIq_noteMenu",
383
- "noteWin": "NPLLIq_noteWin",
384
- "balanceWinHeader": "NPLLIq_balanceWinHeader",
348
+ "fillWarn": "NPLLIq_fillWarn",
349
+ "noteWinBtn": "NPLLIq_noteWinBtn",
350
+ "logToolbar": "NPLLIq_logToolbar",
351
+ "copyBtn": "NPLLIq_copyBtn",
352
+ "version": "NPLLIq_version",
353
+ "dialogTab": "NPLLIq_dialogTab",
385
354
  "logTable": "NPLLIq_logTable",
355
+ "tab": "NPLLIq_tab",
356
+ "save": "NPLLIq_save",
357
+ "settingsBtn": "NPLLIq_settingsBtn",
358
+ "balanceRowName": "NPLLIq_balanceRowName",
359
+ "noteMenuItem": "NPLLIq_noteMenuItem",
360
+ "dialogHint": "NPLLIq_dialogHint",
386
361
  "noteNew": "NPLLIq_noteNew",
362
+ "currentBadge": "NPLLIq_currentBadge",
363
+ "upgradeCommand": "NPLLIq_upgradeCommand",
364
+ "upgradeCommands": "NPLLIq_upgradeCommands",
365
+ "checkUpdatesLabel": "NPLLIq_checkUpdatesLabel",
366
+ "noteChipOpen": "NPLLIq_noteChipOpen",
367
+ "dialogBody": "NPLLIq_dialogBody",
368
+ "balanceRowRefresh": "NPLLIq_balanceRowRefresh",
369
+ "balanceRowHeader": "NPLLIq_balanceRowHeader",
370
+ "headerActions": "NPLLIq_headerActions",
371
+ "headerText": "NPLLIq_headerText",
372
+ "dialogOverlay": "NPLLIq_dialogOverlay",
387
373
  "resetSelect": "NPLLIq_resetSelect",
374
+ "notice": "NPLLIq_notice",
388
375
  "selectBtn": "NPLLIq_selectBtn",
389
- "dialogLabel": "NPLLIq_dialogLabel",
390
- "upgradeBannerFlash": "NPLLIq_upgradeBannerFlash",
391
- "noteWinResize": "NPLLIq_noteWinResize",
392
- "tabLabel": "NPLLIq_tabLabel",
393
- "gearBtn": "NPLLIq_gearBtn",
394
- "logDayCol": "NPLLIq_logDayCol",
395
- "balanceValueLow": "NPLLIq_balanceValueLow",
396
- "checkBtn": "NPLLIq_checkBtn",
397
- "save": "NPLLIq_save",
398
- "logPagerControls": "NPLLIq_logPagerControls",
376
+ "noteMenuBackdrop": "NPLLIq_noteMenuBackdrop",
377
+ "balanceBarText": "NPLLIq_balanceBarText",
378
+ "panelDimStrong": "NPLLIq_panelDimStrong",
379
+ "logPager": "NPLLIq_logPager",
380
+ "monitorName": "NPLLIq_monitorName",
381
+ "balanceSortBtn": "NPLLIq_balanceSortBtn",
382
+ "balanceBarLow": "NPLLIq_balanceBarLow",
383
+ "dialogHeader": "NPLLIq_dialogHeader",
384
+ "logScroll": "NPLLIq_logScroll",
385
+ "notesBar": "NPLLIq_notesBar",
386
+ "balanceWinBody": "NPLLIq_balanceWinBody",
387
+ "dialogTitle": "NPLLIq_dialogTitle",
388
+ "logUsedCol": "NPLLIq_logUsedCol",
389
+ "logClearBtn": "NPLLIq_logClearBtn",
399
390
  "rowMeta": "NPLLIq_rowMeta",
400
- "keyBadgeOff": "NPLLIq_keyBadgeOff",
391
+ "radioRow": "NPLLIq_radioRow",
392
+ "balanceStateError": "NPLLIq_balanceStateError",
401
393
  "dialogBtnPrimary": "NPLLIq_dialogBtnPrimary",
402
- "panel": "NPLLIq_panel",
403
- "rowDrag": "NPLLIq_rowDrag",
404
- "bar": "NPLLIq_bar",
405
- "panelDim": "NPLLIq_panelDim"
394
+ "copyBtnDone": "NPLLIq_copyBtnDone",
395
+ "settingsBtnActive": "NPLLIq_settingsBtnActive",
396
+ "switch": "NPLLIq_switch",
397
+ "rowHeader": "NPLLIq_rowHeader",
398
+ "balanceRowValue": "NPLLIq_balanceRowValue",
399
+ "balanceStateHint": "NPLLIq_balanceStateHint",
400
+ "dialogTabActive": "NPLLIq_dialogTabActive",
401
+ "noteWinText": "NPLLIq_noteWinText",
402
+ "dialogActions": "NPLLIq_dialogActions",
403
+ "balanceWinHeader": "NPLLIq_balanceWinHeader",
404
+ "noteWinTitleText": "NPLLIq_noteWinTitleText",
405
+ "bar": "NPLLIq_bar"
406
406
  };
407
407
  //#endregion
408
408
  //#region lib/types/client/TokenQuotaPanel.js
@@ -1139,13 +1139,13 @@ window.__ModuleLoader__.load({
1139
1139
  title: t("upgradeAvailableHint"),
1140
1140
  children: [
1141
1141
  "v",
1142
- "0.1.51",
1142
+ "0.1.52",
1143
1143
  " → v",
1144
1144
  upgrade.latestVersion
1145
1145
  ]
1146
1146
  }) : (0, react_jsx_runtime.jsxs)("span", {
1147
1147
  className: TokenQuotaPanel_module_css_default.version,
1148
- children: ["v", "0.1.51"]
1148
+ children: ["v", "0.1.52"]
1149
1149
  })]
1150
1150
  })
1151
1151
  }),
@@ -3005,13 +3005,13 @@ window.__ModuleLoader__.load({
3005
3005
  document.head.appendChild(tag);
3006
3006
  }
3007
3007
  var mic_module_css_default = {
3008
- "micRec": "KCoVpa_micRec",
3009
- "micPulse": "KCoVpa_micPulse",
3010
- "micBtn": "KCoVpa_micBtn",
3011
3008
  "micErr": "KCoVpa_micErr",
3009
+ "micBtn": "KCoVpa_micBtn",
3010
+ "micErrTip": "KCoVpa_micErrTip",
3012
3011
  "micWrap": "KCoVpa_micWrap",
3013
- "micBusy": "KCoVpa_micBusy",
3014
- "micErrTip": "KCoVpa_micErrTip"
3012
+ "micRec": "KCoVpa_micRec",
3013
+ "micPulse": "KCoVpa_micPulse",
3014
+ "micBusy": "KCoVpa_micBusy"
3015
3015
  };
3016
3016
  //#endregion
3017
3017
  //#region lib/types/client/mic.js
@@ -3205,12 +3205,12 @@ window.__ModuleLoader__.load({
3205
3205
  document.head.appendChild(tag);
3206
3206
  }
3207
3207
  var TokenQuotaStash_module_css_default = {
3208
+ "selPopup": "x_tEcG_selPopup",
3209
+ "stashRow": "x_tEcG_stashRow",
3208
3210
  "selDivider": "x_tEcG_selDivider",
3211
+ "selBtn": "x_tEcG_selBtn",
3209
3212
  "stashTip": "x_tEcG_stashTip",
3210
- "stashChip": "x_tEcG_stashChip",
3211
- "stashRow": "x_tEcG_stashRow",
3212
- "selPopup": "x_tEcG_selPopup",
3213
- "selBtn": "x_tEcG_selBtn"
3213
+ "stashChip": "x_tEcG_stashChip"
3214
3214
  };
3215
3215
  //#endregion
3216
3216
  //#region lib/types/client/TokenQuotaStash.js
package/lib/index.js CHANGED
@@ -687,7 +687,7 @@ var TokenQuotaService = class TokenQuotaService extends Service {
687
687
  return this.upgradeCheck;
688
688
  }
689
689
  async doRefreshUpgrade() {
690
- const current = "0.1.51";
690
+ const current = "0.1.52";
691
691
  let latest;
692
692
  try {
693
693
  const response = await fetch(REGISTRY_LATEST_URL, {
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.51",
4
+ "version": "0.1.52",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -39,6 +39,9 @@
39
39
  "@deepseek-ai/dsh-api-remotes"
40
40
  ],
41
41
  "platform": "web"
42
+ },
43
+ "bundle": {
44
+ "patch": "./cordis.patch.yml"
42
45
  }
43
46
  },
44
47
  "scripts": {
@@ -50,6 +53,7 @@
50
53
  "lib/index.js",
51
54
  "lib/invariant.js",
52
55
  "lib/client.js",
56
+ "cordis.patch.yml",
53
57
  "lib/types/**/*.js",
54
58
  "lib/types/**/*.d.ts"
55
59
  ],