Open
Conversation
…n flow 为 CodeMage 插件生成流程引入静态审查与LLM审查的组合评估能力,以提升生成插件的质量与安全性。 - 新增 static_auditor.py,实现基于 ruff、pylint、mypy 的静态分析以及 AstrBot AST 规则检查,聚合结果为统一格式。 - 新增 _combined_review 方法在 PluginGenerator 中,合并静态审查结果与 LLm 审查结果,支持 enable_static_review/enable_llm_review 开关。 - 将审查调用改为通过 _combined_review,静态审查在前、LLM 审查在后,并可配置开启/关闭。 - 更新 _conf_schema.json,新增 enable_static_review 与 enable_llm_review 配置项,向后兼容。 - 更新 main 流程以触发新的审查逻辑。 - 新增 requirements.txt,确保 ruff、pylint、mypy 和 aiohttp 等依赖可用。 CHANGELOG: - BREAKING CHANGE: 无重大 breaking changes,但需要在环境中安装新增依赖。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
在 CodeMage 插件生成流程中加入静态代码审查(ruff、pylint、mypy)以及 LL M 审查能力,新增 enable_static_review 与 enable_llm_review 配置项;新增 static_auditor 模块及对审查流程的集成。
Details
备注:新审查可能影响插件生成时长,需在 CI/环境中安装新增依赖。