@mailwoman/corpus 11.1.0 → 11.2.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 (474) hide show
  1. package/README.md +20 -14
  2. package/data/address-source-register.json +618 -13
  3. package/data/builds/v0.8.19-overlay/OVERLAY_PLAN.json +4778 -0
  4. package/data/builds/v0.8.19-rebuild/inputs.json +128 -0
  5. package/data/builds/v0.8.20-overlay/OVERLAY_PLAN.json +3595 -0
  6. package/data/builds/v0.8.20-rebuild/inputs.json +131 -0
  7. package/data/builds/v0.8.21-overlay/OVERLAY_PLAN.json +72 -0
  8. package/data/corpus-source-inputs.json +104 -2
  9. package/data/holdout/evaluation-groups.v0.8.18.json +90511 -0
  10. package/data/holdout/evaluation-groups.v0.8.19.json +100537 -0
  11. package/data/holdout/evaluation-groups.v0.8.20.json +129215 -0
  12. package/data/holdout/evaluation-groups.v0.8.21.json +173286 -0
  13. package/data/holdout/probe-text-collisions.v0.8.20.json +1478 -0
  14. package/data/license-decisions.json +393 -3
  15. package/data/licenses/PROVENANCE.md +15 -9
  16. package/data/licenses/au-acnc-cc-by-3.0-au.md +37 -0
  17. package/data/licenses/es-sanidad-aviso-legal.md +26 -0
  18. package/data/licenses/it-miur-iodl-2.0.md +41 -0
  19. package/data/licenses/nz-charities-cc-by-3.0-nz.md +36 -0
  20. package/data/region-slot-second-level.json +966 -0
  21. package/data/source-additions.json +126 -6
  22. package/data/source-resolutions.json +97 -0
  23. package/data/training-configs/v8.7.0-base-c6-90k-usgs-structures-s42.yaml +801 -0
  24. package/data/training-configs/v8.7.0-base-c6-90k-usgs-structures-s43.yaml +726 -0
  25. package/data/training-configs/v8.8.0-base-c6-90k-v0820-county-s42.yaml +944 -0
  26. package/data/training-configs/v8.9.0-base-c6-90k-v0821-s42.yaml +848 -0
  27. package/data/training-manifests/v0.8.19-retention-overlay.json +4553 -0
  28. package/data/training-manifests/v0.8.20-retention-overlay.json +4579 -0
  29. package/data/training-manifests/v0.8.21-retention-overlay.effective.json +2521 -0
  30. package/data/training-manifests/v0.8.21-retention-overlay.json +4579 -0
  31. package/lib/adapters/cordis/adapter.ts +10 -2
  32. package/lib/adapters/gleif/adapter.ts +23 -5
  33. package/lib/adapters/osm/adapter.ts +2 -2
  34. package/lib/adapters/street/repetition.ts +87 -0
  35. package/lib/adapters/street/unit.ts +14 -0
  36. package/lib/adapters/wof/admin/json/adapter.ts +34 -21
  37. package/lib/adapters/wof/admin/json/dual-role.ts +274 -0
  38. package/lib/adapters/wof/admin/json/explore.ts +4 -4
  39. package/lib/adapters/wof/admin/json/region-codes.ts +74 -3
  40. package/lib/adapters/wof/json-rows.ts +36 -21
  41. package/lib/adapters/wof/postalcode-json/adapter.ts +10 -28
  42. package/lib/adapters/wof/sample.ts +15 -3
  43. package/lib/adapters/wof/stored-records.ts +162 -0
  44. package/lib/adapters.ts +18 -6
  45. package/lib/au/adapters/acnc-register/adapter.ts +40 -0
  46. package/lib/au/evaluation/acnc-register.ts +144 -0
  47. package/lib/build/align/range.ts +9 -0
  48. package/lib/build/align/totals.ts +23 -0
  49. package/lib/build/align.ts +74 -4
  50. package/lib/build/budget.ts +11 -45
  51. package/lib/build/checkpoint.ts +11 -0
  52. package/lib/build/component-check.ts +99 -3
  53. package/lib/build/manifest.ts +4 -0
  54. package/lib/build/parallel.ts +8 -34
  55. package/lib/build/region-names.ts +609 -0
  56. package/lib/build/source-record.ts +7 -0
  57. package/lib/build/types.ts +20 -0
  58. package/lib/build/worker.ts +3 -1
  59. package/lib/build.ts +3 -6
  60. package/lib/de/recipes/locale.ts +3 -2
  61. package/lib/env.ts +0 -6
  62. package/lib/es/adapters/sanidad-centros-ap/adapter.ts +40 -0
  63. package/lib/es/evaluation/sanidad-centros-ap.ts +164 -0
  64. package/lib/evaluation/corpus-adapter.ts +153 -0
  65. package/lib/evaluation/source.ts +209 -0
  66. package/lib/evaluation/sources.ts +25 -0
  67. package/lib/fr/adapters/laposte-poincont/adapter.ts +381 -0
  68. package/lib/fr/recipes/unit-line-guideline.ts +9 -4
  69. package/lib/fr/structures/laposte.ts +139 -0
  70. package/lib/fr/tools/fetch/laposte-poincont.ts +234 -0
  71. package/lib/it/adapters/miur-scuole/adapter.ts +39 -0
  72. package/lib/it/evaluation/miur-scuole.ts +125 -0
  73. package/lib/jp/adapters/wof-admin/adapter.ts +4 -4
  74. package/lib/nc/adapters/opt-nc/adapter.ts +237 -0
  75. package/lib/nc/structures/opt-nc.ts +101 -0
  76. package/lib/nc/tools/fetch/opt-nc.ts +249 -0
  77. package/lib/nz/adapters/charities-register/adapter.ts +40 -0
  78. package/lib/nz/evaluation/charities-register.ts +149 -0
  79. package/lib/recipes/bare/postcode.ts +14 -11
  80. package/lib/recipes/deepseek/batches.ts +8 -8
  81. package/lib/recipes/po/box/cedex/recipe.ts +12 -1
  82. package/lib/recipes/po/box/cedex/us.ts +43 -2
  83. package/lib/recipes/scaffold.ts +1 -1
  84. package/lib/recipes/sources.ts +16 -0
  85. package/lib/recipes.ts +2 -0
  86. package/lib/registers.ts +28 -2
  87. package/lib/{post-offices → structures}/source.ts +49 -16
  88. package/lib/structures/sources.ts +26 -0
  89. package/lib/synthesizers/house-venue.ts +11 -6
  90. package/lib/synthesizers/tail.ts +27 -3
  91. package/lib/tools/audit.ts +1 -1
  92. package/lib/tools/fetch/storage.ts +18 -4
  93. package/lib/tools/fetch.ts +10 -2
  94. package/lib/tools/overlay/kryptonite.ts +6 -2
  95. package/lib/tools/overlay/split/attribute.ts +14 -2
  96. package/lib/tools/overlay/split/overlay.ts +36 -7
  97. package/lib/tools/postcode/triples.ts +3 -3
  98. package/lib/tools/region-slot-census.run.ts +184 -0
  99. package/lib/training/config/load.ts +19 -0
  100. package/lib/training/config/schema.ts +6 -0
  101. package/lib/tw/registers.ts +15 -4
  102. package/lib/tw/structures/chunghwa-post.ts +191 -0
  103. package/lib/tw/tools/fetch/chunghwa-post.ts +174 -0
  104. package/lib/us/adapters/state/ny-notaries/adapter.ts +7 -2
  105. package/lib/us/adapters/state/tx-notaries/adapter.ts +126 -21
  106. package/lib/us/adapters/usgov/nad/adapter.ts +111 -31
  107. package/lib/us/adapters/usgov/nppes/adapter.ts +8 -11
  108. package/lib/us/adapters/usgov/{usgs-post-offices → usgs-structures}/adapter.ts +65 -35
  109. package/lib/us/recipes/county.ts +474 -0
  110. package/lib/us/street-unit.ts +15 -5
  111. package/lib/us/structures/usgs/layers.ts +171 -0
  112. package/lib/us/structures/usgs/national-map.ts +95 -0
  113. package/lib/us/tools/fetch/usgs/gnis.ts +288 -0
  114. package/lib/us/tools/fetch/usgs/structures.ts +362 -0
  115. package/lib/utils/align.ts +2 -2
  116. package/lib/utils/evaluation-groups.ts +172 -0
  117. package/lib/utils/split.ts +40 -4
  118. package/lib/utils/tokenize.ts +7 -7
  119. package/lib/utils/validation-groups.ts +292 -0
  120. package/lib/utils/wof-json.ts +96 -134
  121. package/out/adapters/cordis/adapter.d.ts +3 -1
  122. package/out/adapters/cordis/adapter.d.ts.map +1 -1
  123. package/out/adapters/cordis/adapter.js +8 -2
  124. package/out/adapters/cordis/adapter.js.map +1 -1
  125. package/out/adapters/gleif/adapter.d.ts.map +1 -1
  126. package/out/adapters/gleif/adapter.js +19 -5
  127. package/out/adapters/gleif/adapter.js.map +1 -1
  128. package/out/adapters/osm/adapter.js +2 -2
  129. package/out/adapters/osm/adapter.js.map +1 -1
  130. package/out/adapters/street/repetition.d.ts +19 -0
  131. package/out/adapters/street/repetition.d.ts.map +1 -0
  132. package/out/adapters/street/repetition.js +71 -0
  133. package/out/adapters/street/repetition.js.map +1 -0
  134. package/out/adapters/street/unit.d.ts +10 -0
  135. package/out/adapters/street/unit.d.ts.map +1 -1
  136. package/out/adapters/street/unit.js +6 -0
  137. package/out/adapters/street/unit.js.map +1 -1
  138. package/out/adapters/wof/admin/json/adapter.d.ts +8 -0
  139. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  140. package/out/adapters/wof/admin/json/adapter.js +26 -22
  141. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  142. package/out/adapters/wof/admin/json/dual-role.d.ts +83 -0
  143. package/out/adapters/wof/admin/json/dual-role.d.ts.map +1 -0
  144. package/out/adapters/wof/admin/json/dual-role.js +183 -0
  145. package/out/adapters/wof/admin/json/dual-role.js.map +1 -0
  146. package/out/adapters/wof/admin/json/explore.d.ts.map +1 -1
  147. package/out/adapters/wof/admin/json/explore.js +4 -4
  148. package/out/adapters/wof/admin/json/explore.js.map +1 -1
  149. package/out/adapters/wof/admin/json/region-codes.d.ts +16 -0
  150. package/out/adapters/wof/admin/json/region-codes.d.ts.map +1 -1
  151. package/out/adapters/wof/admin/json/region-codes.js +62 -3
  152. package/out/adapters/wof/admin/json/region-codes.js.map +1 -1
  153. package/out/adapters/wof/json-rows.d.ts +28 -6
  154. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  155. package/out/adapters/wof/json-rows.js +9 -15
  156. package/out/adapters/wof/json-rows.js.map +1 -1
  157. package/out/adapters/wof/postalcode-json/adapter.d.ts +1 -1
  158. package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
  159. package/out/adapters/wof/postalcode-json/adapter.js +9 -26
  160. package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
  161. package/out/adapters/wof/sample.d.ts +8 -1
  162. package/out/adapters/wof/sample.d.ts.map +1 -1
  163. package/out/adapters/wof/sample.js +12 -4
  164. package/out/adapters/wof/sample.js.map +1 -1
  165. package/out/adapters/wof/stored-records.d.ts +62 -0
  166. package/out/adapters/wof/stored-records.d.ts.map +1 -0
  167. package/out/adapters/wof/stored-records.js +91 -0
  168. package/out/adapters/wof/stored-records.js.map +1 -0
  169. package/out/adapters.d.ts +1 -1
  170. package/out/adapters.d.ts.map +1 -1
  171. package/out/adapters.js +15 -3
  172. package/out/adapters.js.map +1 -1
  173. package/out/au/adapters/acnc-register/adapter.d.ts +9 -0
  174. package/out/au/adapters/acnc-register/adapter.d.ts.map +1 -0
  175. package/out/au/adapters/acnc-register/adapter.js +37 -0
  176. package/out/au/adapters/acnc-register/adapter.js.map +1 -0
  177. package/out/au/evaluation/acnc-register.d.ts +56 -0
  178. package/out/au/evaluation/acnc-register.d.ts.map +1 -0
  179. package/out/au/evaluation/acnc-register.js +84 -0
  180. package/out/au/evaluation/acnc-register.js.map +1 -0
  181. package/out/build/align/range.d.ts.map +1 -1
  182. package/out/build/align/range.js +9 -0
  183. package/out/build/align/range.js.map +1 -1
  184. package/out/build/align/totals.d.ts +5 -0
  185. package/out/build/align/totals.d.ts.map +1 -1
  186. package/out/build/align/totals.js +15 -0
  187. package/out/build/align/totals.js.map +1 -1
  188. package/out/build/align.d.ts +26 -0
  189. package/out/build/align.d.ts.map +1 -1
  190. package/out/build/align.js +35 -2
  191. package/out/build/align.js.map +1 -1
  192. package/out/build/budget.d.ts +9 -26
  193. package/out/build/budget.d.ts.map +1 -1
  194. package/out/build/budget.js +10 -31
  195. package/out/build/budget.js.map +1 -1
  196. package/out/build/checkpoint.d.ts +11 -0
  197. package/out/build/checkpoint.d.ts.map +1 -1
  198. package/out/build/checkpoint.js.map +1 -1
  199. package/out/build/component-check.d.ts +55 -1
  200. package/out/build/component-check.d.ts.map +1 -1
  201. package/out/build/component-check.js +65 -3
  202. package/out/build/component-check.js.map +1 -1
  203. package/out/build/manifest.d.ts.map +1 -1
  204. package/out/build/manifest.js +4 -0
  205. package/out/build/manifest.js.map +1 -1
  206. package/out/build/parallel.d.ts.map +1 -1
  207. package/out/build/parallel.js +8 -24
  208. package/out/build/parallel.js.map +1 -1
  209. package/out/build/region-names.d.ts +120 -0
  210. package/out/build/region-names.d.ts.map +1 -0
  211. package/out/build/region-names.js +430 -0
  212. package/out/build/region-names.js.map +1 -0
  213. package/out/build/source-record.d.ts.map +1 -1
  214. package/out/build/source-record.js +4 -0
  215. package/out/build/source-record.js.map +1 -1
  216. package/out/build/types.d.ts +20 -0
  217. package/out/build/types.d.ts.map +1 -1
  218. package/out/build/worker.js +3 -1
  219. package/out/build/worker.js.map +1 -1
  220. package/out/build.d.ts +0 -1
  221. package/out/build.d.ts.map +1 -1
  222. package/out/build.js +3 -5
  223. package/out/build.js.map +1 -1
  224. package/out/de/recipes/locale.d.ts.map +1 -1
  225. package/out/de/recipes/locale.js +3 -2
  226. package/out/de/recipes/locale.js.map +1 -1
  227. package/out/env.d.ts +0 -2
  228. package/out/env.d.ts.map +1 -1
  229. package/out/env.js +0 -5
  230. package/out/env.js.map +1 -1
  231. package/out/es/adapters/sanidad-centros-ap/adapter.d.ts +9 -0
  232. package/out/es/adapters/sanidad-centros-ap/adapter.d.ts.map +1 -0
  233. package/out/es/adapters/sanidad-centros-ap/adapter.js +36 -0
  234. package/out/es/adapters/sanidad-centros-ap/adapter.js.map +1 -0
  235. package/out/es/evaluation/sanidad-centros-ap.d.ts +34 -0
  236. package/out/es/evaluation/sanidad-centros-ap.d.ts.map +1 -0
  237. package/out/es/evaluation/sanidad-centros-ap.js +128 -0
  238. package/out/es/evaluation/sanidad-centros-ap.js.map +1 -0
  239. package/out/evaluation/corpus-adapter.d.ts +60 -0
  240. package/out/evaluation/corpus-adapter.d.ts.map +1 -0
  241. package/out/evaluation/corpus-adapter.js +100 -0
  242. package/out/evaluation/corpus-adapter.js.map +1 -0
  243. package/out/evaluation/source.d.ts +134 -0
  244. package/out/evaluation/source.d.ts.map +1 -0
  245. package/out/evaluation/source.js +80 -0
  246. package/out/evaluation/source.js.map +1 -0
  247. package/out/evaluation/sources.d.ts +6 -0
  248. package/out/evaluation/sources.d.ts.map +1 -0
  249. package/out/evaluation/sources.js +22 -0
  250. package/out/evaluation/sources.js.map +1 -0
  251. package/out/fr/adapters/laposte-poincont/adapter.d.ts +110 -0
  252. package/out/fr/adapters/laposte-poincont/adapter.d.ts.map +1 -0
  253. package/out/fr/adapters/laposte-poincont/adapter.js +315 -0
  254. package/out/fr/adapters/laposte-poincont/adapter.js.map +1 -0
  255. package/out/fr/recipes/unit-line-guideline.d.ts.map +1 -1
  256. package/out/fr/recipes/unit-line-guideline.js +8 -4
  257. package/out/fr/recipes/unit-line-guideline.js.map +1 -1
  258. package/out/fr/structures/laposte.d.ts +27 -0
  259. package/out/fr/structures/laposte.d.ts.map +1 -0
  260. package/out/fr/structures/laposte.js +96 -0
  261. package/out/fr/structures/laposte.js.map +1 -0
  262. package/out/fr/tools/fetch/laposte-poincont.d.ts +95 -0
  263. package/out/fr/tools/fetch/laposte-poincont.d.ts.map +1 -0
  264. package/out/fr/tools/fetch/laposte-poincont.js +135 -0
  265. package/out/fr/tools/fetch/laposte-poincont.js.map +1 -0
  266. package/out/it/adapters/miur-scuole/adapter.d.ts +9 -0
  267. package/out/it/adapters/miur-scuole/adapter.d.ts.map +1 -0
  268. package/out/it/adapters/miur-scuole/adapter.js +35 -0
  269. package/out/it/adapters/miur-scuole/adapter.js.map +1 -0
  270. package/out/it/evaluation/miur-scuole.d.ts +53 -0
  271. package/out/it/evaluation/miur-scuole.d.ts.map +1 -0
  272. package/out/it/evaluation/miur-scuole.js +68 -0
  273. package/out/it/evaluation/miur-scuole.js.map +1 -0
  274. package/out/jp/adapters/wof-admin/adapter.js +4 -4
  275. package/out/nc/adapters/opt-nc/adapter.d.ts +84 -0
  276. package/out/nc/adapters/opt-nc/adapter.d.ts.map +1 -0
  277. package/out/nc/adapters/opt-nc/adapter.js +173 -0
  278. package/out/nc/adapters/opt-nc/adapter.js.map +1 -0
  279. package/out/nc/structures/opt-nc.d.ts +12 -0
  280. package/out/nc/structures/opt-nc.d.ts.map +1 -0
  281. package/out/nc/structures/opt-nc.js +64 -0
  282. package/out/nc/structures/opt-nc.js.map +1 -0
  283. package/out/nc/tools/fetch/opt-nc.d.ts +81 -0
  284. package/out/nc/tools/fetch/opt-nc.d.ts.map +1 -0
  285. package/out/nc/tools/fetch/opt-nc.js +162 -0
  286. package/out/nc/tools/fetch/opt-nc.js.map +1 -0
  287. package/out/nz/adapters/charities-register/adapter.d.ts +9 -0
  288. package/out/nz/adapters/charities-register/adapter.d.ts.map +1 -0
  289. package/out/nz/adapters/charities-register/adapter.js +36 -0
  290. package/out/nz/adapters/charities-register/adapter.js.map +1 -0
  291. package/out/nz/evaluation/charities-register.d.ts +60 -0
  292. package/out/nz/evaluation/charities-register.d.ts.map +1 -0
  293. package/out/nz/evaluation/charities-register.js +84 -0
  294. package/out/nz/evaluation/charities-register.js.map +1 -0
  295. package/out/recipes/bare/postcode.d.ts +2 -1
  296. package/out/recipes/bare/postcode.d.ts.map +1 -1
  297. package/out/recipes/bare/postcode.js +14 -11
  298. package/out/recipes/bare/postcode.js.map +1 -1
  299. package/out/recipes/deepseek/batches.d.ts +11 -1
  300. package/out/recipes/deepseek/batches.d.ts.map +1 -1
  301. package/out/recipes/deepseek/batches.js +8 -7
  302. package/out/recipes/deepseek/batches.js.map +1 -1
  303. package/out/recipes/po/box/cedex/recipe.d.ts.map +1 -1
  304. package/out/recipes/po/box/cedex/recipe.js +12 -1
  305. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  306. package/out/recipes/po/box/cedex/us.d.ts +12 -0
  307. package/out/recipes/po/box/cedex/us.d.ts.map +1 -1
  308. package/out/recipes/po/box/cedex/us.js +36 -2
  309. package/out/recipes/po/box/cedex/us.js.map +1 -1
  310. package/out/recipes/scaffold.d.ts +1 -1
  311. package/out/recipes/sources.d.ts.map +1 -1
  312. package/out/recipes/sources.js +16 -0
  313. package/out/recipes/sources.js.map +1 -1
  314. package/out/recipes.d.ts.map +1 -1
  315. package/out/recipes.js +2 -0
  316. package/out/recipes.js.map +1 -1
  317. package/out/registers.d.ts +28 -2
  318. package/out/registers.d.ts.map +1 -1
  319. package/out/registers.js +28 -2
  320. package/out/registers.js.map +1 -1
  321. package/out/{post-offices → structures}/source.d.ts +34 -16
  322. package/out/structures/source.d.ts.map +1 -0
  323. package/out/structures/source.js +39 -0
  324. package/out/structures/source.js.map +1 -0
  325. package/out/structures/sources.d.ts +6 -0
  326. package/out/structures/sources.d.ts.map +1 -0
  327. package/out/structures/sources.js +23 -0
  328. package/out/structures/sources.js.map +1 -0
  329. package/out/synthesizers/house-venue.d.ts.map +1 -1
  330. package/out/synthesizers/house-venue.js +2 -1
  331. package/out/synthesizers/house-venue.js.map +1 -1
  332. package/out/synthesizers/tail.d.ts +15 -1
  333. package/out/synthesizers/tail.d.ts.map +1 -1
  334. package/out/synthesizers/tail.js +8 -3
  335. package/out/synthesizers/tail.js.map +1 -1
  336. package/out/tools/audit.js +1 -1
  337. package/out/tools/audit.js.map +1 -1
  338. package/out/tools/fetch/storage.d.ts +10 -2
  339. package/out/tools/fetch/storage.d.ts.map +1 -1
  340. package/out/tools/fetch/storage.js +18 -4
  341. package/out/tools/fetch/storage.js.map +1 -1
  342. package/out/tools/fetch.d.ts +10 -2
  343. package/out/tools/fetch.d.ts.map +1 -1
  344. package/out/tools/fetch.js +10 -2
  345. package/out/tools/fetch.js.map +1 -1
  346. package/out/tools/overlay/kryptonite.d.ts.map +1 -1
  347. package/out/tools/overlay/kryptonite.js +5 -2
  348. package/out/tools/overlay/kryptonite.js.map +1 -1
  349. package/out/tools/overlay/split/attribute.d.ts +7 -1
  350. package/out/tools/overlay/split/attribute.d.ts.map +1 -1
  351. package/out/tools/overlay/split/attribute.js +4 -1
  352. package/out/tools/overlay/split/attribute.js.map +1 -1
  353. package/out/tools/overlay/split/overlay.d.ts +10 -0
  354. package/out/tools/overlay/split/overlay.d.ts.map +1 -1
  355. package/out/tools/overlay/split/overlay.js +17 -4
  356. package/out/tools/overlay/split/overlay.js.map +1 -1
  357. package/out/tools/postcode/triples.js +3 -3
  358. package/out/tools/postcode/triples.js.map +1 -1
  359. package/out/tools/region-slot-census.run.d.ts +2 -0
  360. package/out/tools/region-slot-census.run.d.ts.map +1 -0
  361. package/out/tools/region-slot-census.run.js +134 -0
  362. package/out/tools/region-slot-census.run.js.map +1 -0
  363. package/out/training/config/load.d.ts.map +1 -1
  364. package/out/training/config/load.js +10 -0
  365. package/out/training/config/load.js.map +1 -1
  366. package/out/training/config/schema.d.ts +13 -0
  367. package/out/training/config/schema.d.ts.map +1 -1
  368. package/out/training/config/schema.js +6 -0
  369. package/out/training/config/schema.js.map +1 -1
  370. package/out/tw/registers.d.ts +9 -0
  371. package/out/tw/registers.d.ts.map +1 -1
  372. package/out/tw/registers.js +11 -4
  373. package/out/tw/registers.js.map +1 -1
  374. package/out/tw/structures/chunghwa-post.d.ts +39 -0
  375. package/out/tw/structures/chunghwa-post.d.ts.map +1 -0
  376. package/out/tw/structures/chunghwa-post.js +150 -0
  377. package/out/tw/structures/chunghwa-post.js.map +1 -0
  378. package/out/tw/tools/fetch/chunghwa-post.d.ts +55 -0
  379. package/out/tw/tools/fetch/chunghwa-post.d.ts.map +1 -0
  380. package/out/tw/tools/fetch/chunghwa-post.js +110 -0
  381. package/out/tw/tools/fetch/chunghwa-post.js.map +1 -0
  382. package/out/us/adapters/state/ny-notaries/adapter.d.ts.map +1 -1
  383. package/out/us/adapters/state/ny-notaries/adapter.js +7 -2
  384. package/out/us/adapters/state/ny-notaries/adapter.js.map +1 -1
  385. package/out/us/adapters/state/tx-notaries/adapter.d.ts +42 -0
  386. package/out/us/adapters/state/tx-notaries/adapter.d.ts.map +1 -1
  387. package/out/us/adapters/state/tx-notaries/adapter.js +92 -19
  388. package/out/us/adapters/state/tx-notaries/adapter.js.map +1 -1
  389. package/out/us/adapters/usgov/nad/adapter.d.ts +35 -2
  390. package/out/us/adapters/usgov/nad/adapter.d.ts.map +1 -1
  391. package/out/us/adapters/usgov/nad/adapter.js +90 -27
  392. package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
  393. package/out/us/adapters/usgov/nppes/adapter.d.ts.map +1 -1
  394. package/out/us/adapters/usgov/nppes/adapter.js +8 -11
  395. package/out/us/adapters/usgov/nppes/adapter.js.map +1 -1
  396. package/out/us/adapters/usgov/usgs-structures/adapter.d.ts +87 -0
  397. package/out/us/adapters/usgov/usgs-structures/adapter.d.ts.map +1 -0
  398. package/out/us/adapters/usgov/{usgs-post-offices → usgs-structures}/adapter.js +36 -27
  399. package/out/us/adapters/usgov/usgs-structures/adapter.js.map +1 -0
  400. package/out/us/recipes/county.d.ts +124 -0
  401. package/out/us/recipes/county.d.ts.map +1 -0
  402. package/out/us/recipes/county.js +295 -0
  403. package/out/us/recipes/county.js.map +1 -0
  404. package/out/us/street-unit.d.ts +10 -3
  405. package/out/us/street-unit.d.ts.map +1 -1
  406. package/out/us/street-unit.js +14 -6
  407. package/out/us/street-unit.js.map +1 -1
  408. package/out/us/structures/usgs/layers.d.ts +57 -0
  409. package/out/us/structures/usgs/layers.d.ts.map +1 -0
  410. package/out/us/structures/usgs/layers.js +121 -0
  411. package/out/us/structures/usgs/layers.js.map +1 -0
  412. package/out/us/structures/usgs/national-map.d.ts +14 -0
  413. package/out/us/structures/usgs/national-map.d.ts.map +1 -0
  414. package/out/us/{post-offices/usgs-national-map.js → structures/usgs/national-map.js} +16 -14
  415. package/out/us/structures/usgs/national-map.js.map +1 -0
  416. package/out/us/tools/fetch/usgs/gnis.d.ts +118 -0
  417. package/out/us/tools/fetch/usgs/gnis.d.ts.map +1 -0
  418. package/out/us/tools/fetch/usgs/gnis.js +177 -0
  419. package/out/us/tools/fetch/usgs/gnis.js.map +1 -0
  420. package/out/us/tools/fetch/usgs/structures.d.ts +99 -0
  421. package/out/us/tools/fetch/usgs/structures.d.ts.map +1 -0
  422. package/out/us/tools/fetch/usgs/structures.js +233 -0
  423. package/out/us/tools/fetch/usgs/structures.js.map +1 -0
  424. package/out/utils/align.js.map +1 -1
  425. package/out/utils/evaluation-groups.d.ts +98 -0
  426. package/out/utils/evaluation-groups.d.ts.map +1 -0
  427. package/out/utils/evaluation-groups.js +92 -0
  428. package/out/utils/evaluation-groups.js.map +1 -0
  429. package/out/utils/split.d.ts +26 -1
  430. package/out/utils/split.d.ts.map +1 -1
  431. package/out/utils/split.js +28 -3
  432. package/out/utils/split.js.map +1 -1
  433. package/out/utils/tokenize.d.ts +3 -3
  434. package/out/utils/tokenize.d.ts.map +1 -1
  435. package/out/utils/tokenize.js.map +1 -1
  436. package/out/utils/validation-groups.d.ts +168 -0
  437. package/out/utils/validation-groups.d.ts.map +1 -0
  438. package/out/utils/validation-groups.js +135 -0
  439. package/out/utils/validation-groups.js.map +1 -0
  440. package/out/utils/wof-json.d.ts +31 -57
  441. package/out/utils/wof-json.d.ts.map +1 -1
  442. package/out/utils/wof-json.js +81 -98
  443. package/out/utils/wof-json.js.map +1 -1
  444. package/package.json +18 -18
  445. package/lib/adapters/wof/record-cache.ts +0 -118
  446. package/lib/build/heap.ts +0 -60
  447. package/lib/post-offices/sources.ts +0 -18
  448. package/lib/us/post-offices/usgs-national-map.ts +0 -89
  449. package/lib/us/tools/fetch/usgs-post-offices.ts +0 -362
  450. package/out/adapters/wof/record-cache.d.ts +0 -22
  451. package/out/adapters/wof/record-cache.d.ts.map +0 -1
  452. package/out/adapters/wof/record-cache.js +0 -89
  453. package/out/adapters/wof/record-cache.js.map +0 -1
  454. package/out/build/heap.d.ts +0 -26
  455. package/out/build/heap.d.ts.map +0 -1
  456. package/out/build/heap.js +0 -52
  457. package/out/build/heap.js.map +0 -1
  458. package/out/post-offices/source.d.ts.map +0 -1
  459. package/out/post-offices/source.js +0 -21
  460. package/out/post-offices/source.js.map +0 -1
  461. package/out/post-offices/sources.d.ts +0 -13
  462. package/out/post-offices/sources.d.ts.map +0 -1
  463. package/out/post-offices/sources.js +0 -8
  464. package/out/post-offices/sources.js.map +0 -1
  465. package/out/us/adapters/usgov/usgs-post-offices/adapter.d.ts +0 -66
  466. package/out/us/adapters/usgov/usgs-post-offices/adapter.d.ts.map +0 -1
  467. package/out/us/adapters/usgov/usgs-post-offices/adapter.js.map +0 -1
  468. package/out/us/post-offices/usgs-national-map.d.ts +0 -14
  469. package/out/us/post-offices/usgs-national-map.d.ts.map +0 -1
  470. package/out/us/post-offices/usgs-national-map.js.map +0 -1
  471. package/out/us/tools/fetch/usgs-post-offices.d.ts +0 -99
  472. package/out/us/tools/fetch/usgs-post-offices.d.ts.map +0 -1
  473. package/out/us/tools/fetch/usgs-post-offices.js +0 -246
  474. package/out/us/tools/fetch/usgs-post-offices.js.map +0 -1
