Commit Graph

8 Commits

Author SHA1 Message Date
chiguyong 3b581b22ba feat(U8): GEO agent framework adapter layer - fischer-agentkit integration
- Add 8 YAML configs for agent declarative definition
- Add 3 custom handlers (citation, monitor, schema)
- Add 7 business tool registration modules
- Add adapter.py with DI-based registry and dispatcher
- Add database migration for agentkit tables (episodic_memories, evolution_logs, ab_test_configs)
- Add fischer-agentkit>=0.1.0 dependency
- Refactor agent_framework/__init__.py to re-export from agentkit
- Minor API fixes (schema_advisor, scoring, strategy, suggestions)
- Frontend package updates
2026-06-05 19:08:36 +08:00
chiguyong 6b90fb5cd6 refactor: unify Redis connection pool across all modules
- Create app/core/redis.py with global get_redis() singleton
- Replace 4 independent Redis connections:
  - cache.py: use get_redis() instead of own aioredis.from_url
  - dispatcher.py: use get_redis() instead of own connection
  - health_checker.py: use get_redis() instead of per-check connection
  - rate_limit.py: RedisRateLimitBackend uses get_redis() instead of own connection
- Replace main.py readiness endpoint to use get_redis()
- Add close_redis() in FastAPI lifespan shutdown
- Remove unused aioredis imports from health_checker.py and main.py
2026-06-04 14:21:14 +08:00
chiguyong 331f6bce80 fix: add missing Agent exports in __init__.py
Export CompetitorAnalyzerAgent, MonitorAgent, SchemaAdvisorAgent
that were implemented but missing from the module's public API.
2026-06-04 14:03:47 +08:00
chiguyong b41da42d74 feat(geo): U1-U9 monetization closed loop implementation
U1: GEO diagnosis auto data collection (DataCollectorService + 11 tests)
U2: Free GEO health score public page (HealthScoreAPI + 7 tests)
U3: Onboarding redesign with conversion layer (Step0 + UpgradePrompt + 14 tests)
U4: Real payment integration (WeChat/Alipay gateway + PaymentOrder + 12 tests)
U5: AI content generation & distribution (Publishers + PublishEngine + 11 tests)
U6: Attribution system & ROI reports (AttributionEngine + ROICalculator + 12 tests)
U7: Email integration & Dashboard monetization UI (EmailScheduler + templates + 22 tests)
U8: Integration tests & shared fixtures (monetization flow + fixture consolidation + 12 tests)
U9: E2E smoke tests (HealthScorePage + acquisition/core flow + 4 E2E cases)

Total: 101 new backend tests passing, 4 E2E test cases
All third-party integrations use mock mode by default with config center management
2026-06-01 07:39:05 +08:00
chiguyong 0a39ce6ef1 fix: 审计问题修复第二轮
安全:
- H2: CORS生产环境localhost警告验证器
- M12: JWT_SECRET已有≥32字符验证(确认)

代码质量:
- H4: 11处Any类型替换为具体联合类型
- H5: 4个模型测试文件(47个测试),模型覆盖率32%→64%
- M11: Alembic迁移脚本(6个缺失表),修复迁移链分支

测试: 717 passed
2026-05-26 07:34:07 +08:00
chiguyong ba936bd44c feat: 平台规则中心 - 各平台规则收集与Pipeline集成
平台规则收集:
- 10个平台完整规则: 知乎/公众号/百家号/头条/微博/小红书/B站/简书/掘金/抖音
- 每平台: 内容偏好/AI敏感度/敏感词/SEO/GEO/HTML/发布规则

后端实现:
- rule_service.py: 规则验证/AI检测/内容适配
- platform_rules.py API: CRUD + 验证端点
- DeAIAgent集成: 基于平台AI敏感度配置去AI化

前端实现:
- /dashboard/settings/platforms: 平台规则管理页
- /dashboard/content/editor: 内容编辑器增强
- 支持复制为纯文本/Markdown/HTML
2026-05-23 22:33:45 +08:00
chiguyong 9e63915f42 feat: 完成系统真实化改造 + Mock清除 + 文档编写
- 实现 Onboarding 后端 API(6个端点完整对接)
- 接入百炼 DashScope LLM(qwen3-coder-plus 真实引用检测)
- 修复知识库 MockEmbedder(自动检测 API Key 切换真实 Embedder)
- 内容生成对接 RAG 知识库检索
- 清除前端 onboarding 硬编码假数据(改为错误提示+重试)
- 移除模拟加载延迟(setTimeout)
- Pipeline dry-run 模式添加生产环境告警
- 添加操作流程文档和后续待办事项文档
- 更新 .gitignore 排除测试产物和临时文件
2026-05-23 21:35:10 +08:00
chiguyong eac12093d6 feat: 修复前后端API路径不匹配,对接真实数据与百炼LLM
- 修复知识库API路径(knowledge-bases -> knowledge/bases)
- 修复analytics top-content -> top路径
- 修复lifecycle stats路径
- 配置百炼Coding Plan API(qwen3-coder-plus)
- 后端所有API对接真实数据库
- 前端所有页面对接真实后端API
- 创建管理员测试账号(admin@fischer.com)
- 修复CORS配置支持localhost:3001
- 修复UUID/String类型转换问题
2026-05-23 14:45:51 +08:00