ms-vite-plugin 1.5.17 → 1.5.20
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/dist/build/index.js +1 -1
- package/dist/build/scriptProtect.js +2 -2
- package/dist/cli.js +6 -6
- package/dist/packaging/index.d.ts +1 -4
- package/dist/packaging/index.js +1 -1
- package/docs/api/global.md +1 -1
- package/docs/api/image.md +54 -12
- package/docs/api/jbsystem.md +73 -0
- package/docs/api/opencv.md +708 -309
- package/docs/api/system.md +3 -3
- package/docs/apicn/global.md +1 -1
- package/docs/apicn/image.md +49 -11
- package/docs/apicn/system.md +3 -3
- package/docs/apilua/global.md +7 -9
- package/docs/apilua/image.md +37 -0
- package/docs/apilua/jbsystem.md +77 -0
- package/docs/apilua/opencv.md +87 -88
- package/docs/apilua/system.md +3 -3
- package/docs/apipython/g.md +1 -1
- package/docs/apipython/image.md +35 -0
- package/docs/apipython/jbsystem.md +77 -0
- package/docs/apipython/system.md +3 -3
- package/docs/httpapi/api.md +96 -96
- package/package.json +1 -2
- package/bin/mac/ms-bundle-enc +0 -0
- package/bin/win/ms-bundle-enc.exe +0 -0
package/docs/httpapi/api.md
CHANGED
|
@@ -741,53 +741,53 @@ GET /api/status
|
|
|
741
741
|
|
|
742
742
|
状态码 **200**
|
|
743
743
|
|
|
744
|
-
| 名称 | 类型 | 必选 | 约束 | 中文名
|
|
745
|
-
| ------------------------- | --------------------------- | ---- | ---- |
|
|
746
|
-
| » success | boolean | true | none | 是否成功
|
|
747
|
-
| » data | [软件状态](#schema软件状态) | true | none |
|
|
748
|
-
| »» deviceIp | string | true | none | 设备IP
|
|
749
|
-
| »» screenInfo | object | true | none | 屏幕信息
|
|
750
|
-
| »»» logicWidth | integer | true | none | 逻辑宽带
|
|
751
|
-
| »»» logicHeight | integer | true | none | 逻辑高度
|
|
752
|
-
| »»» height | integer | true | none | 物理高度
|
|
753
|
-
| »»» width | integer | true | none | 物理宽度
|
|
754
|
-
| »»» scale | number | true | none | 缩放比
|
|
755
|
-
| »» deviceName | string | true | none | 设备名称
|
|
756
|
-
| »» batteryInfo | object | true | none | 电池信息
|
|
757
|
-
| »»» level | integer | true | none | 电量 1-100
|
|
758
|
-
| »»» isCharging | boolean | true | none | 是否充电中
|
|
759
|
-
| »» appName | string | true | none | app名称
|
|
760
|
-
| »» appBuildNumber | integer | true | none | app构建号
|
|
761
|
-
| »» appBundleId | string | true | none | app 包名
|
|
762
|
-
| »» appNo | string | true | none | 当前软件编号
|
|
763
|
-
| »» deviceModel | string | true | none | 设备型号
|
|
764
|
-
| »» agentConnected | boolean | true | none | agent是否连接
|
|
765
|
-
| »» isRun | boolean | true | none | 脚本是否启动
|
|
766
|
-
| »» isDebugMode | boolean | true | none | 是否调试模式运行
|
|
767
|
-
| »» isDebugAuth | boolean | true | none | 是否拥有调试授权
|
|
768
|
-
| »» isAuth | boolean | true | none | 是否授权
|
|
769
|
-
| »» isRecording | boolean | true | none | 是否录屏中
|
|
770
|
-
| »» udid | string | true | none | 设备唯一 UDID
|
|
771
|
-
| »» authMode | string | true | none | 授权模式
|
|
772
|
-
| »» serverDeviceId | string | true | none | 服务器设备ID
|
|
773
|
-
| »» orientation | string | true | none | 屏幕方向
|
|
774
|
-
| »» memory | object | true | none | 内存状态
|
|
775
|
-
| »»» used | number | true | none | 应用已用内存
|
|
776
|
-
| »»» available | number | true | none | 系统可用内存
|
|
777
|
-
| »»» total | number | true | none | 系统总内存
|
|
778
|
-
| »»» systemUsed | number | true | none | 系统已用内存
|
|
779
|
-
| »»» usagePercentage | integer | true | none | 系统内存使用率
|
|
780
|
-
| »» cpuUsage | number | true | none | CPU 使用率
|
|
781
|
-
| »» osVersion | string | true | none | 系统版本
|
|
782
|
-
| »» ecid | string | true | none | 设备唯一 ECID
|
|
783
|
-
| »» isVolumeControlEnabled | boolean | true | none | 是否开启了音量键启停
|
|
784
|
-
| »» agentVersion | string | true | none | agent版本号
|
|
785
|
-
| »» appVersion | string | true | none | app版本号
|
|
786
|
-
| »» serverType | string | true | none | 授权服务器类型
|
|
787
|
-
| »» isHidConnected | boolean | true | none | hid设备是否连接
|
|
788
|
-
| »» isShowUI | boolean | true | none | 实现显示了 UI
|
|
789
|
-
| »» isLogin | boolean | true | none | 是否登录
|
|
790
|
-
| »» deviceId | string | true | none | 设备 ID
|
|
744
|
+
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|
|
745
|
+
| ------------------------- | --------------------------- | ---- | ---- | -------------------- | ------------------------------------------ |
|
|
746
|
+
| » success | boolean | true | none | 是否成功 | none |
|
|
747
|
+
| » data | [软件状态](#schema软件状态) | true | none | | none |
|
|
748
|
+
| »» deviceIp | string | true | none | 设备IP | none |
|
|
749
|
+
| »» screenInfo | object | true | none | 屏幕信息 | none |
|
|
750
|
+
| »»» logicWidth | integer | true | none | 逻辑宽带 | none |
|
|
751
|
+
| »»» logicHeight | integer | true | none | 逻辑高度 | none |
|
|
752
|
+
| »»» height | integer | true | none | 物理高度 | none |
|
|
753
|
+
| »»» width | integer | true | none | 物理宽度 | none |
|
|
754
|
+
| »»» scale | number | true | none | 缩放比 | none |
|
|
755
|
+
| »» deviceName | string | true | none | 设备名称 | none |
|
|
756
|
+
| »» batteryInfo | object | true | none | 电池信息 | none |
|
|
757
|
+
| »»» level | integer | true | none | 电量 1-100 | none |
|
|
758
|
+
| »»» isCharging | boolean | true | none | 是否充电中 | none |
|
|
759
|
+
| »» appName | string | true | none | app名称 | none |
|
|
760
|
+
| »» appBuildNumber | integer | true | none | app构建号 | none |
|
|
761
|
+
| »» appBundleId | string | true | none | app 包名 | none |
|
|
762
|
+
| »» appNo | string | true | none | 当前软件编号 | 未加载软件时为空字符串 |
|
|
763
|
+
| »» deviceModel | string | true | none | 设备型号 | none |
|
|
764
|
+
| »» agentConnected | boolean | true | none | agent是否连接 | none |
|
|
765
|
+
| »» isRun | boolean | true | none | 脚本是否启动 | none |
|
|
766
|
+
| »» isDebugMode | boolean | true | none | 是否调试模式运行 | none |
|
|
767
|
+
| »» isDebugAuth | boolean | true | none | 是否拥有调试授权 | none |
|
|
768
|
+
| »» isAuth | boolean | true | none | 是否授权 | none |
|
|
769
|
+
| »» isRecording | boolean | true | none | 是否录屏中 | none |
|
|
770
|
+
| »» udid | string | true | none | 设备唯一 UDID | none |
|
|
771
|
+
| »» authMode | string | true | none | 授权模式 | `user` 表示用户授权,`card` 表示授权卡密 |
|
|
772
|
+
| »» serverDeviceId | string | true | none | 服务器设备ID | none |
|
|
773
|
+
| »» orientation | string | true | none | 屏幕方向 | none |
|
|
774
|
+
| »» memory | object | true | none | 内存状态 | 单位为 MB,字段与系统模块内存信息一致 |
|
|
775
|
+
| »»» used | number | true | none | 应用已用内存 | 当前应用内存占用,单位 MB |
|
|
776
|
+
| »»» available | number | true | none | 系统可用内存 | 系统可用内存,单位 MB |
|
|
777
|
+
| »»» total | number | true | none | 系统总内存 | 物理内存总量,单位 MB |
|
|
778
|
+
| »»» systemUsed | number | true | none | 系统已用内存 | 系统已用内存,单位 MB |
|
|
779
|
+
| »»» usagePercentage | integer | true | none | 系统内存使用率 | 系统已用内存占总内存百分比 |
|
|
780
|
+
| »» cpuUsage | number | true | none | CPU 使用率 | 当前应用 CPU 使用率百分比 |
|
|
781
|
+
| »» osVersion | string | true | none | 系统版本 | none |
|
|
782
|
+
| »» ecid | string | true | none | 设备唯一 ECID | none |
|
|
783
|
+
| »» isVolumeControlEnabled | boolean | true | none | 是否开启了音量键启停 | none |
|
|
784
|
+
| »» agentVersion | string | true | none | agent版本号 | none |
|
|
785
|
+
| »» appVersion | string | true | none | app版本号 | none |
|
|
786
|
+
| »» serverType | string | true | none | 授权服务器类型 | none |
|
|
787
|
+
| »» isHidConnected | boolean | true | none | hid设备是否连接 | none |
|
|
788
|
+
| »» isShowUI | boolean | true | none | 实现显示了 UI | none |
|
|
789
|
+
| »» isLogin | boolean | true | none | 是否登录 | none |
|
|
790
|
+
| »» deviceId | string | true | none | 设备 ID | 越狱包为芯片生成的固定 ID,免越狱包为 IDFV |
|
|
791
791
|
|
|
792
792
|
#### 枚举值
|
|
793
793
|
|
|
@@ -1831,7 +1831,7 @@ GET /api/control/startApp
|
|
|
1831
1831
|
|
|
1832
1832
|
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|
|
1833
1833
|
| -------- | ----- | ------ | ---- | ------ | ---- |
|
|
1834
|
-
| bundleId | query | string | 是 | |
|
|
1834
|
+
| bundleId | query | string | 是 | | Bundle ID,或已安装应用的显示名 appName。同名多个应用时失败 |
|
|
1835
1835
|
|
|
1836
1836
|
> 返回示例
|
|
1837
1837
|
|
|
@@ -1865,7 +1865,7 @@ GET /api/control/activateApp
|
|
|
1865
1865
|
|
|
1866
1866
|
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|
|
1867
1867
|
| -------- | ----- | ------ | ---- | ------ | ---- |
|
|
1868
|
-
| bundleId | query | string | 是 | |
|
|
1868
|
+
| bundleId | query | string | 是 | | Bundle ID,或已安装应用的显示名 appName。同名多个应用时失败 |
|
|
1869
1869
|
|
|
1870
1870
|
> 返回示例
|
|
1871
1871
|
|
|
@@ -1899,7 +1899,7 @@ GET /api/control/stopApp
|
|
|
1899
1899
|
|
|
1900
1900
|
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|
|
1901
1901
|
| -------- | ----- | ------ | ---- | ------ | ---- |
|
|
1902
|
-
| bundleId | query | string | 是 | |
|
|
1902
|
+
| bundleId | query | string | 是 | | Bundle ID,或已安装应用的显示名 appName。同名多个应用时失败 |
|
|
1903
1903
|
|
|
1904
1904
|
> 返回示例
|
|
1905
1905
|
|
|
@@ -1967,7 +1967,7 @@ GET /api/control/setAgentTouchMode
|
|
|
1967
1967
|
|
|
1968
1968
|
- `0` 标准:等待完整执行完成
|
|
1969
1969
|
- `1` 快速:更快的执行速度
|
|
1970
|
-
- `2`
|
|
1970
|
+
- `2` 真实点击:带触摸面积
|
|
1971
1971
|
|
|
1972
1972
|
### 请求参数
|
|
1973
1973
|
|
|
@@ -3334,51 +3334,51 @@ GET /mirror/image
|
|
|
3334
3334
|
|
|
3335
3335
|
### 属性
|
|
3336
3336
|
|
|
3337
|
-
| 名称 | 类型 | 必选 | 约束 | 中文名
|
|
3338
|
-
| ---------------------- | ------- | ---- | ---- |
|
|
3339
|
-
| deviceIp | string | true | none | 设备IP
|
|
3340
|
-
| screenInfo | object | true | none | 屏幕信息
|
|
3341
|
-
| » logicWidth | integer | true | none | 逻辑宽带
|
|
3342
|
-
| » logicHeight | integer | true | none | 逻辑高度
|
|
3343
|
-
| » height | integer | true | none | 物理高度
|
|
3344
|
-
| » width | integer | true | none | 物理宽度
|
|
3345
|
-
| » scale | number | true | none | 缩放比
|
|
3346
|
-
| deviceName | string | true | none | 设备名称
|
|
3347
|
-
| batteryInfo | object | true | none | 电池信息
|
|
3348
|
-
| » level | integer | true | none | 电量 1-100
|
|
3349
|
-
| » isCharging | boolean | true | none | 是否充电中
|
|
3350
|
-
| appName | string | true | none | app名称
|
|
3351
|
-
| appBuildNumber | integer | true | none | app构建号
|
|
3352
|
-
| appBundleId | string | true | none | app 包名
|
|
3353
|
-
| appNo | string | true | none | 当前软件编号
|
|
3354
|
-
| deviceModel | string | true | none | 设备型号
|
|
3355
|
-
| agentConnected | boolean | true | none | agent是否连接
|
|
3356
|
-
| isRun | boolean | true | none | 脚本是否启动
|
|
3357
|
-
| isDebugMode | boolean | true | none | 是否调试模式运行
|
|
3358
|
-
| isDebugAuth | boolean | true | none | 是否拥有调试授权
|
|
3359
|
-
| isAuth | boolean | true | none | 是否授权
|
|
3360
|
-
| isRecording | boolean | true | none | 是否录屏中
|
|
3361
|
-
| udid | string | true | none | 设备唯一 UDID
|
|
3362
|
-
| authMode | string | true | none | 授权模式
|
|
3363
|
-
| serverDeviceId | string | true | none | 服务器设备ID
|
|
3364
|
-
| orientation | string | true | none | 屏幕方向
|
|
3365
|
-
| memory | object | true | none | 内存状态
|
|
3366
|
-
| » used | number | true | none | 应用已用内存
|
|
3367
|
-
| » available | number | true | none | 系统可用内存
|
|
3368
|
-
| » total | number | true | none | 系统总内存
|
|
3369
|
-
| » systemUsed | number | true | none | 系统已用内存
|
|
3370
|
-
| » usagePercentage | integer | true | none | 系统内存使用率
|
|
3371
|
-
| cpuUsage | number | true | none | CPU 使用率
|
|
3372
|
-
| osVersion | string | true | none | 系统版本
|
|
3373
|
-
| ecid | string | true | none | 设备唯一 ECID
|
|
3374
|
-
| isVolumeControlEnabled | boolean | true | none | 是否开启了音量键启停
|
|
3375
|
-
| agentVersion | string | true | none | agent版本号
|
|
3376
|
-
| appVersion | string | true | none | app版本号
|
|
3377
|
-
| serverType | string | true | none | 授权服务器类型
|
|
3378
|
-
| isHidConnected | boolean | true | none | hid设备是否连接
|
|
3379
|
-
| isShowUI | boolean | true | none | 实现显示了 UI
|
|
3380
|
-
| isLogin | boolean | true | none | 是否登录
|
|
3381
|
-
| deviceId | string | true | none | 设备 ID
|
|
3337
|
+
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|
|
3338
|
+
| ---------------------- | ------- | ---- | ---- | -------------------- | ------------------------------------------ |
|
|
3339
|
+
| deviceIp | string | true | none | 设备IP | none |
|
|
3340
|
+
| screenInfo | object | true | none | 屏幕信息 | none |
|
|
3341
|
+
| » logicWidth | integer | true | none | 逻辑宽带 | none |
|
|
3342
|
+
| » logicHeight | integer | true | none | 逻辑高度 | none |
|
|
3343
|
+
| » height | integer | true | none | 物理高度 | none |
|
|
3344
|
+
| » width | integer | true | none | 物理宽度 | none |
|
|
3345
|
+
| » scale | number | true | none | 缩放比 | none |
|
|
3346
|
+
| deviceName | string | true | none | 设备名称 | none |
|
|
3347
|
+
| batteryInfo | object | true | none | 电池信息 | none |
|
|
3348
|
+
| » level | integer | true | none | 电量 1-100 | none |
|
|
3349
|
+
| » isCharging | boolean | true | none | 是否充电中 | none |
|
|
3350
|
+
| appName | string | true | none | app名称 | none |
|
|
3351
|
+
| appBuildNumber | integer | true | none | app构建号 | none |
|
|
3352
|
+
| appBundleId | string | true | none | app 包名 | none |
|
|
3353
|
+
| appNo | string | true | none | 当前软件编号 | 未加载软件时为空字符串 |
|
|
3354
|
+
| deviceModel | string | true | none | 设备型号 | none |
|
|
3355
|
+
| agentConnected | boolean | true | none | agent是否连接 | none |
|
|
3356
|
+
| isRun | boolean | true | none | 脚本是否启动 | none |
|
|
3357
|
+
| isDebugMode | boolean | true | none | 是否调试模式运行 | none |
|
|
3358
|
+
| isDebugAuth | boolean | true | none | 是否拥有调试授权 | none |
|
|
3359
|
+
| isAuth | boolean | true | none | 是否授权 | none |
|
|
3360
|
+
| isRecording | boolean | true | none | 是否录屏中 | none |
|
|
3361
|
+
| udid | string | true | none | 设备唯一 UDID | none |
|
|
3362
|
+
| authMode | string | true | none | 授权模式 | `user` 表示用户授权,`card` 表示授权卡密 |
|
|
3363
|
+
| serverDeviceId | string | true | none | 服务器设备ID | none |
|
|
3364
|
+
| orientation | string | true | none | 屏幕方向 | none |
|
|
3365
|
+
| memory | object | true | none | 内存状态 | 单位为 MB,字段与系统模块内存信息一致 |
|
|
3366
|
+
| » used | number | true | none | 应用已用内存 | 当前应用内存占用,单位 MB |
|
|
3367
|
+
| » available | number | true | none | 系统可用内存 | 系统可用内存,单位 MB |
|
|
3368
|
+
| » total | number | true | none | 系统总内存 | 物理内存总量,单位 MB |
|
|
3369
|
+
| » systemUsed | number | true | none | 系统已用内存 | 系统已用内存,单位 MB |
|
|
3370
|
+
| » usagePercentage | integer | true | none | 系统内存使用率 | 系统已用内存占总内存百分比 |
|
|
3371
|
+
| cpuUsage | number | true | none | CPU 使用率 | 当前应用 CPU 使用率百分比 |
|
|
3372
|
+
| osVersion | string | true | none | 系统版本 | none |
|
|
3373
|
+
| ecid | string | true | none | 设备唯一 ECID | none |
|
|
3374
|
+
| isVolumeControlEnabled | boolean | true | none | 是否开启了音量键启停 | none |
|
|
3375
|
+
| agentVersion | string | true | none | agent版本号 | none |
|
|
3376
|
+
| appVersion | string | true | none | app版本号 | none |
|
|
3377
|
+
| serverType | string | true | none | 授权服务器类型 | none |
|
|
3378
|
+
| isHidConnected | boolean | true | none | hid设备是否连接 | none |
|
|
3379
|
+
| isShowUI | boolean | true | none | 实现显示了 UI | none |
|
|
3380
|
+
| isLogin | boolean | true | none | 是否登录 | none |
|
|
3381
|
+
| deviceId | string | true | none | 设备 ID | 越狱包为芯片生成的固定 ID,免越狱包为 IDFV |
|
|
3382
3382
|
|
|
3383
3383
|
#### 枚举值
|
|
3384
3384
|
|
package/package.json
CHANGED
package/bin/mac/ms-bundle-enc
DELETED
|
Binary file
|
|
Binary file
|