命令监听配置重构:SQLite → YAML + 黑白名单过滤优化 #2
Reference in New Issue
Block a user
Delete Branch "feat/command-scope"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Changes
配置系统重构
db.py,改用settings.yaml存储动态配置CommandConfigdataclass 单例替代模块级变量,解决from import本地绑定不随global更新的 bugsettings.yaml,合并.env环境变量默认值aiosqlite替换为pyyaml黑白名单优化
list_enabled开关控制是否启用名单过滤管理界面改进
Test plan
settings.yaml自动生成settings.yaml,确认 2 秒内热重载