AstrBot 4.9.2__tar.gz → 4.10.0a1__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 (715) hide show
  1. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/dashboard_ci.yml +1 -1
  2. {astrbot-4.9.2 → astrbot-4.10.0a1}/CONTRIBUTING.md +26 -1
  3. {astrbot-4.9.2 → astrbot-4.10.0a1}/PKG-INFO +2 -2
  4. astrbot-4.10.0a1/astrbot/cli/__init__.py +1 -0
  5. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/message.py +6 -4
  6. astrbot-4.10.0a1/astrbot/core/agent/response.py +35 -0
  7. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/run_context.py +1 -1
  8. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/tool_loop_agent_runner.py +54 -15
  9. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/astr_agent_context.py +3 -1
  10. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/astr_agent_run_util.py +23 -2
  11. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/config/default.py +127 -184
  12. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/core_lifecycle.py +3 -0
  13. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/__init__.py +72 -0
  14. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/po.py +59 -0
  15. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/sqlite.py +240 -0
  16. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/message/components.py +4 -5
  17. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/respond/stage.py +1 -1
  18. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/telegram/tg_event.py +9 -0
  19. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/webchat/webchat_event.py +22 -18
  20. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/entities.py +41 -0
  21. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/manager.py +203 -93
  22. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/anthropic_source.py +55 -11
  23. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/gemini_source.py +68 -33
  24. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/openai_source.py +21 -6
  25. astrbot-4.10.0a1/astrbot/core/star/command_management.py +449 -0
  26. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/context.py +4 -0
  27. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/command.py +1 -0
  28. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/command_group.py +1 -0
  29. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/star_handler.py +4 -0
  30. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/star_manager.py +2 -0
  31. astrbot-4.10.0a1/astrbot/core/utils/llm_metadata.py +63 -0
  32. astrbot-4.10.0a1/astrbot/core/utils/migra_helper.py +166 -0
  33. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/__init__.py +2 -0
  34. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/chat.py +56 -13
  35. astrbot-4.10.0a1/astrbot/dashboard/routes/command.py +82 -0
  36. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/config.py +291 -33
  37. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/stat.py +96 -0
  38. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/tools.py +20 -4
  39. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/server.py +1 -0
  40. astrbot-4.10.0a1/changelogs/v4.10.0-alpha.1.md +34 -0
  41. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/index.html +1 -1
  42. astrbot-4.10.0a1/dashboard/src/assets/images/platform_logos/onebot.png +0 -0
  43. astrbot-4.10.0a1/dashboard/src/assets/images/provider_logos/modelstack.svg +1 -0
  44. astrbot-4.10.0a1/dashboard/src/assets/images/xmas-hat.png +0 -0
  45. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/chat/Chat.vue +77 -51
  46. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/chat/ChatInput.vue +9 -7
  47. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/chat/ConfigSelector.vue +1 -1
  48. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/chat/ConversationSidebar.vue +116 -77
  49. astrbot-4.10.0a1/dashboard/src/components/chat/MessageList.vue +1477 -0
  50. astrbot-4.10.0a1/dashboard/src/components/chat/ProviderConfigDialog.vue +375 -0
  51. astrbot-4.10.0a1/dashboard/src/components/chat/ProviderModelMenu.vue +205 -0
  52. astrbot-4.9.2/dashboard/src/views/ToolUsePage.vue → astrbot-4.10.0a1/dashboard/src/components/extension/McpServersSection.vue +38 -328
  53. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/components/CommandFilters.vue +155 -0
  54. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/components/CommandTable.vue +257 -0
  55. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/components/DetailsDialog.vue +143 -0
  56. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/components/RenameDialog.vue +53 -0
  57. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/components/ToolTable.vue +144 -0
  58. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/composables/useCommandActions.ts +177 -0
  59. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/composables/useCommandFilters.ts +187 -0
  60. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/composables/useComponentData.ts +83 -0
  61. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/index.vue +307 -0
  62. astrbot-4.10.0a1/dashboard/src/components/extension/componentPanel/types.ts +102 -0
  63. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/platform/AddNewPlatform.vue +23 -7
  64. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/provider/AddNewProvider.vue +1 -5
  65. astrbot-4.10.0a1/dashboard/src/components/provider/ProviderModelsPanel.vue +211 -0
  66. astrbot-4.10.0a1/dashboard/src/components/provider/ProviderSourcesPanel.vue +150 -0
  67. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/AstrBotConfig.vue +3 -3
  68. astrbot-4.10.0a1/dashboard/src/components/shared/ChangelogDialog.vue +209 -0
  69. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/LanguageSwitcher.vue +17 -65
  70. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ListConfigItem.vue +31 -3
  71. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ProviderSelector.vue +90 -4
  72. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ReadmeDialog.vue +12 -26
  73. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/SidebarCustomizer.vue +8 -30
  74. astrbot-4.10.0a1/dashboard/src/components/shared/StyledMenu.vue +79 -0
  75. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/composables/useMessages.ts +254 -156
  76. astrbot-4.10.0a1/dashboard/src/composables/useProviderSources.ts +659 -0
  77. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/core/actions.json +2 -1
  78. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/core/common.json +1 -0
  79. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/core/navigation.json +10 -0
  80. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/core/shared.json +3 -1
  81. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/chat.json +10 -1
  82. astrbot-4.10.0a1/dashboard/src/i18n/locales/en-US/features/command.json +91 -0
  83. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/extension.json +10 -1
  84. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/provider.json +47 -2
  85. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/tool-use.json +4 -1
  86. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/core/actions.json +2 -1
  87. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/core/common.json +1 -0
  88. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +10 -0
  89. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/core/shared.json +3 -1
  90. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/chat.json +10 -1
  91. astrbot-4.10.0a1/dashboard/src/i18n/locales/zh-CN/features/command.json +91 -0
  92. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/extension.json +10 -1
  93. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/provider.json +45 -0
  94. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +4 -1
  95. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/translations.ts +6 -2
  96. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/layouts/full/FullLayout.vue +39 -8
  97. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +231 -52
  98. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +16 -1
  99. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -10
  100. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/router/MainRoutes.ts +0 -5
  101. astrbot-4.10.0a1/dashboard/src/scss/components/_VInput.scss +7 -0
  102. astrbot-4.10.0a1/dashboard/src/scss/components/_VTextField.scss +3 -0
  103. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/layout/_container.scss +5 -1
  104. astrbot-4.10.0a1/dashboard/src/scss/pages/_dashboards.scss +53 -0
  105. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/stores/customizer.ts +6 -1
  106. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/utils/platformUtils.js +3 -1
  107. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/utils/providerUtils.js +3 -0
  108. astrbot-4.10.0a1/dashboard/src/utils/sidebarCustomization.js +137 -0
  109. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/AboutPage.vue +2 -2
  110. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/ConversationPage.vue +0 -9
  111. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/ExtensionPage.vue +93 -6
  112. astrbot-4.10.0a1/dashboard/src/views/ProviderPage.vue +678 -0
  113. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/alkaid/LongTermMemory.vue +1 -1
  114. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/astrbot/process_llm_request.py +27 -10
  115. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/admin.py +1 -0
  116. astrbot-4.10.0a1/packages/builtin_commands/commands/help.py +88 -0
  117. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/main.py +3 -2
  118. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/python_interpreter/main.py +1 -1
  119. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/reminder/main.py +1 -1
  120. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/web_searcher/main.py +1 -0
  121. {astrbot-4.9.2 → astrbot-4.10.0a1}/pyproject.toml +2 -2
  122. {astrbot-4.9.2 → astrbot-4.10.0a1}/requirements.txt +1 -1
  123. {astrbot-4.9.2 → astrbot-4.10.0a1}/tests/test_dashboard.py +28 -0
  124. astrbot-4.9.2/astrbot/cli/__init__.py +0 -1
  125. astrbot-4.9.2/astrbot/core/agent/response.py +0 -14
  126. astrbot-4.9.2/astrbot/core/utils/migra_helper.py +0 -73
  127. astrbot-4.9.2/dashboard/src/components/chat/MessageList.vue +0 -1169
  128. astrbot-4.9.2/dashboard/src/components/chat/ProviderModelSelector.vue +0 -359
  129. astrbot-4.9.2/dashboard/src/scss/components/_VInput.scss +0 -17
  130. astrbot-4.9.2/dashboard/src/scss/components/_VTextField.scss +0 -70
  131. astrbot-4.9.2/dashboard/src/scss/pages/_dashboards.scss +0 -93
  132. astrbot-4.9.2/dashboard/src/utils/sidebarCustomization.js +0 -99
  133. astrbot-4.9.2/dashboard/src/views/ProviderPage.vue +0 -892
  134. astrbot-4.9.2/packages/builtin_commands/commands/help.py +0 -63
  135. {astrbot-4.9.2 → astrbot-4.10.0a1}/.dockerignore +0 -0
  136. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/FUNDING.yml +0 -0
  137. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
  138. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
  139. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
  140. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  141. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/auto_assign.yml +0 -0
  142. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/copilot-instructions.md +0 -0
  143. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/dependabot.yml +0 -0
  144. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/auto_release.yml +0 -0
  145. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/code-format.yml +0 -0
  146. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/codeql.yml +0 -0
  147. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/coverage_test.yml +0 -0
  148. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/docker-image.yml +0 -0
  149. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/smoke_test.yml +0 -0
  150. {astrbot-4.9.2 → astrbot-4.10.0a1}/.github/workflows/stale.yml +0 -0
  151. {astrbot-4.9.2 → astrbot-4.10.0a1}/.gitignore +0 -0
  152. {astrbot-4.9.2 → astrbot-4.10.0a1}/.pre-commit-config.yaml +0 -0
  153. {astrbot-4.9.2 → astrbot-4.10.0a1}/.python-version +0 -0
  154. {astrbot-4.9.2 → astrbot-4.10.0a1}/CODE_OF_CONDUCT.md +0 -0
  155. {astrbot-4.9.2 → astrbot-4.10.0a1}/Dockerfile +0 -0
  156. {astrbot-4.9.2 → astrbot-4.10.0a1}/LICENSE +0 -0
  157. {astrbot-4.9.2 → astrbot-4.10.0a1}/README.md +0 -0
  158. {astrbot-4.9.2 → astrbot-4.10.0a1}/README_en.md +0 -0
  159. {astrbot-4.9.2 → astrbot-4.10.0a1}/README_fr.md +0 -0
  160. {astrbot-4.9.2 → astrbot-4.10.0a1}/README_ja.md +0 -0
  161. {astrbot-4.9.2 → astrbot-4.10.0a1}/README_ru.md +0 -0
  162. {astrbot-4.9.2 → astrbot-4.10.0a1}/README_zh-TW.md +0 -0
  163. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/__init__.py +0 -0
  164. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/__init__.py +0 -0
  165. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/all.py +0 -0
  166. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/event/__init__.py +0 -0
  167. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/event/filter/__init__.py +0 -0
  168. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/message_components.py +0 -0
  169. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/platform/__init__.py +0 -0
  170. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/provider/__init__.py +0 -0
  171. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/star/__init__.py +0 -0
  172. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/api/util/__init__.py +0 -0
  173. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/__main__.py +0 -0
  174. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/commands/__init__.py +0 -0
  175. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/commands/cmd_conf.py +0 -0
  176. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/commands/cmd_init.py +0 -0
  177. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/commands/cmd_plug.py +0 -0
  178. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/commands/cmd_run.py +0 -0
  179. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/utils/__init__.py +0 -0
  180. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/utils/basic.py +0 -0
  181. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/utils/plugin.py +0 -0
  182. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/cli/utils/version_comparator.py +0 -0
  183. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/__init__.py +0 -0
  184. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/agent.py +0 -0
  185. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/handoff.py +0 -0
  186. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/hooks.py +0 -0
  187. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/mcp_client.py +0 -0
  188. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/__init__.py +0 -0
  189. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/base.py +0 -0
  190. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/coze/coze_agent_runner.py +0 -0
  191. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/coze/coze_api_client.py +0 -0
  192. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/dashscope/dashscope_agent_runner.py +0 -0
  193. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/dify/dify_agent_runner.py +0 -0
  194. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/runners/dify/dify_api_client.py +0 -0
  195. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/tool.py +0 -0
  196. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/agent/tool_executor.py +0 -0
  197. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/astr_agent_hooks.py +0 -0
  198. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/astr_agent_tool_exec.py +0 -0
  199. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/astrbot_config_mgr.py +0 -0
  200. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/config/__init__.py +0 -0
  201. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/config/astrbot_config.py +0 -0
  202. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/config/i18n_utils.py +0 -0
  203. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/conversation_mgr.py +0 -0
  204. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/migration/helper.py +0 -0
  205. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/migration/migra_3_to_4.py +0 -0
  206. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/migration/migra_45_to_46.py +0 -0
  207. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/migration/migra_webchat_session.py +0 -0
  208. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/migration/shared_preferences_v3.py +0 -0
  209. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/migration/sqlite_v3.py +0 -0
  210. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/vec_db/base.py +0 -0
  211. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
  212. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -0
  213. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -0
  214. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
  215. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -0
  216. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/event_bus.py +0 -0
  217. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/exceptions.py +0 -0
  218. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/file_token_service.py +0 -0
  219. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/initial_loader.py +0 -0
  220. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/chunking/__init__.py +0 -0
  221. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/chunking/base.py +0 -0
  222. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -0
  223. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/chunking/recursive.py +0 -0
  224. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -0
  225. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/kb_helper.py +0 -0
  226. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/kb_mgr.py +0 -0
  227. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/models.py +0 -0
  228. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/__init__.py +0 -0
  229. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/base.py +0 -0
  230. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -0
  231. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -0
  232. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/text_parser.py +0 -0
  233. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/url_parser.py +0 -0
  234. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/parsers/util.py +0 -0
  235. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/prompts.py +0 -0
  236. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/retrieval/__init__.py +0 -0
  237. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
  238. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/retrieval/manager.py +0 -0
  239. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -0
  240. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -0
  241. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/log.py +0 -0
  242. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/message/message_event_result.py +0 -0
  243. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/persona_mgr.py +0 -0
  244. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/__init__.py +0 -0
  245. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/content_safety_check/stage.py +0 -0
  246. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -0
  247. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -0
  248. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -0
  249. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -0
  250. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/context.py +0 -0
  251. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/context_utils.py +0 -0
  252. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/preprocess_stage/stage.py +0 -0
  253. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/process_stage/method/agent_request.py +0 -0
  254. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +0 -0
  255. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +0 -0
  256. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/process_stage/method/star_request.py +0 -0
  257. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/process_stage/stage.py +0 -0
  258. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/process_stage/utils.py +0 -0
  259. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/rate_limit_check/stage.py +0 -0
  260. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/result_decorate/stage.py +0 -0
  261. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/scheduler.py +0 -0
  262. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/session_status_check/stage.py +0 -0
  263. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/stage.py +0 -0
  264. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/waking_check/stage.py +0 -0
  265. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/pipeline/whitelist_check/stage.py +0 -0
  266. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/__init__.py +0 -0
  267. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/astr_message_event.py +0 -0
  268. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/astrbot_message.py +0 -0
  269. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/manager.py +0 -0
  270. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/message_session.py +0 -0
  271. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/message_type.py +0 -0
  272. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/platform.py +0 -0
  273. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/platform_metadata.py +0 -0
  274. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/register.py +0 -0
  275. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -0
  276. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -0
  277. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -0
  278. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -0
  279. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/discord/client.py +0 -0
  280. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/discord/components.py +0 -0
  281. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -0
  282. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -0
  283. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/lark/lark_adapter.py +0 -0
  284. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/lark/lark_event.py +0 -0
  285. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/lark/server.py +0 -0
  286. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -0
  287. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/misskey/misskey_api.py +0 -0
  288. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/misskey/misskey_event.py +0 -0
  289. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -0
  290. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -0
  291. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -0
  292. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -0
  293. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -0
  294. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -0
  295. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/satori/satori_adapter.py +0 -0
  296. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/satori/satori_event.py +0 -0
  297. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/slack/client.py +0 -0
  298. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/slack/slack_adapter.py +0 -0
  299. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/slack/slack_event.py +0 -0
  300. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -0
  301. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -0
  302. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
  303. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -0
  304. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -0
  305. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -0
  306. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -0
  307. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom/wecom_event.py +0 -0
  308. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -0
  309. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -0
  310. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -0
  311. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -0
  312. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -0
  313. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -0
  314. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -0
  315. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -0
  316. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -0
  317. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -0
  318. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -0
  319. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -0
  320. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -0
  321. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/platform_message_history_mgr.py +0 -0
  322. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/__init__.py +0 -0
  323. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/entites.py +0 -0
  324. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/func_tool_manager.py +0 -0
  325. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/provider.py +0 -0
  326. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/register.py +0 -0
  327. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/azure_tts_source.py +0 -0
  328. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/bailian_rerank_source.py +0 -0
  329. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/dashscope_tts.py +0 -0
  330. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/edge_tts_source.py +0 -0
  331. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -0
  332. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/gemini_embedding_source.py +0 -0
  333. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/gemini_tts_source.py +0 -0
  334. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/groq_source.py +0 -0
  335. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -0
  336. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/gsvi_tts_source.py +0 -0
  337. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -0
  338. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/openai_embedding_source.py +0 -0
  339. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/openai_tts_api_source.py +0 -0
  340. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -0
  341. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/vllm_rerank_source.py +0 -0
  342. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/volcengine_tts.py +0 -0
  343. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/whisper_api_source.py +0 -0
  344. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -0
  345. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/xinference_rerank_source.py +0 -0
  346. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/xinference_stt_provider.py +0 -0
  347. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/provider/sources/zhipu_source.py +0 -0
  348. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/README.md +0 -0
  349. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/__init__.py +0 -0
  350. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/config.py +0 -0
  351. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/__init__.py +0 -0
  352. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/custom_filter.py +0 -0
  353. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/event_message_type.py +0 -0
  354. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/permission.py +0 -0
  355. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/platform_adapter_type.py +0 -0
  356. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/filter/regex.py +0 -0
  357. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/register/__init__.py +0 -0
  358. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/register/star.py +0 -0
  359. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/register/star_handler.py +0 -0
  360. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/session_llm_manager.py +0 -0
  361. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/session_plugin_manager.py +0 -0
  362. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/star.py +0 -0
  363. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/star_tools.py +0 -0
  364. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/star/updator.py +0 -0
  365. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/umop_config_router.py +0 -0
  366. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/updator.py +0 -0
  367. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/astrbot_path.py +0 -0
  368. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/command_parser.py +0 -0
  369. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/file_extract.py +0 -0
  370. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/io.py +0 -0
  371. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/log_pipe.py +0 -0
  372. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/metrics.py +0 -0
  373. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/path_util.py +0 -0
  374. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/pip_installer.py +0 -0
  375. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/plugin_kv_store.py +0 -0
  376. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/session_lock.py +0 -0
  377. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/session_waiter.py +0 -0
  378. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/shared_preferences.py +0 -0
  379. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/__init__.py +0 -0
  380. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/local_strategy.py +0 -0
  381. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/network_strategy.py +0 -0
  382. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/renderer.py +0 -0
  383. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
  384. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/template/base.html +0 -0
  385. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/t2i/template_manager.py +0 -0
  386. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/tencent_record_helper.py +0 -0
  387. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/version_comparator.py +0 -0
  388. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/utils/webhook_utils.py +0 -0
  389. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/core/zip_updator.py +0 -0
  390. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/auth.py +0 -0
  391. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/conversation.py +0 -0
  392. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/file.py +0 -0
  393. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/knowledge_base.py +0 -0
  394. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/log.py +0 -0
  395. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/persona.py +0 -0
  396. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/platform.py +0 -0
  397. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/plugin.py +0 -0
  398. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/route.py +0 -0
  399. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/session_management.py +0 -0
  400. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/static_file.py +0 -0
  401. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/t2i.py +0 -0
  402. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/routes/update.py +0 -0
  403. {astrbot-4.9.2 → astrbot-4.10.0a1}/astrbot/dashboard/utils.py +0 -0
  404. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.0.md +0 -0
  405. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.1.md +0 -0
  406. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.10.md +0 -0
  407. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.11.md +0 -0
  408. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.12.md +0 -0
  409. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.13.md +0 -0
  410. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.14.md +0 -0
  411. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.15.md +0 -0
  412. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.16.md +0 -0
  413. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.17.md +0 -0
  414. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.18.md +0 -0
  415. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.19.md +0 -0
  416. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.20.md +0 -0
  417. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.21.md +0 -0
  418. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.22.md +0 -0
  419. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.23.md +0 -0
  420. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.24.md +0 -0
  421. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.25.md +0 -0
  422. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.26.md +0 -0
  423. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.27.md +0 -0
  424. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.28.md +0 -0
  425. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.29.md +0 -0
  426. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.3.md +0 -0
  427. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.30.md +0 -0
  428. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.31.md +0 -0
  429. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.32.md +0 -0
  430. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.33.md +0 -0
  431. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.35.md +0 -0
  432. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.36.md +0 -0
  433. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.37.md +0 -0
  434. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.38.md +0 -0
  435. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.39.md +0 -0
  436. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.4.md +0 -0
  437. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.5.md +0 -0
  438. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.6.md +0 -0
  439. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.7.md +0 -0
  440. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.8.md +0 -0
  441. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.4.9.md +0 -0
  442. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.0.md +0 -0
  443. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.1.md +0 -0
  444. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.10.md +0 -0
  445. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.11.md +0 -0
  446. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.12.md +0 -0
  447. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.13.md +0 -0
  448. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.14.md +0 -0
  449. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.15.md +0 -0
  450. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.16.md +0 -0
  451. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.17.md +0 -0
  452. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.18.md +0 -0
  453. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.19.md +0 -0
  454. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.2.md +0 -0
  455. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.20.md +0 -0
  456. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.21.md +0 -0
  457. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.22.md +0 -0
  458. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.23.md +0 -0
  459. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.24.md +0 -0
  460. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.25.md +0 -0
  461. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.26.md +0 -0
  462. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.27.md +0 -0
  463. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.3.1.md +0 -0
  464. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.3.2.md +0 -0
  465. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.3.md +0 -0
  466. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.4.md +0 -0
  467. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.5.md +0 -0
  468. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.6.md +0 -0
  469. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.7.md +0 -0
  470. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.8.md +0 -0
  471. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v3.5.9.md +0 -0
  472. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.0.0-beta.3.md +0 -0
  473. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.0.0-beta.4.md +0 -0
  474. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.0.0-beta.5.md +0 -0
  475. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.0.0.md +0 -0
  476. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.0.md +0 -0
  477. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.1.md +0 -0
  478. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.2.md +0 -0
  479. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.3.md +0 -0
  480. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.4.md +0 -0
  481. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.5.md +0 -0
  482. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.6.md +0 -0
  483. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.1.7.md +0 -0
  484. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.2.0.md +0 -0
  485. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.2.1.md +0 -0
  486. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.3.0.md +0 -0
  487. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.3.1.md +0 -0
  488. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.3.2.md +0 -0
  489. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.3.3.md +0 -0
  490. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.3.5.md +0 -0
  491. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.0.md +0 -0
  492. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.1.md +0 -0
  493. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.2.md +0 -0
  494. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.3.md +0 -0
  495. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.4.md +0 -0
  496. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.5.md +0 -0
  497. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.6.md +0 -0
  498. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.7.md +0 -0
  499. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.5.8.md +0 -0
  500. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.6.0.md +0 -0
  501. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.6.1.md +0 -0
  502. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.7.0.md +0 -0
  503. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.7.1.md +0 -0
  504. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.7.3.md +0 -0
  505. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.7.4.md +0 -0
  506. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.8.0.md +0 -0
  507. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.9.0.md +0 -0
  508. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.9.1.md +0 -0
  509. {astrbot-4.9.2 → astrbot-4.10.0a1}/changelogs/v4.9.2.md +0 -0
  510. {astrbot-4.9.2 → astrbot-4.10.0a1}/compose.yml +0 -0
  511. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/.gitignore +0 -0
  512. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/LICENSE +0 -0
  513. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/README.md +0 -0
  514. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/env.d.ts +0 -0
  515. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/public/_redirects +0 -0
  516. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/public/favicon.svg +0 -0
  517. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/App.vue +0 -0
  518. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/astrbot_banner.png +0 -0
  519. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
  520. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/icon-no-shadow.svg +0 -0
  521. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/loading-seio.webp +0 -0
  522. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
  523. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
  524. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
  525. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
  526. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
  527. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
  528. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
  529. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
  530. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
  531. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
  532. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
  533. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
  534. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/assets/images/plugin_icon.png +0 -0
  535. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/ConfirmDialog.vue +0 -0
  536. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/chat/StandaloneChat.vue +0 -0
  537. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +0 -0
  538. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
  539. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
  540. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ExtensionCard.vue +0 -0
  541. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ItemCard.vue +0 -0
  542. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
  543. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
  544. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/Logo.vue +0 -0
  545. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
  546. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
  547. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/PersonaForm.vue +0 -0
  548. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
  549. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
  550. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/ProxySelector.vue +0 -0
  551. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
  552. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/UninstallConfirmDialog.vue +0 -0
  553. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
  554. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/composables/useConversations.ts +0 -0
  555. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/composables/useMediaHandling.ts +0 -0
  556. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/composables/useRecording.ts +0 -0
  557. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/composables/useSessions.ts +0 -0
  558. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/config.ts +0 -0
  559. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/composables.ts +0 -0
  560. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/loader.ts +0 -0
  561. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
  562. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
  563. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
  564. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
  565. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
  566. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
  567. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
  568. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
  569. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/config-metadata.json +0 -0
  570. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/config.json +0 -0
  571. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
  572. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
  573. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
  574. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
  575. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
  576. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
  577. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
  578. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
  579. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
  580. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
  581. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/features/settings.json +0 -0
  582. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
  583. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
  584. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -0
  585. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
  586. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
  587. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
  588. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
  589. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
  590. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
  591. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
  592. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
  593. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +0 -0
  594. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/config.json +0 -0
  595. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
  596. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
  597. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
  598. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
  599. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
  600. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
  601. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
  602. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
  603. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
  604. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
  605. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -0
  606. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
  607. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
  608. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -0
  609. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/tools/index.ts +0 -0
  610. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/types.ts +0 -0
  611. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/i18n/validator.ts +0 -0
  612. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
  613. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
  614. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/main.ts +0 -0
  615. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/plugins/confirmPlugin.ts +0 -0
  616. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/plugins/vuetify.ts +0 -0
  617. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/router/AuthRoutes.ts +0 -0
  618. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
  619. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/router/index.ts +0 -0
  620. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/_override.scss +0 -0
  621. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/_variables.scss +0 -0
  622. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VButtons.scss +0 -0
  623. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VCard.scss +0 -0
  624. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VField.scss +0 -0
  625. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
  626. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
  627. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VShadow.scss +0 -0
  628. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/components/_VTabs.scss +0 -0
  629. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/layout/_sidebar.scss +0 -0
  630. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/scss/style.scss +0 -0
  631. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/stores/auth.ts +0 -0
  632. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/stores/common.js +0 -0
  633. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/stores/toast.js +0 -0
  634. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/theme/DarkTheme.ts +0 -0
  635. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/theme/LightTheme.ts +0 -0
  636. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
  637. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
  638. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
  639. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/utils/toast.js +0 -0
  640. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/AlkaidPage.vue +0 -0
  641. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/ChatBoxPage.vue +0 -0
  642. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/ChatPage.vue +0 -0
  643. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/ConfigPage.vue +0 -0
  644. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/ConsolePage.vue +0 -0
  645. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/PersonaPage.vue +0 -0
  646. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/PlatformPage.vue +0 -0
  647. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/SessionManagementPage.vue +0 -0
  648. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/Settings.vue +0 -0
  649. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
  650. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/alkaid/Other.vue +0 -0
  651. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
  652. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
  653. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
  654. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
  655. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
  656. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
  657. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
  658. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
  659. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
  660. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
  661. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
  662. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
  663. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
  664. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
  665. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
  666. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
  667. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/components/TavilyKeyDialog.vue +0 -0
  668. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/src/views/knowledge-base/index.vue +0 -0
  669. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/tsconfig.json +0 -0
  670. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/tsconfig.vite-config.json +0 -0
  671. {astrbot-4.9.2 → astrbot-4.10.0a1}/dashboard/vite.config.ts +0 -0
  672. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot/00-namespace.yaml +0 -0
  673. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot/01-pvc.yaml +0 -0
  674. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot/02-deployment.yaml +0 -0
  675. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot/03-service-nodeport.yaml +0 -0
  676. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot/04-service-loadbalancer.yaml +0 -0
  677. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot_with_napcat/00-namespace.yaml +0 -0
  678. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot_with_napcat/01-pvc.yaml +0 -0
  679. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot_with_napcat/02-deployment.yaml +0 -0
  680. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot_with_napcat/03-service-nodeport.yaml +0 -0
  681. {astrbot-4.9.2 → astrbot-4.10.0a1}/k8s/astrbot_with_napcat/04-service-loadbalancer.yaml +0 -0
  682. {astrbot-4.9.2 → astrbot-4.10.0a1}/main.py +0 -0
  683. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/astrbot/long_term_memory.py +0 -0
  684. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/astrbot/main.py +0 -0
  685. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/astrbot/metadata.yaml +0 -0
  686. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/__init__.py +0 -0
  687. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/alter_cmd.py +0 -0
  688. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/conversation.py +0 -0
  689. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/llm.py +0 -0
  690. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/persona.py +0 -0
  691. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/plugin.py +0 -0
  692. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/provider.py +0 -0
  693. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/setunset.py +0 -0
  694. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/sid.py +0 -0
  695. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/t2i.py +0 -0
  696. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/tool.py +0 -0
  697. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/tts.py +0 -0
  698. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/commands/utils/rst_scene.py +0 -0
  699. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/builtin_commands/metadata.yaml +0 -0
  700. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/python_interpreter/metadata.yaml +0 -0
  701. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/python_interpreter/requirements.txt +0 -0
  702. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/python_interpreter/shared/api.py +0 -0
  703. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/reminder/metadata.yaml +0 -0
  704. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/session_controller/main.py +0 -0
  705. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/session_controller/metadata.yaml +0 -0
  706. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/web_searcher/engines/__init__.py +0 -0
  707. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/web_searcher/engines/bing.py +0 -0
  708. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/web_searcher/engines/sogo.py +0 -0
  709. {astrbot-4.9.2 → astrbot-4.10.0a1}/packages/web_searcher/metadata.yaml +0 -0
  710. {astrbot-4.9.2 → astrbot-4.10.0a1}/samples/stt_health_check.wav +0 -0
  711. {astrbot-4.9.2 → astrbot-4.10.0a1}/tests/test_kb_import.py +0 -0
  712. {astrbot-4.9.2 → astrbot-4.10.0a1}/tests/test_main.py +0 -0
  713. {astrbot-4.9.2 → astrbot-4.10.0a1}/tests/test_plugin_manager.py +0 -0
  714. {astrbot-4.9.2 → astrbot-4.10.0a1}/tests/test_security_fixes.py +0 -0
  715. {astrbot-4.9.2 → astrbot-4.10.0a1}/typings/faiss/__init__.pyi +0 -0
