Current section

Files

Jump to
liter_llm lib liter_llm refresh_outcome.ex
Raw

lib/liter_llm/refresh_outcome.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:645d8ff0f3a0ef7684f9b9ea4ce1ae251a78a2a3481ecdeabf7643c53d644bb0
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule LiterLlm.RefreshOutcome do
@moduledoc "Result of a [`refresh_catalog`] call."
@typedoc "Result of a [`refresh_catalog`] call."
@type t :: :disabled | :from_cache | :fetched
@disabled :disabled
@from_cache :from_cache
@fetched :fetched
@doc "`config.enabled` was `false`; no network, filesystem, or overlay activity occurred."
@spec disabled() :: t()
def disabled, do: @disabled
@doc "The on-disk cache was fresh (age < `ttl_seconds`); the overlay was installed from the cached file without a network request."
@spec from_cache() :: t()
def from_cache, do: @from_cache
@doc "The catalog was fetched over the network, the cache file was (best-effort) refreshed, and the overlay was installed from the fetched catalog."
@spec fetched() :: t()
def fetched, do: @fetched
end