secuprompt
Version:
Protect your AI from Prompt Injection
16 lines (15 loc) • 743 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.modality_map = exports.unicode_ranges = exports.rag_config = exports.semantic_clusters = exports.signature_patterns = void 0;
const fs_1 = require("fs");
const path_1 = require("path");
const data_root = (0, path_1.resolve)(__dirname, "..", "data");
const load_json = (file) => {
const full = (0, path_1.resolve)(data_root, file);
return JSON.parse((0, fs_1.readFileSync)(full, "utf8"));
};
exports.signature_patterns = load_json("patterns.json");
exports.semantic_clusters = load_json("threats.json");
exports.rag_config = load_json("rag.json");
exports.unicode_ranges = load_json("unicode.json");
exports.modality_map = load_json("modality.json");