refactor: trim command option type exports

This commit is contained in:
Peter Steinberger
2026-05-02 01:00:38 +01:00
parent 4b4fbd7ea2
commit 056c8eb488
6 changed files with 6 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ const EMBEDDED_FALLBACK_META = {
} as const;
const GATEWAY_TIMEOUT_FALLBACK_SESSION_PREFIX = "gateway-fallback-";
export type AgentCliOpts = {
type AgentCliOpts = {
message: string;
agent?: string;
model?: string;

View File

@@ -18,7 +18,7 @@ type CleanupResolvedPaths = {
oauthInsideState: boolean;
};
export function collectWorkspaceDirs(cfg: OpenClawConfig | undefined): string[] {
function collectWorkspaceDirs(cfg: OpenClawConfig | undefined): string[] {
const dirs = new Set<string>();
const defaults = cfg?.agents?.defaults;
if (typeof defaults?.workspace === "string" && defaults.workspace.trim()) {

View File

@@ -35,7 +35,7 @@ import type { GatewayDaemonRuntime } from "./daemon-runtime.js";
export { resolveGatewayDevMode } from "./daemon-install-plan.shared.js";
export type GatewayInstallPlan = {
type GatewayInstallPlan = {
programArguments: string[];
workingDirectory?: string;
environment: Record<string, string | undefined>;

View File

@@ -1,6 +1,6 @@
import type { DoctorPrompter } from "./doctor-prompter.js";
export type ServiceRepairPolicy = "auto" | "external";
type ServiceRepairPolicy = "auto" | "external";
export const SERVICE_REPAIR_POLICY_ENV = "OPENCLAW_SERVICE_REPAIR_POLICY";

View File

@@ -322,7 +322,7 @@ function buildAnthropicHeaders(apiKey: string) {
return headers;
}
export type VerificationRequest = {
type VerificationRequest = {
endpoint: string;
headers: Record<string, string>;
body: Record<string, unknown>;

View File

@@ -34,7 +34,7 @@ import {
toSessionDisplayRows,
} from "./sessions-table.js";
export type SessionsCleanupOptions = {
type SessionsCleanupOptions = {
store?: string;
agent?: string;
allAgents?: boolean;