diff --git a/backend/__pycache__/ai_manager.cpython-312.pyc b/backend/__pycache__/ai_manager.cpython-312.pyc new file mode 100644 index 0000000..2a68b21 Binary files /dev/null and b/backend/__pycache__/ai_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/api_key_manager.cpython-312.pyc b/backend/__pycache__/api_key_manager.cpython-312.pyc new file mode 100644 index 0000000..8070500 Binary files /dev/null and b/backend/__pycache__/api_key_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/collaboration_manager.cpython-312.pyc b/backend/__pycache__/collaboration_manager.cpython-312.pyc new file mode 100644 index 0000000..3122400 Binary files /dev/null and b/backend/__pycache__/collaboration_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/db_manager.cpython-312.pyc b/backend/__pycache__/db_manager.cpython-312.pyc new file mode 100644 index 0000000..e1023d9 Binary files /dev/null and b/backend/__pycache__/db_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/developer_ecosystem_manager.cpython-312.pyc b/backend/__pycache__/developer_ecosystem_manager.cpython-312.pyc new file mode 100644 index 0000000..bfd20b6 Binary files /dev/null and b/backend/__pycache__/developer_ecosystem_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/document_processor.cpython-312.pyc b/backend/__pycache__/document_processor.cpython-312.pyc new file mode 100644 index 0000000..af2613b Binary files /dev/null and b/backend/__pycache__/document_processor.cpython-312.pyc differ diff --git a/backend/__pycache__/enterprise_manager.cpython-312.pyc b/backend/__pycache__/enterprise_manager.cpython-312.pyc new file mode 100644 index 0000000..4c56076 Binary files /dev/null and b/backend/__pycache__/enterprise_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/entity_aligner.cpython-312.pyc b/backend/__pycache__/entity_aligner.cpython-312.pyc new file mode 100644 index 0000000..daf7011 Binary files /dev/null and b/backend/__pycache__/entity_aligner.cpython-312.pyc differ diff --git a/backend/__pycache__/export_manager.cpython-312.pyc b/backend/__pycache__/export_manager.cpython-312.pyc new file mode 100644 index 0000000..daa7f5e Binary files /dev/null and b/backend/__pycache__/export_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/growth_manager.cpython-312.pyc b/backend/__pycache__/growth_manager.cpython-312.pyc new file mode 100644 index 0000000..1b58de9 Binary files /dev/null and b/backend/__pycache__/growth_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/image_processor.cpython-312.pyc b/backend/__pycache__/image_processor.cpython-312.pyc new file mode 100644 index 0000000..8abfb5c Binary files /dev/null and b/backend/__pycache__/image_processor.cpython-312.pyc differ diff --git a/backend/__pycache__/init_db.cpython-312.pyc b/backend/__pycache__/init_db.cpython-312.pyc new file mode 100644 index 0000000..9204354 Binary files /dev/null and b/backend/__pycache__/init_db.cpython-312.pyc differ diff --git a/backend/__pycache__/knowledge_reasoner.cpython-312.pyc b/backend/__pycache__/knowledge_reasoner.cpython-312.pyc new file mode 100644 index 0000000..db953ca Binary files /dev/null and b/backend/__pycache__/knowledge_reasoner.cpython-312.pyc differ diff --git a/backend/__pycache__/llm_client.cpython-312.pyc b/backend/__pycache__/llm_client.cpython-312.pyc new file mode 100644 index 0000000..91e37ed Binary files /dev/null and b/backend/__pycache__/llm_client.cpython-312.pyc differ diff --git a/backend/__pycache__/localization_manager.cpython-312.pyc b/backend/__pycache__/localization_manager.cpython-312.pyc new file mode 100644 index 0000000..ba6d772 Binary files /dev/null and b/backend/__pycache__/localization_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/main.cpython-312.pyc b/backend/__pycache__/main.cpython-312.pyc new file mode 100644 index 0000000..3b651f3 Binary files /dev/null and b/backend/__pycache__/main.cpython-312.pyc differ diff --git a/backend/__pycache__/multimodal_entity_linker.cpython-312.pyc b/backend/__pycache__/multimodal_entity_linker.cpython-312.pyc new file mode 100644 index 0000000..40ceb8a Binary files /dev/null and b/backend/__pycache__/multimodal_entity_linker.cpython-312.pyc differ diff --git a/backend/__pycache__/multimodal_processor.cpython-312.pyc b/backend/__pycache__/multimodal_processor.cpython-312.pyc new file mode 100644 index 0000000..01d199a Binary files /dev/null and b/backend/__pycache__/multimodal_processor.cpython-312.pyc differ diff --git a/backend/__pycache__/neo4j_manager.cpython-312.pyc b/backend/__pycache__/neo4j_manager.cpython-312.pyc new file mode 100644 index 0000000..fca6dd5 Binary files /dev/null and b/backend/__pycache__/neo4j_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/ops_manager.cpython-312.pyc b/backend/__pycache__/ops_manager.cpython-312.pyc new file mode 100644 index 0000000..92271ea Binary files /dev/null and b/backend/__pycache__/ops_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/oss_uploader.cpython-312.pyc b/backend/__pycache__/oss_uploader.cpython-312.pyc new file mode 100644 index 0000000..a034876 Binary files /dev/null and b/backend/__pycache__/oss_uploader.cpython-312.pyc differ diff --git a/backend/__pycache__/performance_manager.cpython-312.pyc b/backend/__pycache__/performance_manager.cpython-312.pyc new file mode 100644 index 0000000..26e152e Binary files /dev/null and b/backend/__pycache__/performance_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/plugin_manager.cpython-312.pyc b/backend/__pycache__/plugin_manager.cpython-312.pyc new file mode 100644 index 0000000..2e9a6d2 Binary files /dev/null and b/backend/__pycache__/plugin_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/rate_limiter.cpython-312.pyc b/backend/__pycache__/rate_limiter.cpython-312.pyc new file mode 100644 index 0000000..3bfb9db Binary files /dev/null and b/backend/__pycache__/rate_limiter.cpython-312.pyc differ diff --git a/backend/__pycache__/search_manager.cpython-312.pyc b/backend/__pycache__/search_manager.cpython-312.pyc new file mode 100644 index 0000000..36a8d9b Binary files /dev/null and b/backend/__pycache__/search_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/security_manager.cpython-312.pyc b/backend/__pycache__/security_manager.cpython-312.pyc new file mode 100644 index 0000000..cd7662f Binary files /dev/null and b/backend/__pycache__/security_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/subscription_manager.cpython-312.pyc b/backend/__pycache__/subscription_manager.cpython-312.pyc new file mode 100644 index 0000000..b615312 Binary files /dev/null and b/backend/__pycache__/subscription_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/tenant_manager.cpython-312.pyc b/backend/__pycache__/tenant_manager.cpython-312.pyc new file mode 100644 index 0000000..c4f0606 Binary files /dev/null and b/backend/__pycache__/tenant_manager.cpython-312.pyc differ diff --git a/backend/__pycache__/test_multimodal.cpython-312.pyc b/backend/__pycache__/test_multimodal.cpython-312.pyc new file mode 100644 index 0000000..6f8b987 Binary files /dev/null and b/backend/__pycache__/test_multimodal.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase7_task6_8.cpython-312.pyc b/backend/__pycache__/test_phase7_task6_8.cpython-312.pyc new file mode 100644 index 0000000..5db52a7 Binary files /dev/null and b/backend/__pycache__/test_phase7_task6_8.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase8_task1.cpython-312.pyc b/backend/__pycache__/test_phase8_task1.cpython-312.pyc new file mode 100644 index 0000000..440ffb2 Binary files /dev/null and b/backend/__pycache__/test_phase8_task1.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase8_task2.cpython-312.pyc b/backend/__pycache__/test_phase8_task2.cpython-312.pyc new file mode 100644 index 0000000..1931bdc Binary files /dev/null and b/backend/__pycache__/test_phase8_task2.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase8_task4.cpython-312.pyc b/backend/__pycache__/test_phase8_task4.cpython-312.pyc new file mode 100644 index 0000000..71f4ca6 Binary files /dev/null and b/backend/__pycache__/test_phase8_task4.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase8_task5.cpython-312.pyc b/backend/__pycache__/test_phase8_task5.cpython-312.pyc new file mode 100644 index 0000000..2326b18 Binary files /dev/null and b/backend/__pycache__/test_phase8_task5.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase8_task6.cpython-312.pyc b/backend/__pycache__/test_phase8_task6.cpython-312.pyc new file mode 100644 index 0000000..dec2365 Binary files /dev/null and b/backend/__pycache__/test_phase8_task6.cpython-312.pyc differ diff --git a/backend/__pycache__/test_phase8_task8.cpython-312.pyc b/backend/__pycache__/test_phase8_task8.cpython-312.pyc new file mode 100644 index 0000000..ab6c6fe Binary files /dev/null and b/backend/__pycache__/test_phase8_task8.cpython-312.pyc differ diff --git a/backend/__pycache__/tingwu_client.cpython-312.pyc b/backend/__pycache__/tingwu_client.cpython-312.pyc new file mode 100644 index 0000000..365fa9c Binary files /dev/null and b/backend/__pycache__/tingwu_client.cpython-312.pyc differ diff --git a/backend/__pycache__/workflow_manager.cpython-312.pyc b/backend/__pycache__/workflow_manager.cpython-312.pyc new file mode 100644 index 0000000..8419b1f Binary files /dev/null and b/backend/__pycache__/workflow_manager.cpython-312.pyc differ diff --git a/backend/main.py b/backend/main.py index afb6d5d..f3e6160 100644 --- a/backend/main.py +++ b/backend/main.py @@ -2381,8 +2381,6 @@ async def create_attribute_template_endpoint( if not DB_AVAILABLE: raise HTTPException(status_code=500, detail="Database not available") - from db_manager import AttributeTemplate - db = get_db_manager() project = db.get_project(project_id) if not project: @@ -2602,8 +2600,6 @@ async def batch_set_entity_attributes_endpoint( if not DB_AVAILABLE: raise HTTPException(status_code=500, detail="Database not available") - from db_manager import EntityAttribute - db = get_db_manager() entity = db.get_entity(entity_id) if not entity: @@ -8667,8 +8663,6 @@ async def get_branding_css(tenant_id: str): manager = get_tenant_manager() css = manager.get_branding_css(tenant_id) - from fastapi.responses import PlainTextResponse - return PlainTextResponse(content=css, media_type="text/css") diff --git a/backend/security_manager.py b/backend/security_manager.py index 600d763..d916a25 100644 --- a/backend/security_manager.py +++ b/backend/security_manager.py @@ -196,7 +196,6 @@ class SecurityManager: } def __init__(self, db_path: str = "insightflow.db"): - self.db_path = db_path self.db_path = db_path # 预编译正则缓存 self._compiled_patterns: dict[str, re.Pattern] = {}