8 Commits

Author SHA1 Message Date
root
30055e30c1 feat: 添加 Web UI 管理界面
- 基于 stdlib http.server + 内联 HTML/JS,无需额外依赖
- 功能:规则列表、创建规则、规则测试、冲突检测
- AI 生成代码按钮(调用 LLM 编译器)
- 启动命令:python3 -c "from rule_engine.web import *"

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 23:12:08 +08:00
root
4f60151b86 chore: 更新 memory 记录
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 22:46:27 +08:00
root
0e37c30ae8 docs: 补充完整测试和文档
- 添加 README.md(功能说明、快速开始、API 文档)
- 修复冲突检测字段提取正则表达式
- 添加集成测试 tests/integration/test_full_flow.py

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 22:45:57 +08:00
root
220f6db288 feat(ai-rule-engine): 集成冲突检测到 API
- handle_create_rule 返回冲突警告
- 使用 ConflictDetector 检测新规则与现有规则的冲突

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 22:21:10 +08:00
root
e39829fc4e feat(ai-rule-engine): 完成 MVP 所有批次实现
批次1: 项目结构 + SQLite 存储层 + 数据模型
批次2: REST API (http.server)
批次3: LLM 编译器 (支持 OpenAI/Anthropic)
批次4: RestrictedPython 规则执行器
批次5: 规则匹配器 + LLM Callback 兜底
批次6: 冲突检测器

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 22:19:42 +08:00
root
c022c54144 feat(ai-rule-engine): 添加 AI 规则引擎实现计划
- 批次1:基础设施(存储层 + 项目骨架)
- 批次2:REST API 基础
- 批次3:LLM 编译器
- 批次4:规则执行器
- 批次5:规则校验与兜底
- 批次6:冲突检测

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 21:20:47 +08:00
root
cd0ec8397f feat(ai-rule-engine): 添加 AI 规则引擎设计方案
- 确定技术选型:Python + SQLite + RestrictedPython
- 规划核心模块:RuleCompiler、RuleExecutor、RuleStore、ConflictDetector
- 设计 REST API 接口
- 定义 MVP 范围

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 21:19:55 +08:00
SPB Agent
0fd1ccbc00 Initial commit 2026-05-11 02:28:44 +08:00