From ee3faab415f1ce72ce1d768ba679680f8d9d5410 Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Thu, 20 Feb 2025 13:09:43 +0200 Subject: [PATCH] feat(update default config path): --- .gitignore | 1 + agentic_security/lib.py | 9 ++++++++- agentic_security/static/partials/head.html | 11 +++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c93f7df..8524ead 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ garak_rest.json inv/ scripts/ docx/ +agentic_security.toml diff --git a/agentic_security/lib.py b/agentic_security/lib.py index 3f9536d..154641c 100644 --- a/agentic_security/lib.py +++ b/agentic_security/lib.py @@ -25,7 +25,14 @@ BLUE = colorama.Fore.BLUE class CfgMixin: config = {} - default_path = "agesec.toml" + default_path = "agentic_security.toml" + + def get_or_create_config(self) -> bool: + if not self.has_local_config(): + self.generate_default_cfg() + return False + self.load_config(self.default_path) + return True def has_local_config(self): try: diff --git a/agentic_security/static/partials/head.html b/agentic_security/static/partials/head.html index e486d1f..36242bc 100644 --- a/agentic_security/static/partials/head.html +++ b/agentic_security/static/partials/head.html @@ -19,6 +19,17 @@ technopollas: ['Technopollas', 'sans-serif'], }, colors: { + t1: { + bg: '#0D0D0D', // Jet Black + card: '#1A1A1A', // Dark Carbon Fiber + text: '#FFFFFF', + accent: { + green: '#E0A3B6', // Frozen Berry + red: '#1C3F74', // Neptune Blue + orange: '#A5A5A5', // Dolomite Silver + yellow: '#2E4053', // Jet Black + }, + }, dark: { bg: '#121212', card: '#1E1E1E',