Skip to content

Commit 621b188

Browse files
committed
fix: priortized toml agent file
1 parent 110202a commit 621b188

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

AgentCrew/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.7.3"
1+
__version__ = "0.7.4"

AgentCrew/modules/agents/manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def load_agents_from_config(config_uri: str) -> list:
3939

4040
# Create temporary file
4141
suffix = (
42-
".toml"
43-
if "toml" in response.headers.get("content-type", "")
44-
else ".json"
42+
".json"
43+
if "json" in response.headers.get("content-type", "")
44+
else ".toml"
4545
)
4646
temp_file = tempfile.NamedTemporaryFile(
4747
mode="w", suffix=suffix, delete=False, encoding="utf-8"

AgentCrew/modules/config/config_management.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -773,9 +773,9 @@ def import_agents(
773773

774774
# Create temporary file
775775
suffix = (
776-
".toml"
777-
if "toml" in response.headers.get("content-type", "")
778-
else ".json"
776+
".json"
777+
if "json" in response.headers.get("content-type", "")
778+
else ".toml"
779779
)
780780
temp_file = tempfile.NamedTemporaryFile(
781781
mode="w", suffix=suffix, delete=False, encoding="utf-8"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentcrew-ai"
3-
version = "0.7.3"
3+
version = "0.7.4"
44
requires-python = ">=3.12"
55
classifiers = [
66
"Programming Language :: Python :: 3",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)