MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / exitFreebuffCleanly

Function exitFreebuffCleanly

cli/src/utils/freebuff-exit.ts:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 * run the same cleanup.
13 */
14export async function exitFreebuffCleanly(): Promise<never> {
15 await withTimeout(
16 Promise.allSettled([flushAnalytics(), endFreebuffSessionBestEffort()]),
17 EXIT_CLEANUP_TIMEOUT_MS,
18 undefined,
19 )
20 process.exit(0)
21}

Callers 3

TakeoverPromptFunction · 0.90
exitCliFunction · 0.90
useFreebuffCtrlCExitFunction · 0.90

Calls 3

withTimeoutFunction · 0.90
flushAnalyticsFunction · 0.90

Tested by

no test coverage detected