@mailwoman/core 9.1.0 → 9.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 (371) hide show
  1. package/README.md +1 -1
  2. package/api/responses.ts +12 -0
  3. package/coarse-placer/featurize.ts +0 -2
  4. package/coarse-placer/tools/build-dataset.ts +1 -1
  5. package/coarse-placer/tools/build-outlier-exposure.ts +1 -1
  6. package/coarse-placer/tools/build-outlier-latin.ts +13 -7
  7. package/coarse-placer/tools/build-outlier-oa.ts +11 -5
  8. package/coarse-placer/tools/eval-latin-offmap.ts +3 -2
  9. package/coarse-placer/tools/eval-openset.ts +3 -2
  10. package/coarse-placer/tools/eval-quant-compare.ts +3 -2
  11. package/coarse-placer/tools/eval.ts +3 -2
  12. package/coarse-placer/tools/fnv-hash.ts +1 -6
  13. package/coarse-placer/tools/index.ts +1 -1
  14. package/coarse-placer/tools/probe-frontier.ts +3 -2
  15. package/coarse-placer/tools/quantize.ts +2 -2
  16. package/coarse-placer/tools/train.ts +2 -1
  17. package/crypto/node.ts +3 -1
  18. package/data/internal/dictionaries/languages.csv +184 -184
  19. package/data/libpostal/README.md +8 -2
  20. package/db/schema.ts +12 -3
  21. package/decoder/containment.ts +5 -1
  22. package/decoder/index.ts +1 -0
  23. package/decoder/parse-diff.ts +347 -0
  24. package/decoder/proposals-to-tree.ts +1 -1
  25. package/decoder/serialize-json.ts +51 -7
  26. package/decoder/serialize-tuples.ts +7 -1
  27. package/decoder/serialize-xml.ts +1 -1
  28. package/decoder/tree-shape.ts +144 -0
  29. package/decoder/types.ts +8 -0
  30. package/decoder/validate-tree.ts +15 -3
  31. package/env/index.ts +3 -1
  32. package/env/paths.ts +21 -33
  33. package/env/schema.ts +26 -3
  34. package/fs/utils/formatters.ts +107 -0
  35. package/fs/utils/index.ts +7 -0
  36. package/fs/zip.ts +1 -1
  37. package/layers/manifest.ts +56 -15
  38. package/layers/schema.ts +54 -2
  39. package/locale/locale.ts +1 -1
  40. package/locale/registry.ts +1 -1
  41. package/objects.ts +20 -8
  42. package/out/api/responses.d.ts +9 -0
  43. package/out/api/responses.d.ts.map +1 -1
  44. package/out/api/responses.js +11 -0
  45. package/out/api/responses.js.map +1 -1
  46. package/out/coarse-placer/featurize.d.ts +0 -1
  47. package/out/coarse-placer/featurize.d.ts.map +1 -1
  48. package/out/coarse-placer/featurize.js.map +1 -1
  49. package/out/coarse-placer/tools/build-dataset.js +1 -1
  50. package/out/coarse-placer/tools/build-dataset.js.map +1 -1
  51. package/out/coarse-placer/tools/build-outlier-exposure.js +1 -1
  52. package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
  53. package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
  54. package/out/coarse-placer/tools/build-outlier-latin.js +12 -7
  55. package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
  56. package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
  57. package/out/coarse-placer/tools/build-outlier-oa.js +10 -5
  58. package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
  59. package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
  60. package/out/coarse-placer/tools/eval-latin-offmap.js +2 -2
  61. package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
  62. package/out/coarse-placer/tools/eval-openset.d.ts.map +1 -1
  63. package/out/coarse-placer/tools/eval-openset.js +2 -2
  64. package/out/coarse-placer/tools/eval-openset.js.map +1 -1
  65. package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +1 -1
  66. package/out/coarse-placer/tools/eval-quant-compare.js +2 -2
  67. package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
  68. package/out/coarse-placer/tools/eval.d.ts.map +1 -1
  69. package/out/coarse-placer/tools/eval.js +2 -2
  70. package/out/coarse-placer/tools/eval.js.map +1 -1
  71. package/out/coarse-placer/tools/fnv-hash.d.ts +1 -6
  72. package/out/coarse-placer/tools/fnv-hash.d.ts.map +1 -1
  73. package/out/coarse-placer/tools/fnv-hash.js +1 -6
  74. package/out/coarse-placer/tools/fnv-hash.js.map +1 -1
  75. package/out/coarse-placer/tools/index.d.ts +1 -1
  76. package/out/coarse-placer/tools/index.js +1 -1
  77. package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
  78. package/out/coarse-placer/tools/probe-frontier.js +2 -2
  79. package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
  80. package/out/coarse-placer/tools/quantize.js +2 -2
  81. package/out/coarse-placer/tools/quantize.js.map +1 -1
  82. package/out/coarse-placer/tools/train.d.ts.map +1 -1
  83. package/out/coarse-placer/tools/train.js +1 -1
  84. package/out/coarse-placer/tools/train.js.map +1 -1
  85. package/out/crypto/node.d.ts.map +1 -1
  86. package/out/crypto/node.js +2 -1
  87. package/out/crypto/node.js.map +1 -1
  88. package/out/db/schema.d.ts +12 -3
  89. package/out/db/schema.d.ts.map +1 -1
  90. package/out/db/schema.js +6 -0
  91. package/out/db/schema.js.map +1 -1
  92. package/out/decoder/containment.d.ts.map +1 -1
  93. package/out/decoder/containment.js +5 -1
  94. package/out/decoder/containment.js.map +1 -1
  95. package/out/decoder/index.d.ts +1 -0
  96. package/out/decoder/index.d.ts.map +1 -1
  97. package/out/decoder/index.js +1 -0
  98. package/out/decoder/index.js.map +1 -1
  99. package/out/decoder/parse-diff.d.ts +125 -0
  100. package/out/decoder/parse-diff.d.ts.map +1 -0
  101. package/out/decoder/parse-diff.js +219 -0
  102. package/out/decoder/parse-diff.js.map +1 -0
  103. package/out/decoder/proposals-to-tree.js.map +1 -1
  104. package/out/decoder/serialize-json.d.ts +29 -0
  105. package/out/decoder/serialize-json.d.ts.map +1 -1
  106. package/out/decoder/serialize-json.js +20 -4
  107. package/out/decoder/serialize-json.js.map +1 -1
  108. package/out/decoder/serialize-tuples.d.ts +8 -1
  109. package/out/decoder/serialize-tuples.d.ts.map +1 -1
  110. package/out/decoder/serialize-tuples.js +7 -1
  111. package/out/decoder/serialize-tuples.js.map +1 -1
  112. package/out/decoder/serialize-xml.js +1 -1
  113. package/out/decoder/serialize-xml.js.map +1 -1
  114. package/out/decoder/tree-shape.d.ts +84 -0
  115. package/out/decoder/tree-shape.d.ts.map +1 -0
  116. package/out/decoder/tree-shape.js +98 -0
  117. package/out/decoder/tree-shape.js.map +1 -0
  118. package/out/decoder/types.d.ts +11 -0
  119. package/out/decoder/types.d.ts.map +1 -1
  120. package/out/decoder/validate-tree.d.ts +8 -0
  121. package/out/decoder/validate-tree.d.ts.map +1 -1
  122. package/out/decoder/validate-tree.js +4 -3
  123. package/out/decoder/validate-tree.js.map +1 -1
  124. package/out/env/index.d.ts +10 -1
  125. package/out/env/index.d.ts.map +1 -1
  126. package/out/env/index.js +2 -1
  127. package/out/env/index.js.map +1 -1
  128. package/out/env/paths.d.ts +15 -8
  129. package/out/env/paths.d.ts.map +1 -1
  130. package/out/env/paths.js +19 -29
  131. package/out/env/paths.js.map +1 -1
  132. package/out/env/schema.d.ts +9 -1
  133. package/out/env/schema.d.ts.map +1 -1
  134. package/out/env/schema.js +25 -3
  135. package/out/env/schema.js.map +1 -1
  136. package/out/fs/utils/formatters.d.ts +57 -0
  137. package/out/fs/utils/formatters.d.ts.map +1 -0
  138. package/out/fs/utils/formatters.js +79 -0
  139. package/out/fs/utils/formatters.js.map +1 -0
  140. package/out/fs/utils/index.d.ts +7 -0
  141. package/out/fs/utils/index.d.ts.map +1 -0
  142. package/out/fs/utils/index.js +7 -0
  143. package/out/fs/utils/index.js.map +1 -0
  144. package/out/fs/zip.js +1 -1
  145. package/out/fs/zip.js.map +1 -1
  146. package/out/layers/manifest.d.ts +32 -7
  147. package/out/layers/manifest.d.ts.map +1 -1
  148. package/out/layers/manifest.js +31 -6
  149. package/out/layers/manifest.js.map +1 -1
  150. package/out/layers/schema.d.ts +48 -2
  151. package/out/layers/schema.d.ts.map +1 -1
  152. package/out/layers/schema.js +32 -0
  153. package/out/layers/schema.js.map +1 -1
  154. package/out/locale/locale.d.ts +1 -1
  155. package/out/locale/locale.d.ts.map +1 -1
  156. package/out/locale/registry.js +1 -1
  157. package/out/locale/registry.js.map +1 -1
  158. package/out/objects.d.ts +12 -6
  159. package/out/objects.d.ts.map +1 -1
  160. package/out/objects.js +4 -1
  161. package/out/objects.js.map +1 -1
  162. package/out/pipeline/index.d.ts +2 -6
  163. package/out/pipeline/index.d.ts.map +1 -1
  164. package/out/pipeline/index.js +1 -3
  165. package/out/pipeline/index.js.map +1 -1
  166. package/out/pipeline/runtime-pipeline.d.ts +51 -9
  167. package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
  168. package/out/pipeline/runtime-pipeline.js +29 -132
  169. package/out/pipeline/runtime-pipeline.js.map +1 -1
  170. package/out/pipeline/span-proposer.js +1 -1
  171. package/out/pipeline/span-proposer.js.map +1 -1
  172. package/out/pipeline/types.d.ts +22 -14
  173. package/out/pipeline/types.d.ts.map +1 -1
  174. package/out/pipeline/types.js.map +1 -1
  175. package/out/policy/defaults.d.ts +1 -1
  176. package/out/policy/defaults.d.ts.map +1 -1
  177. package/out/policy/defaults.js +1 -1
  178. package/out/policy/defaults.js.map +1 -1
  179. package/out/policy/policy.d.ts +1 -1
  180. package/out/policy/policy.d.ts.map +1 -1
  181. package/out/policy/registry.d.ts +1 -1
  182. package/out/policy/registry.d.ts.map +1 -1
  183. package/out/resolver/coverage-facts.d.ts +89 -0
  184. package/out/resolver/coverage-facts.d.ts.map +1 -0
  185. package/out/resolver/coverage-facts.js +22 -0
  186. package/out/resolver/coverage-facts.js.map +1 -0
  187. package/out/resolver/index.d.ts +2 -1
  188. package/out/resolver/index.d.ts.map +1 -1
  189. package/out/resolver/index.js +1 -0
  190. package/out/resolver/index.js.map +1 -1
  191. package/out/resolver/lookup-types.d.ts +178 -0
  192. package/out/resolver/lookup-types.d.ts.map +1 -0
  193. package/out/resolver/lookup-types.js +11 -0
  194. package/out/resolver/lookup-types.js.map +1 -0
  195. package/out/resolver/placetype-map.d.ts +71 -0
  196. package/out/resolver/placetype-map.d.ts.map +1 -0
  197. package/out/resolver/placetype-map.js +98 -0
  198. package/out/resolver/placetype-map.js.map +1 -0
  199. package/out/resolver/postcode-format.d.ts +38 -0
  200. package/out/resolver/postcode-format.d.ts.map +1 -0
  201. package/out/resolver/postcode-format.js +83 -0
  202. package/out/resolver/postcode-format.js.map +1 -0
  203. package/out/resolver/types.d.ts +271 -297
  204. package/out/resolver/types.d.ts.map +1 -1
  205. package/out/resolver/types.js +4 -97
  206. package/out/resolver/types.js.map +1 -1
  207. package/out/resources/git.d.ts +8 -1
  208. package/out/resources/git.d.ts.map +1 -1
  209. package/out/resources/git.js +4 -3
  210. package/out/resources/git.js.map +1 -1
  211. package/out/resources/languages/types.gen.d.ts +1 -1
  212. package/out/resources/languages/types.gen.d.ts.map +1 -1
  213. package/out/resources/languages/types.gen.js +40 -0
  214. package/out/resources/languages/types.gen.js.map +1 -1
  215. package/out/resources/libpostal.d.ts +2 -2
  216. package/out/resources/libpostal.d.ts.map +1 -1
  217. package/out/resources/libpostal.js +2 -2
  218. package/out/resources/libpostal.js.map +1 -1
  219. package/out/resources/whosonfirst/DataSourceCache.d.ts.map +1 -1
  220. package/out/resources/whosonfirst/DataSourceCache.js.map +1 -1
  221. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +2 -2
  222. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
  223. package/out/resources/whosonfirst/PlacetypeDataSource.js +28 -3
  224. package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
  225. package/out/resources/whosonfirst/loader.d.ts +2 -2
  226. package/out/resources/whosonfirst/loader.d.ts.map +1 -1
  227. package/out/resources/whosonfirst/loader.js.map +1 -1
  228. package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
  229. package/out/resources/whosonfirst/placetypes/Placetype.js +2 -2
  230. package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
  231. package/out/resources/whosonfirst/placetypes/admin.d.ts +9 -1
  232. package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
  233. package/out/resources/whosonfirst/placetypes/admin.js +1 -1
  234. package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
  235. package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
  236. package/out/resources/whosonfirst/placetypes/definition.js +1 -1
  237. package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
  238. package/out/resources/whosonfirst/placetypes/index.d.ts +1 -0
  239. package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
  240. package/out/resources/whosonfirst/placetypes/index.js +1 -0
  241. package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
  242. package/out/resources/whosonfirst/placetypes/specificity.d.ts +65 -0
  243. package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -0
  244. package/out/resources/whosonfirst/placetypes/specificity.js +101 -0
  245. package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -0
  246. package/out/resources/whosonfirst/sharded-repo.d.ts +28 -0
  247. package/out/resources/whosonfirst/sharded-repo.d.ts.map +1 -1
  248. package/out/resources/whosonfirst/sharded-repo.js +46 -2
  249. package/out/resources/whosonfirst/sharded-repo.js.map +1 -1
  250. package/out/scripting/arguments.d.ts +27 -0
  251. package/out/scripting/arguments.d.ts.map +1 -0
  252. package/out/scripting/arguments.js +32 -0
  253. package/out/scripting/arguments.js.map +1 -0
  254. package/out/scripting/command.d.ts +28 -0
  255. package/out/scripting/command.d.ts.map +1 -0
  256. package/out/scripting/command.js +47 -0
  257. package/out/scripting/command.js.map +1 -0
  258. package/out/scripting/index.js +3 -3
  259. package/out/scripting/index.js.map +1 -1
  260. package/out/scripting/utils/index.d.ts +1 -12
  261. package/out/scripting/utils/index.d.ts.map +1 -1
  262. package/out/scripting/utils/index.js +4 -21
  263. package/out/scripting/utils/index.js.map +1 -1
  264. package/out/tools/download-libpostal-resources.d.ts.map +1 -1
  265. package/out/tools/download-libpostal-resources.js +4 -7
  266. package/out/tools/download-libpostal-resources.js.map +1 -1
  267. package/out/tools/download-ssl-address.d.ts +3 -3
  268. package/out/tools/download-ssl-address.d.ts.map +1 -1
  269. package/out/tools/download-ssl-address.js +26 -13
  270. package/out/tools/download-ssl-address.js.map +1 -1
  271. package/out/tools/generate-language-types.d.ts +16 -1
  272. package/out/tools/generate-language-types.d.ts.map +1 -1
  273. package/out/tools/generate-language-types.js +38 -5
  274. package/out/tools/generate-language-types.js.map +1 -1
  275. package/out/tools/index.d.ts +1 -2
  276. package/out/tools/index.d.ts.map +1 -1
  277. package/out/tools/index.js +1 -2
  278. package/out/tools/index.js.map +1 -1
  279. package/out/utils/data-root.d.ts +27 -7
  280. package/out/utils/data-root.d.ts.map +1 -1
  281. package/out/utils/data-root.js +36 -13
  282. package/out/utils/data-root.js.map +1 -1
  283. package/out/utils/hash.d.ts +2 -3
  284. package/out/utils/hash.d.ts.map +1 -1
  285. package/out/utils/hash.js +3 -3
  286. package/out/utils/hash.js.map +1 -1
  287. package/out/utils/index.d.ts +1 -0
  288. package/out/utils/index.d.ts.map +1 -1
  289. package/out/utils/index.js +1 -0
  290. package/out/utils/index.js.map +1 -1
  291. package/out/utils/jsonl.js +1 -1
  292. package/out/utils/jsonl.js.map +1 -1
  293. package/out/utils/repo.d.ts +8 -0
  294. package/out/utils/repo.d.ts.map +1 -1
  295. package/out/utils/repo.js +10 -1
  296. package/out/utils/repo.js.map +1 -1
  297. package/out/utils/sealed-db.d.ts +11 -0
  298. package/out/utils/sealed-db.d.ts.map +1 -1
  299. package/out/utils/sealed-db.js +28 -1
  300. package/out/utils/sealed-db.js.map +1 -1
  301. package/out/utils/sqlite-rows.d.ts +34 -0
  302. package/out/utils/sqlite-rows.d.ts.map +1 -0
  303. package/out/utils/sqlite-rows.js +37 -0
  304. package/out/utils/sqlite-rows.js.map +1 -0
  305. package/out/utils/stats.d.ts +1 -6
  306. package/out/utils/stats.d.ts.map +1 -1
  307. package/out/utils/stats.js +1 -6
  308. package/out/utils/stats.js.map +1 -1
  309. package/package.json +476 -7
  310. package/pipeline/index.ts +12 -14
  311. package/pipeline/runtime-pipeline.ts +29 -183
  312. package/pipeline/span-proposer.ts +1 -1
  313. package/pipeline/types.ts +26 -15
  314. package/policy/defaults.ts +1 -1
  315. package/policy/policy.ts +1 -1
  316. package/policy/registry.ts +1 -1
  317. package/resolver/coverage-facts.ts +102 -0
  318. package/resolver/index.ts +5 -0
  319. package/resolver/lookup-types.ts +174 -0
  320. package/resolver/placetype-map.ts +122 -0
  321. package/resolver/postcode-format.ts +89 -0
  322. package/resolver/types.ts +293 -351
  323. package/resources/git.ts +18 -4
  324. package/resources/languages/types.gen.ts +60 -0
  325. package/resources/libpostal.ts +4 -3
  326. package/resources/whosonfirst/DataSourceCache.ts +2 -1
  327. package/resources/whosonfirst/PlacetypeDataSource.ts +36 -11
  328. package/resources/whosonfirst/loader.ts +3 -2
  329. package/resources/whosonfirst/placetypes/Placetype.ts +3 -2
  330. package/resources/whosonfirst/placetypes/admin.ts +11 -2
  331. package/resources/whosonfirst/placetypes/definition.ts +4 -3
  332. package/resources/whosonfirst/placetypes/index.ts +1 -0
  333. package/resources/whosonfirst/placetypes/specificity.ts +114 -0
  334. package/resources/whosonfirst/sharded-repo.ts +55 -2
  335. package/scripting/arguments.ts +38 -0
  336. package/scripting/command.ts +55 -0
  337. package/scripting/index.ts +3 -3
  338. package/scripting/utils/index.ts +6 -23
  339. package/tools/download-libpostal-resources.ts +4 -7
  340. package/tools/download-ssl-address.ts +28 -12
  341. package/tools/generate-language-types.ts +39 -5
  342. package/tools/index.ts +1 -2
  343. package/utils/data-root.ts +40 -14
  344. package/utils/hash.ts +5 -4
  345. package/utils/index.ts +1 -0
  346. package/utils/jsonl.ts +1 -1
  347. package/utils/repo.ts +12 -1
  348. package/utils/sealed-db.ts +30 -1
  349. package/utils/sqlite-rows.ts +40 -0
  350. package/utils/stats.ts +1 -6
  351. package/data/libpostal/dictionaries/all/chains.txt +0 -504
  352. package/kysley/adapter.ts +0 -29
  353. package/out/kysley/adapter.d.ts +0 -13
  354. package/out/kysley/adapter.d.ts.map +0 -1
  355. package/out/kysley/adapter.js +0 -25
  356. package/out/kysley/adapter.js.map +0 -1
  357. package/out/pipeline/reconcile-lookups.d.ts +0 -39
  358. package/out/pipeline/reconcile-lookups.d.ts.map +0 -1
  359. package/out/pipeline/reconcile-lookups.js +0 -88
  360. package/out/pipeline/reconcile-lookups.js.map +0 -1
  361. package/out/pipeline/reconcile.d.ts +0 -153
  362. package/out/pipeline/reconcile.d.ts.map +0 -1
  363. package/out/pipeline/reconcile.js +0 -388
  364. package/out/pipeline/reconcile.js.map +0 -1
  365. package/out/pipeline/span-logit-aggregation.d.ts +0 -58
  366. package/out/pipeline/span-logit-aggregation.d.ts.map +0 -1
  367. package/out/pipeline/span-logit-aggregation.js +0 -117
  368. package/out/pipeline/span-logit-aggregation.js.map +0 -1
  369. package/pipeline/reconcile-lookups.ts +0 -111
  370. package/pipeline/reconcile.ts +0 -583
  371. package/pipeline/span-logit-aggregation.ts +0 -156
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Tree-SHAPE predicates over an `AddressTree` — the one stack walk behind the pipeline's bare-tree
7
+ * guards and the "lone bare toponym" gates. Two quantifiers cover every consumer:
8
+ *
9
+ * - {@link isBareTreeOf} — every value-bearing node carries the given tag (several allowed). The
10
+ * #912 / #1589 posture guards (`isBareLocalityTree`, `isBarePostcodeTree`) are this with the tag
11
+ * bound.
12
+ * - {@link loneValueBearingNode} — the tree has EXACTLY one value-bearing node. The street-miss
13
+ * fallback and the resolver's bare-country race bind the tag at the call site.
14
+ *
15
+ * The distinction is load-bearing: a two-segment parse can satisfy the first and never the second,
16
+ * and both behaviors are pinned by their consumers' boards.
17
+ */
18
+ import type { ComponentTag } from "../types/component.ts";
19
+ import type { AddressNode, AddressTree } from "./types.ts";
20
+ /**
21
+ * True when every node in the tree either carries `tag` or bears no value — i.e. the only EVIDENCE in the parse is
22
+ * `tag`-shaped. A tag-matching node counts even when its value is empty (the guard asks "did the parser emit this
23
+ * shape", not "is the span non-blank"); any OTHER tag with a non-empty value disqualifies. False for a tree with no
24
+ * `tag` node at all.
25
+ */
26
+ export declare function isBareTreeOf(tree: AddressTree, tag: ComponentTag): boolean;
27
+ /**
28
+ * The tree's single value-bearing node, or null when the tree holds none or more than one. Callers gate on the returned
29
+ * node's `tag` — the quantifier ("this is the WHOLE query") is what this walk answers.
30
+ */
31
+ export declare function loneValueBearingNode(tree: AddressTree): AddressNode | null;
32
+ /**
33
+ * One flattened node, projected for display.
34
+ *
35
+ * A structural copy rather than the `AddressNode` itself: a consumer rendering a span list must not be handed the live
36
+ * node, whose `children` and `metadata` invite a walk it has already been given the result of.
37
+ */
38
+ export interface FlatTreeNode {
39
+ tag: ComponentTag;
40
+ value: string;
41
+ confidence: number;
42
+ start: number;
43
+ end: number;
44
+ /**
45
+ * Where the assertion came from — `rule`, `neural`, `resolver`.
46
+ *
47
+ * Carried because a span that keeps its tag, its text and its confidence while its source moves from `resolver` to
48
+ * `neural` has lost its gazetteer backing, and a projection that drops this reports that span as unchanged.
49
+ */
50
+ source?: string;
51
+ sourceID?: string;
52
+ /**
53
+ * The resolver's answer for this span, when one won.
54
+ *
55
+ * Carried for the same reason `source` is: a projection that keeps only the text and the tag cannot tell a span that
56
+ * resolved to a DIFFERENT place from one that did not move at all, and those are a ranking problem and a non-event
57
+ * respectively. `alternatives` is reduced to its LENGTH — the retrieval breadth is what a consumer reads, and handing
58
+ * over the candidate objects invites a walk this projection exists to have already done.
59
+ */
60
+ placeID?: string;
61
+ lat?: number;
62
+ lon?: number;
63
+ alternatives?: number;
64
+ }
65
+ /**
66
+ * Flatten a tree to its nodes in SOURCE order — sorted by `start`, the same order `decodeAsTuples` means by it.
67
+ *
68
+ * The two copies this replaces (the demo's `demo-helpers.ts` and the `demo-cascade-smoke` mirror of it) relied on
69
+ * TRAVERSAL order instead: depth-first onto a stack, then reversed. That coincides with source order only while every
70
+ * parent's span precedes its children's, and the decoder does not promise it — measured, the two orders disagree on **7
71
+ * of 10** ordinary addresses, always with a child ahead of its parent:
72
+ *
73
+ * Queen Street, Bristol street_suffix@6 before street@0
74
+ * Via Roma, 5, 50123 Firenze, … house_number@10 before street@0
75
+ * 30 St Mary Axe …, London EC3A 8BF postcode@37 before locality@30
76
+ *
77
+ * Sorting is what the tuple projection already does, so this makes a rendered span list and `decodeAsTuples` agree by
78
+ * construction rather than by luck.
79
+ *
80
+ * The smoke test could not import the demo's copy (that would be a `mailwoman` → `docs` project reference, and `docs`
81
+ * already depends on `mailwoman`), which is why a third home was the only way to collapse them.
82
+ */
83
+ export declare function flattenTreeNodes(tree?: AddressTree | null): FlatTreeNode[];
84
+ //# sourceMappingURL=tree-shape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree-shape.d.ts","sourceRoot":"","sources":["../../decoder/tree-shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE1D;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,GAAG,OAAO,CAe1E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,GAAG,IAAI,CAgB1E;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,YAAY,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,YAAY,EAAE,CAwB1E"}
@@ -0,0 +1,98 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Tree-SHAPE predicates over an `AddressTree` — the one stack walk behind the pipeline's bare-tree
7
+ * guards and the "lone bare toponym" gates. Two quantifiers cover every consumer:
8
+ *
9
+ * - {@link isBareTreeOf} — every value-bearing node carries the given tag (several allowed). The
10
+ * #912 / #1589 posture guards (`isBareLocalityTree`, `isBarePostcodeTree`) are this with the tag
11
+ * bound.
12
+ * - {@link loneValueBearingNode} — the tree has EXACTLY one value-bearing node. The street-miss
13
+ * fallback and the resolver's bare-country race bind the tag at the call site.
14
+ *
15
+ * The distinction is load-bearing: a two-segment parse can satisfy the first and never the second,
16
+ * and both behaviors are pinned by their consumers' boards.
17
+ */
18
+ import { flatten } from "./serialize-tuples.js";
19
+ /**
20
+ * True when every node in the tree either carries `tag` or bears no value — i.e. the only EVIDENCE in the parse is
21
+ * `tag`-shaped. A tag-matching node counts even when its value is empty (the guard asks "did the parser emit this
22
+ * shape", not "is the span non-blank"); any OTHER tag with a non-empty value disqualifies. False for a tree with no
23
+ * `tag` node at all.
24
+ */
25
+ export function isBareTreeOf(tree, tag) {
26
+ let sawTag = false;
27
+ const stack = [...tree.roots];
28
+ while (stack.length) {
29
+ const node = stack.pop();
30
+ if (node.tag === tag) {
31
+ sawTag = true;
32
+ }
33
+ else if (node.value.trim() !== "")
34
+ return false;
35
+ stack.push(...node.children);
36
+ }
37
+ return sawTag;
38
+ }
39
+ /**
40
+ * The tree's single value-bearing node, or null when the tree holds none or more than one. Callers gate on the returned
41
+ * node's `tag` — the quantifier ("this is the WHOLE query") is what this walk answers.
42
+ */
43
+ export function loneValueBearingNode(tree) {
44
+ let lone = null;
45
+ const stack = [...tree.roots];
46
+ while (stack.length) {
47
+ const node = stack.pop();
48
+ if (node.value.trim().length) {
49
+ if (lone !== null)
50
+ return null;
51
+ lone = node;
52
+ }
53
+ stack.push(...node.children);
54
+ }
55
+ return lone;
56
+ }
57
+ /**
58
+ * Flatten a tree to its nodes in SOURCE order — sorted by `start`, the same order `decodeAsTuples` means by it.
59
+ *
60
+ * The two copies this replaces (the demo's `demo-helpers.ts` and the `demo-cascade-smoke` mirror of it) relied on
61
+ * TRAVERSAL order instead: depth-first onto a stack, then reversed. That coincides with source order only while every
62
+ * parent's span precedes its children's, and the decoder does not promise it — measured, the two orders disagree on **7
63
+ * of 10** ordinary addresses, always with a child ahead of its parent:
64
+ *
65
+ * Queen Street, Bristol street_suffix@6 before street@0
66
+ * Via Roma, 5, 50123 Firenze, … house_number@10 before street@0
67
+ * 30 St Mary Axe …, London EC3A 8BF postcode@37 before locality@30
68
+ *
69
+ * Sorting is what the tuple projection already does, so this makes a rendered span list and `decodeAsTuples` agree by
70
+ * construction rather than by luck.
71
+ *
72
+ * The smoke test could not import the demo's copy (that would be a `mailwoman` → `docs` project reference, and `docs`
73
+ * already depends on `mailwoman`), which is why a third home was the only way to collapse them.
74
+ */
75
+ export function flattenTreeNodes(tree) {
76
+ if (!tree)
77
+ return [];
78
+ const all = [];
79
+ for (const root of tree.roots) {
80
+ flatten(root, all);
81
+ }
82
+ return all
83
+ .map((node) => ({
84
+ tag: node.tag,
85
+ value: node.value,
86
+ confidence: node.confidence,
87
+ start: node.start,
88
+ end: node.end,
89
+ ...(node.source === undefined ? {} : { source: node.source }),
90
+ ...(node.sourceID === undefined ? {} : { sourceID: node.sourceID }),
91
+ ...(node.placeID === undefined ? {} : { placeID: node.placeID }),
92
+ ...(node.lat === undefined ? {} : { lat: node.lat }),
93
+ ...(node.lon === undefined ? {} : { lon: node.lon }),
94
+ ...(node.alternatives === undefined ? {} : { alternatives: node.alternatives.length }),
95
+ }))
96
+ .toSorted((a, b) => a.start - b.start);
97
+ }
98
+ //# sourceMappingURL=tree-shape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree-shape.js","sourceRoot":"","sources":["../../decoder/tree-shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAG/C;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAiB,EAAE,GAAiB;IAChE,IAAI,MAAM,GAAG,KAAK,CAAA;IAClB,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA;IAE7B,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;QACrB,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAG,CAAA;QAEzB,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;YACtB,MAAM,GAAG,IAAI,CAAA;QACd,CAAC;aAAM,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;YAAE,OAAO,KAAK,CAAA;QAEjD,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC7B,CAAC;IAED,OAAO,MAAM,CAAA;AACd,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAiB;IACrD,IAAI,IAAI,GAAuB,IAAI,CAAA;IACnC,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA;IAE7B,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;QACrB,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAG,CAAA;QAEzB,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,EAA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CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;QACpD,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;QACpD,GAAG,CAAC,IAAI,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;KACtF,CAAC,CAAC;SACF,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;AACxC,CAAC"}
@@ -163,6 +163,17 @@ export interface AddressTree {
163
163
  * pre-classifier (Phase 6+) is the intended source of this value.
164
164
  */
165
165
  system?: AddressSystem;
166
+ /**
167
+ * The parse-time locale-head verdict when it was CONFIDENT (softmax >= the action threshold): the model's own read of
168
+ * which country's addressing this text is shaped like. Absent = under threshold or the head never ran — unknown,
169
+ * never "domestic". Evidence about the TEXT, not a resolved country: the head is a 9-way classifier, so a Chinese
170
+ * address may read GB — right about "not the locale's country", wrong about which. The scope gate this exists for
171
+ * (#1684) therefore only ever DROPS an inferred scope on a mismatch; it never re-points one.
172
+ */
173
+ localeCountry?: {
174
+ country: string;
175
+ confidence: number;
176
+ };
166
177
  }
