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 ? '已启用' : '已停用'}