@@ -36,7 +36,7 @@ jobs:
36
36
  zip -r dist.zip dist
37
37
 
38
38
  - name: Archive production artifacts
39
- uses: actions/upload-artifact@v5
39
+ uses: actions/upload-artifact@v6
40
40
  with:
41
41
  name: dist-without-markdown
42
42
  path: |
@@ -33,6 +33,20 @@
33
33
  - 请使用英文描述您的 PR。
34
34
  - 标题请使用 `fix: `, `feat: `, `docs: `, `style: `, `refactor: `, `test: `, `chore: ` 等语义化前缀,并简要描述更改内容。如:`fix: correct login page typo`。
35
35
 
36
+ #### 代码规范
37
+
38
+ ##### Core
39
+
40
+ 我们使用 Ruff 作为代码格式化和静态分析工具。在提交代码之前,请运行以下命令以确保代码符合规范:
41
+
42
+ ```bash
43
+ ruff format .
44
+ ruff check .
45
+ ```
46
+
47
+ 如果您使用 VSCode,可以安装 `Ruff` 插件。
48
+
49
+
36
50
  ## Contributing Guide
37
51
 
38
52
  First off, thanks for taking the time to contribute! ❤️
@@ -62,4 +76,15 @@ We use the `fix/` prefix for bug fixes and the `feat/` prefix for new features.
62
76
 
