@kinloom/cli 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/assets/cached-ocr.py +786 -0
  2. package/dist/assets/ocr.md +76 -0
  3. package/dist/assets/prep-scan.md +97 -0
  4. package/dist/assets/prep-scan.py +1313 -0
  5. package/dist/bundled-skills/acpl-persi/SKILL.md +103 -0
  6. package/dist/bundled-skills/acpl-persi/scripts/persi +539 -0
  7. package/dist/bundled-skills/archive-org/SKILL.md +162 -0
  8. package/dist/bundled-skills/archive-org/scripts/archive-org +1576 -0
  9. package/dist/bundled-skills/blm-glo/SKILL.md +54 -0
  10. package/dist/bundled-skills/california-archives/SKILL.md +130 -0
  11. package/dist/bundled-skills/california-archives/scripts/ca-archives +614 -0
  12. package/dist/bundled-skills/chronicling-america/SKILL.md +120 -0
  13. package/dist/bundled-skills/chronicling-america/scripts/chronam +553 -0
  14. package/dist/bundled-skills/cyndis-list/SKILL.md +53 -0
  15. package/dist/bundled-skills/findagrave/SKILL.md +129 -0
  16. package/dist/bundled-skills/findagrave/scripts/findagrave +965 -0
  17. package/dist/bundled-skills/hathitrust/SKILL.md +117 -0
  18. package/dist/bundled-skills/hathitrust/scripts/hathi +379 -0
  19. package/dist/bundled-skills/kentucky-archives/SKILL.md +124 -0
  20. package/dist/bundled-skills/kentucky-archives/scripts/ky-archives +646 -0
  21. package/dist/bundled-skills/library-of-michigan/SKILL.md +118 -0
  22. package/dist/bundled-skills/library-of-michigan/scripts/michiganology +515 -0
  23. package/dist/bundled-skills/missouri-archives/SKILL.md +109 -0
  24. package/dist/bundled-skills/missouri-archives/scripts/mo-archives +751 -0
  25. package/dist/bundled-skills/nara-catalog-search/SKILL.md +130 -0
  26. package/dist/bundled-skills/nara-catalog-search/scripts/nara +1387 -0
  27. package/dist/bundled-skills/narrative-audio/SKILL.md +103 -0
  28. package/dist/bundled-skills/narrative-audio/references/script-rules.md +109 -0
  29. package/dist/bundled-skills/narrative-audio/scripts/narrative-audio +290 -0
  30. package/dist/bundled-skills/new-jersey-archives/SKILL.md +135 -0
  31. package/dist/bundled-skills/new-jersey-archives/scripts/nj-archives +869 -0
  32. package/dist/bundled-skills/openarchieven/SKILL.md +97 -0
  33. package/dist/bundled-skills/openarchieven/scripts/openarchieven +624 -0
  34. package/dist/bundled-skills/texas-archives/SKILL.md +102 -0
  35. package/dist/bundled-skills/texas-archives/scripts/texas-archives +666 -0
  36. package/dist/bundled-skills/uk-archives/SKILL.md +110 -0
  37. package/dist/bundled-skills/uk-archives/scripts/uk-archives +631 -0
  38. package/dist/bundled-skills/usgs-gnis/SKILL.md +99 -0
  39. package/dist/bundled-skills/usgs-gnis/scripts/gnis +418 -0
  40. package/dist/bundled-skills/virginia-archives/SKILL.md +144 -0
  41. package/dist/bundled-skills/virginia-archives/scripts/va-archives +1039 -0
  42. package/dist/bundled-skills/wikitree/SKILL.md +154 -0
  43. package/dist/bundled-skills/wikitree/scripts/wikitree +455 -0
  44. package/dist/cli.d.ts +1 -1
  45. package/dist/cli.d.ts.map +1 -1
  46. package/dist/cli.js +488 -26
  47. package/dist/cli.js.map +1 -1
  48. package/dist/client.d.ts.map +1 -1
  49. package/dist/client.js +30 -5
  50. package/dist/client.js.map +1 -1
  51. package/dist/commands/ops/audit.d.ts +138 -0
  52. package/dist/commands/ops/audit.d.ts.map +1 -0
  53. package/dist/commands/ops/audit.js +872 -0
  54. package/dist/commands/ops/audit.js.map +1 -0
  55. package/dist/commands/ops/context.d.ts +100 -0
  56. package/dist/commands/ops/context.d.ts.map +1 -0
  57. package/dist/commands/ops/context.js +917 -0
  58. package/dist/commands/ops/context.js.map +1 -0
  59. package/dist/commands/ops/dates.d.ts +87 -0
  60. package/dist/commands/ops/dates.d.ts.map +1 -0
  61. package/dist/commands/ops/dates.js +228 -0
  62. package/dist/commands/ops/dates.js.map +1 -0
  63. package/dist/commands/ops/help.d.ts +8 -0
  64. package/dist/commands/ops/help.d.ts.map +1 -0
  65. package/dist/commands/ops/help.js +107 -0
  66. package/dist/commands/ops/help.js.map +1 -0
  67. package/dist/commands/ops/index.d.ts +8 -0
  68. package/dist/commands/ops/index.d.ts.map +1 -0
  69. package/dist/commands/ops/index.js +8 -0
  70. package/dist/commands/ops/index.js.map +1 -0
  71. package/dist/commands/ops/integrate.d.ts +61 -0
  72. package/dist/commands/ops/integrate.d.ts.map +1 -0
  73. package/dist/commands/ops/integrate.js +1063 -0
  74. package/dist/commands/ops/integrate.js.map +1 -0
  75. package/dist/commands/ops/sync.d.ts +194 -0
  76. package/dist/commands/ops/sync.d.ts.map +1 -0
  77. package/dist/commands/ops/sync.js +1251 -0
  78. package/dist/commands/ops/sync.js.map +1 -0
  79. package/dist/commands/ops/telemetry.d.ts +79 -0
  80. package/dist/commands/ops/telemetry.d.ts.map +1 -0
  81. package/dist/commands/ops/telemetry.js +249 -0
  82. package/dist/commands/ops/telemetry.js.map +1 -0
  83. package/dist/commands/ops/verify.d.ts +76 -0
  84. package/dist/commands/ops/verify.d.ts.map +1 -0
  85. package/dist/commands/ops/verify.js +325 -0
  86. package/dist/commands/ops/verify.js.map +1 -0
  87. package/dist/commands/records/help.d.ts +18 -0
  88. package/dist/commands/records/help.d.ts.map +1 -0
  89. package/dist/commands/records/help.js +174 -0
  90. package/dist/commands/records/help.js.map +1 -0
  91. package/dist/commands/records/index.d.ts +5 -0
  92. package/dist/commands/records/index.d.ts.map +1 -0
  93. package/dist/commands/records/index.js +5 -0
  94. package/dist/commands/records/index.js.map +1 -0
  95. package/dist/commands/records/registry.d.ts +32 -0
  96. package/dist/commands/records/registry.d.ts.map +1 -0
  97. package/dist/commands/records/registry.js +227 -0
  98. package/dist/commands/records/registry.js.map +1 -0
  99. package/dist/commands/records/resolve.d.ts +14 -0
  100. package/dist/commands/records/resolve.d.ts.map +1 -0
  101. package/dist/commands/records/resolve.js +61 -0
  102. package/dist/commands/records/resolve.js.map +1 -0
  103. package/dist/commands/records/runner.d.ts +27 -0
  104. package/dist/commands/records/runner.d.ts.map +1 -0
  105. package/dist/commands/records/runner.js +255 -0
  106. package/dist/commands/records/runner.js.map +1 -0
  107. package/dist/index.d.ts +2 -0
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js +2 -0
  110. package/dist/index.js.map +1 -1
  111. package/package.json +3 -3
