From 519d9dd81acf162e3c39d431ca66c85d1a7fd5f5 Mon Sep 17 00:00:00 2001 From: anor Date: Thu, 26 Mar 2026 17:13:32 +1000 Subject: [PATCH] =?UTF-8?q?feat:=20=D1=80=D0=B0=D0=B7=D1=80=D0=B5=D1=88?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D1=81?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BD=D1=8B=D1=85=20=D0=BF=D1=80=D0=BE=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D0=BC=20(.gge,=20.esw,=20.ges,=20.smr,=20.sm?= =?UTF-8?q?t)=20=D0=B8=20=D0=B0=D1=80=D1=85=D0=B8=D0=B2=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ГРАНД-Смета (.gge, .esw), Smeta.RU (.smr, .smt), плюс .zip/.rar/.7z Обновлены все 4 файла с ALLOWED_EXTENSIONS. Co-Authored-By: Claude Opus 4.6 (1M context) --- claude_bridge.py | 2 ++ claude_bridge_direct.py | 2 ++ claude_bridge_glm.py | 2 ++ main.py | 2 +- sandbox/claude_bridge_sandbox.py | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/claude_bridge.py b/claude_bridge.py index f1329d4..e329f1f 100644 --- a/claude_bridge.py +++ b/claude_bridge.py @@ -114,6 +114,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", # smeta programs: ГРАНД-Смета, Smeta.RU + ".zip", ".rar", ".7z", } diff --git a/claude_bridge_direct.py b/claude_bridge_direct.py index db984ac..b543420 100644 --- a/claude_bridge_direct.py +++ b/claude_bridge_direct.py @@ -41,6 +41,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", + ".zip", ".rar", ".7z", } diff --git a/claude_bridge_glm.py b/claude_bridge_glm.py index f2c055d..a05f2dc 100644 --- a/claude_bridge_glm.py +++ b/claude_bridge_glm.py @@ -113,6 +113,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", + ".zip", ".rar", ".7z", } diff --git a/main.py b/main.py index 8618593..1f0cd42 100644 --- a/main.py +++ b/main.py @@ -198,7 +198,7 @@ async def upload(request: Request, file: UploadFile): if not is_allowed_file(safe_name): raise HTTPException( 400, - f"File type not allowed. Allowed: xlsx, docx, pdf, csv, txt, xml, json, yaml", + f"File type not allowed. Allowed: xlsx, xls, docx, pdf, csv, txt, xml, json, yaml, gge, esw, zip", ) chunks = [] diff --git a/sandbox/claude_bridge_sandbox.py b/sandbox/claude_bridge_sandbox.py index 57fb663..6c1019c 100644 --- a/sandbox/claude_bridge_sandbox.py +++ b/sandbox/claude_bridge_sandbox.py @@ -44,6 +44,8 @@ def clear_session(username: str, tab_id: str): ALLOWED_EXTENSIONS = { ".xlsx", ".xls", ".docx", ".doc", ".pdf", ".csv", ".txt", ".xml", ".json", ".yaml", ".yml", + ".gge", ".esw", ".ges", ".smr", ".smt", + ".zip", ".rar", ".7z", }