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

Function isSDKBuilt

cli/src/__tests__/test-utils.ts:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 * Check if the SDK is built by checking for the dist directory
36 */
37export function isSDKBuilt(): boolean {
38 try {
39 const sdkDistDir = path.join(__dirname, '../../../sdk/dist')
40 const possibleArtifacts = ['index.js', 'index.mjs', 'index.cjs']
41 return possibleArtifacts.some((file) =>
42 fs.existsSync(path.join(sdkDistDir, file)),
43 )
44 } catch {
45 return false
46 }
47}
48
49/**
50 * Sleep utility for async delays

Calls

no outgoing calls

Tested by

no test coverage detected