167
178
  /**
168
179
  * The addressing system a tree was decoded under — selects the containment hierarchy. Western covers
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../decoder/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEnE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,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;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;IACrC;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,YAAY,CAAA;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CACvD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA"}
@@ -24,6 +24,14 @@
24
24
  */
25
25
  import type { ComponentTag } from "../types/component.ts";
26
26
  import type { AddressTree } from "./types.ts";
27
+ /**
28
+ * Tags that cannot stand alone: each is a sub-component of a specific structural anchor (street / locality / venue /
29
+ * postcode). If none of a tag's allowed parents appear anywhere in the tree, the node is an orphan fragment.
30
+ *
31
+ * This set is also the DENOMINATOR of the stranded-dependent check — the classes that CAN fire — so a caller counting
32
+ * which ones do reads it here rather than re-listing the tags, which would drift the moment one is added.
33
+ */
34
+ export declare const STRICT_DEPENDENTS: ReadonlySet<ComponentTag>;
27
35
  export interface TreeViolation {
28
36
  type: "illegal-edge" | "stranded-dependent";
29
37
  tag: ComponentTag;
@@ -1 +1 @@
1
- {"version":3,"file":"validate-tree.d.ts","sourceRoot":"","sources":["../../decoder/validate-tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,YAAY,CAAA;AAmB1D,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,cAAc,GAAG,oBAAoB,CAAA;IAC3C,GAAG,EAAE,YAAY,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,EAAE,aAAa,EAAE,CAAA;CAC3B;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,YAAY,CA2C5D"}
1
+ {"version":3,"file":"validate-tree.d.ts","sourceRoot":"","sources":["../../decoder/validate-tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,YAAY,CAAA;AAE1D;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,YAAY,CAStD,CAAA;AAaF,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,cAAc,GAAG,oBAAoB,CAAA;IAC3C,GAAG,EAAE,YAAY,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,UAAU,EAAE,aAAa,EAAE,CAAA;CAC3B;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,YAAY,CA2C5D"}
@@ -26,8 +26,11 @@ import { containmentFor } from "./containment.js";
26
26
  /**
27
27
  * Tags that cannot stand alone: each is a sub-component of a specific structural anchor (street / locality / venue /
28
28
  * postcode). If none of a tag's allowed parents appear anywhere in the tree, the node is an orphan fragment.
29
+ *
30
+ * This set is also the DENOMINATOR of the stranded-dependent check — the classes that CAN fire — so a caller counting
31
+ * which ones do reads it here rather than re-listing the tags, which would drift the moment one is added.
29
32
  */
30
- const STRICT_DEPENDENTS = new Set([
33
+ export const STRICT_DEPENDENTS = new Set([
31
34
  "street_prefix",
32
35
  "street_prefix_particle",
33
36
  "street_suffix",
@@ -36,8 +39,6 @@ const STRICT_DEPENDENTS = new Set([
36
39
  "dependent_locality",
37
40
  "attention",
38
41
  "cedex",
39
- "intersection_a",
40
- "intersection_b",
41
42
  ]);
42
43
  /**
43
44
  * Validate an `AddressTree`'s structural coherence. See module docstring.
@@ -1 +1 @@
1
- {"version":3,"file":"validate-tree.js","sourceRoot":"","sources":["../../decoder/validate-tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD;;;GAGG;AACH,MAAM,iBAAiB,GAA8B,IAAI,GAAG,CAAe;IAC1E,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,cAAc;IACd,MAAM;IACN,oBAAoB;IACpB,WAAW;IACX,OAAO;IACP,gBAAgB;IAChB,gBAAg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AI,CAAC,yBAAyB;aAC1F,CAAC,CAAA;QACH,CAAC;QAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;IAC5C,CAAC,CAAA;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;IAExC,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,UAAU,EAAE,CAAA;AACtD,CAAC"}
@@ -1,3 +1,4 @@
1
+ export { defaultMailwomanPaths } from "./paths.ts";
1
2
  /**
2
3
  * Publicly accessible environment — non-secret operational config (DB paths, batch tuning, `NODE_ENV`). Safe to log. A
3
4
  * live, typed view over `process.env` layered on an optional `.env`; only keys in {@link PublicEnvSchema} appear.
@@ -8,6 +9,13 @@ export declare const $public: {
8
9
  NODE_ENV: "test" | "development" | "production";
9
10
  CI: boolean;
10
11
  MAILWOMAN_BATCH_MAX: number;
12
+ MAILWOMAN_DATA_ROOT: string;
13
+ MAILWOMAN_CONFIG_ROOT: string;
14
+ MAILWOMAN_CACHE_ROOT: string;
15
+ MAILWOMAN_LOG_ROOT: string;
16
+ MAILWOMAN_TEMP_ROOT: string;
17
+ GITHUB_ACTIONS: boolean;
18
+ MW_LOCALE?: string | undefined;
11
19
  MAILWOMAN_WOF_DB?: string | undefined;
12
20
  MAILWOMAN_WOF_ADMIN_DB?: string | undefined;
13
21
  MAILWOMAN_WOF_POLYGONS_DB?: string | undefined;
@@ -16,9 +24,9 @@ export declare const $public: {
16
24
  MAILWOMAN_FST_BIN?: string | undefined;
17
25
  MAILWOMAN_MODEL_CARD?: string | undefined;
18
26
  MAILWOMAN_COARSE_PLACER_DIR?: string | undefined;
27
+ MAILWOMAN_TILES?: string | undefined;
19
28
  MAILWOMAN_INTRA_OP_THREADS?: number | undefined;
20
29
  WOF_DATA_DIR?: string | undefined;
21
- MAILWOMAN_DATA_ROOT?: string | undefined;
22
30
  OUT_ROOT?: string | undefined;
23
31
  NAD_MODE?: string | undefined;
24
32
  NAD_URL?: string | undefined;
@@ -65,6 +73,7 @@ export declare const $public: {
65
73
  MW_DUMP_REGRESSIONS?: string | undefined;
66
74
  PROBE_N?: string | undefined;
67
75
  DEBUG?: string | undefined;
76
+ NO_COLOR?: string | undefined;
68
77
  };
69
78
  /**
70
79
  * Privately accessible environment — secrets and credentials (HF token, API keys, rclone S3 creds). Do NOT log. A live,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../env/index.ts"],"names":[],"mappings":"AA2BA;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2B,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../env/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAuBlD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2B,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;CAA4B,CAAA"}
package/out/env/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { loadEnvFile } from "./load.js";
2
2
  import { cwdPathBuilder } from "./paths.js";
3
3
  import { PrivateEnvSchema, PublicEnvSchema } from "./schema.js";
4
+ export { defaultMailwomanPaths } from "./paths.js";
4
5
  // The optional `.env` is read once (it can't change mid-process); the real environment is layered on top
5
6
  // LIVE. `process.env` can change during a process — a test stubbing a var, a late setter — and `$public` /
6
7
  // `$private` must reflect it, exactly like `process.env` itself. So each key is a getter that re-parses the
@@ -12,7 +13,7 @@ function liveEnv(schema) {
12
13
  for (const key of Object.keys(schema.shape)) {
13
14
  Object.defineProperty(view, key, {
14
15
  enumerable: true,
15
- // oxlint-disable-next-line sister-software/no-process-globals
16
+ // oxlint-disable-next-line sister-software/no-process-globals -- this module is the typed process.env boundary
16
17
  get: () => schema.parse({ ...dotEnv, ...process.env })[key],
17
18
  });
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../env/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/D,yGAAyG;AACzG,2GAA2G;AAC3G,4GAA4G;AAC5G,8GAA8G;AAC9G,+EAA+E;AAC/E,MAAM,MAAM,GAAG,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AAElD,SAAS,OAAO,CAA8B,MAA0B;IACvE,MAAM,IAAI,GAAG,EAAiC,CAAA;IAE9C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7C,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE;YAChC,UAAU,EAAE,IAAI;YAChB,8DAA8D;YAC9D,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,GAAwC,CAAC;SAChG,CAAC,CAAA;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AAE/C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../env/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAElD,yGAAyG;AACzG,2GAA2G;AAC3G,4GAA4G;AAC5G,8GAA8G;AAC9G,+EAA+E;AAC/E,MAAM,MAAM,GAAG,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AAElD,SAAS,OAAO,CAA8B,MAA0B;IACvE,MAAM,IAAI,GAAG,EAAiC,CAAA;IAE9C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7C,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE;YAChC,UAAU,EAAE,IAAI;YAChB,+GAA+G;YAC/G,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,GAAwC,CAAC;SAChG,CAAC,CAAA;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;AAE/C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA"}
@@ -1,13 +1,20 @@
1
1
  /**
2
- * Resolve a path relative to the directory Claude Code is running in (cwd).
3
- *
4
- * @param paths Path segments to join onto cwd.
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
5
  */
6
- export declare function cwdPathBuilder(...paths: string[]): string;
7
6
  /**
8
- * Find all `.env` files from the current working directory up to the home directory or repo root.
9
- *
10
- * @returns An array of `.env` file paths, ordered from shallowest to deepest (cwd last).
7
+ * Platform-native filesystem defaults used by the typed environment schema.
8
+ */
9
+ export declare const defaultMailwomanPaths: {
10
+ readonly data: `/{$CWD}/${string}`;
11
+ readonly config: `/{$CWD}/${string}`;
12
+ readonly cache: `/{$CWD}/${string}`;
13
+ readonly log: `/{$CWD}/${string}`;
14
+ readonly temp: `/{$CWD}/${string}`;
15
+ };
16
+ /**
17
+ * Resolve a path relative to the current working directory.
11
18
  */
12
- export declare function cwdEnvPaths(): string[];
19
+ export declare function cwdPathBuilder(...paths: string[]): string;
13
20
  //# sourceMappingURL=paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../env/paths.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEzD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,MAAM,EAAE,CAqBtC"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../env/paths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAA;AAEV;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEzD"}
package/out/env/paths.js CHANGED
@@ -1,35 +1,25 @@
1
- import { existsSync } from "node:fs";
2
- import { homedir } from "node:os";
3
- import { dirname, resolve } from "node:path";
4
1
  /**
5
- * Resolve a path relative to the directory Claude Code is running in (cwd).
6
- *
7
- * @param paths Path segments to join onto cwd.
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
8
5
  */
9
- export function cwdPathBuilder(...paths) {
10
- return resolve(process.cwd(), ...paths);
11
- }
6
+ import envPaths from "env-paths";
7
+ import { resolvePath } from "path-ts";
8
+ const platformPaths = envPaths("mailwoman", { suffix: "" });
12
9
  /**
13
- * Find all `.env` files from the current working directory up to the home directory or repo root.
14
- *
15
- * @returns An array of `.env` file paths, ordered from shallowest to deepest (cwd last).
10
+ * Platform-native filesystem defaults used by the typed environment schema.
16
11
  */
17
- export function cwdEnvPaths() {
18
- const found = [];
19
- let dir = process.cwd();
20
- const home = homedir();
21
- while (true) {
22
- const candidate = resolve(dir, ".env");
23
- if (existsSync(candidate)) {
24
- found.push(candidate);
25
- }
26
- const parent = dirname(dir);
27
- const atRepoRoot = existsSync(resolve(dir, ".git"));
28
- if (atRepoRoot || dir === home || parent === dir)
29
- break;
30
- dir = parent;
31
- }
32
- // `found` is deepest-first (cwd first); reverse so cwd is applied last and wins.
33
- return found.toReversed();
12
+ export const defaultMailwomanPaths = {
13
+ data: resolvePath(platformPaths.data),
14
+ config: resolvePath(platformPaths.config),
15
+ cache: resolvePath(platformPaths.cache),
16
+ log: resolvePath(platformPaths.log),
17
+ temp: resolvePath(platformPaths.temp),
18
+ };
19
+ /**
20
+ * Resolve a path relative to the current working directory.
21
+ */
22
+ export function cwdPathBuilder(...paths) {
23
+ return resolvePath(process.cwd(), ...paths);
34
24
  }
35
25
  //# sourceMappingURL=paths.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../env/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAE5C;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,GAAG,KA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EAAE,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC;IACvC,GAAG,EAAE,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC;IACnC,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC;CAC5B,CAAA;AAEV;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAG,KAAe;IAChD,OAAO,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC,CAAA;AAC5C,CAAC"}
@@ -10,6 +10,7 @@ export declare const PublicEnvSchema: z.ZodObject<{
10
10
  production: "production";
11
11
  }>>;
12
12
  CI: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
13
+ MW_LOCALE: z.ZodOptional<z.ZodString>;
13
14
  MAILWOMAN_WOF_DB: z.ZodOptional<z.ZodString>;
14
15
  MAILWOMAN_WOF_ADMIN_DB: z.ZodOptional<z.ZodString>;
15
16
  MAILWOMAN_WOF_POLYGONS_DB: z.ZodOptional<z.ZodString>;
@@ -18,10 +19,15 @@ export declare const PublicEnvSchema: z.ZodObject<{
18
19
  MAILWOMAN_FST_BIN: z.ZodOptional<z.ZodString>;
19
20
  MAILWOMAN_MODEL_CARD: z.ZodOptional<z.ZodString>;
20
21
  MAILWOMAN_COARSE_PLACER_DIR: z.ZodOptional<z.ZodString>;
22
+ MAILWOMAN_TILES: z.ZodOptional<z.ZodString>;
21
23
  MAILWOMAN_INTRA_OP_THREADS: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
22
24
  WOF_DATA_DIR: z.ZodOptional<z.ZodString>;
23
25
  MAILWOMAN_BATCH_MAX: z.ZodPreprocess<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
24
- MAILWOMAN_DATA_ROOT: z.ZodOptional<z.ZodString>;
26
+ MAILWOMAN_DATA_ROOT: z.ZodDefault<z.ZodString>;
27
+ MAILWOMAN_CONFIG_ROOT: z.ZodDefault<z.ZodString>;
28
+ MAILWOMAN_CACHE_ROOT: z.ZodDefault<z.ZodString>;
29
+ MAILWOMAN_LOG_ROOT: z.ZodDefault<z.ZodString>;
30
+ MAILWOMAN_TEMP_ROOT: z.ZodDefault<z.ZodString>;
25
31
  OUT_ROOT: z.ZodOptional<z.ZodString>;
26
32
  NAD_MODE: z.ZodOptional<z.ZodString>;
27
33
  NAD_URL: z.ZodOptional<z.ZodString>;
@@ -46,6 +52,7 @@ export declare const PublicEnvSchema: z.ZodObject<{
46
52
  MAILWOMAN_SKIP_WEIGHTS_COPY: z.ZodOptional<z.ZodString>;
47
53
  MAILWOMAN_SKIP_WEIGHTS: z.ZodOptional<z.ZodString>;
48
54
  MAILWOMAN_NPM_PROVENANCE: z.ZodOptional<z.ZodString>;
55
+ GITHUB_ACTIONS: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
49
56
  RELEASE_IT_WORKSPACES_PATH_TO_WORKSPACE: z.ZodOptional<z.ZodString>;
50
57
  RELEASE_IT_WORKSPACES_TAG: z.ZodOptional<z.ZodString>;
51
58
  RELEASE_IT_WORKSPACES_ACCESS: z.ZodOptional<z.ZodString>;
@@ -68,6 +75,7 @@ export declare const PublicEnvSchema: z.ZodObject<{
68
75
  MW_DUMP_REGRESSIONS: z.ZodOptional<z.ZodString>;
69
76
  PROBE_N: z.ZodOptional<z.ZodString>;
70
77
  DEBUG: z.ZodOptional<z.ZodString>;
78
+ NO_COLOR: z.ZodOptional<z.ZodString>;
71
79
  }, z.core.$strip>;
72
80
  /**
73
81
  * Secrets and credentials, exposed via `$private`. Never log these. Add a key here to make it available; anything not
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../env/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiBvB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0H1B,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;iBAiD3B,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../env/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmBvB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+I1B,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;iBAiD3B,CAAA"}
package/out/env/schema.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { defaultMailwomanPaths } from "./paths.js";
2
3
  /**
3
4
  * Wrap a coerced schema so a BLANK value means the same as an absent one.
4
5
  *
@@ -21,6 +22,10 @@ export const PublicEnvSchema = z.object({
21
22
  // `.catch` (not `.default`) so an unknown value never throws — vitest sets NODE_ENV=test, CI may set others.
22
23
  NODE_ENV: z.enum(["development", "production", "test"]).catch("development"),
23
24
  CI: z.coerce.boolean().default(false),
25
+ /**
26
+ * Operator locale override used when a request supplies no locale. Safe to expose in diagnostics.
27
+ */
28
+ MW_LOCALE: z.string().min(1).optional(),
24
29
  // Gazetteer / resolver database paths. CLI flags (`--resolve-db`, …) override these at the call site.
25
30
  MAILWOMAN_WOF_DB: z.string().optional(),
26
31
  MAILWOMAN_WOF_ADMIN_DB: z.string().optional(),
@@ -30,6 +35,8 @@ export const PublicEnvSchema = z.object({
30
35
  MAILWOMAN_FST_BIN: z.string().optional(),
31
36
  MAILWOMAN_MODEL_CARD: z.string().optional(),
32
37
  MAILWOMAN_COARSE_PLACER_DIR: z.string().optional(),
38
+ // PMTiles archive for the geocode --debug map pane; --tiles outranks it at the call site.
39
+ MAILWOMAN_TILES: z.string().optional(),
33
40
  // ONNX intra-op thread cap. Deployment-shaped rather than code-shaped: the right value depends on how many
34
41
  // mailwoman processes share the host, which the library cannot know. See DEFAULT_INTRA_OP_THREADS.
35
42
  //
@@ -44,8 +51,12 @@ export const PublicEnvSchema = z.object({
44
51
  // threads (see `mailwoman/geocode-stream.ts`) are the only lever that moves this in Node.
45
52
  // Receipts: `docs/engineering/reference/performance.mdx`.
46
53
  MAILWOMAN_BATCH_MAX: blankAsAbsent(z.coerce.number().int().positive().default(1000)),
47
- // The gazetteer/model data root (`core/utils/data-root.ts`, `scripts/copy-weights.ts`).
48
- MAILWOMAN_DATA_ROOT: z.string().optional(),
54
+ // Platform-native application directories. Environment values override these defaults.
55
+ MAILWOMAN_DATA_ROOT: z.string().default(defaultMailwomanPaths.data),
56
+ MAILWOMAN_CONFIG_ROOT: z.string().default(defaultMailwomanPaths.config),
57
+ MAILWOMAN_CACHE_ROOT: z.string().default(defaultMailwomanPaths.cache),
58
+ MAILWOMAN_LOG_ROOT: z.string().default(defaultMailwomanPaths.log),
59
+ MAILWOMAN_TEMP_ROOT: z.string().default(defaultMailwomanPaths.temp),
49
60
  // Corpus source-fetch tools (`corpus/src/tools/fetch/*` — env knobs are now command flags; these remain for compat). Callers do their own numeric/boolean parsing on these,
50
61
  // so they stay raw strings — the schema only gates which keys surface, not how they're coerced.
51
62
  OUT_ROOT: z.string().optional(),
@@ -74,12 +85,21 @@ export const PublicEnvSchema = z.object({
74
85
  MAILWOMAN_SKIP_WEIGHTS_COPY: z.string().optional(),
75
86
  // Release-it publish flow (`scripts/publish-workspace.ts`). The OTP is a secret — see `$private`.
76
87
  MAILWOMAN_SKIP_WEIGHTS: z.string().optional(),
88
+ /**
89
+ * Set to `0` to publish WITHOUT a sigstore provenance attestation. Provenance is otherwise on by default under GitHub
90
+ * Actions — this exists so a release blocked by a sigstore or registry outage can still ship.
91
+ */
77
92
  MAILWOMAN_NPM_PROVENANCE: z.string().optional(),
93
+ /**
94
+ * Set by GitHub Actions itself. npm can only mint a provenance attestation from a CI provider it supports, so this is
95
+ * the predicate for `--provenance` rather than the generic {@link CI} flag.
96
+ */
97
+ GITHUB_ACTIONS: z.coerce.boolean().default(false),
78
98
  RELEASE_IT_WORKSPACES_PATH_TO_WORKSPACE: z.string().optional(),
79
99
  RELEASE_IT_WORKSPACES_TAG: z.string().optional(),
80
100
  RELEASE_IT_WORKSPACES_ACCESS: z.string().optional(),
81
101
  RELEASE_IT_WORKSPACES_DRY_RUN: z.string().optional(),
82
- // Demo resolver (`docs/plugins/demo-assets/resolve.ts`) + docs driver.
102
+ // Demo artifact staging (`docs/plugins/demo-assets/artifacts.ts`) + docs driver.
83
103
  PLAYPEN_WOF_ADMIN_DB: z.string().optional(),
84
104
  PLAYPEN_WOF_POSTCODE_DB: z.string().optional(),
85
105
  SLIM_COUNTRIES: z.string().optional(),
@@ -129,6 +149,8 @@ export const PublicEnvSchema = z.object({
129
149
  MW_DUMP_REGRESSIONS: z.string().optional(),
130
150
  PROBE_N: z.string().optional(),
131
151
  DEBUG: z.string().optional(),
152
+ // The informal-standard color kill switch (no-color.org). chalk/Ink honor it on their own; declared here because the debug view's map pane emits raw SGR and must consult it itself — the schema strips unlisted vars.
153
+ NO_COLOR: z.string().optional(),
132
154
  });
133
155
  /**
134
156
  * Secrets and credentials, exposed via `$private`. Never log these. Add a key here to make it available; anything not
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../env/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;;;;;GAUG;AACH,SAAS,aAAa,CAAsB,KAAQ;IACnD,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;AAC9D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC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