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.
- astrbot-4.5.2/.dockerignore +22 -0
- astrbot-4.5.2/.gitignore +49 -0
- astrbot-4.5.2/Dockerfile +32 -0
- astrbot-4.5.2/Dockerfile_with_node +40 -0
- astrbot-4.5.2/PKG-INFO +303 -0
- astrbot-4.5.2/astrbot/api/__init__.py +19 -0
- astrbot-4.5.2/astrbot/api/event/__init__.py +17 -0
- astrbot-4.5.2/astrbot/api/event/filter/__init__.py +52 -0
- astrbot-4.5.2/astrbot/api/platform/__init__.py +22 -0
- astrbot-4.5.2/astrbot/api/provider/__init__.py +17 -0
- astrbot-4.5.2/astrbot/api/star/__init__.py +7 -0
- astrbot-4.5.2/astrbot/api/util/__init__.py +7 -0
- astrbot-4.5.2/astrbot/cli/__main__.py +59 -0
- astrbot-4.5.2/astrbot/cli/commands/__init__.py +6 -0
- astrbot-4.5.2/astrbot/cli/commands/cmd_conf.py +209 -0
- astrbot-4.5.2/astrbot/cli/commands/cmd_init.py +56 -0
- astrbot-4.5.2/astrbot/cli/commands/cmd_plug.py +245 -0
- astrbot-4.5.2/astrbot/cli/commands/cmd_run.py +62 -0
- astrbot-4.5.2/astrbot/cli/utils/__init__.py +18 -0
- astrbot-4.5.2/astrbot/cli/utils/basic.py +76 -0
- astrbot-4.5.2/astrbot/cli/utils/plugin.py +246 -0
- astrbot-4.5.2/astrbot/cli/utils/version_comparator.py +90 -0
- astrbot-4.5.2/astrbot/core/__init__.py +31 -0
- astrbot-4.5.2/astrbot/core/agent/agent.py +14 -0
- astrbot-4.5.2/astrbot/core/agent/handoff.py +38 -0
- astrbot-4.5.2/astrbot/core/agent/hooks.py +30 -0
- astrbot-4.5.2/astrbot/core/agent/mcp_client.py +259 -0
- astrbot-4.5.2/astrbot/core/agent/message.py +168 -0
- astrbot-4.5.2/astrbot/core/agent/response.py +14 -0
- astrbot-4.5.2/astrbot/core/agent/run_context.py +17 -0
- astrbot-4.5.2/astrbot/core/agent/runners/base.py +55 -0
- astrbot-4.5.2/astrbot/core/agent/runners/tool_loop_agent_runner.py +358 -0
- astrbot-4.5.2/astrbot/core/agent/tool.py +286 -0
- astrbot-4.5.2/astrbot/core/agent/tool_executor.py +17 -0
- astrbot-4.5.2/astrbot/core/astr_agent_context.py +14 -0
- astrbot-4.5.2/astrbot/core/astrbot_config_mgr.py +275 -0
- astrbot-4.5.2/astrbot/core/config/__init__.py +9 -0
- astrbot-4.5.2/astrbot/core/config/astrbot_config.py +172 -0
- astrbot-4.5.2/astrbot/core/config/default.py +2722 -0
- astrbot-4.5.2/astrbot/core/conversation_mgr.py +409 -0
- astrbot-4.5.2/astrbot/core/core_lifecycle.py +330 -0
- astrbot-4.5.2/astrbot/core/db/__init__.py +315 -0
- astrbot-4.5.2/astrbot/core/db/migration/helper.py +69 -0
- astrbot-4.5.2/astrbot/core/db/migration/migra_3_to_4.py +357 -0
- astrbot-4.5.2/astrbot/core/db/migration/migra_45_to_46.py +44 -0
- astrbot-4.5.2/astrbot/core/db/migration/shared_preferences_v3.py +48 -0
- astrbot-4.5.2/astrbot/core/db/migration/sqlite_v3.py +497 -0
- astrbot-4.5.2/astrbot/core/db/po.py +257 -0
- astrbot-4.5.2/astrbot/core/db/sqlite.py +711 -0
- astrbot-4.5.2/astrbot/core/db/vec_db/base.py +73 -0
- astrbot-4.5.2/astrbot/core/db/vec_db/faiss_impl/document_storage.py +392 -0
- astrbot-4.5.2/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +93 -0
- astrbot-4.5.2/astrbot/core/db/vec_db/faiss_impl/vec_db.py +204 -0
- astrbot-4.5.2/astrbot/core/event_bus.py +61 -0
- astrbot-4.5.2/astrbot/core/file_token_service.py +98 -0
- astrbot-4.5.2/astrbot/core/initial_loader.py +57 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/chunking/__init__.py +9 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/chunking/base.py +25 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/chunking/fixed_size.py +59 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/chunking/recursive.py +161 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/kb_db_sqlite.py +301 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/kb_helper.py +361 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/kb_mgr.py +286 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/models.py +120 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/parsers/__init__.py +13 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/parsers/base.py +51 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/parsers/markitdown_parser.py +26 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/parsers/pdf_parser.py +101 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/parsers/text_parser.py +42 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/parsers/util.py +13 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/__init__.py +14 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/manager.py +276 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/rank_fusion.py +142 -0
- astrbot-4.5.2/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +136 -0
- astrbot-4.5.2/astrbot/core/log.py +254 -0
- astrbot-4.5.2/astrbot/core/message/components.py +809 -0
- astrbot-4.5.2/astrbot/core/message/message_event_result.py +233 -0
- astrbot-4.5.2/astrbot/core/persona_mgr.py +192 -0
- astrbot-4.5.2/astrbot/core/pipeline/__init__.py +41 -0
- astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/stage.py +41 -0
- astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +7 -0
- astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +29 -0
- astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +24 -0
- astrbot-4.5.2/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +34 -0
- astrbot-4.5.2/astrbot/core/pipeline/context.py +18 -0
- astrbot-4.5.2/astrbot/core/pipeline/context_utils.py +172 -0
- astrbot-4.5.2/astrbot/core/pipeline/preprocess_stage/stage.py +100 -0
- astrbot-4.5.2/astrbot/core/pipeline/process_stage/method/llm_request.py +723 -0
- astrbot-4.5.2/astrbot/core/pipeline/process_stage/method/star_request.py +61 -0
- astrbot-4.5.2/astrbot/core/pipeline/process_stage/stage.py +71 -0
- astrbot-4.5.2/astrbot/core/pipeline/process_stage/utils.py +81 -0
- astrbot-4.5.2/astrbot/core/pipeline/rate_limit_check/stage.py +99 -0
- astrbot-4.5.2/astrbot/core/pipeline/respond/stage.py +273 -0
- astrbot-4.5.2/astrbot/core/pipeline/result_decorate/stage.py +317 -0
- astrbot-4.5.2/astrbot/core/pipeline/scheduler.py +84 -0
- astrbot-4.5.2/astrbot/core/pipeline/session_status_check/stage.py +37 -0
- astrbot-4.5.2/astrbot/core/pipeline/stage.py +45 -0
- astrbot-4.5.2/astrbot/core/pipeline/waking_check/stage.py +201 -0
- astrbot-4.5.2/astrbot/core/pipeline/whitelist_check/stage.py +68 -0
- astrbot-4.5.2/astrbot/core/platform/__init__.py +14 -0
- astrbot-4.5.2/astrbot/core/platform/astr_message_event.py +403 -0
- astrbot-4.5.2/astrbot/core/platform/astrbot_message.py +89 -0
- astrbot-4.5.2/astrbot/core/platform/manager.py +198 -0
- astrbot-4.5.2/astrbot/core/platform/message_session.py +30 -0
- astrbot-4.5.2/astrbot/core/platform/platform.py +51 -0
- astrbot-4.5.2/astrbot/core/platform/platform_metadata.py +18 -0
- astrbot-4.5.2/astrbot/core/platform/register.py +51 -0
- astrbot-4.5.2/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +237 -0
- astrbot-4.5.2/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +421 -0
- astrbot-4.5.2/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +249 -0
- astrbot-4.5.2/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +79 -0
- astrbot-4.5.2/astrbot/core/platform/sources/discord/client.py +129 -0
- astrbot-4.5.2/astrbot/core/platform/sources/discord/components.py +139 -0
- astrbot-4.5.2/astrbot/core/platform/sources/discord/discord_platform_adapter.py +470 -0
- astrbot-4.5.2/astrbot/core/platform/sources/discord/discord_platform_event.py +304 -0
- astrbot-4.5.2/astrbot/core/platform/sources/lark/lark_adapter.py +238 -0
- astrbot-4.5.2/astrbot/core/platform/sources/lark/lark_event.py +144 -0
- astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_adapter.py +767 -0
- astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_api.py +964 -0
- astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_event.py +163 -0
- astrbot-4.5.2/astrbot/core/platform/sources/misskey/misskey_utils.py +550 -0
- astrbot-4.5.2/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +329 -0
- astrbot-4.5.2/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +227 -0
- astrbot-4.5.2/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +143 -0
- astrbot-4.5.2/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +17 -0
- astrbot-4.5.2/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +116 -0
- astrbot-4.5.2/astrbot/core/platform/sources/satori/satori_adapter.py +792 -0
- astrbot-4.5.2/astrbot/core/platform/sources/satori/satori_event.py +432 -0
- astrbot-4.5.2/astrbot/core/platform/sources/slack/client.py +164 -0
- astrbot-4.5.2/astrbot/core/platform/sources/slack/slack_adapter.py +414 -0
- astrbot-4.5.2/astrbot/core/platform/sources/slack/slack_event.py +253 -0
- astrbot-4.5.2/astrbot/core/platform/sources/telegram/tg_adapter.py +428 -0
- astrbot-4.5.2/astrbot/core/platform/sources/telegram/tg_event.py +296 -0
- astrbot-4.5.2/astrbot/core/platform/sources/webchat/webchat_adapter.py +171 -0
- astrbot-4.5.2/astrbot/core/platform/sources/webchat/webchat_event.py +141 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +923 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +162 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +159 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_adapter.py +385 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_event.py +225 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_kf.py +279 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom/wecom_kf_message.py +196 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +297 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +15 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +19 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +469 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +417 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +148 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +157 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +168 -0
- astrbot-4.5.2/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +209 -0
- astrbot-4.5.2/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +303 -0
- astrbot-4.5.2/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +186 -0
- astrbot-4.5.2/astrbot/core/platform_message_history_mgr.py +49 -0
- astrbot-4.5.2/astrbot/core/provider/__init__.py +4 -0
- astrbot-4.5.2/astrbot/core/provider/entites.py +19 -0
- astrbot-4.5.2/astrbot/core/provider/entities.py +302 -0
- astrbot-4.5.2/astrbot/core/provider/func_tool_manager.py +574 -0
- astrbot-4.5.2/astrbot/core/provider/manager.py +515 -0
- astrbot-4.5.2/astrbot/core/provider/provider.py +311 -0
- astrbot-4.5.2/astrbot/core/provider/register.py +51 -0
- astrbot-4.5.2/astrbot/core/provider/sources/anthropic_source.py +414 -0
- astrbot-4.5.2/astrbot/core/provider/sources/azure_tts_source.py +224 -0
- astrbot-4.5.2/astrbot/core/provider/sources/coze_api_client.py +324 -0
- astrbot-4.5.2/astrbot/core/provider/sources/coze_source.py +652 -0
- astrbot-4.5.2/astrbot/core/provider/sources/dashscope_source.py +209 -0
- astrbot-4.5.2/astrbot/core/provider/sources/dashscope_tts.py +162 -0
- astrbot-4.5.2/astrbot/core/provider/sources/dify_source.py +287 -0
- astrbot-4.5.2/astrbot/core/provider/sources/edge_tts_source.py +126 -0
- astrbot-4.5.2/astrbot/core/provider/sources/fishaudio_tts_api_source.py +150 -0
- astrbot-4.5.2/astrbot/core/provider/sources/gemini_embedding_source.py +61 -0
- astrbot-4.5.2/astrbot/core/provider/sources/gemini_source.py +739 -0
- astrbot-4.5.2/astrbot/core/provider/sources/gemini_tts_source.py +81 -0
- astrbot-4.5.2/astrbot/core/provider/sources/gsv_selfhosted_source.py +151 -0
- astrbot-4.5.2/astrbot/core/provider/sources/gsvi_tts_source.py +59 -0
- astrbot-4.5.2/astrbot/core/provider/sources/minimax_tts_api_source.py +159 -0
- astrbot-4.5.2/astrbot/core/provider/sources/openai_embedding_source.py +40 -0
- astrbot-4.5.2/astrbot/core/provider/sources/openai_source.py +603 -0
- astrbot-4.5.2/astrbot/core/provider/sources/openai_tts_api_source.py +52 -0
- astrbot-4.5.2/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +106 -0
- astrbot-4.5.2/astrbot/core/provider/sources/vllm_rerank_source.py +71 -0
- astrbot-4.5.2/astrbot/core/provider/sources/volcengine_tts.py +115 -0
- astrbot-4.5.2/astrbot/core/provider/sources/whisper_api_source.py +77 -0
- astrbot-4.5.2/astrbot/core/provider/sources/whisper_selfhosted_source.py +79 -0
- astrbot-4.5.2/astrbot/core/provider/sources/xinference_rerank_source.py +116 -0
- astrbot-4.5.2/astrbot/core/provider/sources/xinference_stt_provider.py +197 -0
- astrbot-4.5.2/astrbot/core/star/__init__.py +64 -0
- astrbot-4.5.2/astrbot/core/star/config.py +84 -0
- astrbot-4.5.2/astrbot/core/star/context.py +375 -0
- astrbot-4.5.2/astrbot/core/star/filter/__init__.py +15 -0
- astrbot-4.5.2/astrbot/core/star/filter/command.py +219 -0
- astrbot-4.5.2/astrbot/core/star/filter/command_group.py +134 -0
- astrbot-4.5.2/astrbot/core/star/filter/custom_filter.py +62 -0
- astrbot-4.5.2/astrbot/core/star/filter/event_message_type.py +33 -0
- astrbot-4.5.2/astrbot/core/star/filter/permission.py +29 -0
- astrbot-4.5.2/astrbot/core/star/filter/platform_adapter_type.py +71 -0
- astrbot-4.5.2/astrbot/core/star/filter/regex.py +18 -0
- astrbot-4.5.2/astrbot/core/star/register/__init__.py +37 -0
- astrbot-4.5.2/astrbot/core/star/register/star.py +66 -0
- astrbot-4.5.2/astrbot/core/star/register/star_handler.py +520 -0
- astrbot-4.5.2/astrbot/core/star/session_llm_manager.py +280 -0
- astrbot-4.5.2/astrbot/core/star/session_plugin_manager.py +170 -0
- astrbot-4.5.2/astrbot/core/star/star.py +68 -0
- astrbot-4.5.2/astrbot/core/star/star_handler.py +147 -0
- astrbot-4.5.2/astrbot/core/star/star_manager.py +971 -0
- astrbot-4.5.2/astrbot/core/star/star_tools.py +314 -0
- astrbot-4.5.2/astrbot/core/star/updator.py +81 -0
- astrbot-4.5.2/astrbot/core/umop_config_router.py +87 -0
- astrbot-4.5.2/astrbot/core/updator.py +125 -0
- astrbot-4.5.2/astrbot/core/utils/astrbot_path.py +39 -0
- astrbot-4.5.2/astrbot/core/utils/dify_api_client.py +157 -0
- astrbot-4.5.2/astrbot/core/utils/io.py +287 -0
- astrbot-4.5.2/astrbot/core/utils/log_pipe.py +36 -0
- astrbot-4.5.2/astrbot/core/utils/metrics.py +75 -0
- astrbot-4.5.2/astrbot/core/utils/path_util.py +71 -0
- astrbot-4.5.2/astrbot/core/utils/pip_installer.py +62 -0
- astrbot-4.5.2/astrbot/core/utils/session_waiter.py +197 -0
- astrbot-4.5.2/astrbot/core/utils/shared_preferences.py +205 -0
- astrbot-4.5.2/astrbot/core/utils/t2i/__init__.py +16 -0
- astrbot-4.5.2/astrbot/core/utils/t2i/network_strategy.py +137 -0
- astrbot-4.5.2/astrbot/core/utils/t2i/renderer.py +61 -0
- astrbot-4.5.2/astrbot/core/utils/t2i/template_manager.py +111 -0
- astrbot-4.5.2/astrbot/core/utils/tencent_record_helper.py +166 -0
- astrbot-4.5.2/astrbot/core/utils/version_comparator.py +85 -0
- astrbot-4.5.2/astrbot/core/zip_updator.py +236 -0
- astrbot-4.5.2/astrbot/dashboard/routes/__init__.py +31 -0
- astrbot-4.5.2/astrbot/dashboard/routes/auth.py +89 -0
- astrbot-4.5.2/astrbot/dashboard/routes/chat.py +340 -0
- astrbot-4.5.2/astrbot/dashboard/routes/config.py +961 -0
- astrbot-4.5.2/astrbot/dashboard/routes/conversation.py +285 -0
- astrbot-4.5.2/astrbot/dashboard/routes/file.py +26 -0
- astrbot-4.5.2/astrbot/dashboard/routes/knowledge_base.py +1072 -0
- astrbot-4.5.2/astrbot/dashboard/routes/log.py +69 -0
- astrbot-4.5.2/astrbot/dashboard/routes/persona.py +202 -0
- astrbot-4.5.2/astrbot/dashboard/routes/plugin.py +515 -0
- astrbot-4.5.2/astrbot/dashboard/routes/route.py +57 -0
- astrbot-4.5.2/astrbot/dashboard/routes/session_management.py +688 -0
- astrbot-4.5.2/astrbot/dashboard/routes/stat.py +185 -0
- astrbot-4.5.2/astrbot/dashboard/routes/t2i.py +233 -0
- astrbot-4.5.2/astrbot/dashboard/routes/tools.py +346 -0
- astrbot-4.5.2/astrbot/dashboard/routes/update.py +170 -0
- astrbot-4.5.2/astrbot/dashboard/server.py +238 -0
- astrbot-4.5.2/astrbot/dashboard/utils.py +165 -0
- astrbot-4.5.2/changelogs/v4.5.2.md +8 -0
- astrbot-4.5.2/dashboard/.gitignore +3 -0
- astrbot-4.5.2/dashboard/src/components/shared/ExtensionCard.vue +255 -0
- astrbot-4.5.2/dashboard/src/components/shared/SidebarCustomizer.vue +290 -0
- astrbot-4.5.2/dashboard/src/components/shared/UninstallConfirmDialog.vue +135 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/en-US/core/actions.json +23 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/en-US/features/extension.json +166 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/en-US/features/settings.json +33 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/en-US/messages/validation.json +25 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/core/actions.json +23 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/features/extension.json +166 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/features/settings.json +33 -0
- astrbot-4.5.2/dashboard/src/i18n/locales/zh-CN/messages/validation.json +25 -0
- astrbot-4.5.2/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +350 -0
- astrbot-4.5.2/dashboard/src/utils/sidebarCustomization.js +99 -0
- astrbot-4.5.2/dashboard/src/views/ExtensionPage.vue +1090 -0
- astrbot-4.5.2/dashboard/src/views/Settings.vue +68 -0
- astrbot-4.5.2/main.py +105 -0
- astrbot-4.5.2/packages/astrbot/commands/__init__.py +31 -0
- astrbot-4.5.2/packages/astrbot/commands/admin.py +76 -0
- astrbot-4.5.2/packages/astrbot/commands/alter_cmd.py +173 -0
- astrbot-4.5.2/packages/astrbot/commands/conversation.py +453 -0
- astrbot-4.5.2/packages/astrbot/commands/help.py +63 -0
- astrbot-4.5.2/packages/astrbot/commands/llm.py +20 -0
- astrbot-4.5.2/packages/astrbot/commands/persona.py +126 -0
- astrbot-4.5.2/packages/astrbot/commands/plugin.py +120 -0
- astrbot-4.5.2/packages/astrbot/commands/provider.py +207 -0
- astrbot-4.5.2/packages/astrbot/commands/setunset.py +36 -0
- astrbot-4.5.2/packages/astrbot/commands/sid.py +36 -0
- astrbot-4.5.2/packages/astrbot/commands/t2i.py +23 -0
- astrbot-4.5.2/packages/astrbot/commands/tool.py +31 -0
- astrbot-4.5.2/packages/astrbot/commands/tts.py +36 -0
- astrbot-4.5.2/packages/astrbot/long_term_memory.py +181 -0
- astrbot-4.5.2/packages/astrbot/main.py +350 -0
- astrbot-4.5.2/packages/astrbot/process_llm_request.py +202 -0
- astrbot-4.5.2/packages/python_interpreter/main.py +530 -0
- astrbot-4.5.2/packages/reminder/main.py +263 -0
- astrbot-4.5.2/packages/session_controller/main.py +114 -0
- astrbot-4.5.2/packages/thinking_filter/main.py +208 -0
- astrbot-4.5.2/packages/web_searcher/engines/__init__.py +104 -0
- astrbot-4.5.2/packages/web_searcher/engines/bing.py +38 -0
- astrbot-4.5.2/packages/web_searcher/engines/sogo.py +46 -0
- astrbot-4.5.2/packages/web_searcher/main.py +435 -0
- astrbot-4.5.2/pyproject.toml +126 -0
- astrbot-4.5.2/tests/test_dashboard.py +206 -0
- astrbot-4.5.2/tests/test_main.py +90 -0
- astrbot-4.5.2/tests/test_plugin_manager.py +148 -0
- astrbot-4.5.2/tests/test_security_fixes.py +151 -0
- astrbot-4.5.1/.dockerignore +0 -24
- astrbot-4.5.1/.gitignore +0 -35
- astrbot-4.5.1/Dockerfile +0 -30
- astrbot-4.5.1/Dockerfile_with_node +0 -35
- astrbot-4.5.1/PKG-INFO +0 -302
- astrbot-4.5.1/astrbot/api/__init__.py +0 -20
- astrbot-4.5.1/astrbot/api/event/__init__.py +0 -18
- astrbot-4.5.1/astrbot/api/event/filter/__init__.py +0 -51
- astrbot-4.5.1/astrbot/api/platform/__init__.py +0 -23
- astrbot-4.5.1/astrbot/api/provider/__init__.py +0 -17
- astrbot-4.5.1/astrbot/api/star/__init__.py +0 -8
- astrbot-4.5.1/astrbot/api/util/__init__.py +0 -7
- astrbot-4.5.1/astrbot/cli/__main__.py +0 -59
- astrbot-4.5.1/astrbot/cli/commands/__init__.py +0 -6
- astrbot-4.5.1/astrbot/cli/commands/cmd_conf.py +0 -206
- astrbot-4.5.1/astrbot/cli/commands/cmd_init.py +0 -55
- astrbot-4.5.1/astrbot/cli/commands/cmd_plug.py +0 -247
- astrbot-4.5.1/astrbot/cli/commands/cmd_run.py +0 -63
- astrbot-4.5.1/astrbot/cli/utils/__init__.py +0 -18
- astrbot-4.5.1/astrbot/cli/utils/basic.py +0 -76
- astrbot-4.5.1/astrbot/cli/utils/plugin.py +0 -237
- astrbot-4.5.1/astrbot/cli/utils/version_comparator.py +0 -92
- astrbot-4.5.1/astrbot/core/__init__.py +0 -29
- astrbot-4.5.1/astrbot/core/agent/agent.py +0 -13
- astrbot-4.5.1/astrbot/core/agent/handoff.py +0 -34
- astrbot-4.5.1/astrbot/core/agent/hooks.py +0 -27
- astrbot-4.5.1/astrbot/core/agent/mcp_client.py +0 -224
- astrbot-4.5.1/astrbot/core/agent/response.py +0 -13
- astrbot-4.5.1/astrbot/core/agent/run_context.py +0 -18
- astrbot-4.5.1/astrbot/core/agent/runners/base.py +0 -58
- astrbot-4.5.1/astrbot/core/agent/runners/tool_loop_agent_runner.py +0 -357
- astrbot-4.5.1/astrbot/core/agent/tool.py +0 -267
- astrbot-4.5.1/astrbot/core/agent/tool_executor.py +0 -11
- astrbot-4.5.1/astrbot/core/astr_agent_context.py +0 -12
- astrbot-4.5.1/astrbot/core/astrbot_config_mgr.py +0 -255
- astrbot-4.5.1/astrbot/core/config/__init__.py +0 -9
- astrbot-4.5.1/astrbot/core/config/astrbot_config.py +0 -170
- astrbot-4.5.1/astrbot/core/config/default.py +0 -2724
- astrbot-4.5.1/astrbot/core/conversation_mgr.py +0 -340
- astrbot-4.5.1/astrbot/core/core_lifecycle.py +0 -316
- astrbot-4.5.1/astrbot/core/db/__init__.py +0 -300
- astrbot-4.5.1/astrbot/core/db/migration/helper.py +0 -67
- astrbot-4.5.1/astrbot/core/db/migration/migra_3_to_4.py +0 -338
- astrbot-4.5.1/astrbot/core/db/migration/migra_45_to_46.py +0 -44
- astrbot-4.5.1/astrbot/core/db/migration/shared_preferences_v3.py +0 -47
- astrbot-4.5.1/astrbot/core/db/migration/sqlite_v3.py +0 -494
- astrbot-4.5.1/astrbot/core/db/po.py +0 -248
- astrbot-4.5.1/astrbot/core/db/sqlite.py +0 -682
- astrbot-4.5.1/astrbot/core/db/vec_db/base.py +0 -77
- astrbot-4.5.1/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -379
- astrbot-4.5.1/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -87
- astrbot-4.5.1/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -199
- astrbot-4.5.1/astrbot/core/event_bus.py +0 -59
- astrbot-4.5.1/astrbot/core/file_token_service.py +0 -97
- astrbot-4.5.1/astrbot/core/initial_loader.py +0 -55
- astrbot-4.5.1/astrbot/core/knowledge_base/chunking/__init__.py +0 -11
- astrbot-4.5.1/astrbot/core/knowledge_base/chunking/base.py +0 -24
- astrbot-4.5.1/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -57
- astrbot-4.5.1/astrbot/core/knowledge_base/chunking/recursive.py +0 -155
- astrbot-4.5.1/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -299
- astrbot-4.5.1/astrbot/core/knowledge_base/kb_helper.py +0 -348
- astrbot-4.5.1/astrbot/core/knowledge_base/kb_mgr.py +0 -287
- astrbot-4.5.1/astrbot/core/knowledge_base/models.py +0 -114
- astrbot-4.5.1/astrbot/core/knowledge_base/parsers/__init__.py +0 -15
- astrbot-4.5.1/astrbot/core/knowledge_base/parsers/base.py +0 -50
- astrbot-4.5.1/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -25
- astrbot-4.5.1/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -100
- astrbot-4.5.1/astrbot/core/knowledge_base/parsers/text_parser.py +0 -41
- astrbot-4.5.1/astrbot/core/knowledge_base/parsers/util.py +0 -13
- astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/__init__.py +0 -16
- astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/manager.py +0 -273
- astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -138
- astrbot-4.5.1/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -130
- astrbot-4.5.1/astrbot/core/log.py +0 -246
- astrbot-4.5.1/astrbot/core/message/components.py +0 -903
- astrbot-4.5.1/astrbot/core/message/message_event_result.py +0 -233
- astrbot-4.5.1/astrbot/core/persona_mgr.py +0 -183
- astrbot-4.5.1/astrbot/core/pipeline/__init__.py +0 -41
- astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/stage.py +0 -37
- astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -8
- astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -30
- astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -23
- astrbot-4.5.1/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -34
- astrbot-4.5.1/astrbot/core/pipeline/context.py +0 -15
- astrbot-4.5.1/astrbot/core/pipeline/context_utils.py +0 -102
- astrbot-4.5.1/astrbot/core/pipeline/preprocess_stage/stage.py +0 -97
- astrbot-4.5.1/astrbot/core/pipeline/process_stage/method/llm_request.py +0 -670
- astrbot-4.5.1/astrbot/core/pipeline/process_stage/method/star_request.py +0 -59
- astrbot-4.5.1/astrbot/core/pipeline/process_stage/stage.py +0 -68
- astrbot-4.5.1/astrbot/core/pipeline/process_stage/utils.py +0 -80
- astrbot-4.5.1/astrbot/core/pipeline/rate_limit_check/stage.py +0 -98
- astrbot-4.5.1/astrbot/core/pipeline/respond/stage.py +0 -270
- astrbot-4.5.1/astrbot/core/pipeline/result_decorate/stage.py +0 -309
- astrbot-4.5.1/astrbot/core/pipeline/scheduler.py +0 -80
- astrbot-4.5.1/astrbot/core/pipeline/session_status_check/stage.py +0 -33
- astrbot-4.5.1/astrbot/core/pipeline/stage.py +0 -39
- astrbot-4.5.1/astrbot/core/pipeline/waking_check/stage.py +0 -195
- astrbot-4.5.1/astrbot/core/pipeline/whitelist_check/stage.py +0 -65
- astrbot-4.5.1/astrbot/core/platform/__init__.py +0 -14
- astrbot-4.5.1/astrbot/core/platform/astr_message_event.py +0 -437
- astrbot-4.5.1/astrbot/core/platform/astrbot_message.py +0 -91
- astrbot-4.5.1/astrbot/core/platform/manager.py +0 -197
- astrbot-4.5.1/astrbot/core/platform/message_session.py +0 -28
- astrbot-4.5.1/astrbot/core/platform/platform.py +0 -59
- astrbot-4.5.1/astrbot/core/platform/platform_metadata.py +0 -18
- astrbot-4.5.1/astrbot/core/platform/register.py +0 -51
- astrbot-4.5.1/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -229
- astrbot-4.5.1/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -403
- astrbot-4.5.1/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -234
- astrbot-4.5.1/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -75
- astrbot-4.5.1/astrbot/core/platform/sources/discord/client.py +0 -126
- astrbot-4.5.1/astrbot/core/platform/sources/discord/components.py +0 -135
- astrbot-4.5.1/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -455
- astrbot-4.5.1/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -296
- astrbot-4.5.1/astrbot/core/platform/sources/lark/lark_adapter.py +0 -232
- astrbot-4.5.1/astrbot/core/platform/sources/lark/lark_event.py +0 -137
- astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -727
- astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_api.py +0 -940
- astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_event.py +0 -158
- astrbot-4.5.1/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -538
- astrbot-4.5.1/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -310
- astrbot-4.5.1/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -212
- astrbot-4.5.1/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -124
- astrbot-4.5.1/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -15
- astrbot-4.5.1/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -111
- astrbot-4.5.1/astrbot/core/platform/sources/satori/satori_adapter.py +0 -774
- astrbot-4.5.1/astrbot/core/platform/sources/satori/satori_event.py +0 -423
- astrbot-4.5.1/astrbot/core/platform/sources/slack/client.py +0 -162
- astrbot-4.5.1/astrbot/core/platform/sources/slack/slack_adapter.py +0 -398
- astrbot-4.5.1/astrbot/core/platform/sources/slack/slack_event.py +0 -243
- astrbot-4.5.1/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -408
- astrbot-4.5.1/astrbot/core/platform/sources/telegram/tg_event.py +0 -282
- astrbot-4.5.1/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -161
- astrbot-4.5.1/astrbot/core/platform/sources/webchat/webchat_event.py +0 -137
- astrbot-4.5.1/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -928
- astrbot-4.5.1/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -161
- astrbot-4.5.1/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -160
- astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -368
- astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_event.py +0 -218
- astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -289
- astrbot-4.5.1/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -180
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -289
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -17
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -20
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -445
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -378
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -149
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -148
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -166
- astrbot-4.5.1/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -199
- astrbot-4.5.1/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -289
- astrbot-4.5.1/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -184
- astrbot-4.5.1/astrbot/core/platform_message_history_mgr.py +0 -47
- astrbot-4.5.1/astrbot/core/provider/__init__.py +0 -5
- astrbot-4.5.1/astrbot/core/provider/entites.py +0 -19
- astrbot-4.5.1/astrbot/core/provider/entities.py +0 -316
- astrbot-4.5.1/astrbot/core/provider/func_tool_manager.py +0 -570
- astrbot-4.5.1/astrbot/core/provider/manager.py +0 -505
- astrbot-4.5.1/astrbot/core/provider/provider.py +0 -285
- astrbot-4.5.1/astrbot/core/provider/register.py +0 -51
- astrbot-4.5.1/astrbot/core/provider/sources/anthropic_source.py +0 -396
- astrbot-4.5.1/astrbot/core/provider/sources/azure_tts_source.py +0 -220
- astrbot-4.5.1/astrbot/core/provider/sources/coze_api_client.py +0 -314
- astrbot-4.5.1/astrbot/core/provider/sources/coze_source.py +0 -635
- astrbot-4.5.1/astrbot/core/provider/sources/dashscope_source.py +0 -202
- astrbot-4.5.1/astrbot/core/provider/sources/dashscope_tts.py +0 -149
- astrbot-4.5.1/astrbot/core/provider/sources/dify_source.py +0 -282
- astrbot-4.5.1/astrbot/core/provider/sources/edge_tts_source.py +0 -122
- astrbot-4.5.1/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -142
- astrbot-4.5.1/astrbot/core/provider/sources/gemini_embedding_source.py +0 -62
- astrbot-4.5.1/astrbot/core/provider/sources/gemini_source.py +0 -725
- astrbot-4.5.1/astrbot/core/provider/sources/gemini_tts_source.py +0 -79
- astrbot-4.5.1/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -148
- astrbot-4.5.1/astrbot/core/provider/sources/gsvi_tts_source.py +0 -55
- astrbot-4.5.1/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -149
- astrbot-4.5.1/astrbot/core/provider/sources/openai_embedding_source.py +0 -42
- astrbot-4.5.1/astrbot/core/provider/sources/openai_source.py +0 -595
- astrbot-4.5.1/astrbot/core/provider/sources/openai_tts_api_source.py +0 -44
- astrbot-4.5.1/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -104
- astrbot-4.5.1/astrbot/core/provider/sources/vllm_rerank_source.py +0 -65
- astrbot-4.5.1/astrbot/core/provider/sources/volcengine_tts.py +0 -108
- astrbot-4.5.1/astrbot/core/provider/sources/whisper_api_source.py +0 -75
- astrbot-4.5.1/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -75
- astrbot-4.5.1/astrbot/core/provider/sources/xinference_rerank_source.py +0 -108
- astrbot-4.5.1/astrbot/core/provider/sources/xinference_stt_provider.py +0 -187
- astrbot-4.5.1/astrbot/core/star/__init__.py +0 -59
- astrbot-4.5.1/astrbot/core/star/config.py +0 -89
- astrbot-4.5.1/astrbot/core/star/context.py +0 -353
- astrbot-4.5.1/astrbot/core/star/filter/__init__.py +0 -14
- astrbot-4.5.1/astrbot/core/star/filter/command.py +0 -217
- astrbot-4.5.1/astrbot/core/star/filter/command_group.py +0 -131
- astrbot-4.5.1/astrbot/core/star/filter/custom_filter.py +0 -61
- astrbot-4.5.1/astrbot/core/star/filter/event_message_type.py +0 -31
- astrbot-4.5.1/astrbot/core/star/filter/permission.py +0 -27
- astrbot-4.5.1/astrbot/core/star/filter/platform_adapter_type.py +0 -69
- astrbot-4.5.1/astrbot/core/star/filter/regex.py +0 -16
- astrbot-4.5.1/astrbot/core/star/register/__init__.py +0 -37
- astrbot-4.5.1/astrbot/core/star/register/star.py +0 -62
- astrbot-4.5.1/astrbot/core/star/register/star_handler.py +0 -497
- astrbot-4.5.1/astrbot/core/star/session_llm_manager.py +0 -246
- astrbot-4.5.1/astrbot/core/star/session_plugin_manager.py +0 -156
- astrbot-4.5.1/astrbot/core/star/star.py +0 -69
- astrbot-4.5.1/astrbot/core/star/star_handler.py +0 -142
- astrbot-4.5.1/astrbot/core/star/star_manager.py +0 -879
- astrbot-4.5.1/astrbot/core/star/star_tools.py +0 -307
- astrbot-4.5.1/astrbot/core/star/updator.py +0 -81
- astrbot-4.5.1/astrbot/core/umop_config_router.py +0 -81
- astrbot-4.5.1/astrbot/core/updator.py +0 -117
- astrbot-4.5.1/astrbot/core/utils/astrbot_path.py +0 -41
- astrbot-4.5.1/astrbot/core/utils/dify_api_client.py +0 -139
- astrbot-4.5.1/astrbot/core/utils/io.py +0 -263
- astrbot-4.5.1/astrbot/core/utils/log_pipe.py +0 -36
- astrbot-4.5.1/astrbot/core/utils/metrics.py +0 -75
- astrbot-4.5.1/astrbot/core/utils/path_util.py +0 -72
- astrbot-4.5.1/astrbot/core/utils/pip_installer.py +0 -62
- astrbot-4.5.1/astrbot/core/utils/session_waiter.py +0 -198
- astrbot-4.5.1/astrbot/core/utils/shared_preferences.py +0 -180
- astrbot-4.5.1/astrbot/core/utils/t2i/__init__.py +0 -13
- astrbot-4.5.1/astrbot/core/utils/t2i/network_strategy.py +0 -128
- astrbot-4.5.1/astrbot/core/utils/t2i/renderer.py +0 -55
- astrbot-4.5.1/astrbot/core/utils/t2i/template_manager.py +0 -112
- astrbot-4.5.1/astrbot/core/utils/tencent_record_helper.py +0 -160
- astrbot-4.5.1/astrbot/core/utils/version_comparator.py +0 -88
- astrbot-4.5.1/astrbot/core/zip_updator.py +0 -233
- astrbot-4.5.1/astrbot/dashboard/routes/__init__.py +0 -31
- astrbot-4.5.1/astrbot/dashboard/routes/auth.py +0 -87
- astrbot-4.5.1/astrbot/dashboard/routes/chat.py +0 -331
- astrbot-4.5.1/astrbot/dashboard/routes/config.py +0 -944
- astrbot-4.5.1/astrbot/dashboard/routes/conversation.py +0 -278
- astrbot-4.5.1/astrbot/dashboard/routes/file.py +0 -24
- astrbot-4.5.1/astrbot/dashboard/routes/knowledge_base.py +0 -1065
- astrbot-4.5.1/astrbot/dashboard/routes/log.py +0 -64
- astrbot-4.5.1/astrbot/dashboard/routes/persona.py +0 -199
- astrbot-4.5.1/astrbot/dashboard/routes/plugin.py +0 -501
- astrbot-4.5.1/astrbot/dashboard/routes/route.py +0 -55
- astrbot-4.5.1/astrbot/dashboard/routes/session_management.py +0 -674
- astrbot-4.5.1/astrbot/dashboard/routes/stat.py +0 -185
- astrbot-4.5.1/astrbot/dashboard/routes/t2i.py +0 -230
- astrbot-4.5.1/astrbot/dashboard/routes/tools.py +0 -351
- astrbot-4.5.1/astrbot/dashboard/routes/update.py +0 -166
- astrbot-4.5.1/astrbot/dashboard/server.py +0 -234
- astrbot-4.5.1/astrbot/dashboard/utils.py +0 -161
- astrbot-4.5.1/astrbot.lock +0 -0
- astrbot-4.5.1/dashboard/.gitignore +0 -2
- astrbot-4.5.1/dashboard/src/components/shared/ExtensionCard.vue +0 -255
- astrbot-4.5.1/dashboard/src/i18n/locales/en-US/core/actions.json +0 -22
- astrbot-4.5.1/dashboard/src/i18n/locales/en-US/features/extension.json +0 -162
- astrbot-4.5.1/dashboard/src/i18n/locales/en-US/features/settings.json +0 -23
- astrbot-4.5.1/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -24
- astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/core/actions.json +0 -22
- astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/features/extension.json +0 -162
- astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -23
- astrbot-4.5.1/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -24
- astrbot-4.5.1/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +0 -326
- astrbot-4.5.1/dashboard/src/views/ExtensionPage.vue +0 -1046
- astrbot-4.5.1/dashboard/src/views/Settings.vue +0 -61
- astrbot-4.5.1/main.py +0 -102
- astrbot-4.5.1/packages/astrbot/commands/__init__.py +0 -31
- astrbot-4.5.1/packages/astrbot/commands/admin.py +0 -76
- astrbot-4.5.1/packages/astrbot/commands/alter_cmd.py +0 -172
- astrbot-4.5.1/packages/astrbot/commands/conversation.py +0 -431
- astrbot-4.5.1/packages/astrbot/commands/help.py +0 -61
- astrbot-4.5.1/packages/astrbot/commands/llm.py +0 -20
- astrbot-4.5.1/packages/astrbot/commands/persona.py +0 -122
- astrbot-4.5.1/packages/astrbot/commands/plugin.py +0 -117
- astrbot-4.5.1/packages/astrbot/commands/provider.py +0 -205
- astrbot-4.5.1/packages/astrbot/commands/setunset.py +0 -37
- astrbot-4.5.1/packages/astrbot/commands/sid.py +0 -36
- astrbot-4.5.1/packages/astrbot/commands/t2i.py +0 -23
- astrbot-4.5.1/packages/astrbot/commands/tool.py +0 -31
- astrbot-4.5.1/packages/astrbot/commands/tts.py +0 -36
- astrbot-4.5.1/packages/astrbot/long_term_memory.py +0 -175
- astrbot-4.5.1/packages/astrbot/main.py +0 -350
- astrbot-4.5.1/packages/astrbot/process_llm_request.py +0 -196
- astrbot-4.5.1/packages/python_interpreter/main.py +0 -519
- astrbot-4.5.1/packages/reminder/main.py +0 -258
- astrbot-4.5.1/packages/session_controller/main.py +0 -110
- astrbot-4.5.1/packages/thinking_filter/main.py +0 -203
- astrbot-4.5.1/packages/web_searcher/engines/__init__.py +0 -99
- astrbot-4.5.1/packages/web_searcher/engines/bing.py +0 -40
- astrbot-4.5.1/packages/web_searcher/engines/sogo.py +0 -47
- astrbot-4.5.1/packages/web_searcher/main.py +0 -409
- astrbot-4.5.1/pyproject.toml +0 -97
- astrbot-4.5.1/tests/test_dashboard.py +0 -201
- astrbot-4.5.1/tests/test_main.py +0 -88
- astrbot-4.5.1/tests/test_plugin_manager.py +0 -145
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/FUNDING.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/auto_assign.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/copilot-instructions.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/dependabot.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/auto_release.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/code-format.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/codeql.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/coverage_test.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/dashboard_ci.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/docker-image.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.github/workflows/stale.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.pre-commit-config.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/.python-version +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/CODE_OF_CONDUCT.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/LICENSE +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/README.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/README_en.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/README_ja.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/__init__.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/api/all.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/api/message_components.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/cli/__init__.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/agent/runners/__init__.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/platform/message_type.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/provider/sources/zhipu_source.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/star/README.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/command_parser.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/session_lock.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/t2i/local_strategy.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/core/utils/t2i/template/base.html +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/astrbot/dashboard/routes/static_file.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.10.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.11.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.12.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.13.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.14.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.15.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.16.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.17.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.18.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.19.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.20.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.21.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.22.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.23.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.24.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.25.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.26.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.27.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.28.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.29.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.3.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.30.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.31.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.32.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.33.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.35.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.36.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.37.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.38.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.39.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.4.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.5.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.6.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.7.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.8.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.4.9.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.10.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.11.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.12.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.13.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.14.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.15.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.16.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.17.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.18.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.19.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.2.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.20.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.21.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.22.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.23.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.24.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.25.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.26.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.27.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.3.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.3.2.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.3.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.4.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.5.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.6.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.7.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.8.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v3.5.9.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0-beta.3.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0-beta.4.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0-beta.5.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.0.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.2.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.3.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.4.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.5.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.6.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.1.7.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.2.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.2.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.2.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.3.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.3.5.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.5.0.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/changelogs/v4.5.1.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/compose.yml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/LICENSE +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/README.md +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/env.d.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/index.html +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/public/_redirects +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/public/favicon.svg +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/App.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/astrbot_banner.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/ConfirmDialog.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/chat/Chat.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/chat/MessageList.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/chat/ProviderModelSelector.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/platform/AddNewPlatform.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/provider/AddNewProvider.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/AstrBotConfig.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ItemCard.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/LanguageSwitcher.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ListConfigItem.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/Logo.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/PersonaForm.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ProviderSelector.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ProxySelector.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/ReadmeDialog.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/config.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/composables.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/loader.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/common.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/navigation.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/chat.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/config.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/provider.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/features/tool-use.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/common.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/chat.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/config.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/provider.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/tools/index.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/translations.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/types.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/i18n/validator.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/FullLayout.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/main.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/plugins/confirmPlugin.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/plugins/vuetify.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/AuthRoutes.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/MainRoutes.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/router/index.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/_override.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/_variables.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VButtons.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VCard.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VField.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VInput.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VShadow.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VTabs.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/components/_VTextField.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/layout/_container.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/layout/_sidebar.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/pages/_dashboards.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/scss/style.scss +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/auth.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/common.js +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/customizer.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/stores/toast.js +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/theme/DarkTheme.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/theme/LightTheme.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/utils/platformUtils.js +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/utils/providerUtils.js +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/utils/toast.js +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/AboutPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/AlkaidPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ChatBoxPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ChatPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ConfigPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ConsolePage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ConversationPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/PersonaPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/PlatformPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ProviderPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/SessionManagementPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/ToolUsePage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/alkaid/LongTermMemory.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/alkaid/Other.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/src/views/knowledge-base/index.vue +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/tsconfig.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/tsconfig.vite-config.json +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/dashboard/vite.config.ts +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/astrbot/commands/utils/rst_scene.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/astrbot/metadata.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/python_interpreter/metadata.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/python_interpreter/requirements.txt +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/python_interpreter/shared/api.py +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/reminder/metadata.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/session_controller/metadata.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/thinking_filter/metadata.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/packages/web_searcher/metadata.yaml +0 -0
- {astrbot-4.5.1 → astrbot-4.5.2}/requirements.txt +0 -0
- {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
|
astrbot-4.5.2/.gitignore
ADDED
|
@@ -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
|
astrbot-4.5.2/Dockerfile
ADDED
|
@@ -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
|
+

|
|
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
|
+
[](https://app.rainyun.com/apps/rca/store/5994?ref=NjU1ODg0)
|
|
130
|
+
|
|
131
|
+
#### 在 Replit 上部署
|
|
132
|
+
|
|
133
|
+
社区贡献的部署方式。
|
|
134
|
+
|
|
135
|
+
[](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
|
+
[](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,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()
|