basant307/AI_Governance_Project
048
1/**2 * @license3 * Copyright 2025 Google LLC4 * SPDX-License-Identifier: Apache-2.05 */6 7import { runExitCleanup } from './cleanup.js';8 9/**10 * Exit code used to signal that the CLI should be relaunched.11 */12export const RELAUNCH_EXIT_CODE = 42;13 14/**15 * Exits the process with a special code to signal that the parent process should relaunch it.16 */17export async function relaunchApp(): Promise<void> {18 await runExitCleanup();19 process.exit(RELAUNCH_EXIT_CODE);20}21 