MCPcopy
hub / github.com/codeaashu/claude-code / logManagedSettings

Function logManagedSettings

src/main.tsx:216–229  ·  view source on GitHub ↗

* Log managed settings keys to Statsig for analytics. * This is called after init() completes to ensure settings are loaded * and environment variables are applied before model resolution.

()

Source from the content-addressed store, hash-verified

214 * and environment variables are applied before model resolution.
215 */
216function logManagedSettings(): void {
217 try {
218 const policySettings = getSettingsForSource('policySettings');
219 if (policySettings) {
220 const allKeys = getManagedSettingsKeysForLogging(policySettings);
221 logEvent('tengu_managed_settings_loaded', {
222 keyCount: allKeys.length,
223 keys: allKeys.join(',') as unknown as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
224 });
225 }
226 } catch {
227 // Silently ignore errors - this is just for analytics
228 }
229}
230
231// Check if running in debug/inspection mode
232function isBeingDebugged() {

Callers 1

runFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
logEventFunction · 0.85

Tested by

no test coverage detected