refactor(wizard): hide prompt session types · openclaw/openclaw@f3ae525
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,13 +4,13 @@ import { WizardCancelledError, type WizardProgress, type WizardPrompter } from "
|
4 | 4 | |
5 | 5 | // WizardSession exposes interactive setup as a step/answer protocol for remote |
6 | 6 | // clients while reusing the same WizardPrompter contract as the local CLI. |
7 | | -export type WizardStepOption = { |
| 7 | +type WizardStepOption = { |
8 | 8 | value: unknown; |
9 | 9 | label: string; |
10 | 10 | hint?: string; |
11 | 11 | }; |
12 | 12 | |
13 | | -export type WizardStep = { |
| 13 | +type WizardStep = { |
14 | 14 | id: string; |
15 | 15 | type: "note" | "select" | "text" | "confirm" | "multiselect" | "progress" | "action"; |
16 | 16 | title?: string; |
@@ -23,9 +23,9 @@ export type WizardStep = {
|
23 | 23 | executor?: "gateway" | "client"; |
24 | 24 | }; |
25 | 25 | |
26 | | -export type WizardSessionStatus = "running" | "done" | "cancelled" | "error"; |
| 26 | +type WizardSessionStatus = "running" | "done" | "cancelled" | "error"; |
27 | 27 | |
28 | | -export type WizardNextResult = { |
| 28 | +type WizardNextResult = { |
29 | 29 | done: boolean; |
30 | 30 | step?: WizardStep; |
31 | 31 | status: WizardSessionStatus; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。