Commit e262833
chore: sync master into dev (#9679)
* chore: update readme
* feat: support PowerShell 7 for Windows local shell (#9622)
* feat(config): add Windows PowerShell version option
* feat(computer): honor Windows PowerShell version in local runtime
* fix(computer): correct stale shell comment for configurable PowerShell
* refactor(computer): inline windows shell resolution per AGENTS.md
* test(computer): assert windows_shell in exec_managed call
* test: make shell tests cross-platform
Co-authored-by: Donoym <prober13c14@gmail.com>
* refactor(computer): auto-detect Windows shell instead of config
* fix(computer): drop stale cmd.exe references after shell auto-detect
* style: apply ruff format and import order
* Update astrbot/core/astr_main_agent.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: Donoym <prober13c14@gmail.com>
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* feat: add download-count sorting to plugin marketplace (#9570)
* feat: 插件市场支持按下载量排序
为插件市场现有的前端本地排序补充下载量选项,复用已规范化的 download_count,不改变默认推荐顺序、后端接口和 OpenAPI。
新增稳定且不修改输入的下载量排序工具:支持升降序、未知值双向置底、非法值兜底及相同值原始顺序保留;接入市场排序控件并补齐中、英、俄三语文案。
新增 9 项专项单元测试,覆盖正常排序、零值、缺失与非法值、负数、数字字符串、小数、稳定性和输入不可变。验证通过 45 项 Dashboard Node 测试、额外性质检查、三语 JSON 校验、Vue 类型检查和生产构建。
* Delete dashboard/tests/marketPluginSort.test.mjs
* refactor: 内联插件市场下载量排序
删除独立的市场下载量排序工具,将下载量比较逻辑直接放在现有市场排序分支。
缺失下载量使用默认值 0,保持前端本地排序与现有排序行为一致。
验证:vue-tsc --noEmit;pnpm run build;node --test dashboard/tests/*.test.mjs;git diff --check。
---------
Co-authored-by: C₂₂H₂₅NO₆ <Sisyphbaous-DT-Project@users.noreply.github.com>
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
* fix: improve dark theme text contrast (#9643)
* fix: propagate QQ media upload failures (#9644)
* feat(qqofficial): add chunked file uploads (#9646)
Add a dedicated chunked uploader for large local QQ Official media. Keep C2C and group endpoints explicit, support server-provided part index bases, and retry transient upload operations.
Co-authored-by: Fuyan Yuan <33221728+TheRainstorm@users.noreply.github.com>
* fix(kb): support UUID fallback in get_kb_by_name and warn on missing KBs (#9636)
Fixes #9529.
When kb_names contains UUIDs instead of names, get_kb_by_name() would
return None and check_all_kb() would silently skip retrieval with only
a DEBUG-level log.
Modifications:
- get_kb_by_name() now falls back to UUID lookup when name match fails
- check_all_kb() distinguishes None (not found) from empty KBs and logs
a WARNING with the count of missing KBs
- Add regression tests covering UUID lookup, name preference, and logging
* fix: prevent SharedPreferences deadlocks (#9649)
* fix: avoid blocking shared preference access
* docs: clarify shared preference cache roles
* docs: explain shared preference cache purpose
* docs: link cache rationale to pull request
* chore: bump version to 4.27.3 (#9650)
* chore: bump version to 4.27.3
* Update changelog for version 4.27.3
Updated changelog for version 4.27.3 with new features, maintenance updates, and bug fixes.
* Refactor: stat service deprecated stats (#9658)
* refactor(dashboard): migrate get_stat off deprecated stats methods
Rewrite StatService.get_stat to query PlatformStat directly via
db_helper.get_db(), following the existing get_provider_token_stats
pattern in the same file, instead of the deprecated
get_base_stats/get_grouped_base_stats/get_total_message_count.
- Windowed rows are fetched once with an explicit ORDER BY timestamp
(the old get_base_stats relied on insertion order)
- Per-platform sums and hourly time-series buckets are aggregated in
Python; total message count uses func.coalesce(func.sum(...), 0)
- Response shape is unchanged: platform entries keep the
{name, count, timestamp} keys, now built as plain dicts so no
deprecated po.Platform/Stats classes are instantiated
- Verified semantically identical against the old methods with an A/B
comparison over a seeded database (time series, per-platform sums,
total count, and empty-window case all match)
* test(dashboard): cover StatService.get_stat aggregation semantics
The existing test_get_stat route test only asserts the HTTP status and
the presence of the platform key, so an aggregation regression would
pass unnoticed. Add focused unit tests that seed PlatformStat rows and
assert the windowed per-platform sums, the global message total, the
hourly time-series bucket shape, the response key set, and the
empty-window behavior.
* feat(provider): add SSYCloud chat completion provider (#9659)
* fix: include JSON cards in group context (#9655)
* fix: include JSON cards in group context
* fix: allow JSON cards to trigger active replies
* docs: add ShengSuanYun provider guide
* fix: detect audio format from file content (#9612)
* feat: log effective Windows local runtime shell (#9648)
* feat: log effective Windows local runtime shell
* chore: remove Windows shell logging tests
---------
Co-authored-by: Soulter <905617992@qq.com>
* refactor(misskey): migrate off deprecated visibility resolver alias (#9674)
---------
Co-authored-by: Soulter <905617992@qq.com>
Co-authored-by: Wei Chengqian <wcqqq1214@gmail.com>
Co-authored-by: Donoym <prober13c14@gmail.com>
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: C₂₂H₂₅NO₆ <96930391+Sisyphbaous-DT-Project@users.noreply.github.com>
Co-authored-by: C₂₂H₂₅NO₆ <Sisyphbaous-DT-Project@users.noreply.github.com>
Co-authored-by: Fuyan Yuan <33221728+TheRainstorm@users.noreply.github.com>
Co-authored-by: lxfight <1686540385@qq.com>
Co-authored-by: Ruochen Pan <badbatch0x01@gmail.com>
Co-authored-by: xxshu26 <15197757832@163.com>
Co-authored-by: PeiPei233 <49641967+PeiPei233@users.noreply.github.com>
Co-authored-by: xiaoxuan010 <2592053474@qq.com>
Co-authored-by: C10H14N2O5 <100066858+C10H14N2O5@users.noreply.github.com>1 parent 3f97246 commit e262833
76 files changed
Lines changed: 3357 additions & 705 deletions
File tree
- astrbot
- builtin_stars
- astrbot
- builtin_commands/commands
- core
- computer
- booters
- config
- db
- knowledge_base
- pipeline
- preprocess_stage
- process_stage/method/agent_sub_stages
- result_decorate
- platform/sources
- misskey
- qqofficial
- provider
- sources
- star
- tools
- computer_tools
- utils
- dashboard/services
- changelogs
- dashboard/src
- components
- platform
- provider
- composables
- i18n/locales
- en-US/features
- ru-RU/features
- zh-CN/features
- utils
- views
- authentication
- authForms
- auth
- extension
- docs
- .vitepress
- en/providers
- zh
- dev/star
- providers
- tests
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 59 | + | |
73 | 60 | | |
74 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
| |||
93 | 82 | | |
94 | 83 | | |
95 | 84 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 85 | | |
103 | 86 | | |
104 | 87 | | |
| |||
117 | 100 | | |
118 | 101 | | |
119 | 102 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 103 | | |
137 | 104 | | |
138 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 59 | + | |
73 | 60 | | |
74 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
| |||
83 | 76 | | |
84 | 77 | | |
85 | 78 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 79 | | |
93 | 80 | | |
94 | 81 | | |
95 | 82 | | |
96 | 83 | | |
97 | 84 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 85 | | |
102 | 86 | | |
103 | 87 | | |
104 | 88 | | |
105 | 89 | | |
106 | 90 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 91 | | |
114 | 92 | | |
115 | 93 | | |
| |||
122 | 100 | | |
123 | 101 | | |
124 | 102 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 103 | + | |
134 | 104 | | |
135 | | - | |
| 105 | + | |
136 | 106 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 107 | + | |
140 | 108 | | |
141 | | - | |
| 109 | + | |
142 | 110 | | |
143 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
144 | 116 | | |
145 | 117 | | |
146 | 118 | | |
| |||
205 | 177 | | |
206 | 178 | | |
207 | 179 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 180 | | |
216 | 181 | | |
217 | 182 | | |
| |||
235 | 200 | | |
236 | 201 | | |
237 | 202 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 203 | + | |
254 | 204 | | |
255 | 205 | | |
256 | 206 | | |
| |||
264 | 214 | | |
265 | 215 | | |
266 | 216 | | |
267 | | - | |
| 217 | + | |
268 | 218 | | |
269 | 219 | | |
| 220 | + | |
270 | 221 | | |
271 | 222 | | |
272 | 223 | | |
| |||
0 commit comments