@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
@@ -1 +1 @@
1
- {"version":3,"file":"validate-tree.d.ts","sourceRoot":"","sources":["../../lib/decoder/validate-tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD;;;;;;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"}
1
+ {"version":3,"file":"validate-tree.d.ts","sourceRoot":"","sources":["../../lib/decoder/validate-tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAG9D,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE9D;;;;;;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-tree.js","sour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CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACxF,UAAU,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,oBAAoB;gBAC1B,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,4BAA4B,OAAO,CAAC,IAAI,CAAC,IAAI,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"}
@@ -26,10 +26,10 @@ export declare const $public: Record<never, never> & {
26
26
  MAILWOMAN_CONFIG_ROOT: string;
27
27
  MAILWOMAN_CACHE_ROOT: string;
28
28
  MAILWOMAN_TEMP_ROOT: string;
29
+ MAILWOMAN_COARSE_PLACER_DIR?: string | undefined;
29
30
  MAILWOMAN_DOCS_URL?: string | undefined;
30
31
  MAILWOMAN_LICENSE_KEY?: string | undefined;
31
32
  MAILWOMAN_LICENSE_URL?: string | undefined;
32
- MAILWOMAN_COARSE_PLACER_DIR?: string | undefined;
33
33
  };
34
34
  /**
35
35
  * Privately accessible environment — secrets and credentials. Do NOT log. Core reads none itself, so this view is
@@ -12,14 +12,14 @@ import { z } from "zod";
12
12
  * on parse.
13
13
  */
14
14
  export declare const PublicEnvSchema: z.ZodObject<{
15
- MAILWOMAN_DOCS_URL: z.ZodOptional<z.ZodString>;
16
- MAILWOMAN_LICENSE_KEY: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
17
- MAILWOMAN_LICENSE_URL: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
18
- MAILWOMAN_COARSE_PLACER_DIR: z.ZodOptional<z.ZodString>;
19
15
  MAILWOMAN_DATA_ROOT: z.ZodPreprocess<z.ZodDefault<z.ZodString>, unknown>;
20
16
  MAILWOMAN_CONFIG_ROOT: z.ZodPreprocess<z.ZodDefault<z.ZodString>, unknown>;
21
17
  MAILWOMAN_CACHE_ROOT: z.ZodPreprocess<z.ZodDefault<z.ZodString>, unknown>;
22
18
  MAILWOMAN_TEMP_ROOT: z.ZodPreprocess<z.ZodDefault<z.ZodString>, unknown>;
19
+ MAILWOMAN_COARSE_PLACER_DIR: z.ZodOptional<z.ZodString>;
20
+ MAILWOMAN_DOCS_URL: z.ZodOptional<z.ZodString>;
21
+ MAILWOMAN_LICENSE_KEY: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
22
+ MAILWOMAN_LICENSE_URL: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
23
23
  }, z.core.$strip>;
24
24
  /**
25
25
  * Secrets core reads, exposed via `$private`. Core reads none: this is the base every package's private view extends,
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../lib/errors/schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;GAEG;AACH,MAAM,MAAM,8BAA8B,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAE5F,QAAA,MAAM,cAAc,oBAAoB,CAAA;AAExC;;GAEG;AACH,qBAAa,aAAa,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,KAAK;IAC5E,MAA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CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM;SACpD,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACjB,CAAC;IAED;;;;OAIG;IACI,SAAS,CAAC,KAAa,EAAE,OAA8B;QAC7D,IAAI,KAAK,GAAG,KAAK,CAAA;QACjB,IAAI,IAAI,GAAG,CAAC,CAAA;QAEZ,+EAA+E;QAC/E,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,IAAI,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7E,KAAK,IAAI,IAAI,CAAA;YAEb,IAAI,EAAE,CAAA;QACP,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,OAAO,EAAE;YACzE,qBAAqB,EAAE,CAAC;YACxB,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM;SACpD,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAEhB,OAAO,GAAG,SAAS,IAAI,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAA;IACvD,CAAC;CACD"}
@@ -0,0 +1,126 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @file Filesystem metadata readers.
5
+ */
6
+ import type { Dirent, Mode, Stats } from "node:fs";
7
+ import { type FileHandle } from "node:fs/promises";
8
+ import { type PathBuilderLike } from "path-ts";
9
+ import { type ByteFormatterOptions } from "#fs/formatters";
10
+ /**
11
+ * Attempts to stat a file or directory.
12
+ *
13
+ * A `URL` is passed through rather than stringified: `node:fs` accepts a `file:` URL object, and rejects the string it
14
+ * prints — `stat("file:///etc/hostname")` is ENOENT, which this function reports as absence. Every caller that looks a
15
+ * file up by URL therefore read "not there" for everything, and `cli-native/command-router.ts` answered `Unknown
16
+ * command` for every command it has.
17
+ *
18
+ * @throws If the path exists but cannot be statted for some reason other than non-existence.
19
+ */
20
+ export declare function tryStat(pathBuilderLike: PathBuilderLike | URL): Promise<Stats | null>;
21
+ /**
22
+ * Stat a file or directory, raising ENOENT when nothing is there.
23
+ *
24
+ * The throwing counterpart to {@linkcode tryStat}. Reach for this one where absence is a defect the caller wants
25
+ * reported, and for {@linkcode tryStat} where absence is an answer.
26
+ */
27
+ export declare function statPath(path: PathBuilderLike | URL): Promise<Stats>;
28
+ /**
29
+ * Stat a path without following a symbolic link, so the answer describes the link itself.
30
+ */
31
+ export declare function statLink(path: PathBuilderLike | URL): Promise<Stats>;
32
+ /**
33
+ * Stat a path without following a symbolic link, answering `null` when nothing is there.
34
+ *
35
+ * The link-level counterpart to {@linkcode tryStat}.
36
+ */
37
+ export declare function tryStatLink(path: PathBuilderLike | URL): Promise<Stats | null>;
38
+ /**
39
+ * Whether a path exists, whatever it is.
40
+ *
41
+ * The asynchronous answer to `existsSync`, which is the single most-called synchronous builtin in the repository.
42
+ * Prefer {@linkcode isFile} or {@linkcode isDirectory} where the caller goes on to assume one or the other: a directory
43
+ * where a file was expected passes this check and fails the next line.
44
+ */
45
+ export declare function pathExists(path: PathBuilderLike | URL): Promise<boolean>;
46
+ /**
47
+ * Assert that a path exists, throwing an error if it does not.
48
+ */
49
+ export declare function assertPathExists(path: PathBuilderLike | URL, message?: string): Promise<void>;
50
+ /**
51
+ * Whether a path exists and is a directory.
52
+ */
53
+ export declare function isDirectory(path: PathBuilderLike | URL): Promise<boolean>;
54
+ /**
55
+ * Assert that a path exists and is a directory, throwing an error if it does not.
56
+ *
57
+ * @category Files
58
+ * @throws AssertionError if the path does not exist or is not a directory.
59
+ * @runtime node
60
+ */
61
+ export declare function assertIsDirectory(path: PathBuilderLike | URL, message?: string): Promise<void>;
62
+ /**
63
+ * Whether a path exists and is a file.
64
+ */
65
+ export declare function isFile(path: PathBuilderLike | URL): Promise<boolean>;
66
+ /**
67
+ * Whether a path exists and is a symbolic link.
68
+ */
69
+ export declare function isSymbolicLink(path: PathBuilderLike | URL): Promise<boolean>;
70
+ /**
71
+ * Whether a directory entry leads to a directory, symbolic links included.
72
+ *
73
+ * `Dirent.isDirectory()` is FALSE for a symbolic link to a directory, so a walk keyed on it alone skips every linked
74
+ * tree. A glob only descends into them when its `followSymlinks` option is `true`; a caller that walks links must use
75
+ * this helper so both traversals describe the same tree. A link is resolved through `stat`, which also answers `false`
76
+ * for a dangling one.
77
+ */
78
+ export declare function entryLeadsToDirectory(entry: Dirent): Promise<boolean>;
79
+ /**
80
+ * The size of a file in bytes.
81
+ *
82
+ * @throws ENOENT when the file does not exist.
83
+ */
84
+ export declare function readFileSize(path: PathBuilderLike | URL): Promise<number>;
85
+ /**
86
+ * The size of a file, rendered in IEC units (`12.3 MiB`) — the unit for anything a machine measured.
87
+ *
88
+ * @throws ENOENT when the file does not exist.
89
+ */
90
+ export declare function formatFileSize(path: PathBuilderLike | URL, options?: ByteFormatterOptions): Promise<string>;
91
+ /**
92
+ * Resolve a path to its canonical location, following every symbolic link.
93
+ *
94
+ * @throws ENOENT when nothing is there. {@linkcode tryRealPath} answers `null` instead.
95
+ */
96
+ export declare function realPath(path: PathBuilderLike): Promise<string>;
97
+ /**
98
+ * Resolve a path to its canonical location, following every symbolic link.
99
+ *
100
+ * @returns The canonical path, or `null` when nothing is there.
101
+ */
102
+ export declare function tryRealPath(path: PathBuilderLike): Promise<string | null>;
103
+ export declare function open(path: PathBuilderLike | URL, flags?: string | number, mode?: Mode): Promise<FileHandle>;
104
+ /**
105
+ * The target a symbolic link points at, verbatim — relative if it was written relative.
106
+ *
107
+ * @throws EINVAL when the path is not a link, ENOENT when nothing is there.
108
+ */
109
+ export declare function readLink(path: PathBuilderLike): Promise<string>;
110
+ /**
111
+ * Whether the process may WRITE to a path.
112
+ *
113
+ * A permission question, not an existence one: `access` answers about the caller's credentials against the file as it
114
+ * stands, where a stat answers about the file. Absence reads as `false` here, which is what a caller checking "can I
115
+ * write here" means by it.
116
+ */
117
+ export declare function isWritable(path: PathBuilderLike): Promise<boolean>;
118
+ /**
119
+ * Whether the process may EXECUTE a path.
120
+ */
121
+ export declare function isExecutable(path: PathBuilderLike): Promise<boolean>;
122
+ /**
123
+ * A `file:` URL is passed through whole: `node:fs` accepts the object and rejects the string it prints.
124
+ */
125
+ export declare function asTarget(path: PathBuilderLike | URL): URL | string;
126
+ //# sourceMappingURL=stat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stat.d.ts","sourceRoot":"","sources":["../../../lib/fs/readers/stat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAQN,KAAK,UAAU,EACf,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAIzE;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,eAAe,EAAE,eAAe,GAAG,GAAG,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAQrF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAEpE;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAEpE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAM9E;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAExE;AAED;;GAEG;AACH,wBA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,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAE3G;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAE/D;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAKlE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAKpE;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAElE"}
@@ -0,0 +1,202 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @file Filesystem metadata readers.
5
+ */
6
+ import { AssertionError } from "node:assert";
7
+ import { open as openNative, access, constants, lstat, readlink, realpath, stat, } from "node:fs/promises";
8
+ import { resolvePath } from "path-ts";
9
+ import { ByteFormatter } from "#fs/formatters";
10
+ // #region Stat utils
11
+ /**
12
+ * Attempts to stat a file or directory.
13
+ *
14
+ * A `URL` is passed through rather than stringified: `node:fs` accepts a `file:` URL object, and rejects the string it
15
+ * prints — `stat("file:///etc/hostname")` is ENOENT, which this function reports as absence. Every caller that looks a
16
+ * file up by URL therefore read "not there" for everything, and `cli-native/command-router.ts` answered `Unknown
17
+ * command` for every command it has.
18
+ *
19
+ * @throws If the path exists but cannot be statted for some reason other than non-existence.
20
+ */
21
+ export function tryStat(pathBuilderLike) {
22
+ const target = pathBuilderLike instanceof URL ? pathBuilderLike : pathBuilderLike.toString();
23
+ return stat(target).catch((error) => {
24
+ if (error.code === "ENOENT")
25
+ return null;
26
+ throw error;
27
+ });
28
+ }
29
+ /**
30
+ * Stat a file or directory, raising ENOENT when nothing is there.
31
+ *
32
+ * The throwing counterpart to {@linkcode tryStat}. Reach for this one where absence is a defect the caller wants
33
+ * reported, and for {@linkcode tryStat} where absence is an answer.
34
+ */
35
+ export function statPath(path) {
36
+ return stat(path instanceof URL ? path : path.toString());
37
+ }
38
+ /**
39
+ * Stat a path without following a symbolic link, so the answer describes the link itself.
40
+ */
41
+ export function statLink(path) {
42
+ return lstat(path instanceof URL ? path : path.toString());
43
+ }
44
+ /**
45
+ * Stat a path without following a symbolic link, answering `null` when nothing is there.
46
+ *
47
+ * The link-level counterpart to {@linkcode tryStat}.
48
+ */
49
+ export function tryStatLink(path) {
50
+ return lstat(path instanceof URL ? path : path.toString()).catch((error) => {
51
+ if (error.code === "ENOENT")
52
+ return null;
53
+ throw error;
54
+ });
55
+ }
56
+ /**
57
+ * Whether a path exists, whatever it is.
58
+ *
59
+ * The asynchronous answer to `existsSync`, which is the single most-called synchronous builtin in the repository.
60
+ * Prefer {@linkcode isFile} or {@linkcode isDirectory} where the caller goes on to assume one or the other: a directory
61
+ * where a file was expected passes this check and fails the next line.
62
+ */
63
+ export function pathExists(path) {
64
+ return tryStat(path).then((stats) => stats !== null);
65
+ }
66
+ /**
67
+ * Assert that a path exists, throwing an error if it does not.
68
+ */
69
+ export function assertPathExists(path, message) {
70
+ return pathExists(path).then((exists) => {
71
+ if (exists)
72
+ return void 0;
73
+ throw new AssertionError({
74
+ message: message ?? `Expected path to exist`,
75
+ expected: path.toString(),
76
+ actual: "not found",
77
+ });
78
+ });
79
+ }
80
+ /**
81
+ * Whether a path exists and is a directory.
82
+ */
83
+ export function isDirectory(path) {
84
+ return tryStat(path).then((stats) => stats?.isDirectory() ?? false);
85
+ }
86
+ /**
87
+ * Assert that a path exists and is a directory, throwing an error if it does not.
88
+ *
89
+ * @category Files
90
+ * @throws AssertionError if the path does not exist or is not a directory.
91
+ * @runtime node
92
+ */
93
+ export function assertIsDirectory(path, message) {
94
+ return statPath(path).then((stats) => {
95
+ if (stats.isDirectory()) {
96
+ return void 0;
97
+ }
98
+ throw new AssertionError({
99
+ message: message ?? `Expected path to be a directory`,
100
+ expected: path.toString(),
101
+ actual: "not a directory",
102
+ });
103
+ });
104
+ }
105
+ /**
106
+ * Whether a path exists and is a file.
107
+ */
108
+ export function isFile(path) {
109
+ return tryStat(path).then((stats) => stats?.isFile() ?? false);
110
+ }
111
+ /**
112
+ * Whether a path exists and is a symbolic link.
113
+ */
114
+ export function isSymbolicLink(path) {
115
+ return tryStatLink(path).then((stats) => stats?.isSymbolicLink() ?? false);
116
+ }
117
+ /**
118
+ * Whether a directory entry leads to a directory, symbolic links included.
119
+ *
120
+ * `Dirent.isDirectory()` is FALSE for a symbolic link to a directory, so a walk keyed on it alone skips every linked
121
+ * tree. A glob only descends into them when its `followSymlinks` option is `true`; a caller that walks links must use
122
+ * this helper so both traversals describe the same tree. A link is resolved through `stat`, which also answers `false`
123
+ * for a dangling one.
124
+ */
125
+ export function entryLeadsToDirectory(entry) {
126
+ if (entry.isDirectory())
127
+ return Promise.resolve(true);
128
+ if (!entry.isSymbolicLink())
129
+ return Promise.resolve(false);
130
+ return isDirectory(resolvePath(entry.parentPath, entry.name));
131
+ }
132
+ /**
133
+ * The size of a file in bytes.
134
+ *
135
+ * @throws ENOENT when the file does not exist.
136
+ */
137
+ export function readFileSize(path) {
138
+ return statPath(path).then((stats) => stats.size);
139
+ }
140
+ /**
141
+ * The size of a file, rendered in IEC units (`12.3 MiB`) — the unit for anything a machine measured.
142
+ *
143
+ * @throws ENOENT when the file does not exist.
144
+ */
145
+ export async function formatFileSize(path, options) {
146
+ return ByteFormatter.formatIEC(await readFileSize(path), options);
147
+ }
148
+ /**
149
+ * Resolve a path to its canonical location, following every symbolic link.
150
+ *
151
+ * @throws ENOENT when nothing is there. {@linkcode tryRealPath} answers `null` instead.
152
+ */
153
+ export function realPath(path) {
154
+ return realpath(path.toString());
155
+ }
156
+ /**
157
+ * Resolve a path to its canonical location, following every symbolic link.
158
+ *
159
+ * @returns The canonical path, or `null` when nothing is there.
160
+ */
161
+ export function tryRealPath(path) {
162
+ return realpath(path.toString()).catch((error) => {
163
+ if (error.code === "ENOENT")
164
+ return null;
165
+ throw error;
166
+ });
167
+ }
168
+ export function open(path, flags, mode) {
169
+ return openNative(path instanceof URL ? path : path.toString(), flags, mode);
170
+ }
171
+ /**
172
+ * The target a symbolic link points at, verbatim — relative if it was written relative.
173
+ *
174
+ * @throws EINVAL when the path is not a link, ENOENT when nothing is there.
175
+ */
176
+ export function readLink(path) {
177
+ return readlink(path.toString());
178
+ }
179
+ /**
180
+ * Whether the process may WRITE to a path.
181
+ *
182
+ * A permission question, not an existence one: `access` answers about the caller's credentials against the file as it
183
+ * stands, where a stat answers about the file. Absence reads as `false` here, which is what a caller checking "can I
184
+ * write here" means by it.
185
+ */
186
+ export function isWritable(path) {
187
+ return access(path.toString(), constants.W_OK).then(() => true, () => false);
188
+ }
189
+ /**
190
+ * Whether the process may EXECUTE a path.
191
+ */
192
+ export function isExecutable(path) {
193
+ return access(path.toString(), constants.X_OK).then(() => true, () => false);
194
+ }
195
+ /**
196
+ * A `file:` URL is passed through whole: `node:fs` accepts the object and rejects the string it prints.
197
+ */
198
+ export function asTarget(path) {
199
+ return path instanceof URL ? path : path.toString();
200
+ }
201
+ // #endregion
202
+ //# sourceMappingURL=stat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stat.js","sourceRoot":"","sources":["../../../lib/fs/readers/stat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EACN,IAAI,IAAI,UAAU,EAClB,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,GAEJ,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAwB,WAAW,EAAE,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAE,aAAa,EAA6B,MAAM,gBAAgB,CAAA;AAEzE,qBAAqB;AAErB;;;;;;;;;GASG;AACH,MAAM,UAAU,OAAO,CAAC,eAAsC;IAC7D,MAAM,MAAM,GAAG,eA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UAAU,IAAI,CAAC,IAA2B,EAAE,KAAuB,EAAE,IAAW;IACrF,OAAO,UAAU,CAAC,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAC7E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAqB;IAC7C,OAAO,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;AACjC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,IAAqB;IAC/C,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAClD,GAAG,EAAE,CAAC,IAAI,EACV,GAAG,EAAE,CAAC,KAAK,CACX,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,IAAqB;IACjD,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAClD,GAAG,EAAE,CAAC,IAAI,EACV,GAAG,EAAE,CAAC,KAAK,CACX,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,IAA2B;IACnD,OAAO,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAA;AACpD,CAAC;AAED,aAAa"}
@@ -7,118 +7,10 @@
7
7
  * `node:fs` is reached from this directory alone, and every reader answers a promise: no executable repository
8
8
  * code makes a blocking filesystem call, and the `debt` check in `packages/repo-health` counts any that appears.
9
9
  */
10
- import type { Dirent, Mode, Stats } from "node:fs";
11
- import { type FileHandle } from "node:fs/promises";
12
10
  import { type PathBuilderLike } from "path-ts";
13
- import { type ByteFormatterOptions } from "#fs/formatters";
11
+ export * from "#fs/readers/stat";
14
12
  export type { Dirent, PathLike, Stats } from "node:fs";
15
13
  export type { FileHandle } from "node:fs/promises";
16
- /**
17
- * Attempts to stat a file or directory.
18
- *
19
- * A `URL` is passed through rather than stringified: `node:fs` accepts a `file:` URL object, and rejects the string it
20
- * prints — `stat("file:///etc/hostname")` is ENOENT, which this function reports as absence. Every caller that looks a
21
- * file up by URL therefore read "not there" for everything, and `cli-native/command-router.ts` answered `Unknown
22
- * command` for every command it has.
23
- *
24
- * @throws If the path exists but cannot be statted for some reason other than non-existence.
25
- */
26
- export declare function tryStat(pathBuilderLike: PathBuilderLike | URL): Promise<Stats | null>;
27
- /**
28
- * Stat a file or directory, raising ENOENT when nothing is there.
29
- *
30
- * The throwing counterpart to {@linkcode tryStat}. Reach for this one where absence is a defect the caller wants
31
- * reported, and for {@linkcode tryStat} where absence is an answer.
32
- */
33
- export declare function statPath(path: PathBuilderLike | URL): Promise<Stats>;
34
- /**
35
- * Stat a path without following a symbolic link, so the answer describes the link itself.
36
- */
37
- export declare function statLink(path: PathBuilderLike | URL): Promise<Stats>;
38
- /**
39
- * Stat a path without following a symbolic link, answering `null` when nothing is there.
40
- *
41
- * The link-level counterpart to {@linkcode tryStat}.
42
- */
43
- export declare function tryStatLink(path: PathBuilderLike | URL): Promise<Stats | null>;
44
- /**
45
- * Whether a path exists, whatever it is.
46
- *
47
- * The asynchronous answer to `existsSync`, which is the single most-called synchronous builtin in the repository.
48
- * Prefer {@linkcode isFile} or {@linkcode isDirectory} where the caller goes on to assume one or the other: a directory
49
- * where a file was expected passes this check and fails the next line.
50
- */
51
- export declare function pathExists(path: PathBuilderLike | URL): Promise<boolean>;
52
- /**
53
- * Whether a path exists and is a directory.
54
- */
55
- export declare function isDirectory(path: PathBuilderLike | URL): Promise<boolean>;
56
- /**
57
- * Whether a path exists and is a file.
58
- */
59
- export declare function isFile(path: PathBuilderLike | URL): Promise<boolean>;
60
- /**
61
- * Whether a path exists and is a symbolic link.
62
- */
63
- export declare function isSymbolicLink(path: PathBuilderLike | URL): Promise<boolean>;
64
- /**
65
- * Whether a directory entry leads to a directory, symbolic links included.
66
- *
67
- * `Dirent.isDirectory()` is FALSE for a symbolic link to a directory, so a walk keyed on it alone skips every linked
68
- * tree — while a glob with `followSymbolicLinks` (the default) descends into them, and the two then describe different
69
- * trees. A link is resolved through `stat`, which also answers `false` for a dangling one.
70
- */
71
- export declare function entryLeadsToDirectory(entry: Dirent): Promise<boolean>;
72
- /**
73
- * The size of a file in bytes.
74
- *
75
- * @throws ENOENT when the file does not exist.
76
- */
77
- export declare function readFileSize(path: PathBuilderLike | URL): Promise<number>;
78
- /**
79
- * The size of a file, rendered in IEC units (`12.3 MiB`) — the unit for anything a machine measured.
80
- *
81
- * @throws ENOENT when the file does not exist.
82
- */
83
- export declare function formatFileSize(path: PathBuilderLike | URL, options?: ByteFormatterOptions): Promise<string>;
84
- /**
85
- * Resolve a path to its canonical location, following every symbolic link.
86
- *
87
- * @throws ENOENT when nothing is there. {@linkcode tryRealPath} answers `null` instead.
88
- */
89
- export declare function realPath(path: PathBuilderLike): Promise<string>;
90
- /**
91
- * Resolve a path to its canonical location, following every symbolic link.
92
- *
93
- * @returns The canonical path, or `null` when nothing is there.
94
- */
95
- export declare function tryRealPath(path: PathBuilderLike): Promise<string | null>;
96
- export declare function open(path: PathBuilderLike | URL, flags?: string | number, mode?: Mode): Promise<FileHandle>;
97
- /**
98
- * The target a symbolic link points at, verbatim — relative if it was written relative.
99
- *
100
- * @throws EINVAL when the path is not a link, ENOENT when nothing is there.
101
- */
102
- export declare function readLink(path: PathBuilderLike): Promise<string>;
103
- /**
104
- * Whether the process may WRITE to a path.
105
- *
106
- * A permission question, not an existence one: `access` answers about the caller's credentials against the file as it
107
- * stands, where a stat answers about the file. Absence reads as `false` here, which is what a caller checking "can I
108
- * write here" means by it.
109
- */
110
- export declare function isWritable(path: PathBuilderLike): Promise<boolean>;
111
- /**
112
- * Whether the process may EXECUTE a path.
113
- */
114
- export declare function isExecutable(path: PathBuilderLike): Promise<boolean>;
115
- /**
116
- * Every path matching a glob pattern.
117
- *
118
- * Sorted, because `glob` answers in directory order and a build that names its inputs in a receipt should name them the
119
- * same way twice.
120
- */
121
- export declare function globPaths(pattern: string | string[]): Promise<string[]>;
122
14
  /**
123
15
  * Read the first `byteSize` bytes of a file, or the whole file if it is smaller.
124
16
  *
@@ -144,66 +36,41 @@ export declare function readFileRange(path: PathBuilderLike, offset: number, len
144
36
  /**
145
37
  * Read a local text file.
146
38
  *
147
- * @category Node
148
39
  * @category Files
40
+ * @runtime node
149
41
  */
150
42
  export declare function readLocalTextFile<S extends Array<PathBuilderLike | URL>>(...pathSegments: S): Promise<string>;
43
+ /**
44
+ * @deprecated Use `readPackageJSONFile` instead
45
+ */
46
+ export declare function readLocalJSONFile<_T = Record<string, unknown>>(path: `${string}/package.json`): Promise<never>;
151
47
  /**
152
48
  * Read a local JSON file.
153
49
  *
154
50
  * Parsing is strict: a file that is not JSON throws here rather than answering `undefined` several frames later.
155
51
  *
156
- * @category Node
157
52
  * @category Files
53
+ * @runtime node
54
+ * @see `readPackageJSON` in `#module/resolve-from` for a `package.json`, which answers the manifest shape and takes a
55
+ * package name as readily as a path.
158
56
  */
159
57
  export declare function readLocalJSONFile<T = Record<string, unknown>, S extends Array<PathBuilderLike | URL> = Array<PathBuilderLike | URL>>(...pathSegments: S): Promise<T>;
160
58
  /**
161
- * Read a local file's bytes.
59
+ * Read a local JSON file, answering `null` when the file does not exist.
162
60
  *
163
- * @category Node
164
- * @category Files
165
- */
166
- export declare function readLocalBuffer<S extends Array<PathBuilderLike | URL>>(...pathSegments: S): Promise<Buffer>;
167
- /**
168
- * List the entry names directly inside a directory.
61
+ * Parsing is strict: a file that is not JSON throws here rather than answering `null` several frames later.
169
62
  *
170
- * @category Node
171
63
  * @category Files
64
+ * @runtime node
172
65
  */
173
- export declare function readDirectory(path: PathBuilderLike | URL): Promise<string[]>;
66
+ export declare function tryReadLocalJSONFile<T = Record<string, unknown>, S extends Array<PathBuilderLike | URL> = Array<PathBuilderLike | URL>>(...pathSegments: S): Promise<T | null>;
174
67
  /**
175
- * List a directory's entries with their types, so a caller can tell a file from a directory without a stat apiece.
176
- *
177
- * @category Node
178
- * @category Files
179
- */
180
- export declare function readDirectoryEntries(path: PathBuilderLike | URL): Promise<Dirent[]>;
181
- /**
182
- * List every entry under a directory, at any depth, as paths relative to it.
183
- *
184
- * The recursive counterpart to {@linkcode readDirectory}. It walks the whole tree before answering, so it is the wrong
185
- * reader for a directory whose size is unknown — reach for it where the tree is a build artifact you produced.
186
- *
187
- * @category Node
188
- * @category Files
189
- */
190
- export declare function readDirectoryRecursive(path: PathBuilderLike | URL): Promise<string[]>;
191
- /**
192
- * List every entry under a directory, at any depth, WITH its type — `Dirent.parentPath` names the directory each was
193
- * found in, which a plain recursive read leaves the caller to reconstruct.
194
- */
195
- export declare function readDirectoryEntriesRecursive(path: PathBuilderLike | URL): Promise<Dirent[]>;
196
- /**
197
- * List a directory's entry names, answering an empty list when the directory does not exist.
198
- *
199
- * The distinction is the caller's to make and this function makes ONE of the two available: an absent directory and an
200
- * empty one are the same answer here. Where absence means something — an unbuilt artifact, a missing extract — use
201
- * {@linkcode readDirectory} and let the ENOENT reach you.
68
+ * Read a local file's bytes.
202
69
  *
203
- * @category Node
204
70
  * @category Files
71
+ * @runtime node
205
72
  */
206
- export declare function tryReadDirectory(path: PathBuilderLike | URL): Promise<string[]>;
73
+ export declare function readLocalBuffer<S extends Array<PathBuilderLike | URL>>(...pathSegments: S): Promise<Buffer>;
207
74
  /**
208
75
  * Drain standard input.
209
76
  *