UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

37 lines (36 loc) • 1.1 kB
export type SystemRunCommandValidation = { ok: true; shellPayload: string | null; commandText: string; previewText: string | null; } | { ok: false; message: string; details?: Record<string, unknown>; }; export type ResolvedSystemRunCommand = { ok: true; argv: string[]; commandText: string; shellPayload: string | null; previewText: string | null; } | { ok: false; message: string; details?: Record<string, unknown>; }; export declare function formatExecCommand(argv: string[]): string; export declare function extractShellCommandFromArgv(argv: string[]): string | null; export declare function validateSystemRunCommandConsistency(params: { argv: string[]; rawCommand?: string | null; allowLegacyShellText?: boolean; }): SystemRunCommandValidation; export declare function resolveSystemRunCommand(params: { command?: unknown; rawCommand?: unknown; }): ResolvedSystemRunCommand; export declare function resolveSystemRunCommandRequest(params: { command?: unknown; rawCommand?: unknown; }): ResolvedSystemRunCommand;