@mailwoman/core 9.4.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/coarse-placer/tools/{build-dataset.ts → build/dataset.ts} +2 -1
- package/lib/coarse-placer/tools/{build-outlier-latin.ts → build/outlier/latin.ts} +4 -3
- package/lib/coarse-placer/tools/{eval-openset.ts → eval/openset.ts} +11 -7
- package/lib/coarse-placer/tools/{eval-quant-compare.ts → eval/quant-compare.ts} +2 -1
- package/lib/coarse-placer/tools/eval.ts +2 -2
- package/lib/coarse-placer/tools/index.ts +7 -7
- package/lib/coarse-placer/tools/train.ts +4 -6
- package/lib/decoder/build-tree.ts +2 -1
- package/lib/decoder/containment.ts +2 -1
- package/lib/decoder/index.ts +5 -5
- package/lib/decoder/parse-diff.ts +1 -1
- package/lib/decoder/proposals-to-tree.ts +3 -1
- package/lib/decoder/{serialize-json.ts → serialize/json.ts} +3 -2
- package/lib/decoder/{serialize-tuples.ts → serialize/tuples.ts} +2 -1
- package/lib/decoder/{tree-shape.ts → tree/shape.ts} +4 -3
- package/lib/decoder/types.ts +1 -3
- package/lib/decoder/unknown-spans.ts +1 -1
- package/lib/decoder/validate-tree.ts +2 -1
- package/lib/fs/readers/stat.ts +244 -0
- package/lib/fs/readers.ts +27 -271
- package/lib/fs/streams.ts +58 -0
- package/lib/fs/writers.ts +5 -5
- package/lib/fs/zip.ts +64 -8
- package/lib/license/configured.ts +2 -2
- package/lib/license/index.ts +2 -2
- package/lib/license/obligations.ts +1 -1
- package/lib/license/stamp.ts +1 -1
- package/lib/locale/locale.ts +2 -1
- package/lib/locale/registry.ts +2 -1
- package/lib/overture-pins.ts +24 -0
- package/lib/pipeline/preferences.ts +13 -0
- package/lib/pipeline/result.ts +84 -0
- package/lib/pipeline/runtime-pipeline.ts +9 -15
- package/lib/pipeline/types.ts +3 -73
- package/lib/policy/defaults.ts +2 -1
- package/lib/policy/policy.ts +3 -1
- package/lib/policy/registry.ts +3 -1
- package/lib/process.ts +3 -1
- package/lib/resolver/authoritative-provider.ts +1 -1
- package/lib/resolver/index.ts +1 -9
- package/lib/resolver/synthetic-id-ranges.ts +83 -0
- package/lib/resolver/types.ts +2 -10
- package/lib/resources/whosonfirst/placetypes/Placetype.ts +7 -6
- package/lib/scripting/arguments.ts +34 -0
- package/lib/scripting/utils/index.ts +1 -1
- package/lib/strings/case.ts +13 -2
- package/lib/tokenization/Graph.ts +3 -4
- package/lib/tools/{download-libpostal-resources.ts → download/libpostal-resources.ts} +3 -2
- package/lib/tools/generate-language-types.ts +3 -4
- package/lib/tools/index.ts +2 -2
- package/lib/types/classifier.ts +2 -1
- package/lib/types/index.ts +0 -1
- package/lib/types/mapping.ts +2 -1
- package/lib/workspaces.ts +9 -2
- package/out/api/APIClient.d.ts.map +1 -1
- package/out/api/arcgis.d.ts.map +1 -1
- package/out/api/defaults.d.ts.map +1 -1
- package/out/api/headless.d.ts.map +1 -1
- package/out/api/ogc.d.ts.map +1 -1
- package/out/api/paced-client.js.map +1 -1
- package/out/api/pacer.d.ts.map +1 -1
- package/out/api/pacer.js.map +1 -1
- package/out/api/responses.d.ts.map +1 -1
- package/out/api/{test-clocks.d.ts → test/clocks.d.ts} +1 -1
- package/out/api/test/clocks.d.ts.map +1 -0
- package/out/api/{test-clocks.js → test/clocks.js} +1 -1
- package/out/api/test/clocks.js.map +1 -0
- package/out/api/{test-transport.d.ts → test/transport.d.ts} +1 -1
- package/out/api/test/transport.d.ts.map +1 -0
- package/out/api/{test-transport.js → test/transport.js} +1 -1
- package/out/api/test/transport.js.map +1 -0
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/tools/{build-dataset.d.ts → build/dataset.d.ts} +1 -1
- package/out/coarse-placer/tools/build/dataset.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-dataset.js → build/dataset.js} +3 -2
- package/out/coarse-placer/tools/build/dataset.js.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-exposure.d.ts → build/outlier/exposure.d.ts} +1 -1
- package/out/coarse-placer/tools/build/outlier/exposure.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-exposure.js → build/outlier/exposure.js} +1 -1
- package/out/coarse-placer/tools/build/outlier/exposure.js.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-latin.d.ts → build/outlier/latin.d.ts} +3 -3
- package/out/coarse-placer/tools/build/outlier/latin.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-latin.js → build/outlier/latin.js} +4 -3
- package/out/coarse-placer/tools/build/outlier/latin.js.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-oa.d.ts → build/outlier/oa.d.ts} +1 -1
- package/out/coarse-placer/tools/build/outlier/oa.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-oa.js → build/outlier/oa.js} +1 -1
- package/out/coarse-placer/tools/build/outlier/oa.js.map +1 -0
- package/out/coarse-placer/tools/country-sets.d.ts.map +1 -1
- package/out/coarse-placer/tools/{eval-latin-offmap.d.ts → eval/latin-offmap.d.ts} +1 -1
- package/out/coarse-placer/tools/eval/latin-offmap.d.ts.map +1 -0
- package/out/coarse-placer/tools/{eval-latin-offmap.js → eval/latin-offmap.js} +1 -1
- package/out/coarse-placer/tools/eval/latin-offmap.js.map +1 -0
- package/out/coarse-placer/tools/{eval-openset.d.ts → eval/openset.d.ts} +1 -1
- package/out/coarse-placer/tools/eval/openset.d.ts.map +1 -0
- package/out/coarse-placer/tools/{eval-openset.js → eval/openset.js} +10 -7
- package/out/coarse-placer/tools/eval/openset.js.map +1 -0
- package/out/coarse-placer/tools/{eval-quant-compare.d.ts → eval/quant-compare.d.ts} +1 -1
- package/out/coarse-placer/tools/eval/quant-compare.d.ts.map +1 -0
- package/out/coarse-placer/tools/{eval-quant-compare.js → eval/quant-compare.js} +2 -2
- package/out/coarse-placer/tools/eval/quant-compare.js.map +1 -0
- package/out/coarse-placer/tools/eval.js +2 -2
- package/out/coarse-placer/tools/eval.js.map +1 -1
- package/out/coarse-placer/tools/index.d.ts +7 -7
- package/out/coarse-placer/tools/index.js +7 -7
- package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
- package/out/coarse-placer/tools/quantize.js.map +1 -1
- package/out/coarse-placer/tools/train.d.ts.map +1 -1
- package/out/coarse-placer/tools/train.js +2 -3
- package/out/coarse-placer/tools/train.js.map +1 -1
- package/out/data-root.js.map +1 -1
- package/out/decoder/build-tree.d.ts.map +1 -1
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/containment.d.ts +2 -2
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/index.d.ts +5 -5
- package/out/decoder/index.js +5 -5
- package/out/decoder/parse-diff.js +1 -1
- package/out/decoder/parse-diff.js.map +1 -1
- package/out/decoder/proposals-to-tree.d.ts +2 -1
- package/out/decoder/proposals-to-tree.d.ts.map +1 -1
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/{serialize-json.d.ts → serialize/json.d.ts} +2 -2
- package/out/decoder/serialize/json.d.ts.map +1 -0
- package/out/decoder/{serialize-json.js → serialize/json.js} +2 -2
- package/out/decoder/serialize/json.js.map +1 -0
- package/out/decoder/{serialize-tuples.d.ts → serialize/tuples.d.ts} +2 -2
- package/out/decoder/serialize/tuples.d.ts.map +1 -0
- package/out/decoder/{serialize-tuples.js → serialize/tuples.js} +1 -1
- package/out/decoder/serialize/tuples.js.map +1 -0
- package/out/decoder/{serialize-xml.d.ts → serialize/xml.d.ts} +1 -1
- package/out/decoder/serialize/xml.d.ts.map +1 -0
- package/out/decoder/{serialize-xml.js → serialize/xml.js} +1 -1
- package/out/decoder/serialize/xml.js.map +1 -0
- package/out/decoder/{tree-shape.d.ts → tree/shape.d.ts} +2 -2
- package/out/decoder/tree/shape.d.ts.map +1 -0
- package/out/decoder/{tree-shape.js → tree/shape.js} +3 -3
- package/out/decoder/tree/shape.js.map +1 -0
- package/out/decoder/{tree-walk.d.ts → tree/walk.d.ts} +1 -1
- package/out/decoder/tree/walk.d.ts.map +1 -0
- package/out/decoder/{tree-walk.js → tree/walk.js} +1 -1
- package/out/decoder/tree/walk.js.map +1 -0
- package/out/decoder/types.d.ts +1 -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.js +1 -1
- package/out/decoder/validate-tree.d.ts +1 -1
- package/out/decoder/validate-tree.d.ts.map +1 -1
- package/out/decoder/validate-tree.js.map +1 -1
- package/out/env/index.d.ts +1 -1
- package/out/env/schema.d.ts +4 -4
- package/out/errors/schema.d.ts.map +1 -1
- package/out/errors/schema.js.map +1 -1
- package/out/fs/formatters.d.ts.map +1 -1
- package/out/fs/formatters.js.map +1 -1
- package/out/fs/readers/stat.d.ts +126 -0
- package/out/fs/readers/stat.d.ts.map +1 -0
- package/out/fs/readers/stat.js +202 -0
- package/out/fs/readers/stat.js.map +1 -0
- package/out/fs/readers.d.ts +11 -150
- package/out/fs/readers.d.ts.map +1 -1
- package/out/fs/readers.js +22 -225
- package/out/fs/readers.js.map +1 -1
- package/out/fs/streams.d.ts +33 -0
- package/out/fs/streams.d.ts.map +1 -1
- package/out/fs/streams.js +49 -0
- package/out/fs/streams.js.map +1 -1
- package/out/fs/writers.d.ts +5 -5
- package/out/fs/writers.js +5 -5
- package/out/fs/zip.d.ts +21 -2
- package/out/fs/zip.d.ts.map +1 -1
- package/out/fs/zip.js +36 -8
- package/out/fs/zip.js.map +1 -1
- package/out/git.js.map +1 -1
- package/out/html/document.js.map +1 -1
- package/out/json.d.ts.map +1 -1
- package/out/layers/coverage.js.map +1 -1
- package/out/layers/schema.d.ts.map +1 -1
- package/out/license/configured.d.ts +1 -1
- package/out/license/configured.d.ts.map +1 -1
- package/out/license/configured.js +2 -2
- package/out/license/configured.js.map +1 -1
- package/out/license/docs-site.js.map +1 -1
- package/out/license/index.d.ts +2 -2
- package/out/license/index.d.ts.map +1 -1
- package/out/license/index.js +2 -2
- package/out/license/index.js.map +1 -1
- package/out/license/{key-file.d.ts → key/file.d.ts} +1 -1
- package/out/license/key/file.d.ts.map +1 -0
- package/out/license/{key-file.js → key/file.js} +1 -1
- package/out/license/key/file.js.map +1 -0
- package/out/license/{key.d.ts → key/index.d.ts} +1 -1
- package/out/license/key/index.d.ts.map +1 -0
- package/out/license/{key.js → key/index.js} +1 -1
- package/out/license/key/index.js.map +1 -0
- package/out/license/obligations.d.ts +1 -1
- package/out/license/obligations.d.ts.map +1 -1
- package/out/license/publication.js.map +1 -1
- package/out/license/register.d.ts.map +1 -1
- package/out/license/stamp.d.ts +1 -1
- package/out/license/stamp.d.ts.map +1 -1
- package/out/license/status.js.map +1 -1
- package/out/locale/locale.d.ts +1 -1
- package/out/locale/locale.d.ts.map +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.map +1 -1
- package/out/logging/shared.d.ts.map +1 -1
- package/out/module/resolvers.js.map +1 -1
- package/out/objects.js.map +1 -1
- package/out/overture-pins.d.ts +24 -0
- package/out/overture-pins.d.ts.map +1 -0
- package/out/overture-pins.js +24 -0
- package/out/overture-pins.js.map +1 -0
- package/out/paths.js.map +1 -1
- package/out/pipeline/preferences.d.ts +13 -0
- package/out/pipeline/preferences.d.ts.map +1 -0
- package/out/pipeline/preferences.js +7 -0
- package/out/pipeline/preferences.js.map +1 -0
- package/out/pipeline/result.d.ts +72 -0
- package/out/pipeline/result.d.ts.map +1 -0
- package/out/pipeline/result.js +7 -0
- package/out/pipeline/result.js.map +1 -0
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +7 -13
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +3 -71
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +2 -0
- package/out/pipeline/types.js.map +1 -1
- package/out/policy/defaults.d.ts +1 -1
- 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/policy.d.ts +2 -1
- package/out/policy/policy.d.ts.map +1 -1
- package/out/policy/proposal-collection.js.map +1 -1
- package/out/policy/registry.d.ts +2 -1
- package/out/policy/registry.d.ts.map +1 -1
- package/out/policy/registry.js.map +1 -1
- package/out/process.d.ts +2 -2
- package/out/process.d.ts.map +1 -1
- package/out/process.js.map +1 -1
- package/out/random.d.ts.map +1 -1
- package/out/release-config.js.map +1 -1
- package/out/resolver/authoritative-provider.d.ts +1 -1
- package/out/resolver/authoritative-provider.d.ts.map +1 -1
- package/out/resolver/fixture-authoritative-provider.js.map +1 -1
- package/out/resolver/index.d.ts +2 -2
- package/out/resolver/index.d.ts.map +1 -1
- package/out/resolver/index.js +1 -1
- package/out/resolver/index.js.map +1 -1
- package/out/resolver/synthetic-id-ranges.d.ts +66 -0
- package/out/resolver/synthetic-id-ranges.d.ts.map +1 -0
- package/out/resolver/synthetic-id-ranges.js +73 -0
- package/out/resolver/synthetic-id-ranges.js.map +1 -0
- package/out/resolver/types.d.ts +1 -2
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +0 -1
- package/out/resolver/types.js.map +1 -1
- package/out/resources/languages/index.js.map +1 -1
- package/out/resources/languages/types.gen.d.ts.map +1 -1
- package/out/resources/locale.d.ts.map +1 -1
- package/out/resources/set.d.ts.map +1 -1
- package/out/resources/set.js.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.js +7 -6
- package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
- package/out/routing/index.d.ts.map +1 -1
- package/out/routing/index.js.map +1 -1
- package/out/scripting/arguments.d.ts +7 -0
- package/out/scripting/arguments.d.ts.map +1 -1
- package/out/scripting/arguments.js +29 -0
- package/out/scripting/arguments.js.map +1 -1
- package/out/scripting/command.d.ts.map +1 -1
- package/out/scripting/ingest-chunk-script.d.ts.map +1 -1
- package/out/scripting/utils/index.d.ts +1 -1
- package/out/scripting/utils/index.d.ts.map +1 -1
- package/out/scripting/utils/index.js +1 -1
- package/out/scripting/utils/index.js.map +1 -1
- package/out/strings/case.d.ts +3 -0
- package/out/strings/case.d.ts.map +1 -1
- package/out/strings/case.js +12 -2
- package/out/strings/case.js.map +1 -1
- package/out/strings/python-json.js.map +1 -1
- package/out/tokenization/Graph.d.ts +3 -0
- package/out/tokenization/Graph.d.ts.map +1 -1
- package/out/tokenization/Graph.js +0 -4
- package/out/tokenization/Graph.js.map +1 -1
- package/out/tokenization/Span.d.ts.map +1 -1
- package/out/tokenization/Span.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 → download/libpostal-resources.d.ts} +1 -1
- package/out/tools/download/libpostal-resources.d.ts.map +1 -0
- package/out/tools/{download-libpostal-resources.js → download/libpostal-resources.js} +4 -3
- package/out/tools/download/libpostal-resources.js.map +1 -0
- package/out/tools/{download-ssl-address.d.ts → download/ssl-address.d.ts} +1 -1
- package/out/tools/download/ssl-address.d.ts.map +1 -0
- package/out/tools/{download-ssl-address.js → download/ssl-address.js} +1 -1
- package/out/tools/download/ssl-address.js.map +1 -0
- package/out/tools/generate-language-types.d.ts.map +1 -1
- package/out/tools/generate-language-types.js +3 -4
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/tools/index.d.ts +2 -2
- package/out/tools/index.js +2 -2
- package/out/types/Classification.d.ts +2 -2
- package/out/types/Classification.d.ts.map +1 -1
- package/out/types/classifier.d.ts +1 -1
- package/out/types/classifier.d.ts.map +1 -1
- package/out/types/index.d.ts +0 -1
- package/out/types/index.d.ts.map +1 -1
- package/out/types/index.js +0 -1
- package/out/types/index.js.map +1 -1
- package/out/types/mapping.d.ts +1 -1
- package/out/types/mapping.d.ts.map +1 -1
- package/out/types/mapping.js.map +1 -1
- package/out/utils/time.js.map +1 -1
- package/out/workspaces.d.ts.map +1 -1
- package/out/workspaces.js +7 -2
- package/out/workspaces.js.map +1 -1
- package/package.json +63 -53
- package/lib/resolver/placetype-map.ts +0 -157
- package/lib/types/component.ts +0 -96
- package/out/api/test-clocks.d.ts.map +0 -1
- package/out/api/test-clocks.js.map +0 -1
- package/out/api/test-transport.d.ts.map +0 -1
- package/out/api/test-transport.js.map +0 -1
- package/out/coarse-placer/tools/build-dataset.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-dataset.js.map +0 -1
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-outlier-exposure.js.map +0 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-outlier-latin.js.map +0 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-outlier-oa.js.map +0 -1
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +0 -1
- package/out/coarse-placer/tools/eval-latin-offmap.js.map +0 -1
- package/out/coarse-placer/tools/eval-openset.d.ts.map +0 -1
- package/out/coarse-placer/tools/eval-openset.js.map +0 -1
- package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +0 -1
- package/out/coarse-placer/tools/eval-quant-compare.js.map +0 -1
- package/out/decoder/serialize-json.d.ts.map +0 -1
- package/out/decoder/serialize-json.js.map +0 -1
- package/out/decoder/serialize-tuples.d.ts.map +0 -1
- package/out/decoder/serialize-tuples.js.map +0 -1
- package/out/decoder/serialize-xml.d.ts.map +0 -1
- package/out/decoder/serialize-xml.js.map +0 -1
- package/out/decoder/tree-shape.d.ts.map +0 -1
- package/out/decoder/tree-shape.js.map +0 -1
- package/out/decoder/tree-walk.d.ts.map +0 -1
- package/out/decoder/tree-walk.js.map +0 -1
- package/out/license/key-file.d.ts.map +0 -1
- package/out/license/key-file.js.map +0 -1
- package/out/license/key.d.ts.map +0 -1
- package/out/license/key.js.map +0 -1
- package/out/resolver/placetype-map.d.ts +0 -83
- package/out/resolver/placetype-map.d.ts.map +0 -1
- package/out/resolver/placetype-map.js +0 -130
- package/out/resolver/placetype-map.js.map +0 -1
- package/out/tools/download-libpostal-resources.d.ts.map +0 -1
- package/out/tools/download-libpostal-resources.js.map +0 -1
- package/out/tools/download-ssl-address.d.ts.map +0 -1
- package/out/tools/download-ssl-address.js.map +0 -1
- package/out/types/component.d.ts +0 -50
- package/out/types/component.d.ts.map +0 -1
- package/out/types/component.js +0 -84
- package/out/types/component.js.map +0 -1
- /package/lib/api/{test-clocks.ts → test/clocks.ts} +0 -0
- /package/lib/api/{test-transport.ts → test/transport.ts} +0 -0
- /package/lib/coarse-placer/tools/{build-outlier-exposure.ts → build/outlier/exposure.ts} +0 -0
- /package/lib/coarse-placer/tools/{build-outlier-oa.ts → build/outlier/oa.ts} +0 -0
- /package/lib/coarse-placer/tools/{eval-latin-offmap.ts → eval/latin-offmap.ts} +0 -0
- /package/lib/decoder/{serialize-xml.ts → serialize/xml.ts} +0 -0
- /package/lib/decoder/{tree-walk.ts → tree/walk.ts} +0 -0
- /package/lib/license/{key-file.ts → key/file.ts} +0 -0
- /package/lib/license/{key.ts → key/index.ts} +0 -0
- /package/lib/tools/{download-ssl-address.ts → download/ssl-address.ts} +0 -0
|
@@ -39,10 +39,9 @@ export async function generateLanguageTypes(options = {}, report) {
|
|
|
39
39
|
// The 20 divergent /T spellings, kept apart so they widen the accepting direction only.
|
|
40
40
|
const alpha3tPairs = [];
|
|
41
41
|
report?.(`Reading ${dataSourcePath}`);
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
|
|
45
|
-
for await (const columns of CSVSpliterator.fromAsync(dataSourcePath, { enableQuoteHandling: true })) {
|
|
42
|
+
// `header` defaults true, which skips the `alpha3-b,alpha2,English` line; the columns are read by position, so the
|
|
43
|
+
// mode is named rather than derived from it.
|
|
44
|
+
for await (const columns of CSVSpliterator.fromAsync(dataSourcePath, { mode: "array" })) {
|
|
46
45
|
const alpha3b = columns[0];
|
|
47
46
|
const alpha2 = columns[1];
|
|
48
47
|
const labelsConcatenated = columns[2];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-language-types.js","sourceRoot":"","sources":["../../lib/tools/generate-language-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAoBpE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAC1C,
|
|
1
|
+
{"version":3,"file":"generate-language-types.js","sourceRoot":"","sources":["../../lib/tools/generate-language-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,s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AC,CAAA;IAE5B,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA;AAC1D,CAAC"}
|
package/out/tools/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Core operator tools — the `run()`-style modules behind `mailwoman dev generate …` commands. No
|
|
7
7
|
* argv, no `process.exit`: commands own parsing, rendering, and exit codes.
|
|
8
8
|
*/
|
|
9
|
-
export * from "#tools/download
|
|
10
|
-
export * from "#tools/download
|
|
9
|
+
export * from "#tools/download/libpostal-resources";
|
|
10
|
+
export * from "#tools/download/ssl-address";
|
|
11
11
|
export * from "#tools/generate-language-types";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/out/tools/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Core operator tools — the `run()`-style modules behind `mailwoman dev generate …` commands. No
|
|
7
7
|
* argv, no `process.exit`: commands own parsing, rendering, and exit codes.
|
|
8
8
|
*/
|
|
9
|
-
export * from "#tools/download
|
|
10
|
-
export * from "#tools/download
|
|
9
|
+
export * from "#tools/download/libpostal-resources";
|
|
10
|
+
export * from "#tools/download/ssl-address";
|
|
11
11
|
export * from "#tools/generate-language-types";
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -9,12 +9,12 @@ import type { LibPostalLanguageCode } from "#resources/libpostal";
|
|
|
9
9
|
/**
|
|
10
10
|
* Classification recognized by Mailwoman.
|
|
11
11
|
*/
|
|
12
|
-
export declare const Classifications: Set<"
|
|
12
|
+
export declare const Classifications: Set<"adjacent" | "alpha" | "alphanumeric" | "area" | "chain" | "country" | "dependency" | "directional" | "end_token" | "end_token_single_character" | "given_name" | "house_number" | "intersection" | "level" | "level_designator" | "locality" | "middle_initial" | "multistreet" | "numeric" | "ordinal" | "person" | "personal_suffix" | "personal_title" | "place" | "postcode" | "punctuation" | "region" | "road_type" | "start_token" | "stop_word" | "street" | "street_name" | "street_prefix" | "street_proper_name" | "street_suffix" | "surname" | "toponym" | "unit" | "unit_designator" | "unknown" | "venue">;
|
|
13
13
|
export type Classification = typeof Classifications extends Set<infer T> ? T : never;
|
|
14
14
|
/**
|
|
15
15
|
* Public classification labels.
|
|
16
16
|
*/
|
|
17
|
-
declare const VisibleClassification: Set<"country" | "
|
|
17
|
+
declare const VisibleClassification: Set<"country" | "dependency" | "house_number" | "level" | "level_designator" | "locality" | "postcode" | "region" | "street" | "unit" | "unit_designator" | "venue">;
|
|
18
18
|
/**
|
|
19
19
|
* Classification labels that are exposed to API consumers.
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
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,OAAO,eAAe,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAIpF;;GAEG;AACH,QAAA,MAAM,qBAAqB,sKAaW,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAEjG;;GAEG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,mBAAmB,GACxB,KAAK,IAAI,mBAAmB,GAAG;IAAE,cAAc,EAAE,qBAAqB,CAAA;CAAE,CAAA;AAE3E,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,cAAc,GAAG,cAAc,IAAI,qBAAqB,CAAA;AAQhH,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CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,qBAAqB,GAAG,mBAAmB,CAAC,CAAC,CAAA;IAE1F;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B;AAED,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,GAAG,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,CAAA;IAC9D,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAA;IA+CnE;;OAEG;IACI,wBAAwB,CAAC,cAAc,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAE/E;IAED;;OAEG;IACI,MAAM,IAAI,mBAAmB,EAAE,CAErC;IAED,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,yBAAyB,EAAE,GAAG,uBAAuB,CAQ1E;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 { ComponentTag } from "@mailwoman/codex/component";
|
|
18
19
|
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":["../../lib/types/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GA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AAG,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"}
|
package/out/types/index.d.ts
CHANGED
package/out/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,gBAAgB,CAAA"}
|
package/out/types/index.js
CHANGED
package/out/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,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 { ComponentTag } from "@mailwoman/codex/component";
|
|
18
19
|
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":["../../lib/types/mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../../lib/types/mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAqB3D;;;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":["../../lib/types/mapping.ts"],"names":[],"mappings":"AAAA;;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out/utils/time.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.js","sourceRoot":"","sources":["../../lib/utils/time.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"time.js","sourceRoot":"","sources":["../../lib/utils/time.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,GAAG,GAAS,IAAI,IAAI,EAAE;IAC7C,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;AACtC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,GAAG,GAAS,IAAI,IAAI,EAAE;IACnD,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;AACxD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,GAAG,GAAS,IAAI,IAAI,EAAE;IAChD,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAA;AACnD,CAAC"}
|
package/out/workspaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,eAAe,EAAe,MAAM,SAAS,CAAA;AAY3D,MAAM,WAAW,+BAA+B;IAC/C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC7C,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE,+BAAoC,GAC3C,OAAO,CAAC,MAAM,EAAE,CAAC,CAuDnB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE1G"}
|
package/out/workspaces.js
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* a pattern this reader cannot expand must refuse, because "matched nothing" would read as "no workspaces".
|
|
11
11
|
*/
|
|
12
12
|
import { resolvePath } from "path-ts";
|
|
13
|
-
import {
|
|
13
|
+
import { Globerator } from "spliterator/node/fs";
|
|
14
|
+
import { tryStat } from "#fs/readers";
|
|
14
15
|
import { readPackageJSON } from "#module/resolve-from";
|
|
15
16
|
const TRAILING_STAR = /^(?<parent>[^*]+)\/\*$/u;
|
|
16
17
|
async function isWorkspaceDirectory(repoRoot, directory) {
|
|
@@ -41,7 +42,11 @@ export async function readWorkspaceDirectories(repoRoot, options = {}) {
|
|
|
41
42
|
if (!parent)
|
|
42
43
|
throw new Error(`workspace pattern ${JSON.stringify(entry)} is not a single trailing "*" segment`);
|
|
43
44
|
// Only a directory can be a workspace; a file beside them (a README) is skipped before anything is stat-ed under it.
|
|
44
|
-
const children = (await
|
|
45
|
+
const children = (await Globerator.from("*", {
|
|
46
|
+
cwd: resolvePath(repoRoot, parent),
|
|
47
|
+
withFileTypes: true,
|
|
48
|
+
onlyFiles: false,
|
|
49
|
+
}).toArray())
|
|
45
50
|
.filter((dirent) => dirent.isDirectory())
|
|
46
51
|
.map((dirent) => dirent.name)
|
|
47
52
|
.toSorted();
|
package/out/workspaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../lib/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAwB,WAA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;QAED,IAAI,CAAC,OAAO,CAAC,MAAM;YAClB,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAA;QAEvG,WAAW,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAA;IAC7B,CAAC;IAED,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAA;AACjC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,QAAyB,EAAE,SAAiB;IACvF,OAAO,CAAC,MAAM,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;AACtE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Mailwoman core: tokenization, decoder, formatter, resources, filters, utils.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
"default": "./out/license/index.js"
|
|
127
127
|
},
|
|
128
128
|
"./license/key": {
|
|
129
|
-
"types": "./out/license/key.d.ts",
|
|
130
|
-
"node": "./out/license/key.js",
|
|
131
|
-
"default": "./out/license/key.js"
|
|
129
|
+
"types": "./out/license/key/index.d.ts",
|
|
130
|
+
"node": "./out/license/key/index.js",
|
|
131
|
+
"default": "./out/license/key/index.js"
|
|
132
132
|
},
|
|
133
133
|
"./license/register": {
|
|
134
134
|
"types": "./out/license/register.d.ts",
|
|
@@ -271,14 +271,14 @@
|
|
|
271
271
|
"default": "./out/api/paced-client.js"
|
|
272
272
|
},
|
|
273
273
|
"./api/test-clocks": {
|
|
274
|
-
"types": "./out/api/test
|
|
275
|
-
"node": "./out/api/test
|
|
276
|
-
"default": "./out/api/test
|
|
274
|
+
"types": "./out/api/test/clocks.d.ts",
|
|
275
|
+
"node": "./out/api/test/clocks.js",
|
|
276
|
+
"default": "./out/api/test/clocks.js"
|
|
277
277
|
},
|
|
278
278
|
"./api/test-transport": {
|
|
279
|
-
"types": "./out/api/test
|
|
280
|
-
"node": "./out/api/test
|
|
281
|
-
"default": "./out/api/test
|
|
279
|
+
"types": "./out/api/test/transport.d.ts",
|
|
280
|
+
"node": "./out/api/test/transport.js",
|
|
281
|
+
"default": "./out/api/test/transport.js"
|
|
282
282
|
},
|
|
283
283
|
"./logging": {
|
|
284
284
|
"types": "./out/logging/index.d.ts",
|
|
@@ -350,11 +350,6 @@
|
|
|
350
350
|
"node": "./out/api/retry.js",
|
|
351
351
|
"default": "./out/api/retry.js"
|
|
352
352
|
},
|
|
353
|
-
"./types/component": {
|
|
354
|
-
"types": "./out/types/component.d.ts",
|
|
355
|
-
"node": "./out/types/component.js",
|
|
356
|
-
"default": "./out/types/component.js"
|
|
357
|
-
},
|
|
358
353
|
"./decoder/parse-diff": {
|
|
359
354
|
"types": "./out/decoder/parse-diff.d.ts",
|
|
360
355
|
"node": "./out/decoder/parse-diff.js",
|
|
@@ -386,19 +381,19 @@
|
|
|
386
381
|
"default": "./out/tokenization/Span.js"
|
|
387
382
|
},
|
|
388
383
|
"./decoder/serialize-json": {
|
|
389
|
-
"types": "./out/decoder/serialize
|
|
390
|
-
"node": "./out/decoder/serialize
|
|
391
|
-
"default": "./out/decoder/serialize
|
|
384
|
+
"types": "./out/decoder/serialize/json.d.ts",
|
|
385
|
+
"node": "./out/decoder/serialize/json.js",
|
|
386
|
+
"default": "./out/decoder/serialize/json.js"
|
|
392
387
|
},
|
|
393
388
|
"./decoder/serialize-tuples": {
|
|
394
|
-
"types": "./out/decoder/serialize
|
|
395
|
-
"node": "./out/decoder/serialize
|
|
396
|
-
"default": "./out/decoder/serialize
|
|
389
|
+
"types": "./out/decoder/serialize/tuples.d.ts",
|
|
390
|
+
"node": "./out/decoder/serialize/tuples.js",
|
|
391
|
+
"default": "./out/decoder/serialize/tuples.js"
|
|
397
392
|
},
|
|
398
393
|
"./decoder/serialize-xml": {
|
|
399
|
-
"types": "./out/decoder/serialize
|
|
400
|
-
"node": "./out/decoder/serialize
|
|
401
|
-
"default": "./out/decoder/serialize
|
|
394
|
+
"types": "./out/decoder/serialize/xml.d.ts",
|
|
395
|
+
"node": "./out/decoder/serialize/xml.js",
|
|
396
|
+
"default": "./out/decoder/serialize/xml.js"
|
|
402
397
|
},
|
|
403
398
|
"./decoder/resolve-proposal-overlaps": {
|
|
404
399
|
"types": "./out/decoder/resolve-proposal-overlaps.d.ts",
|
|
@@ -475,6 +470,11 @@
|
|
|
475
470
|
"node": "./out/resolver/types.js",
|
|
476
471
|
"default": "./out/resolver/types.js"
|
|
477
472
|
},
|
|
473
|
+
"./resolver/synthetic-id-ranges": {
|
|
474
|
+
"types": "./out/resolver/synthetic-id-ranges.d.ts",
|
|
475
|
+
"node": "./out/resolver/synthetic-id-ranges.js",
|
|
476
|
+
"default": "./out/resolver/synthetic-id-ranges.js"
|
|
477
|
+
},
|
|
478
478
|
"./pipeline/span-proposer": {
|
|
479
479
|
"types": "./out/pipeline/span-proposer.d.ts",
|
|
480
480
|
"node": "./out/pipeline/span-proposer.js",
|
|
@@ -540,6 +540,11 @@
|
|
|
540
540
|
"node": "./out/data-root.js",
|
|
541
541
|
"default": "./out/data-root.js"
|
|
542
542
|
},
|
|
543
|
+
"./overture-pins": {
|
|
544
|
+
"types": "./out/overture-pins.d.ts",
|
|
545
|
+
"node": "./out/overture-pins.js",
|
|
546
|
+
"default": "./out/overture-pins.js"
|
|
547
|
+
},
|
|
543
548
|
"./crypto/base64url": {
|
|
544
549
|
"types": "./out/crypto/base64url.d.ts",
|
|
545
550
|
"node": "./out/crypto/base64url.js",
|
|
@@ -641,9 +646,9 @@
|
|
|
641
646
|
"default": "./out/license/index.js"
|
|
642
647
|
},
|
|
643
648
|
"./license/key": {
|
|
644
|
-
"types": "./out/license/key.d.ts",
|
|
645
|
-
"node": "./out/license/key.js",
|
|
646
|
-
"default": "./out/license/key.js"
|
|
649
|
+
"types": "./out/license/key/index.d.ts",
|
|
650
|
+
"node": "./out/license/key/index.js",
|
|
651
|
+
"default": "./out/license/key/index.js"
|
|
647
652
|
},
|
|
648
653
|
"./license/register": {
|
|
649
654
|
"types": "./out/license/register.d.ts",
|
|
@@ -786,14 +791,14 @@
|
|
|
786
791
|
"default": "./out/api/paced-client.js"
|
|
787
792
|
},
|
|
788
793
|
"./api/test-clocks": {
|
|
789
|
-
"types": "./out/api/test
|
|
790
|
-
"node": "./out/api/test
|
|
791
|
-
"default": "./out/api/test
|
|
794
|
+
"types": "./out/api/test/clocks.d.ts",
|
|
795
|
+
"node": "./out/api/test/clocks.js",
|
|
796
|
+
"default": "./out/api/test/clocks.js"
|
|
792
797
|
},
|
|
793
798
|
"./api/test-transport": {
|
|
794
|
-
"types": "./out/api/test
|
|
795
|
-
"node": "./out/api/test
|
|
796
|
-
"default": "./out/api/test
|
|
799
|
+
"types": "./out/api/test/transport.d.ts",
|
|
800
|
+
"node": "./out/api/test/transport.js",
|
|
801
|
+
"default": "./out/api/test/transport.js"
|
|
797
802
|
},
|
|
798
803
|
"./logging": {
|
|
799
804
|
"types": "./out/logging/index.d.ts",
|
|
@@ -865,11 +870,6 @@
|
|
|
865
870
|
"node": "./out/api/retry.js",
|
|
866
871
|
"default": "./out/api/retry.js"
|
|
867
872
|
},
|
|
868
|
-
"./types/component": {
|
|
869
|
-
"types": "./out/types/component.d.ts",
|
|
870
|
-
"node": "./out/types/component.js",
|
|
871
|
-
"default": "./out/types/component.js"
|
|
872
|
-
},
|
|
873
873
|
"./decoder/parse-diff": {
|
|
874
874
|
"types": "./out/decoder/parse-diff.d.ts",
|
|
875
875
|
"node": "./out/decoder/parse-diff.js",
|
|
@@ -901,19 +901,19 @@
|
|
|
901
901
|
"default": "./out/tokenization/Span.js"
|
|
902
902
|
},
|
|
903
903
|
"./decoder/serialize-json": {
|
|
904
|
-
"types": "./out/decoder/serialize
|
|
905
|
-
"node": "./out/decoder/serialize
|
|
906
|
-
"default": "./out/decoder/serialize
|
|
904
|
+
"types": "./out/decoder/serialize/json.d.ts",
|
|
905
|
+
"node": "./out/decoder/serialize/json.js",
|
|
906
|
+
"default": "./out/decoder/serialize/json.js"
|
|
907
907
|
},
|
|
908
908
|
"./decoder/serialize-tuples": {
|
|
909
|
-
"types": "./out/decoder/serialize
|
|
910
|
-
"node": "./out/decoder/serialize
|
|
911
|
-
"default": "./out/decoder/serialize
|
|
909
|
+
"types": "./out/decoder/serialize/tuples.d.ts",
|
|
910
|
+
"node": "./out/decoder/serialize/tuples.js",
|
|
911
|
+
"default": "./out/decoder/serialize/tuples.js"
|
|
912
912
|
},
|
|
913
913
|
"./decoder/serialize-xml": {
|
|
914
|
-
"types": "./out/decoder/serialize
|
|
915
|
-
"node": "./out/decoder/serialize
|
|
916
|
-
"default": "./out/decoder/serialize
|
|
914
|
+
"types": "./out/decoder/serialize/xml.d.ts",
|
|
915
|
+
"node": "./out/decoder/serialize/xml.js",
|
|
916
|
+
"default": "./out/decoder/serialize/xml.js"
|
|
917
917
|
},
|
|
918
918
|
"./decoder/resolve-proposal-overlaps": {
|
|
919
919
|
"types": "./out/decoder/resolve-proposal-overlaps.d.ts",
|
|
@@ -990,6 +990,11 @@
|
|
|
990
990
|
"node": "./out/resolver/types.js",
|
|
991
991
|
"default": "./out/resolver/types.js"
|
|
992
992
|
},
|
|
993
|
+
"./resolver/synthetic-id-ranges": {
|
|
994
|
+
"types": "./out/resolver/synthetic-id-ranges.d.ts",
|
|
995
|
+
"node": "./out/resolver/synthetic-id-ranges.js",
|
|
996
|
+
"default": "./out/resolver/synthetic-id-ranges.js"
|
|
997
|
+
},
|
|
993
998
|
"./pipeline/span-proposer": {
|
|
994
999
|
"types": "./out/pipeline/span-proposer.d.ts",
|
|
995
1000
|
"node": "./out/pipeline/span-proposer.js",
|
|
@@ -1055,6 +1060,11 @@
|
|
|
1055
1060
|
"node": "./out/data-root.js",
|
|
1056
1061
|
"default": "./out/data-root.js"
|
|
1057
1062
|
},
|
|
1063
|
+
"./overture-pins": {
|
|
1064
|
+
"types": "./out/overture-pins.d.ts",
|
|
1065
|
+
"node": "./out/overture-pins.js",
|
|
1066
|
+
"default": "./out/overture-pins.js"
|
|
1067
|
+
},
|
|
1058
1068
|
"./crypto/base64url": {
|
|
1059
1069
|
"types": "./out/crypto/base64url.d.ts",
|
|
1060
1070
|
"node": "./out/crypto/base64url.js",
|
|
@@ -1150,8 +1160,9 @@
|
|
|
1150
1160
|
}
|
|
1151
1161
|
},
|
|
1152
1162
|
"dependencies": {
|
|
1153
|
-
"@mailwoman/
|
|
1154
|
-
"@mailwoman/
|
|
1163
|
+
"@mailwoman/codex": "10.0.0",
|
|
1164
|
+
"@mailwoman/evidence": "10.0.0",
|
|
1165
|
+
"@mailwoman/sqlite": "10.0.0",
|
|
1155
1166
|
"adm-zip": "^0.6.0",
|
|
1156
1167
|
"async-init": "^1.0.0",
|
|
1157
1168
|
"axios": "^1.20.0",
|
|
@@ -1164,15 +1175,15 @@
|
|
|
1164
1175
|
"domutils": "^4.0.2",
|
|
1165
1176
|
"entities": "^8.0.0",
|
|
1166
1177
|
"env-paths": "^4.0.0",
|
|
1167
|
-
"fast-glob": "^3.3.3",
|
|
1168
1178
|
"htmlparser2": "^12.0.0",
|
|
1169
1179
|
"http-status-codes": "^2.3.0",
|
|
1180
|
+
"iconv-lite": "^0.7.3",
|
|
1170
1181
|
"isomorphic-dompurify": "^4.1.0",
|
|
1171
1182
|
"kysely": "^0.29.5",
|
|
1172
1183
|
"path-ts": "^2.3.0",
|
|
1173
1184
|
"pino": "^10.3.1",
|
|
1174
1185
|
"regenerate": "^1.4.2",
|
|
1175
|
-
"spliterator": "^
|
|
1186
|
+
"spliterator": "^7.5.1",
|
|
1176
1187
|
"trusted-types": "^2.0.0",
|
|
1177
1188
|
"type-fest": "^5.9.0",
|
|
1178
1189
|
"yauzl-promise": "^4.0.0",
|
|
@@ -1180,8 +1191,7 @@
|
|
|
1180
1191
|
},
|
|
1181
1192
|
"devDependencies": {
|
|
1182
1193
|
"@duckdb/node-api": "1.5.5-r.4",
|
|
1183
|
-
"@mailwoman/
|
|
1184
|
-
"@mailwoman/spatial": "9.4.0",
|
|
1194
|
+
"@mailwoman/spatial": "10.0.0",
|
|
1185
1195
|
"@types/d3-color": "^3.1.3",
|
|
1186
1196
|
"@types/d3-scale-chromatic": "^3.1.0",
|
|
1187
1197
|
"@types/trusted-types": "^2.0.7",
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Component-tag → resolver-placetype mapping, the equivalence groups a query expands into, and the test
|
|
7
|
-
* that tells a widened match from an exact one.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import type { ComponentTag } from "#decoder/types"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Mapping from mailwoman's address-component tags to the resolver's placetype taxonomy.
|
|
14
|
-
*
|
|
15
|
-
* PARTIAL on purpose: a tag absent from the map is NOT queried, and the resolver pass leaves its classifier attribution
|
|
16
|
-
* untouched. Omission is therefore a routing decision, not an oversight.
|
|
17
|
-
*/
|
|
18
|
-
export type PlacetypeMap = Partial<Record<ComponentTag, string>>
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* The map used when a backend does not supply its own.
|
|
22
|
-
*
|
|
23
|
-
* `street` and `house_number` are absent because WOF admin has no rows for them — they resolve through the situs
|
|
24
|
-
* extracts instead, which are keyed by street, not by placetype.
|
|
25
|
-
*
|
|
26
|
-
* The JP tiers are present because the candidate gazetteer keys them: 91.3% of Japanese records carry a kanji or kana
|
|
27
|
-
* key (49,255 of 53,920), a prefecture is a WOF `region`, a municipality a `locality` (its filter group admits the
|
|
28
|
-
* `borough` wards and `localadmin`), and a district (大字 / 町名) sits in the `locality` band beside the neighbourhoods.
|
|
29
|
-
* Measured on 300 JP board rows: with these entries and the JP rungs on the admin ladder, 271 resolve within 15 km;
|
|
30
|
-
* without them, 0. Only the character-path CJK model emits the tags, so no Latin parse reaches these rows.
|
|
31
|
-
*/
|
|
32
|
-
export const DEFAULT_PLACETYPE_MAP: PlacetypeMap = {
|
|
33
|
-
country: "country",
|
|
34
|
-
region: "region",
|
|
35
|
-
locality: "locality",
|
|
36
|
-
dependent_locality: "locality",
|
|
37
|
-
subregion: "county",
|
|
38
|
-
prefecture: "region",
|
|
39
|
-
municipality: "locality",
|
|
40
|
-
district: "locality",
|
|
41
|
-
// `postcode` (mailwoman tag) maps to WOF's `postalcode` placetype. Resolves only when the
|
|
42
|
-
// backend has the postcode extract available — `WOFSQLitePlaceLookup` auto-routes `postalcode`
|
|
43
|
-
// queries to a `postalcode_us` (or similarly-named) extract, falling back to main if absent.
|
|
44
|
-
postcode: "postalcode",
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Where a country's WOF typing of a tier departs from {@link DEFAULT_PLACETYPE_MAP}, the entries that differ. The map
|
|
49
|
-
* names the tier by tag; WOF names it by placetype, and the two agree for most countries and not for all.
|
|
50
|
-
*
|
|
51
|
-
* - **TW** — 鄉鎮市區, the tier below the 縣市 that the parse tags `subregion`, is `locality` or `localadmin` in WOF for 164 of
|
|
52
|
-
* the 178 held-out districts the candidate table carries and `county` for 14 (the census in
|
|
53
|
-
* `docs/records/evals/2026-09-08-v8-cjk-regs.md` §5). Under the default `county` band `臺北市中正區` reached nothing and
|
|
54
|
-
* the admin tier fell to the 縣市. The `locality` group admits `localadmin` too, the rule the JP `municipality` tag
|
|
55
|
-
* already relies on, and the exact-type preference in ranking keeps a `locality` row ahead of a same-name
|
|
56
|
-
* `localadmin` row.
|
|
57
|
-
*/
|
|
58
|
-
const COUNTRY_PLACETYPE_OVERRIDES: Readonly<Record<string, PlacetypeMap>> = {
|
|
59
|
-
tw: { subregion: "locality" },
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The placetype map for a resolve scoped to `countryCode` (ISO alpha-2, any case): the default map with the country's
|
|
64
|
-
* overrides applied, or the default map itself when the country has none or is unknown. The identity of the default
|
|
65
|
-
* object is preserved in that case, so a caller comparing maps to decide whether a second resolve is needed reads
|
|
66
|
-
* "unchanged" correctly.
|
|
67
|
-
*/
|
|
68
|
-
export function placetypeMapForCountry(countryCode: string | null | undefined): PlacetypeMap {
|
|
69
|
-
const overrides = countryCode ? COUNTRY_PLACETYPE_OVERRIDES[countryCode.toLowerCase()] : undefined
|
|
70
|
-
|
|
71
|
-
return overrides ? { ...DEFAULT_PLACETYPE_MAP, ...overrides } : DEFAULT_PLACETYPE_MAP
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Placetype-equivalence groups for lookup FILTERING. WOF splits a single addressing tier across several placetypes, but
|
|
76
|
-
* an address's span can name ANY of them. A backend that filters to the one "obvious" placetype makes the equivalents
|
|
77
|
-
* unreachable, so a fuzzy same-name place in the wrong tier wins instead.
|
|
78
|
-
*
|
|
79
|
-
* Three tiers are affected (the value of each entry is the set the SQL filter should accept; the FIRST entry is the
|
|
80
|
-
* canonical/requested type, which extract routing keys off):
|
|
81
|
-
*
|
|
82
|
-
* - **`locality`** — `locality` (most cities), `borough` (Brooklyn, the Paris arrondissements, the London boroughs), and
|
|
83
|
-
* `localadmin` (FR communes, US towns/townships in New England). Without the group, Brooklyn-the-borough (pop 2.5M)
|
|
84
|
-
* was unreachable and the fuzzy "Brooklyn Park, MN" won.
|
|
85
|
-
* - **`region`** — `region` + `macroregion` (#718). WOF does NOT model every country's top-level civil division as
|
|
86
|
-
* `region`: Italian regions (Lombardia, Veneto, Toscana…) are `macroregion` (their PROVINCES are `region`), and the
|
|
87
|
-
* post-2016 French régions (Île-de-France) are `macroregion` too. An address's `region` span names exactly those, so
|
|
88
|
-
* a `region`-only filter resolved them to NOTHING (confirmed against the IT/FR eval rows). US states / DE
|
|
89
|
-
* Bundesländer / ES provincias are genuine `region`, so the EXACT-type match is preferred in ranking (see the
|
|
90
|
-
* resolve.ts fallback-quality annotation) — the macro is the recall safety net, not a demotion.
|
|
91
|
-
* - **`county`** — `county` + `macrocounty` (#718). The `subregion` ComponentTag maps to `county` via
|
|
92
|
-
* {@link DEFAULT_PLACETYPE_MAP}; WOF carries `macrocounty` for FR départements-grouping / DE / GB tiers above the
|
|
93
|
-
* county. Proactive (no eval row exercises `subregion` today) but symmetric with `region` — biasing to inclusion,
|
|
94
|
-
* since a missed resolution costs more than a too-broad candidate (which is QA-visible). Same exact-type preference
|
|
95
|
-
* applies.
|
|
96
|
-
*
|
|
97
|
-
* This table is the single source of truth for that expansion, shared by every lookup backend
|
|
98
|
-
* (`@mailwoman/core/resolver-wof-sqlite`, `@mailwoman/core/resolver-wof-wasm`, and the demo's httpvfs lookup) so the
|
|
99
|
-
* Node and browser resolvers can't drift. Keyed by the REQUESTED placetype. Placetypes without an entry pass through
|
|
100
|
-
* unchanged — an explicit `placetype: "borough"` query stays narrow.
|
|
101
|
-
*/
|
|
102
|
-
export const PLACETYPE_FILTER_GROUPS: Readonly<Record<string, readonly string[]>> = {
|
|
103
|
-
locality: ["locality", "borough", "localadmin"],
|
|
104
|
-
region: ["region", "macroregion"],
|
|
105
|
-
county: ["county", "macrocounty"],
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Expand a placetype filter through {@link PLACETYPE_FILTER_GROUPS}, deduplicated and order-preserving (the first entry
|
|
110
|
-
* stays first — extract routing keys off it). `null`/`undefined` (no filter) passes through untouched.
|
|
111
|
-
*/
|
|
112
|
-
export function expandPlacetypeFilter(placetypes: null): null
|
|
113
|
-
export function expandPlacetypeFilter(placetypes: readonly string[]): string[]
|
|
114
|
-
export function expandPlacetypeFilter(placetypes: readonly string[] | null): string[] | null
|
|
115
|
-
|
|
116
|
-
export function expandPlacetypeFilter(placetypes: readonly string[] | null): string[] | null {
|
|
117
|
-
if (!placetypes) return null
|
|
118
|
-
const out: string[] = []
|
|
119
|
-
|
|
120
|
-
for (const placetype of placetypes) {
|
|
121
|
-
for (const expanded of PLACETYPE_FILTER_GROUPS[placetype] ?? [placetype]) {
|
|
122
|
-
if (!out.includes(expanded)) {
|
|
123
|
-
out.push(expanded)
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
return out
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Macro/broader-tier members of {@link PLACETYPE_FILTER_GROUPS} — the recall safety net a query may fall through to
|
|
133
|
-
* when no candidate of the EXACT requested placetype exists (#718). DELIBERATELY scoped to the `macro*` tiers only: the
|
|
134
|
-
* `locality` group's `borough`/`localadmin` are genuine peers (Brooklyn-the-borough is a first-class locality answer,
|
|
135
|
-
* #404-class), NOT fallbacks — so they must NOT be deprioritized or annotated. Only `macroregion`/`macrocounty` are a
|
|
136
|
-
* broader admin tier standing in for a true `region`/`county`.
|
|
137
|
-
*/
|
|
138
|
-
const MACRO_FALLBACK_PLACETYPES: ReadonlySet<string> = new Set(["macroregion", "macrocounty"])
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Did `candidatePlacetype` resolve `requestedPlacetype` only via a BROADER admin tier (a macro-type fallback within the
|
|
142
|
-
* {@link PLACETYPE_FILTER_GROUPS} expansion), rather than the exact type (#718)?
|
|
143
|
-
*
|
|
144
|
-
* `region` → `region` is exact (false); `region` → `macroregion` is a fallback (true). Scoped to the `macro*` tiers
|
|
145
|
-
* (see {@link MACRO_FALLBACK_PLACETYPES}) so the `locality` group's borough/localadmin peers stay exact. The resolver
|
|
146
|
-
* uses this to (a) prefer an exact-type candidate in ranking and (b) annotate `resolutionQuality: "fallback"` when only
|
|
147
|
-
* a macro-type matched. A placetype outside the requested group, or any non-macro member, is treated as exact (false).
|
|
148
|
-
*/
|
|
149
|
-
export function isPlacetypeFallback(requestedPlacetype: string, candidatePlacetype: string): boolean {
|
|
150
|
-
const group = PLACETYPE_FILTER_GROUPS[requestedPlacetype]
|
|
151
|
-
|
|
152
|
-
if (!group) return false
|
|
153
|
-
|
|
154
|
-
if (candidatePlacetype === requestedPlacetype) return false
|
|
155
|
-
|
|
156
|
-
return MACRO_FALLBACK_PLACETYPES.has(candidatePlacetype) && group.includes(candidatePlacetype)
|
|
157
|
-
}
|