Skip to main content

Module storage

Module storage 

Source
Expand description

Project-local docs materialization + the ask list view. Rust port of packages/cli/src/storage.ts.

save_docs writes (or links/refs) the fetched docs under .ask/docs/<name>@<version>/; list_docs joins ask.json (intent) with .ask/resolved.json (last materialization) for ask list.

Re-exports§

pub use crate::ask_json::StoreMode;

Structs§

ListDocsEntry
One ask list row, joined from ask.json + .ask/resolved.json. Entries declared but never installed surface as version: "unresolved".
SaveDocsOptions
Options for save_docs.

Enums§

ListSource
Source classification for a list entry.

Functions§

get_docs_dir
get_library_docs_dir
list_docs
remove_docs
Remove project-local docs for name (all versions when version is None).
save_docs
Materialize docs into the project. Returns the path AGENTS.md should point at.