()
| 36 | * does not hide the direct tool surface. |
| 37 | */ |
| 38 | export 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. |
no test coverage detected