Files

31 lines
828 B
TypeScript

import type { StudioInstallContext } from "../src/lib/studio/install-context";
export type InstallContextCommandRunner = (
file: string,
args: string[],
options: {
timeout: number;
maxBuffer: number;
windowsHide: boolean;
encoding: string;
}
) => Promise<{ stdout?: string }>;
export function detectInstallContext(
env?: NodeJS.ProcessEnv,
options?: {
resolveHosts?: (env?: NodeJS.ProcessEnv) => string[];
isPublicHost?: (host: string) => boolean;
readOpenclawGatewayDefaults?: (
env?: NodeJS.ProcessEnv
) => { url: string; token: string } | null;
runCommand?: InstallContextCommandRunner;
fetch?: typeof fetch;
}
): Promise<StudioInstallContext>;
export function buildStartupGuidance(params: {
installContext: StudioInstallContext;
port: number;
}): string[];