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