import { DefaultLogger } from './infrastructure/logger.js'; import { DefaultPathResolver } from './infrastructure/path-resolver.js'; import { DefaultSecretVault } from './security/secret-vault.js'; import { type Config } from './types/config.js'; import { type WstackPaths } from './utils/wstack-paths.js'; /** * Options for {@link bootConfig}. Both the CLI and the WebUI server boot the * same way; the only intentional differences are the label used in the * plaintext-secret migration notice and whether CLI flags are supplied. */ export interface BootConfigOptions { /** * Parsed CLI flags. `cwd` relocates path resolution; `provider`/`model`/ * `log-level`/`verbose`/`trace`/`yolo`/`no-features` are patched into the * loaded config (see {@link flagsToConfigPatch}). Defaults to `{}` (the * WebUI server passes no flags). */ flags?: Record; /** * Label shown in the `[