63
77
  #### PR Description
64
78
  - Please use English to describe your PR.
65
- - Use semantic prefixes like `fix: `, `feat: `, `docs: `, `style: `, `refactor: `, `test: `, `chore: ` in the title, followed by a brief description of the changes, e.g., `fix: correct login page typo`.
79
+ - Use semantic prefixes like `fix: `, `feat: `, `docs: `, `style: `, `refactor: `, `test: `, `chore: ` in the title, followed by a brief description of the changes, e.g., `fix: correct login page typo`.
80
+
81
+ #### Code Style
82
+
83
+ ##### Core
84
+
85
+ We use Ruff as our code formatter and static analysis tool. Before submitting your code, please run the following commands to ensure your code adheres to the style guidelines:
86
+
87
+ ```bash
88
+ ruff format .
89
+ ruff check .
90
+ ```
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AstrBot
3
- Version: 4.9.2
3
+ Version: 4.10.0a1
4
4
  Summary: Easy-to-use multi-platform LLM chatbot and development framework
5
5
  License-File: LICENSE
6
6
  Keywords: Astrbot,Astrbot Module,Astrbot Plugin
@@ -26,7 +26,7 @@ Requires-Dist: dingtalk-stream>=0.22.1
26
26
  Requires-Dist: docstring-parser>=0.16
