@@ -10,6 +10,7 @@ export type DeepcodingEnv = Record<string, string | undefined> & {
1010 THINKING_ENABLED ?: string ;
1111 REASONING_EFFORT ?: string ;
1212 DEBUG_LOG_ENABLED ?: string ;
13+ TELEMETRY_ENABLED ?: string ;
1314} ;
1415
1516export type ReasoningEffort = "high" | "max" ;
@@ -47,6 +48,7 @@ export type DeepcodingSettings = {
4748 thinkingEnabled ?: boolean ;
4849 reasoningEffort ?: ReasoningEffort ;
4950 debugLogEnabled ?: boolean ;
51+ telemetryEnabled ?: boolean ;
5052 notify ?: string ;
5153 webSearchTool ?: string ;
5254 mcpServers ?: Record < string , McpServerConfig > ;
@@ -61,6 +63,7 @@ export type ResolvedDeepcodingSettings = {
6163 thinkingEnabled : boolean ;
6264 reasoningEffort : ReasoningEffort ;
6365 debugLogEnabled : boolean ;
66+ telemetryEnabled : boolean ;
6467 notify ?: string ;
6568 webSearchTool ?: string ;
6669 mcpServers ?: Record < string , McpServerConfig > ;
@@ -313,6 +316,14 @@ export function resolveSettingsSources(
313316 parseBoolean ( userEnv . DEBUG_LOG_ENABLED ) ??
314317 false ;
315318
319+ const telemetryEnabled =
320+ parseBoolean ( systemEnv . TELEMETRY_ENABLED ) ??
321+ parseBoolean ( projectSettings ?. telemetryEnabled ) ??
322+ parseBoolean ( projectEnv . TELEMETRY_ENABLED ) ??
323+ parseBoolean ( userSettings ?. telemetryEnabled ) ??
324+ parseBoolean ( userEnv . TELEMETRY_ENABLED ) ??
325+ true ;
326+
316327 const notify =
317328 trimString ( systemEnv . NOTIFY ) || trimString ( projectSettings ?. notify ) || trimString ( userSettings ?. notify ) || "" ;
318329 const webSearchTool =
@@ -329,6 +340,7 @@ export function resolveSettingsSources(
329340 thinkingEnabled,
330341 reasoningEffort,
331342 debugLogEnabled,
343+ telemetryEnabled,
332344 notify : notify || undefined ,
333345 webSearchTool : webSearchTool || undefined ,
334346 mcpServers : mergeMcpServers ( userSettings , projectSettings , userEnv , projectEnv , systemEnv ) ,
0 commit comments