@jxgame2020/dsh-token-quota 0.1.34 → 0.1.35

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
@@ -105,7 +105,7 @@ window.__ModuleLoader__.load({
105
105
  d.musicOnlyCurrentSession = only;
106
106
  },
107
107
  setUpgrade: (d, upgrade) => {
108
- const normalized = upgrade !== null && upgrade.latestVersion !== "" && upgrade.latestVersion !== "0.1.34" ? upgrade : null;
108
+ const normalized = upgrade !== null && upgrade.latestVersion !== "" && upgrade.latestVersion !== "0.1.35" ? upgrade : null;
109
109
  if (d.upgrade === null || d.upgrade.latestVersion !== normalized?.latestVersion) d.upgradeDismissed = false;
110
110
  d.upgrade = normalized;
111
111
  },
@@ -235,116 +235,116 @@ window.__ModuleLoader__.load({
235
235
  document.head.appendChild(tag);
236
236
  }
237
237
  var TokenQuotaPanel_module_css_default = {
238
- "noteNew": "NPLLIq_noteNew",
239
- "logPagerInfo": "NPLLIq_logPagerInfo",
240
- "copyBtn": "NPLLIq_copyBtn",
241
- "headerText": "NPLLIq_headerText",
242
- "settingsDialog": "NPLLIq_settingsDialog",
243
- "headerActions": "NPLLIq_headerActions",
244
- "panel": "NPLLIq_panel",
245
- "noteWinResize": "NPLLIq_noteWinResize",
246
- "tab": "NPLLIq_tab",
247
- "upgradeBanner": "NPLLIq_upgradeBanner",
248
- "checkUpdatesLabel": "NPLLIq_checkUpdatesLabel",
249
- "resetSelect": "NPLLIq_resetSelect",
250
- "logScroll": "NPLLIq_logScroll",
251
- "rowDragging": "NPLLIq_rowDragging",
252
- "monitorList": "NPLLIq_monitorList",
253
- "noteWinBtn": "NPLLIq_noteWinBtn",
254
- "noteWinTitle": "NPLLIq_noteWinTitle",
255
- "collapse": "NPLLIq_collapse",
256
- "noteNewPlus": "NPLLIq_noteNewPlus",
257
- "selectBtn": "NPLLIq_selectBtn",
238
+ "logPager": "NPLLIq_logPager",
239
+ "noteWinTitleText": "NPLLIq_noteWinTitleText",
240
+ "controls": "NPLLIq_controls",
258
241
  "logPagerBtn": "NPLLIq_logPagerBtn",
242
+ "logPagerPages": "NPLLIq_logPagerPages",
243
+ "selectBtn": "NPLLIq_selectBtn",
244
+ "logUsedCol": "NPLLIq_logUsedCol",
259
245
  "logPageSizeSelect": "NPLLIq_logPageSizeSelect",
246
+ "fillWarn": "NPLLIq_fillWarn",
260
247
  "dialogOverlay": "NPLLIq_dialogOverlay",
261
248
  "dialogBody": "NPLLIq_dialogBody",
262
- "radioRow": "NPLLIq_radioRow",
263
- "checkErrorHint": "NPLLIq_checkErrorHint",
264
- "dialogTab": "NPLLIq_dialogTab",
265
- "monitorHint": "NPLLIq_monitorHint",
266
- "row": "NPLLIq_row",
267
- "dialogActions": "NPLLIq_dialogActions",
249
+ "switch": "NPLLIq_switch",
250
+ "fillOver": "NPLLIq_fillOver",
268
251
  "upgradeClose": "NPLLIq_upgradeClose",
269
- "panelDimStrong": "NPLLIq_panelDimStrong",
270
- "logClearDialog": "NPLLIq_logClearDialog",
252
+ "dialogBtn": "NPLLIq_dialogBtn",
253
+ "notice": "NPLLIq_notice",
254
+ "logClearDate": "NPLLIq_logClearDate",
255
+ "copyBtn": "NPLLIq_copyBtn",
256
+ "rowHeader": "NPLLIq_rowHeader",
271
257
  "logClearBtn": "NPLLIq_logClearBtn",
272
- "logToolbar": "NPLLIq_logToolbar",
273
- "controls": "NPLLIq_controls",
274
- "upgradeHint": "NPLLIq_upgradeHint",
258
+ "upgradeCommandRow": "NPLLIq_upgradeCommandRow",
275
259
  "upgradeCommands": "NPLLIq_upgradeCommands",
276
- "logClearDate": "NPLLIq_logClearDate",
277
- "panelDim": "NPLLIq_panelDim",
278
- "gearBtn": "NPLLIq_gearBtn",
260
+ "monitorHint": "NPLLIq_monitorHint",
261
+ "noteNew": "NPLLIq_noteNew",
262
+ "checkUpdatesLabel": "NPLLIq_checkUpdatesLabel",
263
+ "logClearDialog": "NPLLIq_logClearDialog",
264
+ "logPagerInfo": "NPLLIq_logPagerInfo",
265
+ "headerActions": "NPLLIq_headerActions",
266
+ "rowDropTarget": "NPLLIq_rowDropTarget",
267
+ "subtitle": "NPLLIq_subtitle",
268
+ "tab": "NPLLIq_tab",
279
269
  "fillIdle": "NPLLIq_fillIdle",
280
- "upgradeBannerText": "NPLLIq_upgradeBannerText",
281
- "monitorName": "NPLLIq_monitorName",
282
- "logHeader": "NPLLIq_logHeader",
283
- "notesBar": "NPLLIq_notesBar",
284
- "fillOver": "NPLLIq_fillOver",
285
- "dialogSection": "NPLLIq_dialogSection",
286
- "logDialog": "NPLLIq_logDialog",
287
- "version": "NPLLIq_version",
288
- "logDayCol": "NPLLIq_logDayCol",
270
+ "noteWinTitle": "NPLLIq_noteWinTitle",
271
+ "rowDragging": "NPLLIq_rowDragging",
272
+ "currentBadge": "NPLLIq_currentBadge",
273
+ "noteNewPlus": "NPLLIq_noteNewPlus",
274
+ "panel": "NPLLIq_panel",
275
+ "header": "NPLLIq_header",
276
+ "panelDim": "NPLLIq_panelDim",
277
+ "noteWin": "NPLLIq_noteWin",
278
+ "noteWinBar": "NPLLIq_noteWinBar",
279
+ "rowMeta": "NPLLIq_rowMeta",
280
+ "copyBtnDone": "NPLLIq_copyBtnDone",
281
+ "rowName": "NPLLIq_rowName",
282
+ "settingsBtnActive": "NPLLIq_settingsBtnActive",
283
+ "dialog": "NPLLIq_dialog",
284
+ "settingsDialog": "NPLLIq_settingsDialog",
285
+ "dialogLabel": "NPLLIq_dialogLabel",
289
286
  "noteMenu": "NPLLIq_noteMenu",
287
+ "noteChipOpen": "NPLLIq_noteChipOpen",
290
288
  "monitorRow": "NPLLIq_monitorRow",
291
- "noteWinCollapsed": "NPLLIq_noteWinCollapsed",
292
- "logPager": "NPLLIq_logPager",
289
+ "collapse": "NPLLIq_collapse",
290
+ "monitorName": "NPLLIq_monitorName",
291
+ "row": "NPLLIq_row",
292
+ "dialogTitle": "NPLLIq_dialogTitle",
293
+ "dialogBtnPrimary": "NPLLIq_dialogBtnPrimary",
294
+ "noteWinResize": "NPLLIq_noteWinResize",
295
+ "resetSelect": "NPLLIq_resetSelect",
296
+ "logTable": "NPLLIq_logTable",
297
+ "settingsBtn": "NPLLIq_settingsBtn",
298
+ "versionNew": "NPLLIq_versionNew",
299
+ "bar": "NPLLIq_bar",
293
300
  "input": "NPLLIq_input",
294
- "dialogLabel": "NPLLIq_dialogLabel",
295
- "switch": "NPLLIq_switch",
301
+ "gearBtn": "NPLLIq_gearBtn",
302
+ "save": "NPLLIq_save",
296
303
  "upgradeBannerFlash": "NPLLIq_upgradeBannerFlash",
304
+ "upgradeCommand": "NPLLIq_upgradeCommand",
305
+ "rowDrag": "NPLLIq_rowDrag",
306
+ "headerText": "NPLLIq_headerText",
307
+ "checkUpdatesRow": "NPLLIq_checkUpdatesRow",
308
+ "checkBtn": "NPLLIq_checkBtn",
309
+ "checkErrorHint": "NPLLIq_checkErrorHint",
310
+ "noteWinGripBar": "NPLLIq_noteWinGripBar",
311
+ "noteWinBtn": "NPLLIq_noteWinBtn",
312
+ "dialogTab": "NPLLIq_dialogTab",
313
+ "upgradeBanner": "NPLLIq_upgradeBanner",
297
314
  "dialogTabActive": "NPLLIq_dialogTabActive",
298
- "dialogBtnPrimary": "NPLLIq_dialogBtnPrimary",
299
- "noticeError": "NPLLIq_noticeError",
300
- "versionNew": "NPLLIq_versionNew",
315
+ "dialogHeader": "NPLLIq_dialogHeader",
301
316
  "resetRow": "NPLLIq_resetRow",
317
+ "upgradeBannerText": "NPLLIq_upgradeBannerText",
318
+ "logDayCol": "NPLLIq_logDayCol",
319
+ "logHeader": "NPLLIq_logHeader",
320
+ "noteMenuBackdrop": "NPLLIq_noteMenuBackdrop",
321
+ "notesBar": "NPLLIq_notesBar",
322
+ "dialogHint": "NPLLIq_dialogHint",
323
+ "monitorList": "NPLLIq_monitorList",
324
+ "logModelCol": "NPLLIq_logModelCol",
325
+ "dialogSection": "NPLLIq_dialogSection",
326
+ "logScroll": "NPLLIq_logScroll",
302
327
  "logPagerControls": "NPLLIq_logPagerControls",
303
- "save": "NPLLIq_save",
304
- "rowHeader": "NPLLIq_rowHeader",
305
- "tabLabel": "NPLLIq_tabLabel",
306
- "dialogTitle": "NPLLIq_dialogTitle",
307
- "header": "NPLLIq_header",
308
- "bar": "NPLLIq_bar",
309
- "noteWinGripBar": "NPLLIq_noteWinGripBar",
310
- "upgradeCommand": "NPLLIq_upgradeCommand",
328
+ "panelDimStrong": "NPLLIq_panelDimStrong",
329
+ "noticeError": "NPLLIq_noticeError",
330
+ "title": "NPLLIq_title",
311
331
  "body": "NPLLIq_body",
312
- "dialog": "NPLLIq_dialog",
313
- "logTable": "NPLLIq_logTable",
332
+ "dialogTabs": "NPLLIq_dialogTabs",
333
+ "tabLabel": "NPLLIq_tabLabel",
334
+ "radioRow": "NPLLIq_radioRow",
335
+ "dialogActions": "NPLLIq_dialogActions",
336
+ "version": "NPLLIq_version",
337
+ "logDialog": "NPLLIq_logDialog",
338
+ "logToolbar": "NPLLIq_logToolbar",
314
339
  "fullNotice": "NPLLIq_fullNotice",
315
- "upgradeCommandRow": "NPLLIq_upgradeCommandRow",
316
- "noteWin": "NPLLIq_noteWin",
317
- "noteChipOpen": "NPLLIq_noteChipOpen",
318
- "rowDrag": "NPLLIq_rowDrag",
319
- "noteMenuBackdrop": "NPLLIq_noteMenuBackdrop",
320
- "fillWarn": "NPLLIq_fillWarn",
321
- "noteMenuItem": "NPLLIq_noteMenuItem",
322
- "checkUpdatesRow": "NPLLIq_checkUpdatesRow",
340
+ "upgradeHint": "NPLLIq_upgradeHint",
323
341
  "logSearch": "NPLLIq_logSearch",
324
- "title": "NPLLIq_title",
325
- "noteWinText": "NPLLIq_noteWinText",
326
- "rowName": "NPLLIq_rowName",
327
- "dialogHeader": "NPLLIq_dialogHeader",
328
- "checkBtn": "NPLLIq_checkBtn",
329
- "currentBadge": "NPLLIq_currentBadge",
330
342
  "noteChip": "NPLLIq_noteChip",
331
- "subtitle": "NPLLIq_subtitle",
332
- "noteWinTitleText": "NPLLIq_noteWinTitleText",
333
- "settingsBtnActive": "NPLLIq_settingsBtnActive",
334
- "copyBtnDone": "NPLLIq_copyBtnDone",
335
- "rowDropTarget": "NPLLIq_rowDropTarget",
336
- "noteWinBar": "NPLLIq_noteWinBar",
337
- "rowMeta": "NPLLIq_rowMeta",
338
- "settingsBtn": "NPLLIq_settingsBtn",
339
- "dialogTabs": "NPLLIq_dialogTabs",
340
- "dialogBtn": "NPLLIq_dialogBtn",
341
- "logUsedCol": "NPLLIq_logUsedCol",
343
+ "noteMenuItem": "NPLLIq_noteMenuItem",
344
+ "noteWinText": "NPLLIq_noteWinText",
342
345
  "tabIcon": "NPLLIq_tabIcon",
343
- "dialogClose": "NPLLIq_dialogClose",
344
- "logModelCol": "NPLLIq_logModelCol",
345
- "notice": "NPLLIq_notice",
346
- "dialogHint": "NPLLIq_dialogHint",
347
- "logPagerPages": "NPLLIq_logPagerPages"
346
+ "noteWinCollapsed": "NPLLIq_noteWinCollapsed",
347
+ "dialogClose": "NPLLIq_dialogClose"
348
348
  };
349
349
  //#endregion
350
350
  //#region lib/types/client/TokenQuotaPanel.js
@@ -822,13 +822,13 @@ window.__ModuleLoader__.load({
822
822
  title: t("upgradeAvailableHint"),
823
823
  children: [
824
824
  "v",
825
- "0.1.34",
825
+ "0.1.35",
826
826
  " → v",
827
827
  upgrade.latestVersion
828
828
  ]
829
829
  }) : (0, react_jsx_runtime.jsxs)("span", {
830
830
  className: TokenQuotaPanel_module_css_default.version,
831
- children: ["v", "0.1.34"]
831
+ children: ["v", "0.1.35"]
832
832
  })]
833
833
  }), (0, react_jsx_runtime.jsxs)("div", {
834
834
  className: TokenQuotaPanel_module_css_default.notesBar,
@@ -1589,8 +1589,9 @@ window.__ModuleLoader__.load({
1589
1589
  onPointerDown: (event) => {
1590
1590
  beginNoteBarDrag(event, note.id);
1591
1591
  },
1592
- onDoubleClick: () => {
1593
- patchNote(note.id, { collapsed: false });
1592
+ onDoubleClick: (event) => {
1593
+ if (event.target.closest("button, input") !== null) return;
1594
+ patchNote(note.id, { collapsed: !note.collapsed });
1594
1595
  },
1595
1596
  children: [
1596
1597
  (0, react_jsx_runtime.jsx)("span", {
package/lib/index.js CHANGED
@@ -544,7 +544,7 @@ var TokenQuotaService = class TokenQuotaService extends Service {
544
544
  return this.upgradeCheck;
545
545
  }
546
546
  async doRefreshUpgrade() {
547
- const current = "0.1.34";
547
+ const current = "0.1.35";
548
548
  let latest;
549
549
  try {
550
550
  const response = await fetch(REGISTRY_LATEST_URL, {
@@ -577,7 +577,14 @@ export function TokenQuotaPanel({ t, load, setLimit, selectModel, setMonitored,
577
577
  width: `${note.width}px`,
578
578
  zIndex: activeNote === note.id ? 62 : 60,
579
579
  ...(note.collapsed ? {} : { height: `${note.height}px` }),
580
- }, onPointerDown: () => { setActiveNote(note.id); }, children: [_jsxs("div", { className: css.noteWinBar, onPointerDown: (event) => { beginNoteBarDrag(event, note.id); }, onDoubleClick: () => { patchNote(note.id, { collapsed: false }); }, children: [_jsx("span", { className: css.noteWinGripBar, "aria-hidden": "true", children: "\u283F" }), editingTitle === note.id
580
+ }, onPointerDown: () => { setActiveNote(note.id); }, children: [_jsxs("div", { className: css.noteWinBar, onPointerDown: (event) => { beginNoteBarDrag(event, note.id); }, onDoubleClick: (event) => {
581
+ // Toggle: collapsed strips expand, open windows fold away. The
582
+ // title input (word selection) and the bar buttons handle their
583
+ // own double-clicks, so they are left alone.
584
+ if (event.target.closest('button, input') !== null)
585
+ return;
586
+ patchNote(note.id, { collapsed: !note.collapsed });
587
+ }, children: [_jsx("span", { className: css.noteWinGripBar, "aria-hidden": "true", children: "\u283F" }), editingTitle === note.id
581
588
  ? (_jsxs(_Fragment, { children: [_jsx("input", { className: css.noteWinTitle, value: titleDraft, autoFocus: true, placeholder: t('noteUntitled'), onChange: (event) => { setTitleDraft(event.target.value); }, onKeyDown: (event) => {
582
589
  if (event.key === 'Enter')
583
590
  commitTitle(note.id);
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.34",
4
+ "version": "0.1.35",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },