refactor(commands): hide migrate helper types · openclaw/openclaw@71ce525
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ import {
|
14 | 14 | import type { GatewayStatusProbedTarget } from "./probe-run.js"; |
15 | 15 | |
16 | 16 | /** Warning emitted when gateway status finds degraded or surprising probe state. */ |
17 | | -export type GatewayStatusWarning = { |
| 17 | +type GatewayStatusWarning = { |
18 | 18 | code: string; |
19 | 19 | message: string; |
20 | 20 | targetIds?: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,9 +19,9 @@ export const MIGRATION_SKILL_SELECTION_TOGGLE_ALL_OFF = MIGRATION_SELECTION_TOGG
|
19 | 19 | |
20 | 20 | type InteractiveMigrationSelection = { action: "select"; selectedItemIds: Set<string> }; |
21 | 21 | /** Interactive skill selection result consumed by the apply flow. */ |
22 | | -export type InteractiveMigrationSkillSelection = InteractiveMigrationSelection; |
| 22 | +type InteractiveMigrationSkillSelection = InteractiveMigrationSelection; |
23 | 23 | /** Interactive plugin selection result consumed by the apply flow. */ |
24 | | -export type InteractiveMigrationPluginSelection = InteractiveMigrationSelection; |
| 24 | +type InteractiveMigrationPluginSelection = InteractiveMigrationSelection; |
25 | 25 | |
26 | 26 | function normalizeSelectionRef(value: string): string { |
27 | 27 | return value.trim().toLowerCase(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ type MigrationSkillSelectionOption = {
|
26 | 26 | }; |
27 | 27 | |
28 | 28 | /** Options for the migration selection prompt, including testable IO streams. */ |
29 | | -export type MigrationSkillSelectionPromptOptions = { |
| 29 | +type MigrationSkillSelectionPromptOptions = { |
30 | 30 | message: string; |
31 | 31 | options: MigrationSkillSelectionOption[]; |
32 | 32 | initialValues?: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
3 | 3 | import type { MigrationPlan } from "../../plugins/types.js"; |
4 | 4 | |
5 | 5 | /** Embedded migration mode that returns config patch details instead of persisting them. */ |
6 | | -export type MigrationConfigPatchMode = "return"; |
| 6 | +type MigrationConfigPatchMode = "return"; |
7 | 7 | |
8 | 8 | /** Common options accepted by migrate list, plan, apply, and default flows. */ |
9 | 9 | export type MigrateCommonOptions = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。