@mailwoman/core 9.1.0 → 9.3.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.
- package/README.md +12 -12
- package/data/internal/dictionaries/languages.csv +184 -184
- package/data/libpostal/README.md +18 -12
- package/data/libpostal/dictionaries/README.md +4 -4
- package/data/libpostal/dictionaries/all/surnames.txt +6 -6
- package/{api → lib/api}/APIClient.ts +28 -23
- package/lib/api/arcgis.ts +69 -0
- package/lib/api/ckan.ts +141 -0
- package/{api → lib/api}/clock.ts +1 -1
- package/lib/api/defaults.ts +28 -0
- package/{api → lib/api}/disk-storage.ts +24 -28
- package/lib/api/host.ts +76 -0
- package/{api → lib/api}/index.ts +11 -6
- package/lib/api/ogc.ts +226 -0
- package/lib/api/paced-client.ts +67 -0
- package/{api → lib/api}/pacer.ts +8 -8
- package/{api → lib/api}/responses.ts +15 -3
- package/{api → lib/api}/retry.ts +12 -12
- package/{api → lib/api}/test-clocks.ts +6 -5
- package/{api → lib/api}/test-transport.ts +1 -1
- package/{coarse-placer → lib/coarse-placer}/coarse-placer.ts +32 -13
- package/{coarse-placer → lib/coarse-placer}/featurize.ts +11 -15
- package/lib/coarse-placer/fnv-hash.ts +24 -0
- package/lib/coarse-placer/math.ts +63 -0
- package/{coarse-placer → lib/coarse-placer}/tools/build-dataset.ts +26 -35
- package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-exposure.ts +25 -21
- package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-latin.ts +27 -53
- package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-oa.ts +37 -63
- package/lib/coarse-placer/tools/country-sets.ts +47 -0
- package/{coarse-placer → lib/coarse-placer}/tools/eval-latin-offmap.ts +13 -43
- package/{coarse-placer → lib/coarse-placer}/tools/eval-openset.ts +22 -77
- package/{coarse-placer → lib/coarse-placer}/tools/eval-quant-compare.ts +17 -50
- package/{coarse-placer → lib/coarse-placer}/tools/eval.ts +23 -36
- package/lib/coarse-placer/tools/index.ts +24 -0
- package/lib/coarse-placer/tools/outlier-rows.ts +91 -0
- package/lib/coarse-placer/tools/paths.ts +78 -0
- package/{coarse-placer → lib/coarse-placer}/tools/probe-frontier.ts +13 -15
- package/{coarse-placer → lib/coarse-placer}/tools/quantize.ts +15 -21
- package/{coarse-placer → lib/coarse-placer}/tools/train.ts +32 -60
- package/lib/crypto/base64url.ts +42 -0
- package/lib/crypto/digest.ts +17 -0
- package/lib/crypto/ed25519.ts +118 -0
- package/{crypto → lib/crypto}/node.ts +3 -1
- package/lib/data-root.ts +193 -0
- package/{decoder → lib/decoder}/build-tree.ts +4 -4
- package/{decoder → lib/decoder}/calibration.ts +1 -1
- package/{decoder → lib/decoder}/containment.ts +12 -5
- package/lib/decoder/index.ts +19 -0
- package/lib/decoder/parse-diff.ts +347 -0
- package/{decoder → lib/decoder}/proposals-to-tree.ts +4 -4
- package/{decoder → lib/decoder}/resolve-proposal-overlaps.ts +3 -3
- package/lib/decoder/serialize-json.ts +120 -0
- package/{decoder → lib/decoder}/serialize-tuples.ts +29 -4
- package/{decoder → lib/decoder}/serialize-xml.ts +8 -4
- package/lib/decoder/tree-shape.ts +135 -0
- package/lib/decoder/tree-walk.ts +96 -0
- package/{decoder → lib/decoder}/types.ts +10 -2
- package/{decoder → lib/decoder}/unknown-spans.ts +3 -8
- package/{decoder → lib/decoder}/validate-tree.ts +18 -6
- package/lib/env/index.ts +90 -0
- package/lib/env/paths.ts +21 -0
- package/lib/env/schema.ts +100 -0
- package/lib/env/utils.ts +24 -0
- package/{errors → lib/errors}/schema.ts +10 -1
- package/lib/fs/compression.ts +65 -0
- package/lib/fs/formatters.ts +119 -0
- package/lib/fs/readers.ts +421 -0
- package/lib/fs/streams.ts +46 -0
- package/lib/fs/temporary.ts +85 -0
- package/lib/fs/writers.ts +288 -0
- package/{fs → lib/fs}/zip.ts +97 -81
- package/lib/git.ts +59 -0
- package/{utils → lib}/hash.ts +17 -8
- package/lib/html/document.ts +117 -0
- package/lib/html/tables.ts +154 -0
- package/lib/html/text.ts +123 -0
- package/lib/index.ts +16 -0
- package/lib/json.ts +85 -0
- package/lib/layers/coverage.ts +222 -0
- package/lib/layers/feature-count.ts +35 -0
- package/{layers → lib/layers}/index.ts +4 -2
- package/lib/layers/manifest.ts +455 -0
- package/{layers → lib/layers}/schema.ts +30 -5
- package/lib/license/configured.ts +29 -0
- package/lib/license/docs-site.ts +37 -0
- package/lib/license/index.ts +18 -0
- package/lib/license/key-file.ts +91 -0
- package/lib/license/key.ts +205 -0
- package/lib/license/obligations.ts +186 -0
- package/lib/license/publication.ts +91 -0
- package/lib/license/register.ts +110 -0
- package/lib/license/stamp.ts +94 -0
- package/lib/license/status.ts +125 -0
- package/lib/locale/index.ts +9 -0
- package/{locale → lib/locale}/locale.ts +2 -3
- package/{locale → lib/locale}/profiles/en-us.ts +1 -1
- package/{locale → lib/locale}/profiles/fr-fr.ts +1 -1
- package/lib/locale/profiles/index.ts +9 -0
- package/{locale → lib/locale}/profiles/ja-jp.ts +1 -1
- package/{locale → lib/locale}/registry.ts +2 -3
- package/lib/locale/zh-cn-units.ts +148 -0
- package/{logging → lib/logging}/index.ts +2 -2
- package/{logging → lib/logging}/shared.ts +39 -4
- package/lib/module/file-url.ts +29 -0
- package/lib/module/packaged-data.ts +31 -0
- package/lib/module/resolve-from.ts +100 -0
- package/lib/module/resolvers.ts +80 -0
- package/lib/module/runtime.ts +11 -0
- package/{utils/python-numeric.ts → lib/numeric.ts} +16 -2
- package/{objects.ts → lib/objects.ts} +24 -57
- package/lib/paths.ts +171 -0
- package/{pipeline → lib/pipeline}/index.ts +16 -18
- package/{pipeline → lib/pipeline}/runtime-pipeline.ts +66 -219
- package/{pipeline → lib/pipeline}/span-proposer.ts +1 -1
- package/{pipeline → lib/pipeline}/types.ts +83 -35
- package/{policy → lib/policy}/defaults.ts +2 -3
- package/lib/policy/index.ts +10 -0
- package/{policy → lib/policy}/policy.ts +2 -2
- package/{policy → lib/policy}/proposal-collection.ts +3 -3
- package/{policy → lib/policy}/registry.ts +3 -4
- package/lib/process.ts +219 -0
- package/lib/release-config.ts +106 -0
- package/lib/resolver/authoritative-provider.ts +180 -0
- package/lib/resolver/coverage-facts.ts +102 -0
- package/lib/resolver/fixture-authoritative-provider.ts +103 -0
- package/{resolver → lib/resolver}/index.ts +30 -4
- package/lib/resolver/lookup-types.ts +175 -0
- package/lib/resolver/placetype-map.ts +130 -0
- package/lib/resolver/postcode-format.ts +90 -0
- package/{resolver → lib/resolver}/referential.ts +1 -1
- package/{resolver → lib/resolver}/types.ts +360 -402
- package/lib/resources/git.ts +64 -0
- package/lib/resources/index.ts +13 -0
- package/{resources → lib/resources}/languages/index.ts +8 -3
- package/{resources → lib/resources}/languages/types.gen.ts +60 -0
- package/lib/resources/libpostal.ts +19 -0
- package/{resources → lib/resources}/set.ts +0 -38
- package/{resources → lib/resources}/whosonfirst/PlacetypeDataSource.ts +61 -19
- package/{resources → lib/resources}/whosonfirst/backoff.ts +5 -3
- package/lib/resources/whosonfirst/extract-repo.ts +116 -0
- package/lib/resources/whosonfirst/index.ts +9 -0
- package/{resources → lib/resources}/whosonfirst/placetypes/Placetype.ts +5 -6
- package/{resources → lib/resources}/whosonfirst/placetypes/admin.ts +12 -4
- package/{resources → lib/resources}/whosonfirst/placetypes/definition.ts +4 -3
- package/{resources → lib/resources}/whosonfirst/placetypes/graph.ts +0 -0
- package/lib/resources/whosonfirst/placetypes/index.ts +13 -0
- package/{resources → lib/resources}/whosonfirst/placetypes/mermaid.ts +2 -2
- package/lib/resources/whosonfirst/placetypes/specificity.ts +114 -0
- package/{resources → lib/resources}/whosonfirst/placetypes/tree.ts +2 -2
- package/{routing → lib/routing}/index.ts +3 -1
- package/lib/scripting/arguments.ts +70 -0
- package/lib/scripting/command.ts +55 -0
- package/{scripting → lib/scripting}/index.ts +4 -4
- package/lib/scripting/ingest-chunk-script.ts +90 -0
- package/{scripting → lib/scripting}/utils/index.ts +18 -26
- package/lib/stats.ts +63 -0
- package/{identifiers.ts → lib/strings/case.ts} +10 -1
- package/lib/strings/compare.ts +20 -0
- package/lib/strings/escape.ts +24 -0
- package/lib/strings/format.ts +14 -0
- package/{utils → lib/strings}/python-json.ts +8 -17
- package/lib/strings/regexp.ts +13 -0
- package/{tokenization → lib/tokenization}/Graph.ts +1 -1
- package/{tokenization → lib/tokenization}/Span.ts +5 -5
- package/lib/tokenization/index.ts +9 -0
- package/{tools → lib/tools}/download-libpostal-resources.ts +21 -28
- package/{tools → lib/tools}/download-ssl-address.ts +31 -15
- package/{tools → lib/tools}/generate-language-types.ts +42 -11
- package/{tools → lib/tools}/index.ts +4 -5
- package/lib/trust-policies.ts +120 -0
- package/{types → lib/types}/Classification.ts +3 -3
- package/{types → lib/types}/classifier.ts +2 -2
- package/{types → lib/types}/component.ts +17 -0
- package/lib/types/index.ts +10 -0
- package/{types → lib/types}/mapping.ts +2 -2
- package/lib/utils/chunk-process.ts +117 -0
- package/lib/utils/collections.ts +16 -0
- package/lib/utils/events.ts +10 -0
- package/lib/utils/geodatabase-archive.ts +97 -0
- package/lib/utils/index.ts +20 -0
- package/lib/utils/sleep.ts +15 -0
- package/lib/utils/sqlite-rows.ts +40 -0
- package/lib/utils/stream-to-disk.ts +122 -0
- package/lib/utils/system.ts +52 -0
- package/lib/utils/time.ts +30 -0
- package/lib/utils/union-find.ts +58 -0
- package/lib/vale.ts +47 -0
- package/out/api/APIClient.d.ts +19 -14
- package/out/api/APIClient.d.ts.map +1 -1
- package/out/api/APIClient.js +22 -22
- package/out/api/APIClient.js.map +1 -1
- package/out/api/arcgis.d.ts +33 -0
- package/out/api/arcgis.d.ts.map +1 -0
- package/out/api/arcgis.js +53 -0
- package/out/api/arcgis.js.map +1 -0
- package/out/api/ckan.d.ts +72 -0
- package/out/api/ckan.d.ts.map +1 -0
- package/out/api/ckan.js +64 -0
- package/out/api/ckan.js.map +1 -0
- package/out/api/clock.d.ts +1 -1
- package/out/api/clock.d.ts.map +1 -1
- package/out/api/clock.js +1 -1
- package/out/api/clock.js.map +1 -1
- package/out/api/defaults.d.ts +28 -0
- package/out/api/defaults.d.ts.map +1 -0
- package/out/api/defaults.js +28 -0
- package/out/api/defaults.js.map +1 -0
- package/out/api/disk-storage.d.ts +8 -7
- package/out/api/disk-storage.d.ts.map +1 -1
- package/out/api/disk-storage.js +20 -19
- package/out/api/disk-storage.js.map +1 -1
- package/out/api/headless.d.ts.map +1 -1
- package/out/api/headless.js.map +1 -1
- package/out/api/host.d.ts +43 -0
- package/out/api/host.d.ts.map +1 -0
- package/out/api/host.js +36 -0
- package/out/api/host.js.map +1 -0
- package/out/api/index.d.ts +11 -6
- package/out/api/index.d.ts.map +1 -1
- package/out/api/index.js +11 -6
- package/out/api/index.js.map +1 -1
- package/out/api/ogc.d.ts +78 -0
- package/out/api/ogc.d.ts.map +1 -0
- package/out/api/ogc.js +166 -0
- package/out/api/ogc.js.map +1 -0
- package/out/api/paced-client.d.ts +45 -0
- package/out/api/paced-client.d.ts.map +1 -0
- package/out/api/paced-client.js +32 -0
- package/out/api/paced-client.js.map +1 -0
- package/out/api/pacer.d.ts +8 -8
- package/out/api/pacer.d.ts.map +1 -1
- package/out/api/pacer.js +8 -8
- package/out/api/pacer.js.map +1 -1
- package/out/api/responses.d.ts +9 -0
- package/out/api/responses.d.ts.map +1 -1
- package/out/api/responses.js +14 -3
- package/out/api/responses.js.map +1 -1
- package/out/api/retry.d.ts +7 -7
- package/out/api/retry.d.ts.map +1 -1
- package/out/api/retry.js +12 -12
- package/out/api/retry.js.map +1 -1
- package/out/api/test-clocks.d.ts +8 -2
- package/out/api/test-clocks.d.ts.map +1 -1
- package/out/api/test-clocks.js +5 -4
- package/out/api/test-clocks.js.map +1 -1
- package/out/api/test-transport.d.ts +1 -1
- package/out/api/test-transport.d.ts.map +1 -1
- package/out/api/test-transport.js.map +1 -1
- package/out/coarse-placer/coarse-placer.d.ts +13 -1
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js +29 -13
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts +11 -2
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/featurize.js +9 -10
- package/out/coarse-placer/featurize.js.map +1 -1
- package/out/coarse-placer/fnv-hash.d.ts +15 -0
- package/out/coarse-placer/fnv-hash.d.ts.map +1 -0
- package/out/coarse-placer/fnv-hash.js +22 -0
- package/out/coarse-placer/fnv-hash.js.map +1 -0
- package/out/coarse-placer/math.d.ts +25 -0
- package/out/coarse-placer/math.d.ts.map +1 -0
- package/out/coarse-placer/math.js +49 -0
- package/out/coarse-placer/math.js.map +1 -0
- package/out/coarse-placer/tools/build-dataset.d.ts +4 -3
- package/out/coarse-placer/tools/build-dataset.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-dataset.js +21 -31
- package/out/coarse-placer/tools/build-dataset.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts +3 -5
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.js +12 -18
- package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts +3 -2
- package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.js +19 -46
- package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts +3 -2
- package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.js +22 -52
- package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
- package/out/coarse-placer/tools/country-sets.d.ts +28 -0
- package/out/coarse-placer/tools/country-sets.d.ts.map +1 -0
- package/out/coarse-placer/tools/country-sets.js +45 -0
- package/out/coarse-placer/tools/country-sets.js.map +1 -0
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts +4 -3
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-latin-offmap.js +10 -34
- package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
- package/out/coarse-placer/tools/eval-openset.d.ts +3 -2
- package/out/coarse-placer/tools/eval-openset.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-openset.js +19 -56
- package/out/coarse-placer/tools/eval-openset.js.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.d.ts +6 -5
- package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.js +13 -39
- package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
- package/out/coarse-placer/tools/eval.d.ts +3 -2
- package/out/coarse-placer/tools/eval.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval.js +21 -23
- package/out/coarse-placer/tools/eval.js.map +1 -1
- package/out/coarse-placer/tools/index.d.ts +15 -14
- package/out/coarse-placer/tools/index.d.ts.map +1 -1
- package/out/coarse-placer/tools/index.js +15 -14
- package/out/coarse-placer/tools/index.js.map +1 -1
- package/out/coarse-placer/tools/outlier-rows.d.ts +38 -0
- package/out/coarse-placer/tools/outlier-rows.d.ts.map +1 -0
- package/out/coarse-placer/tools/outlier-rows.js +67 -0
- package/out/coarse-placer/tools/outlier-rows.js.map +1 -0
- package/out/coarse-placer/tools/paths.d.ts +34 -0
- package/out/coarse-placer/tools/paths.d.ts.map +1 -0
- package/out/coarse-placer/tools/paths.js +64 -0
- package/out/coarse-placer/tools/paths.js.map +1 -0
- package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
- package/out/coarse-placer/tools/probe-frontier.js +13 -14
- package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
- package/out/coarse-placer/tools/quantize.d.ts +3 -2
- package/out/coarse-placer/tools/quantize.d.ts.map +1 -1
- package/out/coarse-placer/tools/quantize.js +13 -14
- package/out/coarse-placer/tools/quantize.js.map +1 -1
- package/out/coarse-placer/tools/train.d.ts +3 -2
- package/out/coarse-placer/tools/train.d.ts.map +1 -1
- package/out/coarse-placer/tools/train.js +21 -36
- package/out/coarse-placer/tools/train.js.map +1 -1
- package/out/collections.d.ts.map +1 -1
- package/out/collections.js.map +1 -1
- package/out/crypto/base64url.d.ts +13 -0
- package/out/crypto/base64url.d.ts.map +1 -0
- package/out/crypto/base64url.js +34 -0
- package/out/crypto/base64url.js.map +1 -0
- package/out/crypto/digest.d.ts +12 -0
- package/out/crypto/digest.d.ts.map +1 -0
- package/out/crypto/digest.js +16 -0
- package/out/crypto/digest.js.map +1 -0
- package/out/crypto/ed25519.d.ts +35 -0
- package/out/crypto/ed25519.d.ts.map +1 -0
- package/out/crypto/ed25519.js +89 -0
- package/out/crypto/ed25519.js.map +1 -0
- package/out/crypto/node.d.ts.map +1 -1
- package/out/crypto/node.js +2 -1
- package/out/crypto/node.js.map +1 -1
- package/out/data-root.d.ts +131 -0
- package/out/data-root.d.ts.map +1 -0
- package/out/data-root.js +135 -0
- package/out/data-root.js.map +1 -0
- package/out/decoder/build-tree.d.ts +2 -2
- package/out/decoder/build-tree.d.ts.map +1 -1
- package/out/decoder/build-tree.js +1 -1
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/calibration.d.ts +1 -1
- package/out/decoder/calibration.d.ts.map +1 -1
- package/out/decoder/calibration.js +1 -1
- package/out/decoder/calibration.js.map +1 -1
- package/out/decoder/containment.d.ts +3 -3
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js +10 -3
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/index.d.ts +13 -11
- package/out/decoder/index.d.ts.map +1 -1
- package/out/decoder/index.js +13 -11
- package/out/decoder/index.js.map +1 -1
- package/out/decoder/parse-diff.d.ts +125 -0
- package/out/decoder/parse-diff.d.ts.map +1 -0
- package/out/decoder/parse-diff.js +219 -0
- package/out/decoder/parse-diff.js.map +1 -0
- package/out/decoder/proposals-to-tree.d.ts +2 -2
- package/out/decoder/proposals-to-tree.d.ts.map +1 -1
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/resolve-proposal-overlaps.d.ts +3 -3
- package/out/decoder/resolve-proposal-overlaps.d.ts.map +1 -1
- package/out/decoder/resolve-proposal-overlaps.js +2 -2
- package/out/decoder/resolve-proposal-overlaps.js.map +1 -1
- package/out/decoder/serialize-json.d.ts +32 -3
- package/out/decoder/serialize-json.d.ts.map +1 -1
- package/out/decoder/serialize-json.js +25 -8
- package/out/decoder/serialize-json.js.map +1 -1
- package/out/decoder/serialize-tuples.d.ts +13 -2
- package/out/decoder/serialize-tuples.d.ts.map +1 -1
- package/out/decoder/serialize-tuples.js +24 -2
- package/out/decoder/serialize-tuples.js.map +1 -1
- package/out/decoder/serialize-xml.d.ts +2 -2
- package/out/decoder/serialize-xml.d.ts.map +1 -1
- package/out/decoder/serialize-xml.js +7 -3
- package/out/decoder/serialize-xml.js.map +1 -1
- package/out/decoder/tree-shape.d.ts +84 -0
- package/out/decoder/tree-shape.d.ts.map +1 -0
- package/out/decoder/tree-shape.js +93 -0
- package/out/decoder/tree-shape.js.map +1 -0
- package/out/decoder/tree-walk.d.ts +50 -0
- package/out/decoder/tree-walk.d.ts.map +1 -0
- package/out/decoder/tree-walk.js +78 -0
- package/out/decoder/tree-walk.js.map +1 -0
- package/out/decoder/types.d.ts +13 -2
- package/out/decoder/types.d.ts.map +1 -1
- package/out/decoder/types.js +1 -1
- package/out/decoder/types.js.map +1 -1
- package/out/decoder/unknown-spans.d.ts +1 -15
- package/out/decoder/unknown-spans.d.ts.map +1 -1
- package/out/decoder/unknown-spans.js +16 -6
- package/out/decoder/unknown-spans.js.map +1 -1
- package/out/decoder/validate-tree.d.ts +10 -2
- package/out/decoder/validate-tree.d.ts.map +1 -1
- package/out/decoder/validate-tree.js +5 -4
- package/out/decoder/validate-tree.js.map +1 -1
- package/out/env/index.d.ts +32 -89
- package/out/env/index.d.ts.map +1 -1
- package/out/env/index.js +57 -18
- package/out/env/index.js.map +1 -1
- package/out/env/paths.d.ts +7 -8
- package/out/env/paths.d.ts.map +1 -1
- package/out/env/paths.js +14 -30
- package/out/env/paths.js.map +1 -1
- package/out/env/schema.d.ts +20 -91
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +77 -164
- package/out/env/schema.js.map +1 -1
- package/out/env/utils.d.ts +21 -0
- package/out/env/utils.d.ts.map +1 -0
- package/out/env/utils.js +23 -0
- package/out/env/utils.js.map +1 -0
- package/out/errors/schema.d.ts +7 -0
- package/out/errors/schema.d.ts.map +1 -1
- package/out/errors/schema.js +7 -5
- package/out/errors/schema.js.map +1 -1
- package/out/fs/compression.d.ts +22 -0
- package/out/fs/compression.d.ts.map +1 -0
- package/out/fs/compression.js +50 -0
- package/out/fs/compression.js.map +1 -0
- package/out/fs/formatters.d.ts +69 -0
- package/out/fs/formatters.d.ts.map +1 -0
- package/out/fs/formatters.js +91 -0
- package/out/fs/formatters.js.map +1 -0
- package/out/fs/readers.d.ts +221 -0
- package/out/fs/readers.d.ts.map +1 -0
- package/out/fs/readers.js +349 -0
- package/out/fs/readers.js.map +1 -0
- package/out/fs/streams.d.ts +38 -0
- package/out/fs/streams.d.ts.map +1 -0
- package/out/fs/streams.js +37 -0
- package/out/fs/streams.js.map +1 -0
- package/out/fs/temporary.d.ts +54 -0
- package/out/fs/temporary.d.ts.map +1 -0
- package/out/fs/temporary.js +39 -0
- package/out/fs/temporary.js.map +1 -0
- package/out/fs/writers.d.ts +132 -0
- package/out/fs/writers.d.ts.map +1 -0
- package/out/fs/writers.js +203 -0
- package/out/fs/writers.js.map +1 -0
- package/out/fs/zip.d.ts +6 -2
- package/out/fs/zip.d.ts.map +1 -1
- package/out/fs/zip.js +80 -83
- package/out/fs/zip.js.map +1 -1
- package/out/git.d.ts +33 -0
- package/out/git.d.ts.map +1 -0
- package/out/git.js +48 -0
- package/out/git.js.map +1 -0
- package/out/{utils/hash.d.ts → hash.d.ts} +8 -4
- package/out/hash.d.ts.map +1 -0
- package/out/{utils/hash.js → hash.js} +12 -7
- package/out/hash.js.map +1 -0
- package/out/html/document.d.ts +57 -0
- package/out/html/document.d.ts.map +1 -0
- package/out/html/document.js +79 -0
- package/out/html/document.js.map +1 -0
- package/out/html/tables.d.ts +53 -0
- package/out/html/tables.d.ts.map +1 -0
- package/out/html/tables.js +117 -0
- package/out/html/tables.js.map +1 -0
- package/out/html/text.d.ts +40 -0
- package/out/html/text.d.ts.map +1 -0
- package/out/html/text.js +110 -0
- package/out/html/text.js.map +1 -0
- package/out/index.d.ts +10 -7
- package/out/index.d.ts.map +1 -1
- package/out/index.js +10 -7
- package/out/index.js.map +1 -1
- package/out/json.d.ts +43 -0
- package/out/json.d.ts.map +1 -0
- package/out/json.js +68 -0
- package/out/json.js.map +1 -0
- package/out/layers/coverage.d.ts +123 -0
- package/out/layers/coverage.d.ts.map +1 -0
- package/out/layers/coverage.js +132 -0
- package/out/layers/coverage.js.map +1 -0
- package/out/layers/feature-count.d.ts +29 -0
- package/out/layers/feature-count.d.ts.map +1 -0
- package/out/layers/feature-count.js +23 -0
- package/out/layers/feature-count.js.map +1 -0
- package/out/layers/index.d.ts +4 -2
- package/out/layers/index.d.ts.map +1 -1
- package/out/layers/index.js +4 -2
- package/out/layers/index.js.map +1 -1
- package/out/layers/manifest.d.ts +131 -7
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +183 -7
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/schema.d.ts +23 -5
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +6 -0
- package/out/layers/schema.js.map +1 -1
- package/out/license/configured.d.ts +17 -0
- package/out/license/configured.d.ts.map +1 -0
- package/out/license/configured.js +27 -0
- package/out/license/configured.js.map +1 -0
- package/out/license/docs-site.d.ts +23 -0
- package/out/license/docs-site.d.ts.map +1 -0
- package/out/license/docs-site.js +32 -0
- package/out/license/docs-site.js.map +1 -0
- package/out/license/index.d.ts +18 -0
- package/out/license/index.d.ts.map +1 -0
- package/out/license/index.js +18 -0
- package/out/license/index.js.map +1 -0
- package/out/license/key-file.d.ts +36 -0
- package/out/license/key-file.d.ts.map +1 -0
- package/out/license/key-file.js +64 -0
- package/out/license/key-file.js.map +1 -0
- package/out/license/key.d.ts +96 -0
- package/out/license/key.d.ts.map +1 -0
- package/out/license/key.js +155 -0
- package/out/license/key.js.map +1 -0
- package/out/license/obligations.d.ts +87 -0
- package/out/license/obligations.d.ts.map +1 -0
- package/out/license/obligations.js +129 -0
- package/out/license/obligations.js.map +1 -0
- package/out/license/publication.d.ts +36 -0
- package/out/license/publication.d.ts.map +1 -0
- package/out/license/publication.js +61 -0
- package/out/license/publication.js.map +1 -0
- package/out/license/register.d.ts +63 -0
- package/out/license/register.d.ts.map +1 -0
- package/out/license/register.js +73 -0
- package/out/license/register.js.map +1 -0
- package/out/license/stamp.d.ts +55 -0
- package/out/license/stamp.d.ts.map +1 -0
- package/out/license/stamp.js +62 -0
- package/out/license/stamp.js.map +1 -0
- package/out/license/status.d.ts +54 -0
- package/out/license/status.d.ts.map +1 -0
- package/out/license/status.js +85 -0
- package/out/license/status.js.map +1 -0
- package/out/locale/index.d.ts +3 -3
- package/out/locale/index.d.ts.map +1 -1
- package/out/locale/index.js +3 -3
- package/out/locale/index.js.map +1 -1
- package/out/locale/locale.d.ts +2 -2
- package/out/locale/locale.d.ts.map +1 -1
- package/out/locale/locale.js.map +1 -1
- package/out/locale/profiles/en-us.d.ts +1 -1
- package/out/locale/profiles/en-us.d.ts.map +1 -1
- package/out/locale/profiles/en-us.js.map +1 -1
- package/out/locale/profiles/fr-fr.d.ts +1 -1
- package/out/locale/profiles/fr-fr.d.ts.map +1 -1
- package/out/locale/profiles/fr-fr.js.map +1 -1
- package/out/locale/profiles/index.d.ts +3 -3
- package/out/locale/profiles/index.d.ts.map +1 -1
- package/out/locale/profiles/index.js +3 -3
- package/out/locale/profiles/index.js.map +1 -1
- package/out/locale/profiles/ja-jp.d.ts +1 -1
- package/out/locale/profiles/ja-jp.d.ts.map +1 -1
- package/out/locale/profiles/ja-jp.js.map +1 -1
- package/out/locale/registry.d.ts +1 -1
- package/out/locale/registry.d.ts.map +1 -1
- package/out/locale/registry.js +1 -1
- package/out/locale/registry.js.map +1 -1
- package/out/locale/zh-cn-units.d.ts +67 -0
- package/out/locale/zh-cn-units.d.ts.map +1 -0
- package/out/locale/zh-cn-units.js +109 -0
- package/out/locale/zh-cn-units.js.map +1 -0
- package/out/logging/index.d.ts +2 -2
- package/out/logging/index.d.ts.map +1 -1
- package/out/logging/index.js +2 -2
- package/out/logging/index.js.map +1 -1
- package/out/logging/shared.d.ts +5 -3
- package/out/logging/shared.d.ts.map +1 -1
- package/out/logging/shared.js +28 -4
- package/out/logging/shared.js.map +1 -1
- package/out/logging/utils.d.ts.map +1 -1
- package/out/logging/utils.js.map +1 -1
- package/out/module/file-url.d.ts +21 -0
- package/out/module/file-url.d.ts.map +1 -0
- package/out/module/file-url.js +25 -0
- package/out/module/file-url.js.map +1 -0
- package/out/module/packaged-data.d.ts +19 -0
- package/out/module/packaged-data.d.ts.map +1 -0
- package/out/module/packaged-data.js +28 -0
- package/out/module/packaged-data.js.map +1 -0
- package/out/module/resolve-from.d.ts +52 -0
- package/out/module/resolve-from.d.ts.map +1 -0
- package/out/module/resolve-from.js +66 -0
- package/out/module/resolve-from.js.map +1 -0
- package/out/module/resolvers.d.ts +52 -0
- package/out/module/resolvers.d.ts.map +1 -0
- package/out/module/resolvers.js +74 -0
- package/out/module/resolvers.js.map +1 -0
- package/out/module/runtime.d.ts +11 -0
- package/out/module/runtime.d.ts.map +1 -0
- package/out/module/runtime.js +11 -0
- package/out/module/runtime.js.map +1 -0
- package/out/{utils/python-numeric.d.ts → numeric.d.ts} +6 -9
- package/out/numeric.d.ts.map +1 -0
- package/out/{utils/python-numeric.js → numeric.js} +15 -3
- package/out/numeric.js.map +1 -0
- package/out/objects.d.ts +13 -27
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +7 -37
- package/out/objects.js.map +1 -1
- package/out/{utils/repo.d.ts → paths.d.ts} +16 -2
- package/out/paths.d.ts.map +1 -0
- package/out/paths.js +134 -0
- package/out/paths.js.map +1 -0
- package/out/pipeline/index.d.ts +5 -9
- package/out/pipeline/index.d.ts.map +1 -1
- package/out/pipeline/index.js +3 -5
- package/out/pipeline/index.js.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +66 -24
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +63 -165
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.d.ts.map +1 -1
- package/out/pipeline/span-proposer.js +1 -1
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +78 -34
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +21 -3
- package/out/pipeline/types.js.map +1 -1
- package/out/policy/defaults.d.ts +2 -2
- package/out/policy/defaults.d.ts.map +1 -1
- package/out/policy/defaults.js +1 -1
- package/out/policy/defaults.js.map +1 -1
- package/out/policy/index.d.ts +4 -4
- package/out/policy/index.d.ts.map +1 -1
- package/out/policy/index.js +4 -4
- package/out/policy/index.js.map +1 -1
- package/out/policy/policy.d.ts +2 -2
- package/out/policy/policy.d.ts.map +1 -1
- package/out/policy/policy.js +1 -1
- package/out/policy/policy.js.map +1 -1
- package/out/policy/proposal-collection.d.ts +3 -3
- package/out/policy/proposal-collection.d.ts.map +1 -1
- package/out/policy/proposal-collection.js.map +1 -1
- package/out/policy/registry.d.ts +2 -2
- package/out/policy/registry.d.ts.map +1 -1
- package/out/policy/registry.js +1 -1
- package/out/policy/registry.js.map +1 -1
- package/out/process.d.ts +110 -0
- package/out/process.d.ts.map +1 -0
- package/out/process.js +72 -0
- package/out/process.js.map +1 -0
- package/out/{utils/python-random.d.ts → random.d.ts} +1 -1
- package/out/random.d.ts.map +1 -0
- package/out/{utils/python-random.js → random.js} +1 -1
- package/out/random.js.map +1 -0
- package/out/release-config.d.ts +84 -0
- package/out/release-config.d.ts.map +1 -0
- package/out/release-config.js +45 -0
- package/out/release-config.js.map +1 -0
- package/out/resolver/authoritative-provider.d.ts +171 -0
- package/out/resolver/authoritative-provider.d.ts.map +1 -0
- package/out/resolver/authoritative-provider.js +51 -0
- package/out/resolver/authoritative-provider.js.map +1 -0
- package/out/resolver/coverage-facts.d.ts +89 -0
- package/out/resolver/coverage-facts.d.ts.map +1 -0
- package/out/resolver/coverage-facts.js +22 -0
- package/out/resolver/coverage-facts.js.map +1 -0
- package/out/resolver/fixture-authoritative-provider.d.ts +48 -0
- package/out/resolver/fixture-authoritative-provider.d.ts.map +1 -0
- package/out/resolver/fixture-authoritative-provider.js +68 -0
- package/out/resolver/fixture-authoritative-provider.js.map +1 -0
- package/out/resolver/index.d.ts +8 -4
- package/out/resolver/index.d.ts.map +1 -1
- package/out/resolver/index.js +5 -2
- package/out/resolver/index.js.map +1 -1
- package/out/resolver/lookup-types.d.ts +179 -0
- package/out/resolver/lookup-types.d.ts.map +1 -0
- package/out/resolver/lookup-types.js +11 -0
- package/out/resolver/lookup-types.js.map +1 -0
- package/out/resolver/placetype-map.d.ts +76 -0
- package/out/resolver/placetype-map.d.ts.map +1 -0
- package/out/resolver/placetype-map.js +106 -0
- package/out/resolver/placetype-map.js.map +1 -0
- package/out/resolver/postcode-format.d.ts +39 -0
- package/out/resolver/postcode-format.d.ts.map +1 -0
- package/out/resolver/postcode-format.js +84 -0
- package/out/resolver/postcode-format.js.map +1 -0
- package/out/resolver/referential.d.ts +1 -1
- package/out/resolver/referential.d.ts.map +1 -1
- package/out/resolver/referential.js +1 -1
- package/out/resolver/referential.js.map +1 -1
- package/out/resolver/types.d.ts +338 -348
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +4 -97
- package/out/resolver/types.js.map +1 -1
- package/out/resources/debugging.d.ts.map +1 -1
- package/out/resources/debugging.js.map +1 -1
- package/out/resources/git.d.ts +8 -1
- package/out/resources/git.d.ts.map +1 -1
- package/out/resources/git.js +9 -10
- package/out/resources/git.js.map +1 -1
- package/out/resources/index.d.ts +7 -10
- package/out/resources/index.d.ts.map +1 -1
- package/out/resources/index.js +7 -10
- package/out/resources/index.js.map +1 -1
- package/out/resources/languages/index.d.ts +2 -2
- package/out/resources/languages/index.d.ts.map +1 -1
- package/out/resources/languages/index.js +2 -2
- package/out/resources/languages/index.js.map +1 -1
- package/out/resources/languages/types.gen.d.ts +1 -1
- package/out/resources/languages/types.gen.d.ts.map +1 -1
- package/out/resources/languages/types.gen.js +40 -0
- package/out/resources/languages/types.gen.js.map +1 -1
- package/out/resources/libpostal.d.ts +10 -29
- package/out/resources/libpostal.d.ts.map +1 -1
- package/out/resources/libpostal.js +6 -122
- package/out/resources/libpostal.js.map +1 -1
- package/out/resources/locale.d.ts.map +1 -1
- package/out/resources/locale.js.map +1 -1
- package/out/resources/set.d.ts +0 -13
- package/out/resources/set.d.ts.map +1 -1
- package/out/resources/set.js +0 -32
- package/out/resources/set.js.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +21 -4
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.js +33 -11
- package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
- package/out/resources/whosonfirst/backoff.d.ts +2 -0
- package/out/resources/whosonfirst/backoff.d.ts.map +1 -1
- package/out/resources/whosonfirst/backoff.js +4 -2
- package/out/resources/whosonfirst/backoff.js.map +1 -1
- package/out/resources/whosonfirst/extract-repo.d.ts +55 -0
- package/out/resources/whosonfirst/extract-repo.d.ts.map +1 -0
- package/out/resources/whosonfirst/extract-repo.js +91 -0
- package/out/resources/whosonfirst/extract-repo.js.map +1 -0
- package/out/resources/whosonfirst/index.d.ts +3 -5
- package/out/resources/whosonfirst/index.d.ts.map +1 -1
- package/out/resources/whosonfirst/index.js +3 -5
- package/out/resources/whosonfirst/index.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.js +5 -5
- package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +10 -2
- package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.js +1 -1
- package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.js +1 -1
- package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/graph.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/graph.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/graph.js +0 -0
- package/out/resources/whosonfirst/placetypes/graph.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/index.d.ts +7 -6
- package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/index.js +7 -6
- package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.js +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/specificity.d.ts +65 -0
- package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -0
- package/out/resources/whosonfirst/placetypes/specificity.js +101 -0
- package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -0
- package/out/resources/whosonfirst/placetypes/tree.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/tree.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/tree.js.map +1 -1
- package/out/routing/index.d.ts.map +1 -1
- package/out/routing/index.js +2 -1
- package/out/routing/index.js.map +1 -1
- package/out/scripting/arguments.d.ts +43 -0
- package/out/scripting/arguments.d.ts.map +1 -0
- package/out/scripting/arguments.js +58 -0
- package/out/scripting/arguments.js.map +1 -0
- package/out/scripting/command.d.ts +28 -0
- package/out/scripting/command.d.ts.map +1 -0
- package/out/scripting/command.js +47 -0
- package/out/scripting/command.js.map +1 -0
- package/out/scripting/index.d.ts +1 -1
- package/out/scripting/index.d.ts.map +1 -1
- package/out/scripting/index.js +3 -3
- package/out/scripting/index.js.map +1 -1
- package/out/scripting/ingest-chunk-script.d.ts +63 -0
- package/out/scripting/ingest-chunk-script.d.ts.map +1 -0
- package/out/scripting/ingest-chunk-script.js +51 -0
- package/out/scripting/ingest-chunk-script.js.map +1 -0
- package/out/scripting/utils/index.d.ts +6 -12
- package/out/scripting/utils/index.d.ts.map +1 -1
- package/out/scripting/utils/index.js +14 -24
- package/out/scripting/utils/index.js.map +1 -1
- package/out/stats.d.ts +33 -0
- package/out/stats.d.ts.map +1 -0
- package/out/stats.js +53 -0
- package/out/stats.js.map +1 -0
- package/out/{identifiers.d.ts → strings/case.d.ts} +6 -2
- package/out/strings/case.d.ts.map +1 -0
- package/out/{identifiers.js → strings/case.js} +9 -2
- package/out/strings/case.js.map +1 -0
- package/out/strings/compare.d.ts +14 -0
- package/out/strings/compare.d.ts.map +1 -0
- package/out/strings/compare.js +20 -0
- package/out/strings/compare.js.map +1 -0
- package/out/strings/escape.d.ts +11 -0
- package/out/strings/escape.d.ts.map +1 -0
- package/out/strings/escape.js +23 -0
- package/out/strings/escape.js.map +1 -0
- package/out/strings/format.d.ts +12 -0
- package/out/strings/format.d.ts.map +1 -0
- package/out/strings/format.js +14 -0
- package/out/strings/format.js.map +1 -0
- package/out/{utils → strings}/python-json.d.ts +6 -7
- package/out/strings/python-json.d.ts.map +1 -0
- package/out/{utils → strings}/python-json.js +1 -8
- package/out/strings/python-json.js.map +1 -0
- package/out/strings/regexp.d.ts +11 -0
- package/out/strings/regexp.d.ts.map +1 -0
- package/out/strings/regexp.js +13 -0
- package/out/strings/regexp.js.map +1 -0
- package/out/tokenization/Graph.d.ts +1 -1
- package/out/tokenization/Graph.d.ts.map +1 -1
- package/out/tokenization/Graph.js +1 -1
- package/out/tokenization/Graph.js.map +1 -1
- package/out/tokenization/Span.d.ts +5 -5
- package/out/tokenization/Span.d.ts.map +1 -1
- package/out/tokenization/Span.js +2 -2
- package/out/tokenization/Span.js.map +1 -1
- package/out/tokenization/index.d.ts +3 -3
- package/out/tokenization/index.d.ts.map +1 -1
- package/out/tokenization/index.js +3 -3
- package/out/tokenization/index.js.map +1 -1
- package/out/tokenization/normalizer.d.ts.map +1 -1
- package/out/tokenization/normalizer.js.map +1 -1
- package/out/tools/download-libpostal-resources.d.ts.map +1 -1
- package/out/tools/download-libpostal-resources.js +20 -28
- package/out/tools/download-libpostal-resources.js.map +1 -1
- package/out/tools/download-ssl-address.d.ts +3 -3
- package/out/tools/download-ssl-address.d.ts.map +1 -1
- package/out/tools/download-ssl-address.js +30 -16
- package/out/tools/download-ssl-address.js.map +1 -1
- package/out/tools/generate-language-types.d.ts +16 -1
- package/out/tools/generate-language-types.d.ts.map +1 -1
- package/out/tools/generate-language-types.js +41 -9
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/tools/index.d.ts +4 -5
- package/out/tools/index.d.ts.map +1 -1
- package/out/tools/index.js +4 -5
- package/out/tools/index.js.map +1 -1
- package/out/trust-policies.d.ts +58 -0
- package/out/trust-policies.d.ts.map +1 -0
- package/out/trust-policies.js +99 -0
- package/out/trust-policies.js.map +1 -0
- package/out/types/Classification.d.ts +4 -4
- package/out/types/Classification.d.ts.map +1 -1
- package/out/types/Classification.js.map +1 -1
- package/out/types/classifier.d.ts +2 -2
- package/out/types/classifier.d.ts.map +1 -1
- package/out/types/classifier.js.map +1 -1
- package/out/types/component.d.ts +7 -2
- package/out/types/component.d.ts.map +1 -1
- package/out/types/component.js +16 -0
- package/out/types/component.js.map +1 -1
- package/out/types/index.d.ts +4 -4
- package/out/types/index.d.ts.map +1 -1
- package/out/types/index.js +4 -4
- package/out/types/index.js.map +1 -1
- package/out/types/mapping.d.ts +2 -2
- package/out/types/mapping.d.ts.map +1 -1
- package/out/types/mapping.js.map +1 -1
- package/out/utils/chunk-process.d.ts +64 -0
- package/out/utils/chunk-process.d.ts.map +1 -0
- package/out/utils/chunk-process.js +78 -0
- package/out/utils/chunk-process.js.map +1 -0
- package/out/utils/collections.d.ts +12 -0
- package/out/utils/collections.d.ts.map +1 -0
- package/out/utils/collections.js +16 -0
- package/out/utils/collections.js.map +1 -0
- package/out/utils/events.d.ts +10 -0
- package/out/utils/events.d.ts.map +1 -0
- package/out/utils/events.js +10 -0
- package/out/utils/events.js.map +1 -0
- package/out/utils/geodatabase-archive.d.ts +58 -0
- package/out/utils/geodatabase-archive.d.ts.map +1 -0
- package/out/utils/geodatabase-archive.js +59 -0
- package/out/utils/geodatabase-archive.js.map +1 -0
- package/out/utils/index.d.ts +14 -9
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +14 -9
- package/out/utils/index.js.map +1 -1
- package/out/utils/sleep.d.ts +11 -0
- package/out/utils/sleep.d.ts.map +1 -0
- package/out/utils/sleep.js +14 -0
- package/out/utils/sleep.js.map +1 -0
- package/out/utils/sqlite-rows.d.ts +34 -0
- package/out/utils/sqlite-rows.d.ts.map +1 -0
- package/out/utils/sqlite-rows.js +37 -0
- package/out/utils/sqlite-rows.js.map +1 -0
- package/out/utils/stream-to-disk.d.ts +65 -0
- package/out/utils/stream-to-disk.d.ts.map +1 -0
- package/out/utils/stream-to-disk.js +73 -0
- package/out/utils/stream-to-disk.js.map +1 -0
- package/out/utils/system.d.ts +33 -0
- package/out/utils/system.d.ts.map +1 -0
- package/out/utils/system.js +46 -0
- package/out/utils/system.js.map +1 -0
- package/out/utils/time.d.ts +22 -0
- package/out/utils/time.d.ts.map +1 -0
- package/out/utils/time.js +28 -0
- package/out/utils/time.js.map +1 -0
- package/out/utils/union-find.d.ts +22 -0
- package/out/utils/union-find.d.ts.map +1 -0
- package/out/utils/union-find.js +38 -0
- package/out/utils/union-find.js.map +1 -0
- package/out/vale.d.ts +25 -0
- package/out/vale.d.ts.map +1 -0
- package/out/vale.js +25 -0
- package/out/vale.js.map +1 -0
- package/package.json +897 -64
- package/vitest.config.ts +13 -14
- package/coarse-placer/tools/fnv-hash.ts +0 -26
- package/coarse-placer/tools/index.ts +0 -23
- package/data/libpostal/dictionaries/all/chains.txt +0 -504
- package/data/whosonfirst/dictionaries/country/name:eng_x_preferred.txt +0 -220
- package/data/whosonfirst/dictionaries/country/wof:country.txt +0 -215
- package/data/whosonfirst/dictionaries/country/wof:country_alpha3.txt +0 -216
- package/data/whosonfirst/dictionaries/dependency/name:eng_x_preferred.txt +0 -42
- package/data/whosonfirst/dictionaries/dependency/wof:shortcode.txt +0 -34
- package/data/whosonfirst/dictionaries/locality/name:eng_x_preferred.txt +0 -261365
- package/data/whosonfirst/dictionaries/locality/name:fra_x_preferred.txt +0 -77631
- package/data/whosonfirst/dictionaries/region/abrv:eng_x_preferred.txt +0 -441
- package/data/whosonfirst/dictionaries/region/name:eng_x_preferred.txt +0 -4517
- package/data/whosonfirst/dictionaries/region/wof:shortcode.txt +0 -839
- package/db/schema.ts +0 -21
- package/decoder/index.ts +0 -17
- package/decoder/serialize-json.ts +0 -76
- package/env/index.ts +0 -42
- package/env/load.ts +0 -14
- package/env/paths.ts +0 -40
- package/env/schema.ts +0 -199
- package/errors/index.ts +0 -9
- package/fs/node.ts +0 -37
- package/index.ts +0 -13
- package/kysley/adapter.ts +0 -29
- package/kysley/client.ts +0 -30
- package/kysley/dialect-config.ts +0 -30
- package/kysley/dialect.ts +0 -67
- package/kysley/driver.ts +0 -175
- package/layers/manifest.ts +0 -169
- package/locale/index.ts +0 -9
- package/locale/profiles/index.ts +0 -9
- package/out/coarse-placer/tools/fnv-hash.d.ts +0 -17
- package/out/coarse-placer/tools/fnv-hash.d.ts.map +0 -1
- package/out/coarse-placer/tools/fnv-hash.js +0 -24
- package/out/coarse-placer/tools/fnv-hash.js.map +0 -1
- package/out/db/schema.d.ts +0 -21
- package/out/db/schema.d.ts.map +0 -1
- package/out/db/schema.js +0 -16
- package/out/db/schema.js.map +0 -1
- package/out/env/load.d.ts +0 -7
- package/out/env/load.d.ts.map +0 -1
- package/out/env/load.js +0 -13
- package/out/env/load.js.map +0 -1
- package/out/errors/index.d.ts +0 -9
- package/out/errors/index.d.ts.map +0 -1
- package/out/errors/index.js +0 -9
- package/out/errors/index.js.map +0 -1
- package/out/fs/node.d.ts +0 -19
- package/out/fs/node.d.ts.map +0 -1
- package/out/fs/node.js +0 -32
- package/out/fs/node.js.map +0 -1
- package/out/identifiers.d.ts.map +0 -1
- package/out/identifiers.js.map +0 -1
- package/out/kysley/adapter.d.ts +0 -13
- package/out/kysley/adapter.d.ts.map +0 -1
- package/out/kysley/adapter.js +0 -25
- package/out/kysley/adapter.js.map +0 -1
- package/out/kysley/client.d.ts +0 -19
- package/out/kysley/client.d.ts.map +0 -1
- package/out/kysley/client.js +0 -25
- package/out/kysley/client.js.map +0 -1
- package/out/kysley/dialect-config.d.ts +0 -27
- package/out/kysley/dialect-config.d.ts.map +0 -1
- package/out/kysley/dialect-config.js +0 -7
- package/out/kysley/dialect-config.js.map +0 -1
- package/out/kysley/dialect.d.ts +0 -39
- package/out/kysley/dialect.d.ts.map +0 -1
- package/out/kysley/dialect.js +0 -49
- package/out/kysley/dialect.js.map +0 -1
- package/out/kysley/driver.d.ts +0 -22
- package/out/kysley/driver.d.ts.map +0 -1
- package/out/kysley/driver.js +0 -114
- package/out/kysley/driver.js.map +0 -1
- package/out/pipeline/reconcile-lookups.d.ts +0 -39
- package/out/pipeline/reconcile-lookups.d.ts.map +0 -1
- package/out/pipeline/reconcile-lookups.js +0 -88
- package/out/pipeline/reconcile-lookups.js.map +0 -1
- package/out/pipeline/reconcile.d.ts +0 -153
- package/out/pipeline/reconcile.d.ts.map +0 -1
- package/out/pipeline/reconcile.js +0 -388
- package/out/pipeline/reconcile.js.map +0 -1
- package/out/pipeline/span-logit-aggregation.d.ts +0 -58
- package/out/pipeline/span-logit-aggregation.d.ts.map +0 -1
- package/out/pipeline/span-logit-aggregation.js +0 -117
- package/out/pipeline/span-logit-aggregation.js.map +0 -1
- package/out/resources/LocaleIndex.d.ts +0 -53
- package/out/resources/LocaleIndex.d.ts.map +0 -1
- package/out/resources/LocaleIndex.js +0 -89
- package/out/resources/LocaleIndex.js.map +0 -1
- package/out/resources/ResourceMapCache.d.ts +0 -40
- package/out/resources/ResourceMapCache.d.ts.map +0 -1
- package/out/resources/ResourceMapCache.js +0 -75
- package/out/resources/ResourceMapCache.js.map +0 -1
- package/out/resources/libaddressinput.d.ts +0 -103
- package/out/resources/libaddressinput.d.ts.map +0 -1
- package/out/resources/libaddressinput.js +0 -30
- package/out/resources/libaddressinput.js.map +0 -1
- package/out/resources/whosonfirst/DataSourceCache.d.ts +0 -14
- package/out/resources/whosonfirst/DataSourceCache.d.ts.map +0 -1
- package/out/resources/whosonfirst/DataSourceCache.js +0 -33
- package/out/resources/whosonfirst/DataSourceCache.js.map +0 -1
- package/out/resources/whosonfirst/loader.d.ts +0 -55
- package/out/resources/whosonfirst/loader.d.ts.map +0 -1
- package/out/resources/whosonfirst/loader.js +0 -114
- package/out/resources/whosonfirst/loader.js.map +0 -1
- package/out/resources/whosonfirst/sharded-repo.d.ts +0 -28
- package/out/resources/whosonfirst/sharded-repo.d.ts.map +0 -1
- package/out/resources/whosonfirst/sharded-repo.js +0 -58
- package/out/resources/whosonfirst/sharded-repo.js.map +0 -1
- package/out/utils/data-root.d.ts +0 -45
- package/out/utils/data-root.d.ts.map +0 -1
- package/out/utils/data-root.js +0 -72
- package/out/utils/data-root.js.map +0 -1
- package/out/utils/hash.d.ts.map +0 -1
- package/out/utils/hash.js.map +0 -1
- package/out/utils/jsonl.d.ts +0 -36
- package/out/utils/jsonl.d.ts.map +0 -1
- package/out/utils/jsonl.js +0 -61
- package/out/utils/jsonl.js.map +0 -1
- package/out/utils/python-json.d.ts.map +0 -1
- package/out/utils/python-json.js.map +0 -1
- package/out/utils/python-numeric.d.ts.map +0 -1
- package/out/utils/python-numeric.js.map +0 -1
- package/out/utils/python-random.d.ts.map +0 -1
- package/out/utils/python-random.js.map +0 -1
- package/out/utils/repo.d.ts.map +0 -1
- package/out/utils/repo.js +0 -114
- package/out/utils/repo.js.map +0 -1
- package/out/utils/sealed-db.d.ts +0 -36
- package/out/utils/sealed-db.d.ts.map +0 -1
- package/out/utils/sealed-db.js +0 -109
- package/out/utils/sealed-db.js.map +0 -1
- package/out/utils/stats.d.ts +0 -25
- package/out/utils/stats.d.ts.map +0 -1
- package/out/utils/stats.js +0 -36
- package/out/utils/stats.js.map +0 -1
- package/out/vitest.config.d.ts +0 -17
- package/out/vitest.config.d.ts.map +0 -1
- package/out/vitest.config.js +0 -52
- package/out/vitest.config.js.map +0 -1
- package/pipeline/reconcile-lookups.ts +0 -111
- package/pipeline/reconcile.ts +0 -583
- package/pipeline/span-logit-aggregation.ts +0 -156
- package/policy/index.ts +0 -10
- package/resources/LocaleIndex.ts +0 -124
- package/resources/ResourceMapCache.ts +0 -127
- package/resources/git.ts +0 -54
- package/resources/index.ts +0 -16
- package/resources/libaddressinput.ts +0 -105
- package/resources/libpostal.ts +0 -186
- package/resources/whosonfirst/DataSourceCache.ts +0 -50
- package/resources/whosonfirst/index.ts +0 -11
- package/resources/whosonfirst/loader.ts +0 -158
- package/resources/whosonfirst/placetypes/index.ts +0 -12
- package/resources/whosonfirst/sharded-repo.ts +0 -69
- package/tokenization/index.ts +0 -9
- package/types/index.ts +0 -10
- package/utils/data-root.ts +0 -79
- package/utils/index.ts +0 -15
- package/utils/jsonl.ts +0 -70
- package/utils/repo.ts +0 -144
- package/utils/sealed-db.ts +0 -130
- package/utils/stats.ts +0 -38
- /package/{api → lib/api}/headless.ts +0 -0
- /package/{collections.ts → lib/collections.ts} +0 -0
- /package/{logging → lib/logging}/utils.ts +0 -0
- /package/{utils/python-random.ts → lib/random.ts} +0 -0
- /package/{resources → lib/resources}/debugging.ts +0 -0
- /package/{resources → lib/resources}/locale.ts +0 -0
- /package/{tokenization → lib/tokenization}/normalizer.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-policies.js","sourceRoot":"","sources":["../lib/trust-policies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,SAAS,EAAE,EAAkC,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,aAAqB;IACjD,wBAAwB,CAAC,cAAc,CAAC,CAAA;IAExC,OAAO,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,YAAY,GAAoB,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,CAAA;AAE5E;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,aAAqB;IAC9C,wBAAwB,CAAC,WAAW,CAAC,CAAA;IAErC,OAAO,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,CAAA;AACvD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,aAAqB;IACpD,wBAAwB,CAAC,iBAAiB,CAAC,CAAA;IAE3C,OAAO,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,WAAW,IAAI,EAAE,CAAA;AACjF,CAAC;AAED;;;;GAIG;AACH,SAAS,wBAAwB,CAAC,UAAkB;IACnD,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,mBAAmB,UAAU,kDAAkD,CAAC,CAAA;IACjG,CAAC;AACF,CAAC;AAED,MAAM,WAAW,GAAG,IAAI,GAAG,EAAwD,CAAA;AAEnF,SAAS,MAAM,CACd,IAAY,EACZ,UAA6C;IAE7C,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAEpC,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IAEzB,MAAM,OAAO,GAAG,YAAY,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,CAAC,CAAA;IAC/D,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAE9B,OAAO,OAAO,CAAA;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAChC,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAA;AACzE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IAClC,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,CAAA;AAC7E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IACnC,OAAO,MAAM,CAAC,eAAe,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAA;AAC5E,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB;IACpC,iBAAiB,EAAE,CAAA;IACnB,mBAAmB,EAAE,CAAA;IACrB,oBAAoB,EAAE,CAAA;AACvB,CAAC"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import type { Displayable } from "
|
|
7
|
-
import type { Alpha3bLanguageCode } from "
|
|
8
|
-
import type { LibPostalLanguageCode } from "
|
|
6
|
+
import type { Displayable } from "#resources/debugging";
|
|
7
|
+
import type { Alpha3bLanguageCode } from "#resources/languages/index";
|
|
8
|
+
import type { LibPostalLanguageCode } from "#resources/libpostal";
|
|
9
9
|
/**
|
|
10
10
|
* Classification recognized by Mailwoman.
|
|
11
11
|
*/
|
|
12
|
-
export declare const Classifications: Set<"country" | "region" | "locality" | "postcode" | "house_number" | "street" | "street_prefix" | "street_suffix" | "unit" | "venue" | "
|
|
12
|
+
export declare const Classifications: Set<"unknown" | "intersection" | "country" | "region" | "locality" | "postcode" | "house_number" | "street" | "street_prefix" | "street_suffix" | "unit" | "venue" | "adjacent" | "alpha" | "alphanumeric" | "area" | "chain" | "dependency" | "directional" | "end_token_single_character" | "end_token" | "given_name" | "level_designator" | "level" | "middle_initial" | "multistreet" | "numeric" | "ordinal" | "person" | "personal_suffix" | "personal_title" | "place" | "punctuation" | "road_type" | "start_token" | "stop_word" | "street_name" | "street_proper_name" | "surname" | "toponym" | "unit_designator">;
|
|
13
13
|
export type Classification = typeof Classifications extends Set<infer T> ? T : never;
|
|
14
14
|
/**
|
|
15
15
|
* Public classification labels.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Classification.d.ts","sourceRoot":"","sources":["../../types/Classification.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Classification.d.ts","sourceRoot":"","sources":["../../lib/types/Classification.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,eAAe,gmBA0CjB,CAAA;AAEX,MAAM,MAAM,cAAc,GAAG,OA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G,cAAc,CAAA;AAE5E;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,GAAG,CAAC,cAAc,EAAE,mBAAmB,CAAC;IACpF;;OAEG;IACI,GAAG,CAAC,cAAc,EAAE,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI;IAC9D,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,IAAI;IA+CnE;;OAEG;IACI,wBAAwB,CAAC,cAAc,CAAC,EAAE,qBAAqB,GAAG,OAAO;IAIhF;;OAEG;IACI,MAAM,IAAI,mBAAmB,EAAE;IAItC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,yBAAyB,EAAE,GAAG,uBAAuB;CAS3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Classification.js","sourceRoot":"","sources":["../../types/Classification.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IACtC,UAAU;IACV,OAAO;IACP,cAAc;IACd,MAAM;IACN,OAAO;IACP,SAAS;IACT,YAAY;IACZ,aAAa;IACb,4BAA4B;IAC5B,WAAW;IACX,YAAY;IACZ,cAAc;IACd,cAAc;IACd,kBAAkB;IAClB,OAAO;IACP,UAAU;IACV,gBAAgB;IAChB,aAAa;IACb,SAAS;IACT,SAAS;IACT,QAAQ;IACR,iBAAiB;IACjB,gBAAgB;IAChB,OAAO;IACP,UAAU;IACV,aAAa;IACb,QAAQ;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,aAAa;IACb,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,QAAQ;IACR,SAAS;IACT,SAAS;IACT,iBAAiB;IACjB,MAAM;IACN,SAAS;IACT,OAAO;CACE,CAAC,CAAA;AAIX,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAyB,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CA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AM,KAAK,IAAI,KAAK,EAAE,CAAC;YAC3B,GAAG,CAAC,GAAG,CAAC,KAA4B,CAAC,CAAA;QACtC,CAAC;QAED,OAAO,GAAG,CAAA;IACX,CAAC;CACD"}
|
|
1
|
+
{"version":3,"file":"Classification.js","sourceRoot":"","sources":["../../lib/types/Classification.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IACtC,UAAU;IACV,OAAO;IACP,cAAc;IACd,MAAM;IACN,OAAO;IACP,SAAS;IACT,YAAY;IACZ,aAAa;IACb,4BAA4B;IAC5B,WAAW;IACX,YAAY;IACZ,cAAc;IACd,cAAc;IACd,kBAAkB;IAClB,OAAO;IACP,UAAU;IACV,gBAAgB;IAChB,aAAa;IACb,SAAS;IACT,SAAS;IACT,QAAQ;IACR,iBAAiB;IACjB,gBAAgB;IAChB,OAAO;IACP,UAAU;IACV,aAAa;IACb,QAAQ;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,aAAa;IACb,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,QAAQ;IACR,SAAS;IACT,SAAS;IACT,iBAAiB;IACjB,MAAM;IACN,SAAS;IACT,OAAO;CACE,CAAC,CAAA;AAIX,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAyB,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;AAExF;;GAEG;AACH,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACrC,SAAS;IACT,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,OAAO;IACP,UAAU;IACV,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,iBAAiB;IACjB,MAAM;IACN,OAAO;CAC6B,CAAC,CAAA;AAgBtC,MAAM,UAAU,uBAAuB,CAAC,KAA2C;IAClF,MAAM,cAAc,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,C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QAED,IAAI,KAAK,CAAC,UAAU,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,UAAU,CAAC,GAAG,KAAK,CAAC,cAAc,iDAAiD,KAAK,CAAC,UAAU,EAAE,CAAC,CAAA;QACjH,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QAE/C,iEAAiE;QACjE,IAAI,QAAQ,IAAI,QAAQ,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YACzD,OAAM;QACP,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,EAAE,KAA4B,CAAC,CAAA;IAC7D,CAAC;IAED;;OAEG;IACI,wBAAwB,CAAC,cAAsC;QACrE,OAAO,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;IAC5G,CAAC;IAED;;OAEG;IACI,MAAM;QACZ,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAA;IAC/B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAG,KAAkC;QAChD,MAAM,GAAG,GAAG,IAAI,uBAAuB,EAAE,CAAA;QAEzC,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;YAC3B,GAAG,CAAC,GAAG,CAAC,KAA4B,CAAC,CAAA;QACtC,CAAC;QAED,OAAO,GAAG,CAAA;IACX,CAAC;CACD"}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* also implemented it (via a `wrapLegacyClassifier` adapter) were removed in v7.0.0 with the
|
|
16
16
|
* `@mailwoman/classifiers` workspace; this contract now describes the neural path only.
|
|
17
17
|
*/
|
|
18
|
-
import type { Span } from "
|
|
19
|
-
import type { ComponentTag } from "
|
|
18
|
+
import type { Span } from "#tokenization/index";
|
|
19
|
+
import type { ComponentTag } from "#types/component";
|
|
20
20
|
/**
|
|
21
21
|
* Sections in Mailwoman are sub-Spans of the tokenized input (split by boundary characters: commas, line breaks, etc.).
|
|
22
22
|
* They are surfaced as `Span` instances in `TokenContext.sections`; this alias documents the call-site intent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classifier.d.ts","sourceRoot":"","sources":["../../types/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"classifier.d.ts","sourceRoot":"","sources":["../../lib/types/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,IAAI,CAAA;AAE1B;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IAEV;;OAEG;IACH,SAAS,EAAE,YAAY,CAAA;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,EAAE,4BAA4B,CAAA;IAEpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAA;IAEzC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAA;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IAEnB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IAEvC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,GAAG,CAAC,EAAE,CAAA;IAE3C;;OAEG;IACH,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEvB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAA;CACzF;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;IACvC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,GAAG,CAAC,EAAE,CAAA;IAC3C,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,GAAG,sBAAsB,EAAE,CAAA;CACpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classifier.js","sourceRoot":"","sources":["../../types/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
|
1
|
+
{"version":3,"file":"classifier.js","sourceRoot":"","sources":["../../lib/types/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
package/out/types/component.d.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* - JP-specific (ACTIVATED at CJK Phase 2, 2026-07-29 — the JP char model's 47-label head trains against them; the Latin
|
|
27
27
|
* model never emits them): prefecture, municipality, district, block, sub_block, building_number, building_name
|
|
28
28
|
*/
|
|
29
|
-
export declare const COMPONENT_TAGS: readonly ["country", "region", "locality", "dependent_locality", "postcode", "subregion", "house_number", "street", "street_prefix", "street_prefix_particle", "street_suffix", "intersection_a", "intersection_b", "unit", "venue", "attention", "po_box", "cedex", "prefecture", "municipality", "district", "block", "sub_block", "building_number", "building_name"];
|
|
29
|
+
export declare const COMPONENT_TAGS: readonly ["country", "region", "locality", "dependent_locality", "postcode", "subregion", "house_number", "street", "street_prefix", "street_prefix_particle", "street_suffix", "intersection_a", "intersection_b", "unit", "venue", "attention", "po_box", "cedex", "prefecture", "municipality", "district", "block", "sub_block", "building_number", "building_name", "locality_unit"];
|
|
30
30
|
/**
|
|
31
31
|
* Union of every recognized address component tag.
|
|
32
32
|
*/
|
|
@@ -37,9 +37,14 @@ export type ComponentTag = (typeof COMPONENT_TAGS)[number];
|
|
|
37
37
|
* Used as the per-token output alphabet for the sequence-labeling neural model. Inference decodes a stream of these
|
|
38
38
|
* back into character-aligned `ClassificationProposal`s.
|
|
39
39
|
*/
|
|
40
|
-
export declare const BIO_LABELS: readonly ["O", ...("B-country" | "B-region" | "B-locality" | "B-dependent_locality" | "B-postcode" | "B-subregion" | "B-house_number" | "B-street" | "B-street_prefix" | "B-street_prefix_particle" | "B-street_suffix" | "B-intersection_a" | "B-intersection_b" | "B-unit" | "B-venue" | "B-attention" | "B-po_box" | "B-cedex" | "B-prefecture" | "B-municipality" | "B-district" | "B-block" | "B-sub_block" | "B-building_number" | "B-building_name" | "I-country" | "I-region" | "I-locality" | "I-dependent_locality" | "I-postcode" | "I-subregion" | "I-house_number" | "I-street" | "I-street_prefix" | "I-street_prefix_particle" | "I-street_suffix" | "I-intersection_a" | "I-intersection_b" | "I-unit" | "I-venue" | "I-attention" | "I-po_box" | "I-cedex" | "I-prefecture" | "I-municipality" | "I-district" | "I-block" | "I-sub_block" | "I-building_number" | "I-building_name")[]];
|
|
40
|
+
export declare const BIO_LABELS: readonly ["O", ...("B-country" | "B-region" | "B-locality" | "B-dependent_locality" | "B-postcode" | "B-subregion" | "B-house_number" | "B-street" | "B-street_prefix" | "B-street_prefix_particle" | "B-street_suffix" | "B-intersection_a" | "B-intersection_b" | "B-unit" | "B-venue" | "B-attention" | "B-po_box" | "B-cedex" | "B-prefecture" | "B-municipality" | "B-district" | "B-block" | "B-sub_block" | "B-building_number" | "B-building_name" | "B-locality_unit" | "I-country" | "I-region" | "I-locality" | "I-dependent_locality" | "I-postcode" | "I-subregion" | "I-house_number" | "I-street" | "I-street_prefix" | "I-street_prefix_particle" | "I-street_suffix" | "I-intersection_a" | "I-intersection_b" | "I-unit" | "I-venue" | "I-attention" | "I-po_box" | "I-cedex" | "I-prefecture" | "I-municipality" | "I-district" | "I-block" | "I-sub_block" | "I-building_number" | "I-building_name" | "I-locality_unit")[]];
|
|
41
41
|
/**
|
|
42
42
|
* Union of every BIO label.
|
|
43
43
|
*/
|
|
44
44
|
export type BIOLabel = (typeof BIO_LABELS)[number];
|
|
45
|
+
/**
|
|
46
|
+
* The street-name family in assembly order: prefix, particle, name, suffix. The order is part of the contract — a
|
|
47
|
+
* street surface is assembled by concatenating these tags' values in this order.
|
|
48
|
+
*/
|
|
49
|
+
export declare const STREET_FAMILY_TAGS: readonly ["street_prefix", "street_prefix_particle", "street", "street_suffix"];
|
|
45
50
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../types/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../lib/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,2XAqCjB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,UAAU,k5BAAwF,CAAA;AAE/G;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,iFAKa,CAAA"}
|
package/out/types/component.js
CHANGED
|
@@ -57,6 +57,12 @@ export const COMPONENT_TAGS = [
|
|
|
57
57
|
"sub_block",
|
|
58
58
|
"building_number",
|
|
59
59
|
"building_name",
|
|
60
|
+
// CN-specific (#2034): the organizational ladder China's rural addresses carry below the named settlement —
|
|
61
|
+
// state-farm sub-farms (分场), production brigades and teams (大队, 队, 生产队), XPCC regiments and companies (团, 连),
|
|
62
|
+
// villager groups (组). ONE contiguous span holds the whole ordinal chain (`三分场八队`); which rung each generic names
|
|
63
|
+
// is a deterministic reading of the suffix, not a label distinction, so the tag stays one and the split is derived.
|
|
64
|
+
// The named head unit (`孟定农场`, `新合`) is `dependent_locality`. Emitted by the CJK sibling model only.
|
|
65
|
+
"locality_unit",
|
|
60
66
|
];
|
|
61
67
|
/**
|
|
62
68
|
* BIO-encoded label set: one `O` plus a `B-` / `I-` pair per tag.
|
|
@@ -65,4 +71,14 @@ export const COMPONENT_TAGS = [
|
|
|
65
71
|
* back into character-aligned `ClassificationProposal`s.
|
|
66
72
|
*/
|
|
67
73
|
export const BIO_LABELS = ["O", ...COMPONENT_TAGS.flatMap((tag) => [`B-${tag}`, `I-${tag}`])];
|
|
74
|
+
/**
|
|
75
|
+
* The street-name family in assembly order: prefix, particle, name, suffix. The order is part of the contract — a
|
|
76
|
+
* street surface is assembled by concatenating these tags' values in this order.
|
|
77
|
+
*/
|
|
78
|
+
export const STREET_FAMILY_TAGS = [
|
|
79
|
+
"street_prefix",
|
|
80
|
+
"street_prefix_particle",
|
|
81
|
+
"street",
|
|
82
|
+
"street_suffix",
|
|
83
|
+
];
|
|
68
84
|
//# sourceMappingURL=component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../types/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,UAAU;IACV,WAAW;IACX,eAAe;IACf,cAAc;IACd,QAAQ;IACR,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,MAAM;IACN,cAAc;IACd,OAAO;IACP,WAAW;IACX,QAAQ;IACR,cAAc;IACd,OAAO;IACP,kGAAkG;IAClG,YAAY;IACZ,cAAc;IACd,UAAU;IACV,OAAO;IACP,WAAW;IACX,iBAAiB;IACjB,eAAe;CACN,CAAA;AAOV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,CAAU,CAAC,CAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../lib/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,UAAU;IACV,WAAW;IACX,eAAe;IACf,cAAc;IACd,QAAQ;IACR,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,MAAM;IACN,cAAc;IACd,OAAO;IACP,WAAW;IACX,QAAQ;IACR,cAAc;IACd,OAAO;IACP,kGAAkG;IAClG,YAAY;IACZ,cAAc;IACd,UAAU;IACV,OAAO;IACP,WAAW;IACX,iBAAiB;IACjB,eAAe;IACf,4GAA4G;IAC5G,8GAA8G;IAC9G,kHAAkH;IAClH,oHAAoH;IACpH,qGAAqG;IACrG,eAAe;CACN,CAAA;AAOV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,CAAU,CAAC,CAAU,CAAA;AAO/G;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,eAAe;IACf,wBAAwB;IACxB,QAAQ;IACR,eAAe;CAC4B,CAAA"}
|
package/out/types/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
6
|
+
export * from "#types/Classification";
|
|
7
|
+
export * from "#types/classifier";
|
|
8
|
+
export * from "#types/component";
|
|
9
|
+
export * from "#types/mapping";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/out/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
package/out/types/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
6
|
+
export * from "#types/Classification";
|
|
7
|
+
export * from "#types/classifier";
|
|
8
|
+
export * from "#types/component";
|
|
9
|
+
export * from "#types/mapping";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/out/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
package/out/types/mapping.d.ts
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* reasoning that the legacy classifiers don't expose; deferred to the neural model where the
|
|
16
16
|
* schema natively distinguishes them.
|
|
17
17
|
*/
|
|
18
|
-
import type { Classification } from "
|
|
19
|
-
import type { ComponentTag } from "
|
|
18
|
+
import type { Classification } from "#types/Classification";
|
|
19
|
+
import type { ComponentTag } from "#types/component";
|
|
20
20
|
/**
|
|
21
21
|
* Translate a legacy classification tag into a canonical {@link ComponentTag}, or `null` if the legacy tag has no
|
|
22
22
|
* externally visible component equivalent.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../types/mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../lib/types/mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAqBpD;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,cAAc,GAAG,YAAY,GAAG,IAAI,CAE9F;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAuC,cAAc,EAAE,CAAA;AAmBjG;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAAC,SAAS,EAAE,YAAY,GAAG,cAAc,GAAG,IAAI,CAEjG"}
|
package/out/types/mapping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../types/mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;GAGG;AACH,MAAM,mBAAmB,GAAkD;IAC1E,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,oBAAoB;IAChC,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,gBAAgB;CAC9B,CAAA;AAED;;;GAGG;AACH,MAAM,UAAU,kCAAkC,CAAC,MAAsB;IACxE,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,IAAI,CAAA;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAqB,CAAA;AAEjG;;;;GAIG;AACH,MAAM,mBAAmB,G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MAAM,GAAG,GAAkD,EAAE,CAAA;IAE7D,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAA0C,EAAE,CAAC;QAChH,IAAI,CAAC,CAAC,SAAS,IAAI,GAAG,CAAC,EAAE,CAAC;YACzB,GAAG,CAAC,SAAS,CAAC,GAAG,MAAM,CAAA;QACxB,CAAC;IACF,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC,CAAC,EAAE,CAAA;AAEJ;;;;;;GAMG;AACH,MAAM,UAAU,kCAAkC,CAAC,SAAuB;IACzE,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,IAAI,CAAA;AAC9C,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Run one bounded child process and read its result off stdout — the coordination every chunked layer
|
|
7
|
+
* build uses to keep a polyfill's heap bounded.
|
|
8
|
+
*
|
|
9
|
+
* THE PROCESS BOUNDARY IS THE POINT AND THE CALLER'S REASON RATHER THAN THIS FUNCTION'S. h3's WASM
|
|
10
|
+
* heap cannot be reset from JavaScript and does not survive an unbounded number of polyfill calls, so a
|
|
11
|
+
* build gives each range a heap that starts empty by giving it an interpreter that starts empty. What
|
|
12
|
+
* lives here is only the plumbing that every such build repeats.
|
|
13
|
+
*
|
|
14
|
+
* STDOUT IS THE RESULT CHANNEL AND CARRIES NOTHING ELSE. Progress is INHERITED — stderr passes straight
|
|
15
|
+
* through to the parent's — so a long chunk reports as it goes while stdout stays parseable without a
|
|
16
|
+
* framing convention. Only the LAST stdout line is read, so a child that prints diagnostics on stdout
|
|
17
|
+
* before its result still parses.
|
|
18
|
+
*
|
|
19
|
+
* A NON-ZERO EXIT THROWS, AND THAT IS A CORRECTNESS RULE RATHER THAN A CONVENIENCE. A chunk that died
|
|
20
|
+
* mid-range has already written part of its rows into the shared artifact; continuing would seal a
|
|
21
|
+
* database missing rows nobody could name, which reads downstream as a smaller source rather than as a
|
|
22
|
+
* failure. The same applies to a chunk that exits cleanly having printed nothing.
|
|
23
|
+
*/
|
|
24
|
+
export interface RunChunkProcessOptions {
|
|
25
|
+
/**
|
|
26
|
+
* The script the child runs, as a filesystem path — resolve it with `import.meta.resolve` against the owning
|
|
27
|
+
* workspace's `scripts` subpath rather than assembling it.
|
|
28
|
+
*/
|
|
29
|
+
script: string;
|
|
30
|
+
args: readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* Names the build in every refusal, e.g. `"flood build"`.
|
|
33
|
+
*/
|
|
34
|
+
context: string;
|
|
35
|
+
/**
|
|
36
|
+
* Names the RANGE in the no-result refusal, e.g. `"chunk OBJECTID 1–1000"`. A build whose ranges are identifiable
|
|
37
|
+
* should pass one: it is the difference between knowing which rows are unaccounted for and knowing only that some
|
|
38
|
+
* are. Defaults to `"a chunk"` for a build whose chunks have no natural name.
|
|
39
|
+
*/
|
|
40
|
+
subject?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The argv every layer ingest-chunk process shares: the temp artifact the parent created, the caller's own flags, then
|
|
44
|
+
* the two resolutions.
|
|
45
|
+
*
|
|
46
|
+
* THE PARENT HOLDS NO HANDLE WHILE THE CHUNKS RUN — its caller closed one before the batched ingest and opens another
|
|
47
|
+
* after. Each child opens the same file and appends; chunks run one at a time, so there is exactly one writer at every
|
|
48
|
+
* instant and no locking to reason about. A chunk that exits non-zero, or prints no result line, throws in
|
|
49
|
+
* {@link runChunkProcess}: a chunk that died mid-range has written a partial set of rows, and continuing would seal an
|
|
50
|
+
* artifact missing features nobody could name.
|
|
51
|
+
*/
|
|
52
|
+
export declare function ingestChunkArguments(options: {
|
|
53
|
+
database: string;
|
|
54
|
+
args?: readonly string[];
|
|
55
|
+
indexResolution: number;
|
|
56
|
+
coverageResolution: number;
|
|
57
|
+
}): string[];
|
|
58
|
+
/**
|
|
59
|
+
* Run one chunk process and parse its result line.
|
|
60
|
+
*
|
|
61
|
+
* @throws {Error} When the process fails to spawn, exits non-zero, or prints no result line.
|
|
62
|
+
*/
|
|
63
|
+
export declare function runChunkProcess<T>(options: RunChunkProcessOptions): Promise<T>;
|
|
64
|
+
//# sourceMappingURL=chunk-process.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-process.d.ts","sourceRoot":"","sources":["../../lib/utils/chunk-process.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,MAAM,CAAA;CAC1B,GAAG,MAAM,EAAE,CAUX;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,CAAC,CAAC,CAoCpF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Run one bounded child process and read its result off stdout — the coordination every chunked layer
|
|
7
|
+
* build uses to keep a polyfill's heap bounded.
|
|
8
|
+
*
|
|
9
|
+
* THE PROCESS BOUNDARY IS THE POINT AND THE CALLER'S REASON RATHER THAN THIS FUNCTION'S. h3's WASM
|
|
10
|
+
* heap cannot be reset from JavaScript and does not survive an unbounded number of polyfill calls, so a
|
|
11
|
+
* build gives each range a heap that starts empty by giving it an interpreter that starts empty. What
|
|
12
|
+
* lives here is only the plumbing that every such build repeats.
|
|
13
|
+
*
|
|
14
|
+
* STDOUT IS THE RESULT CHANNEL AND CARRIES NOTHING ELSE. Progress is INHERITED — stderr passes straight
|
|
15
|
+
* through to the parent's — so a long chunk reports as it goes while stdout stays parseable without a
|
|
16
|
+
* framing convention. Only the LAST stdout line is read, so a child that prints diagnostics on stdout
|
|
17
|
+
* before its result still parses.
|
|
18
|
+
*
|
|
19
|
+
* A NON-ZERO EXIT THROWS, AND THAT IS A CORRECTNESS RULE RATHER THAN A CONVENIENCE. A chunk that died
|
|
20
|
+
* mid-range has already written part of its rows into the shared artifact; continuing would seal a
|
|
21
|
+
* database missing rows nobody could name, which reads downstream as a smaller source rather than as a
|
|
22
|
+
* failure. The same applies to a chunk that exits cleanly having printed nothing.
|
|
23
|
+
*/
|
|
24
|
+
import { TextSpliterator } from "spliterator";
|
|
25
|
+
import { parseJSONStrict } from "#json";
|
|
26
|
+
import { spawnProcess } from "#process";
|
|
27
|
+
/**
|
|
28
|
+
* The argv every layer ingest-chunk process shares: the temp artifact the parent created, the caller's own flags, then
|
|
29
|
+
* the two resolutions.
|
|
30
|
+
*
|
|
31
|
+
* THE PARENT HOLDS NO HANDLE WHILE THE CHUNKS RUN — its caller closed one before the batched ingest and opens another
|
|
32
|
+
* after. Each child opens the same file and appends; chunks run one at a time, so there is exactly one writer at every
|
|
33
|
+
* instant and no locking to reason about. A chunk that exits non-zero, or prints no result line, throws in
|
|
34
|
+
* {@link runChunkProcess}: a chunk that died mid-range has written a partial set of rows, and continuing would seal an
|
|
35
|
+
* artifact missing features nobody could name.
|
|
36
|
+
*/
|
|
37
|
+
export function ingestChunkArguments(options) {
|
|
38
|
+
return [
|
|
39
|
+
"--database",
|
|
40
|
+
options.database,
|
|
41
|
+
...(options.args ?? []),
|
|
42
|
+
"--index-resolution",
|
|
43
|
+
String(options.indexResolution),
|
|
44
|
+
"--coverage-resolution",
|
|
45
|
+
String(options.coverageResolution),
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Run one chunk process and parse its result line.
|
|
50
|
+
*
|
|
51
|
+
* @throws {Error} When the process fails to spawn, exits non-zero, or prints no result line.
|
|
52
|
+
*/
|
|
53
|
+
export async function runChunkProcess(options) {
|
|
54
|
+
const stdout = await new Promise((resolve, reject) => {
|
|
55
|
+
const child = spawnProcess(process.execPath, [options.script, ...options.args], {
|
|
56
|
+
stdio: ["ignore", "pipe", "inherit"],
|
|
57
|
+
});
|
|
58
|
+
const parts = [];
|
|
59
|
+
child.stdout.setEncoding("utf8");
|
|
60
|
+
child.stdout.on("data", (chunk) => {
|
|
61
|
+
parts.push(chunk);
|
|
62
|
+
});
|
|
63
|
+
child.on("error", reject);
|
|
64
|
+
child.on("close", (code) => {
|
|
65
|
+
if (code === 0) {
|
|
66
|
+
resolve(parts.join(""));
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
reject(new Error(`${options.context}: chunk process exited ${code}`));
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
const line = TextSpliterator.from(stdout.trim(), { delimiter: "\n" }).toArray().at(-1);
|
|
73
|
+
if (!line) {
|
|
74
|
+
throw new Error(`${options.context}: ${options.subject ?? "a chunk"} printed no result — its rows are in the artifact unaccounted for`);
|
|
75
|
+
}
|
|
76
|
+
return parseJSONStrict(line);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=chunk-process.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-process.js","sourceRoot":"","sources":["../../lib/utils/chunk-process.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,OA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;gBAEvB,OAAM;YACP,CAAC;YAED,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,OAAO,CAAC,OAAO,0BAA0B,IAAI,EAAE,CAAC,CAAC,CAAA;QACtE,CAAC,CAAC,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;IAEtF,IAAI,CAAC,IAAI,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACd,GAAG,OAAO,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,IAAI,SAAS,mEAAmE,CACtH,CAAA;IACF,CAAC;IAED,OAAO,eAAe,CAAI,IAAI,CAAC,CAAA;AAChC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
* @file Small collection folds shared across build pipelines.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Fold `[key, count]` entries into `target`, ADDING counts rather than replacing them — the merge every chunked build's
|
|
9
|
+
* aggregation repeats. Why the counts add is a fact about each product's chunking, stated at its call site.
|
|
10
|
+
*/
|
|
11
|
+
export declare function mergeCountsInto<Key>(target: Map<Key, number>, entries: Iterable<readonly [Key, number]>): void;
|
|
12
|
+
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../lib/utils/collections.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAI9G"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
* @file Small collection folds shared across build pipelines.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Fold `[key, count]` entries into `target`, ADDING counts rather than replacing them — the merge every chunked build's
|
|
9
|
+
* aggregation repeats. Why the counts add is a fact about each product's chunking, stated at its call site.
|
|
10
|
+
*/
|
|
11
|
+
export function mergeCountsInto(target, entries) {
|
|
12
|
+
for (const [key, count] of entries) {
|
|
13
|
+
target.set(key, (target.get(key) ?? 0) + count);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=collections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../lib/utils/collections.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAM,MAAwB,EAAE,OAAyC;IACvG,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,OAAO,EAAE,CAAC;QACpC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAA;IAChD,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* A promise for an emitter's next named event — `await once(child, "exit")` — rejecting on its `error`.
|
|
8
|
+
*/
|
|
9
|
+
export { once } from "node:events";
|
|
10
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../lib/utils/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* A promise for an emitter's next named event — `await once(child, "exit")` — rejecting on its `error`.
|
|
8
|
+
*/
|
|
9
|
+
export { once } from "node:events";
|
|
10
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../lib/utils/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Acquire one vintage of a published file geodatabase — transfer the archive, unzip it into a `.gdb`
|
|
7
|
+
* directory, and answer with the directory GDAL will open.
|
|
8
|
+
*
|
|
9
|
+
* THE ARCHIVE IS UNZIPPED **INTO** A `.gdb` DIRECTORY RATHER THAN IN PLACE. These publishers put the
|
|
10
|
+
* geodatabase's files at the archive's ROOT, and GDAL identifies a file geodatabase by the DIRECTORY
|
|
11
|
+
* SUFFIX. Unzipping in place produces a pile of `a0000000*.gdbtable` files no driver will open, which
|
|
12
|
+
* reads as an unsupported format rather than as an extraction that landed one level too high.
|
|
13
|
+
*
|
|
14
|
+
* THE CACHE IS KEYED ON THE PRODUCT'S OWN VINTAGE, NEVER ON A LENGTH PROBE. The hosts these callers use
|
|
15
|
+
* answer `HEAD` with HTTP 405 and ignore `Range` — a `curl -r 0-1023` returns HTTP 200 with the whole
|
|
16
|
+
* body — so "just check the size" starts a real transfer of a file already on disk. Keying on the vintage
|
|
17
|
+
* the catalogue declares means a re-run against the same vintage never re-transfers, and a new vintage
|
|
18
|
+
* never overwrites the old one in place.
|
|
19
|
+
*
|
|
20
|
+
* SHARED RATHER THAN COPIED because nothing in it is any one product's: it is a cache key, a transfer and
|
|
21
|
+
* an extraction. What stays with each caller is where the URL came from and what the two names are.
|
|
22
|
+
*/
|
|
23
|
+
export interface DownloadZippedGeodatabaseOptions {
|
|
24
|
+
/**
|
|
25
|
+
* The direct file URL, read from the catalogue entry rather than assembled — these file services key on an opaque id
|
|
26
|
+
* with no relationship to the dataset id.
|
|
27
|
+
*/
|
|
28
|
+
url: string;
|
|
29
|
+
/**
|
|
30
|
+
* The product's ISO revision date. The cache is keyed on it.
|
|
31
|
+
*/
|
|
32
|
+
revisionDate: string;
|
|
33
|
+
/**
|
|
34
|
+
* Where vintages are kept.
|
|
35
|
+
*/
|
|
36
|
+
cacheRoot: string;
|
|
37
|
+
/**
|
|
38
|
+
* The archive's file name, as the catalogue entry names the resource.
|
|
39
|
+
*/
|
|
40
|
+
resource: string;
|
|
41
|
+
/**
|
|
42
|
+
* The `.gdb` directory name the archive's contents are extracted into.
|
|
43
|
+
*/
|
|
44
|
+
directory: string;
|
|
45
|
+
/**
|
|
46
|
+
* Names the caller in the refusal, e.g. `"flood download"`.
|
|
47
|
+
*/
|
|
48
|
+
context: string;
|
|
49
|
+
onProgress?: (message: string) => void;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Download and unzip the geodatabase for one product vintage, returning the path of the `.gdb` directory.
|
|
53
|
+
*
|
|
54
|
+
* The transfer writes to a `.part` file and renames only on a clean finish, so an interrupted run never presents as a
|
|
55
|
+
* complete archive — the same discipline the database build uses, for the same reason.
|
|
56
|
+
*/
|
|
57
|
+
export declare function downloadZippedGeodatabase(options: DownloadZippedGeodatabaseOptions): Promise<string>;
|
|
58
|
+
//# sourceMappingURL=geodatabase-archive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geodatabase-archive.d.ts","sourceRoot":"","sources":["../../lib/utils/geodatabase-archive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AASH,MAAM,WAAW,gCAAgC;IAChD;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,CA+B1G"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Acquire one vintage of a published file geodatabase — transfer the archive, unzip it into a `.gdb`
|
|
7
|
+
* directory, and answer with the directory GDAL will open.
|
|
8
|
+
*
|
|
9
|
+
* THE ARCHIVE IS UNZIPPED **INTO** A `.gdb` DIRECTORY RATHER THAN IN PLACE. These publishers put the
|
|
10
|
+
* geodatabase's files at the archive's ROOT, and GDAL identifies a file geodatabase by the DIRECTORY
|
|
11
|
+
* SUFFIX. Unzipping in place produces a pile of `a0000000*.gdbtable` files no driver will open, which
|
|
12
|
+
* reads as an unsupported format rather than as an extraction that landed one level too high.
|
|
13
|
+
*
|
|
14
|
+
* THE CACHE IS KEYED ON THE PRODUCT'S OWN VINTAGE, NEVER ON A LENGTH PROBE. The hosts these callers use
|
|
15
|
+
* answer `HEAD` with HTTP 405 and ignore `Range` — a `curl -r 0-1023` returns HTTP 200 with the whole
|
|
16
|
+
* body — so "just check the size" starts a real transfer of a file already on disk. Keying on the vintage
|
|
17
|
+
* the catalogue declares means a re-run against the same vintage never re-transfers, and a new vintage
|
|
18
|
+
* never overwrites the old one in place.
|
|
19
|
+
*
|
|
20
|
+
* SHARED RATHER THAN COPIED because nothing in it is any one product's: it is a cache key, a transfer and
|
|
21
|
+
* an extraction. What stays with each caller is where the URL came from and what the two names are.
|
|
22
|
+
*/
|
|
23
|
+
import { join } from "path-ts";
|
|
24
|
+
import { tryStat } from "#fs/readers";
|
|
25
|
+
import { makeDirectories } from "#fs/writers";
|
|
26
|
+
import { runFile } from "#process";
|
|
27
|
+
import { streamToDisk } from "#utils/stream-to-disk";
|
|
28
|
+
/**
|
|
29
|
+
* Download and unzip the geodatabase for one product vintage, returning the path of the `.gdb` directory.
|
|
30
|
+
*
|
|
31
|
+
* The transfer writes to a `.part` file and renames only on a clean finish, so an interrupted run never presents as a
|
|
32
|
+
* complete archive — the same discipline the database build uses, for the same reason.
|
|
33
|
+
*/
|
|
34
|
+
export async function downloadZippedGeodatabase(options) {
|
|
35
|
+
const vintageDir = join(options.cacheRoot, options.revisionDate);
|
|
36
|
+
const geodatabasePath = join(vintageDir, options.directory);
|
|
37
|
+
if (await tryStat(geodatabasePath)) {
|
|
38
|
+
options.onProgress?.(`geodatabase for ${options.revisionDate} already unzipped`);
|
|
39
|
+
return geodatabasePath;
|
|
40
|
+
}
|
|
41
|
+
await makeDirectories(vintageDir);
|
|
42
|
+
const archivePath = join(vintageDir, options.resource);
|
|
43
|
+
if (await tryStat(archivePath)) {
|
|
44
|
+
options.onProgress?.(`archive for ${options.revisionDate} already downloaded`);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
await streamToDisk({
|
|
48
|
+
url: options.url,
|
|
49
|
+
destination: archivePath,
|
|
50
|
+
context: options.context,
|
|
51
|
+
...(options.onProgress ? { onProgress: options.onProgress } : {}),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
options.onProgress?.("unzipping");
|
|
55
|
+
await makeDirectories(geodatabasePath);
|
|
56
|
+
await runFile("unzip", ["-o", "-q", archivePath, "-d", geodatabasePath]);
|
|
57
|
+
return geodatabasePath;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=geodatabase-archive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geodatabase-archive.js","sourceRoot":"","sources":["../../lib/utils/geodatabase-archive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA+BpD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,OAAyC;IACxF,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IAChE,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;IAE3D,IAAI,MAAM,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,UAAU,EAAE,CAAC,mBAAmB,OAAO,CAAC,YAAY,mBAAmB,CAAC,CAAA;QAEhF,OAAO,eAAe,CAAA;IACvB,CAAC;IAED,MAAM,eAAe,CAAC,UAAU,CAAC,CAAA;IAEjC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEtD,IAAI,MAAM,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QAChC,OAAO,CAAC,UAAU,EAAE,CAAC,eAAe,OAAO,CAAC,YAAY,qBAAqB,CAAC,CAAA;IAC/E,CAAC;SAAM,CAAC;QACP,MAAM,YAAY,CAAC;YAClB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACjE,CAAC,CAAA;IACH,CAAC;IAED,OAAO,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAA;IAEjC,MAAM,eAAe,CAAC,eAAe,CAAC,CAAA;IACtC,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAA;IAExE,OAAO,eAAe,CAAA;AACvB,CAAC"}
|
package/out/utils/index.d.ts
CHANGED
|
@@ -3,13 +3,18 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "
|
|
14
|
-
export * from "
|
|
6
|
+
export * from "#utils/chunk-process";
|
|
7
|
+
export * from "#utils/collections";
|
|
8
|
+
export * from "#data-root";
|
|
9
|
+
export * from "#utils/geodatabase-archive";
|
|
10
|
+
export * from "#hash";
|
|
11
|
+
export * from "#numeric";
|
|
12
|
+
export * from "#strings/python-json";
|
|
13
|
+
export * from "#random";
|
|
14
|
+
export * from "#paths";
|
|
15
|
+
export * from "#utils/sqlite-rows";
|
|
16
|
+
export * from "#stats";
|
|
17
|
+
export * from "#utils/stream-to-disk";
|
|
18
|
+
export * from "#utils/time";
|
|
19
|
+
export * from "#utils/union-find";
|
|
15
20
|
//# sourceMappingURL=index.d.ts.map
|
package/out/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,uBAAuB,CAAA;AACrC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|