Project Files
src / config / config-defaults.ts
/**
* Built-in default for each plugin configuration field, keyed by schematic field name.
* Shared by the config schematics (as the UI defaults) and the config resolver (as the
* fallbacks applied when a field reads `null` before the UI has committed the schematic
* default), so the two layers cannot drift apart. The `safeSearch` field is absent
* because its schematic default is the auto sentinel, which the resolver maps to an
* effective mode separately.
*/
export const CONFIG_DEFAULTS = {
browser: "firefox",
includeSnippets: true,
enrichResults: true,
limitWebResults: true,
webMaxResults: 10,
limitImageResults: true,
imageMaxResults: 10,
contentFormat: "markdown",
contentLimit: 10_000,
maxResponseMb: 5,
maxImages: 10,
maxImageMb: 10,
requestIntervalSeconds: 5,
maxRetries: 2,
retryInitialBackoffSeconds: 1,
retryMaxBackoffSeconds: 30,
searchCacheTtlSeconds: 900,
websiteCacheTtlSeconds: 600,
} as const