@goodandready/dsh-key-rotation 0.8.58 → 0.8.59

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.59 - 2026-10-14
4
+
5
+ ### Refactored & Cleaned
6
+ - **Legacy Settings Registration Removed (#482)**:
7
+ - Deleted dead legacy `settings.register` branch in `lib/index.js`, fixing static configuration liveness to use standard `createConfigReader`.
8
+ - **Dead Subscriptions & Settings Fallbacks Removed (#482)**:
9
+ - Removed dead `ctx.on('config')` subscription in `lib/config-compat.js`.
10
+ - Removed unreachable legacy `settings.get` fallback in `createProviderProfilesReader` in favor of standard `settings.describe`.
11
+ - **Test Harness Synchronization (#482)**:
12
+ - Updated test fixtures for modern descriptor caching and multi-listener lifecycle events.
13
+
3
14
  ## 0.8.58 - 2026-10-13
4
15
 
5
16
  ### Fixed
@@ -10,11 +10,9 @@ export function createConfigReader(config, ctx) {
10
10
  if (typeof ctx.effect === 'function') {
11
11
  ctx.effect(() => ctx.on('settings/document-updated', markDirty));
12
12
  ctx.effect(() => ctx.on('loader/volatile-update', markDirty));
13
- ctx.effect(() => ctx.on('config', markDirty));
14
13
  } else {
15
14
  ctx.on('settings/document-updated', markDirty);
16
15
  ctx.on('loader/volatile-update', markDirty);
17
- ctx.on('config', markDirty);
18
16
  }
19
17
  }
20
18
 
@@ -68,23 +66,13 @@ export function createProviderProfilesReader(ctx, namespace) {
68
66
  return held;
69
67
  }
70
68
  const settings = ctx?.get?.('settings');
71
- if (!settings) return null;
72
- if (typeof settings.get === 'function') {
73
- try {
74
- held = settings.get(namespace)?.providers ?? null;
75
- dirty = false;
76
- } catch (_) {
77
- held = null;
78
- dirty = false;
79
- }
80
- } else {
81
- try {
82
- held = settings.describe({ redactSecrets: true }).find(row => row.ns === namespace)?.value?.providers ?? null;
83
- dirty = false;
84
- } catch (_) {
85
- held = null;
86
- dirty = false;
87
- }
69
+ if (!settings || typeof settings.describe !== 'function') return null;
70
+ try {
71
+ held = settings.describe({ redactSecrets: true }).find(row => row.ns === namespace)?.value?.providers ?? null;
72
+ dirty = false;
73
+ } catch (_) {
74
+ held = null;
75
+ dirty = false;
88
76
  }
89
77
  return held;
90
78
  };
package/lib/index.js CHANGED
@@ -178,7 +178,7 @@ function registerConfigBridge(ctx, getCloneIds) {
178
178
  export function apply(ctx, config = {}) {
179
179
  const logger = getLogger(ctx);
180
180
  const readEntryConfig = createConfigReader(config, ctx);
181
- let getConfig = readEntryConfig;
181
+ const getConfig = readEntryConfig;
182
182
  const verboseLoggingOn = () => {
183
183
  try { return Boolean(getConfig()?.verboseLogging); } catch (_) { return false; }
184
184
  };
@@ -501,15 +501,4 @@ export function apply(ctx, config = {}) {
501
501
  return next();
502
502
  }), 'dsh-key-rotation: agent/request-error');
503
503
 
504
- ctx.inject(['settings'], (sctx) => {
505
- const settingsSvc = sctx.get('settings');
506
- // Modern SettingsForms already owns this Loader entry's volatile Config.
507
- // Legacy SettingsProvider instead needs a plain namespace registration.
508
- if (typeof settingsSvc?.register !== 'function') return;
509
- const scope = settingsSvc.register(NS, SettingsSchema, { base: readEntryConfig() });
510
- getConfig = () => scope.get() ?? readEntryConfig();
511
- if (typeof sctx?.effect === 'function') {
512
- sctx.effect(() => () => { getConfig = readEntryConfig; });
513
- }
514
- });
515
504
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-key-rotation",
3
- "version": "0.8.58",
3
+ "version": "0.8.59",
4
4
  "packageManager": "pnpm@10.33.2",
5
5
  "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.",
6
6
  "keywords": [