// @bun
import {
  IS_RELEASE_BUILD
} from "./chunk-px7fts59.js";

// src/utils/feature-flags.ts
var RELEASE_FLAGS = {
  enable_agent_0: true,
  enable_guided_setup: true
};
function getOverrides() {
  const envValue = process.env.ADK_FEATURE_FLAGS;
  if (!envValue)
    return null;
  return new Set(envValue.split(",").map((s) => s.trim()).filter(Boolean));
}
function isFeatureEnabled(flagName, _ctx) {
  const overrides = getOverrides();
  if (overrides)
    return overrides.has(flagName);
  if (!IS_RELEASE_BUILD)
    return true;
  return RELEASE_FLAGS[flagName] ?? false;
}
function destroyFeatureFlags() {}

export { isFeatureEnabled, destroyFeatureFlags };
