export async function createInstallPlanFixture(params?: { wrapperPath?: string; env?: Record; }): Promise<{ programArguments: string[]; workingDirectory: string; environment: Record; environmentValueSources?: Record; }> { const environment: Record = {}; if (params?.wrapperPath || params?.env?.OPENCLAW_WRAPPER) { environment.OPENCLAW_WRAPPER = params.wrapperPath ?? params.env?.OPENCLAW_WRAPPER; } return { programArguments: params?.wrapperPath ? [params.wrapperPath, "gateway", "run"] : ["openclaw", "gateway", "run"], workingDirectory: "/tmp", environment, }; } export function nodeProbeOutput(nodeVersion: string, sqliteVersion = "3.53.4") { return { stdout: JSON.stringify({ nodeVersion, sqliteVersion, sqliteProbe: { available: true, version: sqliteVersion, text: true, blob: true, json: true }, }), stderr: "", }; }