@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.
- package/dist/assets/cached-ocr.py +786 -0
- package/dist/assets/ocr.md +76 -0
- package/dist/assets/prep-scan.md +97 -0
- package/dist/assets/prep-scan.py +1313 -0
- package/dist/bundled-skills/acpl-persi/SKILL.md +103 -0
- package/dist/bundled-skills/acpl-persi/scripts/persi +539 -0
- package/dist/bundled-skills/archive-org/SKILL.md +162 -0
- package/dist/bundled-skills/archive-org/scripts/archive-org +1576 -0
- package/dist/bundled-skills/blm-glo/SKILL.md +54 -0
- package/dist/bundled-skills/california-archives/SKILL.md +130 -0
- package/dist/bundled-skills/california-archives/scripts/ca-archives +614 -0
- package/dist/bundled-skills/chronicling-america/SKILL.md +120 -0
- package/dist/bundled-skills/chronicling-america/scripts/chronam +553 -0
- package/dist/bundled-skills/cyndis-list/SKILL.md +53 -0
- package/dist/bundled-skills/findagrave/SKILL.md +129 -0
- package/dist/bundled-skills/findagrave/scripts/findagrave +965 -0
- package/dist/bundled-skills/hathitrust/SKILL.md +117 -0
- package/dist/bundled-skills/hathitrust/scripts/hathi +379 -0
- package/dist/bundled-skills/kentucky-archives/SKILL.md +124 -0
- package/dist/bundled-skills/kentucky-archives/scripts/ky-archives +646 -0
- package/dist/bundled-skills/library-of-michigan/SKILL.md +118 -0
- package/dist/bundled-skills/library-of-michigan/scripts/michiganology +515 -0
- package/dist/bundled-skills/missouri-archives/SKILL.md +109 -0
- package/dist/bundled-skills/missouri-archives/scripts/mo-archives +751 -0
- package/dist/bundled-skills/nara-catalog-search/SKILL.md +130 -0
- package/dist/bundled-skills/nara-catalog-search/scripts/nara +1387 -0
- package/dist/bundled-skills/narrative-audio/SKILL.md +103 -0
- package/dist/bundled-skills/narrative-audio/references/script-rules.md +109 -0
- package/dist/bundled-skills/narrative-audio/scripts/narrative-audio +290 -0
- package/dist/bundled-skills/new-jersey-archives/SKILL.md +135 -0
- package/dist/bundled-skills/new-jersey-archives/scripts/nj-archives +869 -0
- package/dist/bundled-skills/openarchieven/SKILL.md +97 -0
- package/dist/bundled-skills/openarchieven/scripts/openarchieven +624 -0
- package/dist/bundled-skills/texas-archives/SKILL.md +102 -0
- package/dist/bundled-skills/texas-archives/scripts/texas-archives +666 -0
- package/dist/bundled-skills/uk-archives/SKILL.md +110 -0
- package/dist/bundled-skills/uk-archives/scripts/uk-archives +631 -0
- package/dist/bundled-skills/usgs-gnis/SKILL.md +99 -0
- package/dist/bundled-skills/usgs-gnis/scripts/gnis +418 -0
- package/dist/bundled-skills/virginia-archives/SKILL.md +144 -0
- package/dist/bundled-skills/virginia-archives/scripts/va-archives +1039 -0
- package/dist/bundled-skills/wikitree/SKILL.md +154 -0
- package/dist/bundled-skills/wikitree/scripts/wikitree +455 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +488 -26
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -5
- package/dist/client.js.map +1 -1
- package/dist/commands/ops/audit.d.ts +138 -0
- package/dist/commands/ops/audit.d.ts.map +1 -0
- package/dist/commands/ops/audit.js +872 -0
- package/dist/commands/ops/audit.js.map +1 -0
- package/dist/commands/ops/context.d.ts +100 -0
- package/dist/commands/ops/context.d.ts.map +1 -0
- package/dist/commands/ops/context.js +917 -0
- package/dist/commands/ops/context.js.map +1 -0
- package/dist/commands/ops/dates.d.ts +87 -0
- package/dist/commands/ops/dates.d.ts.map +1 -0
- package/dist/commands/ops/dates.js +228 -0
- package/dist/commands/ops/dates.js.map +1 -0
- package/dist/commands/ops/help.d.ts +8 -0
- package/dist/commands/ops/help.d.ts.map +1 -0
- package/dist/commands/ops/help.js +107 -0
- package/dist/commands/ops/help.js.map +1 -0
- package/dist/commands/ops/index.d.ts +8 -0
- package/dist/commands/ops/index.d.ts.map +1 -0
- package/dist/commands/ops/index.js +8 -0
- package/dist/commands/ops/index.js.map +1 -0
- package/dist/commands/ops/integrate.d.ts +61 -0
- package/dist/commands/ops/integrate.d.ts.map +1 -0
- package/dist/commands/ops/integrate.js +1063 -0
- package/dist/commands/ops/integrate.js.map +1 -0
- package/dist/commands/ops/sync.d.ts +194 -0
- package/dist/commands/ops/sync.d.ts.map +1 -0
- package/dist/commands/ops/sync.js +1251 -0
- package/dist/commands/ops/sync.js.map +1 -0
- package/dist/commands/ops/telemetry.d.ts +79 -0
- package/dist/commands/ops/telemetry.d.ts.map +1 -0
- package/dist/commands/ops/telemetry.js +249 -0
- package/dist/commands/ops/telemetry.js.map +1 -0
- package/dist/commands/ops/verify.d.ts +76 -0
- package/dist/commands/ops/verify.d.ts.map +1 -0
- package/dist/commands/ops/verify.js +325 -0
- package/dist/commands/ops/verify.js.map +1 -0
- package/dist/commands/records/help.d.ts +18 -0
- package/dist/commands/records/help.d.ts.map +1 -0
- package/dist/commands/records/help.js +174 -0
- package/dist/commands/records/help.js.map +1 -0
- package/dist/commands/records/index.d.ts +5 -0
- package/dist/commands/records/index.d.ts.map +1 -0
- package/dist/commands/records/index.js +5 -0
- package/dist/commands/records/index.js.map +1 -0
- package/dist/commands/records/registry.d.ts +32 -0
- package/dist/commands/records/registry.d.ts.map +1 -0
- package/dist/commands/records/registry.js +227 -0
- package/dist/commands/records/registry.js.map +1 -0
- package/dist/commands/records/resolve.d.ts +14 -0
- package/dist/commands/records/resolve.d.ts.map +1 -0
- package/dist/commands/records/resolve.js +61 -0
- package/dist/commands/records/resolve.js.map +1 -0
- package/dist/commands/records/runner.d.ts +27 -0
- package/dist/commands/records/runner.d.ts.map +1 -0
- package/dist/commands/records/runner.js +255 -0
- package/dist/commands/records/runner.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: uk-archives
|
|
3
|
+
description: Research historical and genealogical records in England and the UK via the bundled `uk-archives` CLI. Covers The National Archives Discovery free JSON API (wills, Chancery, local deposit catalogues) and FreeREG parish register transcriptions (Rails form over HTTP, no API key). Also documents browser-only paths for Nottinghamshire Archives CalmView, British History Online, and GENUKI, with honest notes on subscription sites (Ancestry UK, Findmypast, GRO PDF ordering). Use when tracing English ancestors before emigration, finding PCC wills, parish baptisms or marriages, or deciding whether a UK record is online, digitised, or visit-only.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# UK Archives: England and The National Archives
|
|
7
|
+
|
|
8
|
+
Portals: [The National Archives Discovery](https://discovery.nationalarchives.gov.uk/), [FreeREG](https://www.freereg.org.uk/), [Nottinghamshire Archives catalogue](https://nawcat.nottinghamshire.gov.uk/), [British History Online](https://www.british-history.ac.uk/), [GENUKI England](https://www.genuki.org.uk/big/eng).
|
|
9
|
+
|
|
10
|
+
## Bundled CLI (`scripts/uk-archives`)
|
|
11
|
+
|
|
12
|
+
Path: `skills/uk-archives/scripts/uk-archives`
|
|
13
|
+
|
|
14
|
+
A standalone executable Python CLI with a PEP 723 `#!/usr/bin/env -S uv run --script` shebang and inline dependencies (`click`, `httpx`). No virtualenv setup, no API key, no account.
|
|
15
|
+
|
|
16
|
+
### The National Archives Discovery
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Search Discovery catalogue hits filtered by county text
|
|
20
|
+
skills/uk-archives/scripts/uk-archives discovery search Lincoln --held-by Norfolk --limit 10
|
|
21
|
+
|
|
22
|
+
# PCC wills (PROB 11) for a surname and date range
|
|
23
|
+
skills/uk-archives/scripts/uk-archives discovery search Lincoln \
|
|
24
|
+
--date-from 1550 --date-to 1660 --collection "PROB 11" --limit 20 --json
|
|
25
|
+
|
|
26
|
+
# One record (verified detail endpoint uses /API/records/v1/details/<id>; aliases: inspect, get)
|
|
27
|
+
skills/uk-archives/scripts/uk-archives discovery detail <record-id> --json
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Search options: `--held-by` (free text appended to the query), `--date-from` / `--from-year` and `--date-to` / `--to-year` (YYYY or YYYY-MM-DD, mapped to `sps.dateFrom` / `sps.dateTo`), `--collection` (appended to the query and used to post-filter by catalogue reference), `--limit` (the API returns at most 15 rows per request; the CLI slices to your limit), `--query` / `-q` (alias for positional query). Each hit prints id, reference, dates, title, places, and a Discovery web URL.
|
|
31
|
+
|
|
32
|
+
The detail route verified live is `https://discovery.nationalarchives.gov.uk/API/records/v1/details/<id>` (not `.../search/v1/records/v1/details/...`, which returns 404).
|
|
33
|
+
|
|
34
|
+
### FreeREG parish registers
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Search FreeREG by surname, county Chapman code, and year range
|
|
38
|
+
skills/uk-archives/scripts/uk-archives freereg search --surname Lincoln --county NFK \
|
|
39
|
+
--from-year 1550 --to-year 1650
|
|
40
|
+
|
|
41
|
+
# Filter hits by parish or register text
|
|
42
|
+
skills/uk-archives/scripts/uk-archives freereg search --surname Lincoln --county NFK \
|
|
43
|
+
--from-year 1550 --to-year 1650 --place-contains Hingham
|
|
44
|
+
|
|
45
|
+
# Search Nottinghamshire (NTT) parish registers, JSON output
|
|
46
|
+
skills/uk-archives/scripts/uk-archives freereg search --surname Smith --county NTT \
|
|
47
|
+
--from-year 1570 --to-year 1630 --json
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
FreeREG has no public JSON API. The CLI GETs the home page for a Rails `authenticity_token`, POSTs to `/search_queries`, and parses the results table HTML. No CAPTCHA appeared in live tests on 2026-11-24. Chapman codes (for example `NTT` for Nottinghamshire, `LND` for London, `KEN` for Kent, `NFK` for Norfolk) are passed directly to FreeREG.
|
|
51
|
+
|
|
52
|
+
Options: `--given`, `--county` (Chapman code or county name), `--from-year`, `--to-year`, `--record-type` (`all` / `baptism` / `marriage` / `burial`), `--place-contains`, `--json`.
|
|
53
|
+
|
|
54
|
+
### URL builders (no search run)
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
skills/uk-archives/scripts/uk-archives url --discovery "Lincoln Norfolk"
|
|
58
|
+
skills/uk-archives/scripts/uk-archives url --freereg
|
|
59
|
+
skills/uk-archives/scripts/uk-archives url --notts Lincoln
|
|
60
|
+
skills/uk-archives/scripts/uk-archives url --bho "Nottinghamshire"
|
|
61
|
+
skills/uk-archives/scripts/uk-archives url --genuki nottinghamshire
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## What is searchable online
|
|
65
|
+
|
|
66
|
+
- **Discovery:** Key-free JSON search and detail for the national catalogue (PCC wills `PROB 11`, Chancery, records held at TNA and other repositories). Digitised will images are linked from the Discovery record page when `digitised: true`.
|
|
67
|
+
- **FreeREG:** Volunteer transcriptions of Church of England registers (and related collections). Strong for English counties when parish registers are not on FamilySearch.
|
|
68
|
+
- **British History Online:** Open scholarly texts and Victoria County History material. Plain HTTP returned 302 to the site home on 2026-11-24. Use `url --bho` and search in the browser (no stable API verified).
|
|
69
|
+
- **GENUKI:** Parish and county guidance pages. Use `url --genuki` for England or county hubs (`england`, `kent`, `london`, `nottingham`, `nottinghamshire`, `yorkshire`).
|
|
70
|
+
|
|
71
|
+
## What is browser-only or subscription-only
|
|
72
|
+
|
|
73
|
+
- **County Archives CalmView catalogues** (such as Nottinghamshire Archives `nawcat.nottinghamshire.gov.uk`): HTTPS timed out after 45s in automated checks on 2026-11-24. Use `url --notts` and search in a browser.
|
|
74
|
+
- **Ancestry UK / Findmypast / GRO certificate PDF ordering:** Subscription or pay-per-item. Not implemented; no API verified.
|
|
75
|
+
- **Discovery advanced held-by filter parameters** (`sps.heldByReference`, `sps.departmentReference`, and similar) did not narrow results in live tests. Use `--held-by` as query text (for example `Nottinghamshire` or `Norfolk`) instead.
|
|
76
|
+
|
|
77
|
+
## Research workflow
|
|
78
|
+
|
|
79
|
+
Priority order for English pre-emigration and parish research:
|
|
80
|
+
|
|
81
|
+
1. **FreeREG** for parish baptisms, marriages, and burials by surname, Chapman county code, and year window.
|
|
82
|
+
2. **Discovery** for PCC wills (`PROB 11`) and Chancery records when parish registers do not establish family links.
|
|
83
|
+
3. **County archive manuscript catalogues** in the browser when Discovery points to local deposit references.
|
|
84
|
+
4. **BHO / GENUKI** for parish history, boundary changes, and manorial context.
|
|
85
|
+
5. Cross-check transcribed parish entries against original register images or Bishop's Transcripts on FamilySearch, Ancestry UK, or Findmypast before recording them as proved in `data/`.
|
|
86
|
+
|
|
87
|
+
## Verification log (verified live 2026-11-24)
|
|
88
|
+
|
|
89
|
+
- Discovery search GET `https://discovery.nationalarchives.gov.uk/API/search/v1/records?sps.searchQuery=...&rows=15`: HTTP 200 JSON with `count` and `records[]`.
|
|
90
|
+
- Discovery date filtering (`sps.dateFrom`, `sps.dateTo`) and `PROB 11` post-filtering: HTTP 200 JSON with valid catalogue references.
|
|
91
|
+
- Discovery detail GET `https://discovery.nationalarchives.gov.uk/API/records/v1/details/<id>`: HTTP 200 JSON with `digitised` and `citableReference`. Path `.../API/search/v1/records/v1/details/<id>` returned **404** (do not use).
|
|
92
|
+
- FreeREG GET `https://www.freereg.org.uk/`: HTTP **200**, CSRF token present; POST `/search_queries` returned HTTP **200** with parseable HTML table rows.
|
|
93
|
+
- British History Online GET `https://www.british-history.ac.uk/`: HTTP **302** (site up; no search API wired).
|
|
94
|
+
- Nottinghamshire CalmView GET `https://nawcat.nottinghamshire.gov.uk/CalmView/`: connection timeout at 45s (browser-only note; no machine search).
|
|
95
|
+
- CLI: `uv run --script skills/uk-archives/scripts/uk-archives --help`, `discovery search`, `discovery detail`, `freereg search`, and `url` all exited **0** on 2026-11-24.
|
|
96
|
+
|
|
97
|
+
## Disk cache and environment variables
|
|
98
|
+
|
|
99
|
+
`discovery search`, `discovery detail` (`inspect`/`get`), and `freereg search` cache successful responses on disk under `~/.cache/kinloom-uk-archives/` (default TTL `168` hours, advisory `flock` per cache key, atomic temp-file writes). HTTP errors, malformed JSON, missing CSRF tokens, and empty responses are never cached.
|
|
100
|
+
|
|
101
|
+
- `--refresh`: bypass cached reads and write the fresh response to disk.
|
|
102
|
+
- `--cache-ttl-hours <hours>`: override TTL for one call (`0` disables cached reads).
|
|
103
|
+
- `KINLOOM_UK_ARCHIVES_CACHE_DIR`: override the cache directory path.
|
|
104
|
+
- `KINLOOM_UK_ARCHIVES_CACHE_TTL_HOURS`: override the default TTL in hours.
|
|
105
|
+
|
|
106
|
+
## What this skill does not cover
|
|
107
|
+
|
|
108
|
+
- Scotland, Wales, and Ireland beyond what Discovery holds for the whole UK catalogue.
|
|
109
|
+
- Subscription sites (Ancestry UK, Findmypast, MyHeritage) and the GRO index ordering flow.
|
|
110
|
+
- Do not invent Discovery detail URLs under `/API/search/v1/.../details/` or a FreeREG JSON API. Where no machine interface was verified, the skill says so and gives a URL builder or browser path instead.
|