@deveco-test/deveco-cli 1.3.1-Test.1 → 1.3.1-Test.2

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/README.md CHANGED
@@ -1166,7 +1166,7 @@ devecocli ui window list --all
1166
1166
  **命令格式:**
1167
1167
 
1168
1168
  ```bash
1169
- devecocli run --module <module> --device <device> --product <product> --build-mode <mode> --ability <ability> --uninstall --skip-build --apply <fileName> --hotreload [action] --hotreload-apply <fileName>
1169
+ devecocli run --module <module> --device <device> --product <product> --build-mode <mode> --ability <ability> --uninstall --skip-build --apply <txtFile>
1170
1170
  ```
1171
1171
 
1172
1172
  **参数:**
@@ -1180,9 +1180,9 @@ devecocli run --module <module> --device <device> --product <product> --build-mo
1180
1180
  | --ability | 可选,待启动的 `Ability` ,默认:模块 `module.json5` 中的`mainElement` |
1181
1181
  | --uninstall | 可选,安装前先卸载已有应用 |
1182
1182
  | --skip-build | 可选,跳过构建操作,直接安装应用 。\*\*说明:\*\*使用该参数时,需确保对应模块已有构建产物 |
1183
- | --apply \<fileName\> | 可选,快速增量部署。仅重编改动文件并安装,比全量 `run` 快。`<fileName>` 为 `.hvigor/` 下的改动文件清单(每行一个相对工程根路径)。前提:DevEco Studio ≥6.1.1,且先跑过一次 `devecocli run` |
1184
- | --hotreload [action] | 可选,使用热重载功能。使用热重载时,该命令需持续存活,以使热重载构建可以快速响应。当不需要时,执行 `devecocli run --hotreload stop` 去停止进程,释放资源 |
1185
- | --hotreload-apply \<fileName\> | 可选,热重载(不重启应用即生效)。读取 `.hvigor/<fileName>` 改动清单,经编译安装使改动生效。前提:后台 `--hotreload` 进程在跑。范围:仅单个模块(`--module` 必填),且只支持 `.ets` 文件 |
1183
+ | --apply \<fileName\> | 可选,**快速增量部署**:仅重编改动文件 → signed hqf → `bm quickfix -a -f -o` 安装 → 重启,比全量 `run` 快。`<fileName>` 是工程 `.hvigor/` 目录下的**纯文件名**(调用方把清单写到此目录,文件名做安全校验防穿越);内容为本轮改动的源文件路径清单(每行一个相对工程根路径;`#`/空行忽略;`.ets`/`.ts`/`.cpp`/资源文件;changeFileList 增量累积,只需列本轮改的,历史文件自动保留)。模块从清单路径自动识别(无需 `--module`)。**前提**:DevEco Studio ≥6.1.1(hvigor `assembleDevHqf` 支持,低于拒绝并提示升级);先 `devecocli run` 全量构建部署一次(生成 buildConfig.json 缓存);**没生效排查**:检查 `<module>/build/config/buildConfig.json` 有无内容(空/无 = 没跑过 `devecocli run`);**失败兜底**:直接 `devecocli run` |
1184
+ | --hotreload [action] | 可选,**热重载 watch 会话**(须作为**后台进程**启动,该进程持久持有到 hvigor daemon 的 socket):以热重载模式构建 hap(`hotReload=true debuggable=true`)、部署+拉起应用,然后进程自身连 socket 到 daemon 发 `CommonBuild assembleHap --hot-reload-build --watch` 并**保持连接**,保活 daemon 的 watch worker(rollup watch)供 `--hotreload-apply` 复用。进程常驻(onBuildOutput 流式到其 stdout)。**热重载调试结束必须 kill 此后台进程**(否则 watch worker/daemon 泄漏);`stop` 同时关闭 hvigor daemon。用法:后台起 `devecocli run --module <m> --hotreload`,等 `.hotreload-mode` marker(或 stdout 出现 "watch session active")即就绪,再跑 `--hotreload-apply`;结束 kill 后台进程 + `--hotreload stop` |
1185
+ | --hotreload-apply \<fileName\> | 可选,**热重载(不重启应用)**:读取 `.hvigor/<fileName>` 改动清单(格式与 `--apply` 相同),开**短连接** socket 到 daemon(由后台 `--hotreload` 进程保活),发 `CommonBuild assembleDevHqf --hot-compile` → watch worker 增量 hot 编译改动 `.ets`/`.ts` 为 abc(HotReloadArkTS;输出/报错经 WatchLog 实时流式),再**手搓** pack+sign:`app_packing_tool.jar` 打包 + `hap-sign-tool.jar` 签名(DevEco material 密码经 `DecipherUtil` 解密),最后 `bm quickfix -a -f -o` 安装,**应用不重启即生效**。**前提**:后台 `--hotreload` 进程在跑(持有 watch 会话);超时即 watch 会话没活,重启后台 `--hotreload`。**范围(重要)**:热重载目标是**单个模块**(`--module` 必填,目标可为 entry/hsp/feature;`har` 依赖并入、OK);**`feature`/`hsp` 依赖模块**(非目标)的改动不支持热重载(检测并 warn,需全量 `devecocli run` 重部署);资源/native 改动需全量 run。编译报错经 WatchLog 路由到后台 `--hotreload` 进程、落盘 **`.hvigor/hotreload-watch.log`**(+其 stdout),apply 失败时读该文件把报错打出来(~15s 超时快速失败)。**`.hvigor/` 产物**:`.hvigor/<fileName>`=改动清单(入参)、`.hvigor/hotreload-watch.log`=watch 会话的 onBuildOutput/编译报错(后台进程写,可读/可删)。 |
1186
1186
 
