[PR #295] [MERGED] feat(datasource): Implement datasource validation and invocation steps #429

Closed
opened 2026-02-16 01:15:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/295
Author: @Yeuoly
Created: 5/21/2025
Status: Merged
Merged: 9/16/2025
Merged by: @Mairuis

Base: mainHead: feat/datasource


📝 Commits (10+)

  • 08dfeaa feat(datasource): Implement datasource validation and invocation steps
  • f5f3d64 Merge branch 'main' into feat/datasource
  • af9c534 feat: add routes
  • 2d9da75 Merge branch 'main' into feat/datasource
  • aa60b21 feat(datasource): Add initial datasource models and validation
  • b2ee20d refactor(datasource): Update request and response types for online document content retrieval
  • 693ea6a feat(datasource): Implement datasource installation handling
  • 8c17c76 feat(datasource): Add datasource registration handling in plugin runtime
  • a3c6cdf feat(datasource): Implement datasource listing and retrieval endpoints
  • de37389 add datasource routes

📊 Changes

27 files changed (+1339 additions, -243 deletions)

View changed files

📝 internal/core/plugin_daemon/access_types/access.go (+41 -27)
internal/core/plugin_daemon/datasource.gen.go (+88 -0)
📝 internal/core/plugin_manager/debugging_runtime/hooks.go (+20 -1)
📝 internal/core/plugin_manager/debugging_runtime/type.go (+1 -0)
📝 internal/core/plugin_manager/media_transport/assets.go (+21 -0)
📝 internal/db/init.go (+1 -0)
internal/server/controllers/datasource.gen.go (+89 -0)
internal/server/controllers/datasource.go (+28 -0)
📝 internal/server/controllers/definitions/definitions.go (+67 -0)
📝 internal/server/http_server.gen.go (+6 -0)
📝 internal/server/http_server.go (+2 -0)
internal/service/datasource.gen.go (+116 -0)
internal/service/datasource.go (+3 -0)
📝 internal/service/manage_plugin.go (+88 -0)
📝 internal/types/models/curd/atomic.go (+56 -0)
internal/types/models/datasource.go (+9 -0)
pkg/entities/datasource_entities/datasource.go (+88 -0)
📝 pkg/entities/manifest_entities/tags.go (+3 -1)
📝 pkg/entities/plugin_entities/basic_type.go (+0 -1)
📝 pkg/entities/plugin_entities/datasource_declaration.go (+267 -4)

...and 7 more files

📄 Description

  • Added new functionality for validating datasource credentials and invoking the first and second steps of the datasource process.
  • Introduced new API endpoints for datasource operations in the HTTP server.
  • Created corresponding service and controller methods to handle datasource requests.
  • Defined new request and response structures for datasource operations in the entities package.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/295 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/21/2025 **Status:** ✅ Merged **Merged:** 9/16/2025 **Merged by:** [@Mairuis](https://github.com/Mairuis) **Base:** `main` ← **Head:** `feat/datasource` --- ### 📝 Commits (10+) - [`08dfeaa`](https://github.com/langgenius/dify-plugin-daemon/commit/08dfeaa869b4d900743ad782b8a680dd8cdb5d91) feat(datasource): Implement datasource validation and invocation steps - [`f5f3d64`](https://github.com/langgenius/dify-plugin-daemon/commit/f5f3d648c044468f855612763bc4dcb55c298f4f) Merge branch 'main' into feat/datasource - [`af9c534`](https://github.com/langgenius/dify-plugin-daemon/commit/af9c5341c862b493973983247b1801c4330b7de4) feat: add routes - [`2d9da75`](https://github.com/langgenius/dify-plugin-daemon/commit/2d9da75203369abac9d5daf29c40377e865b6039) Merge branch 'main' into feat/datasource - [`aa60b21`](https://github.com/langgenius/dify-plugin-daemon/commit/aa60b2150489bc8491df7a494807f0dda24ff5df) feat(datasource): Add initial datasource models and validation - [`b2ee20d`](https://github.com/langgenius/dify-plugin-daemon/commit/b2ee20d496efd9f7253bc261cf9d7b0cbbcfbfa0) refactor(datasource): Update request and response types for online document content retrieval - [`693ea6a`](https://github.com/langgenius/dify-plugin-daemon/commit/693ea6a942d56fcf353a008c6a8e2e4eb4b9da70) feat(datasource): Implement datasource installation handling - [`8c17c76`](https://github.com/langgenius/dify-plugin-daemon/commit/8c17c76b6a57dd77813541f652184417c19871d1) feat(datasource): Add datasource registration handling in plugin runtime - [`a3c6cdf`](https://github.com/langgenius/dify-plugin-daemon/commit/a3c6cdff28680d8fe6dfe5879b6acd1ce1defb1a) feat(datasource): Implement datasource listing and retrieval endpoints - [`de37389`](https://github.com/langgenius/dify-plugin-daemon/commit/de373899ab9d96086b4fb20a3ed1d6a5753d562c) add datasource routes ### 📊 Changes **27 files changed** (+1339 additions, -243 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_daemon/access_types/access.go` (+41 -27) ➕ `internal/core/plugin_daemon/datasource.gen.go` (+88 -0) 📝 `internal/core/plugin_manager/debugging_runtime/hooks.go` (+20 -1) 📝 `internal/core/plugin_manager/debugging_runtime/type.go` (+1 -0) 📝 `internal/core/plugin_manager/media_transport/assets.go` (+21 -0) 📝 `internal/db/init.go` (+1 -0) ➕ `internal/server/controllers/datasource.gen.go` (+89 -0) ➕ `internal/server/controllers/datasource.go` (+28 -0) 📝 `internal/server/controllers/definitions/definitions.go` (+67 -0) 📝 `internal/server/http_server.gen.go` (+6 -0) 📝 `internal/server/http_server.go` (+2 -0) ➕ `internal/service/datasource.gen.go` (+116 -0) ➕ `internal/service/datasource.go` (+3 -0) 📝 `internal/service/manage_plugin.go` (+88 -0) 📝 `internal/types/models/curd/atomic.go` (+56 -0) ➕ `internal/types/models/datasource.go` (+9 -0) ➕ `pkg/entities/datasource_entities/datasource.go` (+88 -0) 📝 `pkg/entities/manifest_entities/tags.go` (+3 -1) 📝 `pkg/entities/plugin_entities/basic_type.go` (+0 -1) 📝 `pkg/entities/plugin_entities/datasource_declaration.go` (+267 -4) _...and 7 more files_ </details> ### 📄 Description - Added new functionality for validating datasource credentials and invoking the first and second steps of the datasource process. - Introduced new API endpoints for datasource operations in the HTTP server. - Created corresponding service and controller methods to handle datasource requests. - Defined new request and response structures for datasource operations in the entities package. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:56 -05:00
yindo closed this issue 2026-02-16 01:15:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#429