Commit Graph

432 Commits

Author SHA1 Message Date
Harry b835fddf34 feat: update _browse_files method to return OnlineDriveBrowseFilesResponse 2025-07-02 13:30:16 +08:00
Harry ab07c664d9 feat: rename online driver to online drive and update related classes and methods :) 2025-06-27 20:13:00 +08:00
Harry 7b06a2ac23 feat: add online driver datasource 2025-06-27 16:33:44 +08:00
Harry 758af03409 fix: datasource oauth schema 2025-06-26 16:14:49 +08:00
Harry 856dffeda8 feat: update OAuth methods to include redirect_uri parameter 2025-06-26 14:38:28 +08:00
Harry 666663683d update: github oauth example 2025-06-26 13:16:07 +08:00
Harry b1e745603d feat: Plugin OAuth 2025-06-23 14:25:17 +08:00
Dongyu Li 679e645638 feat: update notion datasource example 2025-06-20 10:49:09 +08:00
Dongyu Li 4c00e1e753 feat: update OnlineDocumentPage and bump version to 0.4.0b8 2025-06-19 09:49:03 +08:00
Dongyu Li 1830ab4aa2 feat: update OnlineDocumentPage and bump version to 0.4.0b7 2025-06-18 15:55:53 +08:00
Dongyu Li cb5206f917 feat: add notion datasource example 2025-06-18 13:43:58 +08:00
Dongyu Li b18e8e2e14 feat: bump version to 0.4.0b6 2025-06-17 14:32:12 +08:00
Harry 29fd8a6311 feat: datasource 2025-06-13 10:20:10 +08:00
Harry cc31f2848c feat: datasource 2025-06-12 22:57:38 +08:00
Harry 63a8a5da25 feat: datasource 2025-06-12 18:59:21 +08:00
Harry 4f25923fc6 feat: streaming datasource 2025-06-12 18:29:40 +08:00
Dongyu Li 989edf9653 feat: website crawl response add default value 2025-06-12 17:59:21 +08:00
Dongyu Li 826a6dbf9e feat: update website crawl response and update version to 0.4.0b5 2025-06-12 17:36:29 +08:00
Dongyu Li 6a42ed894b feat: update website crawl response and update version to 0.4.0b6 2025-06-12 16:18:37 +08:00
Dongyu Li d0460c2443 feat: update website crawl response and update version to 0.4.0b6 2025-06-12 16:18:20 +08:00
Harry 9d0e038d3a feat: streaming datasource 2025-06-11 18:35:10 +08:00
Dongyu Li 87609ba7f7 feat: update datasource response message and update version to 0.4.0b5 2025-06-11 17:06:36 +08:00
Dongyu Li 4ff33e34b6 feat:update datasource entity and update pyproject.toml to 0.4.0b4 2025-06-09 14:38:39 +08:00
Dongyu Li 41403c4392 feat:update pyproject.toml to 0.4.0b3 2025-06-06 17:26:58 +08:00
Dongyu Li e12eb45e06 feat:update GetWebsiteCrawlResponse entity 2025-06-06 17:15:50 +08:00
Yeuoly 30730d5686 Update pyproject.toml 2025-06-05 17:31:16 +08:00
Dongyu Li edc5d4b666 feat:add datasource router 2025-06-05 10:34:18 +08:00
Yeuoly 398337aad1 chore: bump version to 0.4.0b1 in pyproject.toml 2025-05-30 15:23:39 +08:00
Dongyu Li b7ef900b2f feat:update GetOnlineDocumentPageContentRequest entity 2025-05-27 17:21:20 +08:00
Yeuoly 3256fa242a update requirements 2025-05-26 18:15:37 +08:00
Yeuoly 90baa05be6 apply ruff 2025-05-26 18:14:02 +08:00
Yeuoly 0c90ad0f86 feat: impl datasource oauth 2025-05-26 17:44:12 +08:00
Yeuoly 1b410adfc3 refactor: update Notion datasource configuration and provider
- Removed the `provider` field from `DatasourceIdentity` in the manifest.
- Added identity and description fields to `notion.yaml` for better clarity.
- Enhanced `notion.py` with OAuth methods for authorization and credential handling.
- Updated `notion.yaml` to include icon and provider type information.
2025-05-26 15:40:24 +08:00
Yeuoly 4d9732c6fa apply ruff 2025-05-23 20:06:35 +08:00
Yeuoly 896454b9ab add examples 2025-05-23 20:04:43 +08:00
Yeuoly 8f028d2832 feat: add datasource declaration handling in plugin initialization
- Implemented logic to write a datasource declaration message when a datasource configuration is present during plugin initialization.
- Introduced a new message type, `DATASOURCE_DECLARATION`, in the `InitializeMessage` class to support this functionality.
2025-05-23 19:17:15 +08:00
Yeuoly c6c4bdc69c fix: improve description formatting for datasource manifest paths
- Updated the description of the `datasources` field in `PluginConfiguration` to enhance clarity and readability by splitting the text into two lines.
2025-05-23 19:06:45 +08:00
Yeuoly 0922b15e54 feat: implement datasource actions and validation methods
- Added new request models for datasource actions including validation, website crawling, and content retrieval.
- Enhanced `PluginExecutor` with methods to validate datasource credentials, crawl websites, and retrieve pages and content.
- Updated `PluginRegistration` to include methods for fetching datasource provider classes and handling website and online document datasources.
- Refined the `DatasourceProvider` interface to use `Mapping` for credentials, improving type safety.
2025-05-23 19:06:18 +08:00
Yeuoly d72b26ed76 feat: implement datasource provider mapping and actions
- Introduced `DatasourceProviderMapping` class to manage datasource provider configurations and mappings.
- Enhanced `PluginRegistration` to include datasource configuration and mapping logic.
- Added new `DatasourceActions` enum for handling datasource-related actions.
- Updated `PluginConfiguration` to include a list of datasource manifest paths, improving plugin extensibility.
2025-05-23 18:52:18 +08:00
Yeuoly 040d8d5ddd feat: enhance datasource provider model with validation and documentation
- Added validation for the `datasources` field in `DatasourceProviderManifest` to ensure it is a list of strings representing datasource paths.
- Introduced YAML loading for datasource configurations, improving the handling of datasource entities.
- Enhanced documentation annotations for `DatasourceProviderType`, `DatasourceParameter`, and `DatasourceIdentity` classes to clarify their purpose and usage.
2025-05-23 18:39:43 +08:00
Yeuoly 94d28ca13c feat: extend datasource and provider models with additional fields
- Added `DatasourceEntityExtra` and `DatasourceProviderConfigurationExtra` classes to encapsulate extra information for datasource and provider entities.
- Updated `DatasourceEntity` and `DatasourceProviderManifest` to include new `extra` fields, enhancing the data structure and documentation.
- Introduced documentation annotations for improved clarity on the purpose of new classes and fields.
2025-05-23 18:36:05 +08:00
Yeuoly da0b4ddd5d apply ruff 2025-05-23 18:31:24 +08:00
Yeuoly cae56704be feat: enhance entity models with new datasource and parameter options
- Introduced `DatasourceProviderType`, `DatasourceParameter`, and related classes to support new datasource functionalities.
- Added `ParameterOption`, `ParameterAutoGenerate`, and `ParameterTemplate` classes for improved parameter handling.
- Updated existing models to utilize the new parameter classes, enhancing type safety and documentation.
2025-05-23 18:30:41 +08:00
Yeuoly 0b496fb3ff feat: add tests 2025-05-23 18:22:21 +08:00
Yeuoly 8f5e27732c feat: add online document and website crawl datasource interfaces
- Introduced `OnlineDocumentDatasource` and `WebsiteCrawlDatasource` abstract classes for handling online document and website crawl functionalities.
- Added corresponding methods for retrieving pages and content, enhancing the datasource capabilities.
- Created new models for online document and website information to support the new interfaces.
2025-05-23 18:17:04 +08:00
Yeuoly 8af6e7d5e1 tests 2025-05-19 22:27:51 +08:00
Yeuoly 07cca4dc85 feat: datasource 2025-05-19 22:26:06 +08:00
Yeuoly 6d77e16b7d chore: update dependencies and remove pydub from main requirements (#135)
- Removed `pydub` from the main dependencies in `pyproject.toml`.
- Added `pydub` back to the `requirements.txt` for the OpenAI example.
2025-05-19 22:19:49 +08:00
Yeuoly 6d5d601804 feat[0.4.0](oauth): implement OAuth authorization URL and credentials retrieval (#116)
* feat(oauth): implement OAuth authorization URL and credentials retrieval

- Added OAuthGetAuthorizationUrlRequest and OAuthGetCredentialsRequest models for handling OAuth requests.
- Introduced methods in PluginExecutor for generating OAuth authorization URLs and retrieving OAuth credentials.
- Updated ToolProvider interface to include OAuth methods for authorization URL and credentials handling.
- Refactored PluginInvokeType and related action enums to support OAuth actions.
2025-05-19 22:13:53 +08:00
Yeuoly a4bad2b274 Bump to 0.3.0 (#146) 2025-05-19 15:00:25 +08:00