feat(wechat): add send_file via CDN upload; fix _strip_md robustness

- Add WxBotClient.send_file() with AES-128-ECB encryption and CDN upload
- Extract [FILE:] tags before _clean() to preserve filenames
- Fix _strip_md: support 3+ backticks via backreference, stop stripping underscores
- Remove verbose key_info echo from update_working_checkpoint
This commit is contained in:
Liang Jiaqing
2026-03-23 17:55:20 +08:00
parent eb8834b9df
commit 60f40e3c5e
2 changed files with 63 additions and 14 deletions

2
ga.py
View File

@@ -430,8 +430,6 @@ class GenericAgentHandler(BaseHandler):
if "related_sop" in args: self.working['related_sop'] = related_sop
self.working['passed_sessions'] = 0
yield f"[Info] Updated key_info and related_sop.\n"
yield f"key_info:\n{self.working.get('key_info', '')}\n\n"
yield f"related_sop:\n{self.working.get('related_sop', '')}\n\n"
next_prompt = self._get_anchor_prompt()
#next_prompt += '\n[SYSTEM TIPS] 此函数一般在任务开始或中间时调用如果任务已成功完成应该是start_long_term_update用于结算长期记忆。\n'
return StepOutcome({"status": "success"}, next_prompt=next_prompt)