Agent Zero AI framework
Bundle KaTeX font assets
Alessandro84bc867ec938
diff --git a/tests/test_webui_katex_assets.py b/tests/test_webui_katex_assets.pynew file mode 100644index 000000000..e69808a53--- /dev/null+++ b/tests/test_webui_katex_assets.py@@ -0,0 +1,14 @@+from pathlib import Path+import re+++PROJECT_ROOT = Path(__file__).resolve().parents[1]+++def test_katex_css_font_assets_are_complete():+ katex = PROJECT_ROOT / "webui" / "vendor" / "katex"+ css = (katex / "katex.min.css").read_text(encoding="utf-8")+ referenced = set(re.findall(r"fonts/(KaTeX_[^)\"']+\.(?:woff2|woff|ttf))", css))+ available = {path.name for path in (katex / "fonts").iterdir() if path.is_file()}++ assert referenced == availablediff --git a/webui/vendor/katex/AGENTS.md b/webui/vendor/katex/AGENTS.mdindex 983d15276..de950f661 100644--- a/webui/vendor/katex/AGENTS.md+++ b/webui/vendor/katex/AGENTS.md@@ -9,11 +9,13 @@- `katex.min.js` owns core rendering behavior.- `katex.auto-render.min.js` owns auto-render support.- `katex.min.css` owns KaTeX styling.+- `fonts/` owns every font asset referenced by `katex.min.css`.## Local Contracts- Do not hand-edit minified vendor files.- Keep markdown/message rendering imports synchronized with asset paths.+- Keep the CSS font references fully available under `fonts/`.## Work Guidancediff --git a/webui/vendor/katex/fonts/KaTeX_AMS-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_AMS-Regular.ttfnew file mode 100644index 000000000..c6f9a5e7cBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_AMS-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_AMS-Regular.woff b/webui/vendor/katex/fonts/KaTeX_AMS-Regular.woffnew file mode 100644index 000000000..b804d7b33Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_AMS-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_AMS-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_AMS-Regular.woff2new file mode 100644index 000000000..0acaaff03Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_AMS-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.ttf b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.ttfnew file mode 100644index 000000000..9ff4a5e04Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woffnew file mode 100644index 000000000..9759710d1Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff2 b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff2new file mode 100644index 000000000..f390922ecBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.ttfnew file mode 100644index 000000000..f522294ffBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woffnew file mode 100644index 000000000..9bdd534fdBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff2new file mode 100644index 000000000..75344a1f9Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.ttf b/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.ttfnew file mode 100644index 000000000..4e98259c3Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff b/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.woffnew file mode 100644index 000000000..e7730f662Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff2 b/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff2new file mode 100644index 000000000..395f28beaBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.ttfnew file mode 100644index 000000000..b8461b275Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.woffnew file mode 100644index 000000000..acab069f9Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff2new file mode 100644index 000000000..735f6948dBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Bold.ttf b/webui/vendor/katex/fonts/KaTeX_Main-Bold.ttfnew file mode 100644index 000000000..4060e627dBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Bold.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Bold.woff b/webui/vendor/katex/fonts/KaTeX_Main-Bold.woffnew file mode 100644index 000000000..f38136ac1Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Bold.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Bold.woff2 b/webui/vendor/katex/fonts/KaTeX_Main-Bold.woff2new file mode 100644index 000000000..ab2ad21daBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Bold.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.ttf b/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.ttfnew file mode 100644index 000000000..dc007977eBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff b/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.woffnew file mode 100644index 000000000..67807b0bdBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff2 b/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff2new file mode 100644index 000000000..5931794deBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Italic.ttf b/webui/vendor/katex/fonts/KaTeX_Main-Italic.ttfnew file mode 100644index 000000000..0e9b0f354Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Italic.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Italic.woff b/webui/vendor/katex/fonts/KaTeX_Main-Italic.woffnew file mode 100644index 000000000..6f43b594bBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Italic.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Italic.woff2 b/webui/vendor/katex/fonts/KaTeX_Main-Italic.woff2new file mode 100644index 000000000..b50920e13Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Italic.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Main-Regular.ttfnew file mode 100644index 000000000..dd45e1ed2Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Main-Regular.woffnew file mode 100644index 000000000..21f581296Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Main-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Main-Regular.woff2new file mode 100644index 000000000..eb24a7ba2Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Main-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.ttf b/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.ttfnew file mode 100644index 000000000..728ce7a1eBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff b/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.woffnew file mode 100644index 000000000..0ae390d74Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff2 b/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff2new file mode 100644index 000000000..29657023aBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Math-Italic.ttf b/webui/vendor/katex/fonts/KaTeX_Math-Italic.ttfnew file mode 100644index 000000000..70d559b4eBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Math-Italic.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Math-Italic.woff b/webui/vendor/katex/fonts/KaTeX_Math-Italic.woffnew file mode 100644index 000000000..eb5159d4cBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Math-Italic.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Math-Italic.woff2 b/webui/vendor/katex/fonts/KaTeX_Math-Italic.woff2new file mode 100644index 000000000..215c143fdBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Math-Italic.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.ttf b/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.ttfnew file mode 100644index 000000000..2f65a8a3aBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff b/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.woffnew file mode 100644index 000000000..8d47c02d9Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff2 b/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff2new file mode 100644index 000000000..cfaa3bda5Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.ttf b/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.ttfnew file mode 100644index 000000000..d5850df98Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff b/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.woffnew file mode 100644index 000000000..7e02df963Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff2 b/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff2new file mode 100644index 000000000..349c06dc6Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.ttfnew file mode 100644index 000000000..537279f6bBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff b/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.woffnew file mode 100644index 000000000..31b84829bBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff2new file mode 100644index 000000000..a90eea85fBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Script-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Script-Regular.ttfnew file mode 100644index 000000000..fd679bf37Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Script-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Script-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Script-Regular.woffnew file mode 100644index 000000000..0e7da821eBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Script-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Script-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Script-Regular.woff2new file mode 100644index 000000000..b3048fc11Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Script-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size1-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Size1-Regular.ttfnew file mode 100644index 000000000..871fd7d19Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size1-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size1-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Size1-Regular.woffnew file mode 100644index 000000000..7f292d911Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size1-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size1-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Size1-Regular.woff2new file mode 100644index 000000000..c5a8462fbBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size1-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size2-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Size2-Regular.ttfnew file mode 100644index 000000000..7a212caf9Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size2-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size2-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Size2-Regular.woffnew file mode 100644index 000000000..d241d9be2Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size2-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size2-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Size2-Regular.woff2new file mode 100644index 000000000..e1bccfe24Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size2-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size3-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Size3-Regular.ttfnew file mode 100644index 000000000..00bff3495Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size3-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size3-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Size3-Regular.woffnew file mode 100644index 000000000..e6e9b658dBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size3-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size3-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Size3-Regular.woff2new file mode 100644index 000000000..249a28662Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size3-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size4-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Size4-Regular.ttfnew file mode 100644index 000000000..74f08921fBinary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size4-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size4-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Size4-Regular.woffnew file mode 100644index 000000000..e1ec54576Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size4-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Size4-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Size4-Regular.woff2new file mode 100644index 000000000..680c13085Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Size4-Regular.woff2 differdiff --git a/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.ttf b/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.ttfnew file mode 100644index 000000000..c83252c57Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.ttf differdiff --git a/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff b/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.woffnew file mode 100644index 000000000..2432419f2Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff differdiff --git a/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff2 b/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff2new file mode 100644index 000000000..771f1af70Binary files /dev/null and b/webui/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff2 differ