Endo
    Preparing search index...
    • Open (or create) the state store. Reads the file once at construction; subsequent mutators write through synchronously. The store keeps an in-memory copy so the hot path (rendering the recent list) doesn't re-read the file on every frame.

      Parameters

      • Optionaloptions: { filePath?: string; onError?: (err: unknown, op: "write" | "read") => void } = {}
        • OptionalfilePath?: string

          Override the default location.

        • OptionalonError?: (err: unknown, op: "write" | "read") => void

          Optional sink for IO errors. Defaults to a no-op so a busted home directory can't crash the TUI on first launch.

      Returns StateStore