Lem/Docs

library analyze

Save a completed Markdown analysis on one library paper.

Invocation#

Shell
lem-cli library analyze <source> --file <analysis.md>

Inputs and options#

  • The paper must already exist in the library, named by any selector that resolves to it. --file is required and reads UTF-8 Markdown; a ~/ prefix is expanded.

Output and state#

Trims and stores the supplied analysis, sets analyzed_at, atomically rewrites the manifest, and prints the updated paper. It makes no model call.

Refusals#

  • A missing source refuses with “library analyze needs one arXiv id, DOI, or URL”; any shape other than exactly --file <path> refuses with “library analyze needs --file <path>”.
  • An unreadable file, empty analysis, unsupported selector, absent library record, or manifest write failure is printed as a lem-cli refusal and exits nonzero.