mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
refactor: trim command helper type exports
This commit is contained in:
@@ -19,7 +19,7 @@ type ProviderAccountStatus = {
|
||||
visibleInConfiguredLists?: boolean;
|
||||
};
|
||||
|
||||
export type ProviderSummaryMetadata = {
|
||||
type ProviderSummaryMetadata = {
|
||||
label: string;
|
||||
defaultAccountId: string;
|
||||
visibleInConfiguredLists: boolean;
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import { formatErrorMessage } from "../infra/errors.js";
|
||||
import { isRecord } from "../utils.js";
|
||||
|
||||
export type ChannelDefaultAccountContext = {
|
||||
type ChannelDefaultAccountContext = {
|
||||
accountIds: string[];
|
||||
defaultAccountId: string;
|
||||
account: unknown;
|
||||
@@ -19,7 +19,7 @@ export type ChannelDefaultAccountContext = {
|
||||
degraded: boolean;
|
||||
};
|
||||
|
||||
export type ChannelAccountContextMode = "strict" | "read_only";
|
||||
type ChannelAccountContextMode = "strict" | "read_only";
|
||||
|
||||
function getBooleanField(value: unknown, key: string): boolean | undefined {
|
||||
const record = isRecord(value) ? value : null;
|
||||
|
||||
@@ -5,12 +5,12 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import { resolveHomeDir, resolveUserPath, shortenHomeInString } from "../utils.js";
|
||||
|
||||
export type RemovalResult = {
|
||||
type RemovalResult = {
|
||||
ok: boolean;
|
||||
skipped?: boolean;
|
||||
};
|
||||
|
||||
export type CleanupResolvedPaths = {
|
||||
type CleanupResolvedPaths = {
|
||||
stateDir: string;
|
||||
configPath: string;
|
||||
oauthDir: string;
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
formatTrajectoryCommandExportSummary,
|
||||
} from "../trajectory/command-export.js";
|
||||
|
||||
export type ExportTrajectoryCommandOptions = {
|
||||
type ExportTrajectoryCommandOptions = {
|
||||
sessionKey?: string;
|
||||
output?: string;
|
||||
store?: string;
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { AuthChoice, OnboardOptions } from "./onboard-types.js";
|
||||
|
||||
type OnboardCoreAuthOptionKey = Extract<keyof OnboardOptions, string>;
|
||||
|
||||
export type OnboardCoreAuthFlag = {
|
||||
type OnboardCoreAuthFlag = {
|
||||
optionKey: OnboardCoreAuthOptionKey;
|
||||
authChoice: AuthChoice;
|
||||
cliFlag: `--${string}`;
|
||||
|
||||
Reference in New Issue
Block a user