@ravshansbox/pi-quota 0.10.8 → 0.10.9

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/index.ts +5 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -294,7 +294,11 @@ export default function (pi: ExtensionAPI) {
294
294
  child.on('error', (error: unknown) => {
295
295
  void logError(`Reset ping failed for ${provider}:`, error);
296
296
  });
297
- if (provider === 'anthropic') child.on('exit', () => void runCycle(true));
297
+ if (provider === 'anthropic') {
298
+ child.on('exit', () => {
299
+ void (cycle ?? Promise.resolve()).then(() => (ctxRef ? runCycle(true) : undefined));
300
+ });
301
+ }
298
302
 
299
303
  child.unref();
300
304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ravshansbox/pi-quota",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "description": "Anthropic and OpenAI Codex quota status extension for pi",
5
5
  "license": "MIT",
6
6
  "type": "module",