From d6a265d4bed83a322261a614b6c571e971bd9861 Mon Sep 17 00:00:00 2001 From: nvaldez Date: Mon, 19 Oct 2026 15:45:55 +0200 Subject: [PATCH] fix minor issue --- src/fiona/gittool/diff_report.py | 46 +++++++++---------- .../templates/git-diff-report.template.html | 6 +-- src/fiona/run_tests.py | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/fiona/gittool/diff_report.py b/src/fiona/gittool/diff_report.py index 58ba9ac..9adf11a 100644 --- a/src/fiona/gittool/diff_report.py +++ b/src/fiona/gittool/diff_report.py @@ -1,6 +1,6 @@ """Generate a constellation-themed HTML report from ``git diff``. -Generated by CURSOR: 2026-10-19 - fiona-assistant git diff; wiki tmp/ output. +Generated by AI/LLM: 2026-10-19 - fiona-assistant git diff; wiki tmp/ output. """ from __future__ import annotations @@ -27,7 +27,7 @@ _BASE_REF_CANDIDATES = ("origin/main", "origin/master", "main", "master") def run_git(repo: pathlib.Path, *args: str) -> str: """Run a git command in ``repo`` and return stdout. - Generated by CURSOR: 2026-10-19 - subprocess wrapper for diff report. + Generated by AI/LLM: 2026-10-19 - subprocess wrapper for diff report. Args: repo: Git repository root. @@ -55,7 +55,7 @@ def run_git(repo: pathlib.Path, *args: str) -> str: def ref_exists(repo: pathlib.Path, ref: str) -> bool: """Return whether ``ref`` resolves in ``repo``. - Generated by CURSOR: 2026-10-19 - pick default base branch. + Generated by AI/LLM: 2026-10-19 - pick default base branch. Args: repo: Git repository root. @@ -77,7 +77,7 @@ def ref_exists(repo: pathlib.Path, ref: str) -> bool: def resolve_default_base(repo: pathlib.Path) -> str: """Return the first usable default base ref for branch comparisons. - Generated by CURSOR: 2026-10-19 - origin/main then main/master fallbacks. + Generated by AI/LLM: 2026-10-19 - origin/main then main/master fallbacks. Args: repo: Git repository root. @@ -105,7 +105,7 @@ def resolve_base_head( ) -> tuple[str, str]: """Return (base, head) refs to compare. - Generated by CURSOR: 2026-10-19 - default base is tracking branch tip. + Generated by AI/LLM: 2026-10-19 - default base is tracking branch tip. Args: repo: Git repository root. @@ -123,7 +123,7 @@ def resolve_base_head( def wiki_root_for_repo(repo: pathlib.Path) -> pathlib.Path: """Return the llm-wiki root used for tmp/ output and constellation themes. - Generated by CURSOR: 2026-10-19 - nearest fiona-settings.json per toc_generator. + Generated by AI/LLM: 2026-10-19 - nearest fiona-settings.json per toc_generator. Args: repo: Git repository root (usually the wiki root). @@ -137,7 +137,7 @@ def wiki_root_for_repo(repo: pathlib.Path) -> pathlib.Path: def _css_color(value: object, fallback: str) -> str: """Return a CSS color string from a theme value. - Generated by CURSOR: 2026-10-19 - constellation JSON to CSS colors. + Generated by AI/LLM: 2026-10-19 - constellation JSON to CSS colors. Args: value: Theme field (usually a hex string). @@ -154,7 +154,7 @@ def _css_color(value: object, fallback: str) -> str: def theme_css_for_wiki(wiki_root: pathlib.Path) -> str: """Build a ``:root`` CSS block from the wiki's opening constellation theme. - Generated by CURSOR: 2026-10-19 - same theme resolution as wiki graph. + Generated by AI/LLM: 2026-10-19 - same theme resolution as wiki graph. Themes ship as one JSON file per palette under the packaged ``llm_wiki/constellation/`` directory (for example ``night-sky.json``). @@ -227,7 +227,7 @@ def theme_css_for_wiki(wiki_root: pathlib.Path) -> str: def classify_diff_line(line: str) -> str: """Return a CSS class name for one unified-diff line. - Generated by CURSOR: 2026-10-19 - diff syntax highlighting classes. + Generated by AI/LLM: 2026-10-19 - diff syntax highlighting classes. Args: line: One line from unified diff output. @@ -249,7 +249,7 @@ def classify_diff_line(line: str) -> str: def colorize_diff(text: str) -> str: """Turn unified diff text into HTML spans. - Generated by CURSOR: 2026-10-19 - escape and wrap diff lines. + Generated by AI/LLM: 2026-10-19 - escape and wrap diff lines. Args: text: Unified diff body for one file. @@ -267,7 +267,7 @@ def colorize_diff(text: str) -> str: def path_anchor_id(path: str) -> str: """Return a stable HTML ``id`` for a repo-relative file path. - Generated by CURSOR: 2026-10-19 - sidebar hash navigation. + Generated by AI/LLM: 2026-10-19 - sidebar hash navigation. Args: path: Repository-relative path. @@ -283,7 +283,7 @@ def path_anchor_id(path: str) -> str: def parse_numstat(numstat_text: str) -> dict[str, tuple[int, int]]: """Parse ``git diff --numstat`` into path -> (added, deleted) line counts. - Generated by CURSOR: 2026-10-19 - churn labels in file tree. + Generated by AI/LLM: 2026-10-19 - churn labels in file tree. Args: numstat_text: Raw ``git diff --numstat`` output. @@ -309,7 +309,7 @@ def parse_numstat(numstat_text: str) -> dict[str, tuple[int, int]]: def insert_path_in_tree(tree: dict, path: str) -> None: """Insert one file path into a nested folder tree. - Generated by CURSOR: 2026-10-19 - sidebar directory structure. + Generated by AI/LLM: 2026-10-19 - sidebar directory structure. Args: tree: Nested dict (folders are dicts, leaves are full paths). @@ -325,7 +325,7 @@ def insert_path_in_tree(tree: dict, path: str) -> None: def render_file_tree(tree: dict, stats: dict[str, tuple[int, int]]) -> str: """Render nested ``