38 lines
903 B
TypeScript
38 lines
903 B
TypeScript
export type StackServiceConfig = {
|
|
key: string;
|
|
cwd: string;
|
|
port: number | null;
|
|
command: string[];
|
|
};
|
|
|
|
export type StackConfig = {
|
|
frontendRoot: string;
|
|
backendRoot: string;
|
|
runtimeRoot: string;
|
|
pidRoot: string;
|
|
logRoot: string;
|
|
temporalDatabaseFile: string;
|
|
services: StackServiceConfig[];
|
|
};
|
|
|
|
export function getDefaultTemporalCandidates(tempDirectory: string): string[];
|
|
|
|
export function selectServicesForLogs(
|
|
services: StackServiceConfig[],
|
|
serviceFilter: string | null,
|
|
): StackServiceConfig[];
|
|
|
|
export function formatServiceLogs(entries: Array<{
|
|
key: string;
|
|
logFilePath: string;
|
|
lines: string[];
|
|
}>): string;
|
|
|
|
export function resolveTemporalCli(options: {
|
|
pathLookupResult: string | null;
|
|
candidatePaths: string[];
|
|
existingPaths: Set<string>;
|
|
}): string | null;
|
|
|
|
export function createStackConfig(frontendRoot: string, backendRoot?: string): StackConfig;
|