refactor: trim command helper type exports · openclaw/openclaw@b37234f
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ type ProviderAccountStatus = {
|
19 | 19 | visibleInConfiguredLists?: boolean; |
20 | 20 | }; |
21 | 21 | |
22 | | -export type ProviderSummaryMetadata = { |
| 22 | +type ProviderSummaryMetadata = { |
23 | 23 | label: string; |
24 | 24 | defaultAccountId: string; |
25 | 25 | visibleInConfiguredLists: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
5 | 5 | import { formatErrorMessage } from "../infra/errors.js"; |
6 | 6 | import { isRecord } from "../utils.js"; |
7 | 7 | |
8 | | -export type ChannelDefaultAccountContext = { |
| 8 | +type ChannelDefaultAccountContext = { |
9 | 9 | accountIds: string[]; |
10 | 10 | defaultAccountId: string; |
11 | 11 | account: unknown; |
@@ -19,7 +19,7 @@ export type ChannelDefaultAccountContext = {
|
19 | 19 | degraded: boolean; |
20 | 20 | }; |
21 | 21 | |
22 | | -export type ChannelAccountContextMode = "strict" | "read_only"; |
| 22 | +type ChannelAccountContextMode = "strict" | "read_only"; |
23 | 23 | |
24 | 24 | function getBooleanField(value: unknown, key: string): boolean | undefined { |
25 | 25 | const record = isRecord(value) ? value : null; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,12 +5,12 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
5 | 5 | import type { RuntimeEnv } from "../runtime.js"; |
6 | 6 | import { resolveHomeDir, resolveUserPath, shortenHomeInString } from "../utils.js"; |
7 | 7 | |
8 | | -export type RemovalResult = { |
| 8 | +type RemovalResult = { |
9 | 9 | ok: boolean; |
10 | 10 | skipped?: boolean; |
11 | 11 | }; |
12 | 12 | |
13 | | -export type CleanupResolvedPaths = { |
| 13 | +type CleanupResolvedPaths = { |
14 | 14 | stateDir: string; |
15 | 15 | configPath: string; |
16 | 16 | oauthDir: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ import {
|
15 | 15 | formatTrajectoryCommandExportSummary, |
16 | 16 | } from "../trajectory/command-export.js"; |
17 | 17 | |
18 | | -export type ExportTrajectoryCommandOptions = { |
| 18 | +type ExportTrajectoryCommandOptions = { |
19 | 19 | sessionKey?: string; |
20 | 20 | output?: string; |
21 | 21 | store?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import type { AuthChoice, OnboardOptions } from "./onboard-types.js";
|
2 | 2 | |
3 | 3 | type OnboardCoreAuthOptionKey = Extract<keyof OnboardOptions, string>; |
4 | 4 | |
5 | | -export type OnboardCoreAuthFlag = { |
| 5 | +type OnboardCoreAuthFlag = { |
6 | 6 | optionKey: OnboardCoreAuthOptionKey; |
7 | 7 | authChoice: AuthChoice; |
8 | 8 | cliFlag: `--${string}`; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。