@arkts/image-manager 0.4.2 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arkts/image-manager",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.5.0",
5
5
  "description": "OpenHarmony/HarmonyOS qemu image manager.",
6
6
  "author": "Naily Zero <zero@naily.cc> (https://naily.cc)",
7
7
  "license": "MIT",
@@ -61,11 +61,15 @@
61
61
  "@types/progress-stream": "^2.0.5",
62
62
  "@types/unzipper": "^0.10.11",
63
63
  "axios": "^1.13.4",
64
+ "base64-js": "^1.5.1",
65
+ "chokidar": "^5.0.0",
64
66
  "ini": "^6.0.0",
65
67
  "mitt": "^3.0.1",
66
68
  "progress-stream": "^2.0.0",
67
69
  "semver": "^7.7.4",
68
- "unzipper": "^0.12.3"
70
+ "unzipper": "^0.12.3",
71
+ "vscode-fs": "^0.1.0",
72
+ "vscode-uri": "^3.1.0"
69
73
  },
70
74
  "devDependencies": {
71
75
  "@antfu/eslint-config": "^7.2.0",
@@ -76,6 +80,7 @@
76
80
  "@vitest/coverage-v8": "4.0.18",
77
81
  "@vitest/ui": "4.0.18",
78
82
  "eslint": "^9.39.2",
83
+ "naily-eslint-config": "^0.0.2",
79
84
  "pnpm": "^10.28.2",
80
85
  "tsdown": "^0.20.2",
81
86
  "typescript": "^5.9.3",
@@ -1,64 +0,0 @@
1
- import { c as SnakecaseDeviceType, i as PCAllSnakecaseDeviceType, s as PhoneAllSnakecaseDeviceType } from "./types-DD8_iqBV.mjs";
2
-
3
- //#region src/emulator-config.d.ts
4
- interface BaseEmulatorConfigItem {
5
- name: string;
6
- api: number;
7
- }
8
- declare namespace BaseEmulatorConfigItem {
9
- function is(value: unknown): value is BaseEmulatorConfigItem;
10
- }
11
- interface ParentEmulatorConfigItem extends BaseEmulatorConfigItem {
12
- deviceType: SnakecaseDeviceType;
13
- resolutionWidth: number;
14
- resolutionHeight: number;
15
- physicalWidth: number;
16
- physicalHeight: number;
17
- diagonalSize: number;
18
- density: number;
19
- memoryRamSize: number;
20
- datadiskSize: number;
21
- procNumber: number;
22
- coverResolutionWidth?: number;
23
- coverResolutionHeight?: number;
24
- coverDiagonalSize?: number;
25
- }
26
- declare namespace ParentEmulatorConfigItem {
27
- function is(value: unknown): value is ParentEmulatorConfigItem;
28
- }
29
- interface PhoneAllEmulatorConfigItem extends ParentEmulatorConfigItem {
30
- deviceType: PhoneAllSnakecaseDeviceType;
31
- singleResolutionHeight?: number;
32
- singleResolutionWidth?: number;
33
- singleDiagonalSize?: number;
34
- doubleResolutionWidth?: number;
35
- doubleResolutionHeight?: number;
36
- doubleDiagonalSize?: number;
37
- }
38
- declare namespace PhoneAllEmulatorConfigItem {
39
- function is(value: unknown): value is PhoneAllEmulatorConfigItem;
40
- }
41
- interface GroupPhoneAllEmulatorConfigItem extends BaseEmulatorConfigItem {
42
- deviceType: 'phone_all';
43
- children: PhoneAllEmulatorConfigItem[];
44
- }
45
- declare namespace GroupPhoneAllEmulatorConfigItem {
46
- function is(value: unknown): value is GroupPhoneAllEmulatorConfigItem;
47
- }
48
- interface PCAllEmulatorConfigItem extends ParentEmulatorConfigItem {
49
- deviceType: PCAllSnakecaseDeviceType;
50
- }
51
- declare namespace PCAllEmulatorConfigItem {
52
- function is(value: unknown): value is PCAllEmulatorConfigItem;
53
- }
54
- interface GroupPCAllEmulatorConfigItem extends BaseEmulatorConfigItem {
55
- deviceType: 'pc_all';
56
- children: PCAllEmulatorConfigItem[];
57
- }
58
- declare namespace GroupPCAllEmulatorConfigItem {
59
- function is(value: unknown): value is GroupPCAllEmulatorConfigItem;
60
- }
61
- type EmulatorConfig = (ParentEmulatorConfigItem | GroupPhoneAllEmulatorConfigItem | GroupPCAllEmulatorConfigItem)[];
62
- type EmulatorConfigItem = ParentEmulatorConfigItem | PhoneAllEmulatorConfigItem | PCAllEmulatorConfigItem;
63
- //#endregion
64
- export { GroupPhoneAllEmulatorConfigItem as a, PhoneAllEmulatorConfigItem as c, GroupPCAllEmulatorConfigItem as i, EmulatorConfig as n, PCAllEmulatorConfigItem as o, EmulatorConfigItem as r, ParentEmulatorConfigItem as s, BaseEmulatorConfigItem as t };
@@ -1,64 +0,0 @@
1
- import { c as SnakecaseDeviceType, i as PCAllSnakecaseDeviceType, s as PhoneAllSnakecaseDeviceType } from "./types-CayFonNb.cjs";
2
-
3
- //#region src/emulator-config.d.ts
4
- interface BaseEmulatorConfigItem {
5
- name: string;
6
- api: number;
7
- }
8
- declare namespace BaseEmulatorConfigItem {
9
- function is(value: unknown): value is BaseEmulatorConfigItem;
10
- }
11
- interface ParentEmulatorConfigItem extends BaseEmulatorConfigItem {
12
- deviceType: SnakecaseDeviceType;
13
- resolutionWidth: number;
14
- resolutionHeight: number;
15
- physicalWidth: number;
16
- physicalHeight: number;
17
- diagonalSize: number;
18
- density: number;
19
- memoryRamSize: number;
20
- datadiskSize: number;
21
- procNumber: number;
22
- coverResolutionWidth?: number;
23
- coverResolutionHeight?: number;
24
- coverDiagonalSize?: number;
25
- }
26
- declare namespace ParentEmulatorConfigItem {
27
- function is(value: unknown): value is ParentEmulatorConfigItem;
28
- }
29
- interface PhoneAllEmulatorConfigItem extends ParentEmulatorConfigItem {
30
- deviceType: PhoneAllSnakecaseDeviceType;
31
- singleResolutionHeight?: number;
32
- singleResolutionWidth?: number;
33
- singleDiagonalSize?: number;
34
- doubleResolutionWidth?: number;
35
- doubleResolutionHeight?: number;
36
- doubleDiagonalSize?: number;
37
- }
38
- declare namespace PhoneAllEmulatorConfigItem {
39
- function is(value: unknown): value is PhoneAllEmulatorConfigItem;
40
- }
41
- interface GroupPhoneAllEmulatorConfigItem extends BaseEmulatorConfigItem {
42
- deviceType: 'phone_all';
43
- children: PhoneAllEmulatorConfigItem[];
44
- }
45
- declare namespace GroupPhoneAllEmulatorConfigItem {
46
- function is(value: unknown): value is GroupPhoneAllEmulatorConfigItem;
47
- }
48
- interface PCAllEmulatorConfigItem extends ParentEmulatorConfigItem {
49
- deviceType: PCAllSnakecaseDeviceType;
50
- }
51
- declare namespace PCAllEmulatorConfigItem {
52
- function is(value: unknown): value is PCAllEmulatorConfigItem;
53
- }
54
- interface GroupPCAllEmulatorConfigItem extends BaseEmulatorConfigItem {
55
- deviceType: 'pc_all';
56
- children: PCAllEmulatorConfigItem[];
57
- }
58
- declare namespace GroupPCAllEmulatorConfigItem {
59
- function is(value: unknown): value is GroupPCAllEmulatorConfigItem;
60
- }
61
- type EmulatorConfig = (ParentEmulatorConfigItem | GroupPhoneAllEmulatorConfigItem | GroupPCAllEmulatorConfigItem)[];
62
- type EmulatorConfigItem = ParentEmulatorConfigItem | PhoneAllEmulatorConfigItem | PCAllEmulatorConfigItem;
63
- //#endregion
64
- export { GroupPhoneAllEmulatorConfigItem as a, PhoneAllEmulatorConfigItem as c, GroupPCAllEmulatorConfigItem as i, EmulatorConfig as n, PCAllEmulatorConfigItem as o, EmulatorConfigItem as r, ParentEmulatorConfigItem as s, BaseEmulatorConfigItem as t };
@@ -1,67 +0,0 @@
1
- import { o as PascalCaseDeviceType } from "./types-DD8_iqBV.mjs";
2
-
3
- //#region src/product-config.d.ts
4
- interface ProductConfigItem {
5
- /**
6
- * The name of the product.
7
- */
8
- name: string;
9
- /**
10
- * The screen width of the product.
11
- */
12
- screenWidth: string;
13
- /**
14
- * The screen height of the product.
15
- */
16
- screenHeight: string;
17
- /**
18
- * The screen diagonal of the product.
19
- */
20
- screenDiagonal: string;
21
- /**
22
- * The screen density of the product.
23
- */
24
- screenDensity: string;
25
- /**
26
- * The outer screen width of the product.
27
- */
28
- outerScreenWidth?: string;
29
- /**
30
- * The outer screen height of the product.
31
- */
32
- outerDoubleScreenWidth?: string;
33
- /**
34
- * The outer double screen height of the product.
35
- */
36
- outerDoubleScreenHeight?: string;
37
- /**
38
- * The outer double screen diagonal of the product.
39
- */
40
- outerDoubleScreenDiagonal?: string;
41
- /**
42
- * The outer screen height of the product.
43
- */
44
- outerScreenHeight?: string;
45
- /**
46
- * The outer screen diagonal of the product.
47
- */
48
- outerScreenDiagonal?: string;
49
- /**
50
- * Whether the product is visible.
51
- */
52
- visible: boolean;
53
- /**
54
- * The one cutout path of the product.
55
- */
56
- oneCutoutPath?: string;
57
- /**
58
- * The dev model of the product.
59
- */
60
- devModel?: string;
61
- }
62
- declare namespace ProductConfigItem {
63
- function is(value: unknown): value is ProductConfigItem;
64
- }
65
- type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
66
- //#endregion
67
- export { ProductConfigItem as n, ProductConfig as t };
@@ -1,67 +0,0 @@
1
- import { o as PascalCaseDeviceType } from "./types-CayFonNb.cjs";
2
-
3
- //#region src/product-config.d.ts
4
- interface ProductConfigItem {
5
- /**
6
- * The name of the product.
7
- */
8
- name: string;
9
- /**
10
- * The screen width of the product.
11
- */
12
- screenWidth: string;
13
- /**
14
- * The screen height of the product.
15
- */
16
- screenHeight: string;
17
- /**
18
- * The screen diagonal of the product.
19
- */
20
- screenDiagonal: string;
21
- /**
22
- * The screen density of the product.
23
- */
24
- screenDensity: string;
25
- /**
26
- * The outer screen width of the product.
27
- */
28
- outerScreenWidth?: string;
29
- /**
30
- * The outer screen height of the product.
31
- */
32
- outerDoubleScreenWidth?: string;
33
- /**
34
- * The outer double screen height of the product.
35
- */
36
- outerDoubleScreenHeight?: string;
37
- /**
38
- * The outer double screen diagonal of the product.
39
- */
40
- outerDoubleScreenDiagonal?: string;
41
- /**
42
- * The outer screen height of the product.
43
- */
44
- outerScreenHeight?: string;
45
- /**
46
- * The outer screen diagonal of the product.
47
- */
48
- outerScreenDiagonal?: string;
49
- /**
50
- * Whether the product is visible.
51
- */
52
- visible: boolean;
53
- /**
54
- * The one cutout path of the product.
55
- */
56
- oneCutoutPath?: string;
57
- /**
58
- * The dev model of the product.
59
- */
60
- devModel?: string;
61
- }
62
- declare namespace ProductConfigItem {
63
- function is(value: unknown): value is ProductConfigItem;
64
- }
65
- type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
66
- //#endregion
67
- export { ProductConfigItem as n, ProductConfig as t };
@@ -1,16 +0,0 @@
1
- //#region src/types.d.ts
2
- interface Stringifiable<T> {
3
- toJSON(): T;
4
- }
5
- type OS = 'windows' | 'mac' | 'linux';
6
- type Arch = 'x86' | 'arm64';
7
- type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
8
- type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
9
- type ParentEmulatorSnakecaseDeviceType = SnakecaseDeviceType | 'pc_all' | 'phone_all';
10
- type PhoneAllSnakecaseDeviceType = 'phone' | 'triplefold' | 'widefold' | 'foldable';
11
- declare function isPhoneAllSnakecaseDeviceType(value: unknown): value is PhoneAllSnakecaseDeviceType;
12
- type PCAllSnakecaseDeviceType = '2in1_foldable' | '2in1';
13
- declare function isPCAllSnakecaseDeviceType(value: unknown): value is PCAllSnakecaseDeviceType;
14
- type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
15
- //#endregion
16
- export { ParentEmulatorSnakecaseDeviceType as a, SnakecaseDeviceType as c, isPhoneAllSnakecaseDeviceType as d, PCAllSnakecaseDeviceType as i, Stringifiable as l, DeviceType as n, PascalCaseDeviceType as o, OS as r, PhoneAllSnakecaseDeviceType as s, Arch as t, isPCAllSnakecaseDeviceType as u };
@@ -1,16 +0,0 @@
1
- //#region src/types.d.ts
2
- interface Stringifiable<T> {
3
- toJSON(): T;
4
- }
5
- type OS = 'windows' | 'mac' | 'linux';
6
- type Arch = 'x86' | 'arm64';
7
- type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
8
- type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
9
- type ParentEmulatorSnakecaseDeviceType = SnakecaseDeviceType | 'pc_all' | 'phone_all';
10
- type PhoneAllSnakecaseDeviceType = 'phone' | 'triplefold' | 'widefold' | 'foldable';
11
- declare function isPhoneAllSnakecaseDeviceType(value: unknown): value is PhoneAllSnakecaseDeviceType;
12
- type PCAllSnakecaseDeviceType = '2in1_foldable' | '2in1';
13
- declare function isPCAllSnakecaseDeviceType(value: unknown): value is PCAllSnakecaseDeviceType;
14
- type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
15
- //#endregion
16
- export { ParentEmulatorSnakecaseDeviceType as a, SnakecaseDeviceType as c, isPhoneAllSnakecaseDeviceType as d, PCAllSnakecaseDeviceType as i, Stringifiable as l, DeviceType as n, PascalCaseDeviceType as o, OS as r, PhoneAllSnakecaseDeviceType as s, Arch as t, isPCAllSnakecaseDeviceType as u };