feat: enhance exclusions.json with new suggestions and refactor roles.js for dynamic path resolution

This commit is contained in:
2026-05-12 09:57:33 +00:00
parent 2aba414d36
commit c751a53d43
4 changed files with 92 additions and 7 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import yaml from 'js-yaml';
const ROLES_DIR = '/action/app/prompts/roles';
const ROLES_DIR = path.join(fileURLToPath(import.meta.url), '..', 'prompts', 'roles');
export function loadRoles() {
return fs.readdirSync(ROLES_DIR)