diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4881a44..fcfd64a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - name: Run ruff format check run: uv run ruff format --check main.py src/ tests/ scripts/ - name: Biome check - run: npx @biomejs/biome check src/presentation/static/ + run: npx -y @biomejs/biome@2.5.1 check src/presentation/static/ typecheck: runs-on: ubuntu-latest diff --git a/AskRag/test_rag_ask.py b/AskRag/test_rag_ask.py index 8ac94cd..e18e183 100755 --- a/AskRag/test_rag_ask.py +++ b/AskRag/test_rag_ask.py @@ -200,7 +200,7 @@ def _build_test_app(): """Build a minimal FastAPI app with only the search endpoint.""" from fastapi import FastAPI, HTTPException - app = FastAPI(title="SigmaHQ RAG — test") + app = FastAPI(title="SigmaForge — test") @app.post("/search") async def search(request: _SearchRequest) -> dict: diff --git a/README.md b/README.md index be20d5f..7507b60 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SigmaHQ RAG +# SigmaForge A local RAG system for Sigma detection rules. diff --git a/main.py b/main.py index 9edf9d8..2cea3a8 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,4 @@ -"""SigmaHQ Rag - Application entry point.""" +"""SigmaForge - Application entry point.""" import asyncio import sys diff --git a/pyproject.toml b/pyproject.toml index 657a966..b2bd3fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "sigmahqrag" +name = "sigmaforge" version = "0.1.0" description = "Local RAG system for Sigma rules" requires-python = ">=3.12" diff --git a/src/__init__.py b/src/__init__.py index ab70a01..a65fdc7 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,3 +1,3 @@ -"""SigmaHQ RAG - Local RAG system for Sigma rules.""" +"""SigmaForge - Local RAG system for Sigma rules.""" __version__ = "0.1.0" diff --git a/src/api/routes/page_admin.py b/src/api/routes/page_admin.py index 2b2a658..a64985f 100644 --- a/src/api/routes/page_admin.py +++ b/src/api/routes/page_admin.py @@ -21,10 +21,12 @@ async def config_page(request: Request): """Serve the unified config dashboard page.""" cfg = get_config().to_dict() + # Escape "" so embedded JSON cannot break out of the + diff --git a/src/presentation/templates/config/config.html.j2 b/src/presentation/templates/config/config.html.j2 index f84595b..4349bc7 100644 --- a/src/presentation/templates/config/config.html.j2 +++ b/src/presentation/templates/config/config.html.j2 @@ -1,7 +1,7 @@ {# Config Dashboard — sections with side-by-side cards #} {% extends "config/layout.html.j2" %} -{% block title %}Config - SigmaHQ RAG{% endblock %} +{% block title %}Config — SigmaForge{% endblock %} {% block styles %} @@ -102,9 +102,9 @@
or click to browse (supported: .md, .txt, .yml, .yaml, .json, etc.)
@@ -159,181 +62,5 @@ {% endblock %} {% block scripts %} - -{% endblock %} + +{% endblock %} \ No newline at end of file diff --git a/src/presentation/templates/data/prompts.html.j2 b/src/presentation/templates/data/prompts.html.j2 index 21a52c6..301509e 100644 --- a/src/presentation/templates/data/prompts.html.j2 +++ b/src/presentation/templates/data/prompts.html.j2 @@ -1,6 +1,6 @@ {% extends "data/base.html.j2" %} -{% block title %}Prompts | Data Sources | SigmaHQ RAG{% endblock %} +{% block title %}Prompts — SigmaForge{% endblock %} {% block content %}