MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / kernelSupports

Function kernelSupports

src/extraction/kernel/loader.ts:170–173  ·  view source on GitHub ↗
(language: string)

Source from the content-addressed store, hash-verified

168
169/** True when the kill switch is off, a verified binary is loaded, and it supports `language`. */
170export function kernelSupports(language: string): boolean {
171 if (process.env.CODEGRAPH_KERNEL === '0') return false;
172 return getKernel() !== null && kernelLanguages.has(language);
173}
174
175/** Test hook: forget the loaded module so a changed env is re-evaluated. */
176export function resetKernelForTests(): void {

Callers 1

kernelRoutesFunction · 0.90

Calls 2

getKernelFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected