LIghtJUNction
6067a70803
feat: support local plugin install ( #8448 )
...
* feat: support local plugin install
* fix: make editable plugin install symlink
* fix: harden local plugin install
* Update tests/test_cli_plugin.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update astrbot/cli/commands/cmd_plug.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-06-29 01:44:06 +08:00
Weilong Liao
39d425316f
fix: created unnecessary data dir when executing astrbot command ( #8932 )
...
* fix: created unnecessary data dir when executing astrbot command
fixes : #8853
* fix: 更新包版本更新函数以修改 astrbot/__init__.py 中的版本号
2026-06-21 14:04:49 +08:00
星鸿SeRazon
f3aa2a6959
perf(cli): optimize plugin list building performance and robustness while adding coverage for key merge and edge-case scenarios ( #8705 )
...
* perf: optimize plugin list merge
* fix: guard plugin list directory iteration
* test: move plugin utils tests to unit suite
* fix: minimize plugin path guard change
* test: cover missing plugin directory listing
* fix: address code review feedback on plugin utils and tests
* perf: optimize plugin comparison using dict pop method
* style: format plugin.py and retry CI
2026-06-13 16:44:22 +08:00
Soulter
6b642d7674
refactor: bundled webui static files into wheel and replace astrbot cli log with English ( #5665 )
...
* refactor: bundled webui static files into wheel and replace astrbot cli log with English
- Translated and standardized log messages in cmd_conf.py for better clarity.
- Updated initialization logic in cmd_init.py to provide clearer user prompts and error handling.
- Improved plugin management commands in cmd_plug.py with consistent language and error messages.
- Enhanced run command in cmd_run.py with clearer status messages and error handling.
- Updated utility functions in basic.py and plugin.py to improve readability and maintainability.
- Added version comparison logic in version_comparator.py with clearer comments.
- Enhanced logging configuration in log.py to suppress noisy loggers.
- Updated the updater logic in updator.py to provide clearer error messages for users.
- Improved IO utility functions in io.py to handle dashboard versioning more effectively.
- Enhanced dashboard server logic in server.py to prioritize bundled assets and improve user feedback.
- Updated pyproject.toml to include bundled dashboard assets and custom build hooks.
- Added a custom build script (hatch_build.py) to automate dashboard builds during package creation.
* refactor: improve exception messages and formatting in CLI command validation
* perf: change npm install to npm ci for consistent dependency installation
* fix
2026-03-03 12:58:59 +08:00
Dt8333
7dd95d8a59
chore: auto ann fix by ruff ( #4903 )
...
* chore: auto fix by ruff
* refactor: 统一修正返回类型注解为 None/bool 以匹配实现
* refactor: 将 _get_next_page 改为异步并移除多余的请求错误抛出
* refactor: 将 get_client 的返回类型改为 object
* style: 为 LarkMessageEvent 的相关方法添加返回类型注解 None
---------
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com >
2026-02-09 00:22:24 +08:00
Copilot
94bf3b8195
Fix incorrect type annotations and errors ( #3250 )
...
* Initial plan
* Fix type annotation errors in cmd_conf, cmd_init, and version_comparator
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Changes before error encountered
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Fix more type annotation errors: change `= None` to `| None = None`
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
* Fix final batch of type annotation errors
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com >
Co-authored-by: LIghtJUNction <lightjunction.me@gmail.com >
2025-11-02 17:02:56 +08:00
LIghtJUNction
0b7fc29ac4
style: add ruff lint module of isort and pyupgrade, and some ruff check fix ( #3214 )
...
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-11-01 13:26:19 +08:00
LIghtJUNction
22c3b53ab8
fix(io.py): path改回传入文件地址,而不是传入文件夹地址
2025-10-26 15:41:20 +08:00
LIghtJUNction
4f4a9b9e55
fix(io.py): download_dashboard如果发现没有dist/assets/version文件,下载完毕自动写入(以防万一)
2025-10-26 15:35:25 +08:00
Soulter
7740e1e131
ci: add ci stage of code format checking ( #2750 )
...
* style: ruff format
* ci(dashboard-ci): ensure GitHub Release action only runs on push events
* ci(code-format): ruff format and ruff check
2025-09-14 18:05:58 +08:00
Soulter
ba2ee1c0aa
fix: 初次下载 webui 构建文件时下载指定版本而非 latest
2025-09-04 13:27:55 +08:00
Soulter
fd7811402b
fix: 添加对 metadata 中 description 字段的支持,确保元数据完整性
...
fixes : #2245
2025-08-02 16:01:10 +08:00
Raven95676
074b0ced7a
perf: 移除冗余逻辑
...
经与@Soulter确认,metadata.yaml是必须有的文件,故在建议下删除
2025-05-22 18:21:41 +08:00
HendricksJudy
f38a329be5
Fix initialization and plugin download
2025-05-19 01:43:07 -07:00
Raven95676
ac47c57bb7
perf: cli统一使用pathlib,修正typo
2025-05-08 20:25:12 +08:00
Raven95676
ccdbb01513
perf: 修改move为copy,clean code
2025-05-06 18:39:11 +08:00
Raven95676
5206d750ac
refactor: 减少重复和嵌套
2025-05-06 18:29:55 +08:00
Raven95676
ccb1f87a20
feat: cli支持插件自动热重载;cli支持插件管理;cli支持指定Dashboard端口
2025-05-06 17:56:56 +08:00
Raven95676
f06be6ed21
refactor: 拆分cli以便后续拓展功能
2025-05-06 00:53:00 +08:00