import {
  init_cjs_shims
} from "./chunk-7GH3YGSC.js";

// src/lib/constants.ts
init_cjs_shims();
import { homedir } from "node:os";
var FRAGMENT_HOME = process.env.FRAGMENT_PATH ?? `${homedir()}/.fragment`;
var FRAGMENT_VERSION_PATH = `${FRAGMENT_HOME}/version.json`;
var FRAGMENT_AUTH_PATH = `${FRAGMENT_HOME}/auth.json`;
var FRAGMENT_ACCESS_TOKEN_PATH = `${FRAGMENT_HOME}/token.json`;
var DEV_POSTHOG_API_KEY = "phc_eHLtmjtSfHGfAMzmIxjgtwjp0SP8g1KrIbE1sM8jZVX";
var PROD_POSTHOG_API_KEY = "phc_dMs2ythnUI9lm53ZM60NawtEw6TypZuYngHb4SKAnV9";
var getPosthogApiKey = () => {
  const isTestEnv = process.env.FRAGMENT_LOCAL_DEV === "true";
  if (isTestEnv) {
    return DEV_POSTHOG_API_KEY;
  }
  return PROD_POSTHOG_API_KEY;
};

export {
  FRAGMENT_HOME,
  FRAGMENT_VERSION_PATH,
  FRAGMENT_AUTH_PATH,
  FRAGMENT_ACCESS_TOKEN_PATH,
  getPosthogApiKey
};
