MCPcopy Create free account
hub / github.com/Noumena-Network/code / isJsReplEnabled

Function isJsReplEnabled

src/tools/REPLTool/constants.ts:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 * does not hide the direct tool surface.
37 */
38export function isJsReplEnabled(): boolean {
39 if (!isInternalBuild()) return false
40 if (!isCliLikeEntrypoint()) return false
41 if (isEnvDefinedFalsy(process.env.NCODE_JS_REPL)) return false
42 if (isEnvTruthy(process.env.NCODE_JS_REPL)) return true
43 if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_JS_REPL)) return false
44 if (isEnvTruthy(process.env.CLAUDE_CODE_JS_REPL)) return true
45 return false
46}
47
48/**
49 * py_repl requires a native host that is not part of the OSS export.

Callers 2

getAllBaseToolsFunction · 0.85

Calls 4

isEnvTruthyFunction · 0.90
isInternalBuildFunction · 0.85
isCliLikeEntrypointFunction · 0.85
isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected