Settings interface exported

Last updated: 2026-03-05T10:53:28.867Z

Metrics

LOC: 51 Complexity: 1 Params: 0

Signature

interface Settings

Summary

Extension settings

Source Code

export interface Settings {
  /** Whether to auto-fill on page load */
  autoFillOnLoad: boolean;
  /** Default generation strategy */
  defaultStrategy: "ai" | "tensorflow" | "random";
  /** Whether to use Chrome built-in AI when available */
  useChromeAI: boolean;
  /** When true, AI is tried before saved forms, rules and generators */
  forceAIFirst: boolean;
  /** Keyboard shortcut to trigger fill */
  shortcut: string;
  /** Locale for generated data */
  locale: "pt-BR" | "en-US";
  /** Whether to highlight filled fields */
  highlightFilled: boolean;
  /** Whether to enable field detection cache */
  cacheEnabled: boolean;
  /** Whether to show the per-field fill/inspect icon */
  showFieldIcon: boolean;
  /** Position of the field icon relative to the input */
  fieldIconPosition: "above" | "inside" | "below";
  /** Ordered list of classification strategies */
  detectionPipeline: DetectionStrategyEntry[];

  /** Whether debug logging is enabled (all console output is suppressed when false) */
  debugLog: boolean;
  /** Minimum log level to output: debug < info < warn < error */
  logLevel: "debug" | "info" | "warn" | "error";
  /** Maximum number of log entries to keep in the persistent log store (50–5000) */
  logMaxEntries: number;
  /** Preferred UI language. "auto" follows the browser/Chrome locale. */
  uiLanguage: "auto" | "en" | "pt_BR" | "es";
  /** When true, only empty fields are filled — fields with an existing value are skipped */
  fillEmptyOnly: boolean;

  /** Whether to auto-start the DOM watcher when the page loads */
  watcherEnabled: boolean;
  /** Debounce interval in ms for the DOM watcher (100–5000) */
  watcherDebounceMs: number;
  /** Whether the DOM watcher should auto-refill new fields */
  watcherAutoRefill: boolean;
  /** Whether the DOM watcher should observe inside Shadow DOM trees (experimental) */
  watcherShadowDOM: boolean;

  /** Timeout in ms for AI field generation calls (2000–15000) */
  aiTimeoutMs: number;
  /** When true, shows a persistent AI badge on fields filled by AI (can be dismissed) */
  showAiBadge: boolean;
  /** When true, shows a brief toast notification after filling all fields */
  showFillToast: boolean;
}

No outgoing dependencies.

Impact (Incoming)

graph LR Settings["Settings"] main["main"] debounce["debounce"] setNativeValue["setNativeValue"] parseIncomingMessage["parseIncomingMessage"] getSettings["getSettings"] makeInput["makeInput"] main -->|uses| Settings debounce -->|uses| Settings setNativeValue -->|uses| Settings parseIncomingMessage -->|uses| Settings getSettings -->|uses| Settings makeInput -->|uses| Settings style Settings fill:#dbeafe,stroke:#2563eb,stroke-width:2px click Settings "dbe5880af98e954d.html" click main "14348c66c1e5604a.html" click debounce "806c18ff0675c421.html" click setNativeValue "334bd99609d7c37c.html" click parseIncomingMessage "a979c41c6f827a26.html" click getSettings "99db54620b94a08b.html" click makeInput "3b463c3c3297bb7c.html"
SourceType
main uses
debounce uses
setNativeValue uses
parseIncomingMessage uses
getSettings uses
makeInput uses