// index.js const { API_VERSION, PLUGIN_NAME } = require("./lib/constants"); const configuration_workflow = require("./lib/configWorkflow"); const { headers } = require("./lib/headers"); // (cfg)=>Header[] const { routes } = require("./lib/routes"); // (cfg)=>PluginRoute[] const { layout } = require("./lib/layout"); // (cfg)=>PluginLayout|undefined const { onLoad } = require("./lib/onLoad"); module.exports = { sc_plugin_api_version: API_VERSION, // 1, gates compat (sbadmin2/index.js:575) plugin_name: PLUGIN_NAME, // "theme-builder" -- canonical key everywhere (plugin.ts:474) configuration_workflow, // PRESENCE => every facility is a (cfg)=>value factory // NOTE: exposed_configs intentionally OMITTED (see 5.3) headers, // Phase-1 overlay links; per-request only_if gated (see 5.4) routes, // public theme.css + admin editor/API layout, // (cfg)=> undefined in Phase 1; {wrap,...} in Phase 2 onLoad, // raw cfg; idempotent; per-tenant; rehydrates active CSS };