syntaxmatrix 2.2.5__tar.gz → 2.2.6__tar.gz
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.
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/PKG-INFO +1 -1
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/SyntaxMatrix.egg-info/PKG-INFO +1 -1
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/setup.py +1 -1
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/routes.py +26 -28
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/LICENSE.txt +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/README.md +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/SyntaxMatrix.egg-info/SOURCES.txt +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/SyntaxMatrix.egg-info/dependency_links.txt +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/SyntaxMatrix.egg-info/requires.txt +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/SyntaxMatrix.egg-info/top_level.txt +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/pyproject.toml +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/setup.cfg +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/__init__.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/auth.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/bootstrap.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/commentary.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/core.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/db.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/display.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/emailer.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/file_processor.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/generate_page.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/gpt_models_latest.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/history_store.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/kernel_manager.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/llm_store.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/model_templates.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/models.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/plottings.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/profiles.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/project_root.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/session.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/settings/__init__.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/settings/default.yaml +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/settings/logging.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/settings/model_map.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/settings/prompts.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/settings/string_navbar.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/smiv.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/smpv.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/css/style.css +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/docs.md +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/icons/favicon.png +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/icons/hero_bg.jpg +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/icons/logo.png +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/icons/svg_497526.svg +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/icons/svg_497528.svg +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/js/chat.js +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/js/sidebar.js +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/static/js/widgets.js +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/templates/code_cell.html +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/templates/dashboard.html +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/templates/docs.html +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/templates/error.html +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/templates/login.html +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/templates/register.html +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/themes.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/ui_modes.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/utils.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vector_db.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/__init__.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/adapters/__init__.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/adapters/milvus_adapter.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/adapters/pgvector_adapter.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/adapters/sqlite_adapter.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/base.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/registry.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectorizer.py +0 -0
- {syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/workspace_db.py +0 -0
|
@@ -8,7 +8,7 @@ with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="syntaxmatrix",
|
|
11
|
-
version="2.2.
|
|
11
|
+
version="2.2.6",
|
|
12
12
|
author="Bob Nti",
|
|
13
13
|
author_email="bob.nti@syntaxmatrix.com",
|
|
14
14
|
description="SyntaxMUI: A customizable framework for Python AI Assistant Projects.",
|
|
@@ -30,6 +30,7 @@ from . import profiles as _prof
|
|
|
30
30
|
from . import auth as _auth
|
|
31
31
|
from syntaxmatrix import profiles as _prof
|
|
32
32
|
from syntaxmatrix.gpt_models_latest import set_args, extract_output_text as _out
|
|
33
|
+
from datetime import datetime
|
|
33
34
|
|
|
34
35
|
import html as _html
|
|
35
36
|
import contextlib
|
|
@@ -5388,32 +5389,31 @@ def setup_routes(smx):
|
|
|
5388
5389
|
dl_html = f"""
|
|
5389
5390
|
<button type="button"
|
|
5390
5391
|
class="btn"
|
|
5391
|
-
style="padding:8px 12px;border:1px solid #0b6;border-radius:6px;background:#fff;color:#0b6;cursor:pointer;"
|
|
5392
|
-
onclick="(function() {{
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
const
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
a.click();
|
|
5406
|
-
a.remove();
|
|
5407
|
-
window.URL.revokeObjectURL(url);
|
|
5408
|
-
}}).catch(function(err) {{
|
|
5392
|
+
style="margin:14px 0;padding:8px 12px;border:1px solid #0b6;border-radius:6px;background:#fff;color:#0b6;cursor:pointer;"
|
|
5393
|
+
onclick="(async function(btn) {{
|
|
5394
|
+
try {{
|
|
5395
|
+
btn.disabled = true;
|
|
5396
|
+
const orig = btn.textContent;
|
|
5397
|
+
btn.textContent = 'Saving…';
|
|
5398
|
+
const resp = await fetch('{download_url}', {{
|
|
5399
|
+
method: 'POST',
|
|
5400
|
+
headers: {{ 'X-Requested-With': 'fetch' }}
|
|
5401
|
+
}});
|
|
5402
|
+
const data = await resp.json();
|
|
5403
|
+
if (!resp.ok || !data.ok) throw new Error(data.error || 'Save failed');
|
|
5404
|
+
btn.textContent = 'Saved to MLEARNING_OUTPUTS';
|
|
5405
|
+
}} catch (err) {{
|
|
5409
5406
|
console.error(err);
|
|
5410
|
-
alert('Could not
|
|
5411
|
-
}}
|
|
5412
|
-
|
|
5413
|
-
|
|
5407
|
+
alert('Could not save. Please try again.');
|
|
5408
|
+
}} finally {{
|
|
5409
|
+
btn.disabled = false;
|
|
5410
|
+
}}
|
|
5411
|
+
}})(this)">
|
|
5412
|
+
Download
|
|
5414
5413
|
</button>
|
|
5415
5414
|
"""
|
|
5416
5415
|
ai_outputs.append(Markup(dl_html))
|
|
5416
|
+
|
|
5417
5417
|
################################################################
|
|
5418
5418
|
|
|
5419
5419
|
|
|
@@ -5493,16 +5493,14 @@ def setup_routes(smx):
|
|
|
5493
5493
|
@smx.app.route("/download/result/html/<session_id>", methods=["POST"])
|
|
5494
5494
|
def download_result_html(session_id):
|
|
5495
5495
|
"""Send the last-built result HTML as a download (only when user clicks)."""
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5496
|
+
os.makedirs(MLEARNING_OUTPUTS, exist_ok=True)
|
|
5497
|
+
stamp = datetime.now().strftime("%Y%m%d-%H%M%S-%f")
|
|
5498
|
+
filename = f"result_{session_id}_{stamp}.html"
|
|
5499
|
+
path = os.path.join(MLEARNING_OUTPUTS, filename)
|
|
5499
5500
|
|
|
5500
5501
|
html_doc = _last_result_html.get(session_id)
|
|
5501
5502
|
if not html_doc:
|
|
5502
5503
|
return jsonify({"ok": False, "error": "No result available."}), 404
|
|
5503
|
-
|
|
5504
|
-
os.makedirs(MLEARNING_OUTPUTS, exist_ok=True)
|
|
5505
|
-
path = os.path.join(MLEARNING_OUTPUTS, f"result_{session_id}.html")
|
|
5506
5504
|
with open(path, "w", encoding="utf-8") as f:
|
|
5507
5505
|
f.write(html_doc)
|
|
5508
5506
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{syntaxmatrix-2.2.5 → syntaxmatrix-2.2.6}/syntaxmatrix/vectordb/adapters/pgvector_adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|