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

Function main

freebuff/cli/release/index.js:638–656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

636}
637
638async function main() {
639 await ensureBinaryExists()
640
641 const child = spawnInstalledBinary()
642
643 const exitListener = (code, signal) => {
644 resetTerminal({
645 exitAlternateScreen: shouldExitAlternateScreen(code, signal),
646 })
647 printCrashDiagnostics(code, signal)
648 process.exit(signal ? 1 : (code || 0))
649 }
650
651 child.on('exit', exitListener)
652
653 setTimeout(() => {
654 checkForUpdates(child, exitListener)
655 }, 100)
656}
657
658main().catch((error) => {
659 console.error('❌ Unexpected error:', error.message)

Callers 1

index.jsFile · 0.70

Calls 5

setTimeoutFunction · 0.85
ensureBinaryExistsFunction · 0.70
spawnInstalledBinaryFunction · 0.70
checkForUpdatesFunction · 0.70
onMethod · 0.65

Tested by

no test coverage detected