open-swarm 0.1.1744942852__py3-none-any.whl → 0.1.1744942884__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: open-swarm
3
- Version: 0.1.1744942852
3
+ Version: 0.1.1744942884
4
4
  Summary: Open Swarm: Orchestrating AI Agent Swarms with Django
5
5
  Project-URL: Homepage, https://github.com/yourusername/open-swarm
6
6
  Project-URL: Documentation, https://github.com/yourusername/open-swarm/blob/main/README.md
@@ -230,13 +230,13 @@ swarm/utils/redact.py,sha256=L2lo927S575Ay7Jz6pUlK47Sxxzpd9IMybnDm6-WlC8,2955
230
230
  swarm/views/__init__.py,sha256=AcLk0R7Y69FhIVgJK2hZs8M_gCR-h_5iqUywz89yuHM,1223
231
231
  swarm/views/api_views.py,sha256=BbDEgI6Ftg-c-mMkE9DvRGZHIZ-WAZSfwqAB7j98WxM,1937
232
232
  swarm/views/chat_views.py,sha256=6UUtEJKrM2k_wi9A6AfhbbvMYunjzpY22M6hOIXASjA,15695
233
- swarm/views/core_views.py,sha256=iGbits6HqVXE13vEkqvOBQHGS7LZb6Gg9Hcs6KjZmmk,5255
233
+ swarm/views/core_views.py,sha256=UJ3FlrQSyLVLA791lDPRfiVmidpVN2aOeMt0nFZfVjU,5256
234
234
  swarm/views/message_views.py,sha256=sDUnXyqKXC8WwIIMAlWf00s2_a2T9c75Na5FvYMJwBM,1596
235
235
  swarm/views/model_views.py,sha256=aAbU4AZmrOTaPeKMWtoKK7FPYHdaN3Zbx55JfKzYTRY,2937
236
- swarm/views/utils.py,sha256=geX3Z5ZDKFYyXYBMilc-4qgOSjhujK3AfRtvbXgFpXk,3643
237
- swarm/views/web_views.py,sha256=ExQQeJpZ8CkLZQC_pXKOOmdnEy2qR3wEBP4LLp27DPU,7404
238
- open_swarm-0.1.1744942852.dist-info/METADATA,sha256=a79gG7YVNq0frH-nBaNkw39roBWT7WQNXFtQkc9LAos,18813
239
- open_swarm-0.1.1744942852.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
240
- open_swarm-0.1.1744942852.dist-info/entry_points.txt,sha256=fo28d0_zJrytRsh8QqkdlWQT_9lyAwYUx1WuSTDI3HM,177
241
- open_swarm-0.1.1744942852.dist-info/licenses/LICENSE,sha256=BU9bwRlnOt_JDIb6OT55Q4leLZx9RArDLTFnlDIrBEI,1062
242
- open_swarm-0.1.1744942852.dist-info/RECORD,,
236
+ swarm/views/utils.py,sha256=8Usc0g0L0NPegNAyY20tJBNBy-JLwODf4VmxV0yUtpw,3627
237
+ swarm/views/web_views.py,sha256=T1CKe-Nyv1C8aDt6QFTGWo_dkH7ojWAvS_QW9mZnZp0,7371
238
+ open_swarm-0.1.1744942884.dist-info/METADATA,sha256=llG-oRb-Jxg-dS1HS00UaIegqr-pBH3_xlkmuy_ubvk,18813
239
+ open_swarm-0.1.1744942884.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
240
+ open_swarm-0.1.1744942884.dist-info/entry_points.txt,sha256=fo28d0_zJrytRsh8QqkdlWQT_9lyAwYUx1WuSTDI3HM,177
241
+ open_swarm-0.1.1744942884.dist-info/licenses/LICENSE,sha256=BU9bwRlnOt_JDIb6OT55Q4leLZx9RArDLTFnlDIrBEI,1062
242
+ open_swarm-0.1.1744942884.dist-info/RECORD,,
swarm/views/core_views.py CHANGED
@@ -18,7 +18,7 @@ from django.contrib.auth.forms import AuthenticationForm # Use standard auth for
18
18
  # from .utils import blueprints_metadata # Or however metadata is accessed
19
19
 
20
20
  # Use the current config loader
21
- from swarm.extensions.config.config_loader import load_config, find_config_file, DEFAULT_CONFIG_FILENAME
21
+ from swarm.core import config_loader, server_config
22
22
 
23
23
  logger = logging.getLogger(__name__)
24
24
 
@@ -70,16 +70,16 @@ def serve_swarm_config(request):
70
70
  config_path = None
71
71
  try:
72
72
  # Use the same logic as BlueprintBase if possible, or find_config_file
73
- config_path = find_config_file(filename=DEFAULT_CONFIG_FILENAME, start_dir=Path(settings.BASE_DIR).parent) # Search from project root
73
+ config_path = config_loader.find_config_file(filename=config_loader.DEFAULT_CONFIG_FILENAME, start_dir=Path(settings.BASE_DIR).parent) # Search from project root
74
74
  if not config_path:
75
75
  # Fallback to location relative to settings? Unlikely to be correct.
76
- config_path = Path(settings.BASE_DIR) / '..' / DEFAULT_CONFIG_FILENAME # Adjust relative path if needed
76
+ config_path = Path(settings.BASE_DIR) / '..' / config_loader.DEFAULT_CONFIG_FILENAME # Adjust relative path if needed
77
77
  config_path = config_path.resolve()
78
78
 
79
79
  if config_path and config_path.exists():
80
80
  logger.info(f"Serving config from: {config_path}")
81
81
  # Load config to potentially redact sensitive info before serving
82
- config_data = load_config(config_path)
82
+ config_data = config_loader.load_config(config_path)
83
83
  # Redact sensitive keys (e.g., api_key)
84
84
  if 'llm' in config_data:
85
85
  for profile in config_data['llm']: config_data['llm'][profile].pop('api_key', None)
@@ -109,5 +109,3 @@ def list_available_blueprints_api(request):
109
109
  except Exception as e:
110
110
  logger.error(f"Error listing blueprints via API: {e}", exc_info=True)
111
111
  return JsonResponse({"error": "Failed to list blueprints."}, status=500)
112
-
113
-
swarm/views/utils.py CHANGED
@@ -3,7 +3,7 @@ from django.conf import settings
3
3
  from asgiref.sync import sync_to_async, async_to_sync
4
4
 
5
5
  # Assuming the discovery functions are correctly located now
6
- from swarm.extensions.blueprint.blueprint_discovery import discover_blueprints
6
+ from swarm.core.blueprint_discovery import discover_blueprints
7
7
 
8
8
  logger = logging.getLogger(__name__)
9
9
 
swarm/views/web_views.py CHANGED
@@ -14,11 +14,11 @@ from django.contrib.auth.models import User
14
14
 
15
15
  from swarm.utils.logger_setup import setup_logger
16
16
  # Import the function to discover blueprints dynamically
17
- from swarm.extensions.blueprint.blueprint_discovery import discover_blueprints
17
+ from swarm.core.blueprint_discovery import discover_blueprints
18
18
  # Import the setting for the blueprints directory
19
19
  from swarm.settings import BLUEPRINTS_DIR
20
20
  # Import config loader if needed, or assume config is loaded elsewhere
21
- from swarm.extensions.config.config_loader import load_server_config
21
+ from swarm.core import config_loader, server_config
22
22
 
23
23
  logger = setup_logger(__name__)
24
24