27
27
  Requires-Dist: faiss-cpu==1.10.0
28
28
  Requires-Dist: filelock>=3.18.0
29
- Requires-Dist: google-genai<1.51.0,>=1.14.0
29
+ Requires-Dist: google-genai>=1.56.0
30
30
  Requires-Dist: jieba>=0.42.1
31
31
  Requires-Dist: lark-oapi>=1.4.15
32
32
  Requires-Dist: lxml-html-clean>=0.4.2
@@ -0,0 +1 @@
1
+ __version__ = "4.10.0-alpha.1"
@@ -3,7 +3,7 @@
3
3
 
4
4
  from typing import Any, ClassVar, Literal, cast
5
5
 
6
- from pydantic import BaseModel, GetCoreSchemaHandler, model_validator
6
+ from pydantic import BaseModel, GetCoreSchemaHandler, model_serializer, model_validator
7
7
  from pydantic_core import core_schema
8
8
 
9
9
 
@@ -122,10 +122,12 @@ class ToolCall(BaseModel):
122
122
  extra_content: dict[str, Any] | None = None
123
123
  """Extra metadata for the tool call."""
124
124
 
125
- def model_dump(self, **kwargs: Any) -> dict[str, Any]:
125
+ @model_serializer(mode="wrap")
126
+ def serialize(self, handler):
127
+ data = handler(self)
126
128
  if self.extra_content is None:
