@mailwoman/core 9.2.0 → 9.4.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 (1061) hide show
  1. package/README.md +11 -11
  2. package/data/libpostal/README.md +10 -10
  3. package/data/libpostal/dictionaries/README.md +4 -4
  4. package/data/libpostal/dictionaries/all/surnames.txt +6 -6
  5. package/{api → lib/api}/APIClient.ts +28 -23
  6. package/lib/api/arcgis.ts +69 -0
  7. package/lib/api/ckan.ts +141 -0
  8. package/{api → lib/api}/clock.ts +1 -1
  9. package/lib/api/defaults.ts +28 -0
  10. package/{api → lib/api}/disk-storage.ts +24 -28
  11. package/lib/api/host.ts +76 -0
  12. package/{api → lib/api}/index.ts +11 -6
  13. package/lib/api/ogc.ts +226 -0
  14. package/lib/api/paced-client.ts +67 -0
  15. package/{api → lib/api}/pacer.ts +8 -8
  16. package/{api → lib/api}/responses.ts +3 -3
  17. package/{api → lib/api}/retry.ts +12 -12
  18. package/{api → lib/api}/test-clocks.ts +6 -5
  19. package/{api → lib/api}/test-transport.ts +1 -1
  20. package/{coarse-placer → lib/coarse-placer}/coarse-placer.ts +32 -13
  21. package/{coarse-placer → lib/coarse-placer}/featurize.ts +11 -13
  22. package/lib/coarse-placer/fnv-hash.ts +24 -0
  23. package/lib/coarse-placer/math.ts +63 -0
  24. package/{coarse-placer → lib/coarse-placer}/tools/build-dataset.ts +26 -35
  25. package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-exposure.ts +25 -21
  26. package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-latin.ts +26 -58
  27. package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-oa.ts +37 -69
  28. package/lib/coarse-placer/tools/country-sets.ts +47 -0
  29. package/{coarse-placer → lib/coarse-placer}/tools/eval-latin-offmap.ts +13 -44
  30. package/{coarse-placer → lib/coarse-placer}/tools/eval-openset.ts +22 -78
  31. package/{coarse-placer → lib/coarse-placer}/tools/eval-quant-compare.ts +17 -51
  32. package/{coarse-placer → lib/coarse-placer}/tools/eval.ts +23 -37
  33. package/lib/coarse-placer/tools/index.ts +24 -0
  34. package/lib/coarse-placer/tools/outlier-rows.ts +91 -0
  35. package/lib/coarse-placer/tools/paths.ts +78 -0
  36. package/{coarse-placer → lib/coarse-placer}/tools/probe-frontier.ts +13 -16
  37. package/{coarse-placer → lib/coarse-placer}/tools/quantize.ts +15 -21
  38. package/{coarse-placer → lib/coarse-placer}/tools/train.ts +32 -61
  39. package/lib/crypto/base64url.ts +42 -0
  40. package/lib/crypto/digest.ts +17 -0
  41. package/lib/crypto/ed25519.ts +118 -0
  42. package/{crypto → lib/crypto}/node.ts +1 -1
  43. package/lib/data-root.ts +193 -0
  44. package/{decoder → lib/decoder}/build-tree.ts +4 -4
  45. package/{decoder → lib/decoder}/calibration.ts +1 -1
  46. package/{decoder → lib/decoder}/containment.ts +8 -5
  47. package/lib/decoder/index.ts +19 -0
  48. package/{decoder → lib/decoder}/parse-diff.ts +2 -2
  49. package/{decoder → lib/decoder}/proposals-to-tree.ts +3 -3
  50. package/{decoder → lib/decoder}/resolve-proposal-overlaps.ts +3 -3
  51. package/{decoder → lib/decoder}/serialize-json.ts +14 -14
  52. package/{decoder → lib/decoder}/serialize-tuples.ts +22 -3
  53. package/{decoder → lib/decoder}/serialize-xml.ts +7 -3
  54. package/{decoder → lib/decoder}/tree-shape.ts +13 -26
  55. package/lib/decoder/tree-walk.ts +96 -0
  56. package/{decoder → lib/decoder}/types.ts +3 -3
  57. package/{decoder → lib/decoder}/unknown-spans.ts +3 -8
  58. package/{decoder → lib/decoder}/validate-tree.ts +4 -4
  59. package/lib/env/index.ts +90 -0
  60. package/{env → lib/env}/paths.ts +4 -11
  61. package/lib/env/schema.ts +100 -0
  62. package/lib/env/utils.ts +24 -0
  63. package/{errors → lib/errors}/schema.ts +10 -1
  64. package/lib/fs/compression.ts +65 -0
  65. package/{fs/utils → lib/fs}/formatters.ts +12 -0
  66. package/lib/fs/readers.ts +433 -0
  67. package/lib/fs/streams.ts +46 -0
  68. package/lib/fs/temporary.ts +85 -0
  69. package/lib/fs/writers.ts +288 -0
  70. package/{fs → lib/fs}/zip.ts +96 -80
  71. package/lib/git.ts +85 -0
  72. package/{utils → lib}/hash.ts +12 -4
  73. package/lib/html/document.ts +117 -0
  74. package/lib/html/tables.ts +154 -0
  75. package/lib/html/text.ts +123 -0
  76. package/lib/index.ts +16 -0
  77. package/lib/json.ts +85 -0
  78. package/lib/layers/coverage.ts +223 -0
  79. package/lib/layers/feature-count.ts +35 -0
  80. package/{layers → lib/layers}/index.ts +4 -2
  81. package/lib/layers/manifest.ts +453 -0
  82. package/{layers → lib/layers}/schema.ts +3 -31
  83. package/lib/license/configured.ts +29 -0
  84. package/lib/license/docs-site.ts +23 -0
  85. package/lib/license/index.ts +18 -0
  86. package/lib/license/key-file.ts +91 -0
  87. package/lib/license/key.ts +205 -0
  88. package/lib/license/obligations.ts +189 -0
  89. package/lib/license/publication.ts +91 -0
  90. package/lib/license/register.ts +110 -0
  91. package/lib/license/stamp.ts +94 -0
  92. package/lib/license/status.ts +125 -0
  93. package/lib/locale/index.ts +9 -0
  94. package/{locale → lib/locale}/locale.ts +1 -2
  95. package/{locale → lib/locale}/profiles/en-us.ts +1 -1
  96. package/{locale → lib/locale}/profiles/fr-fr.ts +1 -1
  97. package/lib/locale/profiles/index.ts +9 -0
  98. package/{locale → lib/locale}/profiles/ja-jp.ts +1 -1
  99. package/{locale → lib/locale}/registry.ts +1 -2
  100. package/lib/locale/zh-cn-units.ts +148 -0
  101. package/{logging → lib/logging}/index.ts +2 -2
  102. package/{logging → lib/logging}/shared.ts +39 -4
  103. package/lib/module/file-url.ts +29 -0
  104. package/lib/module/packaged-data.ts +31 -0
  105. package/lib/module/resolve-from.ts +112 -0
  106. package/lib/module/resolvers.ts +80 -0
  107. package/lib/module/runtime.ts +11 -0
  108. package/{utils/python-numeric.ts → lib/numeric.ts} +16 -2
  109. package/{objects.ts → lib/objects.ts} +13 -50
  110. package/lib/paths.ts +171 -0
  111. package/lib/pipeline/client-result.ts +82 -0
  112. package/{pipeline → lib/pipeline}/index.ts +7 -7
  113. package/{pipeline → lib/pipeline}/runtime-pipeline.ts +40 -40
  114. package/{pipeline → lib/pipeline}/types.ts +82 -35
  115. package/{policy → lib/policy}/defaults.ts +1 -2
  116. package/lib/policy/index.ts +10 -0
  117. package/{policy → lib/policy}/policy.ts +1 -1
  118. package/{policy → lib/policy}/proposal-collection.ts +3 -3
  119. package/{policy → lib/policy}/registry.ts +2 -3
  120. package/lib/process.ts +219 -0
  121. package/lib/release-config.ts +106 -0
  122. package/lib/resolver/authoritative-provider.ts +180 -0
  123. package/{resolver → lib/resolver}/coverage-facts.ts +6 -6
  124. package/lib/resolver/fixture-authoritative-provider.ts +103 -0
  125. package/{resolver → lib/resolver}/index.ts +27 -5
  126. package/{resolver → lib/resolver}/lookup-types.ts +16 -7
  127. package/{resolver → lib/resolver}/placetype-map.ts +43 -8
  128. package/{resolver → lib/resolver}/postcode-format.ts +5 -4
  129. package/{resolver → lib/resolver}/referential.ts +1 -1
  130. package/{resolver → lib/resolver}/types.ts +97 -80
  131. package/{resources → lib/resources}/git.ts +6 -10
  132. package/lib/resources/index.ts +13 -0
  133. package/{resources → lib/resources}/languages/index.ts +8 -3
  134. package/lib/resources/libpostal.ts +19 -0
  135. package/{resources → lib/resources}/set.ts +0 -38
  136. package/{resources → lib/resources}/whosonfirst/PlacetypeDataSource.ts +26 -9
  137. package/{resources → lib/resources}/whosonfirst/backoff.ts +5 -3
  138. package/{resources/whosonfirst/sharded-repo.ts → lib/resources/whosonfirst/extract-repo.ts} +21 -27
  139. package/lib/resources/whosonfirst/index.ts +9 -0
  140. package/{resources → lib/resources}/whosonfirst/placetypes/Placetype.ts +5 -7
  141. package/{resources → lib/resources}/whosonfirst/placetypes/admin.ts +1 -2
  142. package/{resources → lib/resources}/whosonfirst/placetypes/graph.ts +0 -0
  143. package/lib/resources/whosonfirst/placetypes/index.ts +13 -0
  144. package/{resources → lib/resources}/whosonfirst/placetypes/mermaid.ts +2 -2
  145. package/{resources → lib/resources}/whosonfirst/placetypes/specificity.ts +9 -9
  146. package/{resources → lib/resources}/whosonfirst/placetypes/tree.ts +2 -2
  147. package/{routing → lib/routing}/index.ts +3 -1
  148. package/lib/scripting/arguments.ts +70 -0
  149. package/{scripting → lib/scripting}/index.ts +1 -1
  150. package/lib/scripting/ingest-chunk-script.ts +90 -0
  151. package/{scripting → lib/scripting}/utils/index.ts +14 -5
  152. package/lib/stats.ts +63 -0
  153. package/{identifiers.ts → lib/strings/case.ts} +10 -1
  154. package/lib/strings/compare.ts +20 -0
  155. package/lib/strings/escape.ts +24 -0
  156. package/lib/strings/format.ts +29 -0
  157. package/{utils → lib/strings}/python-json.ts +8 -17
  158. package/lib/strings/regexp.ts +13 -0
  159. package/{tokenization → lib/tokenization}/Graph.ts +1 -1
  160. package/{tokenization → lib/tokenization}/Span.ts +5 -5
  161. package/lib/tokenization/index.ts +9 -0
  162. package/{tools → lib/tools}/download-libpostal-resources.ts +18 -22
  163. package/{tools → lib/tools}/download-ssl-address.ts +6 -6
  164. package/{tools → lib/tools}/generate-language-types.ts +6 -9
  165. package/{tools → lib/tools}/index.ts +3 -3
  166. package/lib/trust-policies.ts +120 -0
  167. package/{types → lib/types}/Classification.ts +3 -3
  168. package/{types → lib/types}/classifier.ts +2 -2
  169. package/{types → lib/types}/component.ts +17 -0
  170. package/lib/types/index.ts +10 -0
  171. package/{types → lib/types}/mapping.ts +2 -2
  172. package/lib/utils/chunk-process.ts +117 -0
  173. package/lib/utils/collections.ts +16 -0
  174. package/lib/utils/events.ts +10 -0
  175. package/lib/utils/geodatabase-archive.ts +97 -0
  176. package/lib/utils/index.ts +20 -0
  177. package/lib/utils/sleep.ts +15 -0
  178. package/{utils → lib/utils}/sqlite-rows.ts +2 -2
  179. package/lib/utils/stream-to-disk.ts +122 -0
  180. package/lib/utils/system.ts +52 -0
  181. package/lib/utils/time.ts +30 -0
  182. package/lib/utils/union-find.ts +58 -0
  183. package/lib/vale.ts +47 -0
  184. package/lib/workspaces.ts +97 -0
  185. package/out/api/APIClient.d.ts +19 -14
  186. package/out/api/APIClient.d.ts.map +1 -1
  187. package/out/api/APIClient.js +22 -22
  188. package/out/api/APIClient.js.map +1 -1
  189. package/out/api/arcgis.d.ts +33 -0
  190. package/out/api/arcgis.d.ts.map +1 -0
  191. package/out/api/arcgis.js +53 -0
  192. package/out/api/arcgis.js.map +1 -0
  193. package/out/api/ckan.d.ts +72 -0
  194. package/out/api/ckan.d.ts.map +1 -0
  195. package/out/api/ckan.js +64 -0
  196. package/out/api/ckan.js.map +1 -0
  197. package/out/api/clock.d.ts +1 -1
  198. package/out/api/clock.d.ts.map +1 -1
  199. package/out/api/clock.js +1 -1
  200. package/out/api/clock.js.map +1 -1
  201. package/out/api/defaults.d.ts +28 -0
  202. package/out/api/defaults.d.ts.map +1 -0
  203. package/out/api/defaults.js +28 -0
  204. package/out/api/defaults.js.map +1 -0
  205. package/out/api/disk-storage.d.ts +8 -7
  206. package/out/api/disk-storage.d.ts.map +1 -1
  207. package/out/api/disk-storage.js +20 -19
  208. package/out/api/disk-storage.js.map +1 -1
  209. package/out/api/headless.d.ts.map +1 -1
  210. package/out/api/headless.js.map +1 -1
  211. package/out/api/host.d.ts +43 -0
  212. package/out/api/host.d.ts.map +1 -0
  213. package/out/api/host.js +36 -0
  214. package/out/api/host.js.map +1 -0
  215. package/out/api/index.d.ts +11 -6
  216. package/out/api/index.d.ts.map +1 -1
  217. package/out/api/index.js +11 -6
  218. package/out/api/index.js.map +1 -1
  219. package/out/api/ogc.d.ts +78 -0
  220. package/out/api/ogc.d.ts.map +1 -0
  221. package/out/api/ogc.js +166 -0
  222. package/out/api/ogc.js.map +1 -0
  223. package/out/api/paced-client.d.ts +45 -0
  224. package/out/api/paced-client.d.ts.map +1 -0
  225. package/out/api/paced-client.js +32 -0
  226. package/out/api/paced-client.js.map +1 -0
  227. package/out/api/pacer.d.ts +8 -8
  228. package/out/api/pacer.d.ts.map +1 -1
  229. package/out/api/pacer.js +8 -8
  230. package/out/api/pacer.js.map +1 -1
  231. package/out/api/responses.d.ts.map +1 -1
  232. package/out/api/responses.js +3 -3
  233. package/out/api/responses.js.map +1 -1
  234. package/out/api/retry.d.ts +7 -7
  235. package/out/api/retry.d.ts.map +1 -1
  236. package/out/api/retry.js +12 -12
  237. package/out/api/retry.js.map +1 -1
  238. package/out/api/test-clocks.d.ts +8 -2
  239. package/out/api/test-clocks.d.ts.map +1 -1
  240. package/out/api/test-clocks.js +5 -4
  241. package/out/api/test-clocks.js.map +1 -1
  242. package/out/api/test-transport.d.ts +1 -1
  243. package/out/api/test-transport.d.ts.map +1 -1
  244. package/out/api/test-transport.js.map +1 -1
  245. package/out/coarse-placer/coarse-placer.d.ts +13 -1
  246. package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
  247. package/out/coarse-placer/coarse-placer.js +29 -13
  248. package/out/coarse-placer/coarse-placer.js.map +1 -1
  249. package/out/coarse-placer/featurize.d.ts +11 -1
  250. package/out/coarse-placer/featurize.d.ts.map +1 -1
  251. package/out/coarse-placer/featurize.js +9 -10
  252. package/out/coarse-placer/featurize.js.map +1 -1
  253. package/out/coarse-placer/fnv-hash.d.ts +15 -0
  254. package/out/coarse-placer/fnv-hash.d.ts.map +1 -0
  255. package/out/coarse-placer/fnv-hash.js +22 -0
  256. package/out/coarse-placer/fnv-hash.js.map +1 -0
  257. package/out/coarse-placer/math.d.ts +25 -0
  258. package/out/coarse-placer/math.d.ts.map +1 -0
  259. package/out/coarse-placer/math.js +49 -0
  260. package/out/coarse-placer/math.js.map +1 -0
  261. package/out/coarse-placer/tools/build-dataset.d.ts +4 -3
  262. package/out/coarse-placer/tools/build-dataset.d.ts.map +1 -1
  263. package/out/coarse-placer/tools/build-dataset.js +21 -31
  264. package/out/coarse-placer/tools/build-dataset.js.map +1 -1
  265. package/out/coarse-placer/tools/build-outlier-exposure.d.ts +3 -5
  266. package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +1 -1
  267. package/out/coarse-placer/tools/build-outlier-exposure.js +12 -18
  268. package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
  269. package/out/coarse-placer/tools/build-outlier-latin.d.ts +3 -2
  270. package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
  271. package/out/coarse-placer/tools/build-outlier-latin.js +18 -50
  272. package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
  273. package/out/coarse-placer/tools/build-outlier-oa.d.ts +3 -2
  274. package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
  275. package/out/coarse-placer/tools/build-outlier-oa.js +22 -57
  276. package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
  277. package/out/coarse-placer/tools/country-sets.d.ts +28 -0
  278. package/out/coarse-placer/tools/country-sets.d.ts.map +1 -0
  279. package/out/coarse-placer/tools/country-sets.js +45 -0
  280. package/out/coarse-placer/tools/country-sets.js.map +1 -0
  281. package/out/coarse-placer/tools/eval-latin-offmap.d.ts +4 -3
  282. package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
  283. package/out/coarse-placer/tools/eval-latin-offmap.js +10 -34
  284. package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
  285. package/out/coarse-placer/tools/eval-openset.d.ts +3 -2
  286. package/out/coarse-placer/tools/eval-openset.d.ts.map +1 -1
  287. package/out/coarse-placer/tools/eval-openset.js +19 -56
  288. package/out/coarse-placer/tools/eval-openset.js.map +1 -1
  289. package/out/coarse-placer/tools/eval-quant-compare.d.ts +6 -5
  290. package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +1 -1
  291. package/out/coarse-placer/tools/eval-quant-compare.js +13 -39
  292. package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
  293. package/out/coarse-placer/tools/eval.d.ts +3 -2
  294. package/out/coarse-placer/tools/eval.d.ts.map +1 -1
  295. package/out/coarse-placer/tools/eval.js +21 -23
  296. package/out/coarse-placer/tools/eval.js.map +1 -1
  297. package/out/coarse-placer/tools/index.d.ts +14 -13
  298. package/out/coarse-placer/tools/index.d.ts.map +1 -1
  299. package/out/coarse-placer/tools/index.js +14 -13
  300. package/out/coarse-placer/tools/index.js.map +1 -1
  301. package/out/coarse-placer/tools/outlier-rows.d.ts +38 -0
  302. package/out/coarse-placer/tools/outlier-rows.d.ts.map +1 -0
  303. package/out/coarse-placer/tools/outlier-rows.js +67 -0
  304. package/out/coarse-placer/tools/outlier-rows.js.map +1 -0
  305. package/out/coarse-placer/tools/paths.d.ts +34 -0
  306. package/out/coarse-placer/tools/paths.d.ts.map +1 -0
  307. package/out/coarse-placer/tools/paths.js +64 -0
  308. package/out/coarse-placer/tools/paths.js.map +1 -0
  309. package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
  310. package/out/coarse-placer/tools/probe-frontier.js +13 -14
  311. package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
  312. package/out/coarse-placer/tools/quantize.d.ts +3 -2
  313. package/out/coarse-placer/tools/quantize.d.ts.map +1 -1
  314. package/out/coarse-placer/tools/quantize.js +13 -14
  315. package/out/coarse-placer/tools/quantize.js.map +1 -1
  316. package/out/coarse-placer/tools/train.d.ts +3 -2
  317. package/out/coarse-placer/tools/train.d.ts.map +1 -1
  318. package/out/coarse-placer/tools/train.js +21 -36
  319. package/out/coarse-placer/tools/train.js.map +1 -1
  320. package/out/collections.d.ts.map +1 -1
  321. package/out/collections.js.map +1 -1
  322. package/out/crypto/base64url.d.ts +13 -0
  323. package/out/crypto/base64url.d.ts.map +1 -0
  324. package/out/crypto/base64url.js +34 -0
  325. package/out/crypto/base64url.js.map +1 -0
  326. package/out/crypto/digest.d.ts +12 -0
  327. package/out/crypto/digest.d.ts.map +1 -0
  328. package/out/crypto/digest.js +16 -0
  329. package/out/crypto/digest.js.map +1 -0
  330. package/out/crypto/ed25519.d.ts +35 -0
  331. package/out/crypto/ed25519.d.ts.map +1 -0
  332. package/out/crypto/ed25519.js +89 -0
  333. package/out/crypto/ed25519.js.map +1 -0
  334. package/out/crypto/node.d.ts.map +1 -1
  335. package/out/crypto/node.js +1 -1
  336. package/out/crypto/node.js.map +1 -1
  337. package/out/data-root.d.ts +131 -0
  338. package/out/data-root.d.ts.map +1 -0
  339. package/out/data-root.js +135 -0
  340. package/out/data-root.js.map +1 -0
  341. package/out/decoder/build-tree.d.ts +2 -2
  342. package/out/decoder/build-tree.d.ts.map +1 -1
  343. package/out/decoder/build-tree.js +1 -1
  344. package/out/decoder/build-tree.js.map +1 -1
  345. package/out/decoder/calibration.d.ts +1 -1
  346. package/out/decoder/calibration.d.ts.map +1 -1
  347. package/out/decoder/calibration.js +1 -1
  348. package/out/decoder/calibration.js.map +1 -1
  349. package/out/decoder/containment.d.ts +3 -3
  350. package/out/decoder/containment.d.ts.map +1 -1
  351. package/out/decoder/containment.js +6 -3
  352. package/out/decoder/containment.js.map +1 -1
  353. package/out/decoder/index.d.ts +13 -12
  354. package/out/decoder/index.d.ts.map +1 -1
  355. package/out/decoder/index.js +13 -12
  356. package/out/decoder/index.js.map +1 -1
  357. package/out/decoder/parse-diff.d.ts +1 -1
  358. package/out/decoder/parse-diff.d.ts.map +1 -1
  359. package/out/decoder/parse-diff.js +1 -1
  360. package/out/decoder/parse-diff.js.map +1 -1
  361. package/out/decoder/proposals-to-tree.d.ts +2 -2
  362. package/out/decoder/proposals-to-tree.d.ts.map +1 -1
  363. package/out/decoder/proposals-to-tree.js.map +1 -1
  364. package/out/decoder/resolve-proposal-overlaps.d.ts +3 -3
  365. package/out/decoder/resolve-proposal-overlaps.d.ts.map +1 -1
  366. package/out/decoder/resolve-proposal-overlaps.js +2 -2
  367. package/out/decoder/resolve-proposal-overlaps.js.map +1 -1
  368. package/out/decoder/serialize-json.d.ts +4 -4
  369. package/out/decoder/serialize-json.d.ts.map +1 -1
  370. package/out/decoder/serialize-json.js +11 -10
  371. package/out/decoder/serialize-json.js.map +1 -1
  372. package/out/decoder/serialize-tuples.d.ts +6 -2
  373. package/out/decoder/serialize-tuples.d.ts.map +1 -1
  374. package/out/decoder/serialize-tuples.js +17 -1
  375. package/out/decoder/serialize-tuples.js.map +1 -1
  376. package/out/decoder/serialize-xml.d.ts +2 -2
  377. package/out/decoder/serialize-xml.d.ts.map +1 -1
  378. package/out/decoder/serialize-xml.js +6 -2
  379. package/out/decoder/serialize-xml.js.map +1 -1
  380. package/out/decoder/tree-shape.d.ts +9 -13
  381. package/out/decoder/tree-shape.d.ts.map +1 -1
  382. package/out/decoder/tree-shape.js +11 -20
  383. package/out/decoder/tree-shape.js.map +1 -1
  384. package/out/decoder/tree-walk.d.ts +50 -0
  385. package/out/decoder/tree-walk.d.ts.map +1 -0
  386. package/out/decoder/tree-walk.js +78 -0
  387. package/out/decoder/tree-walk.js.map +1 -0
  388. package/out/decoder/types.d.ts +3 -3
  389. package/out/decoder/types.d.ts.map +1 -1
  390. package/out/decoder/types.js +1 -1
  391. package/out/decoder/types.js.map +1 -1
  392. package/out/decoder/unknown-spans.d.ts +1 -15
  393. package/out/decoder/unknown-spans.d.ts.map +1 -1
  394. package/out/decoder/unknown-spans.js +16 -6
  395. package/out/decoder/unknown-spans.js.map +1 -1
  396. package/out/decoder/validate-tree.d.ts +2 -2
  397. package/out/decoder/validate-tree.d.ts.map +1 -1
  398. package/out/decoder/validate-tree.js +1 -1
  399. package/out/decoder/validate-tree.js.map +1 -1
  400. package/out/env/index.d.ts +28 -94
  401. package/out/env/index.d.ts.map +1 -1
  402. package/out/env/index.js +57 -19
  403. package/out/env/index.js.map +1 -1
  404. package/out/env/paths.d.ts +4 -12
  405. package/out/env/paths.d.ts.map +1 -1
  406. package/out/env/paths.js +4 -10
  407. package/out/env/paths.js.map +1 -1
  408. package/out/env/schema.d.ts +20 -99
  409. package/out/env/schema.d.ts.map +1 -1
  410. package/out/env/schema.js +77 -186
  411. package/out/env/schema.js.map +1 -1
  412. package/out/env/utils.d.ts +21 -0
  413. package/out/env/utils.d.ts.map +1 -0
  414. package/out/env/utils.js +23 -0
  415. package/out/env/utils.js.map +1 -0
  416. package/out/errors/schema.d.ts +7 -0
  417. package/out/errors/schema.d.ts.map +1 -1
  418. package/out/errors/schema.js +7 -5
  419. package/out/errors/schema.js.map +1 -1
  420. package/out/fs/compression.d.ts +22 -0
  421. package/out/fs/compression.d.ts.map +1 -0
  422. package/out/fs/compression.js +50 -0
  423. package/out/fs/compression.js.map +1 -0
  424. package/out/fs/{utils/formatters.d.ts → formatters.d.ts} +12 -0
  425. package/out/fs/formatters.d.ts.map +1 -0
  426. package/out/fs/{utils/formatters.js → formatters.js} +12 -0
  427. package/out/fs/formatters.js.map +1 -0
  428. package/out/fs/readers.d.ts +227 -0
  429. package/out/fs/readers.d.ts.map +1 -0
  430. package/out/fs/readers.js +341 -0
  431. package/out/fs/readers.js.map +1 -0
  432. package/out/fs/streams.d.ts +38 -0
  433. package/out/fs/streams.d.ts.map +1 -0
  434. package/out/fs/streams.js +37 -0
  435. package/out/fs/streams.js.map +1 -0
  436. package/out/fs/temporary.d.ts +54 -0
  437. package/out/fs/temporary.d.ts.map +1 -0
  438. package/out/fs/temporary.js +39 -0
  439. package/out/fs/temporary.js.map +1 -0
  440. package/out/fs/writers.d.ts +132 -0
  441. package/out/fs/writers.d.ts.map +1 -0
  442. package/out/fs/writers.js +203 -0
  443. package/out/fs/writers.js.map +1 -0
  444. package/out/fs/zip.d.ts +6 -2
  445. package/out/fs/zip.d.ts.map +1 -1
  446. package/out/fs/zip.js +79 -82
  447. package/out/fs/zip.js.map +1 -1
  448. package/out/git.d.ts +48 -0
  449. package/out/git.d.ts.map +1 -0
  450. package/out/git.js +70 -0
  451. package/out/git.js.map +1 -0
  452. package/out/{utils/hash.d.ts → hash.d.ts} +6 -1
  453. package/out/hash.d.ts.map +1 -0
  454. package/out/{utils/hash.js → hash.js} +9 -4
  455. package/out/hash.js.map +1 -0
  456. package/out/html/document.d.ts +57 -0
  457. package/out/html/document.d.ts.map +1 -0
  458. package/out/html/document.js +79 -0
  459. package/out/html/document.js.map +1 -0
  460. package/out/html/tables.d.ts +53 -0
  461. package/out/html/tables.d.ts.map +1 -0
  462. package/out/html/tables.js +117 -0
  463. package/out/html/tables.js.map +1 -0
  464. package/out/html/text.d.ts +40 -0
  465. package/out/html/text.d.ts.map +1 -0
  466. package/out/html/text.js +110 -0
  467. package/out/html/text.js.map +1 -0
  468. package/out/index.d.ts +10 -7
  469. package/out/index.d.ts.map +1 -1
  470. package/out/index.js +10 -7
  471. package/out/index.js.map +1 -1
  472. package/out/json.d.ts +43 -0
  473. package/out/json.d.ts.map +1 -0
  474. package/out/json.js +68 -0
  475. package/out/json.js.map +1 -0
  476. package/out/layers/coverage.d.ts +123 -0
  477. package/out/layers/coverage.d.ts.map +1 -0
  478. package/out/layers/coverage.js +131 -0
  479. package/out/layers/coverage.js.map +1 -0
  480. package/out/layers/feature-count.d.ts +29 -0
  481. package/out/layers/feature-count.d.ts.map +1 -0
  482. package/out/layers/feature-count.js +23 -0
  483. package/out/layers/feature-count.js.map +1 -0
  484. package/out/layers/index.d.ts +4 -2
  485. package/out/layers/index.d.ts.map +1 -1
  486. package/out/layers/index.js +4 -2
  487. package/out/layers/index.js.map +1 -1
  488. package/out/layers/manifest.d.ts +107 -8
  489. package/out/layers/manifest.d.ts.map +1 -1
  490. package/out/layers/manifest.js +159 -9
  491. package/out/layers/manifest.js.map +1 -1
  492. package/out/layers/schema.d.ts +1 -30
  493. package/out/layers/schema.d.ts.map +1 -1
  494. package/out/layers/schema.js +0 -29
  495. package/out/layers/schema.js.map +1 -1
  496. package/out/license/configured.d.ts +17 -0
  497. package/out/license/configured.d.ts.map +1 -0
  498. package/out/license/configured.js +27 -0
  499. package/out/license/configured.js.map +1 -0
  500. package/out/license/docs-site.d.ts +17 -0
  501. package/out/license/docs-site.d.ts.map +1 -0
  502. package/out/license/docs-site.js +21 -0
  503. package/out/license/docs-site.js.map +1 -0
  504. package/out/license/index.d.ts +18 -0
  505. package/out/license/index.d.ts.map +1 -0
  506. package/out/license/index.js +18 -0
  507. package/out/license/index.js.map +1 -0
  508. package/out/license/key-file.d.ts +36 -0
  509. package/out/license/key-file.d.ts.map +1 -0
  510. package/out/license/key-file.js +64 -0
  511. package/out/license/key-file.js.map +1 -0
  512. package/out/license/key.d.ts +96 -0
  513. package/out/license/key.d.ts.map +1 -0
  514. package/out/license/key.js +155 -0
  515. package/out/license/key.js.map +1 -0
  516. package/out/license/obligations.d.ts +87 -0
  517. package/out/license/obligations.d.ts.map +1 -0
  518. package/out/license/obligations.js +132 -0
  519. package/out/license/obligations.js.map +1 -0
  520. package/out/license/publication.d.ts +36 -0
  521. package/out/license/publication.d.ts.map +1 -0
  522. package/out/license/publication.js +61 -0
  523. package/out/license/publication.js.map +1 -0
  524. package/out/license/register.d.ts +63 -0
  525. package/out/license/register.d.ts.map +1 -0
  526. package/out/license/register.js +73 -0
  527. package/out/license/register.js.map +1 -0
  528. package/out/license/stamp.d.ts +55 -0
  529. package/out/license/stamp.d.ts.map +1 -0
  530. package/out/license/stamp.js +62 -0
  531. package/out/license/stamp.js.map +1 -0
  532. package/out/license/status.d.ts +54 -0
  533. package/out/license/status.d.ts.map +1 -0
  534. package/out/license/status.js +85 -0
  535. package/out/license/status.js.map +1 -0
  536. package/out/locale/index.d.ts +3 -3
  537. package/out/locale/index.d.ts.map +1 -1
  538. package/out/locale/index.js +3 -3
  539. package/out/locale/index.js.map +1 -1
  540. package/out/locale/locale.d.ts +1 -1
  541. package/out/locale/locale.d.ts.map +1 -1
  542. package/out/locale/locale.js.map +1 -1
  543. package/out/locale/profiles/en-us.d.ts +1 -1
  544. package/out/locale/profiles/en-us.d.ts.map +1 -1
  545. package/out/locale/profiles/en-us.js.map +1 -1
  546. package/out/locale/profiles/fr-fr.d.ts +1 -1
  547. package/out/locale/profiles/fr-fr.d.ts.map +1 -1
  548. package/out/locale/profiles/fr-fr.js.map +1 -1
  549. package/out/locale/profiles/index.d.ts +3 -3
  550. package/out/locale/profiles/index.d.ts.map +1 -1
  551. package/out/locale/profiles/index.js +3 -3
  552. package/out/locale/profiles/index.js.map +1 -1
  553. package/out/locale/profiles/ja-jp.d.ts +1 -1
  554. package/out/locale/profiles/ja-jp.d.ts.map +1 -1
  555. package/out/locale/profiles/ja-jp.js.map +1 -1
  556. package/out/locale/registry.d.ts +1 -1
  557. package/out/locale/registry.d.ts.map +1 -1
  558. package/out/locale/registry.js.map +1 -1
  559. package/out/locale/zh-cn-units.d.ts +67 -0
  560. package/out/locale/zh-cn-units.d.ts.map +1 -0
  561. package/out/locale/zh-cn-units.js +109 -0
  562. package/out/locale/zh-cn-units.js.map +1 -0
  563. package/out/logging/index.d.ts +2 -2
  564. package/out/logging/index.d.ts.map +1 -1
  565. package/out/logging/index.js +2 -2
  566. package/out/logging/index.js.map +1 -1
  567. package/out/logging/shared.d.ts +5 -3
  568. package/out/logging/shared.d.ts.map +1 -1
  569. package/out/logging/shared.js +28 -4
  570. package/out/logging/shared.js.map +1 -1
  571. package/out/logging/utils.d.ts.map +1 -1
  572. package/out/logging/utils.js.map +1 -1
  573. package/out/module/file-url.d.ts +21 -0
  574. package/out/module/file-url.d.ts.map +1 -0
  575. package/out/module/file-url.js +25 -0
  576. package/out/module/file-url.js.map +1 -0
  577. package/out/module/packaged-data.d.ts +19 -0
  578. package/out/module/packaged-data.d.ts.map +1 -0
  579. package/out/module/packaged-data.js +28 -0
  580. package/out/module/packaged-data.js.map +1 -0
  581. package/out/module/resolve-from.d.ts +61 -0
  582. package/out/module/resolve-from.d.ts.map +1 -0
  583. package/out/module/resolve-from.js +66 -0
  584. package/out/module/resolve-from.js.map +1 -0
  585. package/out/module/resolvers.d.ts +52 -0
  586. package/out/module/resolvers.d.ts.map +1 -0
  587. package/out/module/resolvers.js +74 -0
  588. package/out/module/resolvers.js.map +1 -0
  589. package/out/module/runtime.d.ts +11 -0
  590. package/out/module/runtime.d.ts.map +1 -0
  591. package/out/module/runtime.js +11 -0
  592. package/out/module/runtime.js.map +1 -0
  593. package/out/{utils/python-numeric.d.ts → numeric.d.ts} +6 -9
  594. package/out/numeric.d.ts.map +1 -0
  595. package/out/{utils/python-numeric.js → numeric.js} +15 -3
  596. package/out/numeric.js.map +1 -0
  597. package/out/objects.d.ts +7 -21
  598. package/out/objects.d.ts.map +1 -1
  599. package/out/objects.js +11 -37
  600. package/out/objects.js.map +1 -1
  601. package/out/{utils/repo.d.ts → paths.d.ts} +8 -2
  602. package/out/paths.d.ts.map +1 -0
  603. package/out/paths.js +134 -0
  604. package/out/paths.js.map +1 -0
  605. package/out/pipeline/client-result.d.ts +84 -0
  606. package/out/pipeline/client-result.d.ts.map +1 -0
  607. package/out/pipeline/client-result.js +12 -0
  608. package/out/pipeline/client-result.js.map +1 -0
  609. package/out/pipeline/index.d.ts +5 -5
  610. package/out/pipeline/index.d.ts.map +1 -1
  611. package/out/pipeline/index.js +3 -3
  612. package/out/pipeline/index.js.map +1 -1
  613. package/out/pipeline/runtime-pipeline.d.ts +26 -26
  614. package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
  615. package/out/pipeline/runtime-pipeline.js +36 -35
  616. package/out/pipeline/runtime-pipeline.js.map +1 -1
  617. package/out/pipeline/span-proposer.d.ts.map +1 -1
  618. package/out/pipeline/span-proposer.js.map +1 -1
  619. package/out/pipeline/types.d.ts +76 -34
  620. package/out/pipeline/types.d.ts.map +1 -1
  621. package/out/pipeline/types.js +21 -3
  622. package/out/pipeline/types.js.map +1 -1
  623. package/out/policy/defaults.d.ts +1 -1
  624. package/out/policy/defaults.d.ts.map +1 -1
  625. package/out/policy/defaults.js.map +1 -1
  626. package/out/policy/index.d.ts +4 -4
  627. package/out/policy/index.d.ts.map +1 -1
  628. package/out/policy/index.js +4 -4
  629. package/out/policy/index.js.map +1 -1
  630. package/out/policy/policy.d.ts +1 -1
  631. package/out/policy/policy.d.ts.map +1 -1
  632. package/out/policy/policy.js +1 -1
  633. package/out/policy/policy.js.map +1 -1
  634. package/out/policy/proposal-collection.d.ts +3 -3
  635. package/out/policy/proposal-collection.d.ts.map +1 -1
  636. package/out/policy/proposal-collection.js.map +1 -1
  637. package/out/policy/registry.d.ts +1 -1
  638. package/out/policy/registry.d.ts.map +1 -1
  639. package/out/policy/registry.js +1 -1
  640. package/out/policy/registry.js.map +1 -1
  641. package/out/process.d.ts +110 -0
  642. package/out/process.d.ts.map +1 -0
  643. package/out/process.js +72 -0
  644. package/out/process.js.map +1 -0
  645. package/out/{utils/python-random.d.ts → random.d.ts} +1 -1
  646. package/out/random.d.ts.map +1 -0
  647. package/out/{utils/python-random.js → random.js} +1 -1
  648. package/out/random.js.map +1 -0
  649. package/out/release-config.d.ts +84 -0
  650. package/out/release-config.d.ts.map +1 -0
  651. package/out/release-config.js +45 -0
  652. package/out/release-config.js.map +1 -0
  653. package/out/resolver/authoritative-provider.d.ts +171 -0
  654. package/out/resolver/authoritative-provider.d.ts.map +1 -0
  655. package/out/resolver/authoritative-provider.js +51 -0
  656. package/out/resolver/authoritative-provider.js.map +1 -0
  657. package/out/resolver/coverage-facts.d.ts +6 -6
  658. package/out/resolver/coverage-facts.d.ts.map +1 -1
  659. package/out/resolver/coverage-facts.js.map +1 -1
  660. package/out/resolver/fixture-authoritative-provider.d.ts +48 -0
  661. package/out/resolver/fixture-authoritative-provider.d.ts.map +1 -0
  662. package/out/resolver/fixture-authoritative-provider.js +68 -0
  663. package/out/resolver/fixture-authoritative-provider.js.map +1 -0
  664. package/out/resolver/index.d.ts +8 -5
  665. package/out/resolver/index.d.ts.map +1 -1
  666. package/out/resolver/index.js +5 -3
  667. package/out/resolver/index.js.map +1 -1
  668. package/out/resolver/lookup-types.d.ts +16 -7
  669. package/out/resolver/lookup-types.d.ts.map +1 -1
  670. package/out/resolver/lookup-types.js.map +1 -1
  671. package/out/resolver/placetype-map.d.ts +18 -6
  672. package/out/resolver/placetype-map.d.ts.map +1 -1
  673. package/out/resolver/placetype-map.js +38 -6
  674. package/out/resolver/placetype-map.js.map +1 -1
  675. package/out/resolver/postcode-format.d.ts +2 -1
  676. package/out/resolver/postcode-format.d.ts.map +1 -1
  677. package/out/resolver/postcode-format.js +5 -4
  678. package/out/resolver/postcode-format.js.map +1 -1
  679. package/out/resolver/referential.d.ts +1 -1
  680. package/out/resolver/referential.d.ts.map +1 -1
  681. package/out/resolver/referential.js +1 -1
  682. package/out/resolver/referential.js.map +1 -1
  683. package/out/resolver/types.d.ts +96 -80
  684. package/out/resolver/types.d.ts.map +1 -1
  685. package/out/resolver/types.js +2 -2
  686. package/out/resolver/types.js.map +1 -1
  687. package/out/resources/debugging.d.ts.map +1 -1
  688. package/out/resources/debugging.js.map +1 -1
  689. package/out/resources/git.d.ts.map +1 -1
  690. package/out/resources/git.js +6 -8
  691. package/out/resources/git.js.map +1 -1
  692. package/out/resources/index.d.ts +7 -10
  693. package/out/resources/index.d.ts.map +1 -1
  694. package/out/resources/index.js +7 -10
  695. package/out/resources/index.js.map +1 -1
  696. package/out/resources/languages/index.d.ts +2 -2
  697. package/out/resources/languages/index.d.ts.map +1 -1
  698. package/out/resources/languages/index.js +2 -2
  699. package/out/resources/languages/index.js.map +1 -1
  700. package/out/resources/languages/types.gen.d.ts.map +1 -1
  701. package/out/resources/languages/types.gen.js.map +1 -1
  702. package/out/resources/libpostal.d.ts +9 -28
  703. package/out/resources/libpostal.d.ts.map +1 -1
  704. package/out/resources/libpostal.js +6 -122
  705. package/out/resources/libpostal.js.map +1 -1
  706. package/out/resources/locale.d.ts.map +1 -1
  707. package/out/resources/locale.js.map +1 -1
  708. package/out/resources/set.d.ts +0 -13
  709. package/out/resources/set.d.ts.map +1 -1
  710. package/out/resources/set.js +0 -32
  711. package/out/resources/set.js.map +1 -1
  712. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +20 -3
  713. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
  714. package/out/resources/whosonfirst/PlacetypeDataSource.js +5 -8
  715. package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
  716. package/out/resources/whosonfirst/backoff.d.ts +2 -0
  717. package/out/resources/whosonfirst/backoff.d.ts.map +1 -1
  718. package/out/resources/whosonfirst/backoff.js +4 -2
  719. package/out/resources/whosonfirst/backoff.js.map +1 -1
  720. package/out/resources/whosonfirst/{sharded-repo.d.ts → extract-repo.d.ts} +8 -9
  721. package/out/resources/whosonfirst/extract-repo.d.ts.map +1 -0
  722. package/out/resources/whosonfirst/{sharded-repo.js → extract-repo.js} +14 -25
  723. package/out/resources/whosonfirst/extract-repo.js.map +1 -0
  724. package/out/resources/whosonfirst/index.d.ts +3 -5
  725. package/out/resources/whosonfirst/index.d.ts.map +1 -1
  726. package/out/resources/whosonfirst/index.js +3 -5
  727. package/out/resources/whosonfirst/index.js.map +1 -1
  728. package/out/resources/whosonfirst/placetypes/Placetype.d.ts +1 -1
  729. package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
  730. package/out/resources/whosonfirst/placetypes/Placetype.js +5 -5
  731. package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
  732. package/out/resources/whosonfirst/placetypes/admin.d.ts +1 -1
  733. package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
  734. package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
  735. package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
  736. package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
  737. package/out/resources/whosonfirst/placetypes/graph.d.ts +2 -2
  738. package/out/resources/whosonfirst/placetypes/graph.d.ts.map +1 -1
  739. package/out/resources/whosonfirst/placetypes/graph.js +0 -0
  740. package/out/resources/whosonfirst/placetypes/graph.js.map +1 -1
  741. package/out/resources/whosonfirst/placetypes/index.d.ts +7 -7
  742. package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
  743. package/out/resources/whosonfirst/placetypes/index.js +7 -7
  744. package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
  745. package/out/resources/whosonfirst/placetypes/mermaid.d.ts +2 -2
  746. package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
  747. package/out/resources/whosonfirst/placetypes/mermaid.js +1 -1
  748. package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
  749. package/out/resources/whosonfirst/placetypes/specificity.d.ts +9 -9
  750. package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -1
  751. package/out/resources/whosonfirst/placetypes/specificity.js +8 -8
  752. package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -1
  753. package/out/resources/whosonfirst/placetypes/tree.d.ts +2 -2
  754. package/out/resources/whosonfirst/placetypes/tree.d.ts.map +1 -1
  755. package/out/resources/whosonfirst/placetypes/tree.js.map +1 -1
  756. package/out/routing/index.d.ts.map +1 -1
  757. package/out/routing/index.js +2 -1
  758. package/out/routing/index.js.map +1 -1
  759. package/out/scripting/arguments.d.ts +16 -0
  760. package/out/scripting/arguments.d.ts.map +1 -1
  761. package/out/scripting/arguments.js +27 -1
  762. package/out/scripting/arguments.js.map +1 -1
  763. package/out/scripting/command.d.ts.map +1 -1
  764. package/out/scripting/command.js.map +1 -1
  765. package/out/scripting/index.d.ts +1 -1
  766. package/out/scripting/index.d.ts.map +1 -1
  767. package/out/scripting/index.js.map +1 -1
  768. package/out/scripting/ingest-chunk-script.d.ts +63 -0
  769. package/out/scripting/ingest-chunk-script.d.ts.map +1 -0
  770. package/out/scripting/ingest-chunk-script.js +51 -0
  771. package/out/scripting/ingest-chunk-script.js.map +1 -0
  772. package/out/scripting/utils/index.d.ts +6 -1
  773. package/out/scripting/utils/index.d.ts.map +1 -1
  774. package/out/scripting/utils/index.js +12 -5
  775. package/out/scripting/utils/index.js.map +1 -1
  776. package/out/stats.d.ts +33 -0
  777. package/out/stats.d.ts.map +1 -0
  778. package/out/stats.js +53 -0
  779. package/out/stats.js.map +1 -0
  780. package/out/{identifiers.d.ts → strings/case.d.ts} +6 -2
  781. package/out/strings/case.d.ts.map +1 -0
  782. package/out/{identifiers.js → strings/case.js} +9 -2
  783. package/out/strings/case.js.map +1 -0
  784. package/out/strings/compare.d.ts +14 -0
  785. package/out/strings/compare.d.ts.map +1 -0
  786. package/out/strings/compare.js +20 -0
  787. package/out/strings/compare.js.map +1 -0
  788. package/out/strings/escape.d.ts +11 -0
  789. package/out/strings/escape.d.ts.map +1 -0
  790. package/out/strings/escape.js +23 -0
  791. package/out/strings/escape.js.map +1 -0
  792. package/out/strings/format.d.ts +18 -0
  793. package/out/strings/format.d.ts.map +1 -0
  794. package/out/strings/format.js +26 -0
  795. package/out/strings/format.js.map +1 -0
  796. package/out/{utils → strings}/python-json.d.ts +6 -7
  797. package/out/strings/python-json.d.ts.map +1 -0
  798. package/out/{utils → strings}/python-json.js +1 -8
  799. package/out/strings/python-json.js.map +1 -0
  800. package/out/strings/regexp.d.ts +11 -0
  801. package/out/strings/regexp.d.ts.map +1 -0
  802. package/out/strings/regexp.js +13 -0
  803. package/out/strings/regexp.js.map +1 -0
  804. package/out/tokenization/Graph.d.ts +1 -1
  805. package/out/tokenization/Graph.d.ts.map +1 -1
  806. package/out/tokenization/Graph.js +1 -1
  807. package/out/tokenization/Graph.js.map +1 -1
  808. package/out/tokenization/Span.d.ts +5 -5
  809. package/out/tokenization/Span.d.ts.map +1 -1
  810. package/out/tokenization/Span.js +2 -2
  811. package/out/tokenization/Span.js.map +1 -1
  812. package/out/tokenization/index.d.ts +3 -3
  813. package/out/tokenization/index.d.ts.map +1 -1
  814. package/out/tokenization/index.js +3 -3
  815. package/out/tokenization/index.js.map +1 -1
  816. package/out/tokenization/normalizer.d.ts.map +1 -1
  817. package/out/tokenization/normalizer.js.map +1 -1
  818. package/out/tools/download-libpostal-resources.d.ts.map +1 -1
  819. package/out/tools/download-libpostal-resources.js +17 -22
  820. package/out/tools/download-libpostal-resources.js.map +1 -1
  821. package/out/tools/download-ssl-address.d.ts.map +1 -1
  822. package/out/tools/download-ssl-address.js +6 -5
  823. package/out/tools/download-ssl-address.js.map +1 -1
  824. package/out/tools/generate-language-types.d.ts +1 -1
  825. package/out/tools/generate-language-types.d.ts.map +1 -1
  826. package/out/tools/generate-language-types.js +6 -7
  827. package/out/tools/generate-language-types.js.map +1 -1
  828. package/out/tools/index.d.ts +3 -3
  829. package/out/tools/index.d.ts.map +1 -1
  830. package/out/tools/index.js +3 -3
  831. package/out/tools/index.js.map +1 -1
  832. package/out/trust-policies.d.ts +58 -0
  833. package/out/trust-policies.d.ts.map +1 -0
  834. package/out/trust-policies.js +99 -0
  835. package/out/trust-policies.js.map +1 -0
  836. package/out/types/Classification.d.ts +4 -4
  837. package/out/types/Classification.d.ts.map +1 -1
  838. package/out/types/Classification.js.map +1 -1
  839. package/out/types/classifier.d.ts +2 -2
  840. package/out/types/classifier.d.ts.map +1 -1
  841. package/out/types/classifier.js.map +1 -1
  842. package/out/types/component.d.ts +7 -2
  843. package/out/types/component.d.ts.map +1 -1
  844. package/out/types/component.js +16 -0
  845. package/out/types/component.js.map +1 -1
  846. package/out/types/index.d.ts +4 -4
  847. package/out/types/index.d.ts.map +1 -1
  848. package/out/types/index.js +4 -4
  849. package/out/types/index.js.map +1 -1
  850. package/out/types/mapping.d.ts +2 -2
  851. package/out/types/mapping.d.ts.map +1 -1
  852. package/out/types/mapping.js.map +1 -1
  853. package/out/utils/chunk-process.d.ts +64 -0
  854. package/out/utils/chunk-process.d.ts.map +1 -0
  855. package/out/utils/chunk-process.js +78 -0
  856. package/out/utils/chunk-process.js.map +1 -0
  857. package/out/utils/collections.d.ts +12 -0
  858. package/out/utils/collections.d.ts.map +1 -0
  859. package/out/utils/collections.js +16 -0
  860. package/out/utils/collections.js.map +1 -0
  861. package/out/utils/events.d.ts +10 -0
  862. package/out/utils/events.d.ts.map +1 -0
  863. package/out/utils/events.js +10 -0
  864. package/out/utils/events.js.map +1 -0
  865. package/out/utils/geodatabase-archive.d.ts +58 -0
  866. package/out/utils/geodatabase-archive.d.ts.map +1 -0
  867. package/out/utils/geodatabase-archive.js +59 -0
  868. package/out/utils/geodatabase-archive.js.map +1 -0
  869. package/out/utils/index.d.ts +14 -10
  870. package/out/utils/index.d.ts.map +1 -1
  871. package/out/utils/index.js +14 -10
  872. package/out/utils/index.js.map +1 -1
  873. package/out/utils/sleep.d.ts +11 -0
  874. package/out/utils/sleep.d.ts.map +1 -0
  875. package/out/utils/sleep.js +14 -0
  876. package/out/utils/sleep.js.map +1 -0
  877. package/out/utils/sqlite-rows.d.ts +2 -2
  878. package/out/utils/sqlite-rows.d.ts.map +1 -1
  879. package/out/utils/sqlite-rows.js +1 -1
  880. package/out/utils/sqlite-rows.js.map +1 -1
  881. package/out/utils/stream-to-disk.d.ts +65 -0
  882. package/out/utils/stream-to-disk.d.ts.map +1 -0
  883. package/out/utils/stream-to-disk.js +73 -0
  884. package/out/utils/stream-to-disk.js.map +1 -0
  885. package/out/utils/system.d.ts +33 -0
  886. package/out/utils/system.d.ts.map +1 -0
  887. package/out/utils/system.js +46 -0
  888. package/out/utils/system.js.map +1 -0
  889. package/out/utils/time.d.ts +22 -0
  890. package/out/utils/time.d.ts.map +1 -0
  891. package/out/utils/time.js +28 -0
  892. package/out/utils/time.js.map +1 -0
  893. package/out/utils/union-find.d.ts +22 -0
  894. package/out/utils/union-find.d.ts.map +1 -0
  895. package/out/utils/union-find.js +38 -0
  896. package/out/utils/union-find.js.map +1 -0
  897. package/out/vale.d.ts +25 -0
  898. package/out/vale.d.ts.map +1 -0
  899. package/out/vale.js +25 -0
  900. package/out/vale.js.map +1 -0
  901. package/out/workspaces.d.ts +31 -0
  902. package/out/workspaces.d.ts.map +1 -0
  903. package/out/workspaces.js +67 -0
  904. package/out/workspaces.js.map +1 -0
  905. package/package.json +534 -151
  906. package/vitest.config.ts +13 -14
  907. package/coarse-placer/tools/fnv-hash.ts +0 -21
  908. package/coarse-placer/tools/index.ts +0 -23
  909. package/data/whosonfirst/dictionaries/country/name:eng_x_preferred.txt +0 -220
  910. package/data/whosonfirst/dictionaries/country/wof:country.txt +0 -215
  911. package/data/whosonfirst/dictionaries/country/wof:country_alpha3.txt +0 -216
  912. package/data/whosonfirst/dictionaries/dependency/name:eng_x_preferred.txt +0 -42
  913. package/data/whosonfirst/dictionaries/dependency/wof:shortcode.txt +0 -34
  914. package/data/whosonfirst/dictionaries/locality/name:eng_x_preferred.txt +0 -261365
  915. package/data/whosonfirst/dictionaries/locality/name:fra_x_preferred.txt +0 -77631
  916. package/data/whosonfirst/dictionaries/region/abrv:eng_x_preferred.txt +0 -441
  917. package/data/whosonfirst/dictionaries/region/name:eng_x_preferred.txt +0 -4517
  918. package/data/whosonfirst/dictionaries/region/wof:shortcode.txt +0 -839
  919. package/db/schema.ts +0 -30
  920. package/decoder/index.ts +0 -18
  921. package/env/index.ts +0 -44
  922. package/env/load.ts +0 -14
  923. package/env/schema.ts +0 -222
  924. package/errors/index.ts +0 -9
  925. package/fs/node.ts +0 -37
  926. package/fs/utils/index.ts +0 -7
  927. package/index.ts +0 -13
  928. package/kysley/client.ts +0 -30
  929. package/kysley/dialect-config.ts +0 -30
  930. package/kysley/dialect.ts +0 -67
  931. package/kysley/driver.ts +0 -175
  932. package/layers/manifest.ts +0 -210
  933. package/locale/index.ts +0 -9
  934. package/locale/profiles/index.ts +0 -9
  935. package/out/coarse-placer/tools/fnv-hash.d.ts +0 -12
  936. package/out/coarse-placer/tools/fnv-hash.d.ts.map +0 -1
  937. package/out/coarse-placer/tools/fnv-hash.js +0 -19
  938. package/out/coarse-placer/tools/fnv-hash.js.map +0 -1
  939. package/out/db/schema.d.ts +0 -30
  940. package/out/db/schema.d.ts.map +0 -1
  941. package/out/db/schema.js +0 -22
  942. package/out/db/schema.js.map +0 -1
  943. package/out/env/load.d.ts +0 -7
  944. package/out/env/load.d.ts.map +0 -1
  945. package/out/env/load.js +0 -13
  946. package/out/env/load.js.map +0 -1
  947. package/out/errors/index.d.ts +0 -9
  948. package/out/errors/index.d.ts.map +0 -1
  949. package/out/errors/index.js +0 -9
  950. package/out/errors/index.js.map +0 -1
  951. package/out/fs/node.d.ts +0 -19
  952. package/out/fs/node.d.ts.map +0 -1
  953. package/out/fs/node.js +0 -32
  954. package/out/fs/node.js.map +0 -1
  955. package/out/fs/utils/formatters.d.ts.map +0 -1
  956. package/out/fs/utils/formatters.js.map +0 -1
  957. package/out/fs/utils/index.d.ts +0 -7
  958. package/out/fs/utils/index.d.ts.map +0 -1
  959. package/out/fs/utils/index.js +0 -7
  960. package/out/fs/utils/index.js.map +0 -1
  961. package/out/identifiers.d.ts.map +0 -1
  962. package/out/identifiers.js.map +0 -1
  963. package/out/kysley/client.d.ts +0 -19
  964. package/out/kysley/client.d.ts.map +0 -1
  965. package/out/kysley/client.js +0 -25
  966. package/out/kysley/client.js.map +0 -1
  967. package/out/kysley/dialect-config.d.ts +0 -27
  968. package/out/kysley/dialect-config.d.ts.map +0 -1
  969. package/out/kysley/dialect-config.js +0 -7
  970. package/out/kysley/dialect-config.js.map +0 -1
  971. package/out/kysley/dialect.d.ts +0 -39
  972. package/out/kysley/dialect.d.ts.map +0 -1
  973. package/out/kysley/dialect.js +0 -49
  974. package/out/kysley/dialect.js.map +0 -1
  975. package/out/kysley/driver.d.ts +0 -22
  976. package/out/kysley/driver.d.ts.map +0 -1
  977. package/out/kysley/driver.js +0 -114
  978. package/out/kysley/driver.js.map +0 -1
  979. package/out/resources/LocaleIndex.d.ts +0 -53
  980. package/out/resources/LocaleIndex.d.ts.map +0 -1
  981. package/out/resources/LocaleIndex.js +0 -89
  982. package/out/resources/LocaleIndex.js.map +0 -1
  983. package/out/resources/ResourceMapCache.d.ts +0 -40
  984. package/out/resources/ResourceMapCache.d.ts.map +0 -1
  985. package/out/resources/ResourceMapCache.js +0 -75
  986. package/out/resources/ResourceMapCache.js.map +0 -1
  987. package/out/resources/libaddressinput.d.ts +0 -103
  988. package/out/resources/libaddressinput.d.ts.map +0 -1
  989. package/out/resources/libaddressinput.js +0 -30
  990. package/out/resources/libaddressinput.js.map +0 -1
  991. package/out/resources/whosonfirst/DataSourceCache.d.ts +0 -14
  992. package/out/resources/whosonfirst/DataSourceCache.d.ts.map +0 -1
  993. package/out/resources/whosonfirst/DataSourceCache.js +0 -33
  994. package/out/resources/whosonfirst/DataSourceCache.js.map +0 -1
  995. package/out/resources/whosonfirst/loader.d.ts +0 -55
  996. package/out/resources/whosonfirst/loader.d.ts.map +0 -1
  997. package/out/resources/whosonfirst/loader.js +0 -114
  998. package/out/resources/whosonfirst/loader.js.map +0 -1
  999. package/out/resources/whosonfirst/sharded-repo.d.ts.map +0 -1
  1000. package/out/resources/whosonfirst/sharded-repo.js.map +0 -1
  1001. package/out/utils/data-root.d.ts +0 -65
  1002. package/out/utils/data-root.d.ts.map +0 -1
  1003. package/out/utils/data-root.js +0 -95
  1004. package/out/utils/data-root.js.map +0 -1
  1005. package/out/utils/hash.d.ts.map +0 -1
  1006. package/out/utils/hash.js.map +0 -1
  1007. package/out/utils/jsonl.d.ts +0 -36
  1008. package/out/utils/jsonl.d.ts.map +0 -1
  1009. package/out/utils/jsonl.js +0 -61
  1010. package/out/utils/jsonl.js.map +0 -1
  1011. package/out/utils/python-json.d.ts.map +0 -1
  1012. package/out/utils/python-json.js.map +0 -1
  1013. package/out/utils/python-numeric.d.ts.map +0 -1
  1014. package/out/utils/python-numeric.js.map +0 -1
  1015. package/out/utils/python-random.d.ts.map +0 -1
  1016. package/out/utils/python-random.js.map +0 -1
  1017. package/out/utils/repo.d.ts.map +0 -1
  1018. package/out/utils/repo.js +0 -123
  1019. package/out/utils/repo.js.map +0 -1
  1020. package/out/utils/sealed-db.d.ts +0 -47
  1021. package/out/utils/sealed-db.d.ts.map +0 -1
  1022. package/out/utils/sealed-db.js +0 -136
  1023. package/out/utils/sealed-db.js.map +0 -1
  1024. package/out/utils/stats.d.ts +0 -20
  1025. package/out/utils/stats.d.ts.map +0 -1
  1026. package/out/utils/stats.js +0 -31
  1027. package/out/utils/stats.js.map +0 -1
  1028. package/out/vitest.config.d.ts +0 -17
  1029. package/out/vitest.config.d.ts.map +0 -1
  1030. package/out/vitest.config.js +0 -52
  1031. package/out/vitest.config.js.map +0 -1
  1032. package/policy/index.ts +0 -10
  1033. package/resources/LocaleIndex.ts +0 -124
  1034. package/resources/ResourceMapCache.ts +0 -127
  1035. package/resources/index.ts +0 -16
  1036. package/resources/libaddressinput.ts +0 -105
  1037. package/resources/libpostal.ts +0 -187
  1038. package/resources/whosonfirst/DataSourceCache.ts +0 -51
  1039. package/resources/whosonfirst/index.ts +0 -11
  1040. package/resources/whosonfirst/loader.ts +0 -159
  1041. package/resources/whosonfirst/placetypes/index.ts +0 -13
  1042. package/scripting/arguments.ts +0 -38
  1043. package/tokenization/index.ts +0 -9
  1044. package/types/index.ts +0 -10
  1045. package/utils/data-root.ts +0 -105
  1046. package/utils/index.ts +0 -16
  1047. package/utils/jsonl.ts +0 -70
  1048. package/utils/repo.ts +0 -155
  1049. package/utils/sealed-db.ts +0 -159
  1050. package/utils/stats.ts +0 -33
  1051. /package/{api → lib/api}/headless.ts +0 -0
  1052. /package/{collections.ts → lib/collections.ts} +0 -0
  1053. /package/{logging → lib/logging}/utils.ts +0 -0
  1054. /package/{pipeline → lib/pipeline}/span-proposer.ts +0 -0
  1055. /package/{utils/python-random.ts → lib/random.ts} +0 -0
  1056. /package/{resources → lib/resources}/debugging.ts +0 -0
  1057. /package/{resources → lib/resources}/languages/types.gen.ts +0 -0
  1058. /package/{resources → lib/resources}/locale.ts +0 -0
  1059. /package/{resources → lib/resources}/whosonfirst/placetypes/definition.ts +0 -0
  1060. /package/{scripting → lib/scripting}/command.ts +0 -0
  1061. /package/{tokenization → lib/tokenization}/normalizer.ts +0 -0
@@ -24,7 +24,7 @@
24
24
  * couldn't emit — ambiguous names there (FI "Helsinki", PL "Rybnik") landed off-continent in the population-first
25
25
  * candidate gazetteer because no country prior pinned them. They're trained from the Overture per-country addresses
26
26
  * theme (`build-dataset.mjs`), and they're pulled OUT of the Latin off-map OTHER outlier set
27
- * (`build-outlier-latin.mjs`) that used to teach PL/PT/CZ → OTHER. Widening the class set is the soft-prior lever; it
27
+ * (`build-outlier-latin.mjs`) that used to teach PL/PT/CZ → OTHER. Widening the class set is the soft-prior change; it
28
28
  * never hard-filters, so a neighbour confusion (DK↔NO, EE↔LT↔LV) still keeps resolution in-region, off the global-pop
29
29
  * attractors. Adding a class requires a retrain + a fresh artifact — the bundled meta.json carries its own `classes`,
30
30
  * so this constant only drives training (`train.mjs`), not inference.
@@ -35,10 +35,20 @@ export declare const COARSE_CLASSES: readonly ["US", "FR", "GB", "CN", "NL", "IT
35
35
  * tolerable for a linear bag-of-features model; the discriminative n-grams are few.
36
36
  */
37
37
  export declare const FEATURE_DIM: number;
38
+ /**
39
+ * Coarse Unicode-script buckets — strong priors the n-grams refine.
40
+ */
41
+ declare const SCRIPTS: readonly ["latin", "cjk", "cyrillic", "arabic", "greek", "hebrew", "devanagari", "thai", "digit", "other"];
42
+ export type Script = (typeof SCRIPTS)[number];
43
+ /**
44
+ * Coarse Unicode-script bucket of a codepoint — the strong prior the n-grams refine.
45
+ */
46
+ export declare function scriptOf(cp: number): Script;
38
47
  /**
39
48
  * Featurize an address into a deduped list of active feature indices: char 3/4/5-grams over the lowercased,
40
49
  * boundary-marked string + one presence token per Unicode script seen (+ the dominant script). Non-Latin characters are
41
50
  * PRESERVED (lowercasing only touches cased scripts).
42
51
  */
43
52
  export declare function featurize(text: string): number[];
53
+ export {};
44
54
  //# sourceMappingURL=featurize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"featurize.d.ts","sourceRoot":"","sources":["../../coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,4LAiCjB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAU,CAAA;AA+DlC;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAsChD"}
1
+ {"version":3,"file":"featurize.d.ts","sourceRoot":"","sources":["../../lib/coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,4LAiCjB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAU,CAAA;AAElC;;GAEG;AACH,QAAA,MAAM,OAAO,4GAWH,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAE7C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CA2B3C;AASD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAsChD"}
@@ -14,6 +14,7 @@
14
14
  * both is a few hundred KB and runs in microseconds — the "always-resident, places the planet
15
15
  * coarsely" tier.
16
16
  */
17
+ import { hashFNV1a } from "#coarse-placer/fnv-hash";
17
18
  /**
18
19
  * The trained classes: the well-represented corpus countries, the #743 Overture-sourced EU expansion, and `OTHER` — the
19
20
  * explicit off-map class (milestone 2) trained on non-Latin/non-CJK scripts via outlier exposure, so the model learns
@@ -24,7 +25,7 @@
24
25
  * couldn't emit — ambiguous names there (FI "Helsinki", PL "Rybnik") landed off-continent in the population-first
25
26
  * candidate gazetteer because no country prior pinned them. They're trained from the Overture per-country addresses
26
27
  * theme (`build-dataset.mjs`), and they're pulled OUT of the Latin off-map OTHER outlier set
27
- * (`build-outlier-latin.mjs`) that used to teach PL/PT/CZ → OTHER. Widening the class set is the soft-prior lever; it
28
+ * (`build-outlier-latin.mjs`) that used to teach PL/PT/CZ → OTHER. Widening the class set is the soft-prior change; it
28
29
  * never hard-filters, so a neighbour confusion (DK↔NO, EE↔LT↔LV) still keeps resolution in-region, off the global-pop
29
30
  * attractors. Adding a class requires a retrain + a fresh artifact — the bundled meta.json carries its own `classes`,
30
31
  * so this constant only drives training (`train.mjs`), not inference.
@@ -58,8 +59,8 @@ export const COARSE_CLASSES = [
58
59
  "SI",
59
60
  "SK",
60
61
  // #244/#928 AU expansion (2026-07-06): AU was unrepresentable (not in-map) AND its 4-digit postcode
61
- // is format-ambiguous, so no #928 format-prior lever applies — the placer is AU's only country
62
- // signal. Trained from the v0.9.2 G-NAF corpus shard (150k real Australian addresses).
62
+ // is format-ambiguous, so no #928 format-prior change applies — the placer is AU's only country
63
+ // signal. Trained from the v0.9.2 G-NAF corpus extract (150k real Australian addresses).
63
64
  "AU",
64
65
  "OTHER",
65
66
  ];
@@ -83,7 +84,10 @@ const SCRIPTS = [
83
84
  "digit",
84
85
  "other",
85
86
  ];
86
- function scriptOf(cp) {
87
+ /**
88
+ * Coarse Unicode-script bucket of a codepoint — the strong prior the n-grams refine.
89
+ */
90
+ export function scriptOf(cp) {
87
91
  if (cp >= 0x30 && cp <= 0x39)
88
92
  return "digit";
89
93
  if ((cp >= 0x41 && cp <= 0x5a) || (cp >= 0x61 && cp <= 0x7a) || (cp >= 0xc0 && cp <= 0x2_4f))
@@ -111,12 +115,7 @@ function scriptOf(cp) {
111
115
  * FNV-1a → a feature bucket in [0, FEATURE_DIM).
112
116
  */
113
117
  function bucket(s, salt) {
114
- let h = (2_166_136_261 ^ salt) >>> 0;
115
- for (let i = 0; i < s.length; i++) {
116
- h ^= s.charCodeAt(i);
117
- h = Math.imul(h, 16_777_619);
118
- }
119
- return (h >>> 0) % FEATURE_DIM;
118
+ return hashFNV1a(s, (2_166_136_261 ^ salt) >>> 0) % FEATURE_DIM;
120
119
  }
121
120
  /**
122
121
  * Featurize an address into a deduped list of active feature indices: char 3/4/5-grams over the lowercased,
@@ -1 +1 @@
1
- {"version":3,"file":"featurize.js","sourceRoot":"","sources":["../../coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,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,MAAM,MAAM,GAAG,IAAI,IAAI,GAAG,CAAA;IAE1B,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;QAC9C,CAAC;IACF,CAAC;IAED,OAAO,CAAC,GAAG,MAAM,CAAC,CAAA;AACnB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * FNV-1a hashing for the coarse-placer: feature bucketing in {@link featurize} and deterministic
7
+ * dataset ordering/variant selection in the dataset builders. Pure, zero deps — safe for the
8
+ * always-resident inference path and the browser bundle.
9
+ */
10
+ /**
11
+ * FNV-1a → uint32. The default seed is the standard FNV offset basis; {@link featurize} salts it per feature family by
12
+ * XOR before hashing.
13
+ */
14
+ export declare function hashFNV1a(s: string, seed?: number): number;
15
+ //# sourceMappingURL=fnv-hash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fnv-hash.d.ts","sourceRoot":"","sources":["../../lib/coarse-placer/fnv-hash.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,SAAgB,GAAG,MAAM,CASjE"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * FNV-1a hashing for the coarse-placer: feature bucketing in {@link featurize} and deterministic
7
+ * dataset ordering/variant selection in the dataset builders. Pure, zero deps — safe for the
8
+ * always-resident inference path and the browser bundle.
9
+ */
10
+ /**
11
+ * FNV-1a → uint32. The default seed is the standard FNV offset basis; {@link featurize} salts it per feature family by
12
+ * XOR before hashing.
13
+ */
14
+ export function hashFNV1a(s, seed = 2_166_136_261) {
15
+ let h = seed;
16
+ for (let i = 0; i < s.length; i++) {
17
+ h ^= s.charCodeAt(i);
18
+ h = Math.imul(h, 16_777_619);
19
+ }
20
+ return h >>> 0;
21
+ }
22
+ //# sourceMappingURL=fnv-hash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fnv-hash.js","sourceRoot":"","sources":["../../lib/coarse-placer/fnv-hash.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,CAAS,EAAE,IAAI,GAAG,aAAa;IACxD,IAAI,CAAC,GAAG,IAAI,CAAA;IAEZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACnC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;QACpB,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,CAAA;IAC7B,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,CAAA;AACf,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Numerically-stable softmax and log-sum-exp for the coarse-placer's linear model — shared by the
7
+ * always-resident inference ({@link CoarsePlacer.predict}), the SGD trainer, and the open-set
8
+ * score comparison. Loop-based max throughout: a spread over a 65k-feature-adjacent array is a
9
+ * stack hazard, and the loop keeps float evaluation order identical across callers.
10
+ */
11
+ /**
12
+ * The numeric containers the coarse-placer moves logits through.
13
+ */
14
+ export type LogitVector = Float32Array | Float64Array | number[];
15
+ /**
16
+ * Numerically-stable softmax of `logits` written into `out` (same length). The max is subtracted before exponentiation;
17
+ * the sum is accumulated in index order and divided through in a second pass, so a caller replacing an inline softmax
18
+ * sees bit-identical floats.
19
+ */
20
+ export declare function softmaxInto(logits: LogitVector, out: LogitVector): void;
21
+ /**
22
+ * Log-sum-exp of `xs` with the max factored out: `max + log(Σ exp(x − max))`.
23
+ */
24
+ export declare function logsumexp(xs: LogitVector): number;
25
+ //# sourceMappingURL=math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../lib/coarse-placer/math.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,MAAM,EAAE,CAAA;AAEhE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI,CAoBvE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,CAgBjD"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Numerically-stable softmax and log-sum-exp for the coarse-placer's linear model — shared by the
7
+ * always-resident inference ({@link CoarsePlacer.predict}), the SGD trainer, and the open-set
8
+ * score comparison. Loop-based max throughout: a spread over a 65k-feature-adjacent array is a
9
+ * stack hazard, and the loop keeps float evaluation order identical across callers.
10
+ */
11
+ /**
12
+ * Numerically-stable softmax of `logits` written into `out` (same length). The max is subtracted before exponentiation;
13
+ * the sum is accumulated in index order and divided through in a second pass, so a caller replacing an inline softmax
14
+ * sees bit-identical floats.
15
+ */
16
+ export function softmaxInto(logits, out) {
17
+ let max = -Infinity;
18
+ for (const logit of logits) {
19
+ if (logit > max) {
20
+ max = logit;
21
+ }
22
+ }
23
+ let sum = 0;
24
+ for (let i = 0; i < logits.length; i++) {
25
+ const e = Math.exp(logits[i] - max);
26
+ out[i] = e;
27
+ sum += e;
28
+ }
29
+ for (let i = 0; i < out.length; i++) {
30
+ out[i] = out[i] / sum;
31
+ }
32
+ }
33
+ /**
34
+ * Log-sum-exp of `xs` with the max factored out: `max + log(Σ exp(x − max))`.
35
+ */
36
+ export function logsumexp(xs) {
37
+ let max = -Infinity;
38
+ for (const x of xs) {
39
+ if (x > max) {
40
+ max = x;
41
+ }
42
+ }
43
+ let sum = 0;
44
+ for (const x of xs) {
45
+ sum += Math.exp(x - max);
46
+ }
47
+ return max + Math.log(sum);
48
+ }
49
+ //# sourceMappingURL=math.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math.js","sourceRoot":"","sources":["../../lib/coarse-placer/math.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,MAAmB,EAAE,GAAgB;IAChE,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAA;IAEnB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC5B,IAAI,KAAK,GAAG,GAAG,EAAE,CAAC;YACjB,GAAG,GAAG,KAAK,CAAA;QACZ,CAAC;IACF,CAAC;IAED,IAAI,GAAG,GAAG,CAAC,CAAA;IAEX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACxC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAE,GAAG,GAAG,CAAC,CAAA;QACpC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;QACV,GAAG,IAAI,CAAC,CAAA;IACT,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAE,GAAG,GAAG,CAAA;IACvB,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,EAAe;IACxC,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAA;IAEnB,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;YACb,GAAG,GAAG,CAAC,CAAA;QACR,CAAC;IACF,CAAC;IAED,IAAI,GAAG,GAAG,CAAC,CAAA;IAEX,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QACpB,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;IACzB,CAAC;IAED,OAAO,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAC3B,CAAC"}
@@ -11,12 +11,13 @@
11
11
  *
12
12
  * - DuckDB `USING SAMPLE n ROWS` samples the TABLE, then WHERE filters the sample — so we
13
13
  * filter-THEN-sample in a subquery to get a true per-country sample.
14
- * - The corpus val/test shards only carry US/FR/DE, so we draw ALL splits from the rich `train`
15
- * shards and do our OWN per-country 80/10/10 split (dedup on raw → no row crosses splits).
14
+ * - The corpus val/test extracts only carry US/FR/DE, so we draw ALL splits from the rich `train`
15
+ * extracts and do our OWN per-country 80/10/10 split (dedup on raw → no row crosses splits).
16
16
  *
17
17
  * Run: `mailwoman placer build-dataset [--per-country 50000]` Output:
18
18
  * `<repo>/data/coarse-placer/{train,val,test}.jsonl` (rows: {raw, country})
19
19
  */
20
+ import { type PathBuilderLike } from "path-ts";
20
21
  /**
21
22
  * Options for {@linkcode buildDataset}.
22
23
  */
@@ -28,7 +29,7 @@ export interface BuildDatasetOptions {
28
29
  /**
29
30
  * Dataset output dir. Default `<repo>/data/coarse-placer`.
30
31
  */
31
- data?: string;
32
+ data?: PathBuilderLike;
32
33
  }
33
34
  /**
34
35
  * Result of {@linkcode buildDataset}.
@@ -1 +1 @@
1
- {"version":3,"file":"build-dataset.d.ts","sourceRoot":"","sources":["../../../coarse-placer/tools/build-dataset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAcH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACZ;AA6CD;;GAEG;AACH,wBAAsB,YAAY,CACjC,OAAO,GAAE,mBAAwB,EACjC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CA6I7B"}
1
+ {"version":3,"file":"build-dataset.d.ts","sourceRoot":"","sources":["../../../lib/coarse-placer/tools/build-dataset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,KAAK,eAAe,EAAmC,MAAM,SAAS,CAAA;AAc/E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACZ;AA8BD;;GAEG;AACH,wBAAsB,YAAY,CACjC,OAAO,GAAE,mBAAwB,EACjC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CAiJ7B"}
@@ -11,40 +11,30 @@
11
11
  *
12
12
  * - DuckDB `USING SAMPLE n ROWS` samples the TABLE, then WHERE filters the sample — so we
13
13
  * filter-THEN-sample in a subquery to get a true per-country sample.
14
- * - The corpus val/test shards only carry US/FR/DE, so we draw ALL splits from the rich `train`
15
- * shards and do our OWN per-country 80/10/10 split (dedup on raw → no row crosses splits).
14
+ * - The corpus val/test extracts only carry US/FR/DE, so we draw ALL splits from the rich `train`
15
+ * extracts and do our OWN per-country 80/10/10 split (dedup on raw → no row crosses splits).
16
16
  *
17
17
  * Run: `mailwoman placer build-dataset [--per-country 50000]` Output:
18
18
  * `<repo>/data/coarse-placer/{train,val,test}.jsonl` (rows: {raw, country})
19
19
  */
20
- import { mkdirSync, writeFileSync } from "node:fs";
21
- import * as path from "node:path";
22
- import { dataRootPath, repoRootPath } from "#utils";
23
- import { hashFNV1a } from "./fnv-hash.js";
20
+ import { resolvePath, resolvePathBuilder } from "path-ts";
21
+ import { hashFNV1a } from "#coarse-placer/fnv-hash";
22
+ import { COUNTRIES, IN_MAP_EU, NEW_EU } from "#coarse-placer/tools/country-sets";
23
+ import { defaultDataDir } from "#coarse-placer/tools/paths";
24
+ import { errorMessage } from "#errors/schema";
25
+ import { writeLocalTextFile, makeDirectories } from "#fs/writers";
26
+ import { dataRootPath } from "#utils";
24
27
  const VAL_FRAC = 0.1;
25
28
  const TEST_FRAC = 0.1;
26
- const COUNTRIES = ["US", "FR", "GB", "CN", "NL", "IT", "DE", "JP", "ES", "KR", "TW"];
27
- /**
28
- * #743: the EU expansion. The v0.5.0 corpus carries zero rows for these locales, so they're drawn from the Overture
29
- * per-country addresses theme (the same source build-eu-eval-set.ts uses). They were previously OTHER outlier exposure
30
- * (PL/PT/CZ) or simply unrepresentable; here they become first-class in-map countries so the soft country prior can pin
31
- * them.
32
- */
33
- const NEW_EU = ["AT", "BE", "CH", "CZ", "DK", "EE", "FI", "HR", "LT", "LU", "LV", "NO", "PL", "PT", "SI", "SK"];
34
- /**
35
- * #743 in-map dilution fix: DE/ES/IT/NL are already in COUNTRIES (corpus format), but the eu-eval sets + every NEW_EU
36
- * country are Overture format. Without an Overture sample of their OWN, their Overture-format eval rows scatter to the
37
- * Overture-trained neighbours (measured: only 63% of ES eval rows routed ES, ~26% leaked to CH/PT/HR/IT/FR/CZ).
38
- * SUPPLEMENT their corpus rows with an Overture sample so each owns its own format shape; the format then stops being
39
- * discriminative and the model falls back to the linguistic n-grams. GB excluded — its Overture parquet is empty.
40
- */
41
- const IN_MAP_EU = ["DE", "ES", "IT", "NL"];
42
29
  // #743 EU expansion: draw the new in-map countries from the Overture per-country addresses theme.
43
30
  // The raw fields are formatted into native address strings with FORMAT VARIETY (4 templates picked
44
31
  // deterministically per row) so the model can't shortcut on a single template shape — it must use
45
32
  // the actual street-type words + locality n-grams (Finnish "katu/tie", Polish "ul.", Norwegian
46
33
  // "veien") that carry the country signal. Same 80/10/10 dedup split as the corpus path.
47
- function formatEu(street, number, postcode, loc, t) {
34
+ /**
35
+ * Format a (street, number, postcode, locality) quad into a native address string.
36
+ */
37
+ function formatEU(street, number, postcode, loc, t) {
48
38
  const s = String(street).trim();
49
39
  const num = number != null && String(number).trim() !== "" ? ` ${String(number).trim()}` : "";
50
40
  const pc = postcode != null && String(postcode).trim() !== "" ? String(postcode).trim() : "";
@@ -64,14 +54,14 @@ function formatEu(street, number, postcode, loc, t) {
64
54
  */
65
55
  export async function buildDataset(options = {}, report) {
66
56
  const PER = options.perCountry ?? 50_000;
67
- const OUT_DIR = options.data || repoRootPath("data", "coarse-placer");
57
+ const OUT_DIR = resolvePathBuilder(options.data || defaultDataDir());
68
58
  const TRAIN_GLOB = dataRootPath("corpus", "versioned", "v0.5.0", "corpus-v0.5.0", "train", "*.parquet");
69
- // #244/#928 AU expansion: the v0.5.0 pin carries only ~5.9k AU rows; the v0.9.2 G-NAF shard carries
59
+ // #244/#928 AU expansion: the v0.5.0 pin carries only ~5.9k AU rows; the v0.9.2 G-NAF extract carries
70
60
  // 150k real Australian addresses. AU rides the SAME corpus sampling path as COUNTRIES, just from its
71
61
  // own glob — the (country, glob) pairs below unify the two.
72
62
  const AU_GLOB = dataRootPath("corpus", "versioned", "v0.9.2-multilocale-au", "corpus-v0.9.2-multilocale-au", "train", "*.parquet");
73
63
  const OVERTURE_DIR = dataRootPath("overture", "2026-06-17.0");
74
- mkdirSync(OUT_DIR, { recursive: true });
64
+ await makeDirectories(OUT_DIR);
75
65
  // Heavy dep (devDependency — operator tooling), lazy-imported so loading the tools barrel stays cheap.
76
66
  const { DuckDBInstance } = await import("@duckdb/node-api");
77
67
  const duck = await (await DuckDBInstance.create()).connect();
@@ -126,7 +116,7 @@ export async function buildDataset(options = {}, report) {
126
116
  res = await duck.runAndReadAll(q);
127
117
  }
128
118
  catch (error) {
129
- report?.(` ${country}: SKIPPED — ${error.message}`);
119
+ report?.(` ${country}: SKIPPED — ${errorMessage(error)}`);
130
120
  continue;
131
121
  }
132
122
  const seen = new Set();
@@ -137,7 +127,7 @@ export async function buildDataset(options = {}, report) {
137
127
  const loc = r.loc == null ? "" : String(r.loc).trim();
138
128
  if (!loc)
139
129
  continue;
140
- const raw = formatEu(r.street, r.number, r.postcode, loc, hashFNV1a(`${r.street}|${loc}`) % 4);
130
+ const raw = formatEU(r.street, r.number, r.postcode, loc, hashFNV1a(`${r.street}|${loc}`) % 4);
141
131
  if (!raw || seen.has(raw))
142
132
  continue;
143
133
  seen.add(raw);
@@ -163,10 +153,10 @@ export async function buildDataset(options = {}, report) {
163
153
  ];
164
154
  for (const [name, rows] of splits) {
165
155
  rows.sort((a, b) => hashFNV1a(a.raw + a.country) - hashFNV1a(b.raw + b.country)); // deterministic class-interleave
166
- const p = path.join(OUT_DIR, `${name}.jsonl`);
167
- writeFileSync(p, rows.map((r) => JSON.stringify(r)).join("\n") + "\n");
156
+ const p = resolvePath(OUT_DIR, `${name}.jsonl`);
157
+ await writeLocalTextFile(rows.map((r) => JSON.stringify(r)).join("\n") + "\n", p);
168
158
  report?.(`→ ${p} (${rows.length} rows)`);
169
159
  }
170
- return { outDir: OUT_DIR, train: train.length, val: val.length, test: test.length };
160
+ return { outDir: resolvePath(OUT_DIR), train: train.length, val: val.length, test: test.length };
171
161
  }
172
162
  //# sourceMappingURL=build-dataset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-dataset.js","sourceRoot":"","sources":["../../../coarse-placer/tools/build-dataset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AA+BzC,MAAM,QAAQ,GAAG,GAAG,CAAA;AACpB,MAAM,SAAS,GAAG,GAAG,CAAA;AAErB,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC/G;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAE1C,kGAAkG;AAClG,mGAAmG;AACnG,kGAAkG;AAClG,+FAA+F;AAC/F,wFAAwF;AACxF,SAAS,QAAQ,CAAC,MAA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AAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAA;QACjF,MAAM,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,MAAM,QAAQ,CAAC,CAAA;IAC1C,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAA;AACjG,CAAC"}
@@ -15,6 +15,7 @@
15
15
  * Run AFTER build-dataset. Run: `mailwoman placer build-dataset --outliers exposure [--per-lang
16
16
  * 2500]`
17
17
  */
18
+ import { type PathBuilderLike } from "path-ts";
18
19
  /**
19
20
  * Options for {@linkcode buildOutlierExposure}.
20
21
  */
@@ -26,11 +27,11 @@ export interface BuildOutlierExposureOptions {
26
27
  /**
27
28
  * WOF admin SQLite path. Default `$MAILWOMAN_DATA_ROOT/wof/admin-global-priority.db`.
28
29
  */
29
- wof?: string;
30
+ wof?: PathBuilderLike;
30
31
  /**
31
32
  * Dataset dir the OTHER rows append to. Default `<repo>/data/coarse-placer`.
32
33
  */
33
- data?: string;
34
+ data?: PathBuilderLike;
34
35
  }
35
36
  /**
36
37
  * Result of {@linkcode buildOutlierExposure}.
@@ -41,8 +42,5 @@ export interface BuildOutlierExposureResult {
41
42
  */
42
43
  total: number;
43
44
  }
44
- /**
45
- * Coarse-placer non-Latin outlier-exposure builder — see the module doc.
46
- */
47
45
  export declare function buildOutlierExposure(options?: BuildOutlierExposureOptions, report?: (line: string) => void): Promise<BuildOutlierExposureResult>;
48
46
  //# sourceMappingURL=build-outlier-exposure.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-outlier-exposure.d.ts","sourceRoot":"","sources":["../../../coarse-placer/tools/build-outlier-exposure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAeH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACb;AAuFD;;GAEG;AACH,wBAAsB,oBAAoB,CACzC,OAAO,GAAE,2BAAgC,EACzC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC,0BAA0B,CAAC,CAsDrC"}
1
+ {"version":3,"file":"build-outlier-exposure.d.ts","sourceRoot":"","sources":["../../../lib/coarse-placer/tools/build-outlier-exposure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,SAAS,CAAA;AAa3D;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,eAAe,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACb;AA+FD,wBAAsB,oBAAoB,CACzC,OAAO,GAAE,2BAAgC,EACzC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC,0BAA0B,CAAC,CAoDrC"}
@@ -15,11 +15,13 @@
15
15
  * Run AFTER build-dataset. Run: `mailwoman placer build-dataset --outliers exposure [--per-lang
16
16
  * 2500]`
17
17
  */
18
- import { appendFileSync } from "node:fs";
19
- import * as path from "node:path";
20
- import { DatabaseSync } from "node:sqlite";
21
- import { dataRootPath, repoRootPath } from "#utils";
22
- import { hashFNV1a } from "./fnv-hash.js";
18
+ import { DatabaseClient } from "@mailwoman/sqlite/client";
19
+ import { resolvePath } from "path-ts";
20
+ import { scriptOf } from "#coarse-placer/featurize";
21
+ import { hashFNV1a } from "#coarse-placer/fnv-hash";
22
+ import { defaultDataDir } from "#coarse-placer/tools/paths";
23
+ import { appendLocalTextFile } from "#fs/writers";
24
+ import { dataRootPath } from "#utils";
23
25
  /**
24
26
  * Share of a bucket that must be off-map before it is treated as an exposure case rather than noise.
25
27
  */
@@ -72,12 +74,8 @@ function isOffMapScript(s) {
72
74
  continue;
73
75
  // punct/space/digits
74
76
  total++;
75
- const latin = (cp >= 0x41 && cp <= 0x5a) || (cp >= 0x61 && cp <= 0x7a) || (cp >= 0xc0 && cp <= 0x2_4f);
76
- const cjk = (cp >= 0x30_40 && cp <= 0x30_ff) ||
77
- (cp >= 0x4e_00 && cp <= 0x9f_ff) ||
78
- (cp >= 0xac_00 && cp <= 0xd7_af) ||
79
- (cp >= 0x34_00 && cp <= 0x4d_bf);
80
- if (!latin && !cjk && cp > 0x2_ff) {
77
+ const script = scriptOf(cp);
78
+ if (script !== "latin" && script !== "cjk" && cp > 0x2_ff) {
81
79
  off++;
82
80
  }
83
81
  }
@@ -99,14 +97,11 @@ function addressVariant(name, h) {
99
97
  return `${name}, ${num}`;
100
98
  }
101
99
  }
102
- /**
103
- * Coarse-placer non-Latin outlier-exposure builder — see the module doc.
104
- */
105
100
  export async function buildOutlierExposure(options = {}, report) {
106
101
  const PER = options.perLang ?? 2500;
107
102
  const wofPath = options.wof || dataRootPath("wof", "admin-global-priority.db");
108
- const dataDir = options.data || repoRootPath("data", "coarse-placer");
109
- const db = new DatabaseSync(wofPath, { readOnly: true });
103
+ const dataDir = options.data || defaultDataDir();
104
+ using db = new DatabaseClient(wofPath, { readOnly: true });
110
105
  const pool = [];
111
106
  const seen = new Set();
112
107
  for (const lang of OFF_MAP_LANGS) {
@@ -128,7 +123,6 @@ export async function buildOutlierExposure(options = {}, report) {
128
123
  }
129
124
  report?.(` ${lang}: ${kept}`);
130
125
  }
131
- db.close();
132
126
  // Deterministic shuffle (FNV hash sort) + split 80/10/10, append as OTHER.
133
127
  pool.sort((a, b) => hashFNV1a(a) - hashFNV1a(b));
134
128
  const nVal = Math.floor(pool.length * 0.1);
@@ -140,7 +134,7 @@ export async function buildOutlierExposure(options = {}, report) {
140
134
  };
141
135
  for (const [split, names] of Object.entries(splits)) {
142
136
  const lines = names.map((raw) => JSON.stringify({ raw, country: "OTHER" })).join("\n") + "\n";
143
- appendFileSync(path.join(dataDir, `${split}.jsonl`), lines);
137
+ await appendLocalTextFile(lines, resolvePath(dataDir, `${split}.jsonl`));
144
138
  report?.(`appended ${names.length} OTHER → ${split}.jsonl`);
145
139
  }
146
140
  report?.(`total OTHER pool: ${pool.length}`);
@@ -1 +1 @@
1
- {"version":3,"file":"build-outlier-exposure.js","sourceRoot":"","sources":["../../../coarse-placer/tools/build-outlier-exposure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC;;GAEG;AACH,MAAM,gBAAgB,GAAG,GAAG,CAAA;AA8B5B;;GAEG;AACH,MAAM,aAAa,GAAG;IACrB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,QAAQ;IACf,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK,EAAE,gBAAgB;IACvB,KAAK;IACL,KAAK,EAAE,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CAAA;IAED,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACrD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;QAC7F,MAAM,mBAAmB,CAAC,KAAK,EAAE,WAAW,CAAC,OAAO,EAAE,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAA;QACxE,MAAM,EAAE,CAAC,YAAY,KAAK,CAAC,MAAM,YAAY,KAAK,QAAQ,CAAC,CAAA;IAC5D,CAAC;IAED,MAAM,EAAE,CAAC,qBAAqB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;IAE5C,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAA;AAC9B,CAAC"}
@@ -22,6 +22,7 @@
22
22
  * Run: `mailwoman placer build-dataset --outliers latin [--per-country 6000] [--overture
23
23
  * $MAILWOMAN_DATA_ROOT/overture/2026-05-20.0]`
24
24
  */
25
+ import { type PathBuilderLike } from "path-ts";
25
26
  /**
26
27
  * Options for {@linkcode buildOutlierLatin}.
27
28
  */
@@ -33,11 +34,11 @@ export interface BuildOutlierLatinOptions {
33
34
  /**
34
35
  * Overture release dir. Default `$MAILWOMAN_DATA_ROOT/overture/2026-05-20.0`.
35
36
  */
36
- overture?: string;
37
+ overture?: PathBuilderLike;
37
38
  /**
38
39
  * Dataset dir the OTHER rows append to. Default `<repo>/data/coarse-placer`.
39
40
  */
40
- data?: string;
41
+ data?: PathBuilderLike;
41
42
  }
42
43
  /**
43
44
  * Result of {@linkcode buildOutlierLatin}.
@@ -1 +1 @@
1
- {"version":3,"file":"build-outlier-latin.d.ts","sourceRoot":"","sources":["../../../coarse-placer/tools/build-outlier-latin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAqBH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACZ;AAkED;;GAEG;AACH,wBAAsB,iBAAiB,CACtC,OAAO,GAAE,wBAA6B,EACtC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CA2FlC"}
1
+ {"version":3,"file":"build-outlier-latin.d.ts","sourceRoot":"","sources":["../../../lib/coarse-placer/tools/build-outlier-latin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,SAAS,CAAA;AAgB3D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACZ;AA4CD;;GAEG;AACH,wBAAsB,iBAAiB,CACtC,OAAO,GAAE,wBAA6B,EACtC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAoFlC"}