INNER CODE UNIT · TypeScript

renderPolicySection

HoangNguyen0403/agent-skills-standard · mcp/src/tools/index.ts:121

function renderPolicySection(
  files: string[],
  policy: PolicyView,
): string | null {
  if (!policy.loaded) {
    if (policy.problem) {
      return `Project policy not loaded: ${policy.problem}`;
    }
    return null;
  }

  const pathMatches: Array<{
    file: string;
    id: string;
    action: string;
    reason: string;
  }> = [];
  for (const file of files) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…