"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_FEATURE_FLAGS = exports.FLAG_DEFINITIONS = void 0;
/**
 * Feature Flag Registry
 *
 * To add a new flag:
 *  1. Create the flag in PostHog with targeting rules (key is the flag name)
 *  2. Add an entry to FLAG_DEFINITIONS below (key must match the PostHog flag key)
 *
 * That's it — the types, defaults, and frontend atom all derive from this object.
 *
 * Flags are evaluated server-side via PostHog and served to the frontend
 * through GET /api/config → featureFlagsAtom.
 *
 * Local dev override: set RIVET_FLAG_<UPPER_SNAKE_KEY>=true|false in your env.
 */
exports.FLAG_DEFINITIONS = {
    resize: { default: false },
    variants: { default: false },
    designSystemEditor: { default: false },
    branchDiff: { default: false },
    gitUi: { default: true },
    createProject: { default: false },
    desktopForceUpgrade: { default: false },
    deployPrototype: { default: false },
    // Generative Editor Interfaces (NL → generated controls). Off by default —
    // still in progress. See docs/generative-editor-interfaces.md.
    generativeControls: { default: false },
};
exports.DEFAULT_FEATURE_FLAGS = Object.fromEntries(Object.entries(exports.FLAG_DEFINITIONS).map(([key, def]) => [
    key,
    { isEnabled: def.default },
]));
//# sourceMappingURL=flags.js.map