QihuAI Design
771c8456b8
chore: normalize line endings to LF via .gitattributes
...
Root-cause fix for mixed CRLF/LF in the repo (no .gitattributes previously).
Adds '* text=auto eol=lf' and explicit binary rules so all future checkouts
are LF. Renormalizes all tracked text files (no logical content change).
Backup tags: image qihuaiflow:backup-lineend-20260725-121632, git backup-lineend-pre-20260725-121632.
2026-07-25 12:16:39 +08:00
QihuAI Design
a08ec87b22
chore(align): sync Git with running container as authoritative source
...
One-time alignment to close drift between the running container
(qihu-aiflow / image qihuaiflow:with-deps) and this Git repository.
Container hotfixes previously persisted only via `docker commit` are now
captured in Git so Git becomes the single source of truth.
Backend:
- chat_service.py: accumulated fixes incl. EigenFlux README guidance
- chat_context.py / chat_media.py: URL/web-repo context injection
- api/url_reader.py: NEW SSRF-safe web/README reader (Issue #725 )
- skills_admin.py & Skills.tsx: 14-scene capability unification
- pgvector_search.py, orchestrator.py, platform_knowledge.py,
market.py, admin/models.py: drift sync
Frontend:
- ChatPage.tsx: collapsible AI think/act block (Issue #724 )
- MarketPage / EvolutionDashboard / TokenDashboard styling sync
Migrations:
- 018_normalize_marketapp_scene.sql: fixed capability allowlist
(prevents capability wipe on restart)
Alignment performed 2026-07-23 05:42:47. No deletions; secrets/venv/node_modules/
caches were not touched (tracked-source-only copy).
2026-07-23 05:42:48 +08:00
QihuAI Design
11b80b90f4
fix(migrations): MariaDB 兼容幂等化 privacy_mode 列与 distributions 种子插入
CI / gate (push) Has been cancelled
2026-07-20 19:37:57 +08:00
QihuAI Design
71a6403e5b
fix: 加宽 skill_trajectory_links.atom_id 列 VARCHAR(36)->128 修复 DataError(1406);TraceIdFilter 从 root logger 移至 handler 修复子 logger %(trace_id)s KeyError 日志刷屏;evolution scheduler 循环增加 db.rollback() 兜底;附带 models.py CRLF->LF 归一。
CI / gate (push) Has been cancelled
2026-07-20 19:02:40 +08:00
QihuAI Design
669c16b0a0
Phase 4.1: 技能市场安检引擎 + 版本化 + 绿标 (v2026.07.19.9)
CI / gate (push) Has been cancelled
2026-07-19 19:15:35 +08:00
QihuAI Design
96b3f0af37
Phase 3.3 多 Agent 编排图引擎: orchestration JSON 列 + 拓扑并行引擎 + local/external/reduce 节点 + 工具沙箱继承 + 后台编排 API
CI / gate (push) Has been cancelled
2026-07-19 16:41:27 +08:00
QihuAI Design
3b34ba78b8
feat(agents): Phase3.2 Agent凭据Fernet加密存储 写入加密+调用点解密+返回脱敏+主密钥持久化防竞态 [v2026.07.19.7]
CI / gate (push) Has been cancelled
2026-07-19 15:27:15 +08:00
QihuAI Design
0600c37b9e
feat(agents): Phase3.1 工具/MCP权限沙箱(tool_policy) 白名单+预算熔断+每轮上限+后台管理UI [v2026.07.19.6]
CI / gate (push) Has been cancelled
2026-07-19 12:34:40 +08:00
QihuAI Design
491f31cead
refactor(context): Phase2 上下文引擎升级 分层记忆+压缩+隔离 [v2026.07.19.4]
CI / gate (push) Has been cancelled
2026-07-19 09:29:57 +08:00
QihuAI Design
a7a57f9a03
refactor(observability): Phase2.2 成本归因 trace_id列+token日志写入+LLM/MCP/媒体子span [v2026.07.19.3]
CI / gate (push) Has been cancelled
2026-07-19 08:51:28 +08:00
QihuAI Design
fe051bd9f3
feat(market): 采用元宝岗位/职能分类(14类)替代人群场景 + AI验证期自动归类
2026-07-17 15:22:57 +08:00
QihuAI Design
9bcf15099f
feat(market): 技能/MCP 分类改为面向用户的业务场景(人群->场景),AI验证期按场景归类
2026-07-17 14:55:21 +08:00
QihuAI Design
6f3fb400a4
feat(market): skills/mcp 能力分类 + AI验证期自动识别 + 导入自动入座
2026-07-17 12:09:42 +08:00
QihuAI Design
82afe14a23
fix(wechat/token/market): 修复微信对话时间、Token数据重置、技能市场复活、媒体内联
...
1. 微信Bot对话记录时间按北京时间渲染(ImBotHub/WechatHistory 的 formatTime 显式 +08:00 + Asia/Shanghai);
2. 新增 /app/api/chat/media/relay 媒体中转端点(白名单 agnES 域名, 经香港代理代取),
改写 _wechat_send_media 用平台中转地址,微信/iLink 可内联播放图片/视频;
3. 删除 014_clean_test_data.sql:该迁移每次重启重跑并 DELETE token_usage_logs/
messages/conversations/knowledge 等,导致 Token 驾驶舱数据每次重启被清空;
4. 002_init_data.sql 移除 market_apps 自动播种(原 WHERE COUNT=0 在用户删空后重启复活),
技能市场交由用户后台维护,重启不再复活。
2026-07-16 09:19:23 +08:00
qihu-bot
d274733fb3
feat(chat): 外部Agent(Dify/n8n/Coze)运行期真实远程调用
...
- _resolve_market_agents 补齐 platform/agent_endpoint/agent_api_key 字段
- 新增 _call_external_agent 及 dify/n8n/coze 分支; Dify 走SSE流式,兼容
chat/agent(message)与chatflow/workflow(text_chunk/workflow_finished)事件,
失败时surface真实错误; n8n走webhook POST; coze走v3 chat+轮询
- send_message 选中带endpoint的外部Agent时直接远程调用,跳过本地LLM扮演
- Conversation新增ext_agent_conversation_id维持Dify/Coze多轮(迁移016)
- 出网统一trust_env=False+_proxy_for_url直连,规避坏代理502
2026-07-15 13:55:04 +08:00
QihuAI Design
d374d464e8
feat: 智能Agent接入前连通性/鉴权校验
...
- 前端技能市场「接入单个Agent」新增「测试连接」按钮,接入前必须校验通过
- 后端 POST /market/apps/verify-agent:dify 走 chat-messages 鉴权探测(trust_env=False 直连),n8n/coze 走 HEAD 可达性探测
- upload_app 对 agent 类型做服务端守卫,密钥无效/不可达直接 400 拒绝
- MarketApp 新增 platform 列(dify/n8n/coze),009 迁移幂等加列
2026-07-15 13:01:19 +08:00
QihuAI Design
b0bfba5c16
fix: 技能/应用市场官方种子改为仅空表时写入,修复删掉的技能重启后被迁移脚本复活
...
- run.sh 每次重启无条件重跑 migrations/002_init_data.sql
- 原 INSERT IGNORE 在用户删行(PK消失)后会重新插入,导致已删技能复活
- 改为 INSERT...SELECT...WHERE (SELECT COUNT(*) FROM market_apps)=0,仅全新库播种,用户删除任一后表非空即不再复活
2026-07-15 12:38:36 +08:00
QihuAI Design
5d1370156e
fix: 停止迁移复活默认模型供应商/模型;AI聊天媒体生成改为异步(修复视频请求失败)
...
- migrations/002_init_data.sql: 移除 model_providers/models 的 INSERT IGNORE 种子,重启容器不再复活 deepseek/openai/通义千问等默认供应商与模型,改由用户在后台大模型库自行维护
- chat.py: 图像/视频生成分支改为立即返回占位(generating=true),后台 asyncio 任务轮询 AGNES 并回写消息内容,避免最长 5 分钟同步轮询阻塞 HTTP 请求导致前端「发送失败:请求失败」
- ChatPage.tsx: 发送后若 assistant_message.generating,每 3s 轮询 getMessages 直至内容更新;页面刷新时若仍有「⏳ 」占位继续轮询;卸载清理定时器
2026-07-14 21:48:39 +08:00
qyyfw
e8e5ffa1a9
fix: 恢复 rsync 误删的近期开发(agents/skills/mcp/knowledge/workflow/tenant/billing/storage/privacy/promotion/achievement/automation/code-exec/developer/distribution/im-bot/portal/casdoor 等后端模块 + 对应前端页面路由, 补回 main.py 挂载与 App.tsx 路由
2026-07-11 11:40:39 +08:00
qyyfw
5d7f32db0a
refactor: sync running-container source back to repo for reproducible docker compose build; remove dead code (orphan pipeline.py + 104 stale files from iterative dev) and drop unused app/ mirror dir
2026-07-11 06:29:32 +08:00
qyyfw
7daeae6fc7
Phase 4: IM Bot Integration - admin module, frontend, LangBot gateway, routing rules, quick setup wizard
2026-07-06 19:59:05 +08:00
qyyfw
891d1ce527
Phase G5: Local Agent / Privacy Mode — 4 tables, 19 API endpoints, platform_bridge MCP, PrivacySettings.tsx (740 lines). 25/25 tests pass.
2026-07-06 17:18:05 +08:00
qyyfw
0486210133
Phase G4: Distribution Builder - SaaS product line mgmt, license keys, config export, frontend UI
2026-07-06 16:36:26 +08:00
qyyfw
9b3e15ace6
Phase G2-1~G2-6: Code Execution Worker - Docker sandbox deployment, backend API (code_exec_admin.py), frontend CodeExecTab, security hardening (read-only FS, non-root, capability dropping, RLIMIT_AS)
2026-07-06 14:10:41 +08:00
qyyfw
70dd2b69af
Phase 1: Add SiliconFlow provider + DeepSeek-V4-Flash, optimize Dockerfile with Tsinghua mirrors
2026-07-02 16:34:16 +08:00
qyyfw
78ff261b5a
初始提交: Qihu-AIFlow v2.0.1 完整项目
...
- 前端 React+TypeScript (源码+构建产物)
- 后端 Python FastAPI
- 数据库迁移 001-015
- Docker部署配置
- 微信ClawBot API频道绑定
- 项目文档 README.md
2026-07-02 14:40:46 +08:00