/**
 * Returns the telemetry entry point based on the runtime context.
 * "testbot" when running as part of the GitHub Action test bot,
 * "mcp" for regular IDE/MCP usage.
 */
import { isTestbotEnabled } from "./featureFlags.js";
export function getEntryPoint() {
    return isTestbotEnabled() ? "testbot" : "mcp";
}
/**
 * Detects the CI/CD platform from environment variables.
 * Returns undefined when not running in CI.
 */
export function getCIPlatform() {
    if (process.env.GITHUB_ACTIONS === "true")
        return "github";
    if (process.env.GITLAB_CI === "true")
        return "gitlab";
    if (process.env.JENKINS_URL)
        return "jenkins";
    if (process.env.CIRCLECI === "true")
        return "circleci";
    return undefined;
}