@@ -0,0 +1,109 @@
1
+ ---
2
+ name: missouri-archives
3
+ description: Search Missouri State Archives vital records through the bundled `mo-archives` CLI: Missouri Death Certificates 1910-1975 with certificate images, and the pre-1910 Birth and Death Records Database with full abstracts. Also gives the browser-only path for Missouri Digital Heritage collections (soldiers, land patents, naturalization, newspapers, plat books) and the State Historical Society of Missouri. Use when tracing ancestors in Missouri, finding a Missouri death certificate or pre-1910 birth or death abstract, or deciding whether a Missouri record is online, orderable, or visit-only.
4
+ ---
5
+
6
+ # Missouri Archives
7
+
8
+ This skill includes a standalone executable Python CLI at `skills/missouri-archives/scripts/mo-archives` using a PEP 723 `#!/usr/bin/env -S uv run --script` shebang with inline dependencies (`click`, `httpx`). No virtualenv setup or API key is required. Run it from the repo root with `uv` on `PATH`.
9
+
10
+ ## Bundled CLI (`scripts/mo-archives`)
11
+
12
+ ### Search death certificates, 1910-1975
13
+
14
+ ```bash
15
+ # Search death certificates by name and year
16
+ skills/missouri-archives/scripts/mo-archives death --last Clemens --first Samuel --begin-year 1910 --end-year 1920
17
+
18
+ # All deaths for a surname in a county and decade, as JSON
19
+ skills/missouri-archives/scripts/mo-archives death --last Clemens --county Marion --begin-year 1910 --end-year 1939 --json
20
+
21
+ # Search by a parent's name (1953-1975 certificates only, see below)
22
+ skills/missouri-archives/scripts/mo-archives death --last Clemens --role father --begin-year 1953 --end-year 1975
23
+
24
+ # Download the certificate PDFs for the hits
25
+ skills/missouri-archives/scripts/mo-archives death --last Clemens --county Marion --begin-year 1910 --end-year 1920 --download ./downloads/mo-certs
26
+ ```
27
+
28
+ Options: `--first`, `--middle`, `--role deceased|spouse|father|mother` (default deceased), `--match contains|starts-with|ends-with` (default contains, applied to every name field given), `--county` (spelled as on the site, default all counties), `--begin-year` / `--end-year` (default 1910-1975), `--begin-month` / `--end-month` (1-12, 0 means all, default 0), `--limit` (default 50, one results page), `--json`, `--download DIR`.
29
+
30
+ ### Search pre-1910 births and deaths
31
+
32
+ ```bash
33
+ # Deaths before 1910 (abstracts, no images)
34
+ skills/missouri-archives/scripts/mo-archives pre1910 --type death --name Clemens
35
+
36
+ # Births before 1910, in one county
37
+ skills/missouri-archives/scripts/mo-archives pre1910 --type birth --name Clemens --county Marion --json
38
+ ```
39
+
40
+ Options: `--type birth|death` (default death), `--name` (required; the site recommends last name only), `--county` (default all counties), `--limit` (default 50), `--json`.
41
+
42
+ ### Fetch a pre-1910 full abstract
43
+
44
+ ```bash
45
+ skills/missouri-archives/scripts/mo-archives detail <detail-id>
46
+ skills/missouri-archives/scripts/mo-archives detail <detail-id-1> <detail-id-2> --json
47
+ ```
48
+
49
+ Takes one or more detail IDs from `pre1910` output. Returns county, microfilm roll and page, dates, birthplace, cause of death, and the other abstract fields.
50
+
51
+ ### Download certificate PDFs by image URL
52
+
53
+ ```bash
54
+ skills/missouri-archives/scripts/mo-archives download "https://www.sos.mo.gov/images/archives/deathcerts/<year>/<filename>.PDF" --out ./downloads/mo-certs
55
+ ```
56
+
57
+ Always take the image URL from `death` output. The PDF filename is not derivable from the certificate number, so do not construct it by hand.
58
+
59
+ ### Missouri Digital Heritage (browser only)
60
+
61
+ ```bash
62
+ skills/missouri-archives/scripts/mo-archives mdh
63
+ ```
64
+
65
+ Prints the MDH home page, Advanced Search, and Archives URLs. MDH has no verified machine interface; do the search in the browser.
66
+
67
+ ### Disk cache and environment variables
68
+
69
+ `death`, `pre1910`, and `detail` cache successful responses on disk under `~/.cache/kinloom-mo-archives/` (default TTL `168` hours, advisory `flock` per cache key, atomic temp-file writes). HTTP errors and unverified 0-hit error pages are never cached.
70
+
71
+ - `--refresh`: bypass cached reads and write the fresh response to disk.
72
+ - `--cache-ttl-hours <hours>`: override TTL for one call (`0` disables cached reads).
73
+ - `KINLOOM_MO_ARCHIVES_CACHE_DIR`: override the cache directory path.
74
+ - `KINLOOM_MO_ARCHIVES_CACHE_TTL_HOURS`: override the default TTL in hours.
75
+
76
+ ## Verified interface (verified live 2026-11-24)
77
+
78
+ - Portal: https://www.sos.mo.gov/mdh. Missouri State Archives: https://www.sos.mo.gov/archives. Address: 600 West Main Street, Jefferson City, MO 65102. Research room open Monday-Friday 8:00 AM-5:00 PM. Email archref@sos.mo.gov.
79
+ - MDH home page states that more than 9 million records can be accessed through it, including the collections of the Archives, the State Library, and other institutions across the state. No login or subscription is required.
80
+ - Both vital-records databases are plain HTML POST forms on `s1.sos.mo.gov`, no API and no key. The CLI GETs the form page first (session cookies plus the `__ncforminfo` token), then POSTs the search. The POST also succeeds without the token, but the CLI sends it when the page provides one.
81
+ - A browser User-Agent is required. Direct curl with the default User-Agent returns 403 on `sos.mo.gov` (bot protection, not an outage); with a browser User-Agent the same requests return 200. The CLI sends a Chrome User-Agent on every request.
82
+ - Death Certificates search posts to `https://s1.sos.mo.gov/records/Archives/ArchivesMvc/` with fields `DeathCertNameSearchType` (Deceased/Spouse/Father/Mother), `LastName`, `FirstName`, `MiddleName`, `LNSearchMethod` / `FNSearchMethod` / `MNSearchMethod` (Contains/StartsWith/EndsWith), `BeginMonth` / `BeginYear`, `EndMonth` / `EndYear`, `CountyName` (`-- Search All --` for all counties), `Search`. Years are required in practice: an empty year range silently returns no results (verified live).
83
+ - Results are paged 50 per page in the cookie session. The CLI follows the session pager (`DeathCertificates/Results?PageNumber=N&recordsPerPage=50`, same pattern for `birthdeath/Results`) until `--limit` or the total is reached. The total comes from the page text `Showing records 1 to 50 of N`.
84
+ - Death result columns: Name, Age, Date of Death, County, Certificate Number, Last Four SSN, Image. The image is a direct PDF link, `https://www.sos.mo.gov/images/archives/deathcerts/<year>/<file>.PDF`, and downloads with a plain GET (verified live).
85
+ - Pre-1910 search posts to `https://s1.sos.mo.gov/records/archives/ArchivesMVC/birthdeath/` with `BirthCounty` / `BirthNameSearch` / `BirthSubmit` or `DeathCounty` / `DeathNameSearch` / `DeathSubmit` (`-- All Counties --` for all counties). Death columns: Name, Age, Sex, Color, Date Of Death, County, Details. Birth columns: Name, Place, County, Date, Father, Mother, Attendant, Details. Details links are `Detail?id=<n>` on the same path; the detail page gives county, roll number, page, number, dates, birthplace, cause of death, and related fields.
86
+ - MDH Advanced Search is hosted at https://mdh.deepwebaccess.com/mdh/ (linked from the MDH home page). No stable GET search URL for it was verified; do not invent one. The MDH digital collections run on CONTENTdm (`cdm16795.contentdm.oclc.org`); a direct request to its `dmwebservices` query endpoint returned 403 (Cloudflare) on 2026-11-24, so the CLI does not use it.
87
+ - Inferred, not verified: the county lists in the forms are taken as given by the site; the CLI passes any county string through and lets the site validate it.
88
+
89
+ ## What is searchable online
90
+
91
+ - Missouri Death Certificates, 1910-1975: https://s1.sos.mo.gov/records/Archives/ArchivesMvc/DeathCertificates/. Search by first, middle, and last name, county, year, and month. Digitized images of the original certificates link directly from the results. Spouse, father, and mother name search is available for 1953-1975 (the page says 1953-1975 in one place and 1954-1975 in another; try both ranges when searching parents). Death certificates are closed for 50 years before transfer to the Archives, which is why the online run advances one year at a time. A certificate typically gives date and place of birth, parents' names, spouse, cause of death, occupation, funeral home, and burial place.
92
+ - Missouri Birth and Death Records Database, Pre-1910: https://s1.sos.mo.gov/records/archives/ArchivesMVC/birthdeath/. An abstract of birth, stillbirth, and death records recorded before 1909, transcribed by volunteers from microfilm. Over 185,000 records from 87 counties. Coverage is incomplete because statewide reporting was not required before 1910. Search by all or part of a name; the site recommends entering just the last name. A birth search can match on a parent's name as well as the child's, so check the Father and Mother columns before counting a hit. All records for a county can be listed by selecting the county and leaving the name blank. For a death before 1910, this is the first check; for a birth, remember the abstract gives date, place, parents, and attendant, not a certificate image.
93
+ - Soldiers' Records, War of 1812-World War I. Nearly 1.5 million pages of service cards, muster rolls, special orders, and reports. Also on MDH: World War I Biography and Service Records. Browser only.
94
+ - Land Patent Records, 1820-1969 (the Archives' land patents run 1831-1969 in some listings; use the database's own date range when searching). Browser only.
95
+ - Naturalization Records, 1816-1955. Browser only.
96
+ - Coroner's Inquest Database, Judicial Records, Supreme Court Historical Records, Missouri State Penitentiary records, and Census Records and Tax Lists. Browser only; the death-certificate and pre-1910 databases above are the two whose URLs and machine interfaces were verified live.
97
+ - Missouri County History Project, Missouri County Plat Books, Missouri City Directories, and Missouri Newspapers, all through MDH. Plat books show landowner names on each parcel and place a family on the map between censuses. The Local Records Program's County and Municipal Records Database tells which county books are available on microfilm at the Archives. Browser only.
98
+
99
+ ## What is in-person or order-only
100
+
101
+ - The Archives cannot issue certified copies of vital records. For certified copies of births or deaths filed after 1909, contact the Missouri Bureau of Vital Records at 573-751-6387.
102
+ - County records on microfilm, court files, and un-digitized collections require a visit or a reference request to archref@sos.mo.gov.
103
+ - The State Historical Society of Missouri (SHSMO, shsmo.org, digital collections at digital.shsmo.org) holds Missouri newspapers from about 1800, manuscripts, maps, and finding aids. Its research centers are FamilySearch Affiliate Libraries, giving in-person visitors access to otherwise restricted FamilySearch collections. Check SHSMO when MDH has no newspaper or manuscript hit.
104
+
105
+ ## Research workflow
106
+
107
+ 1. For a Missouri death between 1910 and 1975, search the Death Certificates database by surname, county if known, and year range. Open the linked certificate PDF and record parents' names, birthplace, spouse, burial place, and informant; the informant is often a close relative.
108
+ 2. For a death or birth before 1910, search the pre-1910 Birth and Death Records database by surname only, then fetch the detail abstract with `mo-archives detail <id>` to confirm county, microfilm roll, and page before ordering microfilm or visiting. Note the pre-1910 index can list the same person twice from overlapping abstracts; check the detail page before counting two entries as two people.
109
+ 3. For landowners, follow up in the Land Patent Records and Missouri County Plat Books on MDH in the browser, and cross-check federal patents with the `blm-glo` skill.