127
- kwargs.setdefault("exclude", set()).add("extra_content")
128
- return super().model_dump(**kwargs)
129
+ data.pop("extra_content", None)
130
+ return data
129
131
 
130
132
 
131
133
  class ToolCallPart(BaseModel):
@@ -0,0 +1,35 @@
1
+ import typing as T
2
+ from dataclasses import dataclass, field
3
+
4
+ from astrbot.core.message.message_event_result import MessageChain
5
+ from astrbot.core.provider.entities import TokenUsage
6
+
7
+
8
+ class AgentResponseData(T.TypedDict):
9
+ chain: MessageChain
10
+
11
+
12
+ @dataclass
13
+ class AgentResponse:
14
+ type: str
15
+ data: AgentResponseData
16
+
17
+
18
+ @dataclass
19
+ class AgentStats:
20
+ token_usage: TokenUsage = field(default_factory=TokenUsage)
21
+ start_time: float = 0.0
22
+ end_time: float = 0.0
23
+ time_to_first_token: float = 0.0
24
+
25
+ @property
26
+ def duration(self) -> float:
27
+ return self.end_time - self.start_time
28
+
29
+ def to_dict(self) -> dict:
30
+ return {
31
+ "token_usage": self.token_usage.__dict__,
32
+ "start_time": self.start_time,
33
+ "end_time": self.end_time,
34
+ "time_to_first_token": self.time_to_first_token,
35
+ }
@@ -9,7 +9,7 @@ from .message import Message
9
9
  TContext = TypeVar("TContext", default=Any)
