@sanctuary-framework/mcp-server 0.4.1 → 0.4.2

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/dist/index.js CHANGED
@@ -3709,6 +3709,10 @@ function parseScalar(value) {
3709
3709
  return value.replace(/^["']|["']$/g, "");
3710
3710
  }
3711
3711
  function validatePolicy(raw) {
3712
+ const userTier3 = raw.tier3_always_allow ?? [];
3713
+ const mergedTier3 = [
3714
+ .../* @__PURE__ */ new Set([...userTier3, ...DEFAULT_POLICY.tier3_always_allow])
3715
+ ];
3712
3716
  return {
3713
3717
  version: raw.version ?? 1,
3714
3718
  tier1_always_approve: raw.tier1_always_approve ?? DEFAULT_POLICY.tier1_always_approve,
@@ -3716,7 +3720,7 @@ function validatePolicy(raw) {
3716
3720
  ...DEFAULT_TIER2,
3717
3721
  ...raw.tier2_anomaly ?? {}
3718
3722
  },
3719
- tier3_always_allow: raw.tier3_always_allow ?? DEFAULT_POLICY.tier3_always_allow,
3723
+ tier3_always_allow: mergedTier3,
3720
3724
  approval_channel: (() => {
3721
3725
  const merged = {
3722
3726
  ...DEFAULT_CHANNEL,