@goodandready/dsh-key-rotation 0.7.12 → 0.7.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 +4 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -374,6 +374,10 @@ export function apply(ctx, config = {}) {
374
374
  const maxCooldownMs = cfg.maxCooldownMs ?? undefined;
375
375
  const notifyWebhook = cfg.notifyWebhook ?? '';
376
376
  const notifyThreshold = cfg.notifyThreshold ?? 3;
377
+ const backupDir = cfg.backupDir ?? '';
378
+ const backupIntervalMs = cfg.backupIntervalMs ?? 86400000;
379
+ const backupKeep = cfg.backupKeep ?? 7;
380
+ const rotationScheduleDays = cfg.rotationScheduleDays ?? 0;
377
381
 
378
382
  // ref -> pool (every key env of every configured provider)
379
383
  const poolByRef = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-key-rotation",
3
- "version": "0.7.12",
3
+ "version": "0.7.13",
4
4
  "description": "Per-provider API key rotation for DeepSeek Harness: a key pool per provider, auto-created clone routes, and switching to the next key on quota/rate-limit errors. Includes a Settings section (Key Rotation) to edit the key pools, cooldown and switch codes.",
5
5
  "keywords": [
6
6
  "deepseek-harness",