10
10
 
11
11
 
12
- @dataclass(config={"arbitrary_types_allowed": True})
12
+ @dataclass
13
13
  class ContextWrapper(Generic[TContext]):
14
14
  """A context for running an agent, which can be used to pass additional data or state."""
15
15
 
@@ -1,4 +1,5 @@
1
1
  import sys
2
+ import time
2
3
  import traceback
3
4
  import typing as T
4
5
 
@@ -12,6 +13,7 @@ from mcp.types import (
12
13
  )
13
14
 
14
15
  from astrbot import logger
16
+ from astrbot.core.message.components import Json
15
17
  from astrbot.core.message.message_event_result import (
16
18
  MessageChain,
17
19
  )
@@ -24,7 +26,7 @@ from astrbot.core.provider.provider import Provider
24
26
 
25
27
  from ..hooks import BaseAgentRunHooks
26
28
  from ..message import AssistantMessageSegment, Message, ToolCallMessageSegment
27
- from ..response import AgentResponseData
29
+ from ..response import AgentResponseData, AgentStats
28
30
  from ..run_context import ContextWrapper, TContext
29
31
  from ..tool_executor import BaseFunctionToolExecutor
30
32
  from .base import AgentResponse, AgentState, BaseAgentRunner
@@ -69,6 +71,9 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
69
71
  )
