董宏凯
c555b92089
日志比较
2026-08-07 11:12:40 +08:00
董宏凯
aa3742b103
docs(position-roundtable): update 沙箱打开关闭与步骤条
2026-08-07 00:05:42 +08:00
董宏凯
1aeee86984
fix(maf): harden stage-4 quality gate (P0/P1)
...
P0-1 migration: detect the same-named stage-3 execution_stage CHECK by sqltext (must contain rework + manager_review), SQLite rebuild / PG-MySQL drop+add, PG boolean default TRUE, validate_schema checks constraint content + seat_tasks status CHECK/unique/FKs; tests start from a real stage-3 schema.
P0-2: a missing/invalid manager review (timeout/exception/empty/invalid JSON/missing per-seat decision) is never an acceptance - system rework under the cap, contract fallback (reassign/controlled_gap/ask_user) afterwards, source=system events.
P0-3: unaccepted deliveries are isolated from the fact ledger, cross-review and final report (deferred merge, delivery_json envelope, accepted_task_results in checkpoint, accepted-only synthesis, no turn_results fallback).
P0-4: seat-task init is atomic get-or-create over the full expected set; recovery fills missing tasks without overwriting frozen contracts; quality gate blocks missing required tasks.
P1: zero config values honoured; duplicate detection persists SHA-256 conclusion digests in history (survives restarts); findings never satisfy evidence, evidence_refs must resolve to trusted ledger refs (unverified_evidence_ref); conversation SSE projection tests added and manager/finalizer messages are no longer mislabelled as seat.delivery.submitted.
2026-08-07 00:04:55 +08:00
董宏凯 and Cursor
a786cdcad0
fix(maf): recover clarification checkpoints stuck in running
...
Re-enter clarification recovery even when manager_dispatch is already completed, and expand V2 runner tests for group_chat seat filtering and recover().
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 22:54:07 +08:00
董宏凯
f9a5b5bc1e
Merge branch 'master-nj' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-dev
2026-08-05 22:21:33 +08:00
董宏凯
428588f1c4
代码提交
2026-08-05 22:20:46 +08:00
董宏凯 and Cursor
1a080311bd
fix(maf): harden phase-3 dispatch recovery and participant writes
...
Make ensure_participants concurrent-safe, restore clarification checkpoints without re-planning, and only create threads for validated seats.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 21:47:46 +08:00
董宏凯
49af497085
代码修改
2026-08-05 21:15:36 +08:00
董宏凯 and Cursor
8b732b43ee
fix(frontend): 同路径二次 write_file 时重挂岗位会商沙箱
...
按 tool-call 身份区分预览,避免同路径重写复用旧 previewKey 导致沙箱不刷新。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-04 00:54:15 +08:00
董宏凯 and Cursor
69e455274a
fix(frontend): 岗位会商沙箱在 write_file 流式阶段实时打开并刷新
...
content 先于 path 到达时用临时文件名开沙箱,流式快照改走外部 store 避免整页重渲染卡顿。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-04 00:51:38 +08:00
董宏凯
ddf83f7728
代码提交
2026-08-03 19:27:54 +08:00
董宏凯
d93cc62806
Merge branch 'master-nj' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-dev
2026-08-03 12:13:59 +08:00
董宏凯
4fcd96af29
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into master-dev
2026-08-03 12:12:01 +08:00
董宏凯 and Cursor
99642fca6c
feat(maf): conversation-driven MAF roundtable (R1/R2) + server-owned stage-3 dispatch
...
Backend:
- Conversation API at /api/maf-roundtable/conversations: create/list/detail,
paginated messages, atomic send+run start, owner-only isolation,
admin read-only diagnostic access
- SSE real-time event stream (GET /conversations/{id}/stream) backed by
ConversationEventHub + conversation_events store; multi-worker deployment doc
- Deterministic server-owned stage-3 dispatch contracts (dispatch_contracts.py):
routing resolved from trusted MAF deployment config instead of manager-chosen
agent ids; config.yaml keeps stage-3 routing deployment-owned
(default_manager_agent_id / seat ids / business_routes / max_seats_per_run)
- Conversation persistence (conversations/messages stores) + v2 migration script
- Tests: conversations, conversation stream, migration, phase3 conversation dispatch
Frontend:
- Vitest test infra for MAF (vitest.maf.config.ts + test:maf script) with
component tests for ApprovalCard/RunHeader/SessionsPage and use-maf-events
- Session form lib, flow-graph dialog / run-detail / sessions page updates,
routes and nav tweaks
- Docs: R0 legacy interaction baseline mapping, updated implementation plan
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-03 12:09:47 +08:00
董宏凯
df408831e5
feat(maf): unified safe display + decision lock for approvals
...
Stage-6 MAF frontend foundation plus P1 approval safety hardening:
- Add lib/safe-display.ts: single-source safeDisplayJson that deletes
sensitive keys (never renders as ***), recurses with depth/array/field/
string caps, returns hiddenCount + truncated.
- MafApprovalCard & MafActionAuditPanel both use safeDisplayJson; remove
private sanitize duplicates. Panels hide entirely when nothing is left.
- Lock the card on both approve AND reject (resuming state) since the
backend advances the workflow on either decision; add a decisionLockRef
sync guard so a double-click before React re-render cannot fire a second
mutate. Status text becomes '正在同步工作流…'.
- Stage-6 base shipped here as prerequisite: self-contained maf-flow-graph
(no roundtable-planning dep), MafFlowGraphDialog/MafFactLedgerPanel/
MafActionAuditPanel, shared risk-theme/action-audit/approval-state/
run-resume libs, mergeBySeq export, canResume wiring, TButton icon fixes.
- Tests import real functions only; 48 pass (adds 8 safeDisplayJson cases).
2026-08-02 22:55:27 +08:00
董宏凯 and Cursor
e939dc4548
feat(frontend): 岗位会商页面布局与意图理解交互优化
...
完善 PositionRoundtable 样式与输入组件,补充 SVG 资源,并同步 Step1 意图相关逻辑。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 21:52:54 +08:00
董宏凯
1ffead7ee2
岗位会商样式修改
2026-08-02 15:33:26 +08:00
董宏凯
a55992e31c
fix(maf): harden phase 5 approval safety
2026-08-02 14:32:49 +08:00
董宏凯 and Cursor
f82363d81f
feat(maf): Phase 5 - action coordinator, approval flow, frontend MAF roundtable pages
...
- Backend: action_coordinator, capability_snapshot, event_normalizer, tool_executor updates
- Backend: approved_tool_executor with write guard, action leases, migration script
- Frontend: maf-roundtable module (API client, event timeline, approval cards, fact flow panel)
- Frontend: MafRoutes, MafSessionsPage, MafRunDetailPage
- Tests: action_leases, migration_phase5, phase5_entry_e2e, real_write_e2e/http_e2e
- Docs: update implementation plan
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-02 13:07:21 +08:00
董宏凯
21c4c898e7
feat(maf): complete resilient roundtable workflow
2026-08-02 00:23:25 +08:00
董宏凯
bd4131b4e2
feat(maf): add secure roundtable workflow runtime
2026-08-01 17:51:53 +08:00
董宏凯 and Cursor
e690475e6e
feat(maf-roundtable): add Phase-1 multi-agent roundtable infrastructure
...
Ship an independent, feature-flag-gated MAF roundtable skeleton with six
isolated tables, atomic single-transaction run launch/cancel, owner-scoped
read/write split, shared config enums, and HTTP/concurrency regression tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-01 01:07:05 +08:00
董宏凯
a0a75a9964
Merge branch 'dhk-1' into 'master'
...
fix: avoid MySQL thread_meta refresh races and harden roundtable bootstrap
See merge request knowledge-base-bj/deerflow-code!16
2026-07-31 13:11:29 +00:00
董宏凯
37964d1f95
代码修改
2026-07-31 21:09:54 +08:00
董宏凯 and Cursor
a9d66536c3
fix: avoid MySQL thread_meta refresh races and harden roundtable bootstrap
...
Skip post-commit ORM refresh on threads_meta creates so concurrent MySQL
read/write-split deployments no longer fail with Could not refresh instance;
clean up partial roundtable threads on checkpoint failure, and ship related
position-roundtable/frontend build fixes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-31 21:00:56 +08:00
董宏凯
a968c3b5cd
Merge branch 'dhk-1' into 'master'
...
代码修改
See merge request knowledge-base-bj/deerflow-code!15
2026-07-29 14:27:46 +00:00
董宏凯
e52261fc3d
fix: preserve full chat embed mode navigation
2026-07-29 22:25:42 +08:00
董宏凯
4450f342d8
页面嵌套修改
2026-07-29 21:53:32 +08:00
董宏凯
213dd841b5
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
2026-07-28 19:18:52 +08:00
董宏凯
816c46d447
代码提交
2026-07-28 19:17:40 +08:00
董宏凯
151ecceb85
feat: 更新主题配置与系统设置
2026-07-27 21:31:09 +08:00
董宏凯
1555d5344b
feat: 优化8BF业务链流程图与深色配置弹窗
2026-07-27 21:30:57 +08:00
董宏凯
bd8ec41914
Merge branch 'dhk-1' into 'master'
...
Dhk 1
See merge request knowledge-base-bj/deerflow-code!12
2026-07-27 11:25:40 +00:00
董宏凯
1e21e559fb
merge: 合并远端 dhk-1 最新改动
2026-07-27 19:22:59 +08:00
董宏凯
e496221dc3
Merge remote-tracking branch 'origin/master' into HEAD
2026-07-27 19:19:01 +08:00
董宏凯
5bf3955b26
代码提交
2026-07-27 19:16:12 +08:00
董宏凯
1ab3329f6d
feat: 新增8BF多智能体会商页面
2026-07-27 19:00:14 +08:00
董宏凯
e70bb4aa6f
feat: 新增8BF多智能体会商页面
2026-07-27 18:59:42 +08:00
董宏凯
cec2996861
Merge branch 'dhk-1' into 'master'
...
feat(沙箱): md 产物支持 AI 写作编辑与划词改写
See merge request knowledge-base-bj/deerflow-code!9
2026-07-26 13:20:20 +00:00
董宏凯
f1e53ef5c0
功能:完善自定义主题与独立登录会话
2026-07-26 18:19:50 +08:00
董宏凯
3779bb69ef
fix: load model keys from environment
2026-07-26 13:08:09 +08:00
董宏凯
25153dbd84
代码修改
2026-07-24 14:12:42 +08:00
董宏凯
91ba47bf47
代码提交
2026-07-24 11:24:11 +08:00
董宏凯
28bf1ac7b2
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
...
# Conflicts:
# frontend-web/src/position-roundtable/components/PositionBuiltinAgentChat.tsx
# frontend-web/src/position-roundtable/components/PositionNodeChat.tsx
2026-07-24 10:41:38 +08:00
董宏凯
45df500a9c
代码提交
2026-07-24 10:33:28 +08:00
董宏凯
f49def09ea
代码修改
2026-07-23 16:00:39 +08:00
董宏凯
4948a80c56
代码提交
2026-07-23 15:53:43 +08:00
董宏凯
7d249a81ce
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
...
# Conflicts:
# frontend-web/src/position-roundtable/components/PositionBuiltinAgentChat.tsx
# frontend-web/src/position-roundtable/components/PositionNodeChat.tsx
2026-07-23 15:11:43 +08:00
董宏凯
1d07025f74
代码修改
2026-07-23 15:08:00 +08:00
董宏凯
b60d9ed09e
代码修改
2026-07-23 14:29:12 +08:00
董宏凯
56740ecf56
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
2026-07-23 12:38:52 +08:00
董宏凯
9f788e37de
样式修改
2026-07-23 12:38:48 +08:00
董宏凯
08ce3dda73
merge: integrate dhk-dev into dhk-1
2026-07-23 10:38:48 +08:00
董宏凯
c8f69781e4
样式修改
2026-07-23 10:10:47 +08:00
董宏凯
13bfa719ee
feat: refine position roundtable workflow
2026-07-22 22:22:38 +08:00
董宏凯
359bd28f2c
fix: polish position roundtable artifact preview
2026-07-22 18:41:46 +08:00
董宏凯
790267ac43
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
...
# Conflicts:
# frontend-web/src/position-roundtable/pages/PositionRoundtablePage.tsx
2026-07-22 17:02:07 +08:00
董宏凯
d9844e0180
打开沙箱错误修改
2026-07-22 16:53:56 +08:00
董宏凯
ae184f434d
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
2026-07-22 15:43:13 +08:00
董宏凯
055523bf33
代码修改
2026-07-22 15:43:06 +08:00
董宏凯
b93b82fcaf
Merge branch 'dhk-1' of http://192.168.0.200/knowledge-base-bj/deerflow-code into dhk-1
2026-07-21 11:00:19 +08:00
董宏凯
d0b4832ed7
代码提交
2026-07-21 10:58:56 +08:00
董宏凯
2d6992d656
feat(frontend): adapt TDesign themes
2026-07-20 20:10:22 +08:00
董宏凯
bb7291a97c
Merge branch 'dhk-1' into 'master'
...
feat: 支持深色主题顶栏 Logo 位置配置
See merge request knowledge-base-bj/deerflow-code!5
2026-07-17 13:08:45 +00:00
董宏凯
2c331aa744
Merge branch 'dhk-1' into 'master'
...
Dhk 1
See merge request knowledge-base-bj/deerflow-code!4
2026-07-16 14:45:42 +00:00
董宏凯
871d98e6f2
Merge branch 'dhk-1' into 'master'
...
Dhk 1
See merge request knowledge-base-bj/deerflow-code!3
2026-07-16 01:57:37 +00:00
董宏凯
d7ad0624b7
代码提交
2026-07-15 16:13:03 +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
董宏凯
55b5c2cc9f
代码部署说明
2026-07-11 18:58:16 +08:00
董宏凯
d5d5199f6d
Merge branch 'dhk-1' into 'master'
...
代码合并
See merge request knowledge-base-bj/deerflow-code!2
2026-07-11 10:16:38 +00:00
董宏凯
b1c396717b
Merge branch 'dhk-1' into 'master'
...
feat(message-token-usage): 速度条下方常驻颜色含义图例
See merge request knowledge-base-bj/deerflow-code!1
2026-07-11 10:12:52 +00: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
董宏凯
a1c63a1fe5
代码提交
2026-07-03 22:11:50 +08:00
董宏凯
195ef3ee40
Merge branch 'dhk-1' into 'master'
...
Dhk 1
See merge request knowledge-base-bj/deerflow-server!169
2026-07-03 08:37:06 +00: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
董宏凯
7d9c0894f8
fix: limit roundtable chain rail height
2026-07-02 11:17:52 +08:00
董宏凯
94188db9ea
Merge branch 'dhk-1' into 'master'
...
Dhk 1
See merge request knowledge-base-bj/deerflow-server!168
2026-07-02 02:15:43 +00:00
董宏凯
b12497898a
fix: polish roundtable chain rail toggle
2026-07-02 10:14:40 +08:00
董宏凯
3e51208024
feat: add roundtable chain rail scroll
2026-07-02 10:06:24 +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
董宏凯
ba0c32dcee
Merge branch 'dhk-1' into 'master'
...
代码修改
See merge request knowledge-base-bj/deerflow-server!167
2026-07-01 09:51:15 +00:00
董宏凯
025e43f4c5
feat: improve ai writing imitation flow
2026-07-01 17:16:12 +08:00
董宏凯
fa04ab8b5a
fix: filter position-granted agent favorites
2026-07-01 14:51:14 +08:00
董宏凯
f3e5a3bb35
fix: prevent notebook writing redirect to agent chat
2026-07-01 14:48:40 +08:00
董宏凯
0547fb1715
提交
2026-07-01 11:22:26 +08:00
董宏凯
bb6b9bd84b
feat: add ai writing imitation mode
2026-07-01 11:21:41 +08:00
董宏凯
4bfaeb728b
fix: disable ssl verification for intranet ai writing search
2026-07-01 10:21:52 +08:00
董宏凯
c8cdd1d0b2
Merge branch 'dhk-1' into 'master'
...
统一外部 access_token 存储与轻应用 URL 拼接,修复嵌入会话鉴权隔离。
See merge request knowledge-base-bj/deerflow-server!165
2026-06-30 11:21:42 +00:00
董宏凯
8fbfd35296
Add scheduled HTML templates no19-no27
2026-06-30 19:18:48 +08:00
董宏凯
dfb745a5e4
代码提交
2026-06-30 16:04:51 +08:00
董宏凯 and Cursor
537e2e4d06
fix(登录): token 登录补全 userInfo + 全方式打印路由参数
...
- 把「拉外部用户信息(yUserId→consumer)」与登录鉴权方式解耦:只要 URL 带
yUserId 就填充 userInfo(含 token 登录,consumer 失败非致命),修复 token
登录后 userInfo 残缺、iframe/轻应用拿不到 yUserId/userName/gateDepartName/
typeName/accessToken 的问题。
- token 登录用 auth.username 写入正确用户名(不覆盖 consumer 已落的 userName)。
- 保留 yUserId 优先级(onlineTicket/toolToken 仅在无 yUserId 时启用)。
- 新增登录路由参数 + 落地结果日志(令牌脱敏),方便排查各登录方式取值问题。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 23:36:33 +08:00
董宏凯 and Cursor
9268c73776
feat(沙箱): md 产物支持 AI 写作编辑与划词改写
...
- 新增 MarkdownAiEditor,复用 AI 写作的 TipTap 编辑器与 AI 改写流程
- 沙箱 md 增加 AI 写作视图切换,默认仍为预览;单文件隐藏文件名避免工具栏错位
- 单智能体聊天页开启 allowVirtualMarkdownEdit,生成完成后可编辑
- 会商总结页续看时自动收起研讨原料侧栏
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 23:08:55 +08:00
董宏凯
24eb629773
Merge branch 'dhk-1' into 'master'
...
feat(ai写作): 历史记录可继续未完成的会话(从checkpoint续跑)
See merge request knowledge-base-bj/deerflow-server!155
2026-06-27 09:31:57 +00:00
董宏凯
44d7304f8e
Merge branch 'master' of http://192.168.0.200/knowledge-base-bj/deerflow-server into dhk-1
2026-06-27 16:00:47 +08:00
董宏凯 and Cursor
5de74e90dc
feat(ai写作): 左栏智能体 Tab 内嵌问答并优化模块侧栏
...
AI 写作页默认展示智能体 Tab,在页内复用 ai-writing 模块配置与 AgentChatPage;确认类型后侧栏扁平展示类型名并支持整块收起动画。同步历史回看、流式续跑、改写菜单与 researcher 检索相关改动。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-27 15:53:51 +08:00
董宏凯 and Claude Opus 4.8
c11307aa67
feat(ai写作): 历史记录可继续未完成的会话(从checkpoint续跑)
...
历史列表里 in_progress/draft_ready/review_ready 记录加绿色▶️ 「继续未完成」按钮
(点标题亦可);done/error/background 不可继续。多 worker 安全——与4个确认卡同机制,
全基于共享 checkpoint(gateway GET /threads/{id}/state + /history 读,任意 worker)。
链路:continueWriting(sessionId) → closeHistory + 设活跃 sessionId → useStream
fetchStateHistory 拉该 thread checkpoint 进 stream.values → host rehydrate effect
(continueTargetRef 守卫,每 thread 一次)用 buildRehydrateSnapshot 重建已完成阶段;
status=awaiting_* → 显示确认卡等用户操作,否则 submit({command:{}}) 从 checkpoint
续跑当前阶段。重新加回 buildRehydrateSnapshot + rehydrate action。
入口在侧栏 WritingHistoryItem。刷新=重置不受影响(这是显式点击,非自动重连)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-27 13:12:47 +08:00
董宏凯
45315f18d2
Merge branch 'dhk-1' into 'master'
...
fix(ai写作): 恢复内网直连检索(知识库检索)空地址回退默认端点
See merge request knowledge-base-bj/deerflow-server!154
2026-06-26 16:02:52 +00:00
董宏凯 and Claude Opus 4.8
e889cc25cf
fix(ai写作): 历史记录 in_progress 不再误显示「进行中」转圈
...
刷新=重置后,开始过但没跑完的会话 DB status 永远停在 in_progress、且无任何活进程,
历史列表却转圈显示「进行中」,误导用户以为还在运行。改为中性、不转圈的「未完成」
(text-slate-400)。真正在跑的 background(后台挂起,有 executor 驱动)保留「挂起中」转圈。
改 WRITING_STATUS_PILL(侧栏列表) + STATUS_LABELS(下拉)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-27 00:01:32 +08:00