feat: delete version for mcp and skills

This commit is contained in:
WangCham
2026-05-12 11:28:43 +08:00
parent 3db2ddd2c7
commit 3f7031b6f0
11 changed files with 26 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ class KnowledgeBaseRouterGroup(group.RouterGroup):
@self.route(
'/<knowledge_base_uuid>',
methods=['GET', 'DELETE', 'PUT'],
auth_type=group.AuthType.USER_TOKEN_OR_API_KEY,
auth_type=group.AuthType. USER_TOKEN_OR_API_KEY,
)
async def handle_specific_knowledge_base(knowledge_base_uuid: str) -> quart.Response:
if quart.request.method == 'GET':

View File

@@ -938,10 +938,14 @@ function AddExtensionContent() {
{pluginInstallStatus === PluginInstallStatus.ASK_CONFIRM && (
<div className="mt-4">
<p className="mb-2">
{t('plugins.askConfirm', {
name: installInfo.plugin_name,
version: installInfo.plugin_version,
})}
{installInfo.plugin_version
? t('plugins.askConfirm', {
name: installInfo.plugin_name,
version: installInfo.plugin_version,
})
: t('plugins.askConfirmNoVersion', {
name: installInfo.plugin_name,
})}
</p>
</div>
)}

View File

@@ -158,10 +158,14 @@ function MarketplaceContent() {
{pluginInstallStatus === PluginInstallStatus.ASK_CONFIRM && (
<div className="mt-4">
<p className="mb-2">
{t('plugins.askConfirm', {
name: installInfo.plugin_name,
version: installInfo.plugin_version,
})}
{installInfo.plugin_version
? t('plugins.askConfirm', {
name: installInfo.plugin_name,
version: installInfo.plugin_version,
})
: t('plugins.askConfirmNoVersion', {
name: installInfo.plugin_name,
})}
</p>
</div>
)}

View File

@@ -527,6 +527,7 @@ const enUS = {
uploadFailed: 'Upload failed',
selectFileToUpload: 'Select plugin file to upload',
askConfirm: 'Are you sure to install plugin "{{name}}" ({{version}})?',
askConfirmNoVersion: 'Are you sure to install plugin "{{name}}"?',
fromGithub: 'From GitHub',
fromLocal: 'From Local',
fromMarketplace: 'From Marketplace',

View File

@@ -539,6 +539,7 @@ const esES = {
uploadFailed: 'Error en la subida',
selectFileToUpload: 'Selecciona el archivo del plugin para subir',
askConfirm: '¿Estás seguro de instalar el plugin "{{name}}" ({{version}})?',
askConfirmNoVersion: '¿Estás seguro de instalar el plugin "{{name}}"?',
fromGithub: 'Desde GitHub',
fromLocal: 'Desde local',
fromMarketplace: 'Desde la tienda',

View File

@@ -530,6 +530,7 @@ const jaJP = {
uploadFailed: 'アップロード失敗',
selectFileToUpload: 'アップロードするプラグインファイルを選択',
askConfirm: 'プラグイン "{{name}}" ({{version}}) をインストールしますか?',
askConfirmNoVersion: 'プラグイン "{{name}}" をインストールしますか?',
fromGithub: 'GitHubから',
fromLocal: 'ローカルから',
fromMarketplace: 'プラグインマーケットから',

View File

@@ -536,6 +536,8 @@ const ruRU = {
selectFileToUpload: 'Выберите файл плагина для загрузки',
askConfirm:
'Вы уверены, что хотите установить плагин "{{name}}" ({{version}})?',
askConfirmNoVersion:
'Вы уверены, что хотите установить плагин "{{name}}"?',
fromGithub: 'С GitHub',
fromLocal: 'Из локального файла',
fromMarketplace: 'Из маркетплейса',

View File

@@ -519,6 +519,7 @@ const thTH = {
uploadFailed: 'อัปโหลดล้มเหลว',
selectFileToUpload: 'เลือกไฟล์ปลั๊กอินเพื่ออัปโหลด',
askConfirm: 'คุณแน่ใจหรือไม่ที่จะติดตั้งปลั๊กอิน "{{name}}" ({{version}})?',
askConfirmNoVersion: 'คุณแน่ใจหรือไม่ที่จะติดตั้งปลั๊กอิน "{{name}}"?',
fromGithub: 'จาก GitHub',
fromLocal: 'จากเครื่อง',
fromMarketplace: 'จากตลาดปลั๊กอิน',

View File

@@ -532,6 +532,7 @@ const viVN = {
selectFileToUpload: 'Chọn tệp plugin để tải lên',
askConfirm:
'Bạn có chắc chắn muốn cài đặt plugin "{{name}}" ({{version}}) không?',
askConfirmNoVersion: 'Bạn có chắc chắn muốn cài đặt plugin "{{name}}" không?',
fromGithub: 'Từ GitHub',
fromLocal: 'Từ cục bộ',
fromMarketplace: 'Từ chợ ứng dụng',

View File

@@ -503,6 +503,7 @@ const zhHans = {
uploadFailed: '上传失败',
selectFileToUpload: '选择要上传的插件文件',
askConfirm: '确定要安装插件 "{{name}}" ({{version}}) 吗?',
askConfirmNoVersion: '确定要安装插件 "{{name}}" 吗?',
fromGithub: '来自 GitHub',
fromLocal: '本地安装',
fromMarketplace: '来自市场',

View File

@@ -503,6 +503,7 @@ const zhHant = {
uploadFailed: '上傳失敗',
selectFileToUpload: '選擇要上傳的插件文件',
askConfirm: '確定要安裝插件 "{{name}}" ({{version}}) 嗎?',
askConfirmNoVersion: '確定要安裝插件 "{{name}}" 嗎?',
fromGithub: '來自 GitHub',
fromLocal: '本地安裝',
fromMarketplace: '來自市場',