1187
1187
  **示例:**
1188
1188
 
@@ -901,7 +901,7 @@ OTHER DEALINGS IN THE SOFTWARE.
901
901
 
902
902
  The following npm packages may be included in this product:
903
903
 
904
- - body-parser@2.3.0
904
+ - body-parser@2.4.0
905
905
  - type-is@2.1.0
906
906
 
907
907
  These packages each contain the following license:
@@ -1033,7 +1033,7 @@ THE SOFTWARE.
1033
1033
  The following npm packages may be included in this product:
1034
1034
 
1035
1035
  - etag@1.8.1
1036
- - proxy-addr@2.0.7
1036
+ - proxy-addr@2.0.8
1037
1037
 
1038
1038
  These packages each contain the following license:
1039
1039
 
@@ -1281,6 +1281,7 @@ The following npm packages may be included in this product:
1281
1281
 
1282
1282
  - content-type@1.0.5
1283
1283
  - content-type@2.0.0
1284
+ - content-type@2.1.0
1284
1285
 
1285
1286
  These packages each contain the following license:
1286
1287
 
@@ -1787,7 +1788,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1787
1788
 
1788
1789
  The following npm package may be included in this product:
1789
1790
 
1790
- - axios@1.19.0
1791
+ - axios@1.20.0
1791
1792
 
1792
1793
  This package contains the following license:
1793
1794
 
@@ -1832,7 +1833,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1832
1833
 
1833
1834
  The following npm package may be included in this product:
1834
1835
 
1835
- - @sqlite.org/sqlite-wasm@3.49.1-build4
1836
+ - @sqlite.org/sqlite-wasm@3.54.1-build1
1836
1837
 
1837
1838
  This package contains the following license:
1838
1839
 
@@ -1908,7 +1909,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1908
1909
 
1909
1910
  The following npm package may be included in this product:
1910
1911
 
1911
- - qs@6.15.2
1912
+ - qs@6.17.1
1912
1913
 
1913
1914
  This package contains the following license:
1914
1915
 
@@ -1946,7 +1947,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1946
1947
 