@@ -1,362 +0,0 @@
1
- // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
- // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
-
4
- /**
5
- * Fetches the post offices (feature code 78006) from the USGS National Map structures
6
- * layer, the source of the `usgov-usgs-post-offices` adapter.
7
- * US public domain under 17 U.S.C. § 105.
8
- *
9
- * The layer is an ArcGIS MapServer layer that answers at most 2,000 features per request.
10
- * The fetcher asks for the feature count first, pages the query by `resultOffset` in `OBJECTID`
11
- * order, and refuses a pull whose feature count differs from the count the service stated.
12
- *
13
- * Each feature is written as one GeoJSON line with its ZIP Code as a string, leading
14
- * zeros intact, normalized by `normalizeZIPCode` where the feature's state is known.
15
- *
16
- * The service description is saved beside the features as `service.json`, because it holds the
17
- * publisher's statement about the data ("public domain structures data") and its refresh date.
18
- *
19
- * Invoke via `mailwoman corpus fetch usgs-post-offices`.
20
- */
21
-
22
- import { isUSStateAbbreviation } from "@mailwoman/codex/us/state"
23
- import { normalizeZIPCode } from "@mailwoman/codex/us/zipcode"
24
- import { APIClient } from "@mailwoman/core/api"
25
- import { ByteFormatter } from "@mailwoman/core/fs/formatters"
26
- import { statPath } from "@mailwoman/core/fs/readers/stat"
27
- import {
28
- appendLocalTextFile,
29
- makeDirectories,
30
- movePath,
31
- removePathIfPresent,
32
- stagingSiblingPath,
33
- writeLocalJSONFile,
34
- } from "@mailwoman/core/fs/writers"
35
- import { sha256File } from "@mailwoman/core/hash"
36
- import { stringifyJSON } from "@mailwoman/core/json"
37
- import { PathBuilder, type PathBuilderLike } from "path-ts"
38
-
39
- import type { BaseFetchOptions, FetchSummary, SourceManifest } from "#tools/fetch/download"
40
- import { writeManifest } from "#tools/fetch/download"
41
- import {
42
- USGOV_USGS_POST_OFFICES_ADAPTER_ID,
43
- USGS_POST_OFFICES_FILENAME,
44
- type USGSPostOfficeFeature,
45
- type USGSPostOfficeProperties,
46
- } from "#us/adapters/usgov/usgs-post-offices/adapter"
47
-
48
- /**
49
- * The structures MapServer.
50
- *
51
- * Its description states the publisher's terms and refresh date.
52
- */
53
- export const USGS_STRUCTURES_SERVICE_URL = "https://carto.nationalmap.gov/arcgis/rest/services/structures/MapServer"
54
-
55
- /**
56
- * The query endpoint of layer 38, `Post Offices`.
57
- */
58
- export const USGS_POST_OFFICES_QUERY_URL = `${USGS_STRUCTURES_SERVICE_URL}/38/query`
59
-
60
- /**
61
- * The National Hydrography and Structures feature code for a post office.
62
- */
63
- export const USGS_POST_OFFICE_FCODE = 78_006
64
-
65
- /**
66
- * The service's `maxRecordCount`: the most features one query returns.
67
- */
68
- export const USGS_POST_OFFICES_PAGE_SIZE = 2000
69
-
70
- /**
71
- * The service fields the fetcher asks for, in the service's spelling.
72
- */
73
- export const USGS_POST_OFFICE_FIELDS = ["PERMANENT_IDENTIFIER", "NAME", "ADDRESS", "CITY", "STATE", "ZIPCODE"] as const
74
-
75
- /**
76
- * The file the service description is saved to, beside the features.
77
- */
78
- export const USGS_STRUCTURES_SERVICE_FILENAME = "service.json"
79
-
80
- const SLUG = USGOV_USGS_POST_OFFICES_ADAPTER_ID
81
-
82
- const WHERE = `FCODE=${USGS_POST_OFFICE_FCODE}`
83
-
84
- /**
85
- * What one run recorded.
86
- *
87
- * `publisher_version` is the service's `copyrightText`, which states its
88
- * refresh (`USGS TNM – National Structures Dataset. Data Refreshed October, 2026.`).
89
- */
90
- export interface USGSPostOfficesManifest extends SourceManifest {
91
- service_url: string
92
- where: string
93
- feature_count: number
94
- }
95
-
96
- /**
97
- * The parts of the MapServer description a fetch records.
98
- */
99
- interface StructuresService {
100
- copyrightText?: string
101
- serviceDescription?: string
102
- }
103
-
104
- /**
105
- * An ArcGIS REST error body.
106
- * The service sends it with HTTP status 200.
107
- */
108
- interface ArcGISErrorBody {
109
- error?: { code?: number; message?: string; details?: unknown }
110
- }
111
-
112
- /**
113
- * Reads JSON from the service and throws on an ArcGIS error body.
114
- */
115
- async function readServiceJSON<T>(client: Pick<APIClient, "fetch">, url: string, signal?: AbortSignal): Promise<T> {
116
- const { data } = await client.fetch<T & ArcGISErrorBody>({ url, timeout: 120_000, signal })
117
- const body: unknown = data
118
-
119
- if (body == null || typeof body !== "object") {
120
- throw new Error(`${SLUG}: ${url} answered a body that is not JSON: ${String(body).slice(0, 200)}`)
121
- }
122
-
123
- if (data.error) {
124
- throw new Error(`${SLUG}: ${url} answered an ArcGIS error ${data.error.code ?? ""}: ${data.error.message ?? ""}`)
125
- }
126
-
127
- return data
128
- }
129
-
130
- /**
131
- * The query URL for one request: a count, or one page from `offset`.
132
- */
133
- export function postOfficesQueryURL(request: { countOnly: true } | { offset: number }): string {
134
- const params = new URLSearchParams({ where: WHERE })
135
-
136
- if ("countOnly" in request) {
137
- params.set("returnCountOnly", "true")
138
- params.set("f", "json")
139
- } else {
140
- params.set("outFields", USGS_POST_OFFICE_FIELDS.join(","))
141
- params.set("orderByFields", "OBJECTID")
142
- params.set("outSR", "4326")
143
- params.set("resultOffset", String(request.offset))
144
- params.set("resultRecordCount", String(USGS_POST_OFFICES_PAGE_SIZE))
145
- params.set("f", "geojson")
146
- }
147
-
148
- return `${USGS_POST_OFFICES_QUERY_URL}?${params}`
149
- }
150
-
151
- /**
152
- * A text field as written: trimmed, or `null` when the service left it empty.
153
- */
154
- function textField(value: unknown): string | null {
155
- if (value == null) return null
156
- const text = String(value).trim()
157
-
158
- return text || null
159
- }
160
-
161
- /**
162
- * A feature's properties keyed by the lower-cased field name.
163
- *
164
- * The service answers GeoJSON with its own field spelling, so a reader looks names up case-insensitively.
165
- */
166
- function lowerCasedProperties(properties: unknown): Record<string, unknown> {
167
- if (properties == null || typeof properties !== "object") return {}
168
-
169
- return Object.fromEntries(Object.entries(properties).map(([key, value]) => [key.toLowerCase(), value]))
170
- }
171
-
172
- /**
173
- * The ZIP Code fields for one post office.
174
- *
175
- * A known state passes the value through `normalizeZIPCode`, which restores leading zeros a numeric
176
- * value lost (`725` in Puerto Rico is `00725`) and reads a value that isn't a ZIP Code as `null`.
177
- * An unknown state keeps the trimmed value.
178
- *
179
- * The published value is kept beside the result whenever the two differ.
180
- */
181
- export function postOfficeZIPCode(
182
- value: unknown,
183
- state: string | null
184
- ): Pick<USGSPostOfficeProperties, "zipcode" | "zipcode_published"> {
185
- const published = textField(value)
186
-
187
- if (!published) return { zipcode: null }
188
-
189
- const zipcode = state && isUSStateAbbreviation(state) ? normalizeZIPCode(published, state) : published
190
-
191
- return zipcode === published ? { zipcode } : { zipcode, zipcode_published: published }
192
- }
193
-
194
- /**
195
- * One service feature in the shape the adapter reads.
196
- *
197
- * @throws When the value isn't a GeoJSON feature.
198
- */
199
- export function normalizePostOfficeFeature(value: unknown): USGSPostOfficeFeature {
200
- if (value == null || typeof value !== "object" || (value as { type?: unknown }).type !== "Feature") {
201
- throw new Error(`${SLUG}: expected a GeoJSON Feature, got ${String(stringifyJSON(value)).slice(0, 200)}`)
202
- }
203
-
204
- const feature = value as { geometry?: unknown; properties?: unknown }
205
- const properties = lowerCasedProperties(feature.properties)
206
- const state = textField(properties["state"])?.toUpperCase() ?? null
207
-
208
- const geometry = (feature.geometry ?? {}) as { type?: unknown; coordinates?: unknown }
209
- const coordinates: number[] = Array.isArray(geometry.coordinates) ? geometry.coordinates.map(Number) : []
210
-
211
- const point =
212
- geometry.type === "Point" &&
213
- coordinates.length >= 2 &&
214
- coordinates.every((coordinate) => Number.isFinite(coordinate))
215
- ? { type: "Point" as const, coordinates: [coordinates[0]!, coordinates[1]!] as [number, number] }
216
- : null
217
-
218
- return {
219
- type: "Feature",
220
- geometry: point,
221
- properties: {
222
- permanent_identifier: textField(properties["permanent_identifier"]),
223
- name: textField(properties["name"]),
224
- address: textField(properties["address"]),
225
- city: textField(properties["city"]),
226
- state,
227
- ...postOfficeZIPCode(properties["zipcode"], state),
228
- },
229
- }
230
- }
231
-
232
- /**
233
- * Per-invocation options.
234
- */
235
- export interface DownloadUSGSPostOfficesOptions {
236
- outputDir: PathBuilderLike
237
- signal?: AbortSignal
238
- report?: (line: string) => void
239
- }
240
-
241
- /**
242
- * Pages every post office into `<outputDir>/post-offices.geojsonl` and writes the manifest.
243
- *
244
- * The features are written to a staging file.
245
- * It moves into place only once the pull holds the feature count the service stated.
246
- * A failed run leaves the previous file as it was.
247
- *
248
- * @throws When the service answers an error, a page that isn't a FeatureCollection,
249
- * or a pull whose size differs from its count.
250
- */
251
- export async function downloadUSGSPostOffices(
252
- client: Pick<APIClient, "fetch">,
253
- options: DownloadUSGSPostOfficesOptions
254
- ): Promise<FetchSummary> {
255
- const { report, signal } = options
256
- const destDir = PathBuilder.from(options.outputDir)
257
- const featuresPath = destDir(USGS_POST_OFFICES_FILENAME)
258
-
259
- report?.(`=== ${SLUG} / ${USGS_POST_OFFICES_FILENAME}`)
260
-
261
- const service = await readServiceJSON<StructuresService>(client, `${USGS_STRUCTURES_SERVICE_URL}?f=json`, signal)
262
- const { count } = await readServiceJSON<{ count?: unknown }>(client, postOfficesQueryURL({ countOnly: true }), signal)
263
-
264
- if (typeof count !== "number" || !Number.isInteger(count) || count < 0) {
265
- throw new Error(`${SLUG}: the count query answered no feature count: ${stringifyJSON(count)}`)
266
- }
267
-
268
- report?.(` ${service.copyrightText ?? "no copyrightText"}; ${count.toLocaleString()} post offices`)
269
-
270
- await makeDirectories(destDir)
271
-
272
- const staging = stagingSiblingPath(featuresPath)
273
- let written = 0
274
-
275
- try {
276
- while (written < count) {
277
- const url = postOfficesQueryURL({ offset: written })
278
- const page = await readServiceJSON<{ type?: unknown; features?: unknown }>(client, url, signal)
279
-
280
- if (page.type !== "FeatureCollection" || !Array.isArray(page.features)) {
281
- throw new Error(`${SLUG}: ${url} answered something other than a FeatureCollection`)
282
- }
283
-
284
- if (!page.features.length) break
285
-
286
- const lines = page.features.map((feature) => stringifyJSON(normalizePostOfficeFeature(feature)))
287
-
288
- await appendLocalTextFile(`${lines.join("\n")}\n`, staging)
289
- written += lines.length
290
-
291
- report?.(` ${written.toLocaleString()} / ${count.toLocaleString()}`)
292
- }
293
-
294
- if (written !== count) {
295
- throw new Error(`${SLUG}: the service counted ${count} post offices and the pull returned ${written}`)
296
- }
297
-
298
- if (!written) {
299
- // An empty pull writes no staging file, and an empty input is a valid one.
300
- await appendLocalTextFile("", staging)
301
- }
302
-
303
- await movePath(staging, featuresPath)
304
- } finally {
305
- await removePathIfPresent(staging)
306
- }
307
-
308
- await writeLocalJSONFile(service as Record<string, unknown>, destDir(USGS_STRUCTURES_SERVICE_FILENAME))
309
-
310
- const sha256 = await sha256File(featuresPath)
311
- const { size: bytes } = await statPath(featuresPath)
312
-
313
- const manifest: USGSPostOfficesManifest = {
314
- source_url: USGS_POST_OFFICES_QUERY_URL,
315
- service_url: USGS_STRUCTURES_SERVICE_URL,
316
- where: WHERE,
317
- filename: USGS_POST_OFFICES_FILENAME,
318
- feature_count: written,
319
- bytes,
320
- sha256,
321
- ...(service.copyrightText ? { publisher_version: service.copyrightText } : {}),
322
- downloaded_at: new Date().toISOString(),
323
- }
324
-
325
- await writeManifest(destDir("MANIFEST.json"), manifest)
326
-
327
- report?.(` ✓ ${written.toLocaleString()} features, ${ByteFormatter.formatIEC(bytes)} sha256=${sha256}`)
328
-
329
- return { fetched: 1, skipped: 0, failed: 0, failedCodes: [] }
330
- }
331
-
332
- /**
333
- * The path `#us/adapters/usgov/usgs-post-offices/adapter` reads, given the root a fetch wrote under.
334
- */
335
- export function usgsPostOfficesInputPath(outRoot: BaseFetchOptions["outRoot"]): PathBuilderLike {
336
- return outRoot(SLUG, USGS_POST_OFFICES_FILENAME)
337
- }
338
-
339
- /**
340
- * Per-invocation options for the registry entry.
341
- */
342
- export interface FetchUSGSPostOfficesOptions extends BaseFetchOptions {
343
- signal?: AbortSignal
344
- }
345
-
346
- /**
347
- * The registry entry.
348
- */
349
- export async function fetchUSGSPostOffices(
350
- options: FetchUSGSPostOfficesOptions,
351
- report?: (line: string) => void
352
- ): Promise<FetchSummary> {
353
- await using client = new APIClient({ displayName: SLUG, retry: true })
354
-
355
- // Awaited rather than returned: `await using` disposes the client when this scope exits,
356
- // and a disposed `APIClient` refuses every later request.
357
- return await downloadUSGSPostOffices(client, {
358
- outputDir: options.outRoot(SLUG),
359
- signal: options.signal,
360
- report,
361
- })
362
- }
@@ -1,22 +0,0 @@
1
- import { type PathBuilderLike } from "path-ts";
2
- import { type WOFRecord } from "#utils/wof-json";
3
- /**
4
- * The cache file for `repoDir`: its {@linkcode extractFingerprint}, which lists every file's path, size
5
- * and modification time, the sha256 of the parser module and the sha256 of the refuted-parent list.
6
- *
7
- * A commit, an uncommitted edit, a parser change or a list change gives a new key.
8
- */
9
- export declare function wofRecordCachePath(repoDir: PathBuilderLike, cacheDir: PathBuilderLike): Promise<string>;
10
- /**
11
- * Every record {@linkcode walkFeatures} yields for `repoDir`, in the same order,
12
- * read from the cache when its key matches.
13
- *
14
- * `cacheDir` defaults to `MAILWOMAN_WOF_RECORD_CACHE`; with neither, this is {@linkcode walkFeatures}.
15
- * A walk that finishes writes the cache.
16
- * An aborted or abandoned walk leaves none.
17
- */
18
- export declare function walkFeaturesCached(repoDir: PathBuilderLike, opts?: {
19
- signal?: AbortSignal;
20
- cacheDir?: PathBuilderLike;
21
- }): AsyncIterable<WOFRecord>;
22
- //# sourceMappingURL=record-cache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record-cache.d.ts","sourceRoot":"","sources":["../../../lib/adapters/wof/record-cache.ts"],"names":[],"mappings":"AAeA,OAAO,EAAW,KAAK,eAAe,EAAsB,MAAM,SAAS,CAAA;AAK3E,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAepF;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7G;AAcD;;;;;;;GAOG;AACH,wBAAuB,kBAAkB,CACxC,OAAO,EAAE,eAAe,EACxB,IAAI,GAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,eAAe,CAAA;CAAO,GAC7D,aAAa,CAAC,SAAS,CAAC,CA6C1B"}
@@ -1,89 +0,0 @@
1
- // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
- // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
- /**
4
- * @file Reuses the parsed WOF records of an earlier walk when no input file and no parser line has changed.
5
- */
6
- import { dataRootPath } from "@mailwoman/core/data-root";
7
- import { pathExists } from "@mailwoman/core/fs/readers/stat";
8
- import { openWriteStream } from "@mailwoman/core/fs/streams";
9
- import { makeDirectories, movePath, removePathIfPresent } from "@mailwoman/core/fs/writers";
10
- import { sha256File, sha256Hex } from "@mailwoman/core/hash";
11
- import { stringifyJSON } from "@mailwoman/core/json";
12
- import { fileURLToPath } from "@mailwoman/core/module/file-url";
13
- import { once } from "@mailwoman/core/utils/events";
14
- import { dirname, resolvePathBuilder } from "path-ts";
15
- import { JSONSpliterator } from "spliterator";
16
- import { $public } from "#env";
17
- import { extractFingerprint } from "#parquet/record";
18
- import { REFUTED_PARENTS_PATH, walkFeatures } from "#utils/wof-json";
19
- /**
20
- * The module whose parsing the cache stands in for.
21
- * A change to it changes the cache key.
22
- */
23
- const PARSER_MODULE = import.meta.resolve("#utils/wof-json");
24
- /**
25
- * The cache file for `repoDir`: its {@linkcode extractFingerprint}, which lists every file's path, size
26
- * and modification time, the sha256 of the parser module and the sha256 of the refuted-parent list.
27
- *
28
- * A commit, an uncommitted edit, a parser change or a list change gives a new key.
29
- */
30
- export async function wofRecordCachePath(repoDir, cacheDir) {
31
- const parser = await sha256File(fileURLToPath(PARSER_MODULE));
32
- const refuted = await sha256File(REFUTED_PARENTS_PATH);
33
- const key = sha256Hex(`${await extractFingerprint(repoDir)}\n${parser}\n${refuted}`);
34
- return resolvePathBuilder(cacheDir, `${key}.jsonl`).toString();
35
- }
36
- /**
37
- * The cache directory `MAILWOMAN_WOF_RECORD_CACHE` sets, resolved against the
38
- * data root when relative, or `null`.
39
- */
40
- function configuredCacheDir() {
41
- const configured = $public.MAILWOMAN_WOF_RECORD_CACHE;
42
- if (!configured)
43
- return null;
44
- return configured.startsWith("/") ? configured : dataRootPath(configured).toString();
45
- }
46
- /**
47
- * Every record {@linkcode walkFeatures} yields for `repoDir`, in the same order,
48
- * read from the cache when its key matches.
49
- *
50
- * `cacheDir` defaults to `MAILWOMAN_WOF_RECORD_CACHE`; with neither, this is {@linkcode walkFeatures}.
51
- * A walk that finishes writes the cache.
52
- * An aborted or abandoned walk leaves none.
53
- */
54
- export async function* walkFeaturesCached(repoDir, opts = {}) {
55
- const cacheDir = opts.cacheDir ?? configuredCacheDir();
56
- if (!cacheDir) {
57
- yield* walkFeatures(repoDir, { signal: opts.signal });
58
- return;
59
- }
60
- const file = await wofRecordCachePath(repoDir, cacheDir);
61
- if (await pathExists(file)) {
62
- for await (const line of JSONSpliterator.fromAsync(file)) {
63
- if (opts.signal?.aborted)
64
- return;
65
- yield { ...line, nameVariants: new Map(line.nameVariants) };
66
- }
67
- return;
68
- }
69
- await makeDirectories(dirname(file));
70
- const partial = `${file}.partial`;
71
- const stream = openWriteStream(partial, { encoding: "utf8" });
72
- let complete = false;
73
- try {
74
- for await (const record of walkFeatures(repoDir, { signal: opts.signal })) {
75
- const line = { ...record, nameVariants: [...record.nameVariants] };
76
- if (!stream.write(`${stringifyJSON(line)}\n`)) {
77
- await once(stream, "drain");
78
- }
79
- yield record;
80
- }
81
- complete = !opts.signal?.aborted;
82
- }
83
- finally {
84
- stream.end();
85
- await once(stream, "close");
86
- await (complete ? movePath(partial, file) : removePathIfPresent(partial));
87
- }
88
- }
89
- //# sourceMappingURL=record-cache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record-cache.js","sourceRoot":"","sources":["../../../lib/adapters/wof/record-cache.ts"],"names":[],"mappings":"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AAM,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;IAC7D,IAAI,QAAQ,GAAG,KAAK,CAAA;IAEpB,IAAI,CAAC;QACJ,IAAI,KAAK,EAAE,MAAM,MAAM,IAAI,YAAY,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;YAC3E,MAAM,IAAI,GAAiB,EAAE,GAAG,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,EAAE,CAAA;YAEhF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC/C,MAAM,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;YAC5B,CAAC;YAED,MAAM,MAAM,CAAA;QACb,CAAC;QAED,QAAQ,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAA;IACjC,CAAC;YAAS,CAAC;QACV,MAAM,CAAC,GAAG,EAAE,CAAA;QACZ,MAAM,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAE3B,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAA;IAC1E,CAAC;AACF,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Whether `adapterID`'s run holds every source record resident before yielding a row.
3
- */
4
- export declare function isResidentRecordAdapter(adapterID: string): boolean;
5
- /**
6
- * The heap a build needs before a resident-record adapter may run, in bytes.
7
- *
8
- * At Node's 4 GB default both WOF adapters abort with SIGABRT, `wof-admin` at 4,085 MB after 722 seconds.
9
- * The floor sits under the measured 14,883 MiB peak by enough to admit a 16 GB cap
10
- * and refuse the 4 GB default.
11
- */
12
- export declare const RESIDENT_ADAPTER_HEAP_FLOOR_BYTES: number;
13
- /**
14
- * Refuses a build whose heap cannot hold a resident-record adapter's dataset.
15
- *
16
- * The failure this replaces is a SIGABRT twelve minutes into an eight-hour build.
17
- * That abort reports no cause and loses the adapter phase.
18
- * A startup read of the limit costs one call.
19
- *
20
- * The `corpus build` command calls this rather than `buildCorpus`, because this package's
21
- * own tests run `wof-admin` against a five-kilobyte fixture at the default heap.
22
- *
23
- * @throws When a resident-record adapter is configured and the heap limit is under the floor.
24
- */
25
- export declare function assertHeapForAdapters(adapterIDs: readonly string[], heapLimitBytes: number): void;
26
- //# sourceMappingURL=heap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heap.d.ts","sourceRoot":"","sources":["../../lib/build/heap.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAElE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,QAA0B,CAAA;AAExE;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CAcjG"}
package/out/build/heap.js DELETED
@@ -1,52 +0,0 @@
1
- // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
- // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
- /**
4
- * @file The heap a build needs before a resident-record adapter may run.
5
- */
6
- /**
7
- * Adapter ids whose run holds every source record resident before yielding a row.
8
- *
9
- * Both WOF adapters build a `Map` of the whole dataset and then sort its keys,
10
- * so peak memory is a property of the source rather than of `limit`.
11
- * Measured 2026-09-26: `wof-admin` peaks at 14,020 MiB.
12
- * Both in one process peak at 14,883 MiB.
13
- */
14
- const RESIDENT_RECORD_ADAPTERS = new Set(["wof-admin", "wof-postalcode"]);
15
- /**
16
- * Whether `adapterID`'s run holds every source record resident before yielding a row.
17
- */
18
- export function isResidentRecordAdapter(adapterID) {
19
- return RESIDENT_RECORD_ADAPTERS.has(adapterID);
20
- }
21
- /**
22
- * The heap a build needs before a resident-record adapter may run, in bytes.
23
- *
24
- * At Node's 4 GB default both WOF adapters abort with SIGABRT, `wof-admin` at 4,085 MB after 722 seconds.
25
- * The floor sits under the measured 14,883 MiB peak by enough to admit a 16 GB cap
26
- * and refuse the 4 GB default.
27
- */
28
- export const RESIDENT_ADAPTER_HEAP_FLOOR_BYTES = 15 * 1024 * 1024 * 1024;
29
- /**
30
- * Refuses a build whose heap cannot hold a resident-record adapter's dataset.
31
- *
32
- * The failure this replaces is a SIGABRT twelve minutes into an eight-hour build.
33
- * That abort reports no cause and loses the adapter phase.
34
- * A startup read of the limit costs one call.
35
- *
36
- * The `corpus build` command calls this rather than `buildCorpus`, because this package's
37
- * own tests run `wof-admin` against a five-kilobyte fixture at the default heap.
38
- *
39
- * @throws When a resident-record adapter is configured and the heap limit is under the floor.
40
- */
41
- export function assertHeapForAdapters(adapterIDs, heapLimitBytes) {
42
- const resident = adapterIDs.filter((id) => RESIDENT_RECORD_ADAPTERS.has(id));
43
- if (!resident.length || heapLimitBytes >= RESIDENT_ADAPTER_HEAP_FLOOR_BYTES)
44
- return;
45
- const gib = (bytes) => `${(bytes / 1024 / 1024 / 1024).toFixed(1)} GiB`;
46
- throw new Error(`corpus build: the heap limit is ${gib(heapLimitBytes)} and ${resident.join(", ")} ` +
47
- `${resident.length === 1 ? "holds" : "hold"} every source record resident. That peaked at 14,883 MiB ` +
48
- `on 2026-09-26. Re-run with NODE_OPTIONS="--max-old-space-size=20480", or leave ` +
49
- `${resident.join(", ")} out of --inputs. Under ${gib(RESIDENT_ADAPTER_HEAP_FLOOR_BYTES)} the run aborts ` +
50
- `with SIGABRT partway through the adapter phase.`);
51
- }
52
- //# sourceMappingURL=heap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heap.js","sourceRoot":"","sources":["../../lib/build/heap.ts"],"names":[],"mappings":"AAAA,kEAAkE;AA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,CAAA;IACpB;;;;;OAKG;IACH,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;CAC7D"}
@@ -1,21 +0,0 @@
1
- // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
- // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
- /**
4
- * Who compiled a post-office list.
5
- *
6
- * A postal operator's own facility list is the operator's record of where it serves the public.
7
- * A mapping agency's compilation is another body's observation of those facilities.
8
- *
9
- * The layer records the class beside each source so a reader can prefer the operator's record.
10
- */
11
- export const PostOfficeProvenance = {
12
- /**
13
- * The postal operator's own list of its facilities.
14
- */
15
- PostalOperator: "postal-operator",
16
- /**
17
- * A government mapping agency's compilation, such as the USGS National Map's structures layer.
18
- */
19
- MappingAgency: "mapping-agency",
20
- };
21
- //# sourceMappingURL=source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["../../lib/post-offices/source.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAgBlE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,cAAc,EAAE,iBAAiB;IACjC;;OAEG;IACH,aAAa,EAAE,gBAAgB;CACtB,CAAA"}
@@ -1,13 +0,0 @@
1
- /**
2
- * The official post-office lists `mailwoman gazetteer build post-offices` folds into `post-offices.db`.
3
- *
4
- * One entry per source.
5
- * A new country's source is written under `lib/<cc>/post-offices/` to the
6
- * contract in `#post-offices/source` and added here.
7
- */
8
- import type { PostOfficeSource } from "#post-offices/source";
9
- /**
10
- * Every registered post-office source, in the order the layer reads them.
11
- */
12
- export declare const POST_OFFICE_SOURCES: readonly PostOfficeSource[];
13
- //# sourceMappingURL=sources.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../lib/post-offices/sources.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAG5D;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,gBAAgB,EAAiC,CAAA"}
@@ -1,8 +0,0 @@
1
- // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
- // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
- import { usgsNationalMapPostOffices } from "#us/post-offices/usgs-national-map";
4
- /**
5
- * Every registered post-office source, in the order the layer reads them.
6
- */
7
- export const POST_OFFICE_SOURCES = [usgsNationalMapPostOffices];
8
- //# sourceMappingURL=sources.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sources.js","sourceRoot":"","sources":["../../lib/post-offices/sources.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAWlE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAgC,CAAC,0BAA0B,CAAC,CAAA"}