@mailwoman/core 9.3.0 → 10.0.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 (441) hide show
  1. package/lib/coarse-placer/tools/{build-dataset.ts → build/dataset.ts} +2 -1
  2. package/lib/coarse-placer/tools/{build-outlier-latin.ts → build/outlier/latin.ts} +4 -3
  3. package/lib/coarse-placer/tools/{eval-openset.ts → eval/openset.ts} +11 -7
  4. package/lib/coarse-placer/tools/{eval-quant-compare.ts → eval/quant-compare.ts} +2 -1
  5. package/lib/coarse-placer/tools/eval.ts +2 -2
  6. package/lib/coarse-placer/tools/index.ts +7 -7
  7. package/lib/coarse-placer/tools/train.ts +4 -6
  8. package/lib/decoder/build-tree.ts +2 -1
  9. package/lib/decoder/containment.ts +2 -1
  10. package/lib/decoder/index.ts +5 -5
  11. package/lib/decoder/parse-diff.ts +1 -1
  12. package/lib/decoder/proposals-to-tree.ts +3 -1
  13. package/lib/decoder/{serialize-json.ts → serialize/json.ts} +3 -2
  14. package/lib/decoder/{serialize-tuples.ts → serialize/tuples.ts} +2 -1
  15. package/lib/decoder/{tree-shape.ts → tree/shape.ts} +7 -10
  16. package/lib/decoder/types.ts +1 -3
  17. package/lib/decoder/unknown-spans.ts +1 -1
  18. package/lib/decoder/validate-tree.ts +2 -1
  19. package/lib/fs/readers/stat.ts +244 -0
  20. package/lib/fs/readers.ts +38 -270
  21. package/lib/fs/streams.ts +58 -0
  22. package/lib/fs/writers.ts +5 -5
  23. package/lib/fs/zip.ts +64 -8
  24. package/lib/git.ts +26 -0
  25. package/lib/layers/coverage.ts +3 -2
  26. package/lib/layers/manifest.ts +2 -4
  27. package/lib/layers/schema.ts +0 -1
  28. package/lib/license/configured.ts +2 -2
  29. package/lib/license/docs-site.ts +1 -15
  30. package/lib/license/index.ts +2 -2
  31. package/lib/license/obligations.ts +4 -1
  32. package/lib/license/stamp.ts +1 -1
  33. package/lib/license/status.ts +1 -1
  34. package/lib/locale/locale.ts +2 -1
  35. package/lib/locale/registry.ts +2 -1
  36. package/lib/module/resolve-from.ts +16 -4
  37. package/lib/objects.ts +9 -1
  38. package/lib/overture-pins.ts +24 -0
  39. package/lib/pipeline/client-result.ts +82 -0
  40. package/lib/pipeline/index.ts +1 -1
  41. package/lib/pipeline/preferences.ts +13 -0
  42. package/lib/pipeline/result.ts +84 -0
  43. package/lib/pipeline/runtime-pipeline.ts +10 -17
  44. package/lib/pipeline/types.ts +28 -88
  45. package/lib/policy/defaults.ts +2 -1
  46. package/lib/policy/policy.ts +3 -1
  47. package/lib/policy/registry.ts +3 -1
  48. package/lib/process.ts +3 -1
  49. package/lib/resolver/authoritative-provider.ts +1 -1
  50. package/lib/resolver/index.ts +1 -8
  51. package/lib/resolver/lookup-types.ts +8 -0
  52. package/lib/resolver/synthetic-id-ranges.ts +83 -0
  53. package/lib/resolver/types.ts +2 -9
  54. package/lib/resources/whosonfirst/placetypes/Placetype.ts +7 -6
  55. package/lib/scripting/arguments.ts +34 -0
  56. package/lib/scripting/utils/index.ts +1 -1
  57. package/lib/strings/case.ts +13 -2
  58. package/lib/strings/format.ts +15 -0
  59. package/lib/tokenization/Graph.ts +3 -4
  60. package/lib/tools/{download-libpostal-resources.ts → download/libpostal-resources.ts} +3 -2
  61. package/lib/tools/generate-language-types.ts +3 -4
  62. package/lib/tools/index.ts +2 -2
  63. package/lib/types/classifier.ts +2 -1
  64. package/lib/types/index.ts +0 -1
  65. package/lib/types/mapping.ts +2 -1
  66. package/lib/workspaces.ts +104 -0
  67. package/out/api/APIClient.d.ts.map +1 -1
  68. package/out/api/arcgis.d.ts.map +1 -1
  69. package/out/api/defaults.d.ts.map +1 -1
  70. package/out/api/headless.d.ts.map +1 -1
  71. package/out/api/ogc.d.ts.map +1 -1
  72. package/out/api/paced-client.js.map +1 -1
  73. package/out/api/pacer.d.ts.map +1 -1
  74. package/out/api/pacer.js.map +1 -1
  75. package/out/api/responses.d.ts.map +1 -1
  76. package/out/api/{test-clocks.d.ts → test/clocks.d.ts} +1 -1
  77. package/out/api/test/clocks.d.ts.map +1 -0
  78. package/out/api/{test-clocks.js → test/clocks.js} +1 -1
  79. package/out/api/test/clocks.js.map +1 -0
  80. package/out/api/{test-transport.d.ts → test/transport.d.ts} +1 -1
  81. package/out/api/test/transport.d.ts.map +1 -0
  82. package/out/api/{test-transport.js → test/transport.js} +1 -1
  83. package/out/api/test/transport.js.map +1 -0
  84. package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
  85. package/out/coarse-placer/coarse-placer.js.map +1 -1
  86. package/out/coarse-placer/featurize.d.ts.map +1 -1
  87. package/out/coarse-placer/tools/{build-dataset.d.ts → build/dataset.d.ts} +1 -1
  88. package/out/coarse-placer/tools/build/dataset.d.ts.map +1 -0
  89. package/out/coarse-placer/tools/{build-dataset.js → build/dataset.js} +3 -2
  90. package/out/coarse-placer/tools/build/dataset.js.map +1 -0
  91. package/out/coarse-placer/tools/{build-outlier-exposure.d.ts → build/outlier/exposure.d.ts} +1 -1
  92. package/out/coarse-placer/tools/build/outlier/exposure.d.ts.map +1 -0
  93. package/out/coarse-placer/tools/{build-outlier-exposure.js → build/outlier/exposure.js} +1 -1
  94. package/out/coarse-placer/tools/build/outlier/exposure.js.map +1 -0
  95. package/out/coarse-placer/tools/{build-outlier-latin.d.ts → build/outlier/latin.d.ts} +3 -3
  96. package/out/coarse-placer/tools/build/outlier/latin.d.ts.map +1 -0
  97. package/out/coarse-placer/tools/{build-outlier-latin.js → build/outlier/latin.js} +4 -3
  98. package/out/coarse-placer/tools/build/outlier/latin.js.map +1 -0
  99. package/out/coarse-placer/tools/{build-outlier-oa.d.ts → build/outlier/oa.d.ts} +1 -1
  100. package/out/coarse-placer/tools/build/outlier/oa.d.ts.map +1 -0
  101. package/out/coarse-placer/tools/{build-outlier-oa.js → build/outlier/oa.js} +1 -1
  102. package/out/coarse-placer/tools/build/outlier/oa.js.map +1 -0
  103. package/out/coarse-placer/tools/country-sets.d.ts.map +1 -1
  104. package/out/coarse-placer/tools/{eval-latin-offmap.d.ts → eval/latin-offmap.d.ts} +1 -1
  105. package/out/coarse-placer/tools/eval/latin-offmap.d.ts.map +1 -0
  106. package/out/coarse-placer/tools/{eval-latin-offmap.js → eval/latin-offmap.js} +1 -1
  107. package/out/coarse-placer/tools/eval/latin-offmap.js.map +1 -0
  108. package/out/coarse-placer/tools/{eval-openset.d.ts → eval/openset.d.ts} +1 -1
  109. package/out/coarse-placer/tools/eval/openset.d.ts.map +1 -0
  110. package/out/coarse-placer/tools/{eval-openset.js → eval/openset.js} +10 -7
  111. package/out/coarse-placer/tools/eval/openset.js.map +1 -0
  112. package/out/coarse-placer/tools/{eval-quant-compare.d.ts → eval/quant-compare.d.ts} +1 -1
  113. package/out/coarse-placer/tools/eval/quant-compare.d.ts.map +1 -0
  114. package/out/coarse-placer/tools/{eval-quant-compare.js → eval/quant-compare.js} +2 -2
  115. package/out/coarse-placer/tools/eval/quant-compare.js.map +1 -0
  116. package/out/coarse-placer/tools/eval.js +2 -2
  117. package/out/coarse-placer/tools/eval.js.map +1 -1
  118. package/out/coarse-placer/tools/index.d.ts +7 -7
  119. package/out/coarse-placer/tools/index.js +7 -7
  120. package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
  121. package/out/coarse-placer/tools/quantize.js.map +1 -1
  122. package/out/coarse-placer/tools/train.d.ts.map +1 -1
  123. package/out/coarse-placer/tools/train.js +2 -3
  124. package/out/coarse-placer/tools/train.js.map +1 -1
  125. package/out/data-root.js.map +1 -1
  126. package/out/decoder/build-tree.d.ts.map +1 -1
  127. package/out/decoder/build-tree.js.map +1 -1
  128. package/out/decoder/containment.d.ts +2 -2
  129. package/out/decoder/containment.d.ts.map +1 -1
  130. package/out/decoder/containment.js.map +1 -1
  131. package/out/decoder/index.d.ts +5 -5
  132. package/out/decoder/index.js +5 -5
  133. package/out/decoder/parse-diff.js +1 -1
  134. package/out/decoder/parse-diff.js.map +1 -1
  135. package/out/decoder/proposals-to-tree.d.ts +2 -1
  136. package/out/decoder/proposals-to-tree.d.ts.map +1 -1
  137. package/out/decoder/proposals-to-tree.js.map +1 -1
  138. package/out/decoder/{serialize-json.d.ts → serialize/json.d.ts} +2 -2
  139. package/out/decoder/serialize/json.d.ts.map +1 -0
  140. package/out/decoder/{serialize-json.js → serialize/json.js} +2 -2
  141. package/out/decoder/serialize/json.js.map +1 -0
  142. package/out/decoder/{serialize-tuples.d.ts → serialize/tuples.d.ts} +2 -2
  143. package/out/decoder/serialize/tuples.d.ts.map +1 -0
  144. package/out/decoder/{serialize-tuples.js → serialize/tuples.js} +1 -1
  145. package/out/decoder/serialize/tuples.js.map +1 -0
  146. package/out/decoder/{serialize-xml.d.ts → serialize/xml.d.ts} +1 -1
  147. package/out/decoder/serialize/xml.d.ts.map +1 -0
  148. package/out/decoder/{serialize-xml.js → serialize/xml.js} +1 -1
  149. package/out/decoder/serialize/xml.js.map +1 -0
  150. package/out/decoder/{tree-shape.d.ts → tree/shape.d.ts} +5 -9
  151. package/out/decoder/tree/shape.d.ts.map +1 -0
  152. package/out/decoder/{tree-shape.js → tree/shape.js} +6 -10
  153. package/out/decoder/tree/shape.js.map +1 -0
  154. package/out/decoder/{tree-walk.d.ts → tree/walk.d.ts} +1 -1
  155. package/out/decoder/tree/walk.d.ts.map +1 -0
  156. package/out/decoder/{tree-walk.js → tree/walk.js} +1 -1
  157. package/out/decoder/tree/walk.js.map +1 -0
  158. package/out/decoder/types.d.ts +1 -2
  159. package/out/decoder/types.d.ts.map +1 -1
  160. package/out/decoder/types.js +1 -1
  161. package/out/decoder/types.js.map +1 -1
  162. package/out/decoder/unknown-spans.js +1 -1
  163. package/out/decoder/validate-tree.d.ts +1 -1
  164. package/out/decoder/validate-tree.d.ts.map +1 -1
  165. package/out/decoder/validate-tree.js.map +1 -1
  166. package/out/env/index.d.ts +1 -1
  167. package/out/env/schema.d.ts +4 -4
  168. package/out/errors/schema.d.ts.map +1 -1
  169. package/out/errors/schema.js.map +1 -1
  170. package/out/fs/formatters.d.ts.map +1 -1
  171. package/out/fs/formatters.js.map +1 -1
  172. package/out/fs/readers/stat.d.ts +126 -0
  173. package/out/fs/readers/stat.d.ts.map +1 -0
  174. package/out/fs/readers/stat.js +202 -0
  175. package/out/fs/readers/stat.js.map +1 -0
  176. package/out/fs/readers.d.ts +16 -149
  177. package/out/fs/readers.d.ts.map +1 -1
  178. package/out/fs/readers.js +19 -230
  179. package/out/fs/readers.js.map +1 -1
  180. package/out/fs/streams.d.ts +33 -0
  181. package/out/fs/streams.d.ts.map +1 -1
  182. package/out/fs/streams.js +49 -0
  183. package/out/fs/streams.js.map +1 -1
  184. package/out/fs/writers.d.ts +5 -5
  185. package/out/fs/writers.js +5 -5
  186. package/out/fs/zip.d.ts +21 -2
  187. package/out/fs/zip.d.ts.map +1 -1
  188. package/out/fs/zip.js +36 -8
  189. package/out/fs/zip.js.map +1 -1
  190. package/out/git.d.ts +15 -0
  191. package/out/git.d.ts.map +1 -1
  192. package/out/git.js +22 -0
  193. package/out/git.js.map +1 -1
  194. package/out/html/document.js.map +1 -1
  195. package/out/json.d.ts.map +1 -1
  196. package/out/layers/coverage.d.ts +1 -1
  197. package/out/layers/coverage.d.ts.map +1 -1
  198. package/out/layers/coverage.js +1 -2
  199. package/out/layers/coverage.js.map +1 -1
  200. package/out/layers/manifest.d.ts +2 -2
  201. package/out/layers/manifest.d.ts.map +1 -1
  202. package/out/layers/manifest.js +2 -3
  203. package/out/layers/manifest.js.map +1 -1
  204. package/out/layers/schema.d.ts +0 -1
  205. package/out/layers/schema.d.ts.map +1 -1
  206. package/out/layers/schema.js +0 -3
  207. package/out/layers/schema.js.map +1 -1
  208. package/out/license/configured.d.ts +1 -1
  209. package/out/license/configured.d.ts.map +1 -1
  210. package/out/license/configured.js +2 -2
  211. package/out/license/configured.js.map +1 -1
  212. package/out/license/docs-site.d.ts +0 -6
  213. package/out/license/docs-site.d.ts.map +1 -1
  214. package/out/license/docs-site.js +1 -12
  215. package/out/license/docs-site.js.map +1 -1
  216. package/out/license/index.d.ts +2 -2
  217. package/out/license/index.d.ts.map +1 -1
  218. package/out/license/index.js +2 -2
  219. package/out/license/index.js.map +1 -1
  220. package/out/license/{key-file.d.ts → key/file.d.ts} +1 -1
  221. package/out/license/key/file.d.ts.map +1 -0
  222. package/out/license/{key-file.js → key/file.js} +1 -1
  223. package/out/license/key/file.js.map +1 -0
  224. package/out/license/{key.d.ts → key/index.d.ts} +1 -1
  225. package/out/license/key/index.d.ts.map +1 -0
  226. package/out/license/{key.js → key/index.js} +1 -1
  227. package/out/license/key/index.js.map +1 -0
  228. package/out/license/obligations.d.ts +1 -1
  229. package/out/license/obligations.d.ts.map +1 -1
  230. package/out/license/obligations.js +3 -0
  231. package/out/license/obligations.js.map +1 -1
  232. package/out/license/publication.js.map +1 -1
  233. package/out/license/register.d.ts.map +1 -1
  234. package/out/license/stamp.d.ts +1 -1
  235. package/out/license/stamp.d.ts.map +1 -1
  236. package/out/license/status.js +1 -1
  237. package/out/license/status.js.map +1 -1
  238. package/out/locale/locale.d.ts +1 -1
  239. package/out/locale/locale.d.ts.map +1 -1
  240. package/out/locale/registry.d.ts.map +1 -1
  241. package/out/locale/registry.js +1 -1
  242. package/out/locale/registry.js.map +1 -1
  243. package/out/locale/zh-cn-units.d.ts.map +1 -1
  244. package/out/logging/shared.d.ts.map +1 -1
  245. package/out/module/resolve-from.d.ts +12 -3
  246. package/out/module/resolve-from.d.ts.map +1 -1
  247. package/out/module/resolve-from.js.map +1 -1
  248. package/out/module/resolvers.js.map +1 -1
  249. package/out/objects.d.ts +6 -0
  250. package/out/objects.d.ts.map +1 -1
  251. package/out/objects.js +8 -1
  252. package/out/objects.js.map +1 -1
  253. package/out/overture-pins.d.ts +24 -0
  254. package/out/overture-pins.d.ts.map +1 -0
  255. package/out/overture-pins.js +24 -0
  256. package/out/overture-pins.js.map +1 -0
  257. package/out/paths.js.map +1 -1
  258. package/out/pipeline/client-result.d.ts +84 -0
  259. package/out/pipeline/client-result.d.ts.map +1 -0
  260. package/out/pipeline/client-result.js +12 -0
  261. package/out/pipeline/client-result.js.map +1 -0
  262. package/out/pipeline/index.d.ts +1 -1
  263. package/out/pipeline/index.d.ts.map +1 -1
  264. package/out/pipeline/preferences.d.ts +13 -0
  265. package/out/pipeline/preferences.d.ts.map +1 -0
  266. package/out/pipeline/preferences.js +7 -0
  267. package/out/pipeline/preferences.js.map +1 -0
  268. package/out/pipeline/result.d.ts +72 -0
  269. package/out/pipeline/result.d.ts.map +1 -0
  270. package/out/pipeline/result.js +7 -0
  271. package/out/pipeline/result.js.map +1 -0
  272. package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
  273. package/out/pipeline/runtime-pipeline.js +7 -13
  274. package/out/pipeline/runtime-pipeline.js.map +1 -1
  275. package/out/pipeline/span-proposer.js.map +1 -1
  276. package/out/pipeline/types.d.ts +23 -85
  277. package/out/pipeline/types.d.ts.map +1 -1
  278. package/out/pipeline/types.js +2 -0
  279. package/out/pipeline/types.js.map +1 -1
  280. package/out/policy/defaults.d.ts +1 -1
  281. package/out/policy/defaults.d.ts.map +1 -1
  282. package/out/policy/defaults.js +1 -1
  283. package/out/policy/defaults.js.map +1 -1
  284. package/out/policy/policy.d.ts +2 -1
  285. package/out/policy/policy.d.ts.map +1 -1
  286. package/out/policy/proposal-collection.js.map +1 -1
  287. package/out/policy/registry.d.ts +2 -1
  288. package/out/policy/registry.d.ts.map +1 -1
  289. package/out/policy/registry.js.map +1 -1
  290. package/out/process.d.ts +2 -2
  291. package/out/process.d.ts.map +1 -1
  292. package/out/process.js.map +1 -1
  293. package/out/random.d.ts.map +1 -1
  294. package/out/release-config.js.map +1 -1
  295. package/out/resolver/authoritative-provider.d.ts +1 -1
  296. package/out/resolver/authoritative-provider.d.ts.map +1 -1
  297. package/out/resolver/fixture-authoritative-provider.js.map +1 -1
  298. package/out/resolver/index.d.ts +2 -2
  299. package/out/resolver/index.d.ts.map +1 -1
  300. package/out/resolver/index.js +1 -1
  301. package/out/resolver/index.js.map +1 -1
  302. package/out/resolver/lookup-types.d.ts +8 -0
  303. package/out/resolver/lookup-types.d.ts.map +1 -1
  304. package/out/resolver/synthetic-id-ranges.d.ts +66 -0
  305. package/out/resolver/synthetic-id-ranges.d.ts.map +1 -0
  306. package/out/resolver/synthetic-id-ranges.js +73 -0
  307. package/out/resolver/synthetic-id-ranges.js.map +1 -0
  308. package/out/resolver/types.d.ts +1 -2
  309. package/out/resolver/types.d.ts.map +1 -1
  310. package/out/resolver/types.js +0 -1
  311. package/out/resolver/types.js.map +1 -1
  312. package/out/resources/languages/index.js.map +1 -1
  313. package/out/resources/languages/types.gen.d.ts.map +1 -1
  314. package/out/resources/locale.d.ts.map +1 -1
  315. package/out/resources/set.d.ts.map +1 -1
  316. package/out/resources/set.js.map +1 -1
  317. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +1 -1
  318. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
  319. package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
  320. package/out/resources/whosonfirst/placetypes/Placetype.js +7 -6
  321. package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
  322. package/out/resources/whosonfirst/placetypes/admin.d.ts +1 -1
  323. package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
  324. package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
  325. package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
  326. package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
  327. package/out/routing/index.d.ts.map +1 -1
  328. package/out/routing/index.js.map +1 -1
  329. package/out/scripting/arguments.d.ts +7 -0
  330. package/out/scripting/arguments.d.ts.map +1 -1
  331. package/out/scripting/arguments.js +29 -0
  332. package/out/scripting/arguments.js.map +1 -1
  333. package/out/scripting/command.d.ts.map +1 -1
  334. package/out/scripting/ingest-chunk-script.d.ts.map +1 -1
  335. package/out/scripting/utils/index.d.ts +1 -1
  336. package/out/scripting/utils/index.d.ts.map +1 -1
  337. package/out/scripting/utils/index.js +1 -1
  338. package/out/scripting/utils/index.js.map +1 -1
  339. package/out/strings/case.d.ts +3 -0
  340. package/out/strings/case.d.ts.map +1 -1
  341. package/out/strings/case.js +12 -2
  342. package/out/strings/case.js.map +1 -1
  343. package/out/strings/format.d.ts +6 -0
  344. package/out/strings/format.d.ts.map +1 -1
  345. package/out/strings/format.js +12 -0
  346. package/out/strings/format.js.map +1 -1
  347. package/out/strings/python-json.js.map +1 -1
  348. package/out/tokenization/Graph.d.ts +3 -0
  349. package/out/tokenization/Graph.d.ts.map +1 -1
  350. package/out/tokenization/Graph.js +0 -4
  351. package/out/tokenization/Graph.js.map +1 -1
  352. package/out/tokenization/Span.d.ts.map +1 -1
  353. package/out/tokenization/Span.js.map +1 -1
  354. package/out/tokenization/normalizer.d.ts.map +1 -1
  355. package/out/tokenization/normalizer.js.map +1 -1
  356. package/out/tools/{download-libpostal-resources.d.ts → download/libpostal-resources.d.ts} +1 -1
  357. package/out/tools/download/libpostal-resources.d.ts.map +1 -0
  358. package/out/tools/{download-libpostal-resources.js → download/libpostal-resources.js} +4 -3
  359. package/out/tools/download/libpostal-resources.js.map +1 -0
  360. package/out/tools/{download-ssl-address.d.ts → download/ssl-address.d.ts} +1 -1
  361. package/out/tools/download/ssl-address.d.ts.map +1 -0
  362. package/out/tools/{download-ssl-address.js → download/ssl-address.js} +1 -1
  363. package/out/tools/download/ssl-address.js.map +1 -0
  364. package/out/tools/generate-language-types.d.ts.map +1 -1
  365. package/out/tools/generate-language-types.js +3 -4
  366. package/out/tools/generate-language-types.js.map +1 -1
  367. package/out/tools/index.d.ts +2 -2
  368. package/out/tools/index.js +2 -2
  369. package/out/types/Classification.d.ts +2 -2
  370. package/out/types/Classification.d.ts.map +1 -1
  371. package/out/types/classifier.d.ts +1 -1
  372. package/out/types/classifier.d.ts.map +1 -1
  373. package/out/types/index.d.ts +0 -1
  374. package/out/types/index.d.ts.map +1 -1
  375. package/out/types/index.js +0 -1
  376. package/out/types/index.js.map +1 -1
  377. package/out/types/mapping.d.ts +1 -1
  378. package/out/types/mapping.d.ts.map +1 -1
  379. package/out/types/mapping.js.map +1 -1
  380. package/out/utils/time.js.map +1 -1
  381. package/out/workspaces.d.ts +31 -0
  382. package/out/workspaces.d.ts.map +1 -0
  383. package/out/workspaces.js +72 -0
  384. package/out/workspaces.js.map +1 -0
  385. package/package.json +84 -55
  386. package/lib/resolver/placetype-map.ts +0 -130
  387. package/lib/types/component.ts +0 -96
  388. package/out/api/test-clocks.d.ts.map +0 -1
  389. package/out/api/test-clocks.js.map +0 -1
  390. package/out/api/test-transport.d.ts.map +0 -1
  391. package/out/api/test-transport.js.map +0 -1
  392. package/out/coarse-placer/tools/build-dataset.d.ts.map +0 -1
  393. package/out/coarse-placer/tools/build-dataset.js.map +0 -1
  394. package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +0 -1
  395. package/out/coarse-placer/tools/build-outlier-exposure.js.map +0 -1
  396. package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +0 -1
  397. package/out/coarse-placer/tools/build-outlier-latin.js.map +0 -1
  398. package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +0 -1
  399. package/out/coarse-placer/tools/build-outlier-oa.js.map +0 -1
  400. package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +0 -1
  401. package/out/coarse-placer/tools/eval-latin-offmap.js.map +0 -1
  402. package/out/coarse-placer/tools/eval-openset.d.ts.map +0 -1
  403. package/out/coarse-placer/tools/eval-openset.js.map +0 -1
  404. package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +0 -1
  405. package/out/coarse-placer/tools/eval-quant-compare.js.map +0 -1
  406. package/out/decoder/serialize-json.d.ts.map +0 -1
  407. package/out/decoder/serialize-json.js.map +0 -1
  408. package/out/decoder/serialize-tuples.d.ts.map +0 -1
  409. package/out/decoder/serialize-tuples.js.map +0 -1
  410. package/out/decoder/serialize-xml.d.ts.map +0 -1
  411. package/out/decoder/serialize-xml.js.map +0 -1
  412. package/out/decoder/tree-shape.d.ts.map +0 -1
  413. package/out/decoder/tree-shape.js.map +0 -1
  414. package/out/decoder/tree-walk.d.ts.map +0 -1
  415. package/out/decoder/tree-walk.js.map +0 -1
  416. package/out/license/key-file.d.ts.map +0 -1
  417. package/out/license/key-file.js.map +0 -1
  418. package/out/license/key.d.ts.map +0 -1
  419. package/out/license/key.js.map +0 -1
  420. package/out/resolver/placetype-map.d.ts +0 -76
  421. package/out/resolver/placetype-map.d.ts.map +0 -1
  422. package/out/resolver/placetype-map.js +0 -106
  423. package/out/resolver/placetype-map.js.map +0 -1
  424. package/out/tools/download-libpostal-resources.d.ts.map +0 -1
  425. package/out/tools/download-libpostal-resources.js.map +0 -1
  426. package/out/tools/download-ssl-address.d.ts.map +0 -1
  427. package/out/tools/download-ssl-address.js.map +0 -1
  428. package/out/types/component.d.ts +0 -50
  429. package/out/types/component.d.ts.map +0 -1
  430. package/out/types/component.js +0 -84
  431. package/out/types/component.js.map +0 -1
  432. /package/lib/api/{test-clocks.ts → test/clocks.ts} +0 -0
  433. /package/lib/api/{test-transport.ts → test/transport.ts} +0 -0
  434. /package/lib/coarse-placer/tools/{build-outlier-exposure.ts → build/outlier/exposure.ts} +0 -0
  435. /package/lib/coarse-placer/tools/{build-outlier-oa.ts → build/outlier/oa.ts} +0 -0
  436. /package/lib/coarse-placer/tools/{eval-latin-offmap.ts → eval/latin-offmap.ts} +0 -0
  437. /package/lib/decoder/{serialize-xml.ts → serialize/xml.ts} +0 -0
  438. /package/lib/decoder/{tree-walk.ts → tree/walk.ts} +0 -0
  439. /package/lib/license/{key-file.ts → key/file.ts} +0 -0
  440. /package/lib/license/{key.ts → key/index.ts} +0 -0
  441. /package/lib/tools/{download-ssl-address.ts → download/ssl-address.ts} +0 -0
