Repository navigation
feat(commands): 完善文本命令配置、模拟与冲突诊断 - #10
Draft
Minecraft0122 wants to merge 2 commits into
Draft
Minecraft0122 wants to merge 2 commits into
Minecraft0122 wants to merge 2 commits into
Conversation
Ftimever
marked this pull request as ready for review
November 22, 2026 08:12
Ftimever
marked this pull request as draft
November 22, 2026 08:59
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.
文本命令目前只能保存配置,管理员无法核对消息是否命中、权限为何拒绝,或识别多条命令同时匹配。本 PR 增加版本 1 文本命令配置、单条草稿/已保存命令模拟,以及全部已启用命令的冲突诊断。例如两条命令均匹配
/help时,页面显示冲突和各自的假设权限结果,不选择执行优先级或发送消息。实现包括:
本地自动化验证已通过:
go test ./... -timeout 90s、go vet ./...、npm test(7 项客户端测试)、npm run build、git diff --cached --check。Go 用例覆盖五类权限、未知/未验证身份拒绝、完整匹配及锚点绕过拒绝、参数不重复展开、长度上限、停用、旧配置重启保留、HTTP 鉴权、冲突统计和模拟无写入/正文不进日志。上游 OneBot、QQ、Bridge 测试保持通过。限制与验收:
使用 Codex 辅助实现、测试、文档和 PR 整理;贡献者人工审阅及上述人工验收待完成。