export type Profile = "light" | "full" | "site"; export declare const PROFILES: ReadonlyArray; export declare function isProfile(value: unknown): value is Profile; /** * The curated design set that ships in light (owner decision, engine PR #207): * 8 curated packs + 2 structural keeps that pruning would break: * - aurora-shop: the webshop-mode default (`inferDesignFromIndustry` returns * it whenever ecommerce is enabled — light ships the full mode-gated * webshop, so flipping mode must keep working). * - studio: designs/studio/sections/ is the shared section library that the * CORE builder (lib/builder/section-registry.tsx), aurora-site and jungle * homepages, and scripts/build-registry-source.ts all import from. */ export declare const LIGHT_KEPT_DESIGNS: readonly string[]; /** slug → exported DesignPack const in designs//index.ts (template v0.34.0). */ export declare const LIGHT_PRUNED_DESIGNS: ReadonlyArray<{ slug: string; exportName: string; }>; /** * slug → exported manifest const in plugins//manifest.ts. A full-only * plugin is de-registered from plugins/registry.ts (prunePluginsRegistrySource) * AND its dir removed (via LIGHT_EXCLUDED_PATHS below). Without this, the light * profile prunes hoptify's impl (lib/hoptify, app/admin/hoptify) but leaves the * hoptify entry in the registry, so the shipped tests/unit/plugins.test.ts * "every declared file exists" + "route mounts wired" invariants fail on a * fresh light scaffold. hoptify is the only registry plugin whose files the * light profile prunes (a2a/ucp are pruned modules, not registry plugins). */ export declare const LIGHT_PRUNED_PLUGINS: ReadonlyArray<{ slug: string; exportName: string; }>; /** * Paths (relative to the scaffold root) removed by the light profile. * Grouped by audit classification. Missing paths are skipped silently so a * future template that already dropped (or moved) a module doesn't error. */ export declare const LIGHT_EXCLUDED_PATHS: readonly string[]; /** * package.json `dependencies` that are PROVEN ORPHANS in a light scaffold — * zero `import`/`require`/string references anywhere outside package.json * (grep over the full v0.34.0 light scaffold, both quote styles, including * subpath imports and config files). * * - "@ai-sdk/openai": the engine only ever imports * "@ai-sdk/openai-compatible" (lib/ai/client.ts, lib/ai/embeddings.ts) — * the plain provider package is referenced nowhere, in light OR full. * ~3.6 MB in node_modules. * * NOT pruned despite zero direct imports: `pg` (runtime peer of * "@prisma/adapter-pg", which lib/db.ts dynamic-imports for the Postgres DB * option — DB flexibility is core) and every `@types/*` package (ambient * types for tsc, never imported by name). */ export declare const LIGHT_PRUNED_DEPENDENCIES: readonly string[]; /** * package.json `devDependencies` that are orphaned in a light scaffold: * * - "fast-check": its sole consumer is * tests/unit/negotiation/monotonicity.property.test.ts — a pruned path * (negotiation is FULL-ONLY). The fast-check@3 that prisma pulls in * transitively is unaffected. ~1.4 MB. * - "ts-node": referenced nowhere — the seed/scripts all run via tsx, and * prisma.config.ts explicitly documents "tsx, NOT ts-node". Orphaned in * full too (engine-level cleanup candidate). ~1.1 MB + transitive deps. */ export declare const LIGHT_PRUNED_DEV_DEPENDENCIES: readonly string[]; export type PruneResult = { src: string; missing: string[]; }; /** * Remove pruned designs' import lines + DESIGNS-map entries from * designs/index.ts source. Line-anchored (the inverse of design-install's * addToIndexSource). Slugs whose lines aren't found are reported in `missing` * (template drift) — never fatal. */ export declare function pruneDesignIndexSource(src: string, pruned?: ReadonlyArray<{ slug: string; exportName: string; }>): PruneResult; /** * Remove pruned plugins' import lines + PLUGINS-array entries from * plugins/registry.ts source. Mirrors pruneDesignIndexSource: a full-only * plugin is de-registered so the shipped plugins.test.ts invariants * ("every declared file exists", "route mounts wired") stay green once its * files are pruned. Slugs whose lines aren't found are reported in `missing` * (template drift) — never fatal. */ export declare function prunePluginsRegistrySource(src: string, pruned?: ReadonlyArray<{ slug: string; exportName: string; }>): PruneResult; /** * Remove pruned designs' DESIGN_OPTIONS entries (flat `{ slug: "x", … },` * object literals — no nested braces) and any MIXABLE_DESIGN_SLUGS lines * from designs/options.ts source. */ export declare function pruneDesignOptionsSource(src: string, slugs?: readonly string[]): PruneResult; /** * Remove pruned designs' DESIGN_MOTIFS entries from * components/svg-items/design-motifs.ts source (pure-data map; the * marketplace-manifest invariant test requires every key to be a registered * design). Keys are quoted ("editorial-ink":) or bare idents (engineered:). */ export declare function pruneDesignMotifsSource(src: string, slugs?: readonly string[]): string; /** * Remove the proven-orphan deps (see LIGHT_PRUNED_DEPENDENCIES / * LIGHT_PRUNED_DEV_DEPENDENCIES) from a package.json source string. Runs * BEFORE install, so the scaffold never downloads them. Deps not present * (template drift) are reported in `missing` — never fatal. Formatting * follows the existing package.json convention (2-space JSON + newline, * same as migratePrismaConfig). */ export declare function prunePackageJsonForLight(src: string, deps?: readonly string[], devDeps?: readonly string[]): PruneResult; /** * Remove the pruned deps' root-importer entries from pnpm-lock.yaml source so * the lockfile matches the pruned package.json. Without this, the first * `pnpm install` detects the mismatch and re-runs the resolution step * (measured ~+7 s warm, more on real networks); with it, pnpm reports * "Lockfile is up to date, resolution step is skipped" and never downloads * the pruned packages — verified e2e, pnpm does not rewrite the result. * * Scope: ONLY the `importers` section (everything before the top-level * `packages:`/`snapshots:` key). The now-unreachable entries left in * `packages:`/`snapshots:` are tolerated by pnpm (extra entries are ignored; * missing ones are not) and get pruned on its next natural lockfile write. * Each importer block is ` :` (6-space key, alone on its line — * snapshot dep lines put the version on the same line, so they can't match) * followed by 8-space `specifier`/`version` lines. Fail-soft: a non-matching * name is reported in `missing`; a failed prune just means pnpm falls back to * the (slower) reconcile install, which the e2e proved keeps all pins. */ export declare function pruneLockfileForLight(src: string, names?: readonly string[]): PruneResult; /** * Light brand.config defaults on top of the website-corporate template patch: * the only plugin-tier flag the template ships default-ON is `newsletter` — * flip it off (the module stays; light is default-quiet). Everything else the * audit marks plugin/full-only is already false in the template (verified at * v0.34.0); core flags (aiStylist, mcpPublic, cartwrightBadge, welcomeGuide, * motion trio) keep their shipped defaults. */ export declare function patchBrandConfigForLightContent(src: string): string; export type LightProfileReport = { removedPaths: string[]; warnings: string[]; }; export declare function applyCodemod(targetDir: string, relPath: string, transform: (src: string) => string, warnings: string[]): void; /** * Apply the light profile to a freshly downloaded scaffold. Fail-soft by * design: a missing path or non-matching codemod produces a warning, never a * crash — the scaffold must always complete. Writes .cartwright/profile.json * so future tooling (`npx cartwright add `) can see what this project is. */ export declare function applyLightProfile(targetDir: string): LightProfileReport; /** Human summary for the scaffold note. */ export declare function lightProfileNote(): string;