mirror of
https://github.com/grp06/openclaw-studio.git
synced 2026-08-14 00:47:51 +00:00
Make first-run connection setup explain how users open Studio separately from how Studio reaches OpenClaw, so remote and same-host cloud installs are less confusing for beginners. Made-with: Cursor
30 lines
802 B
TypeScript
30 lines
802 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;
|
|
}
|
|
): Promise<StudioInstallContext>;
|
|
|
|
export function buildStartupGuidance(params: {
|
|
installContext: StudioInstallContext;
|
|
port: number;
|
|
}): string[];
|