Commit Graph

3313 Commits

Author SHA1 Message Date
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
bfb8ba6a09 fix(connector): register ConnectorServe in register_serve_apps
The connector module had scan_serve_configs() listed it (line 32) so its
config schema was discovered, but register_serve_apps() never called
system_app.register(ConnectorServe, ...). That left the FastAPI router
unmounted, so all /api/v2/serve/connectors/* requests returned 404 and
the /construct/connectors page was non-functional.

Register the Serve component alongside the other 13 serves (file/flow/
rag/...) after Model Serve.
2026-05-27 11:24:34 +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
alan.cl
babd975465 feat(connector): inject only user-selected connectors per request
- Read ext_info.connector_ids (list) at start of _react_agent_stream;
  fall back to legacy ext_info.connector_id (string) for older clients
- Filter pack injection to selected ids via get_connector_tools()
- Empty/missing selection no longer leaks all active connectors into prompt
- Warn (not error) on stale ids so users can recover gracefully
2026-05-26 12:51:55 +08:00
alan.cl
beb9e6244b feat(connector): auto-prefix MCP tool names per connector instance
- compute_tool_prefix: type-based for built-ins, slug-based for custom, slug
  with type-prefix fallback for multi-instance built-ins, id-prefix fallback
- _apply_tool_prefix: rename tools in pack.sub_resources, sync tool_server_map,
  annotate description with "(via {display_name})"
- Wire into create_connector after preload_resource
2026-05-26 11:58:41 +08:00
alan.cl
3875b900ec feat(connector): wire /types endpoint to catalog with custom_mcp option
- Add ConnectorManager.get_catalog() public accessor
- Replace hardcoded /types response with catalog-driven ConnectorTypeOption list
- Append custom_mcp placeholder for future user-defined MCP servers
2026-05-26 11:31:09 +08:00
alan.cl
0c22d4780d feat: dbgpt support connector 2026-05-13 10:01:24 +08:00
alan.cl
0f133f20eb docs: update external connectors design for SSE-only transport, connector-scoped confirmation, and scheduled task auto-confirm 2026-04-09 15:05:33 +08:00
yanzhicong
b4b0a53d1b feat: add openGauss datasource support (#3007) 2026-04-03 17:18:54 +08:00
Honglei
294dfcc30d [Fix] Fix DuckDB datasource creation from Web UI (#3009)
Co-authored-by: honglei <honglei@users.noreply.github.com>
2026-04-02 20:17:01 +08:00
alanchen
a3f21350a9 chore: update 0.8.0 version (#3004) v0.8.0 2026-03-27 12:42:28 +08:00
alanchen
eb5920bcb8 fix: fix web api prcess url & optmize doc image load performence (#3003) 2026-03-26 19:08:29 +08:00
Aries-ckt
07dc04b15d fix(docs): add docsSidebar alias to versioned sidebars patches (#3002)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 14:24:38 +08:00
Aries-ckt
e055429788 docs: add v0.8.0 usage documentation (#2998)
Co-authored-by: alan.cl <1165243776@qq.com>
2026-03-25 21:50:23 +08:00
LXW2019124
1695ae6949 fix(#2995): ignore leading vis-thinking block in react parser (#2996)
Co-authored-by: LXW2019124 <LXW2019124@users.noreply.github.com>
2026-03-23 23:46:22 +08:00
alanchen
295885f021 feat: add dbgpt app start cli (#2997) 2026-03-22 22:42:12 +08:00
Octopus
91048cae6f feat: upgrade MiniMax default model to M2.7 (#2993) 2026-03-19 23:45:14 +08:00
Fangyin Cheng
9def9feb43 chore: update pacakge version (#2992) 2026-03-18 22:08:24 +08:00
Octopus
03e72271f5 feat: add MiniMax provider support (#2989)
Co-authored-by: octo-patch <octo-patch@users.noreply.github.com>
2026-03-16 22:02:57 +08:00
Aries-ckt
aec6673b1a docs: install and readme (#2991) 2026-03-16 15:15:47 +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
Copilot
322792b9d2 Fix v0.7.5 documentation build failure with patch file (#2979)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: chenliang15405 <40684202+chenliang15405@users.noreply.github.com>
2026-02-12 10:40:16 +08:00
alanchen
0b8680ee55 chore: build web file (#2977)
Co-authored-by: alan.cl <alan.cl@antgroup.com>
v0.7.5
2026-02-10 18:51:48 +08:00
alanchen
73fe4b9a51 chore: update 0.7.5 version (#2976)
Co-authored-by: alan.cl <alan.cl@antgroup.com>
2026-02-10 16:31:14 +08:00
alanchen
55bf3bac2d fix: temp handle the agents that need optimization (#2975)
Co-authored-by: alan.cl <alan.cl@antgroup.com>
2026-02-10 13:50:50 +08:00
alanchen
466cc1f391 chore: update docs typo (#2964)
Co-authored-by: alan.cl <alan.cl@antgroup.com>
2026-01-30 17:38:56 +08:00
Yifan Yao
f8836ad4b0 fix: fix boolean and null value result compare (#2967) 2026-01-22 17:48:08 +08:00
huhao0926
a7a7811496 fix(2965): correct the number of arguments in BuiltinKnowledgeGraph.aload_document call (#2966) 2026-01-20 21:18:20 +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
yaoyifan-yyf
3bbbf2061a feat(benchmark): support benchmark task execute diff environment datasets (#2957)
# Description

1. Support real-time evaluation of the latest Falcon GitHub repository
question
2. Support evaluation of dataset question in different environments of
Dev/Test, Dev for debugging and Test for ranking

# How Has This Been Tested?

![20260106151757](https://github.com/user-attachments/assets/84153c91-5141-460e-9a86-b491dc41cd2c)

![20260106151812](https://github.com/user-attachments/assets/6ec2a928-12c6-40de-8608-b17d62870e55)

![20260106151730](https://github.com/user-attachments/assets/4644509f-36ae-4b06-bab0-f3abba2001ca)


# Snapshots:

Include snapshots for easier review.

# Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have already rebased the commits and make the commit message
conform to the project standard.
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] Any dependent changes have been merged and published in downstream
modules
2026-01-08 15:30:10 +08:00
alan.cl
c8d3c46e62 chore: build web static file 2026-01-06 15:15:57 +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
89dbf7e36b chore: code fmt 2025-12-24 18:28:24 +08:00
alan.cl
6747efbd9b feat(benchmark): support benchmark task execute diff environment evaluation datasets 2025-12-24 18:02:57 +08:00
yaoyifan-yyf
7751b07a6f chore: adjust benchmark dataset (#2940) 2025-12-22 19:19:05 +08:00
alan.cl
1491407578 feat(benchmark): update benchmark task use latest falcon github repo questions 2025-12-22 15:03:56 +08:00
zhangyj21-lh
4b52cfa670 fix: enable Elasticsearch full text search support (#2947) 2025-12-18 17:24:20 +08:00
yaoyifan-yyf
bfa1b11cec feat: adjust benchmark data construct approach (#2948) 2025-12-16 19:59:19 +08:00
Hillock
062bc01bc5 fix:Error when configuring data sources via environment variables (env) (#2924)
Co-authored-by: hillock <9986778@qq.com>
2025-12-16 09:36:46 +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
3c7cfba3be chore: code fmt 2025-12-09 11:40:31 +08:00
alan.cl
c9ccdca9bc fix: create benchmark task first 2025-12-08 20:41:25 +08:00
alan.cl
7b228cea3b chore: make code format 2025-12-08 16:46:09 +08:00
alan.cl
087d6ff0b9 Merge branch 'main' into feat_benchmark_agent
# Conflicts:
#	packages/dbgpt-serve/src/dbgpt_serve/evaluate/service/benchmark/benchmark_service.py
2025-12-08 15:59:58 +08:00
alan.cl
50441cc0c2 feat(benchmark): support agent execute benchmark dataset 2025-12-05 19:53:36 +08:00
yaoyifan-yyf
3ba2e9f104 feat: update benchmark github repo data loading time (#2936) 2025-11-30 23:27:28 +08:00