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

Function isUsingExternalPermissions

src/utils/permissions/yoloClassifier.ts:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70/* eslint-enable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
71
72function isUsingExternalPermissions(): boolean {
73 if ((process.env.NCODE_BUILD_MODE !== 'noumena' && process.env.USER_TYPE !== 'ant')) return true
74 const config = getFeatureValue_CACHED_MAY_BE_STALE(
75 'ncode_auto_mode_config',
76 {} as AutoModeConfig,
77 )
78 return config?.forceExternalPermissions === true
79}
80
81/**
82 * Shape of the settings.autoMode config — the three classifier prompt

Callers 1

buildYoloSystemPromptFunction · 0.85

Tested by

no test coverage detected