Files
stack/docs/docs/cli/zot-fetch.md
kert 592b845584
All checks were successful
CI / lint (push) Successful in 1m9s
CI / notebooks-smoke (push) Successful in 1m54s
Deploy / changes (push) Successful in 23s
CI / test (push) Successful in 4m25s
Infra CI / notebooks (push) Successful in 1m8s
Infra CI / zotero (push) Successful in 19s
Infra CI / docs (push) Successful in 1m21s
Infra CI / api (push) Successful in 1m15s
Infra CI / llm (push) Successful in 52s
Infra CI / mc (push) Successful in 17s
Infra CI / bcda (push) Successful in 1m47s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Successful in 46s
Package Supply Chain / pkg-supply-chain (push) Successful in 1m31s
Deploy / api (push) Successful in 1m12s
Deploy / bcda (push) Successful in 1m47s
Deploy / mc (push) Has been skipped
Deploy / llm (push) Successful in 1m13s
Deploy / report (push) Successful in 14s
feat(bib): nightly pull of every open regulations.gov docket
Nothing pulled open dockets on a schedule, so the FY2027 Hospice
(CMS-2026-1156, 215 comments) and CY2027 ESRD (CMS-2026-2245, 228)
proposed-rule dockets sat unpulled for months.

- `stack bib pull-open-dockets`: walk every unsealed docket from its
  watermark (attachments on), then enrich the new stubs at the 1000/hr
  reg.gov budget. Sealed dockets cost nothing; a docket quiet long enough
  after its period closes seals itself, so the job idles between seasons.
- Comment Pull workflow (02:30 nightly, generated): register this year's
  PFS proposed rule when it appears, pull + enrich the open dockets in
  the api container, index new comments in the llm container.
- compose: api gets REGULATIONS_GOV_API_KEY and ./.state/comments (rw);
  the llm extra gains typer so `stack llm index` runs inside llm.
- CLI reference regenerated for the new command.

Security: streamlit 1.66.0 capped pillow <13, leaving pillow 12.3.0 with
41 advisories (5 critical) fixed only in 13.0. streamlit 1.66.1 (Oct 21)
lifts the cap; exempted from the 7-day cooldown via exclude-newer-package,
and constraint-dependencies holds pillow >=13. Lock scans clean.
2026-10-27 15:40:05 -04:00

3.1 KiB

title, sidebar_position
title sidebar_position
stack zot fetch 105

stack zot fetch

Usage: stack zot fetch [OPTIONS]                                               
                                                                                
 Attach an open-access PDF to items that lack a full text.                      
                                                                                
 Per item: every Unpaywall location, then Semantic Scholar, PMC and             
 Europe PMC — open-access copies only (no DOI? a Crossref title match           
 first). Items with a PDF/EPUB, deleted items and ``document`` items            
 are skipped. Every attempt is a ledger line; a miss waits 30 days              
 unless --retry.                                                                
                                                                                
 Environment: UNPAYWALL_EMAIL — the contact address Unpaywall requires          
 (default dev@fhirworx.io).                                                     
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --collection                 <str>   Collection name.                        │
│ --tag                        <str>   Tag name.                               │
│ --type                       <str>   Item type, e.g. journalArticle, book.   │
│ --item                       <str>   One item key.                           │
│ --all                                Every eligible item.                    │
│ --limit                      <int>   Stop after N attempts (0 = all).        │
│                                      [default: 0]                            │
│ --dry-run                            Show the DOI and open-access locations  │
│                                      per item; write nothing. Reads only, so │
│                                      the Zotero desktop keeps running.       │
│ --retry                              Retry items the ledger marked as        │
│                                      misses.                                 │
│ --db                         <path>                                          │
│ --ledger                     <path>  [default:                               │
│                                      data/zotero/fetch_ledger.jsonl]         │
│ --hold          --no-hold            Stop the zotero container while         │
│                                      writing.                                │
│                                      [default: hold]                         │
│ --help                               Show this message and exit.             │
╰──────────────────────────────────────────────────────────────────────────────╯