25 instantiations of EnvironmentDetectionRuleWithResult
dotnet-aot (25)
parent\dotnet\Telemetry\LLMEnvironmentDetectorForTelemetry.cs (25)
31
new
EnvironmentDetectionRuleWithResult
<string>("cowork", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CLAUDE_CODE_IS_COWORK")),
33
new
EnvironmentDetectionRuleWithResult
<string>("claude", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CLAUDECODE", "CLAUDE_CODE", "CLAUDE_CODE_ENTRYPOINT")),
35
new
EnvironmentDetectionRuleWithResult
<string>("cursor", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CURSOR_EDITOR", "CURSOR_AI", "CURSOR_TRACE_ID", "CURSOR_AGENT")),
37
new
EnvironmentDetectionRuleWithResult
<string>("gemini", new AnyPresentEnvironmentRule(getEnvironmentVariable, "GEMINI_CLI")),
39
new
EnvironmentDetectionRuleWithResult
<string>("copilot-cli", new AnyPresentEnvironmentRule(
43
new
EnvironmentDetectionRuleWithResult
<string>("copilot-app", new EnvironmentVariableValueRule(getEnvironmentVariable, "AI_AGENT", "github_copilot_app_agent")),
46
new
EnvironmentDetectionRuleWithResult
<string>("copilot-vscode", new AnyMatchEnvironmentRule(
50
new
EnvironmentDetectionRuleWithResult
<string>("codex", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CODEX_CLI", "CODEX_SANDBOX", "CODEX_CI", "CODEX_THREAD_ID")),
52
new
EnvironmentDetectionRuleWithResult
<string>("aider", new EnvironmentVariableValueRule(getEnvironmentVariable, "OR_APP_NAME", "Aider")),
54
new
EnvironmentDetectionRuleWithResult
<string>("plandex", new EnvironmentVariableValueRule(getEnvironmentVariable, "OR_APP_NAME", "plandex")),
56
new
EnvironmentDetectionRuleWithResult
<string>("amp", new AnyPresentEnvironmentRule(getEnvironmentVariable, "AMP_HOME")),
58
new
EnvironmentDetectionRuleWithResult
<string>("qwen", new AnyPresentEnvironmentRule(getEnvironmentVariable, "QWEN_CODE")),
60
new
EnvironmentDetectionRuleWithResult
<string>("droid", new AnyPresentEnvironmentRule(getEnvironmentVariable, "DROID_CLI")),
62
new
EnvironmentDetectionRuleWithResult
<string>("opencode", new AnyPresentEnvironmentRule(getEnvironmentVariable, "OPENCODE_AI")),
64
new
EnvironmentDetectionRuleWithResult
<string>("zed", new AnyPresentEnvironmentRule(getEnvironmentVariable, "ZED_ENVIRONMENT", "ZED_TERM")),
66
new
EnvironmentDetectionRuleWithResult
<string>("kimi", new AnyPresentEnvironmentRule(getEnvironmentVariable, "KIMI_CLI")),
68
new
EnvironmentDetectionRuleWithResult
<string>("openhands", new EnvironmentVariableValueRule(getEnvironmentVariable, "OR_APP_NAME", "OpenHands")),
70
new
EnvironmentDetectionRuleWithResult
<string>("goose", new AnyPresentEnvironmentRule(getEnvironmentVariable, "GOOSE_TERMINAL", "GOOSE_PROVIDER")),
72
new
EnvironmentDetectionRuleWithResult
<string>("cline", new AnyPresentEnvironmentRule(getEnvironmentVariable, "CLINE_TASK_ID")),
74
new
EnvironmentDetectionRuleWithResult
<string>("roo", new AnyPresentEnvironmentRule(getEnvironmentVariable, "ROO_CODE_TASK_ID")),
76
new
EnvironmentDetectionRuleWithResult
<string>("windsurf", new AnyPresentEnvironmentRule(getEnvironmentVariable, "WINDSURF_SESSION")),
78
new
EnvironmentDetectionRuleWithResult
<string>("replit", new AnyPresentEnvironmentRule(getEnvironmentVariable, "REPL_ID")),
80
new
EnvironmentDetectionRuleWithResult
<string>("augment", new AnyPresentEnvironmentRule(getEnvironmentVariable, "AUGMENT_AGENT")),
82
new
EnvironmentDetectionRuleWithResult
<string>("antigravity", new AnyPresentEnvironmentRule(getEnvironmentVariable, "ANTIGRAVITY_AGENT")),
84
new
EnvironmentDetectionRuleWithResult
<string>("generic_agent", new AnyPresentEnvironmentRule(getEnvironmentVariable, "AGENT_CLI")),
3 references to EnvironmentDetectionRuleWithResult
dotnet-aot (3)
parent\dotnet\Telemetry\LLMEnvironmentDetectorForTelemetry.cs (3)
15
private static readonly
EnvironmentDetectionRuleWithResult
<string>[] s_detectionRules =
18
private readonly
EnvironmentDetectionRuleWithResult
<string>[] _detectionRules;
27
private static
EnvironmentDetectionRuleWithResult
<string>[] CreateDetectionRules(