open-swarm 0.1.1744942884__py3-none-any.whl → 0.1.1744943085__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.
- {open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/METADATA +1 -1
- {open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/RECORD +44 -24
- swarm/blueprints/digitalbutlers/blueprint_digitalbutlers.py +1 -1
- swarm/blueprints/divine_code/blueprint_divine_code.py +1 -1
- swarm/blueprints/django_chat/blueprint_django_chat.py +1 -1
- swarm/blueprints/echocraft/blueprint_echocraft.py +1 -1
- swarm/blueprints/family_ties/blueprint_family_ties.py +1 -1
- swarm/blueprints/mcp_demo/blueprint_mcp_demo.py +30 -1
- swarm/blueprints/mission_improbable/blueprint_mission_improbable.py +1 -1
- swarm/blueprints/monkai_magic/blueprint_monkai_magic.py +1 -1
- swarm/blueprints/nebula_shellz/blueprint_nebula_shellz.py +29 -1
- swarm/blueprints/omniplex/blueprint_omniplex.py +28 -18
- swarm/blueprints/rue_code/blueprint_rue_code.py +1 -1
- swarm/blueprints/suggestion/blueprint_suggestion.py +1 -1
- swarm/blueprints/unapologetic_press/blueprint_unapologetic_press.py +1 -1
- swarm/core/agent_utils.py +21 -0
- swarm/core/blueprint_base.py +395 -0
- swarm/core/blueprint_discovery.py +128 -0
- swarm/core/blueprint_runner.py +59 -0
- swarm/core/blueprint_utils.py +17 -0
- swarm/core/build_launchers.py +14 -0
- swarm/core/build_swarm_wrapper.py +12 -0
- swarm/core/common_utils.py +12 -0
- swarm/core/config_loader.py +122 -0
- swarm/core/config_manager.py +274 -0
- swarm/core/output_utils.py +173 -0
- swarm/core/server_config.py +81 -0
- swarm/core/setup_wizard.py +103 -0
- swarm/core/slash_commands.py +17 -0
- swarm/core/spinner.py +100 -0
- swarm/core/swarm_api.py +68 -0
- swarm/core/swarm_cli.py +216 -0
- swarm/core/swarm_wrapper.py +29 -0
- swarm/core/utils/__init__.py +0 -0
- swarm/core/utils/logger.py +36 -0
- swarm/extensions/cli/commands/blueprint_management.py +3 -3
- swarm/extensions/cli/commands/config_management.py +5 -6
- swarm/extensions/cli/commands/edit_config.py +8 -6
- swarm/extensions/cli/commands/list_blueprints.py +1 -1
- swarm/extensions/cli/commands/validate_env.py +3 -3
- swarm/extensions/cli/commands/validate_envvars.py +6 -6
- {open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/WHEEL +0 -0
- {open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/entry_points.txt +0 -0
- {open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import os
|
2
2
|
import argparse
|
3
|
-
from swarm.
|
4
|
-
from swarm.
|
3
|
+
from swarm.core import config_loader, config_manager, server_config
|
4
|
+
from swarm.core.blueprint_base import BlueprintBase
|
5
5
|
|
6
6
|
CONFIG_PATH = "swarm_config.json"
|
7
7
|
|
@@ -43,7 +43,7 @@ def main():
|
|
43
43
|
args = parser.parse_args()
|
44
44
|
|
45
45
|
try:
|
46
|
-
config = load_server_config(CONFIG_PATH)
|
46
|
+
config = server_config.load_server_config(CONFIG_PATH)
|
47
47
|
except FileNotFoundError as e:
|
48
48
|
print(f"Error: {e}")
|
49
49
|
return
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from swarm.
|
2
|
-
from swarm.
|
1
|
+
from swarm.core.blueprint_discovery import discover_blueprints
|
2
|
+
from swarm.core import config_loader, config_manager, server_config
|
3
3
|
import argparse
|
4
4
|
|
5
5
|
def validate_envvars(blueprint_name=None):
|
@@ -19,16 +19,16 @@ def validate_envvars(blueprint_name=None):
|
|
19
19
|
print(f"Blueprint '{blueprint_name}' not found.")
|
20
20
|
return
|
21
21
|
required_vars = blueprint.get("env_vars", [])
|
22
|
-
env_vars = load_env_config()
|
23
|
-
validation = validate_env_vars(env_vars, required_vars)
|
22
|
+
env_vars = config_loader.load_env_config()
|
23
|
+
validation = config_manager.validate_env_vars(env_vars, required_vars)
|
24
24
|
print(f"Validation for '{blueprint_name}': {validation}")
|
25
25
|
else:
|
26
26
|
# Global validation
|
27
|
-
env_vars = load_env_config()
|
27
|
+
env_vars = config_loader.load_env_config()
|
28
28
|
print("Global Environment Validation:")
|
29
29
|
for blueprint_name, blueprint_data in blueprints.items():
|
30
30
|
required_vars = blueprint_data.get("env_vars", [])
|
31
|
-
validation = validate_env_vars(env_vars, required_vars)
|
31
|
+
validation = config_manager.validate_env_vars(env_vars, required_vars)
|
32
32
|
print(f"Validation for '{blueprint_name}': {validation}")
|
33
33
|
|
34
34
|
def main():
|
File without changes
|
{open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/entry_points.txt
RENAMED
File without changes
|
{open_swarm-0.1.1744942884.dist-info → open_swarm-0.1.1744943085.dist-info}/licenses/LICENSE
RENAMED
File without changes
|