1947
1948
  The following npm package may be included in this product:
1948
1949
 
1949
- - iconv-lite@0.7.2
1950
+ - iconv-lite@0.7.3
1950
1951
 
1951
1952
  This package contains the following license:
1952
1953
 
@@ -1975,7 +1976,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1975
1976
 
1976
1977
  The following npm package may be included in this product:
1977
1978
 
1978
- - ip-address@10.4.0
1979
+ - ip-address@10.7.6
1979
1980
 
1980
1981
  This package contains the following license:
1981
1982
 
@@ -2089,7 +2090,7 @@ THE SOFTWARE.
2089
2090
 
2090
2091
  The following npm package may be included in this product:
2091
2092
 
2092
- - fast-uri@3.1.5
2093
+ - fast-uri@3.1.9
2093
2094
 
2094
2095
  This package contains the following license:
2095
2096
 
@@ -2331,7 +2332,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2331
2332
 
2332
2333
  The following npm package may be included in this product:
2333
2334
 
2334
- - smol-toml@1.7.0
2335
+ - smol-toml@1.9.1
2335
2336
 
2336
2337
  This package contains the following license:
2337
2338
 
@@ -2428,7 +2429,7 @@ Original Author, when distributed with the Software.
2428
2429
 
2429
2430
  The following npm package may be included in this product:
2430
2431
 
2431
- - follow-redirects@1.16.0
2432
+ - follow-redirects@1.16.2
2432
2433
 
2433
2434
  This package contains the following license:
2434
2435
 
@@ -2586,7 +2587,7 @@ MIT
2586
2587
 
2587
2588
  The following npm package may be included in this product:
2588
2589
 
2589
- - adm-zip@0.6.0
2590
+ - adm-zip@0.6.1
2590
2591
 
2591
2592
  This package contains the following license:
2592
2593
 
@@ -2830,7 +2831,7 @@ SOFTWARE.
2830
2831
  The following npm packages may be included in this product:
2831
2832
 
2832
2833
  - side-channel-weakmap@1.0.2
2833
- - side-channel@1.1.0
2834
+ - side-channel@1.1.1
2834
2835
 
2835
2836
  These packages each contain the following license:
2836
2837
 
@@ -2920,7 +2921,7 @@ SOFTWARE.
2920
2921
 
2921
2922
  The following npm package may be included in this product:
2922
2923
 
2923
- - hono@4.13.1
2924
+ - hono@4.13.17
2924
2925
 
2925
2926
  This package contains the following license:
2926
2927
 
@@ -2980,7 +2981,7 @@ SOFTWARE.
2980
2981
 
2981
2982
  The following npm package may be included in this product:
2982
2983
 
2983
- - @hono/node-server@2.0.12
2984
+ - @hono/node-server@2.1.6
2984
2985
 
2985
2986
  This package contains the following license:
2986
2987
 
@@ -3160,7 +3161,7 @@ SOFTWARE.
3160
3161
 
3161
3162
  The following npm package may be included in this product:
3162
3163
 
3163
- - @modelcontextprotocol/sdk@1.30.0
3164
+ - @modelcontextprotocol/sdk@1.32.2
3164
3165
 
3165
3166
  This package contains the following license:
3166
3167
 
@@ -3257,7 +3258,7 @@ SOFTWARE.
3257
3258
 
3258
3259
  The following npm package may be included in this product:
3259
3260
 
3260
- - zod@4.4.3
3261
+ - zod@4.6.7
3261
3262
 
3262
3263
  This package contains the following license:
3263
3264
 
@@ -4293,7 +4294,7 @@ THE SOFTWARE.
4293
4294
 
4294
4295
  The following npm package may be included in this product:
4295
4296
 
4296
- - node-forge@1.4.0
4297
+ - node-forge@1.4.3
4297
4298
 
4298
4299
  This package contains the following license:
4299
4300