@honor-claw/yoyo 1.4.1-alpha.4 → 1.4.1-alpha.6

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.
@@ -1,7 +1,7 @@
1
1
  //#region src/utils/version.ts
2
2
  var e = null, t = null;
3
3
  function n() {
4
- return e === null && (e = "1.4.1-alpha.4".includes("beta") || "1.4.1-alpha.4".includes("alpha")), !!e;
4
+ return e === null && (e = "1.4.1-alpha.6".includes("beta") || "1.4.1-alpha.6".includes("alpha")), !!e;
5
5
  }
6
6
  function r(e) {
7
7
  if (!e) return 0;
@@ -10,7 +10,7 @@ function r(e) {
10
10
  }
11
11
  function i() {
12
12
  if (t !== null) return t;
13
- let [e, n, i] = "1.4.1-alpha.4".split("-", 1)[0].split("."), a = r(e), o = r(n), s = r(i);
13
+ let [e, n, i] = "1.4.1-alpha.6".split("-", 1)[0].split("."), a = r(e), o = r(n), s = r(i);
14
14
  return t = a * 1e6 + o * 1e3 + s, t;
15
15
  }
16
16
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honor-claw/yoyo",
3
- "version": "1.4.1-alpha.4",
3
+ "version": "1.4.1-alpha.6",
4
4
  "description": "OpenClaw Honor Yoyo connection plugin",
5
5
  "keywords": [
6
6
  "ai",
@@ -103,7 +103,20 @@ npm view @honor-claw/yoyo@{渠道名} version
103
103
 
104
104
  ## 步骤 4:执行更新
105
105
 
106
- ### 4.1 执行更新命令
106
+ ### 4.1 先通知用户进入升级流程
107
+
108
+ 在执行更新命令前,必须先向用户输出升级流程开头和阶段 1 进度:
109
+
110
+ ```markdown
111
+ 正在执行升级流程:
112
+
113
+ 1. 正在下载插件
114
+ 状态:正在下载插件,请耐心等待...
115
+ ```
116
+
117
+ 后续阶段进度不得重复输出"正在执行升级流程:"标题。
118
+
119
+ ### 4.2 执行更新命令
107
120
 
108
121
  ```bash
109
122
  openclaw plugins update yoyo
@@ -111,13 +124,13 @@ openclaw plugins update yoyo
111
124
 
112
125
  注意:该命令可能需要较长时间执行(下载和安装),请使用足够的超时时间。
113
126
 
114
- ### 4.2 监控更新进度
127
+ ### 4.3 监控更新进度
115
128
 
116
129
  实时监控命令输出,根据不同阶段向用户报告进度:
117
130
 
118
131
  | 输出关键词 | 向用户报告 | 内部处理 |
119
132
  | -------------------------------------- | ----------------- | ------------------------------ |
120
- | `Downloading @honor-claw/yoyo@` | 见下方阶段 1 | — |
133
+ | `Downloading @honor-claw/yoyo@` | 不输出 | 阶段 1 已在命令执行前输出 |
121
134
  | `Extracting` | 不输出 | 静默跟踪 |
122
135
  | `Installing to` | 见下方阶段 2 | — |
123
136
  | `Installing plugin dependencies` | 不输出 | 静默跟踪 |
@@ -125,23 +138,14 @@ openclaw plugins update yoyo
125
138
  | `Config overwrite:` / `Config backup:` | 不输出 | 记录配置备份路径 |
126
139
  | `Restart the gateway to load plugins` | 不输出 | 更新成功的确认信号,进入步骤 5 |
127
140
 
128
- 面向用户的进度通知必须使用以下文案。阶段 1 和阶段 2 的通知时机按上表触发;阶段 3 在步骤 5 的更新成功处理中输出:
141
+ 阶段 2 的进度通知必须使用以下文案:
129
142
 
130
143
  ```markdown
131
- 正在执行升级流程:
132
-
133
- 1. 正在下载插件
134
- 状态:正在下载插件,请耐心等待...
135
- ```
136
-
137
- ```markdown
138
- 正在执行升级流程:
139
-
140
144
  2. 正在更新插件
141
145
  状态:正在安装并配置新版本插件,请勿中断操作
142
146
  ```
143
147
 
144
- ### 4.3 错误处理
148
+ ### 4.4 错误处理
145
149
 
146
150
  若命令执行过程中出现错误(非零退出码或输出中包含错误信息):
147
151
 
@@ -156,8 +160,6 @@ openclaw plugins update yoyo
156
160
  向用户报告:
157
161
 
158
162
  ```markdown
159
- 正在执行升级流程:
160
-
161
163
  3. 插件更新完成
162
164
  Claw 插件更新已完成
163
165