/** * Auth Addon Plugin * * Thin delegation layer for @factiii/auth. * Scanfix logic lives in the @factiii/auth package — stack loads and * runs those fixes at runtime via resolveAuthPlugin(). * * When @factiii/auth exports a `stackPlugin` object with a `fixes` array, * those fixes are used. Otherwise, falls back to inline scanfixes. * * ============================================================ * PLUGIN STRUCTURE * ============================================================ * * **scanfix/** - Fallback scan/fix operations (used when @factiii/auth * does not yet export stackPlugin) * - setup.ts - Dev stage: package check, init, doctor, migrate * - secrets.ts - Secrets stage: JWT_SECRET, OAuth keys * - validate.ts - Staging/Prod: env var validation * * **index.ts** - This file (thin loader) * - resolveAuthPlugin() - dynamically loads fixes from @factiii/auth * - shouldLoad() - auto-detects @factiii/auth in project * - Falls back to inline scanfixes if @factiii/auth doesn't export plugin * ============================================================ */ import type { FactiiiConfig, Fix, ServerOS } from '../../../types/index.js'; declare class AuthAddon { static readonly id = "auth"; static readonly name = "Auth (@factiii/auth)"; static readonly category: 'addon'; static readonly version = "1.0.0"; /** * Compatible with all server types (auth is app-level, not OS-specific) */ static readonly compatibleServers: ServerOS[]; static readonly defaultServer: ServerOS; static readonly requiredEnvVars: string[]; static readonly configSchema: Record; static readonly autoConfigSchema: Record; /** * Auto-detect @factiii/auth in package.json dependencies. * No manual config needed — plugin loads automatically. */ static shouldLoad(rootDir: string, _config: FactiiiConfig): Promise; static helpText: Record; static readonly fixes: Fix[]; /** * Auto-detect auth configuration */ static detectConfig(rootDir: string): Promise>; private _config; constructor(config: FactiiiConfig); } export default AuthAddon; //# sourceMappingURL=index.d.ts.map