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
fix: 修复 heartbeat 与 browser-move 中的安全拼写问题
luojiyin877b695ddb655b
diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.pyindex 58ddc50ffd..551099e93b 100644--- a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.py+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.py@@ -409,7 +409,7 @@ Please evaluate on a scale of 0-100 how well the function execution result addre2. Is the result accurate and complete?3. Does it align with the expected answer?-Respond with only a number between 0 and 100. Do not include explainations.+Respond with only a number between 0 and 100. Do not include explanations."""try:@@ -448,4 +448,4 @@ Respond with only a number between 0 and 100. Do not include explainations.except Exception as e:logger.error(f"Error in simple output comparison: {str(e)}")- return 0.0\ No newline at end of file+ return 0.0diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.pyindex c11da8ac1b..fd1dd0f1d9 100644--- a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.py+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.py@@ -129,7 +129,7 @@ Input:def clean_and_deduplicate(self, data: dict) -> dict:prompt = f"""-Given a tool description JSON, go throught the content sentence+Given a tool description JSON, go through the content sentenceby sentence and perform the following cleaning tasks:1. Remove usage example in the main tool descriptiondiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.pyindex 0c098cefe6..8a1792e327 100644--- a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.py+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.py@@ -512,7 +512,7 @@ Return JSON following this exact schema structure (modify only description textsmax_num_examples = self.config['num_examples_for_desc']if os.path.exists(examples_path):- # load from privided path+ # load from provided pathwith open(examples_path, 'r', encoding='utf-8') as f:all_outputs = json.load(f)else:diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.pyindex c9ba653dc5..86c7d6e742 100644--- a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.py+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.py@@ -209,7 +209,7 @@ class QuestionerEndState(QuestionerState):def handle_event(self, event: QuestionerEvent):if event == QuestionerEvent.START_EVENT:- return QuestionerState().handle_event(event) # loop back to STRAT state+ return QuestionerState().handle_event(event) # loop back to START statereturn selfdiff --git a/jiuwenclaw/gateway/heartbeat.py b/jiuwenclaw/gateway/heartbeat.pyindex 76fd550116..d45935abf7 100644--- a/jiuwenclaw/gateway/heartbeat.py+++ b/jiuwenclaw/gateway/heartbeat.py@@ -21,7 +21,7 @@ HEARTBEAT_CHANNEL_ID = "__heartbeat__"HEARTBEAT_OK = "HEARTBEAT_OK"# 探活请求发送的 content,AgentServer 可识别为心跳-HEARTBEAT_PROMPT = "如果你的workspace目录存在HEARBEAT.md文件, 读取文件内容并且根据文件内容执行任务. 如果没有HEARBEAT.md文件, 仅回复HEARTBEAT_OK"+HEARTBEAT_PROMPT = "如果你的workspace目录存在HEARTBEAT.md文件, 读取文件内容并且根据文件内容执行任务. 如果没有HEARTBEAT.md文件, 仅回复HEARTBEAT_OK"def normalize_active_hours(active_hours: dict[str, str] | None) -> dict[str, str] | None: