Commit Graph

119 Commits

Author SHA1 Message Date
alan.cl
597b1e63b8 fix(connector): 修复 CI 风格检测与陈旧单测
CI build-web 失败 + make fmt-check 报错的修复,均不影响功能逻辑:

- side-bar.tsx: 修复两处超长 className 键值对的 prettier 换行(CI 构建失败根因)
- agentic_data_api.py: BaseTool 加入 TYPE_CHECKING(F821);循环变量 tool->sub_tool 避免遮蔽 import(F402)
- catalog.py/task_executor.py/models.py: 超长字符串隐式拼接换行(E501),拼接结果不变
- manager.py: 精简过长的 docstring 与模块注释(E501)
- test_manager.py: 同步 4 个陈旧测试断言以匹配当前 connector 鉴权模型
  (所有类型强制 server_uri、headers 由 auth_type+token 派生、tool 摘要含 original_name)
- test_service.py: 精简过长的测试 docstring(E501)

验证: make fmt-check 全绿;connector 测试 53 passed

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 21:35:49 +08:00
alan.cl
d554c6c4b9 fix(web): repair merge conflicts in chat input area + clean up ManusLeftPanel
- index.tsx: 修复合并导致的 JSX 结构错乱(重复的 Voice/Send 按钮、孤儿块、
  错位的 )}),恢复单一聊天输入区工具栏,融合 main 的 ContextUsageBar/taskPlan
  与本分支的 connector 选择器
- ManusLeftPanel.tsx: 清理未使用变量(hasObservations/hasContent/contentExpanded/
  未用的 t),给保留接口的 onShare/setDownloading 加 _ 前缀,修复 getTodoStep*
  的 TFunction 类型断言,prettier 格式化 import
