MCPcopy Create free account
hub / github.com/T-Lab-CUHKSZ/claude-code / logManagedSettings

Function logManagedSettings

src/main.tsx:229–242  ·  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

227 * and environment variables are applied before model resolution.
228 */
229function logManagedSettings(): void {
230 try {
231 const policySettings = getSettingsForSource('policySettings');
232 if (policySettings) {
233 const allKeys = getManagedSettingsKeysForLogging(policySettings);
234 logEvent('tengu_managed_settings_loaded', {
235 keyCount: allKeys.length,
236 keys: allKeys.join(',') as unknown as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
237 });
238 }
239 } catch {
240 // Silently ignore errors - this is just for analytics
241 }
242}
243
244// Check if running in debug/inspection mode
245function isBeingDebugged() {

Callers 1

runFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
logEventFunction · 0.85

Tested by

no test coverage detected