JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
feat(version): upgrade version to 0.2.0
xiaotian077a1eda96a191e
diff --git a/jiuwenclaw/common/version.py b/jiuwenclaw/common/version.pyindex 4cd418691c..a148edec31 100644--- a/jiuwenclaw/common/version.py+++ b/jiuwenclaw/common/version.py@@ -1,3 +1,3 @@from __future__ import annotations-__version__ = "0.1.11"+__version__ = "0.2.0"diff --git a/packages/jiuwenswarm-tui/pyproject.toml b/packages/jiuwenswarm-tui/pyproject.tomlindex 096da9eb53..1e6c9e613c 100644--- a/packages/jiuwenswarm-tui/pyproject.toml+++ b/packages/jiuwenswarm-tui/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "jiuwenswarm-tui"-version = "0.1.11"+version = "0.2.0"description = "Native terminal UI launcher for JiuwenSwarm"requires-python = ">=3.11,<3.14"license = { text = "Apache-2.0" }diff --git a/pyproject.toml b/pyproject.tomlindex 816d63d690..127d179455 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "jiuwenswarm"-version = "0.1.11"+version = "0.2.0"description = "JiuwenSwarm"requires-python = ">=3.11,<3.14"license = { text = "Apache-2.0" }@@ -42,7 +42,7 @@ dependencies = [[project.optional-dependencies]desktop = ["pywebview>=5.4"]dev = ["pyinstaller>=6.0.0", "pywebview>=5.4"]-tui = ["jiuwenswarm-tui==0.1.11"]+tui = ["jiuwenswarm-tui==0.2.0"]distribute = ["openjiuwen[postgres,zmq]"]shell-ast = ["tree-sitter>=0.25.0,<0.26.0",diff --git a/scripts/build-macos.sh b/scripts/build-macos.shindex 5498fb5056..2b9a57827b 100644--- a/scripts/build-macos.sh+++ b/scripts/build-macos.sh@@ -7,7 +7,7 @@ PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"APP_NAME="JiuwenSwarm.app"APP_PATH="$PROJECT_ROOT/dist/$APP_NAME"DMG_ROOT="$PROJECT_ROOT/dist/dmg-root"-VERSION="0.1.11"+VERSION="0.2.0"DMG_PATH="$PROJECT_ROOT/dist/JiuwenSwarm-$VERSION.dmg"printf '=== JiuwenSwarm macOS package build ===\n'diff --git a/scripts/installer.iss b/scripts/installer.issindex f9c2d18955..bf3b0ac6f1 100644--- a/scripts/installer.iss+++ b/scripts/installer.iss@@ -2,7 +2,7 @@; 用法: "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" scripts\installer.iss#define MyAppName "JiuwenSwarm"-#define MyAppVersion "0.1.11"+#define MyAppVersion "0.2.0"#define MyAppPublisher "openJiuwen"#define MyAppExeName "jiuwenswarm.exe"#define MyAppURL "https://openjiuwen.com"diff --git a/scripts/jiuwenclaw.spec b/scripts/jiuwenclaw.specindex 472b74e7b5..91463f1826 100644--- a/scripts/jiuwenclaw.spec+++ b/scripts/jiuwenclaw.spec@@ -178,8 +178,8 @@ if sys.platform == "darwin":info_plist={"CFBundleName": "JiuwenSwarm","CFBundleDisplayName": "JiuwenSwarm",- "CFBundleShortVersionString": "0.1.11",- "CFBundleVersion": "0.1.11",+ "CFBundleShortVersionString": "0.2.0",+ "CFBundleVersion": "0.2.0","NSHighResolutionCapable": "True",},)diff --git a/tests/unit_tests/evolution/test_schema.py b/tests/unit_tests/evolution/test_schema.pyindex 1256d1647d..01337cc992 100644--- a/tests/unit_tests/evolution/test_schema.py+++ b/tests/unit_tests/evolution/test_schema.py@@ -10,7 +10,7 @@ from openjiuwen.agent_evolving.checkpointing.types import (EvolutionPatch,VALID_SECTIONS,)-from openjiuwen.agent_evolving import EvolutionSignal, EvolutionTarget, EvolutionCategory+from openjiuwen.agent_evolving import EvolutionSignal, EvolutionTargetclass TestEvolutionTarget:@@ -322,17 +322,13 @@ class TestEvolutionSignal:"""Test creating an EvolutionSignal."""signal = EvolutionSignal(signal_type="execution_failure",- evolution_type=EvolutionCategory.SKILL_EXPERIENCE,section="Troubleshooting",excerpt="Error: File not found",- tool_name="file.read",skill_name="test-skill",)assert signal.signal_type == "execution_failure"- assert signal.evolution_type == EvolutionCategory.SKILL_EXPERIENCEassert signal.section == "Troubleshooting"assert signal.excerpt == "Error: File not found"- assert signal.tool_name == "file.read"assert signal.skill_name == "test-skill"@staticmethod@@ -340,7 +336,6 @@ class TestEvolutionSignal:"""Test converting EvolutionSignal to dict."""signal = EvolutionSignal(signal_type="user_correction",- evolution_type=EvolutionCategory.SKILL_EXPERIENCE,section="Examples",excerpt="You should do it this way",skill_name="my-skill",@@ -348,21 +343,17 @@ class TestEvolutionSignal:result = signal.to_dict()# Note: to_dict returns 'type' (not 'signal_type') for compatibilityassert result["type"] == "user_correction"- assert result["evolution_type"] == "skill_experience"assert result["section"] == "Examples"assert result["excerpt"] == "You should do it this way"assert result["skill_name"] == "my-skill"- assert result["tool_name"] is None@staticmethoddef test_evolution_signal_with_optional_fields():"""Test EvolutionSignal with None optional fields."""signal = EvolutionSignal(signal_type="execution_failure",- evolution_type=EvolutionCategory.NEW_SKILL,section="Instructions",excerpt="Some error",)result = signal.to_dict()- assert result["tool_name"] is Noneassert result["skill_name"] is Nonediff --git a/tests/unit_tests/evolution/test_signal_detector.py b/tests/unit_tests/evolution/test_signal_detector.pyindex 49c857e8be..3a03c24ef3 100644--- a/tests/unit_tests/evolution/test_signal_detector.py+++ b/tests/unit_tests/evolution/test_signal_detector.py@@ -42,30 +42,28 @@ class TestSignalDetector:assert "Command failed" in signals[0].excerpt@staticmethod- def test_detect_user_correction_chinese():- """Test detecting user correction signals in Chinese."""+ def test_detect_no_user_correction():+ """Test that user correction signals are not detected (feature removed)."""detector = SignalDetector()messages = [{"role": "assistant", "content": "Here's the result"},{"role": "user", "content": "不对,应该这样做"},]signals = detector.detect(messages)- assert len(signals) == 1- assert signals[0].signal_type == "user_correction"- assert signals[0].section == "Examples"+ # User correction detection is no longer supported+ assert len(signals) == 0@staticmethod- def test_detect_user_correction_english():- """Test detecting user correction signals in English."""+ def test_detect_no_user_correction_english():+ """Test that user correction signals are not detected (feature removed)."""detector = SignalDetector()messages = [{"role": "assistant", "content": "Here's the result"},{"role": "user", "content": "That's wrong, you should use method X"},]signals = detector.detect(messages)- assert len(signals) == 1- assert signals[0].signal_type == "user_correction"- assert signals[0].section == "Examples"+ # User correction detection is no longer supported+ assert len(signals) == 0@staticmethoddef test_detect_multiple_signals():@@ -78,7 +76,6 @@ class TestSignalDetector:"content": "Error: Connection timeout","name": "http.request",},- {"role": "user", "content": "不对,重新来"},{"role": "tool","content": "TypeError: NoneType has no attribute",@@ -86,7 +83,8 @@ class TestSignalDetector:},]signals = detector.detect(messages)- assert len(signals) >= 2+ # Two execution failure signals should be detected+ assert len(signals) == 2@staticmethoddef test_deduplicate_signals():@@ -208,6 +206,6 @@ class TestSignalDetector:assert len(signals) == 1signal_dict = signals[0].to_dict()assert "type" in signal_dict- assert "evolution_type" in signal_dictassert "section" in signal_dictassert "excerpt" in signal_dict+ assert "skill_name" in signal_dictdiff --git a/uv.lock b/uv.lockindex 70214e401a..b72b3e5e59 100644--- a/uv.lock+++ b/uv.lock@@ -1508,7 +1508,7 @@ wheels = [[[package]]name = "jiuwenswarm"-version = "0.1.11"+version = "0.2.0"source = { editable = "." }dependencies = [{ name = "a2a-sdk", extra = ["http-server"] },@@ -1644,7 +1644,7 @@ test = [[[package]]name = "jiuwenswarm-tui"-version = "0.1.11"+version = "0.2.0"source = { directory = "packages/jiuwenswarm-tui" }[[package]]@@ -2333,7 +2333,7 @@ wheels = [[[package]]name = "openjiuwen"version = "0.1.12"-source = { git = "https://gitcode.com/openJiuwen/agent-core.git?rev=develop#30e894061ef93aec9bbd379ab7e1e4dab0eb5e1a" }+source = { git = "https://gitcode.com/openJiuwen/agent-core.git?rev=develop#74cee07c19a2c72c9798f93363574be1a580e803" }dependencies = [{ name = "aiofiles" },{ name = "aiohttp" },