@goodandready/dsh-subscriptions 0.4.12 → 0.4.13

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 +10 -0
  2. package/package.json +1 -1
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.13",
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",