AstrBot 4.5.1__tar.gz → 4.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (898) hide show
  1. astrbot-4.5.2/.dockerignore +22 -0
  2. astrbot-4.5.2/.gitignore +49 -0
  3. astrbot-4.5.2/Dockerfile +32 -0
  4. astrbot-4.5.2/Dockerfile_with_node +40 -0
  5. astrbot-4.5.2/PKG-INFO +303 -0
  6. astrbot-4.5.2/astrbot/api/__init__.py +19 -0
  7. astrbot-4.5.2/astrbot/api/event/__init__.py +17 -0
  8. astrbot-4.5.2/astrbot/api/event/filter/__init__.py +52 -0
  9. astrbot-4.5.2/astrbot/api/platform/__init__.py +22 -0
  10. astrbot-4.5.2/astrbot/api/provider/__init__.py +17 -0
  11. astrbot-4.5.2/astrbot/api/star/__init__.py +7 -0
  12. astrbot-4.5.2/astrbot/api/util/__init__.py +7 -0
  13. astrbot-4.5.2/astrbot/cli/__main__.py +59 -0
  14. astrbot-4.5.2/astrbot/cli/commands/__init__.py +6 -0
  15. astrbot-4.5.2/astrbot/cli/commands/cmd_conf.py +209 -0
  16. astrbot-4.5.2/astrbot/cli/commands/cmd_init.py +56 -0
  17. astrbot-4.5.2/astrbot/cli/commands/cmd_plug.py +245 -0
  18. astrbot-4.5.2/astrbot/cli/commands/cmd_run.py +62 -0
  19. astrbot-4.5.2/astrbot/cli/utils/__init__.py +18 -0
  20. astrbot-4.5.2/astrbot/cli/utils/basic.py +76 -0
  21. astrbot-4.5.2/astrbot/cli/utils/plugin.py +246 -0
  22. astrbot-4.5.2/astrbot/cli/utils/version_comparator.py +90 -0
  23. astrbot-4.5.2/astrbot/core/__init__.py +31 -0
  24. astrbot-4.5.2/astrbot/core/agent/agent.py +14 -0
  25. astrbot-4.5.2/astrbot/core/agent/handoff.py +38 -0
  26. astrbot-4.5.2/astrbot/core/agent/hooks.py +30 -0
  27. astrbot-4.5.2/astrbot/core/agent/mcp_client.py +259 -0
  28. astrbot-4.5.2/astrbot/core/agent/message.py +168 -0
  29. astrbot-4.5.2/astrbot/core/agent/response.py +14 -0
  30. astrbot-4.5.2/astrbot/core/agent/run_context.py +17 -0
  31. astrbot-4.5.2/astrbot/core/agent/runners/base.py +55 -0
  32. astrbot-4.5.2/astrbot/core/agent/runners/tool_loop_agent_runner.py +358 -0
  33. astrbot-4.5.2/astrbot/core/agent/tool.py +286 -0
  34. astrbot-4.5.2/astrbot/core/agent/tool_executor.py +17 -0
  35. astrbot-4.5.2/astrbot/core/astr_agent_context.py +14 -0
  36. astrbot-4.5.2/astrbot/core/astrbot_config_mgr.py +275 -0
  37. astrbot-4.5.2/astrbot/core/config/__init__.py +9 -0
  38. astrbot-4.5.2/astrbot/core/config/astrbot_config.py +172 -0
  39. astrbot-4.5.2/astrbot/core/config/default.py +2722 -0
  40. astrbot-4.5.2/astrbot/core/conversation_mgr.py +409 -0
  41. astrbot-4.5.2/astrbot/core/core_lifecycle.py +330 -0
  42. astrbot-4.5.2/astrbot/core/db/__init__.py +315 -0
  43. astrbot-4.5.2/astrbot/core/db/migration/helper.py +69 -0
  44. astrbot-4.5.2/astrbot/core/db/migration/migra_3_to_4.py +357 -0
  45. astrbot-4.5.2/astrbot/core/db/migration/migra_45_to_46.py +44 -0
  46. astrbot-4.5.2/astrbot/core/db/migration/shared_preferences_v3.py +48 -0
  47. astrbot-4.5.2/astrbot/core/db/migration/sqlite_v3.py +497 -0
  48. astrbot-4.5.2/astrbot/core/db/po.py +257 -0
  49. astrbot-4.5.2/astrbot/core/db/sqlite.py +711 -0
  50. astrbot-4.5.2/astrbot/core/db/vec_db/base.py +73 -0
  51. astrbot-4.5.2/astrbot/core/db/vec_db/faiss_impl/document_storage.py +392 -0
  52. astrbot-4.5.2/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +93 -0
  53. astrbot-4.5.2/astrbot/core/db/vec_db/faiss_impl/vec_db.py +204 -0
  54. astrbot-4.5.2/astrbot/core/event_bus.py +61 -0
  55. astrbot-4.5.2/astrbot/core/file_token_service.py +98 -0
  56. astrbot-4.5.2/astrbot/core/initial_loader.py +57 -0
  57. astrbot-4.5.2/astrbot/core/knowledge_base/chunking/__init__.py +9 -0
  58. astrbot-4.5.2/astrbot/core/knowledge_base/chunking/base.py +25 -0
  59. astrbot-4.5.2/astrbot/core/knowledge_base/chunking/fixed_size.py +59 -0
  60. astrbot-4.5.2/astrbot/core/knowledge_base/chunking/recursive.py +161 -0
  61. astrbot-4.5.2/astrbot/core/knowledge_base/kb_db_sqlite.py +301 -0
  62. astrbot-4.5.2/astrbot/core/knowledge_base/kb_helper.py +361 -0
  63. astrbot-4.5.2/astrbot/core/knowledge_base/kb_mgr.py +286 -0
  64. astrbot-4.5.2/astrbot/core/knowledge_base/models.py +120 -0
  65. astrbot-4.5.2/astrbot/core/knowledge_base/parsers/__init__.py +13 -0
  66. astrbot-4.5.2/astrbot/core/knowledge_base/parsers/base.py +51 -0
  67. astrbot-4.5.2/astrbot/core/knowledge_base/parsers/markitdown_parser.py +26 -0
  68. astrbot-4.5.2/astrbot/core/knowledge_base/parsers/pdf_parser.py +101 -0
  69. astrbot-4.5.2/astrbot/core/knowledge_base/parsers/text_parser.py +42 -0
  70. astrbot-4.5.2/astrbot/core/knowledge_base/parsers/util.py +13 -0
  71. astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/__init__.py +14 -0
  72. astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/manager.py +276 -0
  73. astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/rank_fusion.py +142 -0
  74. astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +136 -0
  75. astrbot-4.5.2/astrbot/core/log.py +254 -0
  76. astrbot-4.5.2/astrbot/core/message/components.py +809 -0
  77. astrbot-4.5.2/astrbot/core/message/message_event_result.py +233 -0
  78. astrbot-4.5.2/astrbot/core/persona_mgr.py +192 -0
  79. astrbot-4.5.2/astrbot/core/pipeline/__init__.py +41 -0
  80. astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/stage.py +41 -0
  81. astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +7 -0
  82. astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +29 -0
  83. astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +24 -0
  84. astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +34 -0
  85. astrbot-4.5.2/astrbot/core/pipeline/context.py +18 -0
  86. astrbot-4.5.2/astrbot/core/pipeline/context_utils.py +172 -0
  87. astrbot-4.5.2/astrbot/core/pipeline/preprocess_stage/stage.py +100 -0
  88. astrbot-4.5.2/astrbot/core/pipeline/process_stage/method/llm_request.py +723 -0
  89. astrbot-4.5.2/astrbot/core/pipeline/process_stage/method/star_request.py +61 -0
  90. astrbot-4.5.2/astrbot/core/pipeline/process_stage/stage.py +71 -0
  91. astrbot-4.5.2/astrbot/core/pipeline/process_stage/utils.py +81 -0
  92. astrbot-4.5.2/astrbot/core/pipeline/rate_limit_check/stage.py +99 -0
  93. astrbot-4.5.2/astrbot/core/pipeline/respond/stage.py +273 -0
  94. astrbot-4.5.2/astrbot/core/pipeline/result_decorate/stage.py +317 -0
  95. astrbot-4.5.2/astrbot/core/pipeline/scheduler.py +84 -0
  96. astrbot-4.5.2/astrbot/core/pipeline/session_status_check/stage.py +37 -0
  97. astrbot-4.5.2/astrbot/core/pipeline/stage.py +45 -0
  98. astrbot-4.5.2/astrbot/core/pipeline/waking_check/stage.py +201 -0
  99. astrbot-4.5.2/astrbot/core/pipeline/whitelist_check/stage.py +68 -0
  100. astrbot-4.5.2/astrbot/core/platform/__init__.py +14 -0
  101. astrbot-4.5.2/astrbot/core/platform/astr_message_event.py +403 -0
  102. astrbot-4.5.2/astrbot/core/platform/astrbot_message.py +89 -0
  103. astrbot-4.5.2/astrbot/core/platform/manager.py +198 -0
  104. astrbot-4.5.2/astrbot/core/platform/message_session.py +30 -0
  105. astrbot-4.5.2/astrbot/core/platform/platform.py +51 -0
  106. astrbot-4.5.2/astrbot/core/platform/platform_metadata.py +18 -0
  107. astrbot-4.5.2/astrbot/core/platform/register.py +51 -0
  108. astrbot-4.5.2/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +237 -0
  109. astrbot-4.5.2/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +421 -0
  110. astrbot-4.5.2/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +249 -0
  111. astrbot-4.5.2/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +79 -0
  112. astrbot-4.5.2/astrbot/core/platform/sources/discord/client.py +129 -0
  113. astrbot-4.5.2/astrbot/core/platform/sources/discord/components.py +139 -0
  114. astrbot-4.5.2/astrbot/core/platform/sources/discord/discord_platform_adapter.py +470 -0
  115. astrbot-4.5.2/astrbot/core/platform/sources/discord/discord_platform_event.py +304 -0
  116. astrbot-4.5.2/astrbot/core/platform/sources/lark/lark_adapter.py +238 -0
  117. astrbot-4.5.2/astrbot/core/platform/sources/lark/lark_event.py +144 -0
  118. astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_adapter.py +767 -0
  119. astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_api.py +964 -0
  120. astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_event.py +163 -0
  121. astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_utils.py +550 -0
  122. astrbot-4.5.2/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +329 -0
  123. astrbot-4.5.2/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +227 -0
  124. astrbot-4.5.2/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +143 -0
  125. astrbot-4.5.2/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +17 -0
  126. astrbot-4.5.2/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +116 -0
  127. astrbot-4.5.2/astrbot/core/platform/sources/satori/satori_adapter.py +792 -0
  128. astrbot-4.5.2/astrbot/core/platform/sources/satori/satori_event.py +432 -0
  129. astrbot-4.5.2/astrbot/core/platform/sources/slack/client.py +164 -0
  130. astrbot-4.5.2/astrbot/core/platform/sources/slack/slack_adapter.py +414 -0
  131. astrbot-4.5.2/astrbot/core/platform/sources/slack/slack_event.py +253 -0
  132. astrbot-4.5.2/astrbot/core/platform/sources/telegram/tg_adapter.py +428 -0
  133. astrbot-4.5.2/astrbot/core/platform/sources/telegram/tg_event.py +296 -0
  134. astrbot-4.5.2/astrbot/core/platform/sources/webchat/webchat_adapter.py +171 -0
  135. astrbot-4.5.2/astrbot/core/platform/sources/webchat/webchat_event.py +141 -0
  136. astrbot-4.5.2/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +923 -0
  137. astrbot-4.5.2/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +162 -0
  138. astrbot-4.5.2/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +159 -0
  139. astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_adapter.py +385 -0
  140. astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_event.py +225 -0
  141. astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_kf.py +279 -0
  142. astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_kf_message.py +196 -0
  143. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +297 -0
  144. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +15 -0
  145. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +19 -0
  146. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +469 -0
  147. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +417 -0
  148. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +148 -0
  149. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +157 -0
  150. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +168 -0
  151. astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +209 -0
  152. astrbot-4.5.2/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +303 -0
  153. astrbot-4.5.2/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +186 -0
  154. astrbot-4.5.2/astrbot/core/platform_message_history_mgr.py +49 -0
  155. astrbot-4.5.2/astrbot/core/provider/__init__.py +4 -0
  156. astrbot-4.5.2/astrbot/core/provider/entites.py +19 -0
  157. astrbot-4.5.2/astrbot/core/provider/entities.py +302 -0
  158. astrbot-4.5.2/astrbot/core/provider/func_tool_manager.py +574 -0
  159. astrbot-4.5.2/astrbot/core/provider/manager.py +515 -0
  160. astrbot-4.5.2/astrbot/core/provider/provider.py +311 -0
  161. astrbot-4.5.2/astrbot/core/provider/register.py +51 -0
  162. astrbot-4.5.2/astrbot/core/provider/sources/anthropic_source.py +414 -0
  163. astrbot-4.5.2/astrbot/core/provider/sources/azure_tts_source.py +224 -0
  164. astrbot-4.5.2/astrbot/core/provider/sources/coze_api_client.py +324 -0
  165. astrbot-4.5.2/astrbot/core/provider/sources/coze_source.py +652 -0
  166. astrbot-4.5.2/astrbot/core/provider/sources/dashscope_source.py +209 -0
  167. astrbot-4.5.2/astrbot/core/provider/sources/dashscope_tts.py +162 -0
  168. astrbot-4.5.2/astrbot/core/provider/sources/dify_source.py +287 -0
  169. astrbot-4.5.2/astrbot/core/provider/sources/edge_tts_source.py +126 -0
  170. astrbot-4.5.2/astrbot/core/provider/sources/fishaudio_tts_api_source.py +150 -0
  171. astrbot-4.5.2/astrbot/core/provider/sources/gemini_embedding_source.py +61 -0
  172. astrbot-4.5.2/astrbot/core/provider/sources/gemini_source.py +739 -0
  173. astrbot-4.5.2/astrbot/core/provider/sources/gemini_tts_source.py +81 -0
  174. astrbot-4.5.2/astrbot/core/provider/sources/gsv_selfhosted_source.py +151 -0
  175. astrbot-4.5.2/astrbot/core/provider/sources/gsvi_tts_source.py +59 -0
  176. astrbot-4.5.2/astrbot/core/provider/sources/minimax_tts_api_source.py +159 -0
  177. astrbot-4.5.2/astrbot/core/provider/sources/openai_embedding_source.py +40 -0
  178. astrbot-4.5.2/astrbot/core/provider/sources/openai_source.py +603 -0
  179. astrbot-4.5.2/astrbot/core/provider/sources/openai_tts_api_source.py +52 -0
  180. astrbot-4.5.2/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +106 -0
  181. astrbot-4.5.2/astrbot/core/provider/sources/vllm_rerank_source.py +71 -0
  182. astrbot-4.5.2/astrbot/core/provider/sources/volcengine_tts.py +115 -0
  183. astrbot-4.5.2/astrbot/core/provider/sources/whisper_api_source.py +77 -0
  184. astrbot-4.5.2/astrbot/core/provider/sources/whisper_selfhosted_source.py +79 -0
  185. astrbot-4.5.2/astrbot/core/provider/sources/xinference_rerank_source.py +116 -0
  186. astrbot-4.5.2/astrbot/core/provider/sources/xinference_stt_provider.py +197 -0
  187. astrbot-4.5.2/astrbot/core/star/__init__.py +64 -0
  188. astrbot-4.5.2/astrbot/core/star/config.py +84 -0
  189. astrbot-4.5.2/astrbot/core/star/context.py +375 -0
  190. astrbot-4.5.2/astrbot/core/star/filter/__init__.py +15 -0
  191. astrbot-4.5.2/astrbot/core/star/filter/command.py +219 -0
  192. astrbot-4.5.2/astrbot/core/star/filter/command_group.py +134 -0
  193. astrbot-4.5.2/astrbot/core/star/filter/custom_filter.py +62 -0
  194. astrbot-4.5.2/astrbot/core/star/filter/event_message_type.py +33 -0
  195. astrbot-4.5.2/astrbot/core/star/filter/permission.py +29 -0
  196. astrbot-4.5.2/astrbot/core/star/filter/platform_adapter_type.py +71 -0
  197. astrbot-4.5.2/astrbot/core/star/filter/regex.py +18 -0
  198. astrbot-4.5.2/astrbot/core/star/register/__init__.py +37 -0
  199. astrbot-4.5.2/astrbot/core/star/register/star.py +66 -0
  200. astrbot-4.5.2/astrbot/core/star/register/star_handler.py +520 -0
  201. astrbot-4.5.2/astrbot/core/star/session_llm_manager.py +280 -0
  202. astrbot-4.5.2/astrbot/core/star/session_plugin_manager.py +170 -0
  203. astrbot-4.5.2/astrbot/core/star/star.py +68 -0
  204. astrbot-4.5.2/astrbot/core/star/star_handler.py +147 -0
  205. astrbot-4.5.2/astrbot/core/star/star_manager.py +971 -0
  206. astrbot-4.5.2/astrbot/core/star/star_tools.py +314 -0
  207. astrbot-4.5.2/astrbot/core/star/updator.py +81 -0
  208. astrbot-4.5.2/astrbot/core/umop_config_router.py +87 -0
  209. astrbot-4.5.2/astrbot/core/updator.py +125 -0
  210. astrbot-4.5.2/astrbot/core/utils/astrbot_path.py +39 -0
  211. astrbot-4.5.2/astrbot/core/utils/dify_api_client.py +157 -0
  212. astrbot-4.5.2/astrbot/core/utils/io.py +287 -0
  213. astrbot-4.5.2/astrbot/core/utils/log_pipe.py +36 -0
  214. astrbot-4.5.2/astrbot/core/utils/metrics.py +75 -0
  215. astrbot-4.5.2/astrbot/core/utils/path_util.py +71 -0
  216. astrbot-4.5.2/astrbot/core/utils/pip_installer.py +62 -0
  217. astrbot-4.5.2/astrbot/core/utils/session_waiter.py +197 -0
  218. astrbot-4.5.2/astrbot/core/utils/shared_preferences.py +205 -0
  219. astrbot-4.5.2/astrbot/core/utils/t2i/__init__.py +16 -0
  220. astrbot-4.5.2/astrbot/core/utils/t2i/network_strategy.py +137 -0
  221. astrbot-4.5.2/astrbot/core/utils/t2i/renderer.py +61 -0
  222. astrbot-4.5.2/astrbot/core/utils/t2i/template_manager.py +111 -0
  223. astrbot-4.5.2/astrbot/core/utils/tencent_record_helper.py +166 -0
  224. astrbot-4.5.2/astrbot/core/utils/version_comparator.py +85 -0
  225. astrbot-4.5.2/astrbot/core/zip_updator.py +236 -0
  226. astrbot-4.5.2/astrbot/dashboard/routes/__init__.py +31 -0
  227. astrbot-4.5.2/astrbot/dashboard/routes/auth.py +89 -0
  228. astrbot-4.5.2/astrbot/dashboard/routes/chat.py +340 -0
  229. astrbot-4.5.2/astrbot/dashboard/routes/config.py +961 -0
  230. astrbot-4.5.2/astrbot/dashboard/routes/conversation.py +285 -0
  231. astrbot-4.5.2/astrbot/dashboard/routes/file.py +26 -0
  232. astrbot-4.5.2/astrbot/dashboard/routes/knowledge_base.py +1072 -0
  233. astrbot-4.5.2/astrbot/dashboard/routes/log.py +69 -0
  234. astrbot-4.5.2/astrbot/dashboard/routes/persona.py +202 -0
  235. astrbot-4.5.2/astrbot/dashboard/routes/plugin.py +515 -0
  236. astrbot-4.5.2/astrbot/dashboard/routes/route.py +57 -0
  237. astrbot-4.5.2/astrbot/dashboard/routes/session_management.py +688 -0
  238. astrbot-4.5.2/astrbot/dashboard/routes/stat.py +185 -0
  239. astrbot-4.5.2/astrbot/dashboard/routes/t2i.py +233 -0
  240. astrbot-4.5.2/astrbot/dashboard/routes/tools.py +346 -0
  241. astrbot-4.5.2/astrbot/dashboard/routes/update.py +170 -0
  242. astrbot-4.5.2/astrbot/dashboard/server.py +238 -0
  243. astrbot-4.5.2/astrbot/dashboard/utils.py +165 -0
  244. astrbot-4.5.2/changelogs/v4.5.2.md +8 -0
  245. astrbot-4.5.2/dashboard/.gitignore +3 -0
  246. astrbot-4.5.2/dashboard/src/components/shared/ExtensionCard.vue +255 -0
  247. astrbot-4.5.2/dashboard/src/components/shared/SidebarCustomizer.vue +290 -0
  248. astrbot-4.5.2/dashboard/src/components/shared/UninstallConfirmDialog.vue +135 -0
  249. astrbot-4.5.2/dashboard/src/i18n/locales/en-US/core/actions.json +23 -0
  250. astrbot-4.5.2/dashboard/src/i18n/locales/en-US/features/extension.json +166 -0
  251. astrbot-4.5.2/dashboard/src/i18n/locales/en-US/features/settings.json +33 -0
  252. astrbot-4.5.2/dashboard/src/i18n/locales/en-US/messages/validation.json +25 -0
  253. astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/core/actions.json +23 -0
  254. astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/features/extension.json +166 -0
  255. astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/features/settings.json +33 -0
  256. astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/messages/validation.json +25 -0
  257. astrbot-4.5.2/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +350 -0
  258. astrbot-4.5.2/dashboard/src/utils/sidebarCustomization.js +99 -0
  259. astrbot-4.5.2/dashboard/src/views/ExtensionPage.vue +1090 -0
  260. astrbot-4.5.2/dashboard/src/views/Settings.vue +68 -0
  261. astrbot-4.5.2/main.py +105 -0
  262. astrbot-4.5.2/packages/astrbot/commands/__init__.py +31 -0
  263. astrbot-4.5.2/packages/astrbot/commands/admin.py +76 -0
  264. astrbot-4.5.2/packages/astrbot/commands/alter_cmd.py +173 -0
  265. astrbot-4.5.2/packages/astrbot/commands/conversation.py +453 -0
  266. astrbot-4.5.2/packages/astrbot/commands/help.py +63 -0
  267. astrbot-4.5.2/packages/astrbot/commands/llm.py +20 -0
  268. astrbot-4.5.2/packages/astrbot/commands/persona.py +126 -0
  269. astrbot-4.5.2/packages/astrbot/commands/plugin.py +120 -0
  270. astrbot-4.5.2/packages/astrbot/commands/provider.py +207 -0
  271. astrbot-4.5.2/packages/astrbot/commands/setunset.py +36 -0
  272. astrbot-4.5.2/packages/astrbot/commands/sid.py +36 -0
  273. astrbot-4.5.2/packages/astrbot/commands/t2i.py +23 -0
  274. astrbot-4.5.2/packages/astrbot/commands/tool.py +31 -0
  275. astrbot-4.5.2/packages/astrbot/commands/tts.py +36 -0
  276. astrbot-4.5.2/packages/astrbot/long_term_memory.py +181 -0
  277. astrbot-4.5.2/packages/astrbot/main.py +350 -0
  278. astrbot-4.5.2/packages/astrbot/process_llm_request.py +202 -0
  279. astrbot-4.5.2/packages/python_interpreter/main.py +530 -0
  280. astrbot-4.5.2/packages/reminder/main.py +263 -0
  281. astrbot-4.5.2/packages/session_controller/main.py +114 -0
  282. astrbot-4.5.2/packages/thinking_filter/main.py +208 -0
  283. astrbot-4.5.2/packages/web_searcher/engines/__init__.py +104 -0
  284. astrbot-4.5.2/packages/web_searcher/engines/bing.py +38 -0
  285. astrbot-4.5.2/packages/web_searcher/engines/sogo.py +46 -0
  286. astrbot-4.5.2/packages/web_searcher/main.py +435 -0
  287. astrbot-4.5.2/pyproject.toml +126 -0
  288. astrbot-4.5.2/tests/test_dashboard.py +206 -0
  289. astrbot-4.5.2/tests/test_main.py +90 -0
  290. astrbot-4.5.2/tests/test_plugin_manager.py +148 -0
  291. astrbot-4.5.2/tests/test_security_fixes.py +151 -0
  292. astrbot-4.5.1/.dockerignore +0 -24
  293. astrbot-4.5.1/.gitignore +0 -35
  294. astrbot-4.5.1/Dockerfile +0 -30
  295. astrbot-4.5.1/Dockerfile_with_node +0 -35
  296. astrbot-4.5.1/PKG-INFO +0 -302
  297. astrbot-4.5.1/astrbot/api/__init__.py +0 -20
  298. astrbot-4.5.1/astrbot/api/event/__init__.py +0 -18
  299. astrbot-4.5.1/astrbot/api/event/filter/__init__.py +0 -51
  300. astrbot-4.5.1/astrbot/api/platform/__init__.py +0 -23
  301. astrbot-4.5.1/astrbot/api/provider/__init__.py +0 -17
  302. astrbot-4.5.1/astrbot/api/star/__init__.py +0 -8
  303. astrbot-4.5.1/astrbot/api/util/__init__.py +0 -7
  304. astrbot-4.5.1/astrbot/cli/__main__.py +0 -59
  305. astrbot-4.5.1/astrbot/cli/commands/__init__.py +0 -6
  306. astrbot-4.5.1/astrbot/cli/commands/cmd_conf.py +0 -206
  307. astrbot-4.5.1/astrbot/cli/commands/cmd_init.py +0 -55
  308. astrbot-4.5.1/astrbot/cli/commands/cmd_plug.py +0 -247
  309. astrbot-4.5.1/astrbot/cli/commands/cmd_run.py +0 -63
  310. astrbot-4.5.1/astrbot/cli/utils/__init__.py +0 -18
  311. astrbot-4.5.1/astrbot/cli/utils/basic.py +0 -76
  312. astrbot-4.5.1/astrbot/cli/utils/plugin.py +0 -237
  313. astrbot-4.5.1/astrbot/cli/utils/version_comparator.py +0 -92
  314. astrbot-4.5.1/astrbot/core/__init__.py +0 -29
  315. astrbot-4.5.1/astrbot/core/agent/agent.py +0 -13
  316. astrbot-4.5.1/astrbot/core/agent/handoff.py +0 -34
  317. astrbot-4.5.1/astrbot/core/agent/hooks.py +0 -27
  318. astrbot-4.5.1/astrbot/core/agent/mcp_client.py +0 -224
  319. astrbot-4.5.1/astrbot/core/agent/response.py +0 -13
  320. astrbot-4.5.1/astrbot/core/agent/run_context.py +0 -18
  321. astrbot-4.5.1/astrbot/core/agent/runners/base.py +0 -58
  322. astrbot-4.5.1/astrbot/core/agent/runners/tool_loop_agent_runner.py +0 -357
  323. astrbot-4.5.1/astrbot/core/agent/tool.py +0 -267
  324. astrbot-4.5.1/astrbot/core/agent/tool_executor.py +0 -11
  325. astrbot-4.5.1/astrbot/core/astr_agent_context.py +0 -12
  326. astrbot-4.5.1/astrbot/core/astrbot_config_mgr.py +0 -255
  327. astrbot-4.5.1/astrbot/core/config/__init__.py +0 -9
  328. astrbot-4.5.1/astrbot/core/config/astrbot_config.py +0 -170
  329. astrbot-4.5.1/astrbot/core/config/default.py +0 -2724
  330. astrbot-4.5.1/astrbot/core/conversation_mgr.py +0 -340
  331. astrbot-4.5.1/astrbot/core/core_lifecycle.py +0 -316
  332. astrbot-4.5.1/astrbot/core/db/__init__.py +0 -300
  333. astrbot-4.5.1/astrbot/core/db/migration/helper.py +0 -67
  334. astrbot-4.5.1/astrbot/core/db/migration/migra_3_to_4.py +0 -338
  335. astrbot-4.5.1/astrbot/core/db/migration/migra_45_to_46.py +0 -44
  336. astrbot-4.5.1/astrbot/core/db/migration/shared_preferences_v3.py +0 -47
  337. astrbot-4.5.1/astrbot/core/db/migration/sqlite_v3.py +0 -494
  338. astrbot-4.5.1/astrbot/core/db/po.py +0 -248
  339. astrbot-4.5.1/astrbot/core/db/sqlite.py +0 -682
  340. astrbot-4.5.1/astrbot/core/db/vec_db/base.py +0 -77
  341. astrbot-4.5.1/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -379
  342. astrbot-4.5.1/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -87
  343. astrbot-4.5.1/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -199
  344. astrbot-4.5.1/astrbot/core/event_bus.py +0 -59
  345. astrbot-4.5.1/astrbot/core/file_token_service.py +0 -97
  346. astrbot-4.5.1/astrbot/core/initial_loader.py +0 -55
  347. astrbot-4.5.1/astrbot/core/knowledge_base/chunking/__init__.py +0 -11
  348. astrbot-4.5.1/astrbot/core/knowledge_base/chunking/base.py +0 -24
  349. astrbot-4.5.1/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -57
  350. astrbot-4.5.1/astrbot/core/knowledge_base/chunking/recursive.py +0 -155
  351. astrbot-4.5.1/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -299
  352. astrbot-4.5.1/astrbot/core/knowledge_base/kb_helper.py +0 -348
  353. astrbot-4.5.1/astrbot/core/knowledge_base/kb_mgr.py +0 -287
  354. astrbot-4.5.1/astrbot/core/knowledge_base/models.py +0 -114
  355. astrbot-4.5.1/astrbot/core/knowledge_base/parsers/__init__.py +0 -15
  356. astrbot-4.5.1/astrbot/core/knowledge_base/parsers/base.py +0 -50
  357. astrbot-4.5.1/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -25
  358. astrbot-4.5.1/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -100
  359. astrbot-4.5.1/astrbot/core/knowledge_base/parsers/text_parser.py +0 -41
  360. astrbot-4.5.1/astrbot/core/knowledge_base/parsers/util.py +0 -13
  361. astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/__init__.py +0 -16
  362. astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/manager.py +0 -273
  363. astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -138
  364. astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -130
  365. astrbot-4.5.1/astrbot/core/log.py +0 -246
  366. astrbot-4.5.1/astrbot/core/message/components.py +0 -903
  367. astrbot-4.5.1/astrbot/core/message/message_event_result.py +0 -233
  368. astrbot-4.5.1/astrbot/core/persona_mgr.py +0 -183
  369. astrbot-4.5.1/astrbot/core/pipeline/__init__.py +0 -41
  370. astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/stage.py +0 -37
  371. astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -8
  372. astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -30
  373. astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -23
  374. astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -34
  375. astrbot-4.5.1/astrbot/core/pipeline/context.py +0 -15
  376. astrbot-4.5.1/astrbot/core/pipeline/context_utils.py +0 -102
  377. astrbot-4.5.1/astrbot/core/pipeline/preprocess_stage/stage.py +0 -97
  378. astrbot-4.5.1/astrbot/core/pipeline/process_stage/method/llm_request.py +0 -670
  379. astrbot-4.5.1/astrbot/core/pipeline/process_stage/method/star_request.py +0 -59
  380. astrbot-4.5.1/astrbot/core/pipeline/process_stage/stage.py +0 -68
  381. astrbot-4.5.1/astrbot/core/pipeline/process_stage/utils.py +0 -80
  382. astrbot-4.5.1/astrbot/core/pipeline/rate_limit_check/stage.py +0 -98
  383. astrbot-4.5.1/astrbot/core/pipeline/respond/stage.py +0 -270
  384. astrbot-4.5.1/astrbot/core/pipeline/result_decorate/stage.py +0 -309
  385. astrbot-4.5.1/astrbot/core/pipeline/scheduler.py +0 -80
  386. astrbot-4.5.1/astrbot/core/pipeline/session_status_check/stage.py +0 -33
  387. astrbot-4.5.1/astrbot/core/pipeline/stage.py +0 -39
  388. astrbot-4.5.1/astrbot/core/pipeline/waking_check/stage.py +0 -195
  389. astrbot-4.5.1/astrbot/core/pipeline/whitelist_check/stage.py +0 -65
  390. astrbot-4.5.1/astrbot/core/platform/__init__.py +0 -14
  391. astrbot-4.5.1/astrbot/core/platform/astr_message_event.py +0 -437
  392. astrbot-4.5.1/astrbot/core/platform/astrbot_message.py +0 -91
  393. astrbot-4.5.1/astrbot/core/platform/manager.py +0 -197
  394. astrbot-4.5.1/astrbot/core/platform/message_session.py +0 -28
  395. astrbot-4.5.1/astrbot/core/platform/platform.py +0 -59
  396. astrbot-4.5.1/astrbot/core/platform/platform_metadata.py +0 -18
  397. astrbot-4.5.1/astrbot/core/platform/register.py +0 -51
  398. astrbot-4.5.1/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -229
  399. astrbot-4.5.1/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -403
  400. astrbot-4.5.1/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -234
  401. astrbot-4.5.1/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -75
  402. astrbot-4.5.1/astrbot/core/platform/sources/discord/client.py +0 -126
  403. astrbot-4.5.1/astrbot/core/platform/sources/discord/components.py +0 -135
  404. astrbot-4.5.1/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -455
  405. astrbot-4.5.1/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -296
  406. astrbot-4.5.1/astrbot/core/platform/sources/lark/lark_adapter.py +0 -232
  407. astrbot-4.5.1/astrbot/core/platform/sources/lark/lark_event.py +0 -137
  408. astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -727
  409. astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_api.py +0 -940
  410. astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_event.py +0 -158
  411. astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -538
  412. astrbot-4.5.1/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -310
  413. astrbot-4.5.1/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -212
  414. astrbot-4.5.1/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -124
  415. astrbot-4.5.1/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -15
  416. astrbot-4.5.1/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -111
  417. astrbot-4.5.1/astrbot/core/platform/sources/satori/satori_adapter.py +0 -774
  418. astrbot-4.5.1/astrbot/core/platform/sources/satori/satori_event.py +0 -423
  419. astrbot-4.5.1/astrbot/core/platform/sources/slack/client.py +0 -162
  420. astrbot-4.5.1/astrbot/core/platform/sources/slack/slack_adapter.py +0 -398
  421. astrbot-4.5.1/astrbot/core/platform/sources/slack/slack_event.py +0 -243
  422. astrbot-4.5.1/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -408
  423. astrbot-4.5.1/astrbot/core/platform/sources/telegram/tg_event.py +0 -282
  424. astrbot-4.5.1/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -161
  425. astrbot-4.5.1/astrbot/core/platform/sources/webchat/webchat_event.py +0 -137
  426. astrbot-4.5.1/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -928
  427. astrbot-4.5.1/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -161
  428. astrbot-4.5.1/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -160
  429. astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -368
  430. astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_event.py +0 -218
  431. astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -289
  432. astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -180
  433. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -289
  434. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -17
  435. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -20
  436. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -445
  437. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -378
  438. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -149
  439. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -148
  440. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -166
  441. astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -199
  442. astrbot-4.5.1/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -289
  443. astrbot-4.5.1/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -184
  444. astrbot-4.5.1/astrbot/core/platform_message_history_mgr.py +0 -47
  445. astrbot-4.5.1/astrbot/core/provider/__init__.py +0 -5
  446. astrbot-4.5.1/astrbot/core/provider/entites.py +0 -19
  447. astrbot-4.5.1/astrbot/core/provider/entities.py +0 -316
  448. astrbot-4.5.1/astrbot/core/provider/func_tool_manager.py +0 -570
  449. astrbot-4.5.1/astrbot/core/provider/manager.py +0 -505
  450. astrbot-4.5.1/astrbot/core/provider/provider.py +0 -285
  451. astrbot-4.5.1/astrbot/core/provider/register.py +0 -51
  452. astrbot-4.5.1/astrbot/core/provider/sources/anthropic_source.py +0 -396
  453. astrbot-4.5.1/astrbot/core/provider/sources/azure_tts_source.py +0 -220
  454. astrbot-4.5.1/astrbot/core/provider/sources/coze_api_client.py +0 -314
  455. astrbot-4.5.1/astrbot/core/provider/sources/coze_source.py +0 -635
  456. astrbot-4.5.1/astrbot/core/provider/sources/dashscope_source.py +0 -202
  457. astrbot-4.5.1/astrbot/core/provider/sources/dashscope_tts.py +0 -149
  458. astrbot-4.5.1/astrbot/core/provider/sources/dify_source.py +0 -282
  459. astrbot-4.5.1/astrbot/core/provider/sources/edge_tts_source.py +0 -122
  460. astrbot-4.5.1/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -142
  461. astrbot-4.5.1/astrbot/core/provider/sources/gemini_embedding_source.py +0 -62
  462. astrbot-4.5.1/astrbot/core/provider/sources/gemini_source.py +0 -725
  463. astrbot-4.5.1/astrbot/core/provider/sources/gemini_tts_source.py +0 -79
  464. astrbot-4.5.1/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -148
  465. astrbot-4.5.1/astrbot/core/provider/sources/gsvi_tts_source.py +0 -55
  466. astrbot-4.5.1/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -149
  467. astrbot-4.5.1/astrbot/core/provider/sources/openai_embedding_source.py +0 -42
  468. astrbot-4.5.1/astrbot/core/provider/sources/openai_source.py +0 -595
  469. astrbot-4.5.1/astrbot/core/provider/sources/openai_tts_api_source.py +0 -44
  470. astrbot-4.5.1/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -104
  471. astrbot-4.5.1/astrbot/core/provider/sources/vllm_rerank_source.py +0 -65
  472. astrbot-4.5.1/astrbot/core/provider/sources/volcengine_tts.py +0 -108
  473. astrbot-4.5.1/astrbot/core/provider/sources/whisper_api_source.py +0 -75
  474. astrbot-4.5.1/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -75
  475. astrbot-4.5.1/astrbot/core/provider/sources/xinference_rerank_source.py +0 -108
  476. astrbot-4.5.1/astrbot/core/provider/sources/xinference_stt_provider.py +0 -187
  477. astrbot-4.5.1/astrbot/core/star/__init__.py +0 -59
  478. astrbot-4.5.1/astrbot/core/star/config.py +0 -89
  479. astrbot-4.5.1/astrbot/core/star/context.py +0 -353
  480. astrbot-4.5.1/astrbot/core/star/filter/__init__.py +0 -14
  481. astrbot-4.5.1/astrbot/core/star/filter/command.py +0 -217
  482. astrbot-4.5.1/astrbot/core/star/filter/command_group.py +0 -131
  483. astrbot-4.5.1/astrbot/core/star/filter/custom_filter.py +0 -61
  484. astrbot-4.5.1/astrbot/core/star/filter/event_message_type.py +0 -31
  485. astrbot-4.5.1/astrbot/core/star/filter/permission.py +0 -27
  486. astrbot-4.5.1/astrbot/core/star/filter/platform_adapter_type.py +0 -69
  487. astrbot-4.5.1/astrbot/core/star/filter/regex.py +0 -16
  488. astrbot-4.5.1/astrbot/core/star/register/__init__.py +0 -37
  489. astrbot-4.5.1/astrbot/core/star/register/star.py +0 -62
  490. astrbot-4.5.1/astrbot/core/star/register/star_handler.py +0 -497
  491. astrbot-4.5.1/astrbot/core/star/session_llm_manager.py +0 -246
  492. astrbot-4.5.1/astrbot/core/star/session_plugin_manager.py +0 -156
  493. astrbot-4.5.1/astrbot/core/star/star.py +0 -69
  494. astrbot-4.5.1/astrbot/core/star/star_handler.py +0 -142
  495. astrbot-4.5.1/astrbot/core/star/star_manager.py +0 -879
  496. astrbot-4.5.1/astrbot/core/star/star_tools.py +0 -307
  497. astrbot-4.5.1/astrbot/core/star/updator.py +0 -81
  498. astrbot-4.5.1/astrbot/core/umop_config_router.py +0 -81
  499. astrbot-4.5.1/astrbot/core/updator.py +0 -117
  500. astrbot-4.5.1/astrbot/core/utils/astrbot_path.py +0 -41
  501. astrbot-4.5.1/astrbot/core/utils/dify_api_client.py +0 -139
  502. astrbot-4.5.1/astrbot/core/utils/io.py +0 -263
  503. astrbot-4.5.1/astrbot/core/utils/log_pipe.py +0 -36
  504. astrbot-4.5.1/astrbot/core/utils/metrics.py +0 -75
  505. astrbot-4.5.1/astrbot/core/utils/path_util.py +0 -72
  506. astrbot-4.5.1/astrbot/core/utils/pip_installer.py +0 -62
  507. astrbot-4.5.1/astrbot/core/utils/session_waiter.py +0 -198
  508. astrbot-4.5.1/astrbot/core/utils/shared_preferences.py +0 -180
  509. astrbot-4.5.1/astrbot/core/utils/t2i/__init__.py +0 -13
  510. astrbot-4.5.1/astrbot/core/utils/t2i/network_strategy.py +0 -128
  511. astrbot-4.5.1/astrbot/core/utils/t2i/renderer.py +0 -55
  512. astrbot-4.5.1/astrbot/core/utils/t2i/template_manager.py +0 -112
  513. astrbot-4.5.1/astrbot/core/utils/tencent_record_helper.py +0 -160
  514. astrbot-4.5.1/astrbot/core/utils/version_comparator.py +0 -88
  515. astrbot-4.5.1/astrbot/core/zip_updator.py +0 -233
  516. astrbot-4.5.1/astrbot/dashboard/routes/__init__.py +0 -31
  517. astrbot-4.5.1/astrbot/dashboard/routes/auth.py +0 -87
  518. astrbot-4.5.1/astrbot/dashboard/routes/chat.py +0 -331
  519. astrbot-4.5.1/astrbot/dashboard/routes/config.py +0 -944
  520. astrbot-4.5.1/astrbot/dashboard/routes/conversation.py +0 -278
  521. astrbot-4.5.1/astrbot/dashboard/routes/file.py +0 -24
  522. astrbot-4.5.1/astrbot/dashboard/routes/knowledge_base.py +0 -1065
  523. astrbot-4.5.1/astrbot/dashboard/routes/log.py +0 -64
  524. astrbot-4.5.1/astrbot/dashboard/routes/persona.py +0 -199
  525. astrbot-4.5.1/astrbot/dashboard/routes/plugin.py +0 -501
  526. astrbot-4.5.1/astrbot/dashboard/routes/route.py +0 -55
  527. astrbot-4.5.1/astrbot/dashboard/routes/session_management.py +0 -674
  528. astrbot-4.5.1/astrbot/dashboard/routes/stat.py +0 -185
  529. astrbot-4.5.1/astrbot/dashboard/routes/t2i.py +0 -230
  530. astrbot-4.5.1/astrbot/dashboard/routes/tools.py +0 -351
  531. astrbot-4.5.1/astrbot/dashboard/routes/update.py +0 -166
  532. astrbot-4.5.1/astrbot/dashboard/server.py +0 -234
  533. astrbot-4.5.1/astrbot/dashboard/utils.py +0 -161
  534. astrbot-4.5.1/astrbot.lock +0 -0
  535. astrbot-4.5.1/dashboard/.gitignore +0 -2
  536. astrbot-4.5.1/dashboard/src/components/shared/ExtensionCard.vue +0 -255
  537. astrbot-4.5.1/dashboard/src/i18n/locales/en-US/core/actions.json +0 -22
  538. astrbot-4.5.1/dashboard/src/i18n/locales/en-US/features/extension.json +0 -162
  539. astrbot-4.5.1/dashboard/src/i18n/locales/en-US/features/settings.json +0 -23
  540. astrbot-4.5.1/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -24
  541. astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/core/actions.json +0 -22
  542. astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/features/extension.json +0 -162
  543. astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -23
  544. astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -24
  545. astrbot-4.5.1/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +0 -326
  546. astrbot-4.5.1/dashboard/src/views/ExtensionPage.vue +0 -1046
  547. astrbot-4.5.1/dashboard/src/views/Settings.vue +0 -61
  548. astrbot-4.5.1/main.py +0 -102
  549. astrbot-4.5.1/packages/astrbot/commands/__init__.py +0 -31
  550. astrbot-4.5.1/packages/astrbot/commands/admin.py +0 -76
  551. astrbot-4.5.1/packages/astrbot/commands/alter_cmd.py +0 -172
  552. astrbot-4.5.1/packages/astrbot/commands/conversation.py +0 -431
  553. astrbot-4.5.1/packages/astrbot/commands/help.py +0 -61
  554. astrbot-4.5.1/packages/astrbot/commands/llm.py +0 -20
  555. astrbot-4.5.1/packages/astrbot/commands/persona.py +0 -122
  556. astrbot-4.5.1/packages/astrbot/commands/plugin.py +0 -117
  557. astrbot-4.5.1/packages/astrbot/commands/provider.py +0 -205
  558. astrbot-4.5.1/packages/astrbot/commands/setunset.py +0 -37
  559. astrbot-4.5.1/packages/astrbot/commands/sid.py +0 -36
  560. astrbot-4.5.1/packages/astrbot/commands/t2i.py +0 -23
  561. astrbot-4.5.1/packages/astrbot/commands/tool.py +0 -31
  562. astrbot-4.5.1/packages/astrbot/commands/tts.py +0 -36
  563. astrbot-4.5.1/packages/astrbot/long_term_memory.py +0 -175
  564. astrbot-4.5.1/packages/astrbot/main.py +0 -350
  565. astrbot-4.5.1/packages/astrbot/process_llm_request.py +0 -196
  566. astrbot-4.5.1/packages/python_interpreter/main.py +0 -519
  567. astrbot-4.5.1/packages/reminder/main.py +0 -258
  568. astrbot-4.5.1/packages/session_controller/main.py +0 -110
  569. astrbot-4.5.1/packages/thinking_filter/main.py +0 -203
  570. astrbot-4.5.1/packages/web_searcher/engines/__init__.py +0 -99
  571. astrbot-4.5.1/packages/web_searcher/engines/bing.py +0 -40
  572. astrbot-4.5.1/packages/web_searcher/engines/sogo.py +0 -47
  573. astrbot-4.5.1/packages/web_searcher/main.py +0 -409
  574. astrbot-4.5.1/pyproject.toml +0 -97
  575. astrbot-4.5.1/tests/test_dashboard.py +0 -201
  576. astrbot-4.5.1/tests/test_main.py +0 -88
  577. astrbot-4.5.1/tests/test_plugin_manager.py +0 -145
  578. {astrbot-4.5.1 → astrbot-4.5.2}/.github/FUNDING.yml +0 -0
  579. {astrbot-4.5.1 → astrbot-4.5.2}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
  580. {astrbot-4.5.1 → astrbot-4.5.2}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
  581. {astrbot-4.5.1 → astrbot-4.5.2}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
  582. {astrbot-4.5.1 → astrbot-4.5.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  583. {astrbot-4.5.1 → astrbot-4.5.2}/.github/auto_assign.yml +0 -0
  584. {astrbot-4.5.1 → astrbot-4.5.2}/.github/copilot-instructions.md +0 -0
  585. {astrbot-4.5.1 → astrbot-4.5.2}/.github/dependabot.yml +0 -0
  586. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/auto_release.yml +0 -0
  587. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/code-format.yml +0 -0
  588. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/codeql.yml +0 -0
  589. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/coverage_test.yml +0 -0
  590. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/dashboard_ci.yml +0 -0
  591. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/docker-image.yml +0 -0
  592. {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/stale.yml +0 -0
  593. {astrbot-4.5.1 → astrbot-4.5.2}/.pre-commit-config.yaml +0 -0
  594. {astrbot-4.5.1 → astrbot-4.5.2}/.python-version +0 -0
  595. {astrbot-4.5.1 → astrbot-4.5.2}/CODE_OF_CONDUCT.md +0 -0
  596. {astrbot-4.5.1 → astrbot-4.5.2}/LICENSE +0 -0
  597. {astrbot-4.5.1 → astrbot-4.5.2}/README.md +0 -0
  598. {astrbot-4.5.1 → astrbot-4.5.2}/README_en.md +0 -0
  599. {astrbot-4.5.1 → astrbot-4.5.2}/README_ja.md +0 -0
  600. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/__init__.py +0 -0
  601. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/api/all.py +0 -0
  602. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/api/message_components.py +0 -0
  603. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/cli/__init__.py +0 -0
  604. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/agent/runners/__init__.py +0 -0
  605. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
  606. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
  607. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
  608. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/platform/message_type.py +0 -0
  609. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
  610. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/provider/sources/zhipu_source.py +0 -0
  611. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/star/README.md +0 -0
  612. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/command_parser.py +0 -0
  613. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/session_lock.py +0 -0
  614. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/t2i/local_strategy.py +0 -0
  615. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
  616. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/t2i/template/base.html +0 -0
  617. {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/dashboard/routes/static_file.py +0 -0
  618. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.0.md +0 -0
  619. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.1.md +0 -0
  620. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.10.md +0 -0
  621. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.11.md +0 -0
  622. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.12.md +0 -0
  623. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.13.md +0 -0
  624. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.14.md +0 -0
  625. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.15.md +0 -0
  626. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.16.md +0 -0
  627. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.17.md +0 -0
  628. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.18.md +0 -0
  629. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.19.md +0 -0
  630. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.20.md +0 -0
  631. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.21.md +0 -0
  632. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.22.md +0 -0
  633. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.23.md +0 -0
  634. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.24.md +0 -0
  635. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.25.md +0 -0
  636. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.26.md +0 -0
  637. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.27.md +0 -0
  638. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.28.md +0 -0
  639. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.29.md +0 -0
  640. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.3.md +0 -0
  641. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.30.md +0 -0
  642. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.31.md +0 -0
  643. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.32.md +0 -0
  644. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.33.md +0 -0
  645. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.35.md +0 -0
  646. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.36.md +0 -0
  647. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.37.md +0 -0
  648. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.38.md +0 -0
  649. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.39.md +0 -0
  650. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.4.md +0 -0
  651. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.5.md +0 -0
  652. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.6.md +0 -0
  653. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.7.md +0 -0
  654. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.8.md +0 -0
  655. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.9.md +0 -0
  656. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.0.md +0 -0
  657. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.1.md +0 -0
  658. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.10.md +0 -0
  659. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.11.md +0 -0
  660. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.12.md +0 -0
  661. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.13.md +0 -0
  662. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.14.md +0 -0
  663. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.15.md +0 -0
  664. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.16.md +0 -0
  665. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.17.md +0 -0
  666. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.18.md +0 -0
  667. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.19.md +0 -0
  668. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.2.md +0 -0
  669. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.20.md +0 -0
  670. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.21.md +0 -0
  671. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.22.md +0 -0
  672. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.23.md +0 -0
  673. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.24.md +0 -0
  674. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.25.md +0 -0
  675. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.26.md +0 -0
  676. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.27.md +0 -0
  677. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.3.1.md +0 -0
  678. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.3.2.md +0 -0
  679. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.3.md +0 -0
  680. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.4.md +0 -0
  681. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.5.md +0 -0
  682. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.6.md +0 -0
  683. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.7.md +0 -0
  684. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.8.md +0 -0
  685. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.9.md +0 -0
  686. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0-beta.3.md +0 -0
  687. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0-beta.4.md +0 -0
  688. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0-beta.5.md +0 -0
  689. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0.md +0 -0
  690. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.0.md +0 -0
  691. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.1.md +0 -0
  692. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.2.md +0 -0
  693. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.3.md +0 -0
  694. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.4.md +0 -0
  695. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.5.md +0 -0
  696. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.6.md +0 -0
  697. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.7.md +0 -0
  698. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.2.0.md +0 -0
  699. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.2.1.md +0 -0
  700. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.0.md +0 -0
  701. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.1.md +0 -0
  702. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.2.md +0 -0
  703. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.3.md +0 -0
  704. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.5.md +0 -0
  705. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.5.0.md +0 -0
  706. {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.5.1.md +0 -0
  707. {astrbot-4.5.1 → astrbot-4.5.2}/compose.yml +0 -0
  708. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/LICENSE +0 -0
  709. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/README.md +0 -0
  710. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/env.d.ts +0 -0
  711. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/index.html +0 -0
  712. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/public/_redirects +0 -0
  713. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/public/favicon.svg +0 -0
  714. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/App.vue +0 -0
  715. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/astrbot_banner.png +0 -0
  716. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
  717. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
  718. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
  719. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
  720. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
  721. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
  722. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
  723. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
  724. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
  725. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
  726. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
  727. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
  728. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
  729. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/ConfirmDialog.vue +0 -0
  730. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/chat/Chat.vue +0 -0
  731. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/chat/MessageList.vue +0 -0
  732. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/chat/ProviderModelSelector.vue +0 -0
  733. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +0 -0
  734. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/platform/AddNewPlatform.vue +0 -0
  735. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/provider/AddNewProvider.vue +0 -0
  736. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/AstrBotConfig.vue +0 -0
  737. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
  738. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
  739. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ItemCard.vue +0 -0
  740. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
  741. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
  742. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/LanguageSwitcher.vue +0 -0
  743. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ListConfigItem.vue +0 -0
  744. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/Logo.vue +0 -0
  745. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
  746. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
  747. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/PersonaForm.vue +0 -0
  748. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
  749. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
  750. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ProviderSelector.vue +0 -0
  751. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ProxySelector.vue +0 -0
  752. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ReadmeDialog.vue +0 -0
  753. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
  754. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
  755. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/config.ts +0 -0
  756. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/composables.ts +0 -0
  757. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/loader.ts +0 -0
  758. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/common.json +0 -0
  759. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
  760. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/navigation.json +0 -0
  761. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
  762. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
  763. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
  764. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
  765. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
  766. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
  767. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
  768. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/chat.json +0 -0
  769. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/config.json +0 -0
  770. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
  771. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
  772. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
  773. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
  774. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
  775. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
  776. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
  777. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
  778. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
  779. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/provider.json +0 -0
  780. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
  781. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/tool-use.json +0 -0
  782. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
  783. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
  784. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/common.json +0 -0
  785. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
  786. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +0 -0
  787. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
  788. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
  789. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
  790. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
  791. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
  792. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
  793. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
  794. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/chat.json +0 -0
  795. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/config.json +0 -0
  796. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
  797. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
  798. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
  799. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
  800. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
  801. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
  802. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
  803. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
  804. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
  805. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/provider.json +0 -0
  806. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
  807. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +0 -0
  808. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
  809. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
  810. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/tools/index.ts +0 -0
  811. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/translations.ts +0 -0
  812. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/types.ts +0 -0
  813. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/validator.ts +0 -0
  814. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
  815. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/FullLayout.vue +0 -0
  816. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +0 -0
  817. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
  818. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -0
  819. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/main.ts +0 -0
  820. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/plugins/confirmPlugin.ts +0 -0
  821. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/plugins/vuetify.ts +0 -0
  822. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/AuthRoutes.ts +0 -0
  823. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
  824. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/MainRoutes.ts +0 -0
  825. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/index.ts +0 -0
  826. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/_override.scss +0 -0
  827. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/_variables.scss +0 -0
  828. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VButtons.scss +0 -0
  829. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VCard.scss +0 -0
  830. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VField.scss +0 -0
  831. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VInput.scss +0 -0
  832. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
  833. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
  834. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VShadow.scss +0 -0
  835. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VTabs.scss +0 -0
  836. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VTextField.scss +0 -0
  837. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/layout/_container.scss +0 -0
  838. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/layout/_sidebar.scss +0 -0
  839. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/pages/_dashboards.scss +0 -0
  840. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/style.scss +0 -0
  841. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/auth.ts +0 -0
  842. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/common.js +0 -0
  843. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/customizer.ts +0 -0
  844. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/toast.js +0 -0
  845. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/theme/DarkTheme.ts +0 -0
  846. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/theme/LightTheme.ts +0 -0
  847. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
  848. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
  849. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
  850. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/utils/platformUtils.js +0 -0
  851. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/utils/providerUtils.js +0 -0
  852. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/utils/toast.js +0 -0
  853. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/AboutPage.vue +0 -0
  854. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/AlkaidPage.vue +0 -0
  855. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ChatBoxPage.vue +0 -0
  856. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ChatPage.vue +0 -0
  857. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ConfigPage.vue +0 -0
  858. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ConsolePage.vue +0 -0
  859. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ConversationPage.vue +0 -0
  860. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/PersonaPage.vue +0 -0
  861. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/PlatformPage.vue +0 -0
  862. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ProviderPage.vue +0 -0
  863. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/SessionManagementPage.vue +0 -0
  864. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ToolUsePage.vue +0 -0
  865. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
  866. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/alkaid/LongTermMemory.vue +0 -0
  867. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/alkaid/Other.vue +0 -0
  868. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
  869. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
  870. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
  871. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
  872. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
  873. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
  874. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
  875. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
  876. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
  877. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
  878. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
  879. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
  880. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
  881. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
  882. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
  883. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
  884. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/index.vue +0 -0
  885. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/tsconfig.json +0 -0
  886. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/tsconfig.vite-config.json +0 -0
  887. {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/vite.config.ts +0 -0
  888. {astrbot-4.5.1 → astrbot-4.5.2}/packages/astrbot/commands/utils/rst_scene.py +0 -0
  889. {astrbot-4.5.1 → astrbot-4.5.2}/packages/astrbot/metadata.yaml +0 -0
  890. {astrbot-4.5.1 → astrbot-4.5.2}/packages/python_interpreter/metadata.yaml +0 -0
  891. {astrbot-4.5.1 → astrbot-4.5.2}/packages/python_interpreter/requirements.txt +0 -0
  892. {astrbot-4.5.1 → astrbot-4.5.2}/packages/python_interpreter/shared/api.py +0 -0
  893. {astrbot-4.5.1 → astrbot-4.5.2}/packages/reminder/metadata.yaml +0 -0
  894. {astrbot-4.5.1 → astrbot-4.5.2}/packages/session_controller/metadata.yaml +0 -0
  895. {astrbot-4.5.1 → astrbot-4.5.2}/packages/thinking_filter/metadata.yaml +0 -0
  896. {astrbot-4.5.1 → astrbot-4.5.2}/packages/web_searcher/metadata.yaml +0 -0
  897. {astrbot-4.5.1 → astrbot-4.5.2}/requirements.txt +0 -0
  898. {astrbot-4.5.1 → astrbot-4.5.2}/samples/stt_health_check.wav +0 -0
@@ -0,0 +1,22 @@
1
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
2
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
3
+ # github actions
4
+ .github/
5
+ .*ignore
6
+ # User-specific stuff
7
+ .idea/
8
+ # Byte-compiled / optimized / DLL files
9
+ __pycache__/
10
+ # Environments
11
+ .env
12
+ .venv
13
+ env/
14
+ venv*/
15
+ ENV/
16
+ .conda/
17
+ dashboard/
18
+ data/
19
+ changelogs/
20
+ tests/
21
+ .ruff_cache/
22
+ .astrbot
@@ -0,0 +1,49 @@
1
+ # Python related
2
+ __pycache__
3
+ .mypy_cache
4
+ .venv*
5
+ .conda/
6
+ uv.lock
7
+ .coverage
8
+
9
+ # IDE and editors
10
+ .vscode
11
+ .idea
12
+
13
+ # Logs and temporary files
14
+ botpy.log
15
+ logs/
16
+ temp
17
+ cookies.json
18
+
19
+ # Data files
20
+ data_v2.db
21
+ data_v3.db
22
+ data
23
+ configs/session
24
+ configs/config.yaml
25
+ cmd_config.json
26
+
27
+ # Plugins and packages
28
+ addons/plugins
29
+ packages/python_interpreter/workplace
30
+ tests/astrbot_plugin_openai
31
+
32
+ # Dashboard
33
+ dashboard/node_modules/
34
+ dashboard/dist/
35
+ package-lock.json
36
+ package.json
37
+
38
+ # Operating System
39
+ **/.DS_Store
40
+ .DS_Store
41
+
42
+ # AstrBot specific
43
+ .astrbot
44
+ astrbot.lock
45
+
46
+ # Other
47
+ chroma
48
+ venv/*
49
+ pytest.ini
@@ -0,0 +1,32 @@
1
+ FROM python:3.11-slim
2
+ WORKDIR /AstrBot
3
+
4
+ COPY . /AstrBot/
5
+
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ gcc \
8
+ build-essential \
9
+ python3-dev \
10
+ libffi-dev \
11
+ libssl-dev \
12
+ ca-certificates \
13
+ bash \
14
+ ffmpeg \
15
+ curl \
16
+ gnupg \
17
+ git \
18
+ && apt-get clean \
19
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
20
+
21
+ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
22
+ apt-get install -y --no-install-recommends nodejs && \
23
+ echo "3.11" > .python-version && \
24
+ rm -rf /var/lib/apt/lists/*
25
+
26
+ RUN python -m pip install --no-cache-dir uv && \
27
+ uv pip install socksio pilk --no-cache-dir --system
28
+
29
+ EXPOSE 6185
30
+ EXPOSE 6186
31
+
32
+ CMD ["uv", "run", "main.py"]
@@ -0,0 +1,40 @@
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /AstrBot
4
+
5
+ COPY . /AstrBot/
6
+
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ gcc \
9
+ build-essential \
10
+ python3-dev \
11
+ libffi-dev \
12
+ libssl-dev \
13
+ curl \
14
+ unzip \
15
+ ca-certificates \
16
+ bash \
17
+ git \
18
+ && apt-get clean \
19
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
20
+
21
+ ENV NVM_DIR="/root/.nvm" \
22
+ NODE_VERSION=22
23
+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash && \
24
+ . "$NVM_DIR/nvm.sh" && \
25
+ nvm install $NODE_VERSION && \
26
+ nvm use $NODE_VERSION && \
27
+ nvm alias default $NODE_VERSION && \
28
+ node -v && npm -v && \
29
+ echo "3.11" > .python-version
30
+ ENV PATH="$NVM_DIR/versions/node/v$(node -v | cut -d 'v' -f 2)/bin:$PATH"
31
+
32
+ RUN python -m pip install --no-cache-dir uv
33
+
34
+ # 安装项目依赖(根据指南,使用 uv sync)
35
+ RUN uv sync --no-cache
36
+
37
+ EXPOSE 6185
38
+ EXPOSE 6186
39
+
40
+ CMD ["uv", "run", "main.py"]
astrbot-4.5.2/PKG-INFO ADDED
@@ -0,0 +1,303 @@
1
+ Metadata-Version: 2.4
2
+ Name: AstrBot
3
+ Version: 4.5.2
4
+ Summary: 易上手的多平台 LLM 聊天机器人及开发框架
5
+ License-File: LICENSE
6
+ Keywords: Astrbot,Astrbot Module,Astrbot Plugin
7
+ Requires-Python: >=3.10
8
+ Requires-Dist: aiocqhttp>=1.4.4
9
+ Requires-Dist: aiodocker>=0.24.0
10
+ Requires-Dist: aiofiles>=25.1.0
11
+ Requires-Dist: aiohttp>=3.11.18
12
+ Requires-Dist: aiosqlite>=0.21.0
13
+ Requires-Dist: anthropic>=0.51.0
14
+ Requires-Dist: apscheduler>=3.11.0
15
+ Requires-Dist: audioop-lts; python_full_version >= '3.13'
16
+ Requires-Dist: beautifulsoup4>=4.13.4
17
+ Requires-Dist: certifi>=2025.4.26
18
+ Requires-Dist: chardet~=5.1.0
19
+ Requires-Dist: click>=8.2.1
20
+ Requires-Dist: colorlog>=6.9.0
21
+ Requires-Dist: cryptography>=44.0.3
22
+ Requires-Dist: dashscope>=1.23.2
23
+ Requires-Dist: defusedxml>=0.7.1
24
+ Requires-Dist: deprecated>=1.2.18
25
+ Requires-Dist: dingtalk-stream>=0.22.1
26
+ Requires-Dist: docstring-parser>=0.16
27
+ Requires-Dist: faiss-cpu==1.10.0
28
+ Requires-Dist: filelock>=3.18.0
29
+ Requires-Dist: google-genai>=1.14.0
30
+ Requires-Dist: jieba>=0.42.1
31
+ Requires-Dist: lark-oapi>=1.4.15
32
+ Requires-Dist: lxml-html-clean>=0.4.2
33
+ Requires-Dist: markitdown-no-magika[docx,xls,xlsx]>=0.1.2
34
+ Requires-Dist: mcp>=1.8.0
35
+ Requires-Dist: openai>=1.78.0
36
+ Requires-Dist: ormsgpack>=1.9.1
37
+ Requires-Dist: pillow>=11.2.1
38
+ Requires-Dist: pip>=25.1.1
39
+ Requires-Dist: psutil>=5.8.0
40
+ Requires-Dist: py-cord>=2.6.1
41
+ Requires-Dist: pydantic~=2.10.3
42
+ Requires-Dist: pydub>=0.25.1
43
+ Requires-Dist: pyjwt>=2.10.1
44
+ Requires-Dist: pypdf>=6.1.1
45
+ Requires-Dist: python-telegram-bot>=22.0
46
+ Requires-Dist: qq-botpy>=1.2.1
47
+ Requires-Dist: quart>=0.20.0
48
+ Requires-Dist: rank-bm25>=0.2.2
49
+ Requires-Dist: readability-lxml>=0.8.4.1
50
+ Requires-Dist: silk-python>=0.2.6
51
+ Requires-Dist: slack-sdk>=3.35.0
52
+ Requires-Dist: sqlalchemy[asyncio]>=2.0.41
53
+ Requires-Dist: sqlmodel>=0.0.24
54
+ Requires-Dist: telegramify-markdown>=0.5.1
55
+ Requires-Dist: watchfiles>=1.0.5
56
+ Requires-Dist: websockets>=15.0.1
57
+ Requires-Dist: wechatpy>=1.8.18
58
+ Requires-Dist: xinference-client
59
+ Description-Content-Type: text/markdown
60
+
61
+ ![AstrBot-Logo-Simplified](https://github.com/user-attachments/assets/ffd99b6b-3272-4682-beaa-6fe74250f7d9)
62
+
63
+ </p>
64
+
65
+ <div align="center">
66
+
67
+ <br>
68
+
69
+ <div>
70
+ <a href="https://trendshift.io/repositories/12875" target="_blank"><img src="https://trendshift.io/api/badge/repositories/12875" alt="Soulter%2FAstrBot | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
71
+ <a href="https://hellogithub.com/repository/AstrBotDevs/AstrBot" target="_blank"><img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=d127d50cd5e54c5382328acc3bb25483&claim_uid=ZO9by7qCXgSd6Lp&t=1" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" /></a>
72
+ </div>
73
+
74
+ <br>
75
+
76
+ <div>
77
+ <img src="https://img.shields.io/github/v/release/AstrBotDevs/AstrBot?style=for-the-badge&color=76bad9" href="https://github.com/AstrBotDevs/AstrBot/releases/latest">
78
+ <img src="https://img.shields.io/badge/python-3.10+-blue.svg?style=for-the-badge&color=76bad9" alt="python">
79
+ <a href="https://hub.docker.com/r/soulter/astrbot"><img alt="Docker pull" src="https://img.shields.io/docker/pulls/soulter/astrbot.svg?style=for-the-badge&color=76bad9"/></a>
80
+ <a href="https://qm.qq.com/cgi-bin/qm/qr?k=wtbaNx7EioxeaqS9z7RQWVXPIxg2zYr7&jump_from=webapi&authKey=vlqnv/AV2DbJEvGIcxdlNSpfxVy+8vVqijgreRdnVKOaydpc+YSw4MctmEbr0k5"><img alt="QQ_community" src="https://img.shields.io/badge/QQ群-775869627-purple?style=for-the-badge&color=76bad9"></a>
81
+ <a href="https://t.me/+hAsD2Ebl5as3NmY1"><img alt="Telegram_community" src="https://img.shields.io/badge/Telegram-AstrBot-purple?style=for-the-badge&color=76bad9"></a>
82
+ <img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.soulter.top%2Fastrbot%2Fplugin-num&query=%24.result&suffix=%E4%B8%AA&style=for-the-badge&label=%E6%8F%92%E4%BB%B6%E5%B8%82%E5%9C%BA&cacheSeconds=3600">
83
+ </div>
84
+
85
+ <br>
86
+
87
+ <a href="https://github.com/AstrBotDevs/AstrBot/blob/master/README_en.md">English</a> |
88
+ <a href="https://github.com/AstrBotDevs/AstrBot/blob/master/README_ja.md">日本語</a> |
89
+ <a href="https://astrbot.app/">文档</a> |
90
+ <a href="https://blog.astrbot.app/">Blog</a> |
91
+ <a href="https://astrbot.featurebase.app/roadmap">路线图</a> |
92
+ <a href="https://github.com/AstrBotDevs/AstrBot/issues">问题提交</a>
93
+ </div>
94
+
95
+ AstrBot 是一个开源的一站式 Agent 聊天机器人平台及开发框架。
96
+
97
+ ## 主要功能
98
+
99
+ 1. **大模型对话**。支持接入多种大模型服务。支持多模态、工具调用、MCP、原生知识库、人设等功能。
100
+ 2. **多消息平台支持**。支持接入 QQ、企业微信、微信公众号、飞书、Telegram、钉钉、Discord、KOOK 等平台。支持速率限制、白名单、百度内容审核。
101
+ 3. **Agent**。完善适配的 Agentic 能力。支持多轮工具调用、内置沙盒代码执行器、网页搜索等功能。
102
+ 4. **插件扩展**。深度优化的插件机制,支持[开发插件](https://astrbot.app/dev/plugin.html)扩展功能,社区插件生态丰富。
103
+ 5. **WebUI**。可视化配置和管理机器人,功能齐全。
104
+
105
+ ## 部署方式
106
+
107
+ #### Docker 部署(推荐 🥳)
108
+
109
+ 推荐使用 Docker / Docker Compose 方式部署 AstrBot。
110
+
111
+ 请参阅官方文档 [使用 Docker 部署 AstrBot](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot) 。
112
+
113
+ #### 宝塔面板部署
114
+
115
+ AstrBot 与宝塔面板合作,已上架至宝塔面板。
116
+
117
+ 请参阅官方文档 [宝塔面板部署](https://astrbot.app/deploy/astrbot/btpanel.html) 。
118
+
119
+ #### 1Panel 部署
120
+
121
+ AstrBot 已由 1Panel 官方上架至 1Panel 面板。
122
+
123
+ 请参阅官方文档 [1Panel 部署](https://astrbot.app/deploy/astrbot/1panel.html) 。
124
+
125
+ #### 在 雨云 上部署
126
+
127
+ AstrBot 已由雨云官方上架至云应用平台,可一键部署。
128
+
129
+ [![Deploy on RainYun](https://rainyun-apps.cn-nb1.rains3.com/materials/deploy-on-rainyun-en.svg)](https://app.rainyun.com/apps/rca/store/5994?ref=NjU1ODg0)
130
+
131
+ #### 在 Replit 上部署
132
+
133
+ 社区贡献的部署方式。
134
+
135
+ [![Run on Repl.it](https://repl.it/badge/github/AstrBotDevs/AstrBot)](https://repl.it/github/AstrBotDevs/AstrBot)
136
+
137
+ #### Windows 一键安装器部署
138
+
139
+ 请参阅官方文档 [使用 Windows 一键安装器部署 AstrBot](https://astrbot.app/deploy/astrbot/windows.html) 。
140
+
141
+ #### CasaOS 部署
142
+
143
+ 社区贡献的部署方式。
144
+
145
+ 请参阅官方文档 [CasaOS 部署](https://astrbot.app/deploy/astrbot/casaos.html) 。
146
+
147
+ #### 手动部署
148
+
149
+ 首先安装 uv:
150
+
151
+ ```bash
152
+ pip install uv
153
+ ```
154
+
155
+ 通过 Git Clone 安装 AstrBot:
156
+
157
+ ```bash
158
+ git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot
159
+ uv run main.py
160
+ ```
161
+
162
+ 或者请参阅官方文档 [通过源码部署 AstrBot](https://astrbot.app/deploy/astrbot/cli.html) 。
163
+
164
+ ## 🌍 社区
165
+
166
+ ### QQ 群组
167
+
168
+ - 1 群:322154837
169
+ - 3 群:630166526
170
+ - 5 群:822130018
171
+ - 6 群:753075035
172
+ - 开发者群:975206796
173
+
174
+ ### Telegram 群组
175
+
176
+ <a href="https://t.me/+hAsD2Ebl5as3NmY1"><img alt="Telegram_community" src="https://img.shields.io/badge/Telegram-AstrBot-purple?style=for-the-badge&color=76bad9"></a>
177
+
178
+ ### Discord 群组
179
+
180
+ <a href="https://discord.gg/hAVk6tgV36"><img alt="Discord_community" src="https://img.shields.io/badge/Discord-AstrBot-purple?style=for-the-badge&color=76bad9"></a>
181
+
182
+ ## ⚡ 消息平台支持情况
183
+
184
+ **官方维护**
185
+
186
+ | 平台 | 支持性 |
187
+ | -------- | ------- |
188
+ | QQ(官方平台) | ✔ |
189
+ | QQ(OneBot) | ✔ |
190
+ | Telegram | ✔ |
191
+ | 企微应用 | ✔ |
192
+ | 企微智能机器人 | ✔ |
193
+ | 微信客服 | ✔ |
194
+ | 微信公众号 | ✔ |
195
+ | 飞书 | ✔ |
196
+ | 钉钉 | ✔ |
197
+ | Slack | ✔ |
198
+ | Discord | ✔ |
199
+ | Satori | ✔ |
200
+ | Misskey | ✔ |
201
+ | Whatsapp | 将支持 |
202
+ | LINE | 将支持 |
203
+
204
+ **社区维护**
205
+
206
+ | 平台 | 支持性 |
207
+ | -------- | ------- |
208
+ | [KOOK](https://github.com/wuyan1003/astrbot_plugin_kook_adapter) | ✔ |
209
+ | [VoceChat](https://github.com/HikariFroya/astrbot_plugin_vocechat) | ✔ |
210
+ | [Bilibili 私信](https://github.com/Hina-Chat/astrbot_plugin_bilibili_adapter) | ✔ |
211
+ | [wxauto](https://github.com/luosheng520qaq/wxauto-repost-onebotv11) | ✔ |
212
+
213
+ ## ⚡ 提供商支持情况
214
+
215
+ **大模型服务**
216
+
217
+ | 名称 | 支持性 | 备注 |
218
+ | -------- | ------- | ------- |
219
+ | OpenAI | ✔ | 支持任何兼容 OpenAI API 的服务 |
220
+ | Anthropic | ✔ | |
221
+ | Google Gemini | ✔ | |
222
+ | Moonshot AI | ✔ | |
223
+ | 智谱 AI | ✔ | |
224
+ | DeepSeek | ✔ | |
225
+ | Ollama | ✔ | 本地部署 DeepSeek 等开源语言模型 |
226
+ | LM Studio | ✔ | 本地部署 DeepSeek 等开源语言模型 |
227
+ | [优云智算](https://www.compshare.cn/?ytag=GPU_YY-gh_astrbot&referral_code=FV7DcGowN4hB5UuXKgpE74) | ✔ | |
228
+ | [302.AI](https://share.302.ai/rr1M3l) | ✔ | |
229
+ | [小马算力](https://www.tokenpony.cn/3YPyf) | ✔ | |
230
+ | 硅基流动 | ✔ | |
231
+ | PPIO 派欧云 | ✔ | |
232
+ | ModelScope | ✔ | |
233
+ | OneAPI | ✔ | |
234
+ | Dify | ✔ | |
235
+ | 阿里云百炼应用 | ✔ | |
236
+ | Coze | ✔ | |
237
+
238
+ **语音转文本服务**
239
+
240
+ | 名称 | 支持性 | 备注 |
241
+ | -------- | ------- | ------- |
242
+ | Whisper | ✔ | 支持 API、本地部署 |
243
+ | SenseVoice | ✔ | 本地部署 |
244
+
245
+ **文本转语音服务**
246
+
247
+ | 名称 | 支持性 | 备注 |
248
+ | -------- | ------- | ------- |
249
+ | OpenAI TTS | ✔ | |
250
+ | Gemini TTS | ✔ | |
251
+ | GSVI | ✔ | GPT-Sovits-Inference |
252
+ | GPT-SoVITs | ✔ | GPT-Sovits |
253
+ | FishAudio | ✔ | |
254
+ | Edge TTS | ✔ | Edge 浏览器的免费 TTS |
255
+ | 阿里云百炼 TTS | ✔ | |
256
+ | Azure TTS | ✔ | |
257
+ | Minimax TTS | ✔ | |
258
+ | 火山引擎 TTS | ✔ | |
259
+
260
+ ## ❤️ 贡献
261
+
262
+ 欢迎任何 Issues/Pull Requests!只需要将你的更改提交到此项目 :)
263
+
264
+ ### 如何贡献
265
+
266
+ 你可以通过查看问题或帮助审核 PR(拉取请求)来贡献。任何问题或 PR 都欢迎参与,以促进社区贡献。当然,这些只是建议,你可以以任何方式进行贡献。对于新功能的添加,请先通过 Issue 讨论。
267
+
268
+ ### 开发环境
269
+
270
+ AstrBot 使用 `ruff` 进行代码格式化和检查。
271
+
272
+ ```bash
273
+ git clone https://github.com/AstrBotDevs/AstrBot
274
+ pip install pre-commit
275
+ pre-commit install
276
+ ```
277
+
278
+ ## ❤️ Special Thanks
279
+
280
+ 特别感谢所有 Contributors 和插件开发者对 AstrBot 的贡献 ❤️
281
+
282
+ <a href="https://github.com/AstrBotDevs/AstrBot/graphs/contributors">
283
+ <img src="https://contrib.rocks/image?repo=AstrBotDevs/AstrBot" />
284
+ </a>
285
+
286
+ 此外,本项目的诞生离不开以下开源项目的帮助:
287
+
288
+ - [NapNeko/NapCatQQ](https://github.com/NapNeko/NapCatQQ) - 伟大的猫猫框架
289
+
290
+ ## ⭐ Star History
291
+
292
+ > [!TIP]
293
+ > 如果本项目对您的生活 / 工作产生了帮助,或者您关注本项目的未来发展,请给项目 Star,这是我们维护这个开源项目的动力 <3
294
+
295
+ <div align="center">
296
+
297
+ [![Star History Chart](https://api.star-history.com/svg?repos=astrbotdevs/astrbot&type=Date)](https://star-history.com/#astrbotdevs/astrbot&Date)
298
+
299
+ </div>
300
+
301
+ </details>
302
+
303
+ _私は、高性能ですから!_
@@ -0,0 +1,19 @@
1
+ from astrbot import logger
2
+ from astrbot.core import html_renderer, sp
3
+ from astrbot.core.agent.tool import FunctionTool, ToolSet
4
+ from astrbot.core.agent.tool_executor import BaseFunctionToolExecutor
5
+ from astrbot.core.config.astrbot_config import AstrBotConfig
6
+ from astrbot.core.star.register import register_agent as agent
7
+ from astrbot.core.star.register import register_llm_tool as llm_tool
8
+
9
+ __all__ = [
10
+ "AstrBotConfig",
11
+ "BaseFunctionToolExecutor",
12
+ "FunctionTool",
13
+ "ToolSet",
14
+ "agent",
15
+ "html_renderer",
16
+ "llm_tool",
17
+ "logger",
18
+ "sp",
19
+ ]
@@ -0,0 +1,17 @@
1
+ from astrbot.core.message.message_event_result import (
2
+ CommandResult,
3
+ EventResultType,
4
+ MessageChain,
5
+ MessageEventResult,
6
+ ResultContentType,
7
+ )
8
+ from astrbot.core.platform import AstrMessageEvent
9
+
10
+ __all__ = [
11
+ "AstrMessageEvent",
12
+ "CommandResult",
13
+ "EventResultType",
14
+ "MessageChain",
15
+ "MessageEventResult",
16
+ "ResultContentType",
17
+ ]
@@ -0,0 +1,52 @@
1
+ from astrbot.core.star.filter.custom_filter import CustomFilter
2
+ from astrbot.core.star.filter.event_message_type import (
3
+ EventMessageType,
4
+ EventMessageTypeFilter,
5
+ )
6
+ from astrbot.core.star.filter.permission import PermissionType, PermissionTypeFilter
7
+ from astrbot.core.star.filter.platform_adapter_type import (
8
+ PlatformAdapterType,
9
+ PlatformAdapterTypeFilter,
10
+ )
11
+ from astrbot.core.star.register import register_after_message_sent as after_message_sent
12
+ from astrbot.core.star.register import register_command as command
13
+ from astrbot.core.star.register import register_command_group as command_group
14
+ from astrbot.core.star.register import register_custom_filter as custom_filter
15
+ from astrbot.core.star.register import register_event_message_type as event_message_type
16
+ from astrbot.core.star.register import register_llm_tool as llm_tool
17
+ from astrbot.core.star.register import register_on_astrbot_loaded as on_astrbot_loaded
18
+ from astrbot.core.star.register import (
19
+ register_on_decorating_result as on_decorating_result,
20
+ )
21
+ from astrbot.core.star.register import register_on_llm_request as on_llm_request
22
+ from astrbot.core.star.register import register_on_llm_response as on_llm_response
23
+ from astrbot.core.star.register import register_on_platform_loaded as on_platform_loaded
24
+ from astrbot.core.star.register import register_permission_type as permission_type
25
+ from astrbot.core.star.register import (
26
+ register_platform_adapter_type as platform_adapter_type,
27
+ )
28
+ from astrbot.core.star.register import register_regex as regex
29
+
30
+ __all__ = [
31
+ "CustomFilter",
32
+ "EventMessageType",
33
+ "EventMessageTypeFilter",
34
+ "PermissionType",
35
+ "PermissionTypeFilter",
36
+ "PlatformAdapterType",
37
+ "PlatformAdapterTypeFilter",
38
+ "after_message_sent",
39
+ "command",
40
+ "command_group",
41
+ "custom_filter",
42
+ "event_message_type",
43
+ "llm_tool",
44
+ "on_astrbot_loaded",
45
+ "on_decorating_result",
46
+ "on_llm_request",
47
+ "on_llm_response",
48
+ "on_platform_loaded",
49
+ "permission_type",
50
+ "platform_adapter_type",
51
+ "regex",
52
+ ]
@@ -0,0 +1,22 @@
1
+ from astrbot.core.message.components import *
2
+ from astrbot.core.platform import (
3
+ AstrBotMessage,
4
+ AstrMessageEvent,
5
+ Group,
6
+ MessageMember,
7
+ MessageType,
8
+ Platform,
9
+ PlatformMetadata,
10
+ )
11
+ from astrbot.core.platform.register import register_platform_adapter
12
+
13
+ __all__ = [
14
+ "AstrBotMessage",
15
+ "AstrMessageEvent",
16
+ "Group",
17
+ "MessageMember",
18
+ "MessageType",
19
+ "Platform",
20
+ "PlatformMetadata",
21
+ "register_platform_adapter",
22
+ ]
@@ -0,0 +1,17 @@
1
+ from astrbot.core.provider import Personality, Provider, STTProvider
2
+ from astrbot.core.provider.entities import (
3
+ LLMResponse,
4
+ ProviderMetaData,
5
+ ProviderRequest,
6
+ ProviderType,
7
+ )
8
+
9
+ __all__ = [
10
+ "LLMResponse",
11
+ "Personality",
12
+ "Provider",
13
+ "ProviderMetaData",
14
+ "ProviderRequest",
15
+ "ProviderType",
16
+ "STTProvider",
17
+ ]
@@ -0,0 +1,7 @@
1
+ from astrbot.core.star import Context, Star, StarTools
2
+ from astrbot.core.star.config import *
3
+ from astrbot.core.star.register import (
4
+ register_star as register, # 注册插件(Star)
5
+ )
6
+
7
+ __all__ = ["Context", "Star", "StarTools", "register"]
@@ -0,0 +1,7 @@
1
+ from astrbot.core.utils.session_waiter import (
2
+ SessionController,
3
+ SessionWaiter,
4
+ session_waiter,
5
+ )
6
+
7
+ __all__ = ["SessionController", "SessionWaiter", "session_waiter"]
@@ -0,0 +1,59 @@
1
+ """AstrBot CLI入口"""
2
+
3
+ import sys
4
+
5
+ import click
6
+
7
+ from . import __version__
8
+ from .commands import conf, init, plug, run
9
+
10
+ logo_tmpl = r"""
11
+ ___ _______.___________..______ .______ ______ .___________.
12
+ / \ / | || _ \ | _ \ / __ \ | |
13
+ / ^ \ | (----`---| |----`| |_) | | |_) | | | | | `---| |----`
14
+ / /_\ \ \ \ | | | / | _ < | | | | | |
15
+ / _____ \ .----) | | | | |\ \----.| |_) | | `--' | | |
16
+ /__/ \__\ |_______/ |__| | _| `._____||______/ \______/ |__|
17
+ """
18
+
19
+
20
+ @click.group()
21
+ @click.version_option(__version__, prog_name="AstrBot")
22
+ def cli() -> None:
23
+ """The AstrBot CLI"""
24
+ click.echo(logo_tmpl)
25
+ click.echo("Welcome to AstrBot CLI!")
26
+ click.echo(f"AstrBot CLI version: {__version__}")
27
+
28
+
29
+ @click.command()
30
+ @click.argument("command_name", required=False, type=str)
31
+ def help(command_name: str | None) -> None:
32
+ """显示命令的帮助信息
33
+
34
+ 如果提供了 COMMAND_NAME,则显示该命令的详细帮助信息。
35
+ 否则,显示通用帮助信息。
36
+ """
37
+ ctx = click.get_current_context()
38
+ if command_name:
39
+ # 查找指定命令
40
+ command = cli.get_command(ctx, command_name)
41
+ if command:
42
+ # 显示特定命令的帮助信息
43
+ click.echo(command.get_help(ctx))
44
+ else:
45
+ click.echo(f"Unknown command: {command_name}")
46
+ sys.exit(1)
47
+ else:
48
+ # 显示通用帮助信息
49
+ click.echo(cli.get_help(ctx))
50
+
51
+
52
+ cli.add_command(init)
53
+ cli.add_command(run)
54
+ cli.add_command(help)
55
+ cli.add_command(plug)
56
+ cli.add_command(conf)
57
+
58
+ if __name__ == "__main__":
59
+ cli()
@@ -0,0 +1,6 @@
1
+ from .cmd_conf import conf
2
+ from .cmd_init import init
3
+ from .cmd_plug import plug
4
+ from .cmd_run import run
5
+
6
+ __all__ = ["conf", "init", "plug", "run"]