utools-api-types 7.0.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resource/utools.schema.json +11 -4
- package/utools.api.d.ts +15 -6
package/package.json
CHANGED
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
"mainPush": {
|
|
61
61
|
"type": "boolean"
|
|
62
62
|
},
|
|
63
|
+
"mainHide": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "设置为 `true` 时,打开对应的 `feature` 不主动弹出搜索框窗口"
|
|
66
|
+
},
|
|
63
67
|
"cmds": {
|
|
64
68
|
"type": "array",
|
|
65
69
|
"description": "该功能下可响应的命令集,支持 6 种类型,由 cmds 的类型或 cmds.type 决定。",
|
|
@@ -120,13 +124,16 @@
|
|
|
120
124
|
"file",
|
|
121
125
|
"directory"
|
|
122
126
|
]
|
|
127
|
+
},
|
|
128
|
+
"extensions": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"description": "文件扩展名",
|
|
131
|
+
"items": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
}
|
|
125
136
|
}
|
|
126
|
-
},
|
|
127
|
-
"mainHide": {
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"description": "设置为 `true` 时,打开对应的 `feature` 不主动弹出搜索框面板"
|
|
130
137
|
}
|
|
131
138
|
}
|
|
132
139
|
}
|
package/utools.api.d.ts
CHANGED
|
@@ -491,9 +491,18 @@ interface UToolsApi {
|
|
|
491
491
|
getFeatures(codes?: string[]): PluginFeature[];
|
|
492
492
|
/**
|
|
493
493
|
* 插件应用间跳转
|
|
494
|
-
* @todo 创建针对type的多个重载
|
|
495
494
|
*/
|
|
496
495
|
redirect(label: string | string[], payload: string | { type: 'text' | 'img' | 'files', data: any }): boolean;
|
|
496
|
+
/**
|
|
497
|
+
* 跳转(前往) uTools 设置界面,引导用户配置指令全局快捷键
|
|
498
|
+
* @param cmdLabel 指令名称
|
|
499
|
+
* @param autocopy 是否自动复制,默认为 false
|
|
500
|
+
*/
|
|
501
|
+
redirectHotKeySetting(cmdLabel: string, autocopy?: boolean): void;
|
|
502
|
+
/**
|
|
503
|
+
* 跳转(前往) uTools 自定义 AI 模型设置界面,引导用户配置自定义 AI 模型
|
|
504
|
+
*/
|
|
505
|
+
redirectAiModelsSetting(): void;
|
|
497
506
|
/**
|
|
498
507
|
* 获取闲置的 ubrowser
|
|
499
508
|
*/
|
|
@@ -882,6 +891,11 @@ interface UToolsApi {
|
|
|
882
891
|
*/
|
|
883
892
|
runFFmpeg(args: string[], onProgress?: (progress: FfmpegRunProgress) => void): FfmpegPromise;
|
|
884
893
|
|
|
894
|
+
/**
|
|
895
|
+
* 获取所有 AI 模型
|
|
896
|
+
*/
|
|
897
|
+
allAiModels(): Promise<UtoolsAiModel[]>;
|
|
898
|
+
|
|
885
899
|
/**
|
|
886
900
|
* 流式调用 AI
|
|
887
901
|
* @param option 选项参数
|
|
@@ -899,11 +913,6 @@ interface UToolsApi {
|
|
|
899
913
|
* @param option 选项参数
|
|
900
914
|
*/
|
|
901
915
|
ai(option: UtoolsAiOption): UtoolsAiResult<UtoolsAiMessage>
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* 获取所有 AI 模型
|
|
905
|
-
*/
|
|
906
|
-
allAiModels(): Promise<UtoolsAiModel[]>;
|
|
907
916
|
}
|
|
908
917
|
|
|
909
918
|
declare var utools: UToolsApi;
|