@goodandready/dsh-subscriptions 0.4.12 → 0.4.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
@@ -49,7 +49,7 @@ window.__ModuleLoader__.load({
49
49
  '.dsub-chipActiveWarn{color:var(--dsw-alias-state-warning-primary);border-color:currentColor}' +
50
50
  '.dsub-chipActiveDanger{color:var(--dsw-alias-state-error-primary);border-color:currentColor}' +
51
51
  '.dsub-chipActiveOk{color:var(--dsw-alias-state-success-primary);border-color:currentColor}' +
52
- '.dsub-chipActiveBar{height:4px;width:48px;background:var(--dsw-alias-bg-layer-1);border-radius:2px;flex:none;overflow:hidden}' +
52
+ '.dsub-chipActiveBar{height:3px;width:24px;background:var(--dsw-alias-bg-layer-1);border-radius:2px;flex:none;overflow:hidden}' +
53
53
  '.dsub-chipActiveFill{height:100%;border-radius:2px;background:currentColor}' +
54
54
 
55
55
  '.dsub-link{background:none;border:none;color:var(--dsw-alias-label-secondary);cursor:pointer;font-size:12px;padding:0}' +
@@ -680,10 +680,10 @@ function PluginCard(props) {
680
680
  const u = maxPct >= 0 ? maxPct : null
681
681
  let acls = 'dsub-chipActive'
682
682
  if (u != null) acls += u >= 100 ? ' dsub-chipActiveDanger' : (u >= 80 ? ' dsub-chipActiveDanger' : (u >= 50 ? ' dsub-chipActiveWarn' : ' dsub-chipActiveOk'))
683
- const prov = t('provider' + a.provider.charAt(0).toUpperCase() + a.provider.slice(1)) || a.provider
684
- const idx = a.index != null ? (' #' + a.index) : ''
683
+ const idx = a.index != null ? ('#' + a.index) : ''
685
684
  const plan = a.plan ? (' ' + a.plan) : ''
686
- const label = prov + idx + plan
685
+ // #77: без provider-префикса
686
+ const label = idx + plan
687
687
  // windows: "5h 12% 7d 8%"
688
688
  const winLabels = wins.map((w) => (w.label || w.id) + ' ' + Math.round(w.usedPercent) + '%').join(' ')
689
689
  return React.createElement('span', {
package/lib/index.js CHANGED
@@ -380,6 +380,16 @@ export function apply(ctx, config) {
380
380
 
381
381
  ctx.effect(() => {
382
382
  syncAdapter().catch(() => { /* first paint */ })
383
+ // #75: eager refresh usage на старте, чтобы windows (5h/7d) появились в blob сразу
384
+ // и активная подписка в чипе сразу показывала 5h/7d/..., а не ждала probeInterval.
385
+ const eager = async () => {
386
+ try {
387
+ for (const slot of normalizeSlots(live().slots)) {
388
+ store.refreshUsage(slot.provider).catch(() => {})
389
+ }
390
+ } catch {}
391
+ }
392
+ eager()
383
393
  return () => {
384
394
  if (handle) {
385
395
  try { handle() } catch { /* ignore */ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-subscriptions",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "Use ChatGPT Codex, Claude, Grok, and Antigravity subscriptions as DeepSeek Harness LLM providers via OAuth.",
5
5
  "license": "MIT",
6
6
  "type": "module",