From 3f0a2a975c29928960cfb7889c21c418ef0ff900 Mon Sep 17 00:00:00 2001 From: Rick Ye Date: Fri, 11 Sep 2026 01:14:44 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=8F=92=E4=BB=B6=E9=A1=B5=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E3=80=8C=E5=95=86=E5=BA=97=E3=80=8D=E6=A6=82=E5=BF=B5?= =?UTF-8?q?=E2=80=94=E2=80=94userData=20=E6=9D=A5=E6=BA=90=E5=B9=B6?= =?UTF-8?q?=E5=85=A5=E5=85=A8=E5=B1=80=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/src/components/SettingsModal.tsx | 14 ++++++-------- apps/desktop/src/shared/types.ts | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/desktop/src/renderer/src/components/SettingsModal.tsx b/apps/desktop/src/renderer/src/components/SettingsModal.tsx index b1e51f5..e227087 100644 --- a/apps/desktop/src/renderer/src/components/SettingsModal.tsx +++ b/apps/desktop/src/renderer/src/components/SettingsModal.tsx @@ -58,7 +58,7 @@ const TAB_META: Record = { corePlugins: { title: '核心插件', desc: '内置的第一方功能插件,官方维护' }, model: { title: '模型设置', desc: '' }, prompt: { title: '系统提示词', desc: '' }, - plugins: { title: '插件', desc: '第三方扩展插件(商店 / 项目 / 全局目录),按需启停。' }, + plugins: { title: '插件', desc: '第三方扩展插件(全局 / 项目目录),按需启停。' }, skills: { title: '技能', desc: 'SKILL.md 技能包,Agent 自动按需加载。' }, commands: { title: '命令', desc: '聊天中 / 触发的自定义命令模板。' } } @@ -713,10 +713,10 @@ function ExternalPluginPanel({ alive = false } }, []) - // 全局作用域 = 商店目录 + 全局扩展目录;项目作用域 = 当前工作区 .pi/extensions + // 全局作用域 = 全局扩展目录(含应用外置目录,统一按全局展示);项目作用域 = 当前工作区 .pi/extensions const scoped = external.filter((p) => (scope === 'project' ? p.origin === 'project' : p.origin !== 'project')) - const scopedDirs = (scope === 'user' ? [...dirs.user, ...dirs.global] : dirs.project).filter(Boolean) - const scopedHints = scope === 'user' ? ['商店', '全局'] : ['项目'] + const scopedDirs = (scope === 'user' ? dirs.global : dirs.project).filter(Boolean) + const scopedHints = scope === 'user' ? ['全局'] : ['项目'] return (
@@ -757,9 +757,7 @@ function ExternalPluginPanel({
{devBuild && (
- 把含 manifest.json 的插件目录放入 - {scope === 'user' ? '商店(userData/plugins)或全局(~/.pi/agent/extensions)' : '项目 .pi/extensions'} - 即可自动识别 + 把含 manifest.json 的插件目录放入全局(~/.pi/agent/extensions)即可自动识别
)} @@ -773,7 +771,7 @@ function ExternalPluginPanel({
{p.manifest.name} - {scope === 'user' ? (p.origin === 'user' ? '商店' : '全局') : '项目'} v{p.manifest.version} + {scope === 'user' ? '全局' : '项目'} v{p.manifest.version} {p.enabled ? '已启用' : '已停用'}