feat(policy): add source tracking to policy rules (#16670)

This commit is contained in:
Allen Hutchison
2026-01-15 08:06:07 -08:00
committed by GitHub
parent fa3981990c
commit f909c9ef90
6 changed files with 25 additions and 1 deletions
+1
View File
@@ -346,6 +346,7 @@ export async function loadPoliciesFromToml(
priority: transformPriority(rule.priority, tier),
modes: rule.modes,
allowRedirection: rule.allow_redirection,
source: `${tierName.charAt(0).toUpperCase() + tierName.slice(1)}: ${file}`,
};
// Compile regex pattern