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

Function main

cli/release/index.js:651–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

649}
650
651async function main() {
652 await ensureBinaryExists()
653
654 const child = spawnInstalledBinary()
655
656 const exitListener = (code, signal) => {
657 resetTerminal({
658 exitAlternateScreen: shouldExitAlternateScreen(code, signal),
659 })
660 printCrashDiagnostics(code, signal)
661 process.exit(signal ? 1 : (code || 0))
662 }
663
664 child.on('exit', exitListener)
665
666 setTimeout(() => {
667 checkForUpdates(child, exitListener)
668 }, 100)
669}
670
671main().catch((error) => {
672 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