docs(cli): regenerate the CLI reference — typer 0.27 help format, new nlm and zot fetch pages
Some checks failed
CI / lint (push) Successful in 48s
CI / notebooks-smoke (push) Successful in 1m57s
Deploy / changes (push) Successful in 15s
CI / test (push) Successful in 3m52s
Infra CI / notebooks (push) Successful in 1m4s
Infra CI / zotero (push) Successful in 19s
Infra CI / api (push) Successful in 1m14s
Infra CI / docs (push) Successful in 1m25s
Infra CI / llm (push) Successful in 54s
Infra CI / mc (push) Successful in 19s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Infra CI / bcda (push) Successful in 1m39s
Deploy / docs (push) Successful in 36s
Deploy / api (push) Successful in 1m16s
Deploy / report (push) Has been cancelled
Deploy / mc (push) Has been cancelled
Deploy / bcda (push) Has started running
Deploy / llm (push) Has started running

This commit is contained in:
kert
2026-10-27 14:23:42 -04:00
parent bee5f57893
commit d1165cde45
98 changed files with 682 additions and 560 deletions

View File

@@ -11,11 +11,10 @@ Usage: stack api serve [OPTIONS]
Start the stack API server. Start the stack API server.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --host TEXT Bind address. │ │ --host <str> Bind address. │
│ --port INTEGER Port number. │ │ --port <int> Port number. │
│ --workers INTEGER Number of workers. │ │ --workers <int> Number of workers. │
│ --reload --no-reload Enable auto-reload. │ │ --reload --no-reload Enable auto-reload. [default: no-reload] │
│ [default: no-reload] │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,18 +6,18 @@ sidebar_position: 16
# `stack bcda adopt` # `stack bcda adopt`
``` ```
Usage: stack bcda adopt [OPTIONS] JOB_ID Usage: stack bcda adopt [OPTIONS] {job_id}
Download a completed job this store did not start. Download a completed job this store did not start.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * job_id TEXT Server job id (see `stack bcda jobs`). [required] │ │ * job_id <str> Server job id (see `stack bcda jobs`). [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when BCDA_CLIENT_ID is unset. │ │ --preset <str> Public sandbox entity when BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --type -t TEXT Resource type(s) the job holds, for the store │ │ --type -t <str> Resource type(s) the job holds, for the store │
│ record. │ │ record. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,8 +11,8 @@ Usage: stack bcda auth [OPTIONS]
Issue a token and show attribution status. Issue a token and show attribution status.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when BCDA_CLIENT_ID is unset. │ │ --preset <str> Public sandbox entity when BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,16 +6,16 @@ sidebar_position: 18
# `stack bcda cancel` # `stack bcda cancel`
``` ```
Usage: stack bcda cancel [OPTIONS] JOB_ID Usage: stack bcda cancel [OPTIONS] {job_id}
Cancel an in-progress job. Cancel an in-progress job.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * job_id TEXT Server job id. [required] │ │ * job_id <str> Server job id. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when BCDA_CLIENT_ID is unset. │ │ --preset <str> Public sandbox entity when BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,15 +6,15 @@ sidebar_position: 20
# `stack bcda errors` # `stack bcda errors`
``` ```
Usage: stack bcda errors [OPTIONS] KEY Usage: stack bcda errors [OPTIONS] {key}
OperationOutcome issues from a job's error files (a partial export). OperationOutcome issues from a job's error files (a partial export).
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * key TEXT Store job key. [required] │ │ * key <str> Store job key. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit INTEGER Issues to print. [default: 50] │ │ --limit <int> Issues to print. [default: 50] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,37 +11,37 @@ Usage: stack bcda export [OPTIONS]
Run an export through the store (blocks until downloaded). Run an export through the store (blocks until downloaded).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when │ │ --preset <str> Public sandbox entity when │
│ BCDA_CLIENT_ID is unset. │ │ BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --type -t TEXT Resource type(s); default all │ │ --type -t <str> Resource type(s); default all │
│ three. │ │ three. │
│ --endpoint TEXT Group/all, Group/runout or │ │ --endpoint <str> Group/all, Group/runout or │
│ Patient. │ │ Patient. │
│ [default: Group/all] │ │ [default: Group/all] │
│ --since TEXT FHIR instant │ │ --since <str> FHIR instant │
│ (2026-10-01T00:00:00+00:00) │ │ (2026-10-01T00:00:00+00:00) │
│ or 'auto' = the per-type │ │ or 'auto' = the per-type │
│ watermark. │ │ watermark. │
│ --force Start even when the _since │ │ --force Start even when the _since │
│ checks say block. │ │ checks say block. │
│ --system-type TEXT _typeFilter System-Type │ │ --system-type <str> _typeFilter System-Type │
│ tag(s). │ │ tag(s). │
│ --outcome TEXT _typeFilter outcome: partial │ │ --outcome <str> _typeFilter outcome: partial │
│ and/or complete. │ │ and/or complete. │
│ --service-date-from TEXT _typeFilter earliest │ │ --service-date-from <str> _typeFilter earliest │
│ service-date (YYYY[-MM[-DD]], │ │ service-date (YYYY[-MM[-DD]], │
│ optional gt/ge/eq prefix). │ │ optional gt/ge/eq prefix). │
│ --service-date-to TEXT _typeFilter latest │ │ --service-date-to <str> _typeFilter latest │
│ service-date (optional lt/le │ │ service-date (optional lt/le │
│ prefix). │ │ prefix). │
│ --per-type --one-job One job per type (survives │ │ --per-type --one-job One job per type (survives │
│ sandbox sweeps). │ │ sandbox sweeps). │
│ [default: per-type] │ │ [default: per-type] │
│ --cancel-retries INTEGER Restarts after server-side │ │ --cancel-retries <int> Restarts after server-side │
│ cancellation. │ │ cancellation. │
│ [default: 6] │ │ [default: 6] │
│ --poll-interval FLOAT Seconds between status polls. │ │ --poll-interval <float> Seconds between status polls. │
│ [default: 15.0] │ │ [default: 15.0] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯

View File

@@ -11,9 +11,9 @@ Usage: stack bcda jobs [OPTIONS]
Server job history for the entity (shared on the sandbox). Server job history for the entity (shared on the sandbox).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when BCDA_CLIENT_ID is unset. │ │ --preset <str> Public sandbox entity when BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --limit INTEGER Newest N jobs. [default: 25] │ │ --limit <int> Newest N jobs. [default: 25] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,8 +11,8 @@ Usage: stack bcda preflight [OPTIONS]
/_version, /_health and metadata — no token needed. /_version, /_health and metadata — no token needed.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when BCDA_CLIENT_ID is unset. │ │ --preset <str> Public sandbox entity when BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,16 +6,16 @@ sidebar_position: 17
# `stack bcda resume` # `stack bcda resume`
``` ```
Usage: stack bcda resume [OPTIONS] KEY Usage: stack bcda resume [OPTIONS] {key}
Finish a store job: re-poll, download missing files, record the manifest. Finish a store job: re-poll, download missing files, record the manifest.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * key TEXT Store job key (see `stack bcda store`). [required] │ │ * key <str> Store job key (see `stack bcda store`). [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --preset TEXT Public sandbox entity when BCDA_CLIENT_ID is unset. │ │ --preset <str> Public sandbox entity when BCDA_CLIENT_ID is unset. │
│ [default: Large Model Entity] │ │ [default: Large Model Entity] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,10 +11,10 @@ Usage: stack bcda ui [OPTIONS]
Launch the BCDA manager (Streamlit; /metrics when STACK_TELEMETRY is on). Launch the BCDA manager (Streamlit; /metrics when STACK_TELEMETRY is on).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --port INTEGER Port for the Streamlit server. │ │ --port <int> Port for the Streamlit server. │
│ [default: 8501] │ │ [default: 8501] │
│ --headless --no-headless Do not open a browser. │ │ --headless --no-headless Do not open a browser. │
│ [default: headless] │ │ [default: headless] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -14,8 +14,8 @@ Usage: stack bib attach-iom [OPTIONS]
CMS since the last run. Safe to schedule on a timer. CMS since the last run. Safe to schedule on a timer.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --pub -p TEXT Limit to specific pub numbers. Repeat for multiple. │ │ --pub -p <str> Limit to specific pub numbers. Repeat for multiple. │
│ --force Re-download even if local SHA-256 matches. │ │ --force Re-download even if local SHA-256 matches. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -21,19 +21,19 @@ Usage: stack bib backfill-comments [OPTIONS]
(#662): no API key, no cap, and mirror-only comments get created. (#662): no API key, no cap, and mirror-only comments get created.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --docket TEXT Limit to one docket (e.g. CMS-2026-2377). Without │ │ --docket <str> Limit to one docket (e.g. CMS-2026-2377). Without │
│ it the walk covers every un-enriched stub in the │ │ it the walk covers every un-enriched stub in the │
│ store — a multi-day crawl at the reg.gov rate │ │ store — a multi-day crawl at the reg.gov rate │
│ cap. │ │ cap. │
│ --limit -n INTEGER Cap items processed this run. 0 = no cap │ │ --limit -n <int> Cap items processed this run. 0 = no cap │
│ (multi-day crawl). │ │ (multi-day crawl). │
│ [default: 0] │ │ [default: 0] │
│ --sleep FLOAT Seconds between API calls. 3.7s ≈ 970/hr — just │ │ --sleep <float> Seconds between API calls. 3.7s ≈ 970/hr — just │
│ under the 1000/hr reg.gov hourly cap (the binding │ │ under the 1000/hr reg.gov hourly cap (the binding │
│ limit; the 50/min burst cap is looser). CDN │ │ limit; the 50/min burst cap is looser). CDN │
│ downloads are concurrent and don't count. │ │ downloads are concurrent and don't count. │
│ [default: 3.7] │ │ [default: 3.7] │
│ --log PATH Append-only progress log (survives restarts). │ │ --log <path> Append-only progress log (survives restarts). │
│ [default: /tmp/bib-backfill-comments.log] │ │ [default: /tmp/bib-backfill-comments.log] │
│ --mirror Pull from the Mirrulations S3 mirror instead of │ │ --mirror Pull from the Mirrulations S3 mirror instead of │
│ the reg.gov API — bulk speed, no rate cap, also │ │ the reg.gov API — bulk speed, no rate cap, also │

View File

@@ -6,20 +6,20 @@ sidebar_position: 46
# `stack bib cfr-jump` # `stack bib cfr-jump`
``` ```
Usage: stack bib cfr-jump [OPTIONS] [REF] Usage: stack bib cfr-jump [OPTIONS] [ref]
Bidirectional CFR cite ↔ eCFR URL (#640); optionally place the link. Bidirectional CFR cite ↔ eCFR URL (#640); optionally place the link.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ ref [REF] CFR cite: "42 CFR 425.400(c)(1)(iv)" or "42 CFR Part 425". │ │ ref <str> CFR cite: "42 CFR 425.400(c)(1)(iv)" or "42 CFR Part 425". │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --url TEXT Reverse mode: print the cite for an eCFR URL. │ │ --url <str> Reverse mode: print the cite for an eCFR URL. │
│ --md Print a markdown link. │ │ --md Print a markdown link. │
│ --place Attach the link to its bib regulation item (fr_links) │ │ --place Attach the link to its bib regulation item (fr_links) │
│ so the next zotero sync carries it as a child link │ │ so the next zotero sync carries it as a child link │
│ attachment. │ │ attachment. │
│ --label TEXT Label for the placed link. │ │ --label <str> Label for the placed link. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -28,18 +28,17 @@ Usage: stack bib code-tags [OPTIONS]
merged pass. merged pass.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --collection TEXT Which collection: all | comments | │ │ --collection <str> Which collection: all | comments | rules │
│ rules | corpus. │ │ | corpus. │
│ [default: all] │ │ [default: all] │
│ --anchors-only Rules only, straight from fr_anchors │ │ --anchors-only Rules only, straight from fr_anchors text │
│ text — skip pgvector entirely. │ │ — skip pgvector entirely. │
│ --dry-run Compute the merged item→codes mapping │ │ --dry-run Compute the merged item→codes mapping and │
│ and report what would be tagged; write │ │ report what would be tagged; write │
│ nothing. │ │ nothing. │
│ --max-codes-per-item INTEGER Items with more distinct codes get │ │ --max-codes-per-item <int> Items with more distinct codes get │
│ family: tags only (+ hand-family │ │ family: tags only (+ hand-family codes). │
│ codes). │ │ [default: 200] │
│ [default: 200] │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -16,9 +16,9 @@ Usage: stack bib discover-pfs-rules [OPTIONS]
(~20 rules since 2017). (~20 rules since 2017).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --since TEXT [default: 2017-01-01] │ │ --since <str> [default: 2017-01-01] │
│ --until TEXT │ │ --until <str> │
│ --dry-run │ │ --dry-run │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,7 +6,7 @@ sidebar_position: 31
# `stack bib fetch-docket-comments` # `stack bib fetch-docket-comments`
``` ```
Usage: stack bib fetch-docket-comments [OPTIONS] DOCKET Usage: stack bib fetch-docket-comments [OPTIONS] {docket}
Walk one docket's comments from its stored watermark; upsert as Source items. Walk one docket's comments from its stored watermark; upsert as Source items.
@@ -15,15 +15,15 @@ Usage: stack bib fetch-docket-comments [OPTIONS] DOCKET
Sealed dockets are skipped unless --force. Sealed dockets are skipped unless --force.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * docket TEXT reg.gov docket id, e.g. CMS-2026-2377 [required] │ │ * docket <str> reg.gov docket id, e.g. CMS-2026-2377 [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --cms-id TEXT Associate comments with a specific CMS rule │ │ --cms-id <str> Associate comments with a specific CMS rule │
│ tag. │ │ tag. │
│ --limit -n INTEGER Stop after N comments. 0 = all. [default: 0] │ │ --limit -n <int> Stop after N comments. 0 = all. [default: 0] │
│ --attachments Also download each comment's PDF/DOCX │ │ --attachments Also download each comment's PDF/DOCX │
│ attachments. │ │ attachments. │
│ --sleep FLOAT Seconds between API calls (rate budget). │ │ --sleep <float> Seconds between API calls (rate budget). │
│ [default: 1.3] │ │ [default: 1.3] │
│ --force Walk from page 1 even if sealed / │ │ --force Walk from page 1 even if sealed / │
│ watermarked. Never unseals. │ │ watermarked. Never unseals. │

View File

@@ -18,14 +18,14 @@ Usage: stack bib fetch-pfs-comments [OPTIONS]
even under `--docket`: see that option's help. even under `--docket`: see that option's help.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --since TEXT [default: 2017-01-01] │ │ --since <str> [default: 2017-01-01] │
│ --until TEXT │ │ --until <str> │
│ --attachments │ │ --attachments │
│ --per-docket-limit INTEGER Cap comments fetched per docket. 0 = │ │ --per-docket-limit <int> Cap comments fetched per docket. 0 = │
│ unlimited. │ │ unlimited. │
│ [default: 0] │ │ [default: 0] │
│ --sleep FLOAT [default: 1.3] │ │ --sleep <float> [default: 1.3] │
│ --docket TEXT Only pull this reg.gov docket (e.g. │ │ --docket <str> Only pull this reg.gov docket (e.g. │
│ CMS-2026-2377). Filtered before any API │ │ CMS-2026-2377). Filtered before any API │
│ call ONLY once the docket is known (a │ │ call ONLY once the docket is known (a │
│ `dockets` row already exists for its CMS │ │ `dockets` row already exists for its CMS │

View File

@@ -14,9 +14,9 @@ Usage: stack bib fr-grab [OPTIONS]
``fr_anchor_docs`` for offline jump-link resolution. ``fr_anchor_docs`` for offline jump-link resolution.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --key TEXT Grab one rule item by bib key. │ │ --key <str> Grab one rule item by bib key. │
│ --all Backfill every rule item with an FR URL. │ │ --all Backfill every rule item with an FR URL. │
│ --force Re-grab even if an anchor map already exists. │ │ --force Re-grab even if an anchor map already exists. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,21 +6,21 @@ sidebar_position: 45
# `stack bib fr-jump` # `stack bib fr-jump`
``` ```
Usage: stack bib fr-jump [OPTIONS] REF Usage: stack bib fr-jump [OPTIONS] {ref}
Resolve an FR citation to its web jump link (#637); optionally place it. Resolve an FR citation to its web jump link (#637); optionally place it.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * ref TEXT FR reference: "91 FR 44218", "91 FR 44218 ¶3", "p-3600", │ │ * ref <str> FR reference: "91 FR 44218", "91 FR 44218 ¶3", │
│ or a quote. │ │ "p-3600", or a quote. │
│ [required] │ │ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --key TEXT Bib item key to scope resolution. │ │ --key <str> Bib item key to scope resolution. │
│ --md Print a markdown link. │ │ --md Print a markdown link. │
│ --place Record the link in fr_links so the next zotero sync │ │ --place Record the link in fr_links so the next zotero sync │
│ carries it as a child link attachment. │ │ carries it as a child link attachment. │
│ --label TEXT Label for the placed link. │ │ --label <str> Label for the placed link. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -21,18 +21,18 @@ Usage: stack bib import-zotero [OPTIONS]
applies. applies.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ * --collection TEXT Zotero collection name to pull │ │ * --collection <str> Zotero collection name to pull │
│ from. │ │ from. │
│ [required] │ │ [required] │
│ --with-files --no-with-files Only import items that have at │ │ --with-files --no-with-files Only import items that have at │
│ least one attachment file. │ │ least one attachment file. │
│ [default: no-with-files] │ │ [default: no-with-files] │
│ --only TEXT Title substring filter │ │ --only <str> Title substring filter │
│ (case-insensitive). │ │ (case-insensitive). │
│ --tag TEXT Tag every imported item with │ │ --tag <str> Tag every imported item with │
│ this. Repeat for multiple. │ │ this. Repeat for multiple. │
│ --dry-run Report what would happen without │ │ --dry-run Report what would happen │
│ writing. │ │ without writing. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -15,8 +15,8 @@ Usage: stack bib ingest-iom [OPTIONS]
advertises. advertises.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --pub -p TEXT Limit to specific pub numbers (e.g. 100-02). Repeat │ │ --pub -p <str> Limit to specific pub numbers (e.g. 100-02). Repeat │
│ for multiple. │ │ for multiple. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -16,13 +16,13 @@ Usage: stack bib ingest-mail [OPTIONS]
tagged ``source:email`` into the appropriate Zotero collection. tagged ``source:email`` into the appropriate Zotero collection.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --user TEXT Mailbox address to poll (must have a password in │ │ --user <str> Mailbox address to poll (must have a password in │
│ .state/mail/credentials.json). │ │ .state/mail/credentials.json). │
│ [default: cmsupdates@mail.fhirworx.io] │ │ [default: cmsupdates@mail.fhirworx.io] │
│ --host TEXT [default: mail.fhirworx.io] │ │ --host <str> [default: mail.fhirworx.io] │
│ --port INTEGER [default: 993] │ │ --port <int> [default: 993] │
│ --folder TEXT [default: INBOX] │ │ --folder <str> [default: INBOX] │
│ --limit -n INTEGER [default: 0] │ │ --limit -n <int> [default: 0] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,8 +11,8 @@ Usage: stack bib ingest-oig [OPTIONS]
Crawl OIG Compliance Program Guidance + fraud alerts indexes. Crawl OIG Compliance Program Guidance + fraud alerts indexes.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --kind -k TEXT Restrict to a subset: 'cpg' and/or 'alerts'. Repeat │ │ --kind -k <str> Restrict to a subset: 'cpg' and/or 'alerts'. Repeat │
│ for multiple. │ │ for multiple. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,12 +6,12 @@ sidebar_position: 29
# `stack bib query` # `stack bib query`
``` ```
Usage: stack bib query [OPTIONS] TERM Usage: stack bib query [OPTIONS] {term}
Search the bibliography store. Search the bibliography store.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * term TEXT Search term. [required] │ │ * term <str> Search term. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │ │ --help Show this message and exit. │

View File

@@ -19,12 +19,13 @@ Usage: stack bib refresh-iom [OPTIONS]
Zotero is held (stopped) during the sync phase only. Zotero is held (stopped) during the sync phase only.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --pub -p TEXT │ │ --pub -p <str> │
│ --file-issue --no-file-issue When watch-iom detects a │ │ --file-issue --no-file-issue When watch-iom detects a │
│ futurepdf.pdf change, auto-file a │ │ futurepdf.pdf change, auto-file │
│ Gitea issue tagged 'cms-update'. │ │ a Gitea issue tagged │
│ Disable for local/dev runs. │ │ 'cms-update'. Disable for │
│ [default: file-issue] │ │ local/dev runs. │
│ --help Show this message and exit. │ │ [default: file-issue] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -15,37 +15,38 @@ Usage: stack bib sync-zotero [OPTIONS]
duration of the sync and start it again afterward. duration of the sync and start it again afterward.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --tag TEXT Only sync items matching a │ │ --tag <str> Only sync items matching a │
│ tag. │ │ tag. │
│ --type TEXT Only sync one item_type. │ │ --type <str> Only sync one item_type. │
│ --hold-zotero --no-hold Stop the 'zotero' container │ │ --hold-zotero --no-hold Stop the 'zotero' │
│ during sync so Zotero │ │ container during sync so │
│ releases its exclusive │ │ Zotero releases its │
│ SQLite lock; restart │ │ exclusive SQLite lock; │
│ afterwards. │ │ restart afterwards. │
│ [default: hold-zotero] │ │ [default: hold-zotero] │
│ --dedupe-collection TEXT DEPRECATED — use │ │ --dedupe-collection <str> DEPRECATED — use │
│ --merge-dupes instead, │ │ --merge-dupes instead, │
│ which merges rather than │ │ which merges rather than │
│ deletes. After the push, │ │ deletes. After the push, │
│ remove title+date │ │ remove title+date │
│ duplicates from this Zotero │ │ duplicates from this │
│ collection (and from bib, │ │ Zotero collection (and │
│ so the next sync can't │ │ from bib, so the next sync │
│ resurrect them). CMS │ │ can't resurrect them). CMS │
│ listservs re-send identical │ │ listservs re-send │
│ mail with fresh │ │ identical mail with fresh │
│ Message-IDs, so duplicates │ │ Message-IDs, so duplicates │
│ otherwise accumulate — e.g. │ │ otherwise accumulate — │
│ 'Cmsupdates'. │ │ e.g. 'Cmsupdates'. │
│ --merge-dupes --no-merge-dupes After the push, merge │ │ --merge-dupes --no-merge-dupes After the push, merge │
│ same-URL duplicate items │ │ same-URL duplicate items │
│ library-wide (union │ │ library-wide (union │
│ tags/collections/notes/att… │ │ tags/collections/notes/at… │
│ keep-earliest). Supersedes │ │ keep-earliest). Supersedes │
│ --dedupe-collection, which │ │ --dedupe-collection, which │
│ deletes without merging. │ │ deletes without merging. │
│ [default: no-merge-dupes] │ │ [default: no-merge-dupes] │
│ --help Show this message and exit. │ │ --help Show this message and │
│ exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,12 +6,12 @@ sidebar_position: 28
# `stack bib tag` # `stack bib tag`
``` ```
Usage: stack bib tag [OPTIONS] [PATTERN] Usage: stack bib tag [OPTIONS] [pattern]
List or search bibliography tags. List or search bibliography tags.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ pattern [PATTERN] Tag namespace or pattern to filter. │ │ pattern <str> Tag namespace or pattern to filter. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │ │ --help Show this message and exit. │

View File

@@ -14,13 +14,13 @@ Usage: stack bls ces [OPTIONS]
the per-request limits), one bib Source per series. the per-request limits), one bib Source per series.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --series TEXT CES series id(s) to print; default all in the │ │ --series <str> CES series id(s) to print; default all in the │
│ registry. │ │ registry. │
│ --start INTEGER First year to pull with --write. [default: 2006] │ │ --start <int> First year to pull with --write. [default: 2006] │
│ --end INTEGER Last year to pull with --write. [default: 2025] │ │ --end <int> Last year to pull with --write. [default: 2025] │
│ --annual Print annual means instead of months. │ │ --annual Print annual means instead of months. │
│ --write Pull the registry's series, load bls.ces, cite, │ │ --write Pull the registry's series, load bls.ces, cite, │
│ republish. │ │ republish. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -14,10 +14,10 @@ Usage: stack bls oews [OPTIONS]
cms.ingest_log. --occ prints the series. cms.ingest_log. --occ prints the series.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --year INTEGER Release year(s); default 2013–. │ │ --year <int> Release year(s); default 2013–. │
│ --occ TEXT SOC code(s) to print, e.g. 31-9092. │ │ --occ <str> SOC code(s) to print, e.g. 31-9092. │
│ --write Download, load bls.oews, cite, republish. │ │ --write Download, load bls.oews, cite, republish. │
│ --offline With --write: use the cached zips. │ │ --offline With --write: use the cached zips. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -18,10 +18,10 @@ Usage: stack comments extract-ocr [OPTIONS]
uv run --with rapidocr-onnxruntime stack comments extract-ocr uv run --with rapidocr-onnxruntime stack comments extract-ocr
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --root PATH Comments root dir. [default: .state/comments] │ │ --root <path> Comments root dir. [default: .state/comments] │
│ --docket TEXT Limit to one docket (e.g. CMS-2023-0121). │ │ --docket <str> Limit to one docket (e.g. CMS-2023-0121). │
│ --limit INTEGER Cap comment dirs processed this run. 0 = no cap. │ │ --limit <int> Cap comment dirs processed this run. 0 = no cap. │
│ [default: 0] │ │ [default: 0] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,27 +11,26 @@ Usage: stack comments extract [OPTIONS]
Walk comment dirs and write combined.md (PDF/DOCX → text). Walk comment dirs and write combined.md (PDF/DOCX → text).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --root PATH Comments root dir. │ │ --root <path> Comments root dir. │
│ [default: .state/comments] │ │ [default: .state/comments] │
│ --docket TEXT Limit to one docket (e.g. │ │ --docket <str> Limit to one docket (e.g. │
│ CMS-2023-0121). │ │ CMS-2023-0121). │
│ --limit INTEGER Cap dirs processed this run. 0 = no │ │ --limit <int> Cap dirs processed this run. 0 = no │
│ cap. │ │ cap. │
│ [default: 0] │ │ [default: 0] │
│ --workers INTEGER Concurrent extraction threads. │ │ --workers <int> Concurrent extraction threads. │
│ [default: 8] │ │ [default: 8] │
│ --force Re-extract dirs that already have │ │ --force Re-extract dirs that already have │
│ combined.md. │ │ combined.md. │
│ --bib --no-bib Look up inline body from bib.sqlite │ │ --bib --no-bib Look up inline body from bib.sqlite │
│ items.abstract. │ │ items.abstract. │
│ [default: bib] │ │ [default: bib] │
│ --attach --no-attach Attach combined.md back to its bib │ │ --attach --no-attach Attach combined.md back to its bib item │
│ item (so it flows to Zotero via `bib │ │ (so it flows to Zotero via `bib sync`). │
│ sync`). Implies --bib; no-op when │ │ Implies --bib; no-op when --no-bib. │
│ --no-bib. │ │ [default: attach] │
│ [default: attach] │ │ --reattach Also attach combined.md notes for dirs │
│ --reattach Also attach combined.md notes for dirs │ │ that were already current (repair). │
│ that were already current (repair). │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,15 +6,15 @@ sidebar_position: 56
# `stack comments seal` # `stack comments seal`
``` ```
Usage: stack comments seal [OPTIONS] DOCKET Usage: stack comments seal [OPTIONS] {docket}
Mark a docket complete: every stage skips it until unsealed or --force. Mark a docket complete: every stage skips it until unsealed or --force.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * docket TEXT reg.gov docket id [required] │ │ * docket <str> reg.gov docket id [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --reason TEXT [default: manual] │ │ --reason <str> [default: manual] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,7 +11,7 @@ Usage: stack comments stats [OPTIONS]
Rebuild the index and print per-status counts. Rebuild the index and print per-status counts.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --root PATH Comments root dir. [default: .state/comments] │ │ --root <path> Comments root dir. [default: .state/comments] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,12 +6,12 @@ sidebar_position: 57
# `stack comments unseal` # `stack comments unseal`
``` ```
Usage: stack comments unseal [OPTIONS] DOCKET Usage: stack comments unseal [OPTIONS] {docket}
Reopen a sealed docket. Reopen a sealed docket.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * docket TEXT reg.gov docket id [required] │ │ * docket <str> reg.gov docket id [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │ │ --help Show this message and exit. │

View File

@@ -6,12 +6,12 @@ sidebar_position: 75
# `stack db inspect` # `stack db inspect`
``` ```
Usage: stack db inspect [OPTIONS] [TABLE] Usage: stack db inspect [OPTIONS] [table]
Inspect DuckDB table schema and stats. Inspect DuckDB table schema and stats.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ table [TABLE] Table name (schema.table). │ │ table <str> Table name (schema.table). │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │ │ --help Show this message and exit. │

View File

@@ -11,8 +11,8 @@ Usage: stack docs serve [OPTIONS]
Serve documentation locally with hot reload. Serve documentation locally with hot reload.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --port INTEGER Port to serve on. [default: 3000] │ │ --port <int> Port to serve on. [default: 3000] │
│ --skip-generate Skip content generation. │ │ --skip-generate Skip content generation. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,12 +11,12 @@ Usage: stack lake deploy [OPTIONS]
Create schemas and tables from SQLTable models. Create schemas and tables from SQLTable models.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --target TEXT Target: iceberg (nessie/polaris) or databricks. │ │ --target <str> Target: iceberg (nessie/polaris) or databricks. │
│ [default: iceberg] │ │ [default: iceberg] │
│ --catalog-type TEXT Catalog type: nessie or polaris. │ │ --catalog-type <str> Catalog type: nessie or polaris. │
│ [default: nessie] │ │ [default: nessie] │
│ --schema TEXT Only deploy these schemas. │ │ --schema <str> Only deploy these schemas. │
│ --dry-run Report without creating. │ │ --dry-run Report without creating. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,10 +11,11 @@ Usage: stack lake load [OPTIONS]
Populate Iceberg tables with data from DuckDB. Populate Iceberg tables with data from DuckDB.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --catalog-type TEXT Catalog type: nessie or polaris. │ │ --catalog-type <str> Catalog type: nessie or polaris. │
│ [default: nessie] │ │ [default: nessie] │
│ --schema TEXT Only load these schemas. │ │ --schema <str> Only load these schemas. │
│ --mode TEXT Write mode: append or replace. [default: append] │ │ --mode <str> Write mode: append or replace. │
│ --help Show this message and exit. │ │ [default: append] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,7 +11,7 @@ Usage: stack lake parity [OPTIONS]
Compare pipeline outputs between DuckDB and Databricks. Compare pipeline outputs between DuckDB and Databricks.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --schema TEXT Only check these schemas. │ │ --schema <str> Only check these schemas. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,9 +11,9 @@ Usage: stack lake validate [OPTIONS]
Validate Iceberg tables match SQLTable model definitions. Validate Iceberg tables match SQLTable model definitions.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --catalog-type TEXT Catalog type: nessie or polaris. │ │ --catalog-type <str> Catalog type: nessie or polaris. │
│ [default: nessie] │ │ [default: nessie] │
│ --schema TEXT Only validate these schemas. │ │ --schema <str> Only validate these schemas. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -15,17 +15,17 @@ Usage: stack llm eval-tags [OPTIONS]
re-tags each golden comment now. Exit 1 when the gate fails. re-tags each golden comment now. Exit 1 when the gate fails.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --golden TEXT Golden YAML (comment ids with expected │ │ --golden <str> Golden YAML (comment ids with expected │
│ themes). │ │ themes). │
│ [default: tests/llm/golden_themes.yaml] │ │ [default: tests/llm/golden_themes.yaml] │
│ --live Re-tag through the model instead of scoring │ │ --live Re-tag through the model instead of scoring │
│ what is stored on the items. │ │ what is stored on the items. │
│ --limit INTEGER Score only the first N golden entries. │ │ --limit <int> Score only the first N golden entries. │
│ [default: 0] │ │ [default: 0] │
│ --top INTEGER [default: 8] │ │ --top <int> [default: 8] │
│ --max-tags INTEGER [default: 3] │ │ --max-tags <int> [default: 3] │
│ --min-confidence FLOAT [default: 0.6] │ │ --min-confidence <float> [default: 0.6] │
│ --dump TEXT With --live: write every comment's │ │ --dump <str> With --live: write every comment's │
│ shortlist, verdicts and confidences to this │ │ shortlist, verdicts and confidences to this │
│ JSON file. │ │ JSON file. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │

View File

@@ -15,17 +15,16 @@ Usage: stack llm index [OPTIONS]
corpus = every non-comment bib item incl. Zotero-only storage PDFs. corpus = every non-comment bib item incl. Zotero-only storage PDFs.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --collection TEXT Which collection: comments | rules | │ │ --collection <str> Which collection: comments | rules | │
│ corpus | all. │ │ corpus | all. │
│ [default: comments] │ │ [default: comments] │
│ --docket TEXT Limit comments to one docket id. │ │ --docket <str> Limit comments to one docket id. │
│ --key TEXT Limit rules/corpus to these item │ │ --key <str> Limit rules/corpus to these item keys. │
│ keys. │ │ --force --no-force Re-embed even when unchanged. │
│ --force --no-force Re-embed even when unchanged. │ │ [default: no-force] │
│ [default: no-force] │ │ --limit <int> Stop after N docs per collection (0 = │
│ --limit INTEGER Stop after N docs per collection (0 = │ │ all). │
│ all). │ │ [default: 0] │
│ [default: 0] │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -21,11 +21,11 @@ Usage: stack llm restamp [OPTIONS]
under `--dry-run`. under `--dry-run`.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --collection TEXT Which collection: comments | rules | corpus | │ │ --collection <str> Which collection: comments | rules | corpus | │
│ all. │ │ all. │
│ [default: comments] │ │ [default: comments] │
│ --batch INTEGER Rows per transaction. [default: 2000] │ │ --batch <int> Rows per transaction. [default: 2000] │
│ --dry-run Scan and report without writing. │ │ --dry-run Scan and report without writing. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,8 +11,8 @@ Usage: stack llm serve [OPTIONS]
Serve the SSO-guarded chat UI (llm.api:app). Serve the SSO-guarded chat UI (llm.api:app).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --host TEXT Bind address. [default: 127.0.0.1] │ │ --host <str> Bind address. [default: 127.0.0.1] │
│ --port INTEGER Port. [default: 8000] │ │ --port <int> Port. [default: 8000] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -15,12 +15,12 @@ Usage: stack llm stamp-themes [OPTIONS]
them. them.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --collection TEXT comments | rules | corpus. [default: corpus] │ │ --collection <str> comments | rules | corpus. [default: corpus] │
│ --doctype TEXT Only chunks of this doctype ('' = every chunk). │ │ --doctype <str> Only chunks of this doctype ('' = every chunk). │
│ [default: manual] │ │ [default: manual] │
│ --key TEXT Only this item key. │ │ --key <str> Only this item key. │
│ --top INTEGER Themes kept per chunk. [default: 2] │ │ --top <int> Themes kept per chunk. [default: 2] │
│ --min-score FLOAT Cosine similarity a theme must reach. │ │ --min-score <float> Cosine similarity a theme must reach. │
│ [default: 0.6] │ │ [default: 0.6] │
│ --force Re-stamp chunks already on the current │ │ --force Re-stamp chunks already on the current │
│ vocabulary version. │ │ vocabulary version. │

View File

@@ -15,21 +15,21 @@ Usage: stack llm tag [OPTIONS]
skipped unless --force. skipped unless --force.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ * --docket TEXT regulations.gov docket id, e.g. │ │ * --docket <str> regulations.gov docket id, e.g. │
│ CMS-2026-2377. │ │ CMS-2026-2377. │
│ [required] │ │ [required] │
│ --limit INTEGER Stop after N comments (newest first; 0 = │ │ --limit <int> Stop after N comments (newest first; 0 = │
│ all). │ │ all). │
│ [default: 0] │ │ [default: 0] │
│ --force Re-tag comments whose stored state is │ │ --force Re-tag comments whose stored state is │
│ current. │ │ current. │
│ --dry-run Compute and print, write nothing. │ │ --dry-run Compute and print, write nothing. │
│ --top INTEGER Themes shortlisted per comment before │ │ --top <int> Themes shortlisted per comment before │
│ judging. │ │ judging. │
│ [default: 8] │ │ [default: 8] │
│ --max-tags INTEGER Most themes written per comment. │ │ --max-tags <int> Most themes written per comment. │
│ [default: 3] │ │ [default: 3] │
│ --min-confidence FLOAT Shortlist similarity below which a │ │ --min-confidence <float> Shortlist similarity below which a │
│ judged yes is not written. │ │ judged yes is not written. │
│ [default: 0.0] │ │ [default: 0.0] │
│ --verbose Print every comment's tags. │ │ --verbose Print every comment's tags. │

View File

@@ -13,9 +13,9 @@ Usage: stack llm vocab [OPTIONS]
it was seeded from. it was seeded from.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --path TEXT A vocabulary file to validate instead of the packaged │ │ --path <str> A vocabulary file to validate instead of the packaged │
│ one. │ │ one. │
│ --slug TEXT Show one theme in full. │ │ --slug <str> Show one theme in full. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -16,11 +16,11 @@ Usage: stack load bcda [OPTIONS]
resource type under the BCDA store (a v3 pull is three jobs). resource type under the BCDA store (a v3 pull is three jobs).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --ndjson-dir PATH Directory containing FHIR ndjson files. │ │ --ndjson-dir <path> Directory containing FHIR ndjson files. │
│ --database TEXT DuckDB database path (default: config). │ │ --database <str> DuckDB database path (default: config). │
│ --skip-flatten Skip flattening, load existing Parquet. │ │ --skip-flatten Skip flattening, load existing Parquet. │
│ --run-pipeline Also run the bcda connector pipeline into │ │ --run-pipeline Also run the bcda connector pipeline into │
│ input_layer.* │ │ input_layer.* │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -15,9 +15,9 @@ Usage: stack load cclf [OPTIONS]
pipeline to produce ``input_layer`` tables. pipeline to produce ``input_layer`` tables.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ * --path PATH Directory containing CCLF files. [required] │ │ * --path <path> Directory containing CCLF files. [required] │
│ --database TEXT DuckDB database path (default: config). │ │ --database <str> DuckDB database path (default: config). │
│ --no-pipeline Load raw tables only, skip CCLF pipeline. │ │ --no-pipeline Load raw tables only, skip CCLF pipeline. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -17,14 +17,16 @@ Usage: stack load cms [OPTIONS]
claims or ``cms.aco_participant_tin`` know it. claims or ``cms.aco_participant_tin`` know it.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --table -t TEXT cms.<table> (default: the institutional │ │ --table -t <str> cms.<table> (default: the │
│ universe). │ │ institutional universe). │
│ --database TEXT DuckDB database path (default: config). │ │ --database <str> DuckDB database path (default: │
│ --refresh Re-download even if the CSV is on disk. │ │ config). │
│ --derive --no-derive Rebuild institutional_provider / │ │ --refresh Re-download even if the CSV is on │
│ ccn_crosswalk / provider_tin_observed / │ │ disk. │
│ ccn_tin. │ │ --derive --no-derive Rebuild institutional_provider / │
│ [default: derive] │ │ ccn_crosswalk / provider_tin_observed │
│ --help Show this message and exit. │ │ / ccn_tin. │
│ [default: derive] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,10 +11,10 @@ Usage: stack load seed [OPTIONS]
Load seed/reference data (CSV, Excel, Parquet) into DuckDB. Load seed/reference data (CSV, Excel, Parquet) into DuckDB.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --seed-dir PATH Directory containing seed files. │ │ --seed-dir <path> Directory containing seed files. │
│ --database TEXT DuckDB database path (default: config). │ │ --database <str> DuckDB database path (default: config). │
│ --schema TEXT Target DuckDB schema for seed tables. │ │ --schema <str> Target DuckDB schema for seed tables. │
│ [default: reference_data] │ │ [default: reference_data] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail attach-smarthost title: stack mail attach-smarthost
sidebar_position: 122 sidebar_position: 123
--- ---
# `stack mail attach-smarthost` # `stack mail attach-smarthost`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail dkim-export title: stack mail dkim-export
sidebar_position: 121 sidebar_position: 122
--- ---
# `stack mail dkim-export` # `stack mail dkim-export`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail dns title: stack mail dns
sidebar_position: 120 sidebar_position: 121
--- ---
# `stack mail dns` # `stack mail dns`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail down title: stack mail down
sidebar_position: 118 sidebar_position: 119
--- ---
# `stack mail down` # `stack mail down`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail provision title: stack mail provision
sidebar_position: 116 sidebar_position: 117
--- ---
# `stack mail provision` # `stack mail provision`
@@ -11,8 +11,8 @@ Usage: stack mail provision [OPTIONS]
End-to-end idempotent: up → wait → DNS → DKIM → smarthost → git env. End-to-end idempotent: up → wait → DNS → DKIM → smarthost → git env.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --region TEXT DO region slug (one your ISP can reach). │ │ --region <str> DO region slug (one your ISP can reach). │
│ [default: nyc3] │ │ [default: nyc3] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,18 +1,18 @@
--- ---
title: stack mail rotate-creds title: stack mail rotate-creds
sidebar_position: 123 sidebar_position: 124
--- ---
# `stack mail rotate-creds` # `stack mail rotate-creds`
``` ```
Usage: stack mail rotate-creds [OPTIONS] USER Usage: stack mail rotate-creds [OPTIONS] {user}
Mint a new password for *user*@fhirworx.io and push to droplet. Mint a new password for *user*@fhirworx.io and push to droplet.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * user TEXT Mailbox to rotate (e.g. git, postmaster, cmsupdates). │ │ * user <str> Mailbox to rotate (e.g. git, postmaster, cmsupdates). │
│ [required] │ │ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │ │ --help Show this message and exit. │

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail seed-mailboxes title: stack mail seed-mailboxes
sidebar_position: 124 sidebar_position: 125
--- ---
# `stack mail seed-mailboxes` # `stack mail seed-mailboxes`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail status title: stack mail status
sidebar_position: 119 sidebar_position: 120
--- ---
# `stack mail status` # `stack mail status`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail up title: stack mail up
sidebar_position: 117 sidebar_position: 118
--- ---
# `stack mail up` # `stack mail up`
@@ -11,7 +11,7 @@ Usage: stack mail up [OPTIONS]
Adopt-or-create the mail droplet. Idempotent. Adopt-or-create the mail droplet. Idempotent.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --region TEXT DO region slug. [default: nyc3] │ │ --region <str> DO region slug. [default: nyc3] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail wire-git title: stack mail wire-git
sidebar_position: 125 sidebar_position: 126
--- ---
# `stack mail wire-git` # `stack mail wire-git`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack mail title: stack mail
sidebar_position: 115 sidebar_position: 116
--- ---
# `stack mail` # `stack mail`

View File

@@ -0,0 +1,18 @@
---
title: stack nlm fetch
sidebar_position: 129
---
# `stack nlm fetch`
```
Usage: stack nlm fetch [OPTIONS]
Download the current file of every (or each named) release stream.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --stream <str> Only these streams. │
│ --dest <path> Root directory (default nlm.dir). │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
```

View File

@@ -0,0 +1,17 @@
---
title: stack nlm releases
sidebar_position: 128
---
# `stack nlm releases`
```
Usage: stack nlm releases [OPTIONS]
List the current file of every release stream.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --stream <str> Only these streams. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
```

24
docs/docs/cli/nlm-vsac.md Normal file
View File

@@ -0,0 +1,24 @@
---
title: stack nlm vsac
sidebar_position: 130
---
# `stack nlm vsac`
```
Usage: stack nlm vsac [OPTIONS]
Save every VSAC value-set definition, then expand each one.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --dest <path> Root directory (default │
│ nlm.dir). │
│ --definitions-only │
│ --workers <int range> [1<=x<=16] [default: 4] │
│ --limit <int> Expand at most N (0 = │
│ all). │
│ [default: 0] │
│ --help Show this message and │
│ exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
```

21
docs/docs/cli/nlm.md Normal file
View File

@@ -0,0 +1,21 @@
---
title: stack nlm
sidebar_position: 127
---
# `stack nlm`
```
Usage: stack nlm [OPTIONS] COMMAND [ARGS]...
NLM terminology releases and VSAC value sets.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ releases List the current file of every release stream. │
│ fetch Download the current file of every (or each named) release stream. │
│ vsac Save every VSAC value-set definition, then expand each one. │
╰──────────────────────────────────────────────────────────────────────────────╯
```

View File

@@ -11,9 +11,8 @@ Usage: stack perf show [OPTIONS]
Pretty-print spans from the local JSONL trace file. Pretty-print spans from the local JSONL trace file.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --path TEXT Path to JSONL span file. │ │ --path <str> Path to JSONL span file. [default: traces/spans.jsonl] │
│ [default: traces/spans.jsonl] │ │ --last <int> Show last N spans. [default: 20] │
│ --last INTEGER Show last N spans. [default: 20] │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -13,9 +13,9 @@ Usage: stack pfs cpt-ingest [OPTIONS]
2026-09-09-cpt-canonical-schema-design.md §3). 2026-09-09-cpt-canonical-schema-design.md §3).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --edition INTEGER CPT edition year to ingest (repeatable). │ │ --edition <int> CPT edition year to ingest (repeatable). │
│ --all Every CPT EPUB edition found in bib (source:ama). │ │ --all Every CPT EPUB edition found in bib (source:ama). │
│ --dry-run Parse and report counts; write nothing. │ │ --dry-run Parse and report counts; write nothing. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,14 +11,14 @@ Usage: stack pfs elements [OPTIONS]
Extract typed elements for codes into pfs.code_element (+ review queue). Extract typed elements for codes into pfs.code_element (+ review queue).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --code TEXT HCPCS/CPT code (repeatable). │ │ --code <str> HCPCS/CPT code (repeatable). │
│ --family TEXT Expand a registered family (CCM, APCM, …); │ │ --family <str> Expand a registered family (CCM, APCM, …); │
│ repeatable. │ │ repeatable. │
│ --all-payable Every A/R/T code in the newest RVU year, one │ │ --all-payable Every A/R/T code in the newest RVU year, one │
│ inverted pass over fr_anchors. │ │ inverted pass over fr_anchors. │
│ --no-llm Skip the local-model classifier (unknown lines go │ │ --no-llm Skip the local-model classifier (unknown lines │
│ to review). │ │ go to review). │
│ --dry-run Extract and report; write nothing. │ │ --dry-run Extract and report; write nothing. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -18,18 +18,17 @@ Usage: stack pfs exposure [OPTIONS]
calendar); --code/--family only filter what is printed. calendar); --code/--family only filter what is printed.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --code TEXT Filter to a code; repeatable. │ │ --code <str> Filter to a code; repeatable. │
│ --family TEXT Filter to a family key (CCM, APCM, …); │ │ --family <str> Filter to a family key (CCM, APCM, …); repeatable. │
│ repeatable. │ │ --controls <int> With one --code and --year: list up to N │
│ --controls INTEGER With one --code and --year: list up to N │ │ never-treated control codes (same status + RVU │
│ never-treated control codes (same status + RVU │ │ band, no exposure within --window years). │
│ band, no exposure within --window years). │ │ [default: 0] │
│ [default: 0] │ │ --year <int> The exposure year --controls refers to. │
│ --year INTEGER The exposure year --controls refers to. │ │ [default: 0] │
│ [default: 0] │ │ --window <int> ±years a control must be quiet for. [default: 2] │
│ --window INTEGER ±years a control must be quiet for. [default: 2] │ │ --write Rebuild the whole calendar into pfs.code_exposure │
│ --write Rebuild the whole calendar into pfs.code_exposure │ │ and republish. │
│ and republish. │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -13,8 +13,8 @@ Usage: stack pfs guidance [OPTIONS]
CPT manual cite, with FR provenance. CPT manual cite, with FR provenance.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --family TEXT Family key (CCM, APCM, …); repeatable. │ │ --family <str> Family key (CCM, APCM, …); repeatable. │
│ --write │ │ --write │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -14,13 +14,13 @@ Usage: stack pfs lineage [OPTIONS]
fr_anchors instead of one query per code. fr_anchors instead of one query per code.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --code TEXT │ │ --code <str> │
│ --all-payable Every A/R/T code in the newest RVU year, one │ │ --all-payable Every A/R/T code in the newest RVU year, one │
│ inverted pass over fr_anchors. │ │ inverted pass over fr_anchors. │
│ --limit INTEGER Only the first N target codes (sorted) — for │ │ --limit <int> Only the first N target codes (sorted) — for │
│ smoke runs with --all-payable. │ │ smoke runs with --all-payable. │
│ [default: 0] │ │ [default: 0] │
│ --write Persist to pfs.code_event and republish. │ │ --write Persist to pfs.code_event and republish. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -16,15 +16,15 @@ Usage: stack pfs reaction [OPTIONS]
persisting the result. persisting the result.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --family TEXT Family key (CCM, APCM, …); repeatable. │ │ --family <str> Family key (CCM, APCM, …); repeatable. │
│ --code TEXT A single code as its own pseudo-family, │ │ --code <str> A single code as its own pseudo-family, keyed │
│ keyed by the code; repeatable. │ │ by the code; repeatable. │
│ --stance-sample INTEGER Classify the newest N commenters per docket │ │ --stance-sample <int> Classify the newest N commenters per docket │
│ into support/oppose/modify/unclear via the │ │ into support/oppose/modify/unclear via the │
│ self-hosted classifier (0 = skip; no stance │ │ self-hosted classifier (0 = skip; no stance │
│ sample means no LLM call at all). │ │ sample means no LLM call at all). │
│ [default: 0] │ │ [default: 0] │
│ --write │ │ --write │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,7 +11,7 @@ Usage: stack pfs review [OPTIONS]
Element lines the classifier could not place. Element lines the classifier could not place.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --code TEXT │ │ --code <str> │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -18,14 +18,14 @@ Usage: stack pfs utilization [OPTIONS]
republishes the replica; --code prints series from the replica. republishes the replica; --code prints series from the replica.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --year INTEGER Calendar year(s) to ingest with --write; default │ │ --year <int> Calendar year(s) to ingest with --write; default all │
│ all 2013–. │ │ 2013–. │
│ --code TEXT Print the per-year series for these codes │ │ --code <str> Print the per-year series for these codes │
│ (repeatable). │ │ (repeatable). │
│ --write Fetch from data.cms.gov, load pfs.utilization, │ │ --write Fetch from data.cms.gov, load pfs.utilization, cite, │
│ cite, republish. │ │ republish. │
│ --offline With --write: load from the cached JSON instead of │ │ --offline With --write: load from the cached JSON instead of │
│ the API. │ │ the API. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,41 +1,41 @@
--- ---
title: stack prisma eligible title: stack prisma eligible
sidebar_position: 109 sidebar_position: 110
--- ---
# `stack prisma eligible` # `stack prisma eligible`
``` ```
Usage: stack prisma eligible [OPTIONS] NAME Usage: stack prisma eligible [OPTIONS] {name}
Stage 3 — LLM-driven full-text eligibility pass. Stage 3 — LLM-driven full-text eligibility pass.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug. [required] │ │ * name <str> Project slug. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit -n INTEGER [default: 0] │ │ --limit -n <int> [default: 0] │
│ --max-chars INTEGER Cap per-item markdown (full text) │ │ --max-chars <int> Cap per-item markdown (full text) at │
│ at N chars so bounded-context local │ │ N chars so bounded-context local │
│ models keep the criteria in window. │ │ models keep the criteria in window. │
│ 0 = no cap. │ │ 0 = no cap. │
│ [default: 0] │ │ [default: 0] │
│ --db PATH [default: │ │ --db <path> [default: │
│ data/zotero/data/zotero.sqlite] │ │ data/zotero/data/zotero.sqlite] │
│ --storage PATH [default: data/zotero/data/storage] │ │ --storage <path> [default: data/zotero/data/storage] │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --hosts TEXT Comma-separated Ollama base URLs — │ │ --hosts <str> Comma-separated Ollama base URLs — │
│ fleet mode (#655): parallel │ │ fleet mode (#655): parallel │
│ eligibility via native /api/chat │ │ eligibility via native /api/chat │
│ with per-request num_ctx; bypasses │ │ with per-request num_ctx; bypasses │
│ PRISMA_LLM_* env config. │ │ PRISMA_LLM_* env config. │
│ --fleet-model TEXT Model name on every fleet host. │ │ --fleet-model <str> Model name on every fleet host. │
│ [default: qwen2.5:14b] │ │ [default: qwen2.5:14b] │
│ --num-ctx INTEGER Context window per fleet request. │ │ --num-ctx <int> Context window per fleet request. │
│ [default: 8192] │ │ [default: 8192] │
│ --per-host INTEGER Max in-flight requests per fleet │ │ --per-host <int> Max in-flight requests per fleet │
│ host. │ │ host. │
│ [default: 1] │ │ [default: 1] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,23 +1,23 @@
--- ---
title: stack prisma export title: stack prisma export
sidebar_position: 106 sidebar_position: 107
--- ---
# `stack prisma export` # `stack prisma export`
``` ```
Usage: stack prisma export [OPTIONS] ZOT_ID Usage: stack prisma export [OPTIONS] {zot_id}
Dump one Zotero item as the LLM-ready markdown snapshot. Dump one Zotero item as the LLM-ready markdown snapshot.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * zot_id INTEGER Zotero itemID to export. [required] │ │ * zot_id <int> Zotero itemID to export. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --fulltext │ │ --fulltext │
│ --db PATH [default: data/zotero/data/zotero.sqlite] │ │ --db <path> [default: data/zotero/data/zotero.sqlite] │
│ --storage PATH [default: data/zotero/data/storage] │ │ --storage <path> [default: data/zotero/data/storage] │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,36 +1,36 @@
--- ---
title: stack prisma extract title: stack prisma extract
sidebar_position: 110 sidebar_position: 111
--- ---
# `stack prisma extract` # `stack prisma extract`
``` ```
Usage: stack prisma extract [OPTIONS] NAME Usage: stack prisma extract [OPTIONS] {name}
Stage 3+ — structured data extraction on included studies. Stage 3+ — structured data extraction on included studies.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug. [required] │ │ * name <str> Project slug. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit -n INTEGER [default: 0] │ │ --limit -n <int> [default: 0] │
│ --db PATH [default: │ │ --db <path> [default: │
│ data/zotero/data/zotero.sqlite] │ │ data/zotero/data/zotero.sqlite] │
│ --storage PATH [default: data/zotero/data/storage] │ │ --storage <path> [default: data/zotero/data/storage] │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --hosts TEXT Comma-separated Ollama base URLs — │ │ --hosts <str> Comma-separated Ollama base URLs — │
│ fleet mode (#655): parallel │ │ fleet mode (#655): parallel │
│ extraction via native /api/chat │ │ extraction via native /api/chat with │
│ with per-request num_ctx; bypasses │ │ per-request num_ctx; bypasses │
│ PRISMA_LLM_* env config. │ │ PRISMA_LLM_* env config. │
│ --fleet-model TEXT Model name on every fleet host. │ │ --fleet-model <str> Model name on every fleet host. │
│ [default: qwen2.5:14b] │ │ [default: qwen2.5:14b] │
│ --num-ctx INTEGER Context window per fleet request. │ │ --num-ctx <int> Context window per fleet request. │
│ [default: 8192] │ │ [default: 8192] │
│ --per-host INTEGER Max in-flight requests per fleet │ │ --per-host <int> Max in-flight requests per fleet │
│ host. │ │ host. │
│ [default: 1] │ │ [default: 1] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,12 +1,12 @@
--- ---
title: stack prisma fetch title: stack prisma fetch
sidebar_position: 112 sidebar_position: 113
--- ---
# `stack prisma fetch` # `stack prisma fetch`
``` ```
Usage: stack prisma fetch [OPTIONS] NAME Usage: stack prisma fetch [OPTIONS] {name}
Fetch PDFs for every non-excluded item lacking an attachment. Fetch PDFs for every non-excluded item lacking an attachment.
@@ -21,29 +21,28 @@ Usage: stack prisma fetch [OPTIONS] NAME
the duration of the fetch and closes it on exit. No sudo required. the duration of the fetch and closes it on exit. No sudo required.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug. [required] │ │ * name <str> Project slug. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit -n INTEGER [default: 0] │ │ --limit -n <int> [default: 0] │
│ --workers -w INTEGER Concurrent fetch workers (fallback │ │ --workers -w <int> Concurrent fetch workers (fallback │
│ tier stays serialized). │ │ tier stays serialized). │
│ [default: 8] │ │ [default: 8] │
│ --db PATH [default: │ │ --db <path> [default: │
│ data/zotero/data/zotero.sqlite] │ │ data/zotero/data/zotero.sqlite] │
│ --storage PATH [default: data/zotero/data/storage] │ │ --storage <path> [default: data/zotero/data/storage] │
│ --scratch PATH [default: .state/prisma-fetch] │ │ --scratch <path> [default: .state/prisma-fetch] │
│ --proxy TEXT Override PRISMA_FETCH_PROXY (else │ │ --proxy <str> Override PRISMA_FETCH_PROXY (else │
│ env). │ │ env). │
│ --vpn --no-vpn Auto-open an SSH tunnel to the │ │ --vpn --no-vpn Auto-open an SSH tunnel to the │
│ provisioned droplet when one exists. │ │ provisioned droplet when one exists. │
│ --no-vpn skips the tunnel and uses │ │ --no-vpn skips the tunnel and uses │
│ only the unproxied sources. │ │ only the unproxied sources. │
│ [default: vpn] │ │ [default: vpn] │
│ --verify --no-verify Curl through the proxy once before │ │ --verify --no-verify Curl through the proxy once before │
│ fetching and confirm egress is │ │ fetching and confirm egress is non-US. │
│ non-US. │ │ [default: verify] │
│ [default: verify] │ │ --hold --no-hold [default: hold] │
│ --hold --no-hold [default: hold] │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,22 +1,22 @@
--- ---
title: stack prisma flow title: stack prisma flow
sidebar_position: 111 sidebar_position: 112
--- ---
# `stack prisma flow` # `stack prisma flow`
``` ```
Usage: stack prisma flow [OPTIONS] NAME Usage: stack prisma flow [OPTIONS] {name}
Emit the PRISMA 2020 flow diagram from current tag counts. Emit the PRISMA 2020 flow diagram from current tag counts.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug. [required] │ │ * name <str> Project slug. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --mermaid --text [default: mermaid] │ │ --mermaid --text [default: mermaid] │
│ --db PATH [default: data/zotero/data/zotero.sqlite] │ │ --db <path> [default: data/zotero/data/zotero.sqlite] │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,23 +1,23 @@
--- ---
title: stack prisma init title: stack prisma init
sidebar_position: 105 sidebar_position: 106
--- ---
# `stack prisma init` # `stack prisma init`
``` ```
Usage: stack prisma init [OPTIONS] NAME Usage: stack prisma init [OPTIONS] {name}
Create (or re-load) the project's three Zotero anchor items: criteria, Create (or re-load) the project's three Zotero anchor items: criteria,
extraction-template, and the reasons codebook. extraction-template, and the reasons codebook.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug, e.g. skin-subs. [required] │ │ * name <str> Project slug, e.g. skin-subs. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --db PATH Zotero SQLite path. │ │ --db <path> Zotero SQLite path. │
│ [default: data/zotero/data/zotero.sqlite] │ │ [default: data/zotero/data/zotero.sqlite] │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,6 +1,6 @@
--- ---
title: stack prisma ping-llm title: stack prisma ping-llm
sidebar_position: 107 sidebar_position: 108
--- ---
# `stack prisma ping-llm` # `stack prisma ping-llm`

View File

@@ -1,12 +1,12 @@
--- ---
title: stack prisma run title: stack prisma run
sidebar_position: 113 sidebar_position: 114
--- ---
# `stack prisma run` # `stack prisma run`
``` ```
Usage: stack prisma run [OPTIONS] NAME Usage: stack prisma run [OPTIONS] {name}
Orchestrate all PRISMA stages in order. Orchestrate all PRISMA stages in order.
@@ -15,18 +15,17 @@ Usage: stack prisma run [OPTIONS] NAME
exclusions are terminal by design. exclusions are terminal by design.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug. [required] │ │ * name <str> Project slug. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit -n INTEGER Same limit applied to every stage. │ │ --limit -n <int> Same limit applied to every stage. │
│ [default: 0] │ │ [default: 0] │
│ --skip-fetch │ │ --skip-fetch │
│ --skip-extract │ │ --skip-extract │
│ --db PATH [default: │ │ --db <path> [default: │
│ data/zotero/data/zotero.sqlite] │ │ data/zotero/data/zotero.sqlite] │
│ --storage PATH [default: │ │ --storage <path> [default: data/zotero/data/storage] │
│ data/zotero/data/storage] │ │ --hold --no-hold [default: hold] │
│ --hold --no-hold [default: hold] │ │ --help Show this message and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,34 +1,34 @@
--- ---
title: stack prisma screen title: stack prisma screen
sidebar_position: 108 sidebar_position: 109
--- ---
# `stack prisma screen` # `stack prisma screen`
``` ```
Usage: stack prisma screen [OPTIONS] NAME Usage: stack prisma screen [OPTIONS] {name}
Stage 2 — LLM-driven title/abstract screening pass. Stage 2 — LLM-driven title/abstract screening pass.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Project slug. [required] │ │ * name <str> Project slug. [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --limit -n INTEGER 0 = screen every unscreened item. │ │ --limit -n <int> 0 = screen every unscreened item. │
│ [default: 0] │ │ [default: 0] │
│ --db PATH [default: │ │ --db <path> [default: │
│ data/zotero/data/zotero.sqlite] │ │ data/zotero/data/zotero.sqlite] │
│ --storage PATH [default: data/zotero/data/storage] │ │ --storage <path> [default: data/zotero/data/storage] │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --hosts TEXT Comma-separated Ollama base URLs — │ │ --hosts <str> Comma-separated Ollama base URLs — │
│ fleet mode (#655): parallel │ │ fleet mode (#655): parallel │
│ screening via native /api/chat with │ │ screening via native /api/chat with │
│ per-request num_ctx; bypasses │ │ per-request num_ctx; bypasses │
│ PRISMA_LLM_* env config. │ │ PRISMA_LLM_* env config. │
│ --fleet-model TEXT Model name on every fleet host. │ │ --fleet-model <str> Model name on every fleet host. │
│ [default: qwen2.5:14b] │ │ [default: qwen2.5:14b] │
│ --num-ctx INTEGER Context window per fleet request. │ │ --num-ctx <int> Context window per fleet request. │
│ [default: 8192] │ │ [default: 8192] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -1,6 +1,6 @@
--- ---
title: stack prisma vpn title: stack prisma vpn
sidebar_position: 114 sidebar_position: 115
--- ---
# `stack prisma vpn` # `stack prisma vpn`

View File

@@ -1,6 +1,6 @@
--- ---
title: stack prisma title: stack prisma
sidebar_position: 104 sidebar_position: 105
--- ---
# `stack prisma` # `stack prisma`

View File

@@ -11,11 +11,11 @@ Usage: stack rec opps [OPTIONS]
Reconcile OPPS calculated rates against Addendum B. Reconcile OPPS calculated rates against Addendum B.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --year -y INTEGER Year to reconcile; omit for all. │ │ --year -y <int> Year to reconcile; omit for all. │
│ --format -f TEXT Output format: md | json. [default: md] │ │ --format -f <str> Output format: md | json. [default: md] │
│ --output -o PATH Write to file instead of stdout. │ │ --output -o <path> Write to file instead of stdout. │
│ --tolerance -t INTEGER Cents of tolerance for an 'exact' match. │ │ --tolerance -t <int> Cents of tolerance for an 'exact' match. │
│ [default: 0] │ │ [default: 0] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,11 +11,11 @@ Usage: stack rec pfs [OPTIONS]
Reconcile PFS calculated fees against carrier_locality. Reconcile PFS calculated fees against carrier_locality.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --year -y INTEGER Year to reconcile; omit for all. │ │ --year -y <int> Year to reconcile; omit for all. │
│ --format -f TEXT Output format: md | json. [default: md] │ │ --format -f <str> Output format: md | json. [default: md] │
│ --output -o PATH Write to file instead of stdout. │ │ --output -o <path> Write to file instead of stdout. │
│ --tolerance -t INTEGER Cents of tolerance for an 'exact' match. │ │ --tolerance -t <int> Cents of tolerance for an 'exact' match. │
│ [default: 0] │ │ [default: 0] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,19 +6,19 @@ sidebar_position: 2
# `stack run` # `stack run`
``` ```
Usage: stack run [OPTIONS] NAME Usage: stack run [OPTIONS] {name}
Execute a named pipeline against the chosen target context. Execute a named pipeline against the chosen target context.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * name TEXT Pipeline name (e.g. readmissions). [required] │ │ * name <str> Pipeline name (e.g. readmissions). [required] │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --target TEXT Target context: local, lake, trino, databricks, │ │ --target <str> Target context: local, lake, trino, databricks, │
│ spark. │ │ spark. │
│ --catalog TEXT Unity Catalog name (overrides config). Implies │ │ --catalog <str> Unity Catalog name (overrides config). Implies │
│ target=spark. │ │ target=spark. │
│ --save Save pipeline outputs back to the database. │ │ --save Save pipeline outputs back to the database. │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -37,5 +37,6 @@ Usage: stack [OPTIONS] COMMAND [ARGS]...
│ zot Zotero database maintenance. │ │ zot Zotero database maintenance. │
│ prisma LLM-driven PRISMA screening workflow. │ │ prisma LLM-driven PRISMA screening workflow. │
│ mail Maddy mail server (DO + Resend smarthost). │ │ mail Maddy mail server (DO + Resend smarthost). │
│ nlm NLM terminology releases and VSAC value sets. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -6,7 +6,7 @@ sidebar_position: 3
# `stack validate` # `stack validate`
``` ```
Usage: stack validate [OPTIONS] [PIPELINE] Usage: stack validate [OPTIONS] [pipeline]
Verify pipeline output contracts against SQLTable models. Verify pipeline output contracts against SQLTable models.
@@ -15,11 +15,11 @@ Usage: stack validate [OPTIONS] [PIPELINE]
without saving anything. without saving anything.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮ ╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ pipeline [PIPELINE] Pipeline name to validate (all if omitted). │ │ pipeline <str> Pipeline name to validate (all if omitted). │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --target TEXT Target context: local, lake, trino, databricks. │ │ --target <str> Target context: local, lake, trino, databricks. │
│ [default: local] │ │ [default: local] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -14,10 +14,10 @@ Usage: stack zot dump-schema [OPTIONS]
FIELD_MAP, and CREATOR_TYPES in ``src/zot/db.py`` verbatim. FIELD_MAP, and CREATOR_TYPES in ``src/zot/db.py`` verbatim.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --db PATH Default: data/zotero/data/zotero.sqlite │ │ --db <path> Default: data/zotero/data/zotero.sqlite │
│ --python --json Emit paste-ready Python literals for zot/db.py │ │ --python --json Emit paste-ready Python literals for zot/db.py │
│ (default) or JSON. │ │ (default) or JSON. │
│ [default: python] │ │ [default: python] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -0,0 +1,43 @@
---
title: stack zot fetch
sidebar_position: 104
---
# `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. │
╰──────────────────────────────────────────────────────────────────────────────╯
```

View File

@@ -11,8 +11,8 @@ Usage: stack zot fix-dates [OPTIONS]
Normalize item timestamps to ISO 8601 + install auto-fix triggers. Normalize item timestamps to ISO 8601 + install auto-fix triggers.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --db PATH │ │ --db <path> │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,8 +11,8 @@ Usage: stack zot fix-fields [OPTIONS]
Remap base-field rows to type-specific fieldIDs; drop orphans. Remap base-field rows to type-specific fieldIDs; drop orphans.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --db PATH │ │ --db <path> │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -11,9 +11,9 @@ Usage: stack zot fix-keys [OPTIONS]
Replace invalid Zotero object keys (0/1/O/lowercase → valid). Replace invalid Zotero object keys (0/1/O/lowercase → valid).
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --db PATH │ │ --db <path> │
│ --hold --no-hold [default: hold] │ │ --hold --no-hold [default: hold] │
│ --backup --no-backup [default: backup] │ │ --backup --no-backup [default: backup] │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -15,7 +15,7 @@ Usage: stack zot verify-parity [OPTIONS]
bumps Zotero without regenerating the maps. bumps Zotero without regenerating the maps.
╭─ Options ────────────────────────────────────────────────────────────────────╮ ╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --db PATH │ │ --db <path> │
│ --help Show this message and exit. │ │ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```

View File

@@ -21,5 +21,6 @@ Usage: stack zot [OPTIONS] COMMAND [ARGS]...
│ fix-fields Remap base-field rows to type-specific fieldIDs; drop │ │ fix-fields Remap base-field rows to type-specific fieldIDs; drop │
│ orphans. │ │ orphans. │
│ verify-parity Check that ``zot.db`` constants match the live Zotero schema. │ │ verify-parity Check that ``zot.db`` constants match the live Zotero schema. │
│ fetch Attach an open-access PDF to items that lack a full text. │
╰──────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────╯
``` ```