gozeros
66a443e915
sync update from LAN repo (source master @ c21a2a4a)
2026-11-10 14:03:50 +08:00
gozeros
ea9dcff9c0
sync update from LAN repo (source master @ ca48c4ec)
2026-11-05 10:53:54 +08:00
gozeros
8bc8b0e082
sync: 鍚屾灞€鍩熺綉鏈€鏂颁唬鐮?(source master @ b69568e4)
2026-10-21 14:51:31 +08:00
董宏凯
cf9fe58905
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-nj
...
Co-authored-by: Cursor <cursoragent@cursor.com >
# Conflicts:
# frontend-web/src/components/workspace/workspace-nav-chat-list.tsx
# frontend-web/src/pages/WorkspaceRoutes.tsx
# offline-backend-20260512/backend/app/gateway/app.py
# offline-backend-20260512/backend/app/gateway/deps.py
# offline-backend-20260512/backend/pyproject.toml
2026-09-07 14:46:36 +08:00
董宏凯
5c75e1af16
feat(deep-research): 强化任务链路可靠性并接入 agentfx 报告助手种子
...
功能说明:\n- 重构 Deep Research 调度与执行链,补齐 dispatcher、executor、live hub 与依赖注入入口,提升任务下发、执行、回调的稳定性\n- 增强运行时持久化与恢复能力,接入业务映射、任务来源与任务事件日志模型,覆盖持久化与执行可靠性关键路径测试\n- 新增 agentfx 报告助手 seed 与任务报告导入脚本配置,支持离线环境快速初始化与任务流模板回填\n- 完善 deep-research 与 thread_runs 路由参数编排,兼容不同业务映射与运行入口的前后端联动\n- 补充前端 agentfx deep-link 解析,保证 deep-research 场景下的登录跳转与任务上下文一致
2026-09-04 23:18:52 +08:00
董宏凯 and Cursor
f109a95535
feat: 新增报告协作页,并强化 Deep Research 运行诊断与报告兜底
...
支持浏览器侧素材快照撰写、拒绝报告读时修复、Mermaid PNG 导出与 Word 导出加固。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-03 11:16:50 +08:00
吉鑫升
49d9ced04f
Merge branch 'ji' into master
2026-09-03 10:25:57 +08:00
董宏凯
6d326a21cd
feat(backend): 完善 Workflow 与 DeepResearch 的运行链路与持久化能力
...
功能说明:\n- 重构并增强工作流网关执行链路,支持更完整的 proposal 与 run 调度参数透传\n- 增加 DeepResearch/workflow 运行事件持久化能力并补齐建表 SQL 与查询/保存接口适配\n- 优化 lead agent 与 deep research runner 的中间态处理,增强线程收集与执行链并发控制\n- 调整工作流执行器与任务路由,提升兼容性并完善错误与回放行为\n- 补充回归测试:deep_research 持久化、workflow 并发、定义加载、引擎执行、run 流程等覆盖
2026-09-02 12:52:37 +08:00
董宏凯
553f72604a
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-nj
2026-09-01 15:36:47 +08:00
董宏凯
1706a24182
feat(workflow): 增加会话级多智能体任务规划运行能力
...
提交范围聚焦于工作流编排新增:新增 workflow_planning 路由与前后端运行入口(workflow_planning.py、workflow_proposal_planner.py、workflow_deep_research_adapter.py),支持基于会话的提案-规划-执行流程,满足任务驱动式多智能体协作。
完成网关层运行时适配:扩展 workflow_resource_checks、workflow_executor、workflow_runs、workflow_agent_runner 与依赖注入,新增/更新配置(config.yaml、workflow_config),并补充 lead_agent 路径与节点实现,确保 Planner 与普通工作流运行态衔接一致。
补齐持久化与建模:新增 workflow_planning 持久化模块与 MySQL migration(20260831_01_workflow_planning_sessions),注册 SQL 与模型、内存 store,并扩展错误/表达式/validator/节点语义以承载新会话态输入输出。
增强文档与测试:新增会话式多智能体编排中文说明、更新开发文档与 AGENTS 指南、补充 workflow_engine/workflow_runs 回归测试,提高新路径的行为可验证性;同时留存 seed 资产(workflow-planner)便于一体化部署。
2026-09-01 11:47:30 +08:00
fengxiangdebaozi
57b6a89f20
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-nj
...
# Conflicts:
# frontend-web/src/components/workspace/messages/message-group.tsx
# offline-backend-20260512/backend/packages/harness/deerflow/agents/lead_agent/prompt.py
2026-08-31 20:12:05 +08:00
吉鑫升
40542db400
feat: add configurable chat display modes
2026-08-31 17:49:48 +08:00
董宏凯
3384f2e51c
fix: 会商席位与总控角色隔离,编排能力只归总控
2026-08-30 20:02:09 +08:00
董宏凯
2ab3ab8444
fix: 写作管线整批接收对话检索结果,不再自己检索
...
- 相关性过滤新增位置通道:收割器给每条材料标记来源消息位置,课题
请求之后的检索结果整批入池(与语言/词面无关)——线上中文课题 +
英文检索结果被纯词面匹配误杀 31/35 条,报告只带着 4 条残料在写
- 课题切换保护保留:新请求之前的旧课题检索仍按词面强过滤,不凑
门槛、不入报告;对话里找不到课题消息时退化为原词面过滤
- 删除死代码 HarvestPlusSearchMaterialProvider(retrieve=True 的
自检索补充分支,早已被显式忽略):写作管线只负责写文件,检索
全部由对话完成成为结构保证
- 测试:锚点规则(澄清回答不充当新课题)、中文课题+英文资料整批
保留、课题切换旧检索过滤等场景,25 个用例入库(此前该测试文件
一直被 tests/* 忽略规则挡在版本库外)
2026-08-30 16:20:55 +08:00
董宏凯
f7e6ed65bd
fix: retry httpx timeout family as transient LLM errors
...
Live incident: the compatible-mode provider stalled mid-stream after
200 OK (~17s without data) and raised httpx.ReadTimeout, which was not
in the retriable exception-name set, so the call failed after 1
attempt and killed the whole run. Add ReadTimeout/ConnectTimeout/
WriteTimeout/PoolTimeout/TimeoutError/ConnectError to the transient
set in LLMErrorHandlingMiddleware (retry with backoff, then a
transient fallback message instead of generic), and add ReadTimeout/
ConnectTimeout to ai_writing's classify_exception for model
switching.
2026-08-30 15:53:51 +08:00
董宏凯
4964967295
fix: writing mode first-report allows only the pipeline to write the report
...
- Strip write_file/str_replace/bash from the model binding in the
first-report run: after_model rewrites only fire after a full model
response, so any bound write tool let weak models draft the whole
essay into tool args (write_file content or bash cat>/python
heredocs) for tens of invisible seconds before interception
- Hallucinated hand-writes are still handled: after_model rewrites
bash cat >/python open('w')/tee and leftover write calls to
deep_research_report; wrap_tool_call rejects whatever reaches the
tool layer; post-success writes are dropped, nudged to a 2-3
sentence summary, and patched with a fallback closing message so
the turn never ends silently
- The rewritten pipeline call carries topic = original request
(clarification answers skipped) plus focus = clarification answers,
so the pipeline writes the clarified subject instead of the raw
prompt text; prompts updated to match (tools unavailable, call the
tool directly, do not draft first)
- Frontend write-step interception and streaming preview scoping now
applies only in writing mode; normal mode shows/previews writes
exactly as before
2026-08-30 15:53:43 +08:00
董宏凯 and Cursor
49c01cb72b
fix: writing mode uses chat search then pipeline write only
...
Keep deep_research_report as a write-only deliverable from conversation materials, block post-success rewrite loops with a summary nudge, fill thin/empty pools from model knowledge, and open the sandbox only on real report.md content.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-30 12:41:04 +08:00
董宏凯
440b490b0d
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-nj
2026-08-27 16:33:33 +08:00
董宏凯 and Cursor
52b9cbf707
feat: 新增 agentfx 任务深链与研判报告入库流程
...
支持 goPath=agentfx 的 iframe 嵌入问答、内置研判助手种子与报告导入协助卡,并完善深度研究流式报告能力。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-27 16:32:22 +08:00
吉鑫升
1b43205c1b
feat: improve skill uploads and agent runtime stability
2026-08-27 11:28:03 +08:00
吉鑫升
11326eeb1c
feat: improve skill uploads and agent runtime stability
2026-08-27 11:14:23 +08:00
吉鑫升
485a8fa9d9
feat: standardize Word export and Office conversion
2026-08-27 00:09:53 +08:00
董宏凯
babc5e95c6
代码提交
2026-08-24 20:47:31 +08:00
吉鑫升
bc49df4561
feat: add public wiki embeds and ES query routing
2026-08-24 15:21:28 +08:00
吉鑫升
e818c24769
Merge remote-tracking branch 'origin/master' into ji
...
# Conflicts:
# .gitignore
# frontend-web/src/components/workspace/artifacts/context.tsx
# frontend-web/src/components/workspace/messages/message-group.tsx
# offline-backend-20260512/backend/CLAUDE.md
# offline-backend-20260512/backend/README.md
# offline-backend-20260512/backend/app/gateway/app.py
# offline-backend-20260512/backend/app/gateway/deps.py
# offline-backend-20260512/backend/app/gateway/routers/llmwiki.py
2026-08-24 14:21:19 +08:00
董宏凯 and Cursor
541bc3280f
fix: 岗位会商本轮只允许 present_files 一次,避免重复产物卡
...
弱模型写完报告后仍会再调用一次 present_files,前端会画出两张相同卡片。上限同时覆盖呈现,已呈现则只催收尾。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 21:26:57 +08:00
董宏凯 and Cursor
b81d200eca
fix: 协助卡停轮与提交防 409,隐藏配置向导会话,并限制岗位会商产物重复写入
...
澄清中间件改为 ToolMessage + after_model 停轮,前端提交前取消残留 run;系统/向导 thread_type 从对话列表排除;岗位总结席位加 write_file 上限。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-23 20:29:59 +08:00
董宏凯 and Cursor
51afebb394
feat: 报告结构支持检索方向/来源与智能新增,并修复协助卡停轮与宿主跳转
...
为深度研究报告结构增加检索方向与技能来源、对话式智能新增页与详情排版;澄清中间件在 after_model 可靠结束本轮,避免弱模型出卡后继续生成;任务按钮补充 host 跳转与相关深链能力。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-22 17:46:06 +08:00
董宏凯 and Cursor
a5a9c952e8
feat: 深度研究支持独立新报告与原文改写,并完善沙箱、模型管理与全文改写
...
新报告不再覆盖当前文件卡片,写入时打开沙箱;步骤条仅在改写原文时位于卡片上方。同时补齐改写本地回退、模型管理与会商第三步相关改动。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-21 21:46:04 +08:00
吉鑫升
4c9f75f31e
feat: add fixed questions and improve authentication
2026-08-21 17:58:39 +08:00
董宏凯
33b0af333c
Merge branch 'master-nj' into 'master'
...
增强 Deep Research 可靠性,并接入 8BF 任务卡片与会商上下文。
See merge request knowledge-base-bj/deerflow-code!25
2026-08-18 09:55:17 +00:00
董宏凯 and Cursor
15a46b903a
增强文档改写配图与深度研究流式稳定性,并完善 8BF/会商工作区。
...
全文改写支持可选配图与思考过程展示,深度研究接入 DashScope 原生出图并剥离内联 think 标签;8BF 会商补齐第一步工作区与任务卡回退,同时限制热重载扫描范围。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-18 17:46:11 +08:00
董宏凯
819e537aa3
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-nj
2026-08-17 19:30:37 +08:00
吉鑫升
68c4896088
fix: stabilize auth sync and stream recovery for ji
2026-08-17 19:27:39 +08:00
董宏凯 and Cursor
771957429a
增强 Deep Research 可靠性,并接入 8BF 任务卡片与会商上下文。
...
修复 MySQL 读写分离下的持久化与 SSE 重连问题,报告完成前先落库;8BF 嵌入页支持 taskId 任务卡与独立意图 metadata;前端统一 createClientId 并更新 runtime 配置。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-17 18:16:05 +08:00
吉鑫升
5bf08c83a6
Merge remote-tracking branch 'origin/master' into ji
2026-08-17 15:53:36 +08:00
吉鑫升
94cf37a2ae
fix: normalize system messages before model calls
2026-08-17 10:12:43 +08:00
董宏凯
178572bc7f
代码提交
2026-08-16 19:17:45 +08:00
董宏凯
70da7c5649
代码提交
2026-08-15 12:51:58 +08:00
董宏凯 and Cursor
75963c9ad9
feat: 岗位会商命令幂等与圆桌后台作业租约调度
...
岗位会商写操作引入 command_id 幂等与版本锁,前端支持同键重试;圆桌后台作业改为 DB 租约 dispatcher、去重与草稿 outbox 补偿,并持久化 intent turns。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-14 11:08:12 +08:00
Administrator
56044d9cb7
fix: improve llmwiki search integration
2026-08-13 16:03:08 +08:00
董宏凯
27e6b0b23e
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-dev
...
# Conflicts:
# frontend-web/src/open-canvas/components/ai-writing/AIWritingForm.tsx
2026-07-11 19:01:10 +08:00
fengxiangdebaozi
388a9133fc
fix: adapt frontend for legacy Chrome and runtime config
2026-07-11 16:55:08 +08:00
董宏凯
221e947488
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-server into dhk-dev
...
# Conflicts:
# frontend-web/src/open-canvas/components/ai-writing/AIWritingForm.tsx
# frontend-web/src/open-canvas/components/ai-writing/AIWritingPanel.tsx
# offline-backend-20260512/backend/CLAUDE.md
# offline-backend-20260512/backend/app/gateway/services.py
# offline-backend-20260512/backend/tests/test_ai_writing_knowledge_base.py
2026-07-03 22:28:21 +08:00
董宏凯
da856f2b58
fix: improve ai writing chat streaming and intent handling
2026-07-02 17:43:23 +08:00
董宏凯
845c87e3ee
feat: add AI writing chat workspace
2026-07-02 13:56:46 +08:00
吉鑫升
7e7d3c9846
fix: truncate rwfx 3q context
2026-07-02 11:05:12 +08:00
吉鑫升
36a3851233
feat: inject 3q context into rwfx chat
2026-07-02 10:03:34 +08:00
董宏凯
54190d7a83
提交代码
2026-07-01 19:24:23 +08:00
董宏凯
d21dbeb214
feat: refine ai writing search flow
2026-07-01 18:00:14 +08:00