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