@theokit/sdk 4.48.0 → 4.49.0

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.49.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d0d62bd: Add `auditEnvReachability`: report config keys with no environment path and no documented opt-out, and opt-outs that no longer exempt anything.
8
+
3
9
  ## 4.48.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -661,6 +661,17 @@ var SkillReadTool = class {
661
661
  }
662
662
  };
663
663
 
664
+ // src/env-reachability.ts
665
+ function auditEnvReachability(input) {
666
+ const reachable = new Set(input.reachable);
667
+ const exempt = new Set(input.optOuts.map((o) => o.key));
668
+ const declared = new Set(input.keys);
669
+ return {
670
+ unreachable: input.keys.filter((k) => !reachable.has(k) && !exempt.has(k)),
671
+ staleOptOuts: input.optOuts.filter((o) => !declared.has(o.key) || reachable.has(o.key)).map((o) => o.key)
672
+ };
673
+ }
674
+
664
675
  // src/event-bus.ts
665
676
  var EventBus = class {
666
677
  handlers = /* @__PURE__ */ new Map();
@@ -2371,6 +2382,7 @@ exports.UngatedCapabilityError = UngatedCapabilityError;
2371
2382
  exports.UnicodeNormalizer = UnicodeNormalizer;
2372
2383
  exports.applyMode = applyMode;
2373
2384
  exports.applySecurityFloor = applySecurityFloor;
2385
+ exports.auditEnvReachability = auditEnvReachability;
2374
2386
  exports.chargeAndCheckThresholds = chargeAndCheckThresholds;
2375
2387
  exports.createCounterBudgetTracker = createCounterBudgetTracker;
2376
2388
  exports.estimateTokens = estimateTokens;