70
72
  self.run_context.messages = messages
71
73
 
74
+ self.stats = AgentStats()
75
+ self.stats.start_time = time.time()
76
+
72
77
  async def _iter_llm_responses(self) -> T.AsyncGenerator[LLMResponse, None]:
73
78
  """Yields chunks *and* a final LLMResponse."""
74
79
  if self.streaming:
@@ -98,6 +103,10 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
98
103
 
99
104
  async for llm_response in self._iter_llm_responses():
100
105
  if llm_response.is_chunk:
106
+ # update ttft
107
+ if self.stats.time_to_first_token == 0:
108
+ self.stats.time_to_first_token = time.time() - self.stats.start_time
109
+
101
110
  if llm_response.result_chain:
102
111
  yield AgentResponse(
103
112
  type="streaming_delta",
@@ -121,6 +130,10 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
121
130
  )
122
131
  continue
123
132
  llm_resp_result = llm_response
133
+
134
+ if not llm_response.is_chunk and llm_response.usage:
135
+ # only count the token usage of the final response for computation purpose
136
+ self.stats.token_usage += llm_response.usage
124
137
  break # got final response
125
138
 
126
139
  if not llm_resp_result:
@@ -132,6 +145,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
132
145
  if llm_resp.role == "err":
133
146
  # 如果 LLM 响应错误,转换到错误状态
134
147
  self.final_llm_resp = llm_resp
148
+ self.stats.end_time = time.time()
135
149
  self._transition_state(AgentState.ERROR)
