mirror of
https://github.com/grp06/openclaw-studio.git
synced 2026-08-14 08:52:03 +00:00
31 lines
828 B
TypeScript
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[];
|