@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../kysley/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAA;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D;;;;;GAKG;AACH,qBAAa,cAAc,CAAC,EAAE,GAAG,QAAQ,CAAE,SAAQ,MAAM,CAAC,EAAE,CAAE,YAAW,UAAU;gBACtE,aAAa,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;IAO9E,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGxB"}
|
package/out/kysley/client.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
import { Kysely } from "kysely";
|
|
7
|
-
import { SqliteDialect } from "./dialect.js";
|
|
8
|
-
/**
|
|
9
|
-
* A Kysely client for SQLite that uses the `node:sqlite` library.
|
|
10
|
-
*
|
|
11
|
-
* Generic over the schema: pass a concrete `Database` interface (`new DatabaseClient<MySchema>(...)`) for compile-time
|
|
12
|
-
* table typing, or omit it for the empty default. See `core/db/schema.ts`.
|
|
13
|
-
*/
|
|
14
|
-
export class DatabaseClient extends Kysely {
|
|
15
|
-
constructor(dialectConfig, config) {
|
|
16
|
-
super({
|
|
17
|
-
...config,
|
|
18
|
-
dialect: new SqliteDialect(dialectConfig),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
[Symbol.dispose]() {
|
|
22
|
-
this.destroy();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=client.js.map
|
package/out/kysley/client.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../kysley/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAqB,MAAM,QAAQ,CAAA;AAIlD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,OAAO,cAA8B,SAAQ,MAAU;IAC5D,YAAY,aAAkC,EAAE,MAA8B;QAC7E,KAAK,CAAC;YACL,GAAG,MAAM;YACT,OAAO,EAAE,IAAI,aAAa,CAAC,aAAa,CAAC;SACzC,CAAC,CAAA;IACH,CAAC;IAED,CAAC,MAAM,CAAC,OAAO,CAAC;QACf,IAAI,CAAC,OAAO,EAAE,CAAA;IACf,CAAC;CACD"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
import type { DatabaseSync } from "node:sqlite";
|
|
7
|
-
import type { DatabaseConnection } from "kysely";
|
|
8
|
-
/**
|
|
9
|
-
* Config for the SQLite dialect.
|
|
10
|
-
*/
|
|
11
|
-
export interface SqliteDialectConfig {
|
|
12
|
-
/**
|
|
13
|
-
* A node:sqlite DatabaseSync instance or a function that returns one.
|
|
14
|
-
*
|
|
15
|
-
* If a function is provided, it's called once when the first query is executed.
|
|
16
|
-
*
|
|
17
|
-
* https://nodejs.org/api/sqlite.html#class-databasesync
|
|
18
|
-
*/
|
|
19
|
-
database: InstanceType<typeof DatabaseSync> | (() => Promise<InstanceType<typeof DatabaseSync>>);
|
|
20
|
-
/**
|
|
21
|
-
* Called once when the first query is executed.
|
|
22
|
-
*
|
|
23
|
-
* This is a Kysely specific feature and does not come from the `node:sqlite` module.
|
|
24
|
-
*/
|
|
25
|
-
onCreateConnection?: (connection: DatabaseConnection) => Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=dialect-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialect-config.d.ts","sourceRoot":"","sources":["../../kysley/dialect-config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAEhD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;;;OAMG;IACH,QAAQ,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAA;IAEhG;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACtE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialect-config.js","sourceRoot":"","sources":["../../kysley/dialect-config.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
package/out/kysley/dialect.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
import { type DatabaseIntrospector, type Dialect, type DialectAdapter, type Driver, type Kysely, type QueryCompiler } from "kysely";
|
|
7
|
-
import type { SqliteDialectConfig } from "./dialect-config.ts";
|
|
8
|
-
/**
|
|
9
|
-
* SQLite dialect that uses the [`node:sqlite`](https://nodejs.org/api/sqlite.html) library.
|
|
10
|
-
*
|
|
11
|
-
* The constructor takes an instance of {@link SqliteDialectConfig}.
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { DatabaseSync } from "node:sqlite"
|
|
15
|
-
*
|
|
16
|
-
* new SqliteDialect({
|
|
17
|
-
* database: new DatabaseSync("db.sqlite"),
|
|
18
|
-
* })
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* If you want the pool to only be created once it's first used, `database` can be a function:
|
|
22
|
-
*
|
|
23
|
-
* ```ts
|
|
24
|
-
* import { DatabaseSync } from "node:sqlite"
|
|
25
|
-
*
|
|
26
|
-
* new SqliteDialect({
|
|
27
|
-
* database: async () => new DatabaseSync("db.sqlite"),
|
|
28
|
-
* })
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare class SqliteDialect implements Dialect {
|
|
32
|
-
protected config: SqliteDialectConfig;
|
|
33
|
-
constructor(config: SqliteDialectConfig);
|
|
34
|
-
createDriver(): Driver;
|
|
35
|
-
createQueryCompiler(): QueryCompiler;
|
|
36
|
-
createAdapter(): DialectAdapter;
|
|
37
|
-
createIntrospector(db: Kysely<unknown>): DatabaseIntrospector;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=dialect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialect.d.ts","sourceRoot":"","sources":["../../kysley/dialect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAIN,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAG9D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC5C,SAAS,CAAC,MAAM,EAAE,mBAAmB,CAAA;gBAEzB,MAAM,EAAE,mBAAmB;IAIvC,YAAY,IAAI,MAAM;IAItB,mBAAmB,IAAI,aAAa;IAIpC,aAAa,IAAI,cAAc;IAI/B,kBAAkB,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,oBAAoB;CAG7D"}
|
package/out/kysley/dialect.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
import { SqliteAdapter, SqliteIntrospector, SqliteQueryCompiler, } from "kysely";
|
|
7
|
-
import { SqliteDriver } from "./driver.js";
|
|
8
|
-
/**
|
|
9
|
-
* SQLite dialect that uses the [`node:sqlite`](https://nodejs.org/api/sqlite.html) library.
|
|
10
|
-
*
|
|
11
|
-
* The constructor takes an instance of {@link SqliteDialectConfig}.
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { DatabaseSync } from "node:sqlite"
|
|
15
|
-
*
|
|
16
|
-
* new SqliteDialect({
|
|
17
|
-
* database: new DatabaseSync("db.sqlite"),
|
|
18
|
-
* })
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* If you want the pool to only be created once it's first used, `database` can be a function:
|
|
22
|
-
*
|
|
23
|
-
* ```ts
|
|
24
|
-
* import { DatabaseSync } from "node:sqlite"
|
|
25
|
-
*
|
|
26
|
-
* new SqliteDialect({
|
|
27
|
-
* database: async () => new DatabaseSync("db.sqlite"),
|
|
28
|
-
* })
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export class SqliteDialect {
|
|
32
|
-
config;
|
|
33
|
-
constructor(config) {
|
|
34
|
-
this.config = Object.freeze({ ...config });
|
|
35
|
-
}
|
|
36
|
-
createDriver() {
|
|
37
|
-
return new SqliteDriver(this.config);
|
|
38
|
-
}
|
|
39
|
-
createQueryCompiler() {
|
|
40
|
-
return new SqliteQueryCompiler();
|
|
41
|
-
}
|
|
42
|
-
createAdapter() {
|
|
43
|
-
return new SqliteAdapter();
|
|
44
|
-
}
|
|
45
|
-
createIntrospector(db) {
|
|
46
|
-
return new SqliteIntrospector(db);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=dialect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialect.js","sourceRoot":"","sources":["../../kysley/dialect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACN,aAAa,EACb,kBAAkB,EAClB,mBAAmB,GAOnB,MAAM,QAAQ,CAAA;AAGf,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,OAAO,aAAa;IACf,MAAM,CAAqB;IAErC,YAAY,MAA2B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;IAC3C,CAAC;IAED,YAAY;QACX,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACrC,CAAC;IAED,mBAAmB;QAClB,OAAO,IAAI,mBAAmB,EAAE,CAAA;IACjC,CAAC;IAED,aAAa;QACZ,OAAO,IAAI,aAAa,EAAE,CAAA;IAC3B,CAAC;IAED,kBAAkB,CAAC,EAAmB;QACrC,OAAO,IAAI,kBAAkB,CAAC,EAAE,CAAC,CAAA;IAClC,CAAC;CACD"}
|
package/out/kysley/driver.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
import { type DatabaseConnection, type Driver, type QueryCompiler } from "kysely";
|
|
7
|
-
import type { SqliteDialectConfig } from "./dialect-config.ts";
|
|
8
|
-
export declare class SqliteDriver implements Driver {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(config: SqliteDialectConfig);
|
|
11
|
-
init(): Promise<void>;
|
|
12
|
-
acquireConnection(): Promise<DatabaseConnection>;
|
|
13
|
-
beginTransaction(connection: DatabaseConnection): Promise<void>;
|
|
14
|
-
commitTransaction(connection: DatabaseConnection): Promise<void>;
|
|
15
|
-
rollbackTransaction(connection: DatabaseConnection): Promise<void>;
|
|
16
|
-
savepoint(connection: DatabaseConnection, savepointName: string, compileQuery: QueryCompiler["compileQuery"]): Promise<void>;
|
|
17
|
-
rollbackToSavepoint(connection: DatabaseConnection, savepointName: string, compileQuery: QueryCompiler["compileQuery"]): Promise<void>;
|
|
18
|
-
releaseSavepoint(connection: DatabaseConnection, savepointName: string, compileQuery: QueryCompiler["compileQuery"]): Promise<void>;
|
|
19
|
-
releaseConnection(): Promise<void>;
|
|
20
|
-
destroy(): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../kysley/driver.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAGN,KAAK,kBAAkB,EACvB,KAAK,MAAM,EAEX,KAAK,aAAa,EAIlB,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AA0B9D,qBAAa,YAAa,YAAW,MAAM;;gBAO9B,MAAM,EAAE,mBAAmB;IAIjC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAWrB,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAShD,gBAAgB,CAAC,UAAU,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D,iBAAiB,CAAC,UAAU,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhE,mBAAmB,CAAC,UAAU,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlE,SAAS,CACd,UAAU,EAAE,kBAAkB,EAC9B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,GACzC,OAAO,CAAC,IAAI,CAAC;IAIV,mBAAmB,CACxB,UAAU,EAAE,kBAAkB,EAC9B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,GACzC,OAAO,CAAC,IAAI,CAAC;IAIV,gBAAgB,CACrB,UAAU,EAAE,kBAAkB,EAC9B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,GACzC,OAAO,CAAC,IAAI,CAAC;IAIV,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
package/out/kysley/driver.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
|
-
import { CompiledQuery, createQueryId, IdentifierNode, RawNode, SelectQueryNode, } from "kysely";
|
|
7
|
-
class ConnectionMutex {
|
|
8
|
-
#promise;
|
|
9
|
-
#resolve;
|
|
10
|
-
async lock() {
|
|
11
|
-
while (this.#promise) {
|
|
12
|
-
await this.#promise;
|
|
13
|
-
}
|
|
14
|
-
this.#promise = new Promise((resolve) => {
|
|
15
|
-
this.#resolve = resolve;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
unlock() {
|
|
19
|
-
const resolve = this.#resolve;
|
|
20
|
-
this.#promise = undefined;
|
|
21
|
-
this.#resolve = undefined;
|
|
22
|
-
resolve?.();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export class SqliteDriver {
|
|
26
|
-
#config;
|
|
27
|
-
#connectionMutex = new ConnectionMutex();
|
|
28
|
-
#db;
|
|
29
|
-
#connection;
|
|
30
|
-
constructor(config) {
|
|
31
|
-
this.#config = Object.freeze({ ...config });
|
|
32
|
-
}
|
|
33
|
-
async init() {
|
|
34
|
-
const db = typeof this.#config.database === "function" ? await this.#config.database() : this.#config.database;
|
|
35
|
-
this.#db = db;
|
|
36
|
-
this.#connection = new SqliteConnection(db);
|
|
37
|
-
if (this.#config.onCreateConnection) {
|
|
38
|
-
await this.#config.onCreateConnection(this.#connection);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
async acquireConnection() {
|
|
42
|
-
// SQLite only has one single connection. We use a mutex here to wait
|
|
43
|
-
// until the single connection has been released.
|
|
44
|
-
await this.#connectionMutex.lock();
|
|
45
|
-
// biome-ignore lint/style/noNonNullAssertion: :shrug:
|
|
46
|
-
return this.#connection;
|
|
47
|
-
}
|
|
48
|
-
async beginTransaction(connection) {
|
|
49
|
-
await connection.executeQuery(CompiledQuery.raw("begin"));
|
|
50
|
-
}
|
|
51
|
-
async commitTransaction(connection) {
|
|
52
|
-
await connection.executeQuery(CompiledQuery.raw("commit"));
|
|
53
|
-
}
|
|
54
|
-
async rollbackTransaction(connection) {
|
|
55
|
-
await connection.executeQuery(CompiledQuery.raw("rollback"));
|
|
56
|
-
}
|
|
57
|
-
async savepoint(connection, savepointName, compileQuery) {
|
|
58
|
-
await connection.executeQuery(compileQuery(parseSavepointCommand("savepoint", savepointName), createQueryId()));
|
|
59
|
-
}
|
|
60
|
-
async rollbackToSavepoint(connection, savepointName, compileQuery) {
|
|
61
|
-
await connection.executeQuery(compileQuery(parseSavepointCommand("rollback to", savepointName), createQueryId()));
|
|
62
|
-
}
|
|
63
|
-
async releaseSavepoint(connection, savepointName, compileQuery) {
|
|
64
|
-
await connection.executeQuery(compileQuery(parseSavepointCommand("release", savepointName), createQueryId()));
|
|
65
|
-
}
|
|
66
|
-
async releaseConnection() {
|
|
67
|
-
this.#connectionMutex.unlock();
|
|
68
|
-
}
|
|
69
|
-
async destroy() {
|
|
70
|
-
this.#db?.close();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
class SqliteConnection {
|
|
74
|
-
#db;
|
|
75
|
-
constructor(db) {
|
|
76
|
-
this.#db = db;
|
|
77
|
-
}
|
|
78
|
-
executeQuery(compiledQuery) {
|
|
79
|
-
const { sql, parameters } = compiledQuery;
|
|
80
|
-
const stmt = this.#db.prepare(sql);
|
|
81
|
-
const args = Array.isArray(parameters) ? parameters : [];
|
|
82
|
-
if (stmt.columns().length) {
|
|
83
|
-
const rows = stmt.all(...args);
|
|
84
|
-
return Promise.resolve({ rows });
|
|
85
|
-
}
|
|
86
|
-
const result = stmt.run(...args);
|
|
87
|
-
return Promise.resolve({
|
|
88
|
-
numAffectedRows: BigInt(result.changes),
|
|
89
|
-
insertID: BigInt(result.lastInsertRowid),
|
|
90
|
-
rows: [],
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
async *streamQuery(compiledQuery, _chunkSize) {
|
|
94
|
-
const { sql, parameters, query } = compiledQuery;
|
|
95
|
-
const stmt = this.#db.prepare(sql);
|
|
96
|
-
const args = Array.isArray(parameters) ? parameters : [];
|
|
97
|
-
if (!SelectQueryNode.is(query)) {
|
|
98
|
-
throw new Error("Sqlite driver only supports streaming of select queries");
|
|
99
|
-
}
|
|
100
|
-
const iter = stmt.iterate(...args);
|
|
101
|
-
for (const row of iter) {
|
|
102
|
-
yield {
|
|
103
|
-
rows: [row],
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
function parseSavepointCommand(command, savepointName) {
|
|
109
|
-
return RawNode.createWithChildren([
|
|
110
|
-
RawNode.createWithSql(`${command} `),
|
|
111
|
-
IdentifierNode.create(savepointName), // ensures savepointName gets sanitized
|
|
112
|
-
]);
|
|
113
|
-
}
|
|
114
|
-
//# sourceMappingURL=driver.js.map
|
package/out/kysley/driver.js.map
D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IAED,KAAK,CAAC,CAAC,WAAW,CAAI,aAA4B,EAAE,UAAkB;QACrE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,aAAa,CAAA;QAChD,MAAM,IAAI,GAAkB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QACjD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAA;QAExD,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;QAC3E,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAwB,CAAA;QAEzD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACxB,MAAM;gBACL,IAAI,EAAE,CAAC,GAAG,CAAC;aACX,CAAA;QACF,CAAC;IACF,CAAC;CACD;AAED,SAAS,qBAAqB,CAAC,OAAe,EAAE,aAAqB;IACpE,OAAO,OAAO,CAAC,kBAAkB,CAAC;QACjC,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,GAAG,CAAC;QACpC,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,uCAAuC;KAC7E,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Pre-fetch adapters that wire a `ResolverBackend` into the reconciler's concordance axes (#478
|
|
7
|
-
* step 2, re-scoped): `reconcileSpans` already implements resolver-candidate and parent-chain
|
|
8
|
-
* scoring but the runtime pipeline never passed the lookups — the axes were dormant, exercised
|
|
9
|
-
* only by Map-backed test fixtures.
|
|
10
|
-
*
|
|
11
|
-
* The reconciler's beam search is SYNCHRONOUS; the backend is async. So this module does one
|
|
12
|
-
* bounded async pre-fetch pass — `findPlace` per (phrase-span × top-k tag) pair, `ancestors` per
|
|
13
|
-
* fetched place — and returns Map-backed lookups with the contract the reconciler expects. Query
|
|
14
|
-
* count is capped (`maxLookups`, default 12) the same way `resolveTree` caps its walk; pairs are
|
|
15
|
-
* visited in classifier-score order so the budget goes to the likeliest spans.
|
|
16
|
-
*/
|
|
17
|
-
import type { ResolverBackend } from "../resolver/types.ts";
|
|
18
|
-
import type { ClassifierCandidate, ParentChainLookup, ResolverCandidatesLookup } from "./reconcile.ts";
|
|
19
|
-
export interface ReconcileLookups {
|
|
20
|
-
resolverCandidates: ResolverCandidatesLookup;
|
|
21
|
-
parentChain: ParentChainLookup;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Build the reconciler's concordance lookups from one bounded pre-fetch pass over the backend.
|
|
25
|
-
*
|
|
26
|
-
* @param backend The gazetteer backend (Stage 6's `WOFSqlitePlaceLookup.asResolverBackend()` in production; any
|
|
27
|
-
* structural match in tests).
|
|
28
|
-
* @param raw The normalized input text — span bounds index into this.
|
|
29
|
-
* @param classifierTopK The aggregated per-span tag candidates (score-descending preferred; the budget follows this
|
|
30
|
-
* order).
|
|
31
|
-
* @param opts.maxLookups Hard cap on `findPlace` calls (default 12).
|
|
32
|
-
* @param opts.candidatesPerPair Max places retained per (span, tag) pair (default 3).
|
|
33
|
-
*/
|
|
34
|
-
export declare function prefetchReconcileLookups(backend: ResolverBackend, raw: string, classifierTopK: ReadonlyArray<ClassifierCandidate>, opts?: {
|
|
35
|
-
maxLookups?: number;
|
|
36
|
-
candidatesPerPair?: number;
|
|
37
|
-
defaultCountry?: string;
|
|
38
|
-
}): Promise<ReconcileLookups>;
|
|
39
|
-
//# sourceMappingURL=reconcile-lookups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile-lookups.d.ts","sourceRoot":"","sources":["../../pipeline/reconcile-lookups.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAiB,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAItG,MAAM,WAAW,gBAAgB;IAChC,kBAAkB,EAAE,wBAAwB,CAAA;IAC5C,WAAW,EAAE,iBAAiB,CAAA;CAC9B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,eAAe,EACxB,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAClD,IAAI,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,GACjF,OAAO,CAAC,gBAAgB,CAAC,CAmE3B"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Pre-fetch adapters that wire a `ResolverBackend` into the reconciler's concordance axes (#478
|
|
7
|
-
* step 2, re-scoped): `reconcileSpans` already implements resolver-candidate and parent-chain
|
|
8
|
-
* scoring but the runtime pipeline never passed the lookups — the axes were dormant, exercised
|
|
9
|
-
* only by Map-backed test fixtures.
|
|
10
|
-
*
|
|
11
|
-
* The reconciler's beam search is SYNCHRONOUS; the backend is async. So this module does one
|
|
12
|
-
* bounded async pre-fetch pass — `findPlace` per (phrase-span × top-k tag) pair, `ancestors` per
|
|
13
|
-
* fetched place — and returns Map-backed lookups with the contract the reconciler expects. Query
|
|
14
|
-
* count is capped (`maxLookups`, default 12) the same way `resolveTree` caps its walk; pairs are
|
|
15
|
-
* visited in classifier-score order so the budget goes to the likeliest spans.
|
|
16
|
-
*/
|
|
17
|
-
const RESOLVABLE_TAGS = new Set(["country", "region", "locality", "dependent_locality", "county", "subregion"]);
|
|
18
|
-
/**
|
|
19
|
-
* Build the reconciler's concordance lookups from one bounded pre-fetch pass over the backend.
|
|
20
|
-
*
|
|
21
|
-
* @param backend The gazetteer backend (Stage 6's `WOFSqlitePlaceLookup.asResolverBackend()` in production; any
|
|
22
|
-
* structural match in tests).
|
|
23
|
-
* @param raw The normalized input text — span bounds index into this.
|
|
24
|
-
* @param classifierTopK The aggregated per-span tag candidates (score-descending preferred; the budget follows this
|
|
25
|
-
* order).
|
|
26
|
-
* @param opts.maxLookups Hard cap on `findPlace` calls (default 12).
|
|
27
|
-
* @param opts.candidatesPerPair Max places retained per (span, tag) pair (default 3).
|
|
28
|
-
*/
|
|
29
|
-
export async function prefetchReconcileLookups(backend, raw, classifierTopK, opts) {
|
|
30
|
-
const maxLookups = opts?.maxLookups ?? 12;
|
|
31
|
-
const perPair = opts?.candidatesPerPair ?? 3;
|
|
32
|
-
const candidateTable = new Map();
|
|
33
|
-
const chainTable = new Map();
|
|
34
|
-
const pairKey = (span, tag) => `${span.start}:${span.end}:${tag}`;
|
|
35
|
-
let budget = maxLookups;
|
|
36
|
-
for (const candidate of classifierTopK) {
|
|
37
|
-
if (budget <= 0)
|
|
38
|
-
break;
|
|
39
|
-
if (!RESOLVABLE_TAGS.has(candidate.tag))
|
|
40
|
-
continue;
|
|
41
|
-
const key = pairKey(candidate.span, candidate.tag);
|
|
42
|
-
if (candidateTable.has(key))
|
|
43
|
-
continue;
|
|
44
|
-
const text = raw.slice(candidate.span.start, candidate.span.end).trim();
|
|
45
|
-
if (!text)
|
|
46
|
-
continue;
|
|
47
|
-
budget--;
|
|
48
|
-
let places = [];
|
|
49
|
-
try {
|
|
50
|
-
places = await backend.findPlace({
|
|
51
|
-
text,
|
|
52
|
-
placetype: candidate.tag,
|
|
53
|
-
...(opts?.defaultCountry ? { country: opts.defaultCountry } : {}),
|
|
54
|
-
limit: perPair,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
catch {
|
|
58
|
-
// A backend failure degrades to "no concordance evidence for this pair" — the
|
|
59
|
-
// reconciler scores without it, identical to today's behavior.
|
|
60
|
-
}
|
|
61
|
-
candidateTable.set(key, places.slice(0, perPair));
|
|
62
|
-
// Ancestors are synchronous + memoized backend-side; chain them now so parentsOf is a
|
|
63
|
-
// pure Map read during the beam search.
|
|
64
|
-
if (backend.ancestors) {
|
|
65
|
-
for (const place of places) {
|
|
66
|
-
if (chainTable.has(place.id))
|
|
67
|
-
continue;
|
|
68
|
-
const chain = backend.ancestors(place.id) ?? [];
|
|
69
|
-
// The reconciler's concordance check is MEMBERSHIP-ONLY (by id) — Ancestor carries no
|
|
70
|
-
// coordinates, and none are needed; zeroes satisfy the ResolvedPlace shape.
|
|
71
|
-
chainTable.set(place.id, chain.map((a) => ({ id: a.id, name: a.name, placetype: a.placetype, lat: 0, lon: 0 })));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
resolverCandidates: {
|
|
77
|
-
candidatesFor(span, tag) {
|
|
78
|
-
return candidateTable.get(pairKey(span, tag)) ?? [];
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
parentChain: {
|
|
82
|
-
parentsOf(place) {
|
|
83
|
-
return chainTable.get(place.id) ?? [];
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=reconcile-lookups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile-lookups.js","sourceRoot":"","sources":["../../pipeline/reconcile-lookups.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,o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AAK;gBACd,OAAO,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAA;YACtC,CAAC;SACD;KACD,CAAA;AACF,CAAC"}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* `reconcileSpans` — Stage 5 joint-decoding path.
|
|
7
|
-
*
|
|
8
|
-
* Today's runtime Stage 5 (in `runtime-pipeline.ts`) just keeps the classifier-emitted spans in
|
|
9
|
-
* start order. That fallback covers callers who don't yet have top-k inputs from Stages 2.7 / 3 /
|
|
10
|
-
* 6. This file is the **opt-in** joint-decoding path that turns Stage 5 from a sort into a
|
|
11
|
-
* reconciler: pick the parse tree that maximizes
|
|
12
|
-
*
|
|
13
|
-
* ```
|
|
14
|
-
* ∏ phrase_grouper_confidence
|
|
15
|
-
* × classifier_confidence
|
|
16
|
-
* × resolver_score
|
|
17
|
-
* × concordance_bonus(parent_id chain)
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* Closes the kryptonite catalogue (`NY-NY Steakhouse, Houston, TX`, `Paris, Texas`, `Saint
|
|
21
|
-
* Petersburg, FL`, `Buffalo Buffalo`) where today's argmax-per-stage produces internally-
|
|
22
|
-
* inconsistent parses that the layer above can't repair.
|
|
23
|
-
*
|
|
24
|
-
* The implementation is a beam search over candidate slots — each slot is one `(phrase_span,
|
|
25
|
-
* classifier_tag, resolver_place)` triple. Three knobs prune the cross product: `kSpan` (de-duped
|
|
26
|
-
* phrase span proposals), `kTag` (classifier tag interpretations per span), and `kResolver`
|
|
27
|
-
* (resolver candidates per `(span, tag)`). Concordance scoring is incremental — when a slot is
|
|
28
|
-
* added, we check the new place's `parent_id` chain against the running admin assignment and
|
|
29
|
-
* adjust the running score before pruning.
|
|
30
|
-
*
|
|
31
|
-
* The Thread C-s classifier top-k contract is mocked locally for v0.5.0 (see `ClassifierCandidate`
|
|
32
|
-
* below). The real classifier output adapter ships with `@mailwoman/neural` once Thread C-s
|
|
33
|
-
* lands; the existing `ResolvedPlace` shape from `@mailwoman/core/resolver` is what backs the
|
|
34
|
-
* resolver-candidates axis (parent_id chains live there).
|
|
35
|
-
*
|
|
36
|
-
* See `docs/articles/plan/phases/PHASE_8_v0_5_0_fresh_slate.md` § D for the v0.5.0 context and
|
|
37
|
-
* `docs/articles/concepts/the-knowledge-ladder.md` § Reconcile for the design rationale.
|
|
38
|
-
*/
|
|
39
|
-
import type { AddressTree, ComponentTag } from "../decoder/types.ts";
|
|
40
|
-
import type { ResolvedPlace } from "../resolver/types.ts";
|
|
41
|
-
import type { PhraseProposal } from "./types.ts";
|
|
42
|
-
/**
|
|
43
|
-
* One classifier interpretation for one input span. Pins the Thread C-s contract for the reconciler — the real
|
|
44
|
-
* classifier emits this directly once that thread lands. Until then, tests hand-build a list of these to simulate top-k
|
|
45
|
-
* output.
|
|
46
|
-
*
|
|
47
|
-
* The classifier may emit multiple candidates for the same span (different tag hypotheses); the reconciler treats those
|
|
48
|
-
* as the top-k tag axis. Candidates whose `span` does not exactly match a phrase proposal's span are ignored — the
|
|
49
|
-
* phrase grouper is the boundary-discovery authority.
|
|
50
|
-
*/
|
|
51
|
-
export interface ClassifierCandidate {
|
|
52
|
-
span: {
|
|
53
|
-
start: number;
|
|
54
|
-
end: number;
|
|
55
|
-
};
|
|
56
|
-
tag: ComponentTag;
|
|
57
|
-
/**
|
|
58
|
-
* Calibrated confidence in [0, 1].
|
|
59
|
-
*/
|
|
60
|
-
score: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Resolver lookup for the (span, tag) axis. In production wraps a `ResolverBackend` (Stage 6); in tests an in-memory
|
|
64
|
-
* table built per fixture. Returned candidates must already be sorted descending by score — the reconciler takes the
|
|
65
|
-
* top `kResolver` as-is.
|
|
66
|
-
*/
|
|
67
|
-
export interface ResolverCandidatesLookup {
|
|
68
|
-
candidatesFor(span: {
|
|
69
|
-
start: number;
|
|
70
|
-
end: number;
|
|
71
|
-
}, tag: ComponentTag): ReadonlyArray<ResolvedPlace>;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Parent-chain lookup for concordance scoring. WOF SQLite is the source of truth in production (Stage 6); tests pass a
|
|
75
|
-
* `Map`-backed mock. Returns the place's ancestors (order unimportant — the reconciler only checks membership).
|
|
76
|
-
*/
|
|
77
|
-
export interface ParentChainLookup {
|
|
78
|
-
parentsOf(place: ResolvedPlace): ReadonlyArray<ResolvedPlace>;
|
|
79
|
-
}
|
|
80
|
-
export interface ReconcileInputs {
|
|
81
|
-
/**
|
|
82
|
-
* Raw input text — used to materialize `value` strings on the resulting tree.
|
|
83
|
-
*/
|
|
84
|
-
raw: string;
|
|
85
|
-
phraseProposals: ReadonlyArray<PhraseProposal>;
|
|
86
|
-
/**
|
|
87
|
-
* Sorted descending by score. May be empty (returns an empty tree).
|
|
88
|
-
*/
|
|
89
|
-
classifierTopK: ReadonlyArray<ClassifierCandidate>;
|
|
90
|
-
resolverCandidates?: ResolverCandidatesLookup;
|
|
91
|
-
parentChain?: ParentChainLookup;
|
|
92
|
-
opts?: ReconcileOpts;
|
|
93
|
-
}
|
|
94
|
-
export interface ReconcileOpts {
|
|
95
|
-
/**
|
|
96
|
-
* Top-k phrase span proposals retained per (start, end) — default 3.
|
|
97
|
-
*/
|
|
98
|
-
kSpan?: number;
|
|
99
|
-
/**
|
|
100
|
-
* Top-k classifier tag interpretations retained per span — default 3.
|
|
101
|
-
*/
|
|
102
|
-
kTag?: number;
|
|
103
|
-
/**
|
|
104
|
-
* Top-k resolver candidates retained per (span, tag) — default 5.
|
|
105
|
-
*/
|
|
106
|
-
kResolver?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Concordance bonus multiplier. 1.0 weights chain-consistency equal to one classifier-score factor; lower values
|
|
109
|
-
* trust the classifier more, higher values trust the gazetteer more. Default 1.0.
|
|
110
|
-
*/
|
|
111
|
-
concordanceWeight?: number;
|
|
112
|
-
/**
|
|
113
|
-
* Beam width during search — default 16.
|
|
114
|
-
*/
|
|
115
|
-
beamWidth?: number;
|
|
116
|
-
/**
|
|
117
|
-
* Runner-up parses returned alongside the winner — default 3.
|
|
118
|
-
*/
|
|
119
|
-
runnersUp?: number;
|
|
120
|
-
}
|
|
121
|
-
export interface ScoreBreakdown {
|
|
122
|
-
phrase: number;
|
|
123
|
-
classifier: number;
|
|
124
|
-
resolver: number;
|
|
125
|
-
concordance: number;
|
|
126
|
-
/**
|
|
127
|
-
* Composite multiplicative score in real space, [0, ∞).
|
|
128
|
-
*/
|
|
129
|
-
total: number;
|
|
130
|
-
}
|
|
131
|
-
export interface ParseTree {
|
|
132
|
-
tree: AddressTree;
|
|
133
|
-
/**
|
|
134
|
-
* Softmaxed confidence in [0, 1] over the finalized beam.
|
|
135
|
-
*/
|
|
136
|
-
confidence: number;
|
|
137
|
-
runnersUp: AddressTree[];
|
|
138
|
-
scoreBreakdown: ScoreBreakdown;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Joint-decode the best parse tree from Stage 2.7 phrase proposals, Stage 3 classifier top-k, and Stage 6 resolver
|
|
142
|
-
* candidates. See file header for the scoring formula.
|
|
143
|
-
*
|
|
144
|
-
* The result tree's roots are the winning `(span, tag, place)` triples in source order. Each node's `placeID`, `lat`,
|
|
145
|
-
* `lon` come from the chosen resolver candidate; `confidence` reflects the per- factor score for that slot. `runnersUp`
|
|
146
|
-
* are the next-best parses for caller inspection.
|
|
147
|
-
*
|
|
148
|
-
* Empty `classifierTopK` short-circuits to an empty tree at confidence 0 — no joint decode is possible without tag
|
|
149
|
-
* interpretations. Callers without top-k should use the runtime-pipeline fallback (which keeps classifier-emitted spans
|
|
150
|
-
* sorted by start).
|
|
151
|
-
*/
|
|
152
|
-
export declare function reconcileSpans(inputs: ReconcileInputs): ParseTree;
|
|
153
|
-
//# sourceMappingURL=reconcile.d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