feat: 插件图标规范化——manifest/胶囊 icon 统一 lucide 图标名(白名单 101 个),未知名回落拼图图标;内联 svg 仅旧兼容

This commit is contained in:
Rick Ye
2026-09-11 11:11:40 +08:00
parent 7103675db8
commit 6098cf678a
9 changed files with 263 additions and 16 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export interface PluginManifest {
/** 最低 harness 契约版本(semver),不满足拒载 */
minContract: string
description?: string
/** 侧栏入口图标:svg 字符串;缺省用宿主默认字形 */
/** 侧栏入口图标:lucide 图标名(如 "Globe",白名单见 docs/plugins/DESIGN.md);兼容旧内联 svg 字符串;缺省/未知名回落拼图图标 */
icon?: string
/** 侧栏入口排序(升序,只在插件之间排序;核心入口恒在前) */
order?: number