Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
Merge branch 'main' into pr-1361
Re-binc2bbd6d20dd8
diff --cc nanobot/channels/feishu.pyindex f6ba74a4e,5a86e732d..6bc0ebde5--- a/nanobot/channels/feishu.py+++ b/nanobot/channels/feishu.py@@@ -220,34 -219,20 +219,34 @@@ def _extract_post_content(content_jsonimage_keys.append(img_key)text = " ".join(text_parts).strip() if text_parts else Nonereturn text, image_keys-++ # Compatible with both shapes:+ # 1) {"post": {"zh_cn": {...}}}+ # 2) {"zh_cn": {...}} or {"title": "...", "content": [...]}+ post_root = content_json.get("post") if isinstance(content_json, dict) else None+ if not isinstance(post_root, dict):+ post_root = content_json if isinstance(content_json, dict) else {}+# Try direct format first- if "content" in content_json:- text, images = extract_from_lang(content_json)+ if "content" in post_root:+ text, images = extract_from_lang(post_root)if text or images:return text or "", images-+# Try localized formatfor lang_key in ("zh_cn", "en_us", "ja_jp"):- lang_content = content_json.get(lang_key)+ lang_content = post_root.get(lang_key)text, images = extract_from_lang(lang_content)if text or images:return text or "", images+ # Fallback: first dict-shaped child+ for value in post_root.values():+ if isinstance(value, dict):+ text, images = extract_from_lang(value)+ if text or images:+ return text or "", images-++return "", []