syntaxmatrix 1.4.6__py3-none-any.whl → 2.5.5.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. syntaxmatrix/__init__.py +13 -8
  2. syntaxmatrix/agentic/__init__.py +0 -0
  3. syntaxmatrix/agentic/agent_tools.py +24 -0
  4. syntaxmatrix/agentic/agents.py +810 -0
  5. syntaxmatrix/agentic/code_tools_registry.py +37 -0
  6. syntaxmatrix/agentic/model_templates.py +1790 -0
  7. syntaxmatrix/auth.py +308 -14
  8. syntaxmatrix/commentary.py +328 -0
  9. syntaxmatrix/core.py +993 -375
  10. syntaxmatrix/dataset_preprocessing.py +218 -0
  11. syntaxmatrix/db.py +92 -95
  12. syntaxmatrix/display.py +95 -121
  13. syntaxmatrix/generate_page.py +634 -0
  14. syntaxmatrix/gpt_models_latest.py +46 -0
  15. syntaxmatrix/history_store.py +26 -29
  16. syntaxmatrix/kernel_manager.py +96 -17
  17. syntaxmatrix/llm_store.py +1 -1
  18. syntaxmatrix/plottings.py +6 -0
  19. syntaxmatrix/profiles.py +64 -8
  20. syntaxmatrix/project_root.py +55 -43
  21. syntaxmatrix/routes.py +5072 -1398
  22. syntaxmatrix/session.py +19 -0
  23. syntaxmatrix/settings/logging.py +40 -0
  24. syntaxmatrix/settings/model_map.py +300 -33
  25. syntaxmatrix/settings/prompts.py +273 -62
  26. syntaxmatrix/settings/string_navbar.py +3 -3
  27. syntaxmatrix/static/docs.md +272 -0
  28. syntaxmatrix/static/icons/favicon.png +0 -0
  29. syntaxmatrix/static/icons/hero_bg.jpg +0 -0
  30. syntaxmatrix/templates/dashboard.html +608 -147
  31. syntaxmatrix/templates/docs.html +71 -0
  32. syntaxmatrix/templates/error.html +2 -3
  33. syntaxmatrix/templates/login.html +1 -0
  34. syntaxmatrix/templates/register.html +1 -0
  35. syntaxmatrix/ui_modes.py +14 -0
  36. syntaxmatrix/utils.py +2482 -159
  37. syntaxmatrix/vectorizer.py +16 -12
  38. {syntaxmatrix-1.4.6.dist-info → syntaxmatrix-2.5.5.4.dist-info}/METADATA +20 -17
  39. syntaxmatrix-2.5.5.4.dist-info/RECORD +68 -0
  40. syntaxmatrix/model_templates.py +0 -30
  41. syntaxmatrix/static/icons/favicon.ico +0 -0
  42. syntaxmatrix-1.4.6.dist-info/RECORD +0 -54
  43. {syntaxmatrix-1.4.6.dist-info → syntaxmatrix-2.5.5.4.dist-info}/WHEEL +0 -0
  44. {syntaxmatrix-1.4.6.dist-info → syntaxmatrix-2.5.5.4.dist-info}/licenses/LICENSE.txt +0 -0
  45. {syntaxmatrix-1.4.6.dist-info → syntaxmatrix-2.5.5.4.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,71 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>{{ page_title or "Docs" }} — {{ config.get('PROJECT_NAME','SyntaxMatrix') }}</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ </head>
8
+ <body style="margin:0;">
9
+ <div id="syntaxmatrix-docs-root"></div>
10
+ <script>
11
+ (function () {
12
+ const host = document.getElementById('syntaxmatrix-docs-root');
13
+ const shadow = host.attachShadow({ mode: 'open' });
14
+ shadow.innerHTML = `
15
+ <style>
16
+ :host { all: initial; }
17
+ .doc { box-sizing:border-box; max-width: 980px; margin: 0 auto; padding: 24px;
18
+ color:#1b1f23; background:#fff; font: 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Helvetica,Arial,Noto Sans,sans-serif; }
19
+ .doc * { box-sizing: inherit; text-align: left; }
20
+ .doc h1 { font-size: 2rem; margin: 0 0 .75rem }
21
+ .doc h2 { margin-top: 2rem; padding-bottom: .4rem; border-bottom: 1px solid #e1e4e8; }
22
+ .doc h3 { margin-top: 1.25rem; }
23
+ .doc p, .doc li { line-height: 1.65; }
24
+ .doc ul, .doc ol { padding-left: 24px; }
25
+ .doc blockquote { border-left: 4px solid #e1e4e8; margin: 1rem 0; padding: .25rem 1rem; color: #586069; background: #fafbfc; }
26
+ .doc code, .doc pre { font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace; }
27
+ .doc pre { white-space: pre; background:#f6f8fa; border:1px solid #e1e4e8; padding:12px; border-radius:8px; overflow:auto; position: relative; }
28
+ .copy-btn { position:absolute; top:8px; right:8px; border:1px solid #e1e4e8; background:#fff; padding:2px 8px; border-radius:6px; font-size:.8rem; cursor:pointer; }
29
+ .doc table { border-collapse: collapse; width: 100%; }
30
+ .doc th, .doc td { border:1px solid #e1e4e8; padding:6px 10px; vertical-align: top; }
31
+ .doc img { max-width:100%; height:auto; }
32
+ .note { background:#f6f8fa; border:1px solid #e1e4e8; padding:10px 12px; border-radius:8px; }
33
+ @media (prefers-color-scheme: dark) {
34
+ .doc { background:#0d1117; color:#c9d1d9; }
35
+ .doc h2 { border-color:#30363d; }
36
+ .doc pre, .note { background:#161b22; border-color:#30363d; }
37
+ .copy-btn { background:#0d1117; border-color:#30363d; color:#c9d1d9; }
38
+ .doc th, .doc td { border-color:#30363d; }
39
+ }
40
+ </style>
41
+ <article class="doc"><p class="note">Loading documentation…</p></article>
42
+ `;
43
+ const container = shadow.querySelector('.doc');
44
+
45
+ function addCopyButtons() {
46
+ shadow.querySelectorAll('pre > code').forEach(code => {
47
+ const btn = document.createElement('button');
48
+ btn.className = 'copy-btn';
49
+ btn.textContent = 'Copy';
50
+ btn.addEventListener('click', () => {
51
+ navigator.clipboard.writeText(code.textContent || '');
52
+ btn.textContent = 'Copied';
53
+ setTimeout(() => btn.textContent = 'Copy', 900);
54
+ });
55
+ code.parentElement.appendChild(btn);
56
+ });
57
+ }
58
+
59
+ const mk = document.createElement('script');
60
+ mk.src = 'https://cdn.jsdelivr.net/npm/marked/marked.min.js';
61
+ mk.onload = () => {
62
+ fetch('/static/docs.md', { cache: 'no-cache' })
63
+ .then(r => r.text())
64
+ .then(md => { container.innerHTML = window.marked.parse(md); addCopyButtons(); })
65
+ .catch(() => { container.innerHTML = '<p style="color:#b00">Could not load <code>static/docs.md</code>.</p>'; });
66
+ };
67
+ shadow.appendChild(mk);
68
+ })();
69
+ </script>
70
+ </body>
71
+ </html>
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6
- <title>Error SyntaxMatrix</title>
6
+ <title>Error - SyntaxMatrix</title>
7
7
 
8
8
  <style>
9
9
  :root {
@@ -107,7 +107,6 @@
107
107
  </style>
108
108
  </head>
109
109
  <body>
110
- <!-- your normal navbar -->
111
110
  {{ nav | safe }}
112
111
 
113
112
  <div class="error-page">
@@ -119,7 +118,7 @@
119
118
  {% endif %}
120
119
  <p><a class="btn" href="{{ url_for('home') }}">← Back to Home</a></p>
121
120
  </div>
122
-
121
+ {{ footer | safe }}
123
122
  <!-- toggle script for hamburger -->
124
123
  <script src="{{ url_for('static', filename='js/sidebar.js') }}"></script>
125
124
  <script>
@@ -95,6 +95,7 @@
95
95
  <button type="submit">Log In</button>
96
96
  </form>
97
97
  <p>No account? <a href="{{ url_for('register') }}">Register here</a></p>
98
+ <p>Return to <a href="/">home</a></p>
98
99
  </div>
99
100
  </body>
100
101
  </html>
@@ -97,6 +97,7 @@
97
97
  <button type="submit">Sign Up</button>
98
98
  </form>
99
99
  <p>Already have an account? <a href="{{ url_for('login') }}">Log in</a></p>
100
+ <p>Return to <a href="/">home</a></p>
100
101
  </div>
101
102
  </body>
102
103
  </html>
@@ -0,0 +1,14 @@
1
+ UI_MODES = {
2
+ "default": { #1
3
+
4
+ },
5
+ "bubble": { #2
6
+
7
+ },
8
+ "card": { #3
9
+
10
+ },
11
+ "smx": { #4
12
+
13
+ },
14
+ }