dsh-app-deploy 0.2.0 → 0.3.1

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
@@ -31,7 +31,7 @@
31
31
  插件发布在 npm,通过 DSH 插件管理器直接安装:
32
32
 
33
33
  ```text
34
- plugin_manager → action: install_bundle → target: dsh-app-deploy@0.2.0
34
+ plugin_manager → action: install_bundle → target: dsh-app-deploy@0.3.1
35
35
  ```
36
36
 
37
37
  安装后刷新 DSH Web,左侧导航出现「部署」入口。
@@ -49,12 +49,16 @@ plugin_manager → action: install_bundle → target: dsh-app-deploy@0.2.0
49
49
 
50
50
  新装插件默认为空配置(不播种),环境通过「+ 添加环境」或「导入」创建。
51
51
 
52
+ ## AI 工具
53
+
54
+ 插件向 dsh Agent 注册 4 个工具:`deploy_list_envs`(列出环境与模块,密码已剥离)、`deploy_run`(执行部署并返回日志)、`deploy_history`(执行记录)、`ssh_test_connection`(SSH 连通性测试)。可直接让 AI 代查发布状态或执行部署。
55
+
52
56
  ## 使用
53
57
 
54
58
  单模块部署流程:
55
59
 
56
60
  ```
57
- 清理构建目录 → ./gradlew <task> [-Pkey] [额外参数] [-PexpTime]
61
+ 清理构建目录 → 执行模块构建命令(通用:./gradlew … / mvn … / npm run build;首 token 为 gradle 的服务端自动追加 -PexpTime)
58
62
  → rsync [-r -t -z] 本地产物 → user@host:远程路径(前端加 --delete)
59
63
  (无 rsync 时回退 rclone:前端 rclone sync / 服务端 rclone copy,走 SFTP)
60
64
  → ssh 远程命令(可空)