@@ -10,9 +10,11 @@
10
10
  * per-locale overrides at startup. Look-up and `apply` are pure.
11
11
  */
12
12
 
13
+ import type { ComponentTag } from "@mailwoman/codex/component"
14
+
13
15
  import { buildDefaultPolicies, defaultPolicyFor } from "#policy/defaults"
14
16
  import type { ClassifierPolicy, PolicyMode, PolicyRegistry } from "#policy/policy"
15
- import type { ClassificationProposal, ComponentTag } from "#types"
17
+ import type { ClassificationProposal } from "#types"
16
18
 
17
19
  const GLOBAL_LOCALE_KEY = "*"
18
20
 
package/lib/process.ts CHANGED
@@ -110,7 +110,9 @@ export async function runFile(
110
110
  /**
111
111
  * Options for {@linkcode runFileSync}: the builtin's. Output is always decoded as UTF-8.
112
112
  */
113
- export type RunFileSyncOptions = ExecFileSyncOptions & { cwd?: PathBuilderLike }
113
+ export interface RunFileSyncOptions extends Omit<ExecFileSyncOptions, "cwd"> {
114
+ cwd?: PathBuilderLike
115
+ }
114
116
 
115
117
  /**
116
118
  * {@linkcode runFile} for a synchronous slot. Answers stdout; throws on a non-zero exit, with the builtin's error.
@@ -22,7 +22,7 @@
22
22
  * package; these shapes are what every adapter maps INTO.
23
23
  */
24
24
 
25
- import type { ComponentTag } from "#types/component"
25
+ import type { ComponentTag } from "@mailwoman/codex/component"
26
26
 
27
27
  /**
28
28
  * One parsed component as the provider receives it: the tag, the surface text, and where in the normalized query it
@@ -44,13 +44,7 @@ export {
44
44
  type FixtureAuthoritativeRule,
45
45
  } from "#resolver/fixture-authoritative-provider"
46
46
 
47
- export {
48
- DEFAULT_PLACETYPE_MAP,
49
- PLACETYPE_FILTER_GROUPS,
50
- expandPlacetypeFilter,
51
- hardCountrySafelistFromCoverage,
52
- isPlacetypeFallback,
53
- } from "#resolver/types"
47
+ export { hardCountrySafelistFromCoverage } from "#resolver/types"
54
48
 
55
49
  export type {
56
50
  AddressPointHit,
@@ -63,7 +57,6 @@ export type {
63
57
  GazetteerArtifactCoverage,
64
58
  InterpolatedPointHit,
65
59
  InterpolationLookup,
66
- PlacetypeMap,
67
60
  PostcodePrefixAncestor,
68
61
  PostcodePrefixIndexLike,
69
62
  PostcodePrefixNode,
@@ -44,6 +44,14 @@ export interface AddressPointLookup {
44
44
  number: string
45
45
  postcode?: string
46
46
  locality?: string
47
+ /**
48
+ * The parse's `region` and `subregion` spans, for a register whose rows carry neither postcode nor locality. The
49
+ * Taiwanese register scopes a point by 縣市 and 鄉鎮市區 (`臺北市` / `中正區`), which the parse tags `region` and `subregion`;
50
+ * a reader built on that register composes its locality key from the pair. Every other reader ignores both, so the
51
+ * Latin path is byte-stable.
52
+ */
53
+ region?: string
54
+ subregion?: string
47
55
  /**
48
56
  * Optional bbox scope (`minLat`/`maxLat`/`minLon`/`maxLon`), tried AFTER postcode/locality. For extracts whose
49
57
  * points carry no postcode/locality of their own (OSM addr nodes often don't) but DO carry a coordinate — the
@@ -0,0 +1,83 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ * @file The one registry of synthetic place-id ranges.
6
+ *
7
+ * A real WOF id is below 2e9. Every other source a gazetteer artifact folds in mints its own ids from a base high
8
+ * above that, and the bases must be pairwise distinct: the candidate table's `candidate_ancestor` and
9
+ * `candidate_interval` sidecars are keyed by `spr_id` alone, a result's `placeID` is `wof:<spr_id>`, and the
10
+ * backend's `ancestors(id)` answers whichever row wrote last. Two builders that pick the same base give two places
11
+ * one id — which happened twice while each builder kept its own list of the ranges it believed were taken
12
+ * (NZ localities and Code-Point Open both at 9.7e12, 3,033 shared ids in the served table; CZ districts and the NI
13
+ * OSM postcodes both at 9.8e12). A docstring cannot enforce distinctness; this module and its test do.
14
+ *
15
+ * Add a range here, never at the builder. Each holds at least 5e10 ids against a largest occupancy of 1.75 M
16
+ * (Code-Point Open), so spacing is not the constraint; the registry is.
17
+ */
18
+
19
+ /**
20
+ * Overture-sourced admin rows (`fold-overture`). Above any real WOF id.
21
+ */
22
+ export const OVERTURE_ID_BASE = 8_000_000_000_000
23
+
24
+ /**
25
+ * The GeoNames alias fold (`@mailwoman/resolver-wof-sqlite/geonames`).
26
+ */
27
+ export const GEONAMES_ID_BASE = 9_000_000_000_000
28
+
29
+ /**
30
+ * GeoNames postal rows (`@mailwoman/resolver-wof-sqlite/geonames`).
31
+ */
32
+ export const GEONAMES_POSTAL_ID_BASE = 9_500_000_000_000
33
+
34
+ /**
35
+ * The Dutch PC6 postcode database (`gazetteer build nl-pc6`).
36
+ */
37
+ export const NL_PC6_ID_BASE = 9_600_000_000_000
38
+
39
+ /**
40
+ * The LINZ-derived New Zealand locality database (`gazetteer build nz-localities`).
41
+ */
42
+ export const NZ_LOCALITY_ID_BASE = 9_650_000_000_000
43
+
44
+ /**
45
+ * Code-Point Open, the GB postcode database (`gazetteer build postcode-codepoint`).
46
+ */
47
+ export const CODEPOINT_ID_BASE = 9_700_000_000_000
48
+
49
+ /**
50
+ * The Northern Ireland OSM postcode database (`gazetteer build postcode-ni-osm`).
51
+ */
52
+ export const NI_OSM_ID_BASE = 9_800_000_000_000
53
+
54
+ /**
55
+ * The Prague municipal districts (`gazetteer build cz-districts`).
56
+ */
57
+ export const CZ_DISTRICT_ID_BASE = 9_850_000_000_000
58
+
59
+ /**
60
+ * Taiwan's 鄉鎮市區 from the civil-affairs register (`gazetteer build tw-districts`).
61
+ */
62
+ export const TW_DISTRICT_ID_BASE = 9_900_000_000_000
63
+
64
+ /**
65
+ * Every synthetic range, ascending. The test over this table is what keeps the bases distinct and spaced; a builder
66
+ * reads its own constant above and never this list.
67
+ */
68
+ export const SYNTHETIC_ID_RANGES: ReadonlyArray<{ readonly name: string; readonly base: number }> = [
69
+ { name: "overture", base: OVERTURE_ID_BASE },
70
+ { name: "geonames", base: GEONAMES_ID_BASE },
71
+ { name: "geonames-postal", base: GEONAMES_POSTAL_ID_BASE },
72
+ { name: "nl-pc6", base: NL_PC6_ID_BASE },
73
+ { name: "nz-locality", base: NZ_LOCALITY_ID_BASE },
74
+ { name: "codepoint", base: CODEPOINT_ID_BASE },
75
+ { name: "ni-osm", base: NI_OSM_ID_BASE },
76
+ { name: "cz-district", base: CZ_DISTRICT_ID_BASE },
77
+ { name: "tw-district", base: TW_DISTRICT_ID_BASE },
78
+ ]
79
+
80
+ /**
81
+ * The smallest room any range is given before the next base. Code-Point Open, the largest occupant, holds 1.75 M ids.
82
+ */
83
+ export const SYNTHETIC_ID_RANGE_MIN_WIDTH = 50_000_000_000
@@ -16,6 +16,8 @@
16
16
  * groups that moved to siblings are re-exported here rather than requiring every importer to move with them.
17
17
  */
18
18
 
19
+ import type { PlacetypeMap } from "@mailwoman/codex/placetype-map"
20
+
19
21
  import type { AddressTree } from "#decoder/types"
20
22
  import type { GazetteerArtifactCoverage } from "#resolver/coverage-facts"
21
23
  import type {
@@ -24,7 +26,6 @@ import type {
24
26
  PostcodePrefixIndexLike,
25
27
  StreetCentroidLookup,
26
28
  } from "#resolver/lookup-types"
27
- import type { PlacetypeMap } from "#resolver/placetype-map"
28
29
 
29
30
  export type { CountryBBoxFact, CountryCoverageFact, GazetteerArtifactCoverage } from "#resolver/coverage-facts"
30
31
  export { hardCountrySafelistFromCoverage } from "#resolver/coverage-facts"
@@ -41,14 +42,6 @@ export type {
41
42
  StreetCentroidLookup,
42
43
  } from "#resolver/lookup-types"
43
44
 
44
- export {
45
- DEFAULT_PLACETYPE_MAP,
46
- expandPlacetypeFilter,
47
- isPlacetypeFallback,
48
- PLACETYPE_FILTER_GROUPS,
49
- type PlacetypeMap,
50
- } from "#resolver/placetype-map"
51
-
52
45
  /**
53
46
  * One candidate place returned by a resolver. Mirrors the shape used by `@mailwoman/core/resolver-wof-sqlite`'s
54
47
  * `PlaceCandidate` — kept structurally compatible so a callsite holding a `PlaceCandidate` can be passed where a
@@ -4,9 +4,9 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
 
7
- import FastGlob from "fast-glob"
8
7
  import type { PathBuilder } from "path-ts"
9
8
  import { parallelMap } from "spliterator"
9
+ import { Globerator } from "spliterator/node/fs"
10
10
 
11
11
  import { readLocalTextFile } from "#fs/readers"
12
12
  import { parseJSONStrict } from "#json"
@@ -74,15 +74,14 @@ export class Placetype implements Disposable {
74
74
 
75
75
  if (!exists) return
76
76
 
77
- const definitionPaths = FastGlob.stream(["*.json"], {
78
- cwd: repoDirectory("placetypes").toString(),
79
- absolute: true,
77
+ const definitionPaths = Globerator.from("*.json", {
78
+ cwd: repoDirectory("placetypes"),
80
79
  })
81
80
 
82
81
  const batchIterator = parallelMap(
83
82
  definitionPaths,
84
83
  async (definitionPath) => {
85
- const definitionContent = await readLocalTextFile(String(definitionPath))
84
+ const definitionContent = await readLocalTextFile(definitionPath)
86
85
  const definition = parseJSONStrict<PlacetypeDefinition>(definitionContent)
87
86
 
88
87
  Placetype.register(definition)
@@ -92,7 +91,9 @@ export class Placetype implements Disposable {
92
91
  { concurrency: batchSize }
93
92
  )
94
93
 
95
- await Array.fromAsync(batchIterator)
94
+ for await (const _definition of batchIterator) {
95
+ // `parallelMap` performs registration above; its yielded definitions have no further consumer.
96
+ }
96
97
  }
97
98
 
98
99
  /**
@@ -63,6 +63,40 @@ export function requiredArgument(scope: string, name: string, value: string | un
63
63
  return value
64
64
  }
65
65
 
66
+ /**
67
+ * Kebab segments whose property spelling capitalizes the whole acronym, per the house casing convention.
68
+ *
69
+ * A segment missing here derives a property the command's own `Options` does not declare. The flag still parses and
70
+ * still passes validation; it reaches the component under a name nothing reads, so it does nothing and reports no
71
+ * error. Add the segment here when a flag carries an acronym.
72
+ */
73
+ const OPTION_INITIALISMS = new Map([
74
+ ["csv", "CSV"],
75
+ ["db", "DB"],
76
+ ["html", "HTML"],
77
+ ["ids", "IDs"],
78
+ ["json", "JSON"],
79
+ ["jsonl", "JSONL"],
80
+ ["km", "KM"],
81
+ ["svg", "SVG"],
82
+ ["xml", "XML"],
83
+ ])
84
+
85
+ /**
86
+ * Convert a kebab-case option name to its TypeScript property name.
87
+ *
88
+ * `@mailwoman/repo-health`'s `cli-flag-properties` check derives every command's property names with this function, so
89
+ * a flag whose property nothing declares fails a check rather than doing nothing at runtime.
90
+ */
91
+ export function optionPropertyName(value: string): string {
92
+ const [head = "", ...tail] = value.split("-")
93
+
94
+ return (
95
+ head +
96
+ tail.map((part) => OPTION_INITIALISMS.get(part) ?? `${part[0]?.toUpperCase() ?? ""}${part.slice(1)}`).join("")
97
+ )
98
+ }
99
+
66
100
  export function parseArguments<T extends ParseArgsConfig>(config: T): ReturnType<typeof parseArgs<T>> {
67
101
  // The builtin types its result from the whole config object, so supplying `args` moves the type; the parsed shape
68
102
  // depends on `options`/`allowPositionals` alone, which `T` carries.
@@ -3,7 +3,7 @@ import { defaultRegistry } from "async-init"
3
3
  import { ResourceError } from "#errors/schema"
4
4
  import { ConsoleLogger } from "#logging"
5
5
 
6
- export { cliArguments, passThroughCLIArguments, scriptEntryPath } from "#scripting/arguments"
6
+ export { cliArguments, optionPropertyName, passThroughCLIArguments, scriptEntryPath } from "#scripting/arguments"
7
7
 
8
8
  /**
9
9
  * Print a message to stderr and exit non-zero. Typed `never`, so a caller gets definite-assignment narrowing after the
@@ -7,8 +7,19 @@
7
7
  import { camelCase, capitalCase, snakeCase } from "change-case"
8
8
  import type { CamelCase, SnakeCase } from "type-fest"
9
9
 
10
+ /**
11
+ * Any character that is not a letter, a digit, or an underscore, in ANY script.
12
+ *
13
+ * `\W` cannot serve: it is `[^A-Za-z0-9_]` in JavaScript with or without the `u` flag, so every character of a
14
+ * non-Latin name is "non-word" and the name is replaced rather than kept.
15
+ */
16
+ const NON_KEY_CHARACTER = /[^\p{L}\p{N}_]+/gu
17
+
10
18
  /**
11
19
  * Converts a name to snake_case, unless the name is already in all caps.
20
+ *
21
+ * A caseless script takes the all-caps branch, because `toUpperCase()` is the identity on Korean, Japanese, Chinese,
22
+ * Hebrew and Arabic. That is the right branch — those names have no case to convert and survive as written.
12
23
  */
13
24
  export function smartSnakeCase<T extends string>(name: T): T extends Uppercase<T> ? T : SnakeCase<T> {
14
25
  const normalizedName = name
@@ -19,8 +30,8 @@ export function smartSnakeCase<T extends string>(name: T): T extends Uppercase<T
19
30
  if (normalizedName.toUpperCase() === normalizedName) {
20
31
  return (
21
32
  normalizedName
22
- // Replace all non-word characters with underscores...
23
- .replaceAll(/\W{1,}/g, "_")
33
+ // Replace everything that cannot be part of a key with underscores...
34
+ .replaceAll(NON_KEY_CHARACTER, "_")
24
35
  // ...and then replace all sequences of underscores with a single underscore.
25
36
  .replaceAll(/_{2,}/g, "_") as T extends Uppercase<T> ? T : SnakeCase<T>
26
37
  )
@@ -12,3 +12,18 @@
12
12
  export function normalizeWhitespace(text: string): string {
13
13
  return text.replaceAll(/\s+/gu, " ").trim()
14
14
  }
15
+
16
+ /**
17
+ * The text with its trailing slashes removed: an origin a path can be appended to by concatenation, or a pathname with
18
+ * a trailing slash forgiven. A loop rather than `/\/+$/u`: a regex anchored after a repeated class backtracks in time
19
+ * quadratic in the run of slashes it is handed, and the input is configuration or a URL the browser was given.
20
+ */
21
+ export function withoutTrailingSlashes(text: string): string {
22
+ let end = text.length
23
+
24
+ while (end > 0 && text[end - 1] === "/") {
25
+ end -= 1
26
+ }
27
+
28
+ return text.slice(0, end)
29
+ }
@@ -4,12 +4,11 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
 
7
- // Import `Sequence` from its leaf module, NOT the `@mailwoman/core/resources` barrel: the barrel
8
- // re-exports the libpostal/WOF dictionaries (top-level `readdir` + fast-glob, Node-only), which would
9
- // drag the entire resource-loading layer into any browser bundle that touches tokenization — and
10
- // `@mailwoman/phrase-grouper` touches it via `Span`. `Sequence` itself is a pure `extends Set`.
11
7
  import { Sequence } from "#resources/set"
12
8
 
9
+ /**
10
+ * A graph node is a weakly-keyed object that can be stored in a graph.
11
+ */
13
12
  export type GraphNodeCallback<G> = (node: G) => boolean
14
13
 
15
14
  /**
@@ -25,8 +25,9 @@
25
25
  */
26
26
 
27
27
  import { join } from "path-ts"
28
+ import { Globerator } from "spliterator/node/fs"
28
29
 
29
- import { isDirectory, readDirectoryEntries, readLocalTextFile } from "#fs/readers"
30
+ import { isDirectory, readLocalTextFile } from "#fs/readers"
30
31
  import { temporaryDirectory } from "#fs/temporary"
31
32
  import { copyPath, removePathIfPresent, writeLocalTextFile } from "#fs/writers"
32
33
  import { CommandError } from "#scripting/command"
@@ -82,7 +83,7 @@ export async function downloadLibpostalResources(
82
83
  const sourceDicts = join(cloneDir, "resources", "dictionaries")
83
84
 
84
85
  // Alphabetize the contents of each dictionary file in place.
85
- for (const entry of await readDirectoryEntries(sourceDicts)) {
86
+ for await (const entry of Globerator.from("*", { cwd: sourceDicts, withFileTypes: true, onlyFiles: false })) {
86
87
  if (entry.isFile()) {
87
88
  await sortFileInPlace(join(sourceDicts, entry.name))
88
89
  }
@@ -66,10 +66,9 @@ export async function generateLanguageTypes(
66
66
 
67
67
  report?.(`Reading ${dataSourcePath}`)
68
68
 
69
- // Quote handling is on and required: six labels wrap an embedded comma
70
- // (`gre,el,"Greek, Modern (1453-)"`), and the spliterator leaves quoting off by default.
71
- // `header` defaults true, which is what skips the `alpha3-b,alpha2,English` line.
72
- for await (const columns of CSVSpliterator.fromAsync(dataSourcePath, { enableQuoteHandling: true })) {
69
+ // `header` defaults true, which skips the `alpha3-b,alpha2,English` line; the columns are read by position, so the
70
+ // mode is named rather than derived from it.
71
+ for await (const columns of CSVSpliterator.fromAsync<string[]>(dataSourcePath, { mode: "array" })) {
73
72
  const alpha3b = columns[0] as string
74
73
  const alpha2 = columns[1] as string
75
74
  const labelsConcatenated = columns[2] as string
@@ -7,6 +7,6 @@
7
7
  * argv, no `process.exit`: commands own parsing, rendering, and exit codes.
8
8
  */
9
9
 
10
- export * from "#tools/download-libpostal-resources"
11
- export * from "#tools/download-ssl-address"
10
+ export * from "#tools/download/libpostal-resources"
11
+ export * from "#tools/download/ssl-address"
12
12
  export * from "#tools/generate-language-types"
@@ -16,8 +16,9 @@
16
16
  * `@mailwoman/classifiers` workspace; this contract now describes the neural path only.
17
17
  */
18
18
 
19
+ import type { ComponentTag } from "@mailwoman/codex/component"
20
+
19
21
  import type { Span } from "#tokenization/index"
20
- import type { ComponentTag } from "#types/component"
21
22
 
22
23
  /**
23
24
  * Sections in Mailwoman are sub-Spans of the tokenized input (split by boundary characters: commas, line breaks, etc.).
@@ -6,5 +6,4 @@
6
6
 
7
7
  export * from "#types/Classification"
8
8
  export * from "#types/classifier"
9
- export * from "#types/component"
10
9
  export * from "#types/mapping"
@@ -16,8 +16,9 @@
16
16
  * schema natively distinguishes them.
17
17
  */
18
18
 
19
+ import type { ComponentTag } from "@mailwoman/codex/component"
20
+
19
21
  import type { Classification } from "#types/Classification"
20
- import type { ComponentTag } from "#types/component"
21
22
 
22
23
  /**
23
24
  * Static mapping table. Tags not in this table map to `null` (treated as "not a component" — internal classifier
@@ -0,0 +1,104 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The root manifest's `workspaces` field, expanded to the directories it names. Yarn accepts globs in that field and
7
+ * the repository writes `packages/*` beside the literal `docs`; every reader that walks the workspaces goes through
8
+ * here so a glob is expanded once, the same way, and a literal entry that names no manifest is an error rather than
9
+ * an empty result. Only a single trailing `*` segment is supported: the repository never writes another shape, and
10
+ * a pattern this reader cannot expand must refuse, because "matched nothing" would read as "no workspaces".
11
+ */
12
+
13
+ import { type PathBuilderLike, resolvePath } from "path-ts"
14
+ import { Globerator } from "spliterator/node/fs"
15
+
16
+ import { tryStat } from "#fs/readers"
17
+ import { readPackageJSON } from "#module/resolve-from"
18
+
19
+ const TRAILING_STAR = /^(?<parent>[^*]+)\/\*$/u
20
+
21
+ async function isWorkspaceDirectory(repoRoot: PathBuilderLike, directory: string): Promise<boolean> {
22
+ return (await tryStat(resolvePath(repoRoot, directory, "package.json"))) !== null
23
+ }
24
+
25
+ export interface ReadWorkspaceDirectoriesOptions {
26
+ /**
27
+ * Skip a literal entry whose directory carries no manifest instead of failing. A checkout at an older ref may predate
28
+ * a workspace the field names; a reader that resolves that ref's own tree wants absence, not an error.
29
+ *
30
+ * @default false
31
+ */
32
+ tolerateMissing?: boolean
33
+ }
34
+
35
+ /**
36
+ * Repo-relative workspace directories, in the field's order: a literal entry stays where it is, and a `parent/*` entry
37
+ * expands to every child of `parent` that carries a `package.json`, sorted by name.
38
+ */
39
+ export async function readWorkspaceDirectories(
40
+ repoRoot: PathBuilderLike,
41
+ options: ReadWorkspaceDirectoriesOptions = {}
42
+ ): Promise<string[]> {
43
+ const manifest = await readPackageJSON(resolvePath(repoRoot, "package.json"))
44
+ // The field is either the pattern array or yarn's object form, which nests the same patterns under `packages`.
45
+ const entries = Array.isArray(manifest.workspaces) ? manifest.workspaces : (manifest.workspaces?.packages ?? [])
46
+
47
+ if (!entries.length) throw new Error(`${resolvePath(repoRoot, "package.json")} declares no workspaces`)
48
+
49
+ const directories: string[] = []
50
+
51
+ for (const entry of entries) {
52
+ if (!entry.includes("*")) {
53
+ if (!(await isWorkspaceDirectory(repoRoot, entry))) {
54
+ if (options.tolerateMissing) continue
55
+
56
+ throw new Error(`workspace ${entry} has no package.json under ${String(repoRoot)}`)
57
+ }
58
+
59
+ directories.push(entry)
60
+
61
+ continue
62
+ }
63
+
64
+ const parent = TRAILING_STAR.exec(entry)?.groups?.["parent"]
65
+
66
+ if (!parent) throw new Error(`workspace pattern ${JSON.stringify(entry)} is not a single trailing "*" segment`)
67
+
68
+ // Only a directory can be a workspace; a file beside them (a README) is skipped before anything is stat-ed under it.
69
+ const children = (
70
+ await Globerator.from("*", {
71
+ cwd: resolvePath(repoRoot, parent),
72
+ withFileTypes: true,
73
+ onlyFiles: false,
74
+ }).toArray()
75
+ )
76
+ .filter((dirent) => dirent.isDirectory())
77
+ .map((dirent) => dirent.name)
78
+ .toSorted()
79
+
80
+ const matched: string[] = []
81
+
82
+ for (const child of children) {
83
+ const directory = `${parent}/${child}`
84
+
85
+ if (await isWorkspaceDirectory(repoRoot, directory)) {
86
+ matched.push(directory)
87
+ }
88
+ }
89
+
90
+ if (!matched.length)
91
+ throw new Error(`workspace pattern ${JSON.stringify(entry)} matched no directory with a package.json`)
92
+
93
+ directories.push(...matched)
94
+ }
95
+
96
+ return [...new Set(directories)]
97
+ }
98
+
99
+ /**
100
+ * True when `directory` is one of the workspaces the field names, expanded.
101
+ */
102
+ export async function isRegisteredWorkspace(repoRoot: PathBuilderLike, directory: string): Promise<boolean> {
103
+ return (await readWorkspaceDirectories(repoRoot)).includes(directory)
104
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"APIClient.d.ts","sourceRoot":"","sources":["../../lib/api/APIClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAc,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAA;AACxH,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAEjB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,YAAY,CAAA;AAGxD,OAAO,EAKN,KAAK,YAAY,EACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAOpD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IAEtB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAE7B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,YAAY,GAAG,OAAO,CAAA;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAA;CAC3B;AAED;;;GAGG;AACH,qBAAa,SAAS,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CA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,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC5C,SAAgB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,SAAgB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;gBAE9B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB;CAW1D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAgBjF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM3E"}
1
+ {"version":3,"file":"arcgis.d.ts","sourceRoot":"","sources":["../../lib/api/arcgis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,mBAAmB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC5C,SAAgB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,SAAgB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IAE1C,YAAY,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAUzD;CACD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAgBjF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../lib/api/defaults.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC/B;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;CAEM,CAAA"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../lib/api/defaults.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC/B;;;OAGG;aACH,WAAW,EAAE,CAAC;IACd;;;OAGG;aACH,gBAAgB,EAAE,GAAG;IACrB;;;OAGG;aACH,gBAAgB,EAAE,KAAM;CACf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"headless.d.ts","sourceRoot":"","sources":["../../lib/api/headless.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS;IACrB;;OAEG;;CAGM,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
1
+ {"version":3,"file":"headless.d.ts","sourceRoot":"","sources":["../../lib/api/headless.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS;IACrB;;OAEG;aACH,UAAU,EACT,qHAAqH;CAC7G,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ogc.d.ts","sourceRoot":"","sources":["../../lib/api/ogc.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG/C;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACzC,SAAgB,gBAAgB,EAAE,MAAM,CAAA;gBAE5B,OAAO,EAAE,MAAM,EAAE,gBAAgB,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,MAAM,CAAC,CAAC,CAkB3C;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/E,OAAO,CAAC,MAAM,CAAC,CAkCjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"paced-client.js","sourceRoot":"","sources":["../../lib/api/paced-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AA8BzC;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACtC,IAA6C,EAC7C,OAAiC,EACjC,UAA0C,EAAE;IAE5C,OAAO,IAAI,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,IAAI,OAAO,CAAC,oBAAoB;QAClF,KAAK,EAAE,IAAI;QACX,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,OAAO,EAAE;YACR,GAAG,EAAE,OAAO,CAAC,UAAU;YACvB,OAAO,EAAE,gBAAgB,CAAC;gBACzB,SAAS,EAAE,OAAO,CAAC,cAAc,IAAI,MAAM,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;aACpF,CAAC;SACF;KACD,CAAC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"paced-client.js","sourceRoot":"","sources":["../../lib/api/paced-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AA8BzC;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACtC,IAA6C,EAC7C,OAAiC,EACjC,OAAO,GAAmC,EAAE;IAE5C,OAAO,IAAI,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,IAAI,OAAO,CAAC,oBAAoB;QAClF,KAAK,EAAE,IAAI;QACX,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,OAAO,EAAE;YACR,GAAG,EAAE,OAAO,CAAC,UAAU;YACvB,OAAO,EAAE,gBAAgB,CAAC;gBACzB,SAAS,EAAE,OAAO,CAAC,cAAc,IAAI,MAAM,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;aACpF,CAAC;SACF;KACD,CAAC,CAAA;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pacer.d.ts","sourceRoot":"","sources":["../../lib/api/pacer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,YAAY,CAAA;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,YAAY;;IAKxB;;;;OAIG;gBACS,UAAU,EAAE,MAAM,EAAE,KAAK,GAAE,SAAuB;IAa9D;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAYrC"}
1
+ {"version":3,"file":"pacer.d.ts","sourceRoot":"","sources":["../../lib/api/pacer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,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UlH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;IAC7B;;;OAGG;aACH,OAAO,EAAE,SAAS;IAClB;;OAEG;aACH,QAAQ,EAAE,UAAU;IACpB;;;OAGG;aACH,OAAO,EAAE,SAAS;IAClB;;;;;;OAMG;aACH,OAAO,EAAE,SAAS;CACT,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAA;AAY1F;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,GAAG,IAAI,CAc1E;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAWhE;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAwFvE"}
@@ -90,4 +90,4 @@ export declare class VirtualClock implements ClockLike {
90
90
  * `(anchor - windowMs, anchor]` at each timestamp — the conventional "requests in the last N ms" definition.
91
91
  */
92
92
  export declare function maxCountInSlidingWindow(timestamps: number[], windowMs: number): number;
93
- //# sourceMappingURL=test-clocks.d.ts.map
93
+ //# sourceMappingURL=clocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clocks.d.ts","sourceRoot":"","sources":["../../../lib/api/test/clocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAkC3C;;;GAGG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAI/C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAInD;AAED;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,SAAI,GAAG,SAAS,CAetD;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,YAAa,YAAW,SAAS;;IAG7C,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAK;IAE3B,GAAG,IAAI,MAAM,CAEnB;IAEM,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAMtC;IAED;;;;;;;;;;OAUG;IACU,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB9C;IAED;;;;;;;;;;;;OAYG;IACU,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CA+D5D;CA2BD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUtF"}
@@ -215,4 +215,4 @@ export function maxCountInSlidingWindow(timestamps, windowMs) {
215
215
  }
216
216
  return max;
217
217
  }
218
- //# sourceMappingURL=test-clocks.js.map
218
+ //# sourceMappingURL=clocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clocks.js","sourceRoot":"","sources":["../../../lib/api/test/clocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH;;;;;;;;;;;;;;GAcG;AACH,MAAM,cAAc,GAAG,IAAI,CAAA;AAE3B;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,EAAE,CAAA;AAE1B;;GAEG;AACH,MAAM,eAAe,GAAG,CAAC,CAAA;AAEzB;;;GAGG;AACH,MAAM,UAAU,eAAe;IAC9B,OAAO,IAAI,OAAO,CAAO,C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