Store.Project.Entry (fnord v0.8.19)

View Source

Summary

Types

t()

@type t() :: %Store.Project.Entry{
  embeddings: term(),
  file: term(),
  key: term(),
  metadata: term(),
  outline: term(),
  project: term(),
  rel_path: term(),
  store_path: term(),
  summary: term()
}

Functions

create(entry)

@spec create(t()) :: :ok

delete(entry)

@spec delete(t()) :: [binary()]

embeddings_file_paths(entry)

exists_in_store?(entry)

@spec exists_in_store?(t()) :: boolean()

has_embeddings?(entry)

has_metadata?(entry)

has_outline?(entry)

has_summary?(entry)

hash_is_current?(entry)

@spec hash_is_current?(t()) :: boolean()

is_incomplete?(entry)

@spec is_incomplete?(t()) :: boolean()

is_stale?(entry)

@spec is_stale?(t()) :: boolean()

metadata_file_path(entry)

new_from_entry_path(project, entry_path)

@spec new_from_entry_path(Store.Project.t(), String.t()) :: t()

new_from_file_path(project, file)

@spec new_from_file_path(Store.Project.t(), String.t()) :: t()

outline_file_path(entry)

read(entry)

@spec read(t()) :: {:ok, map()} | {:error, any()}

read_embeddings(entry)

read_metadata(entry)

read_outline(entry)

read_source_file(entry)

@spec read_source_file(t()) :: {:ok, String.t()} | {:error, any()}

read_summary(entry)

save(entry, summary, outline, embeddings)

@spec save(t(), String.t(), String.t(), [float()]) :: :ok | {:error, any()}

save_embeddings(entry, embeddings)

save_metadata(entry)

save_outline(entry, data)

save_summary(entry, data)

summary_file_path(entry)