refactor(flows): hide setup helper types · openclaw/openclaw@3f25c57
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,7 +80,7 @@ function resolvePickerAgentDir(params: {
|
80 | 80 | return params.agentDir ?? resolveDefaultAgentDir(params.cfg, params.env ?? process.env); |
81 | 81 | } |
82 | 82 | |
83 | | -export type PromptDefaultModelParams = { |
| 83 | +type PromptDefaultModelParams = { |
84 | 84 | config: OpenClawConfig; |
85 | 85 | prompter: WizardPrompter; |
86 | 86 | allowKeep?: boolean; |
@@ -97,8 +97,8 @@ export type PromptDefaultModelParams = {
|
97 | 97 | message?: string; |
98 | 98 | }; |
99 | 99 | |
100 | | -export type PromptDefaultModelResult = { model?: string; config?: OpenClawConfig }; |
101 | | -export type PromptModelAllowlistResult = { models?: string[]; scopeKeys?: string[] }; |
| 100 | +type PromptDefaultModelResult = { model?: string; config?: OpenClawConfig }; |
| 101 | +type PromptModelAllowlistResult = { models?: string[]; scopeKeys?: string[] }; |
102 | 102 | |
103 | 103 | async function loadModelPickerRuntime() { |
104 | 104 | return import("../commands/model-picker.runtime.js"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ import type { WizardPrompter } from "../wizard/prompts.js";
|
27 | 27 | import type { FlowContribution, FlowOption } from "./types.js"; |
28 | 28 | import { sortFlowContributionsByLabel } from "./types.js"; |
29 | 29 | |
30 | | -export type SearchProvider = NonNullable< |
| 30 | +type SearchProvider = NonNullable< |
31 | 31 | NonNullable<NonNullable<NonNullable<OpenClawConfig["tools"]>["web"]>["search"]>["provider"] |
32 | 32 | >; |
33 | 33 | type SearchConfig = NonNullable<NonNullable<NonNullable<OpenClawConfig["tools"]>["web"]>["search"]>; |
@@ -351,7 +351,7 @@ function preserveDisabledState(original: OpenClawConfig, result: OpenClawConfig)
|
351 | 351 | }; |
352 | 352 | } |
353 | 353 | |
354 | | -export type SetupSearchOptions = { |
| 354 | +type SetupSearchOptions = { |
355 | 355 | quickstartDefaults?: boolean; |
356 | 356 | secretInputMode?: SecretInputMode; |
357 | 357 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。