@solazah/solazah-runtime 0.1.67 → 0.1.69
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/types/SystemShell.d.ts +13 -0
package/package.json
CHANGED
package/types/SystemShell.d.ts
CHANGED
|
@@ -28,6 +28,19 @@ export default class SystemShell {
|
|
|
28
28
|
command?: string;
|
|
29
29
|
cwd?: string;
|
|
30
30
|
}) => Promise<any>;
|
|
31
|
+
/**
|
|
32
|
+
* 文件管理器与终端的系统原生图标(data URL)。取的是程序本体的图标
|
|
33
|
+
* (explorer.exe / Finder.app / wt.exe),不是目录图标 —— 后者在 Windows 上拿到的是卷标图标。
|
|
34
|
+
* 取不到为 null,调用方自己兜底。
|
|
35
|
+
*
|
|
36
|
+
* `terminalId` 是最终选中的终端(与 {@link listTerminals} 同一套 id)。Windows 终端是 0 字节的
|
|
37
|
+
* AppExecutionAlias,从存根上取不到真图标,调用方要靠它换成自己随包的那张。
|
|
38
|
+
*/
|
|
39
|
+
nativeAppIcons: () => Promise<{
|
|
40
|
+
fileManager: string | null;
|
|
41
|
+
terminal: string | null;
|
|
42
|
+
terminalId: string | null;
|
|
43
|
+
}>;
|
|
31
44
|
listTerminals: () => Promise<Array<{
|
|
32
45
|
id: string;
|
|
33
46
|
label: string;
|