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