Files
tkmind_go/ui/desktop/src/utils/tetrateSetup.ts
T
2025-09-09 13:43:46 -04:00

18 lines
446 B
TypeScript

import { startTetrateSetup as startTetrateSetupApi } from '../api';
export interface TetrateSetupStatus {
isRunning: boolean;
error: string | null;
}
export async function startTetrateSetup(): Promise<{ success: boolean; message: string }> {
try {
return (await startTetrateSetupApi({ throwOnError: true })).data;
} catch (e) {
return {
success: false,
message: `Failed to start Tetrate setup ['${e}]`,
};
}
}