mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
refactor: trim command option type exports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
toSessionDisplayRows,
|
||||
} from "./sessions-table.js";
|
||||
|
||||
export type SessionsCleanupOptions = {
|
||||
type SessionsCleanupOptions = {
|
||||
store?: string;
|
||||
agent?: string;
|
||||
allAgents?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user