136
150
  yield AgentResponse(
137
151
  type="err",
@@ -146,6 +160,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
146
160
  # 如果没有工具调用,转换到完成状态
147
161
  self.final_llm_resp = llm_resp
148
162
  self._transition_state(AgentState.DONE)
163
+ self.stats.end_time = time.time()
149
164
  # record the final assistant message
150
165
  self.run_context.messages.append(
151
166
  Message(
@@ -175,22 +190,19 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
175
190
  # 如果有工具调用,还需处理工具调用
176
191
  if llm_resp.tools_call_name:
177
192
  tool_call_result_blocks = []
178
- for tool_call_name in llm_resp.tools_call_name:
179
- yield AgentResponse(
180
- type="tool_call",
181
- data=AgentResponseData(
182
- chain=MessageChain(type="tool_call").message(
183
- f"🔨 调用工具: {tool_call_name}"
184
- ),
185
- ),
186
- )
187
193
  async for result in self._handle_function_tools(self.req, llm_resp):
188
194
  if isinstance(result, list):
189
195
  tool_call_result_blocks = result
190
196
  elif isinstance(result, MessageChain):
191
- result.type = "tool_call_result"
197
+ if result.type is None:
198
+ # should not happen
199
+ continue
200
+ if result.type == "tool_direct_result":
201
+ ar_type = "tool_call_result"
202
+ else:
203
+ ar_type = result.type
192
204
  yield AgentResponse(
193
- type="tool_call_result",
205
+ type=ar_type,
194
206
  data=AgentResponseData(chain=result),
195
207
  )
196
208
  # 将结果添加到上下文中
@@ -233,6 +245,19 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
233
245
  llm_response.tools_call_args,
234
246
  llm_response.tools_call_ids,
235
247
  ):
248
+ yield MessageChain(
249
+ type="tool_call",
250
+ chain=[
251
+ Json(
252
+ data={
253
+ "id": func_tool_id,
254
+ "name": func_tool_name,
255
+ "args": func_tool_args,
256
+ "ts": time.time(),
257
+ }
258
+ )
259
+ ],
260
+ )
236
261
  try:
237
262
  if not req.func_tool:
238
263
  return
@@ -306,7 +331,6 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
306
331
  content=res.content[0].text,
307
332
  ),
308
333
  )
309
- yield MessageChain().message(res.content[0].text)
310
334
  elif isinstance(res.content[0], ImageContent):
311
335
  tool_call_result_blocks.append(
312
336
  ToolCallMessageSegment(
@@ -328,7 +352,6 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
328
352
  content=resource.text,
329
353
  ),
330
354
  )
331
- yield MessageChain().message(resource.text)
332
355
  elif (
333
356
  isinstance(resource, BlobResourceContents)
334
357
  and resource.mimeType
@@ -352,7 +375,22 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
352
375
  content="返回的数据类型不受支持",
353
376
  ),
354
377
  )
355
- yield MessageChain().message("返回的数据类型不受支持。")
378
+
379
+ # yield the last tool call result
380
+ if tool_call_result_blocks:
381
+ last_tcr_content = str(tool_call_result_blocks[-1].content)
382
+ yield MessageChain(
383
+ type="tool_call_result",
384
+ chain=[
385
+ Json(
386
+ data={
387
+ "id": func_tool_id,
388
+ "ts": time.time(),
389
+ "result": last_tcr_content,
390
+ }
391
+ )
392
+ ],
393
+ )
356
394
 
357
395
  elif resp is None:
358
396
  # Tool 直接请求发送消息给用户
@@ -362,6 +400,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
362
400
  f"{func_tool_name} 没有没有返回值或者将结果直接发送给用户,此工具调用不会被记录到历史中。"
363
401
  )
364
402
  self._transition_state(AgentState.DONE)
403
+ self.stats.end_time = time.time()
365
404
  else:
366
405
  # 不应该出现其他类型
367
406
  logger.warning(
@@ -6,8 +6,10 @@ from astrbot.core.platform.astr_message_event import AstrMessageEvent
6
6
  from astrbot.core.star.context import Context
7
7
 
8
8
 
9
- @dataclass(config={"arbitrary_types_allowed": True})
9
+ @dataclass
10
10
  class AstrAgentContext:
11
+ __pydantic_config__ = {"arbitrary_types_allowed": True}
12
+
11
13
  context: Context
12
14
  """The star context instance"""
13
15
  event: AstrMessageEvent
@@ -4,6 +4,7 @@ from collections.abc import AsyncGenerator
4
4
  from astrbot.core import logger
5
5
  from astrbot.core.agent.runners.tool_loop_agent_runner import ToolLoopAgentRunner
6
6
  from astrbot.core.astr_agent_context import AstrAgentContext
7
+ from astrbot.core.message.components import Json
7
8
  from astrbot.core.message.message_event_result import (
8
9
  MessageChain,
9
10
  MessageEventResult,
@@ -33,16 +34,27 @@ async def run_agent(
33
34
  msg_chain = resp.data["chain"]
34
35
  if msg_chain.type == "tool_direct_result":
35
36
  # tool_direct_result 用于标记 llm tool 需要直接发送给用户的内容
36
- await astr_event.send(resp.data["chain"])
37
+ await astr_event.send(msg_chain)
37
38
  continue
39
+ if astr_event.get_platform_id() == "webchat":
40
+ await astr_event.send(msg_chain)
38
41
  # 对于其他情况,暂时先不处理
39
42
  continue
40
43
  elif resp.type == "tool_call":
41
44
  if agent_runner.streaming:
42
45
  # 用来标记流式响应需要分节
43
46
  yield MessageChain(chain=[], type="break")
44
- if show_tool_use:
47
+
48
+ if astr_event.get_platform_name() == "webchat":
45
49
  await astr_event.send(resp.data["chain"])
50
+ elif show_tool_use:
51
+ json_comp = resp.data["chain"].chain[0]
52
+ if isinstance(json_comp, Json):
53
+ m = f"🔨 调用工具: {json_comp.data.get('name')}"
54
+ else:
55
+ m = "🔨 调用工具..."
56
+ chain = MessageChain(type="tool_call").message(m)
57
+ await astr_event.send(chain)
46
58
  continue
47
59
 
48
60
  if stream_to_general and resp.type == "streaming_delta":
@@ -69,6 +81,15 @@ async def run_agent(
69
81
  continue
70
82
  yield resp.data["chain"] # MessageChain
71
83
  if agent_runner.done():
84
+ # send agent stats to webchat
85
+ if astr_event.get_platform_name() == "webchat":
86
+ await astr_event.send(
87
+ MessageChain(
88
+ type="agent_stats",
89
+ chain=[Json(data=agent_runner.stats.to_dict())],
90
+ )
91
+ )
92
+
72
93
  break
73
94
 
74
95
  except Exception as e: