| 83 | |
| 84 | // Command 接口(原 App 接口) |
| 85 | export interface Command { |
| 86 | name: string |
| 87 | path: string // 纯路径(应用路径 或 插件根目录路径) |
| 88 | icon?: string |
| 89 | pinyin?: string |
| 90 | pinyinAbbr?: string |
| 91 | acronym?: string // 英文首字母缩写(用于搜索) |
| 92 | type: CommandType // 指令类型 |
| 93 | subType?: CommandSubType // 子类型(用于区分 direct 类型) |
| 94 | featureCode?: string // 插件功能代码(用于启动时指定功能) |
| 95 | pluginName?: string // 插件名称(仅插件类型有效) |
| 96 | pluginTitle?: string // 插件标题(仅插件类型有效) |
| 97 | pluginExplain?: string // 插件功能说明 |
| 98 | matchCmd?: MatchCmd // 匹配指令配置(regex 或 over 或 img 或 files 或 window) |
| 99 | cmdType?: 'text' | 'regex' | 'over' | 'img' | 'files' | 'window' // cmd类型 |
| 100 | mainPush?: boolean // 是否为 mainPush 功能(搜索时动态查询插件获取结果) |
| 101 | matches?: MatchInfo[] // 搜索匹配信息(用于高亮显示) |
| 102 | matchType?: 'acronym' | 'name' | 'pinyin' | 'pinyinAbbr' // 匹配类型(用于高亮算法选择) |
| 103 | // 系统设置字段(新增) |
| 104 | settingUri?: string // ms-settings URI |
| 105 | category?: string // 分类(用于分组显示) |
| 106 | confirmDialog?: any // 确认对话框配置 |
| 107 | originalName?: string // 原始名称(用于 direct/app 旧版禁用键兼容) |
| 108 | persistedName?: string // 持久化记录里的名称(用于历史/固定在 alias 删除后的删除与取消固定) |
| 109 | } |
| 110 | |
| 111 | interface SearchResultScoreMeta { |
| 112 | result: SearchResult |
nothing calls this directly
no outgoing calls
no test coverage detected