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

Function isCCRMode

src/services/api/errors.ts:215–217  ·  view source on GitHub ↗

* Check if we're in CCR (NCode Remote) mode. * In CCR mode, auth is handled via JWTs provided by the infrastructure, * not via /login. Transient auth errors should suggest retrying, not logging in.

()

Source from the content-addressed store, hash-verified

213 * not via /login. Transient auth errors should suggest retrying, not logging in.
214 */
215function isCCRMode(): boolean {
216 return isEnvTruthy(process.env.CLAUDE_CODE_REMOTE)
217}
218
219function getCurrentErrorSession() {
220 try {

Callers 1

Calls 1

isEnvTruthyFunction · 0.90

Tested by

no test coverage detected