refactor(onboard): remove obsolete interactive helpers · openclaw/openclaw@75b9e76
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -177,16 +177,6 @@ run_wizard_cmd() {
|
177 | 177 | fi |
178 | 178 | } |
179 | 179 | |
180 | | -run_wizard() { |
181 | | -local case_name="$1" |
182 | | -local state_ref="$2" |
183 | | -local send_fn="$3" |
184 | | -local validate_fn="${4:-}" |
185 | | - |
186 | | -# Default onboarding command wrapper. |
187 | | - run_wizard_cmd "$case_name" "$state_ref" "node \"$OPENCLAW_ENTRY\" onboard $ONBOARD_FLAGS" "$send_fn" true "$validate_fn" |
188 | | -} |
189 | | - |
190 | 180 | assert_onboard_config() { |
191 | 181 | local scenario="$1" |
192 | 182 | shift |
@@ -199,35 +189,6 @@ set_isolated_openclaw_env() {
|
199 | 189 | openclaw_test_state_create "$state_ref" empty |
200 | 190 | } |
201 | 191 | |
202 | | -select_skip_hooks() { |
203 | | -# Hooks multiselect: pick "Skip for now". |
204 | | - wait_for_log "Enable hooks?" 60 |
205 | | - send $' \r' 0.6 |
206 | | -} |
207 | | - |
208 | | -send_local_basic() { |
209 | | -# Risk acknowledgement (default is "No"). |
210 | | - wait_for_log "Continue?" 60 |
211 | | - send $'y\r' 0.6 |
212 | | -# Non-interactive flow; no gateway-location prompt. |
213 | | - select_skip_hooks |
214 | | -} |
215 | | - |
216 | | -send_reset_config_only() { |
217 | | -# Risk acknowledgement (default is "No"). |
218 | | - wait_for_log "Continue?" 40 |
219 | | - send $'y\r' 0.8 |
220 | | -# Select reset flow for existing config. |
221 | | - wait_for_log "Config handling" 40 |
222 | | - send $'\e[B' 0.3 |
223 | | - send $'\e[B' 0.3 |
224 | | - send $'\r' 0.4 |
225 | | -# Reset scope -> Config only (default). |
226 | | - wait_for_log "Reset scope" 40 |
227 | | - send $'\r' 0.4 |
228 | | - select_skip_hooks |
229 | | -} |
230 | | - |
231 | 192 | send_channels_flow() { |
232 | 193 | # Configure channels via configure wizard. Use the remove-config branch for |
233 | 194 | # a stable no-op smoke path when the config starts empty. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。