- en/chat.ts: use_connector 文案统一为 'Select MCP'
- tongyi.toml: 新增 agent_context 上下文窗口预算配置
- scheduled_task/serve.py: 增加 DBGPT_CHAT_TASK_SCHEDULER_ENABLED 开关与内存 jobstore

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 20:12:44 +08:00
alan.cl
e58777768d Merge branch 'main' into feat/ai_connector
# Conflicts:
#	assets/schema/dbgpt.sql
#	assets/schema/upgrade/v0_8_1/upgrade_to_v0.8.1.sql
#	packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/agentic_data_api.py
#	web/locales/en/chat.ts
#	web/locales/zh/chat.ts
#	web/new-components/chat/content/ManusLeftPanel.tsx
#	web/pages/index.tsx
2026-06-04 16:02:22 +08:00
alan.cl
3cf8cbaddc docs(application): add MCP connectors & scheduled tasks guides + i18n
- Add EN/ZH docs for MCP Connectors and Scheduled Tasks under Application
- Wire two new sidebar groups (above App Guides), collapse existing groups
- Add zh-CN sidebar label translations in current.json
- Bundle product screenshots (mcp/, schedule/) for both locales
- Frontend i18n: extract hardcoded Chinese in connector/scheduled-task UI
  and home composer pickers into en/zh locale keys

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 19:33:37 +08:00
alan.cl
910d928917 fix(i18n): 保存为定时任务按钮支持国际化 2026-06-03 17:58:49 +08:00
Octopus
82408793f5 feat: upgrade MiniMax default model to M3 (#3093) 2026-06-03 17:42:55 +08:00
alan.cl
e2fee36b13 feat(scheduled-task): add cron-based chat replay scheduled tasks
后端:新增独立 scheduled_task serve 模块(API/DAO/models/service/
chat_replay_runner)与 util/scheduler 单例调度器,并在 serve_initialization
注册 ScheduledTaskServe;将原 connector 下的 scheduled_task 旧实现迁移至此。

前端:新增定时任务列表/详情页、保存与编辑抽屉、CronInput、执行历史表
及 use-scheduled-task hook 与类型定义。

修复:主页保存定时任务时,buildSnapshot 改为复用发送瞬间的真实 payload,
使快照忠实携带 file_path / database_name / knowledge_space 等执行上下文;
详情页"任务环境"展示数据库 / 文件 / 知识库,并优先显示技能名。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 21:22:30 +08:00
alan.cl
dae085b6df fix ui 2026-05-31 12:06:54 +08:00
alan.cl
ad7b21c4c5 feat(connector): support mcp streamablehttp protocol 2026-05-30 15:54:25 +08:00
alan.cl
0868c23988 fix(connector): route order + frontend list URL trailing slash
Two backend integration bugs surfaced when /construct/connectors loaded:

1. GET /pending-confirms returned {Connector 'pending-confirms' not found}
   because the route was defined AFTER GET /{connector_id}, so FastAPI
   matched the catch-all first and treated 'pending-confirms' as a
   connector_id. HITL polling never reached the queue endpoint.

   Move /pending-confirms, /confirm, and ConfirmRequest BEFORE the
   /{connector_id} routes so FastAPI matches the fixed paths first.

2. GET /api/v2/serve/connectors (no trailing slash) hit DB-GPT's static
   Next-export fallback (404 HTML), because FastAPI registers the list
   route as GET / under api_prefix and the auto-redirect was intercepted.
   Frontend useConnectors() used the bare base URL.

   Add API_BASE_LIST = `${API_BASE}/` constant and use it for the list
   (GET /) and create (POST /) calls. Single-resource calls keep the
   bare base + "/{id}" form.
2026-05-27 11:31:47 +08:00
alan.cl
9041733342 fix(connector): wire frontend through ctx-axios + add sidebar entry + normalize field names
Pre-existing integration gaps surfaced when running the dev server:

1. use-connector-api.ts used bare fetch() instead of ctx-axios, so all
   /api/v2/serve/connectors/* requests hit the Next.js dev server (3000)
   instead of the backend (5670) and returned the Next 404 HTML page.
   Migrate every helper to axios via @/utils/ctx-axios.

2. useConfirmPolling.ts had the same bare-fetch problem; HITL confirm
   polling and resolve calls would never reach the backend.

3. Backend ConnectorResponse exposes connector_id while the frontend
   ConnectorInstance type uses id, leaving every c.id undefined. Add a
   normalizeConnector boundary in use-connector-api.ts so the rest of
   the frontend can keep using id.

4. /construct/connectors had no entry in the side-bar settings menu —
   users had to type the URL by hand. Add an "ApiOutlined / 连接器管理"
   item next to prompts in the management group.

5. Add the new `connectors` translation key to zh/en common.ts so the
   sidebar label resolves and TS strict-key check passes.
2026-05-27 10:51:32 +08:00
alan.cl
6add267298 feat(connector): support user-defined custom MCP servers (custom_mcp)
- Manager: branch on connector_type == 'custom_mcp', build pack from
  extra_config (server_uri + auth_type) instead of catalog. Add
  connector_id parameter for restore-from-DB id preservation.
- Service: pass extra_config and connector_id through to manager on both
  create and after_start rehydration paths. Rehydration now reads
  config_json so custom_mcp connectors survive restart.
- Frontend: align catalog type to backend (auth_fields), add select +
  default support, conditional token/header_name fields driven by
  auth_type, and submit a config payload alongside credentials for
  custom_mcp.
- Confirmation: custom_mcp tools are NOT in any catalog.confirm_actions,
  so the existing ConfirmationInterceptor naturally returns False --
  custom_mcp writes execute without confirmation (intentional MVP scope).
2026-05-26 13:56:09 +08:00
alan.cl
6eb5f1b961 feat(connector): wire HITL ConfirmDialog into chat composer
- useConfirmPolling activated when a connector is attached and Agent is streaming
- Render ConfirmDialog at bottom of Playground; backend pending-confirms now
  reach the user as a bottom-right modal
- 300s backend timeout matches dialog countdown — auto-deny on lapse
2026-05-26 13:47:39 +08:00
alan.cl
5da697034f feat(connector): multi-select connectors in chat composer
- Replace single selectedConnector with selectedConnectors array
- Send ext_info.connector_ids (array) to backend (Task C contract)
- Render one tag per selected connector with individual onClose
- Popover stays open after pick; click toggles membership
- Badge shows count; tooltip shows comma-joined names
- ChatMessage.attachedConnectors[] for replay
2026-05-26 13:43:32 +08:00
Aries-ckt
9470ea03ff feat(agent):adds context management, task-plan tracking, and the corresponding frontend UI. (#3053) 2026-05-18 11:17:04 +08:00
alan.cl
0c22d4780d feat: dbgpt support connector 2026-05-13 10:01:24 +08:00
yanzhicong
b4b0a53d1b feat: add openGauss datasource support (#3007) 2026-04-03 17:18:54 +08:00
alanchen
eb5920bcb8 fix: fix web api prcess url & optmize doc image load performence (#3003) 2026-03-26 19:08:29 +08:00
Octopus
91048cae6f feat: upgrade MiniMax default model to M2.7 (#2993) 2026-03-19 23:45:14 +08:00
Aries-ckt
ef83851b31 🎉 DB-GPT V0.8.0 - Beta Testing (#2988)
Co-authored-by: lusain <lusain1990@gmail.com>
Co-authored-by: alan.cl <1165243776@qq.com>
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-16 11:55:42 +08:00
lusain
8c3489375a feat: Introduce Neo4j integration. (#2951)
Co-authored-by: aries_ckt <916701291@qq.com>
2026-01-12 11:02:15 +08:00
alan.cl
b089268f1c Merge branch 'main' into feat_benchmark_agent 2026-01-06 11:31:25 +08:00
坐山客
a5c7296ea0 Fix:#2859 (#2944) 2026-01-05 20:18:47 +08:00
alan.cl
6747efbd9b feat(benchmark): support benchmark task execute diff environment evaluation datasets 2025-12-24 18:02:57 +08:00
alanchen
19c2cee175 feat(benchmark): support agent api execute benchmark dataset (#2945)
Co-authored-by: alan.cl <alan.cl@antgroup.com>
2025-12-10 10:54:36 +08:00
alan.cl
50441cc0c2 feat(benchmark): support agent execute benchmark dataset 2025-12-05 19:53:36 +08:00
alanchen
368f42227e feat(benchmark): Support Falcon Text2SQL Datasets LLM benchmark (#2918)
Co-authored-by: yaoyifan-yyf <yaoyifan.yyf@antgroup.com>
Co-authored-by: alan.cl <alan.cl@antgroup.com>
Co-authored-by: iterminatorheart <123625928+iterminatorheart@users.noreply.github.com>
Co-authored-by: VLADIMIR KOBZEV <vladimir.kobzev@improvado.io>
Co-authored-by: Aries-ckt <916701291@qq.com>
Co-authored-by: xiandu.wl <xiandu.wl@antgroup.com>
2025-10-23 14:26:36 +08:00
alanchen
26bb07f9d1 fix(web): escape document separator (#2870) 2025-08-01 17:47:29 +08:00
alanchen
bcb4eb3983 feat(RAG): support knowledgeSpace custom retrieve strategy (#2842) 2025-07-21 12:08:39 +08:00
Eric Wang
db2e94348f fix(prompt): resolve KeyError and validation issues with custom prompt templates (#2848) 2025-07-17 16:10:19 +08:00
Fangyin Cheng
06de6ea08d fix(core): Fix newline escape issue (#2854) 2025-07-16 19:49:34 +08:00
Eric Wang
3917f8c353 fix(web): resolve overlapping floating buttons in web (#2836) 2025-07-13 16:59:50 +08:00
Tam
0ecfeabd8e feat(datasouce): Add GaussDB data source connector (#2813)
Co-authored-by: tanwei <tanwei@fulan.com.cn>
2025-07-09 22:50:22 +08:00
Eric Wang
3f60470388 fix(web): Fix auto-scroll issue in chat (#2797) 2025-07-09 19:08:09 +08:00
Eric Wang
e797808efd fix(web): prompt selection and prompt_code delivery for chat_dashboard (#2790) 2025-06-25 22:07:25 +08:00
alanchen
2ed145c3aa fix(web): optimize chat message auto scroll (#2792) 2025-06-25 01:22:10 +08:00
alanchen
d5b8ab2e03 fix(web): fix checkBox for singleAgent mode (#2785) 2025-06-23 14:43:06 +08:00
Eric Wong
e04b0f9c19 feat(web): Enhance dashboard visualization and table-chart formatting (#2731) 2025-05-28 17:36:21 +08:00
WangzJi
637df4ef56 feat(web): ChartDashboard pie chart interaction and display #2708 2025-05-21 00:21:33 +08:00
alanchen
6a82d9122b feat(web): chat message auto scroll (#2682) 2025-05-15 15:53:51 +08:00
cumbersun
105a5ada49 fix: issue 2685 (#2686)
Co-authored-by: cumbermiao <cumbermiao@163.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-15 15:53:12 +08:00
Fangyin Cheng
5e7f3568d3 feat(model): Multimodal supports (#2627) 2025-04-15 16:29:02 +08:00
yyhhyy
0b6633703d fix(web): Fix resource binding bug (#2572) 2025-04-02 20:19:44 +08:00
yyhhyy
9fce5cec3d fix(web): Prevent dragging node when selecting text in parameter input fields (#2560) 2025-03-31 19:55:16 +08:00
Fangyin Cheng
99ce1ed992 feat(web): Support html/svg preview (#2518) 2025-03-25 11:41:18 +08:00
明天
73052eda75 feat(agent): Supports MCP (#2497)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
2025-03-21 12:00:21 +08:00
Fangyin Cheng
4489f74e8d feat(model): Support model icon 2025-03-19 11:51:50 +08:00
Fangyin Cheng
8eba2a3b2e feat(web): Support math Latex 2025-03-17 15:38:31 +08:00
Fangyin Cheng
8ccd4090b9 feat(awel): Support simple templates 2025-03-14 10:44:50 +08:00
Fangyin Cheng
93eb3a786c feat(ChatExcel): Better Chat Excel (#2423) 2025-03-10 11:37:32 +08:00