Commit Graph

43 Commits

Author SHA1 Message Date
Maries 096b1cce4d Update internal/server/controllers/plugins.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-10-29 13:53:45 +08:00
Stream d617433b18 fix: form param 2025-10-27 02:59:31 +08:00
Stream 20f69c56e9 fix: query param 2025-10-24 20:29:59 +08:00
Stream 2c87f0ac8b Merge branch 'feat/plugin-readme' into feat/trigger
# Conflicts:
#	internal/db/init.go
2025-10-23 11:26:38 +08:00
Yunlu Wen 9e3081bd17 feat: support orphan plugin (#440)
* support orphan plugin in serverless mode

* add validation to UpgradePlugin

* log reinstalls
2025-09-12 20:34:38 +08:00
Stream 5134f3b5d0 feat: add plugin asset extraction endpoint with caching support 2025-08-27 18:54:56 +08:00
Stream 5b5f709e7d feat: implement readme endpoint 2025-08-27 15:57:22 +08:00
Harry d3a5d2cbb8 feat(plugins): add FetchPluginReadme endpoint and update launch configurations 2025-08-22 16:40:17 +08:00
Yeuoly a6c8fae9c7 feat: add decode plugin from identifier endpoint (#349)
* feat: add decode plugin from identifier endpoint

- Introduced a new endpoint to decode a plugin from a unique identifier.
- Implemented the DecodePluginFromIdentifier function to handle decoding and verification of plugin signatures.
- Updated the HTTP server routes to include the new decode endpoint.

* refactor: update decode plugin endpoint path

- Moved the decode plugin from identifier endpoint to a new path for better organization.
- Updated the HTTP server routes accordingly to reflect the new endpoint structure.
2025-06-18 16:01:15 +08:00
Yeuoly d884cab8ae feat: add plugin reinstallation functionality and admin API support (#285)
* feat: add plugin reinstallation functionality and admin API support

- Implemented ReinstallToAWSFromPkg method to allow reinstallation of plugins on AWS Lambda, updating function URL and name.
- Added clearServerlessRuntimeCache method to manage serverless runtime cache.
- Enhanced LaunchPlugin to support an ignoreIdempotent flag for forced reinstallation.
- Introduced admin API endpoints for plugin reinstallation, secured with an API key validation middleware.
- Updated configuration to include AdminApiEnabled and AdminApiKey settings.

* refactor: update plugin reinstallation endpoint and improve unauthorized response

- Changed the plugin reinstallation endpoint from "/plugins/reinstall" to "/plugin/serverless/reinstall" for better clarity.
- Modified the unauthorized response in the AdminAPIKey middleware to return a more descriptive JSON message.
2025-05-15 15:22:25 +08:00
Yeuoly b19140ca23 refactor: optimize plugin declaration caching and encoding (#34) 2025-02-25 20:52:51 +08:00
Yeuoly 15060ee312 refactor: move entities to pkg 2025-01-06 14:52:02 +08:00
Yeuoly f6aa10a9bc fix: multiple plugin installation 2024-12-31 19:04:58 +08:00
Yeuoly dd5325b681 feat: support delete all install tasks 2024-11-25 17:01:25 +08:00
Yeuoly ef1ffa9f6c refactor: change to use generic errors in controllers 2024-11-22 16:44:44 +08:00
Yeuoly b0680f9403 fix: delete plugin item from install task 2024-11-15 15:29:25 +08:00
Yeuoly 9c9a6c26c0 feat: support upload bundle 2024-11-14 22:59:51 +08:00
Yeuoly 44a2de1f62 feat: support upload bundle 2024-11-14 21:23:33 +08:00
Yeuoly 26fd94ebcd refactor: convert snakecase to camelcase 2024-11-12 21:24:41 +08:00
Yeuoly c57b554245 feat: checking missing dependencies 2024-11-12 19:51:28 +08:00
Yeuoly eeadb3e29c refactor: support upgrade plugin to any verions 2024-10-25 17:41:14 +08:00
Yeuoly f339a21001 feat: support remove single item from installation task 2024-10-25 13:19:54 +08:00
Yeuoly a55f6f507f refactor: install plugin from local 2024-10-18 20:29:02 +08:00
Yeuoly 090f1e004d fix: install progress has bad handing logics 2024-10-16 14:36:48 +08:00
Yeuoly fc7bfc91b4 fix: async install plugins task 2024-10-16 14:01:08 +08:00
Yeuoly 3de55a81ce refactor: installing plugin 2024-10-14 21:07:56 +08:00
Yeuoly a74a1a4801 refactor: plugin installation changed to sync tasks 2024-10-14 18:11:22 +08:00
Yeuoly 9055ccf69d feat: support install source 2024-10-10 15:01:14 +08:00
Yeuoly a12518dd7f feat: support verify signature 2024-10-09 23:11:23 +08:00
Yeuoly f66f763392 fix: missing model parameter rules default template transformers in default plugin decoder 2024-10-08 22:33:11 +08:00
Yeuoly 69072bd8d5 feat: support force verifying sig 2024-10-08 21:28:22 +08:00
Yeuoly 37a5b12c86 feat: support fetch tool entity 2024-09-29 17:09:09 +08:00
Yeuoly d0bc14a515 feat: installation lifetime 2024-09-20 21:52:35 +08:00
Yeuoly e7172076f9 fix: controller validates 2024-09-19 17:25:35 +08:00
Yeuoly e7b57878d2 refactor: uri 2024-09-18 13:01:28 +08:00
Yeuoly 91fd7c3e7f feat: plugin managment 2024-09-14 18:39:02 +08:00
Yeuoly 026c76ba1d refactor: plugin identifier 2024-09-14 17:23:06 +08:00
Yeuoly b52cbe0815 refactor 2024-09-14 16:48:11 +08:00
Yeuoly 1df861f9fc refactor: checksum 2024-09-11 14:46:16 +08:00
Yeuoly cda65741b1 feat: install 2024-09-10 18:26:22 +08:00
Yeuoly 50b7c6d138 feat: plugin install 2024-09-09 12:07:11 +08:00
Yeuoly 1c2d5e6bca feat: support plugin assets 2024-09-04 20:35:56 +08:00
Yeuoly dc402cd948 refactor: plugin id/identity and plugin installation 2024-09-03 22:38:19 +08:00