@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 +6 -0
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +58 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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;
|