@driftsys/markspec 0.10.3 → 0.12.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 +11 -2
- package/esm/ast/normalize.d.ts +4 -5
- package/esm/ast/normalize.d.ts.map +1 -1
- package/esm/ast/normalize.js +6 -37
- package/esm/collect/mod.d.ts +29 -9
- package/esm/collect/mod.d.ts.map +1 -1
- package/esm/collect/mod.js +36 -10
- package/esm/compiler/deserialize.d.ts +49 -0
- package/esm/compiler/deserialize.d.ts.map +1 -0
- package/esm/compiler/deserialize.js +139 -0
- package/esm/compiler/manifest.d.ts +3 -0
- package/esm/compiler/manifest.d.ts.map +1 -1
- package/esm/compiler/manifest.js +9 -3
- package/esm/compiler/mod.d.ts.map +1 -1
- package/esm/compiler/mod.js +18 -13
- package/esm/config/markspec.d.ts +40 -1
- package/esm/config/markspec.d.ts.map +1 -1
- package/esm/config/markspec.js +127 -2
- package/esm/config/mod.d.ts.map +1 -1
- package/esm/config/mod.js +143 -147
- package/esm/decl/duplicates.d.ts +29 -0
- package/esm/decl/duplicates.d.ts.map +1 -0
- package/esm/decl/duplicates.js +28 -0
- package/esm/decl/mod.d.ts +4 -2
- package/esm/decl/mod.d.ts.map +1 -1
- package/esm/decl/mod.js +2 -1
- package/esm/decl/surfaces.d.ts +29 -7
- package/esm/decl/surfaces.d.ts.map +1 -1
- package/esm/decl/surfaces.js +31 -18
- package/esm/discovery/mod.d.ts +24 -8
- package/esm/discovery/mod.d.ts.map +1 -1
- package/esm/discovery/mod.js +57 -21
- package/esm/discovery/projects.d.ts +109 -0
- package/esm/discovery/projects.d.ts.map +1 -0
- package/esm/discovery/projects.js +232 -0
- package/esm/formatter/entry_body.d.ts +86 -0
- package/esm/formatter/entry_body.d.ts.map +1 -0
- package/esm/formatter/entry_body.js +287 -0
- package/esm/formatter/mod.d.ts +13 -9
- package/esm/formatter/mod.d.ts.map +1 -1
- package/esm/formatter/mod.js +126 -50
- package/esm/gates/mod.d.ts +13 -2
- package/esm/gates/mod.d.ts.map +1 -1
- package/esm/gates/mod.js +41 -13
- package/esm/lint/runner.d.ts.map +1 -1
- package/esm/lint/runner.js +7 -5
- package/esm/lock/acquire_compile.d.ts +31 -0
- package/esm/lock/acquire_compile.d.ts.map +1 -0
- package/esm/lock/acquire_compile.js +83 -0
- package/esm/lock/cache_check.d.ts +28 -0
- package/esm/lock/cache_check.d.ts.map +1 -0
- package/esm/lock/cache_check.js +51 -0
- package/esm/lock/check.d.ts +14 -3
- package/esm/lock/check.d.ts.map +1 -1
- package/esm/lock/check.js +43 -4
- package/esm/lock/edge_drift.d.ts +2 -0
- package/esm/lock/edge_drift.d.ts.map +1 -1
- package/esm/lock/edge_drift.js +4 -0
- package/esm/lock/git_intent.d.ts +46 -0
- package/esm/lock/git_intent.d.ts.map +1 -0
- package/esm/lock/git_intent.js +111 -0
- package/esm/lock/mod.d.ts +11 -4
- package/esm/lock/mod.d.ts.map +1 -1
- package/esm/lock/mod.js +8 -2
- package/esm/lock/model.d.ts +24 -1
- package/esm/lock/model.d.ts.map +1 -1
- package/esm/lock/parser.d.ts.map +1 -1
- package/esm/lock/parser.js +32 -0
- package/esm/lock/pin_assurance.d.ts +20 -0
- package/esm/lock/pin_assurance.d.ts.map +1 -0
- package/esm/lock/pin_assurance.js +34 -0
- package/esm/lock/resolve.d.ts +8 -17
- package/esm/lock/resolve.d.ts.map +1 -1
- package/esm/lock/resolve.js +7 -67
- package/esm/lock/serializer.d.ts.map +1 -1
- package/esm/lock/serializer.js +23 -0
- package/esm/lock/upstream_common.d.ts +29 -0
- package/esm/lock/upstream_common.d.ts.map +1 -0
- package/esm/lock/upstream_common.js +38 -0
- package/esm/lock/upstream_deps.d.ts +63 -0
- package/esm/lock/upstream_deps.d.ts.map +1 -0
- package/esm/lock/upstream_deps.js +172 -0
- package/esm/lock/upstream_refs.d.ts +69 -0
- package/esm/lock/upstream_refs.d.ts.map +1 -0
- package/esm/lock/upstream_refs.js +238 -0
- package/esm/mod.d.ts +23 -11
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +20 -8
- package/esm/model/mod.d.ts +114 -28
- package/esm/model/mod.d.ts.map +1 -1
- package/esm/model/mod.js +76 -13
- package/esm/model/profile.d.ts +13 -0
- package/esm/model/profile.d.ts.map +1 -1
- package/esm/parser/code_regions.d.ts +29 -0
- package/esm/parser/code_regions.d.ts.map +1 -0
- package/esm/parser/code_regions.js +38 -0
- package/esm/parser/markdown.d.ts.map +1 -1
- package/esm/parser/markdown.js +110 -91
- package/esm/parser/mod.d.ts.map +1 -1
- package/esm/parser/mod.js +7 -1
- package/esm/parser/translate.d.ts.map +1 -1
- package/esm/parser/translate.js +5 -0
- package/esm/profile/manifest.d.ts.map +1 -1
- package/esm/profile/manifest.js +20 -3
- package/esm/profile/merge.js +7 -0
- package/esm/refs/mod.d.ts.map +1 -1
- package/esm/refs/mod.js +8 -19
- package/esm/reporter/mod.d.ts +11 -0
- package/esm/reporter/mod.d.ts.map +1 -1
- package/esm/reporter/mod.js +20 -9
- package/esm/typl/assemble.d.ts +53 -0
- package/esm/typl/assemble.d.ts.map +1 -0
- package/esm/typl/assemble.js +238 -0
- package/esm/typl/ast.d.ts +7 -1
- package/esm/typl/ast.d.ts.map +1 -1
- package/esm/typl/ast.js +3 -0
- package/esm/typl/bullet.d.ts +9 -7
- package/esm/typl/bullet.d.ts.map +1 -1
- package/esm/typl/bullet.js +6 -4
- package/esm/typl/citations.d.ts +27 -0
- package/esm/typl/citations.d.ts.map +1 -0
- package/esm/typl/citations.js +16 -0
- package/esm/typl/diagnostics.d.ts +2 -2
- package/esm/typl/diagnostics.d.ts.map +1 -1
- package/esm/typl/diagnostics.js +18 -0
- package/esm/typl/grammar.d.ts.map +1 -1
- package/esm/typl/grammar.js +6 -0
- package/esm/typl/lexer.d.ts.map +1 -1
- package/esm/typl/lexer.js +25 -4
- package/esm/typl/mod.d.ts +8 -2
- package/esm/typl/mod.d.ts.map +1 -1
- package/esm/typl/mod.js +5 -1
- package/esm/typl/recognize.js +2 -2
- package/esm/typl/registry.d.ts +1 -1
- package/esm/typl/resolve.d.ts +31 -0
- package/esm/typl/resolve.d.ts.map +1 -0
- package/esm/typl/resolve.js +27 -0
- package/esm/typl/table.d.ts +52 -0
- package/esm/typl/table.d.ts.map +1 -0
- package/esm/typl/table.js +69 -0
- package/esm/typl/validator.d.ts +24 -5
- package/esm/typl/validator.d.ts.map +1 -1
- package/esm/typl/validator.js +55 -75
- package/esm/upstream/mod.d.ts +45 -0
- package/esm/upstream/mod.d.ts.map +1 -0
- package/esm/upstream/mod.js +98 -0
- package/esm/upstream/project.d.ts +33 -0
- package/esm/upstream/project.d.ts.map +1 -0
- package/esm/upstream/project.js +38 -0
- package/esm/upstream/refs.d.ts +23 -0
- package/esm/upstream/refs.d.ts.map +1 -0
- package/esm/upstream/refs.js +71 -0
- package/esm/util/fence.d.ts +20 -29
- package/esm/util/fence.d.ts.map +1 -1
- package/esm/util/fence.js +42 -50
- package/esm/util/modals.d.ts +6 -0
- package/esm/util/modals.d.ts.map +1 -1
- package/esm/util/modals.js +37 -0
- package/esm/util/paths.d.ts +14 -0
- package/esm/util/paths.d.ts.map +1 -0
- package/esm/util/paths.js +22 -0
- package/esm/uxil/assemble.d.ts +38 -0
- package/esm/uxil/assemble.d.ts.map +1 -0
- package/esm/uxil/assemble.js +268 -0
- package/esm/uxil/ast.d.ts +63 -0
- package/esm/uxil/ast.d.ts.map +1 -0
- package/esm/uxil/ast.js +9 -0
- package/esm/uxil/citations.d.ts +27 -0
- package/esm/uxil/citations.d.ts.map +1 -0
- package/esm/uxil/citations.js +25 -0
- package/esm/uxil/diagnostics.d.ts +39 -0
- package/esm/uxil/diagnostics.d.ts.map +1 -0
- package/esm/uxil/diagnostics.js +135 -0
- package/esm/uxil/grammar.d.ts +72 -0
- package/esm/uxil/grammar.d.ts.map +1 -0
- package/esm/uxil/grammar.js +505 -0
- package/esm/uxil/lexer.d.ts +23 -0
- package/esm/uxil/lexer.d.ts.map +1 -0
- package/esm/uxil/lexer.js +58 -0
- package/esm/uxil/mod.d.ts +32 -0
- package/esm/uxil/mod.d.ts.map +1 -0
- package/esm/uxil/mod.js +11 -0
- package/esm/uxil/projection.d.ts +40 -0
- package/esm/uxil/projection.d.ts.map +1 -0
- package/esm/uxil/projection.js +41 -0
- package/esm/uxil/recognize.d.ts +16 -0
- package/esm/uxil/recognize.d.ts.map +1 -0
- package/esm/uxil/recognize.js +28 -0
- package/esm/uxil/registry.d.ts +37 -0
- package/esm/uxil/registry.d.ts.map +1 -0
- package/esm/uxil/registry.js +29 -0
- package/esm/uxil/surfaces.d.ts +36 -0
- package/esm/uxil/surfaces.d.ts.map +1 -0
- package/esm/uxil/surfaces.js +34 -0
- package/esm/uxil/validator.d.ts +36 -0
- package/esm/uxil/validator.d.ts.map +1 -0
- package/esm/uxil/validator.js +139 -0
- package/esm/uxil/vocab.d.ts +33 -0
- package/esm/uxil/vocab.d.ts.map +1 -0
- package/esm/uxil/vocab.js +36 -0
- package/esm/validator/body_blocks.d.ts +2 -1
- package/esm/validator/body_blocks.d.ts.map +1 -1
- package/esm/validator/body_blocks.js +80 -2
- package/esm/validator/caption_convention.d.ts +2 -1
- package/esm/validator/caption_convention.d.ts.map +1 -1
- package/esm/validator/caption_convention.js +2 -1
- package/esm/validator/corpus.d.ts +6 -0
- package/esm/validator/corpus.d.ts.map +1 -1
- package/esm/validator/corpus.js +55 -20
- package/esm/validator/discipline.d.ts +6 -4
- package/esm/validator/discipline.d.ts.map +1 -1
- package/esm/validator/discipline.js +6 -4
- package/esm/validator/mod.d.ts +1 -1
- package/esm/validator/mod.d.ts.map +1 -1
- package/esm/validator/mod.js +29 -16
- package/esm/validator/pipeline.d.ts +11 -1
- package/esm/validator/pipeline.d.ts.map +1 -1
- package/esm/validator/pipeline.js +76 -23
- package/esm/validator/trace_types.d.ts +9 -2
- package/esm/validator/trace_types.d.ts.map +1 -1
- package/esm/validator/trace_types.js +21 -5
- package/esm/validator/traceability.d.ts +15 -3
- package/esm/validator/traceability.d.ts.map +1 -1
- package/esm/validator/traceability.js +39 -4
- package/esm/validator/types.d.ts.map +1 -1
- package/esm/validator/types.js +11 -1
- package/esm/validator/uxil_family.d.ts +43 -0
- package/esm/validator/uxil_family.d.ts.map +1 -0
- package/esm/validator/uxil_family.js +52 -0
- package/package.json +1 -1
- package/script/ast/normalize.d.ts +4 -5
- package/script/ast/normalize.d.ts.map +1 -1
- package/script/ast/normalize.js +5 -36
- package/script/collect/mod.d.ts +29 -9
- package/script/collect/mod.d.ts.map +1 -1
- package/script/collect/mod.js +38 -10
- package/script/compiler/deserialize.d.ts +49 -0
- package/script/compiler/deserialize.d.ts.map +1 -0
- package/script/compiler/deserialize.js +144 -0
- package/script/compiler/manifest.d.ts +3 -0
- package/script/compiler/manifest.d.ts.map +1 -1
- package/script/compiler/manifest.js +10 -3
- package/script/compiler/mod.d.ts.map +1 -1
- package/script/compiler/mod.js +16 -11
- package/script/config/markspec.d.ts +40 -1
- package/script/config/markspec.d.ts.map +1 -1
- package/script/config/markspec.js +129 -3
- package/script/config/mod.d.ts.map +1 -1
- package/script/config/mod.js +143 -147
- package/script/decl/duplicates.d.ts +29 -0
- package/script/decl/duplicates.d.ts.map +1 -0
- package/script/decl/duplicates.js +31 -0
- package/script/decl/mod.d.ts +4 -2
- package/script/decl/mod.d.ts.map +1 -1
- package/script/decl/mod.js +4 -2
- package/script/decl/surfaces.d.ts +29 -7
- package/script/decl/surfaces.d.ts.map +1 -1
- package/script/decl/surfaces.js +32 -19
- package/script/discovery/mod.d.ts +24 -8
- package/script/discovery/mod.d.ts.map +1 -1
- package/script/discovery/mod.js +56 -20
- package/script/discovery/projects.d.ts +109 -0
- package/script/discovery/projects.d.ts.map +1 -0
- package/script/discovery/projects.js +240 -0
- package/script/formatter/entry_body.d.ts +86 -0
- package/script/formatter/entry_body.d.ts.map +1 -0
- package/script/formatter/entry_body.js +292 -0
- package/script/formatter/mod.d.ts +13 -9
- package/script/formatter/mod.d.ts.map +1 -1
- package/script/formatter/mod.js +124 -48
- package/script/gates/mod.d.ts +13 -2
- package/script/gates/mod.d.ts.map +1 -1
- package/script/gates/mod.js +50 -22
- package/script/lint/runner.d.ts.map +1 -1
- package/script/lint/runner.js +6 -4
- package/script/lock/acquire_compile.d.ts +31 -0
- package/script/lock/acquire_compile.d.ts.map +1 -0
- package/script/lock/acquire_compile.js +86 -0
- package/script/lock/cache_check.d.ts +28 -0
- package/script/lock/cache_check.d.ts.map +1 -0
- package/script/lock/cache_check.js +54 -0
- package/script/lock/check.d.ts +14 -3
- package/script/lock/check.d.ts.map +1 -1
- package/script/lock/check.js +43 -4
- package/script/lock/edge_drift.d.ts +2 -0
- package/script/lock/edge_drift.d.ts.map +1 -1
- package/script/lock/edge_drift.js +5 -0
- package/script/lock/git_intent.d.ts +46 -0
- package/script/lock/git_intent.d.ts.map +1 -0
- package/script/lock/git_intent.js +115 -0
- package/script/lock/mod.d.ts +11 -4
- package/script/lock/mod.d.ts.map +1 -1
- package/script/lock/mod.js +17 -2
- package/script/lock/model.d.ts +24 -1
- package/script/lock/model.d.ts.map +1 -1
- package/script/lock/parser.d.ts.map +1 -1
- package/script/lock/parser.js +32 -0
- package/script/lock/pin_assurance.d.ts +20 -0
- package/script/lock/pin_assurance.d.ts.map +1 -0
- package/script/lock/pin_assurance.js +37 -0
- package/script/lock/resolve.d.ts +8 -17
- package/script/lock/resolve.d.ts.map +1 -1
- package/script/lock/resolve.js +7 -68
- package/script/lock/serializer.d.ts.map +1 -1
- package/script/lock/serializer.js +23 -0
- package/script/lock/upstream_common.d.ts +29 -0
- package/script/lock/upstream_common.d.ts.map +1 -0
- package/script/lock/upstream_common.js +42 -0
- package/script/lock/upstream_deps.d.ts +63 -0
- package/script/lock/upstream_deps.d.ts.map +1 -0
- package/script/lock/upstream_deps.js +175 -0
- package/script/lock/upstream_refs.d.ts +69 -0
- package/script/lock/upstream_refs.d.ts.map +1 -0
- package/script/lock/upstream_refs.js +244 -0
- package/script/mod.d.ts +23 -11
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +55 -7
- package/script/model/mod.d.ts +114 -28
- package/script/model/mod.d.ts.map +1 -1
- package/script/model/mod.js +81 -14
- package/script/model/profile.d.ts +13 -0
- package/script/model/profile.d.ts.map +1 -1
- package/script/parser/code_regions.d.ts +29 -0
- package/script/parser/code_regions.d.ts.map +1 -0
- package/script/parser/code_regions.js +41 -0
- package/script/parser/markdown.d.ts.map +1 -1
- package/script/parser/markdown.js +108 -89
- package/script/parser/mod.d.ts.map +1 -1
- package/script/parser/mod.js +7 -1
- package/script/parser/translate.d.ts.map +1 -1
- package/script/parser/translate.js +5 -0
- package/script/profile/manifest.d.ts.map +1 -1
- package/script/profile/manifest.js +20 -3
- package/script/profile/merge.js +7 -0
- package/script/refs/mod.d.ts.map +1 -1
- package/script/refs/mod.js +7 -18
- package/script/reporter/mod.d.ts +11 -0
- package/script/reporter/mod.d.ts.map +1 -1
- package/script/reporter/mod.js +19 -8
- package/script/typl/assemble.d.ts +53 -0
- package/script/typl/assemble.d.ts.map +1 -0
- package/script/typl/assemble.js +241 -0
- package/script/typl/ast.d.ts +7 -1
- package/script/typl/ast.d.ts.map +1 -1
- package/script/typl/ast.js +3 -0
- package/script/typl/bullet.d.ts +9 -7
- package/script/typl/bullet.d.ts.map +1 -1
- package/script/typl/bullet.js +6 -4
- package/script/typl/citations.d.ts +27 -0
- package/script/typl/citations.d.ts.map +1 -0
- package/script/typl/citations.js +20 -0
- package/script/typl/diagnostics.d.ts +2 -2
- package/script/typl/diagnostics.d.ts.map +1 -1
- package/script/typl/diagnostics.js +18 -0
- package/script/typl/grammar.d.ts.map +1 -1
- package/script/typl/grammar.js +6 -0
- package/script/typl/lexer.d.ts.map +1 -1
- package/script/typl/lexer.js +25 -4
- package/script/typl/mod.d.ts +8 -2
- package/script/typl/mod.d.ts.map +1 -1
- package/script/typl/mod.js +14 -2
- package/script/typl/recognize.js +2 -2
- package/script/typl/registry.d.ts +1 -1
- package/script/typl/resolve.d.ts +31 -0
- package/script/typl/resolve.d.ts.map +1 -0
- package/script/typl/resolve.js +33 -0
- package/script/typl/table.d.ts +52 -0
- package/script/typl/table.d.ts.map +1 -0
- package/script/typl/table.js +75 -0
- package/script/typl/validator.d.ts +24 -5
- package/script/typl/validator.d.ts.map +1 -1
- package/script/typl/validator.js +55 -75
- package/script/upstream/mod.d.ts +45 -0
- package/script/upstream/mod.d.ts.map +1 -0
- package/script/upstream/mod.js +101 -0
- package/script/upstream/project.d.ts +33 -0
- package/script/upstream/project.d.ts.map +1 -0
- package/script/upstream/project.js +41 -0
- package/script/upstream/refs.d.ts +23 -0
- package/script/upstream/refs.d.ts.map +1 -0
- package/script/upstream/refs.js +74 -0
- package/script/util/fence.d.ts +20 -29
- package/script/util/fence.d.ts.map +1 -1
- package/script/util/fence.js +47 -54
- package/script/util/modals.d.ts +6 -0
- package/script/util/modals.d.ts.map +1 -1
- package/script/util/modals.js +38 -0
- package/script/util/paths.d.ts +14 -0
- package/script/util/paths.d.ts.map +1 -0
- package/script/util/paths.js +25 -0
- package/script/uxil/assemble.d.ts +38 -0
- package/script/uxil/assemble.d.ts.map +1 -0
- package/script/uxil/assemble.js +272 -0
- package/script/uxil/ast.d.ts +63 -0
- package/script/uxil/ast.d.ts.map +1 -0
- package/script/uxil/ast.js +10 -0
- package/script/uxil/citations.d.ts +27 -0
- package/script/uxil/citations.d.ts.map +1 -0
- package/script/uxil/citations.js +29 -0
- package/script/uxil/diagnostics.d.ts +39 -0
- package/script/uxil/diagnostics.d.ts.map +1 -0
- package/script/uxil/diagnostics.js +140 -0
- package/script/uxil/grammar.d.ts +72 -0
- package/script/uxil/grammar.d.ts.map +1 -0
- package/script/uxil/grammar.js +511 -0
- package/script/uxil/lexer.d.ts +23 -0
- package/script/uxil/lexer.d.ts.map +1 -0
- package/script/uxil/lexer.js +61 -0
- package/script/uxil/mod.d.ts +32 -0
- package/script/uxil/mod.d.ts.map +1 -0
- package/script/uxil/mod.js +37 -0
- package/script/uxil/projection.d.ts +40 -0
- package/script/uxil/projection.d.ts.map +1 -0
- package/script/uxil/projection.js +44 -0
- package/script/uxil/recognize.d.ts +16 -0
- package/script/uxil/recognize.d.ts.map +1 -0
- package/script/uxil/recognize.js +31 -0
- package/script/uxil/registry.d.ts +37 -0
- package/script/uxil/registry.d.ts.map +1 -0
- package/script/uxil/registry.js +32 -0
- package/script/uxil/surfaces.d.ts +36 -0
- package/script/uxil/surfaces.d.ts.map +1 -0
- package/script/uxil/surfaces.js +39 -0
- package/script/uxil/validator.d.ts +36 -0
- package/script/uxil/validator.d.ts.map +1 -0
- package/script/uxil/validator.js +142 -0
- package/script/uxil/vocab.d.ts +33 -0
- package/script/uxil/vocab.d.ts.map +1 -0
- package/script/uxil/vocab.js +41 -0
- package/script/validator/body_blocks.d.ts +2 -1
- package/script/validator/body_blocks.d.ts.map +1 -1
- package/script/validator/body_blocks.js +80 -2
- package/script/validator/caption_convention.d.ts +2 -1
- package/script/validator/caption_convention.d.ts.map +1 -1
- package/script/validator/caption_convention.js +2 -1
- package/script/validator/corpus.d.ts +6 -0
- package/script/validator/corpus.d.ts.map +1 -1
- package/script/validator/corpus.js +55 -19
- package/script/validator/discipline.d.ts +6 -4
- package/script/validator/discipline.d.ts.map +1 -1
- package/script/validator/discipline.js +6 -4
- package/script/validator/mod.d.ts +1 -1
- package/script/validator/mod.d.ts.map +1 -1
- package/script/validator/mod.js +29 -15
- package/script/validator/pipeline.d.ts +11 -1
- package/script/validator/pipeline.d.ts.map +1 -1
- package/script/validator/pipeline.js +75 -22
- package/script/validator/trace_types.d.ts +9 -2
- package/script/validator/trace_types.d.ts.map +1 -1
- package/script/validator/trace_types.js +20 -4
- package/script/validator/traceability.d.ts +15 -3
- package/script/validator/traceability.d.ts.map +1 -1
- package/script/validator/traceability.js +38 -3
- package/script/validator/types.d.ts.map +1 -1
- package/script/validator/types.js +10 -0
- package/script/validator/uxil_family.d.ts +43 -0
- package/script/validator/uxil_family.d.ts.map +1 -0
- package/script/validator/uxil_family.js +56 -0
package/esm/typl/ast.js
CHANGED
package/esm/typl/bullet.d.ts
CHANGED
|
@@ -6,19 +6,21 @@
|
|
|
6
6
|
* `type X = …` typedef). A thin wrapper over the shared
|
|
7
7
|
* declaration-surface machinery (core/decl): it supplies typl's text
|
|
8
8
|
* recognizer and re-exports the common declaration node as
|
|
9
|
-
* {@linkcode
|
|
10
|
-
* items are extracted, non-matching bullets are left alone.
|
|
9
|
+
* {@linkcode TyplNestedBulletExtraction}. Mixed lists are supported —
|
|
10
|
+
* matching items are extracted, non-matching bullets are left alone.
|
|
11
11
|
*
|
|
12
12
|
* See ADR-019.
|
|
13
13
|
*/
|
|
14
14
|
import type { BodyBlock } from "../ast/nodes.js";
|
|
15
|
-
import { type
|
|
16
|
-
/** A
|
|
17
|
-
export type
|
|
15
|
+
import { type NestedBlockDeclaration } from "../decl/mod.js";
|
|
16
|
+
/** A typl bullet declaration with its structural parent link (#723). */
|
|
17
|
+
export type TyplNestedBulletExtraction = NestedBlockDeclaration;
|
|
18
18
|
/**
|
|
19
19
|
* Walk a body AST and return every bullet-list item whose first paragraph
|
|
20
20
|
* is a typl declaration, in source order (depth-first, recursing into
|
|
21
|
-
* nested lists)
|
|
21
|
+
* nested lists), each with a `parent` link for base-resolution scope
|
|
22
|
+
* chains. Delegates traversal to
|
|
23
|
+
* {@linkcode extractNestedBulletDeclarations}.
|
|
22
24
|
*/
|
|
23
|
-
export declare function
|
|
25
|
+
export declare function extractTyplBulletsNested(blocks: readonly BodyBlock[]): readonly TyplNestedBulletExtraction[];
|
|
24
26
|
//# sourceMappingURL=bullet.d.ts.map
|
package/esm/typl/bullet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bullet.d.ts","sourceRoot":"","sources":["../../src/typl/bullet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"bullet.d.ts","sourceRoot":"","sources":["../../src/typl/bullet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAGxB,wEAAwE;AACxE,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAEhE;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,SAAS,EAAE,GAC3B,SAAS,0BAA0B,EAAE,CAEvC"}
|
package/esm/typl/bullet.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { extractNestedBulletDeclarations, } from "../decl/mod.js";
|
|
2
2
|
import { isTyplDeclarationText } from "./recognize.js";
|
|
3
3
|
/**
|
|
4
4
|
* Walk a body AST and return every bullet-list item whose first paragraph
|
|
5
5
|
* is a typl declaration, in source order (depth-first, recursing into
|
|
6
|
-
* nested lists)
|
|
6
|
+
* nested lists), each with a `parent` link for base-resolution scope
|
|
7
|
+
* chains. Delegates traversal to
|
|
8
|
+
* {@linkcode extractNestedBulletDeclarations}.
|
|
7
9
|
*/
|
|
8
|
-
export function
|
|
9
|
-
return
|
|
10
|
+
export function extractTyplBulletsNested(blocks) {
|
|
11
|
+
return extractNestedBulletDeclarations(blocks, isTyplDeclarationText);
|
|
10
12
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module typl/citations
|
|
3
|
+
*
|
|
4
|
+
* Citation extraction for the published tier (#723): a *citation* is a
|
|
5
|
+
* bare published-shaped ref in an inline code span — absolute
|
|
6
|
+
* (`` `$powertrain.brake.pedal_position` ``) or relative
|
|
7
|
+
* (`` `$.pedal_position` ``) — with no declaration clause. Plain `$Name`
|
|
8
|
+
* spans are entry-local mentions and deliberately not validated
|
|
9
|
+
* (unchanged pre-#723 behavior). The validator resolves relative
|
|
10
|
+
* citations against the entry's root namespace and checks resolved names
|
|
11
|
+
* against the corpus registry (TYPL-010 / TYPL-011).
|
|
12
|
+
*/
|
|
13
|
+
import type { BodyToken, SourceLocation } from "../model/mod.js";
|
|
14
|
+
/** One published-tier citation: the ref text and its file location. */
|
|
15
|
+
export interface TyplCitation {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly location: SourceLocation;
|
|
18
|
+
}
|
|
19
|
+
/** True when a code span's (trimmed) text is a bare published-shaped ref. */
|
|
20
|
+
export declare function isTyplCitationText(text: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Filter `Entry.bodyTokens` to published-tier citations, in source order.
|
|
23
|
+
* Reuses the shared inline-declaration walker with the citation
|
|
24
|
+
* recognizer — the walker strips backtick delimiters before matching.
|
|
25
|
+
*/
|
|
26
|
+
export declare function extractTyplCitations(bodyTokens: readonly BodyToken[]): readonly TyplCitation[];
|
|
27
|
+
//# sourceMappingURL=citations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../../src/typl/citations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjE,uEAAuE;AACvE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;CACnC;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,SAAS,SAAS,EAAE,GAC/B,SAAS,YAAY,EAAE,CAGzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { extractInlineDeclarations } from "../decl/mod.js";
|
|
2
|
+
import { isPublishedTyplName, isRelativeTyplName } from "./resolve.js";
|
|
3
|
+
/** True when a code span's (trimmed) text is a bare published-shaped ref. */
|
|
4
|
+
export function isTyplCitationText(text) {
|
|
5
|
+
const t = text.trim();
|
|
6
|
+
return isPublishedTyplName(t) || isRelativeTyplName(t);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Filter `Entry.bodyTokens` to published-tier citations, in source order.
|
|
10
|
+
* Reuses the shared inline-declaration walker with the citation
|
|
11
|
+
* recognizer — the walker strips backtick delimiters before matching.
|
|
12
|
+
*/
|
|
13
|
+
export function extractTyplCitations(bodyTokens) {
|
|
14
|
+
return extractInlineDeclarations(bodyTokens, isTyplCitationText)
|
|
15
|
+
.map((d) => ({ name: d.source.trim(), location: d.location }));
|
|
16
|
+
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @module typl/diagnostics
|
|
3
3
|
*
|
|
4
4
|
* Diagnostic codes emitted by the typl parser and validator (TYPL-001
|
|
5
|
-
* through TYPL-
|
|
5
|
+
* through TYPL-012). Each code carries a severity and a template; the
|
|
6
6
|
* `typlDiagnostic` helper performs `${var}` substitution.
|
|
7
7
|
*/
|
|
8
8
|
import type { Position } from "./ast.js";
|
|
9
9
|
import type { Severity } from "../model/mod.js";
|
|
10
10
|
/** Union of all valid TYPL diagnostic codes. */
|
|
11
|
-
export type TyplCode = "TYPL-001" | "TYPL-002" | "TYPL-003" | "TYPL-004" | "TYPL-005" | "TYPL-006" | "TYPL-007" | "TYPL-008";
|
|
11
|
+
export type TyplCode = "TYPL-001" | "TYPL-002" | "TYPL-003" | "TYPL-004" | "TYPL-005" | "TYPL-006" | "TYPL-007" | "TYPL-008" | "TYPL-009" | "TYPL-010" | "TYPL-011" | "TYPL-012";
|
|
12
12
|
/** Shape of each entry in {@linkcode TYPL_CODES}. */
|
|
13
13
|
export interface TyplCodeEntry {
|
|
14
14
|
readonly severity: Severity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/typl/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAWhD,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAChB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,qDAAqD;AACrD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/typl/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAWhD,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAChB,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;AAEf,qDAAqD;AACrD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAyDtD,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACvC,QAAQ,EAAE,QAAQ,GACjB,cAAc,CAUhB"}
|
package/esm/typl/diagnostics.js
CHANGED
|
@@ -10,10 +10,12 @@ export const TYPL_CODES = {
|
|
|
10
10
|
severity: "error",
|
|
11
11
|
template: "Duplicate binding for ${name} in the same entry (first wins, this is a duplicate).",
|
|
12
12
|
},
|
|
13
|
+
// Deprecated (#723): retired by the published tier. Kept resolvable for tooling; never emitted.
|
|
13
14
|
"TYPL-002": {
|
|
14
15
|
severity: "error",
|
|
15
16
|
template: "${name} is declared as kind ${kindA} here and ${kindB} in ${otherFile}:${otherLine}.",
|
|
16
17
|
},
|
|
18
|
+
// Deprecated (#723): retired by the published tier. Kept resolvable for tooling; never emitted.
|
|
17
19
|
"TYPL-003": {
|
|
18
20
|
severity: "error",
|
|
19
21
|
template: "${name} is declared with a different shape than in ${otherFile}:${otherLine}.",
|
|
@@ -38,6 +40,22 @@ export const TYPL_CODES = {
|
|
|
38
40
|
severity: "error",
|
|
39
41
|
template: "Literal ${value} violates declared ${constraint} (${detail}).",
|
|
40
42
|
},
|
|
43
|
+
"TYPL-009": {
|
|
44
|
+
severity: "error",
|
|
45
|
+
template: "${name} is already declared in ${otherFile}:${otherLine} (published symbols are declared exactly once).",
|
|
46
|
+
},
|
|
47
|
+
"TYPL-010": {
|
|
48
|
+
severity: "error",
|
|
49
|
+
template: "Relative reference ${name} has no namespace base in scope.",
|
|
50
|
+
},
|
|
51
|
+
"TYPL-011": {
|
|
52
|
+
severity: "error",
|
|
53
|
+
template: "Citation of undeclared published symbol ${name}.",
|
|
54
|
+
},
|
|
55
|
+
"TYPL-012": {
|
|
56
|
+
severity: "error",
|
|
57
|
+
template: "Multiple root namespace declarations in one entry (root is ${first}).",
|
|
58
|
+
},
|
|
41
59
|
};
|
|
42
60
|
/**
|
|
43
61
|
* Construct a typl diagnostic by substituting `${var}` placeholders in the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grammar.d.ts","sourceRoot":"","sources":["../../src/typl/grammar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"grammar.d.ts","sourceRoot":"","sources":["../../src/typl/grammar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAqgBvE;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GACb;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,WAAW,EAAE,SAAS,cAAc,EAAE,CAAA;CAAE,CAK5D"}
|
package/esm/typl/grammar.js
CHANGED
|
@@ -125,6 +125,12 @@ class Parser {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
const shape = this.parseShapeOptional();
|
|
128
|
+
// A namespace declaration (#723) is scaffolding — it establishes a
|
|
129
|
+
// base for relative refs and must not carry a shape.
|
|
130
|
+
if (kind === "namespace" && shape !== undefined) {
|
|
131
|
+
this.diagnostics.push(typlDiagnostic("TYPL-006", { detail: "a namespace declaration carries no shape" }, nameTok.position));
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
128
134
|
return {
|
|
129
135
|
statementKind: "binding",
|
|
130
136
|
name: nameTok.value,
|
package/esm/typl/lexer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexer.d.ts","sourceRoot":"","sources":["../../src/typl/lexer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAEvE,sDAAsD;AACtD,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,OAAO,GACP,MAAM,GACN,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,KAAK,CAAC;AAEV,sDAAsD;AACtD,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AA0BD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,MAAM,GACb;IAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAAC,WAAW,EAAE,cAAc,EAAE,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"lexer.d.ts","sourceRoot":"","sources":["../../src/typl/lexer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAEvE,sDAAsD;AACtD,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,aAAa,GACb,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,OAAO,GACP,MAAM,GACN,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,KAAK,CAAC;AAEV,sDAAsD;AACtD,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AA0BD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,MAAM,GACb;IAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAAC,WAAW,EAAE,cAAc,EAAE,CAAA;CAAE,CAuOpD"}
|
package/esm/typl/lexer.js
CHANGED
|
@@ -76,19 +76,40 @@ export function tokenize(source) {
|
|
|
76
76
|
push("COMMENT", value, startCol);
|
|
77
77
|
continue;
|
|
78
78
|
}
|
|
79
|
-
// ── Dollar-prefixed identifier — `$Speed`
|
|
79
|
+
// ── Dollar-prefixed identifier — `$Speed`, `$a.b.c`, `$.x` ──────
|
|
80
80
|
// $ identifier — body uses IDENT_BODY_RE (allows digits) intentionally;
|
|
81
|
-
// names like $1st are lexically valid and rejected by the parser
|
|
81
|
+
// names like $1st are lexically valid and rejected by the parser.
|
|
82
|
+
// Dotted paths (published tier, #723): a `.` is consumed only when an
|
|
83
|
+
// identifier character follows, so `float[0..100]` ranges and trailing
|
|
84
|
+
// dots never get eaten. A leading `.` right after `$` marks a relative
|
|
85
|
+
// published ref (`$.name`).
|
|
82
86
|
if (ch === "$") {
|
|
83
87
|
const startCol = column;
|
|
84
88
|
let value = "$";
|
|
85
89
|
i++;
|
|
86
90
|
column++;
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
if (source[i] === "." && i + 1 < source.length &&
|
|
92
|
+
IDENT_BODY_RE.test(source[i + 1])) {
|
|
93
|
+
value += ".";
|
|
89
94
|
i++;
|
|
90
95
|
column++;
|
|
91
96
|
}
|
|
97
|
+
while (i < source.length) {
|
|
98
|
+
if (IDENT_BODY_RE.test(source[i])) {
|
|
99
|
+
value += source[i];
|
|
100
|
+
i++;
|
|
101
|
+
column++;
|
|
102
|
+
}
|
|
103
|
+
else if (source[i] === "." && i + 1 < source.length &&
|
|
104
|
+
IDENT_BODY_RE.test(source[i + 1])) {
|
|
105
|
+
value += ".";
|
|
106
|
+
i++;
|
|
107
|
+
column++;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
92
113
|
push("DOLLAR_IDENT", value, startCol);
|
|
93
114
|
continue;
|
|
94
115
|
}
|
package/esm/typl/mod.d.ts
CHANGED
|
@@ -10,13 +10,19 @@ export { KINDS } from "./ast.js";
|
|
|
10
10
|
export type { TyplCode, TyplCodeEntry, TyplDiagnostic } from "./diagnostics.js";
|
|
11
11
|
export { TYPL_CODES, typlDiagnostic } from "./diagnostics.js";
|
|
12
12
|
export { parseTyplBlock } from "./grammar.js";
|
|
13
|
+
export { assembleTyplTypes } from "./assemble.js";
|
|
13
14
|
export type { TyplFenceExtraction } from "./fence.js";
|
|
14
15
|
export { extractTyplFences } from "./fence.js";
|
|
15
16
|
export { bridgeTyplDiagnostic } from "./bridge.js";
|
|
16
|
-
export type {
|
|
17
|
-
export {
|
|
17
|
+
export type { TyplNestedBulletExtraction } from "./bullet.js";
|
|
18
|
+
export { extractTyplBulletsNested } from "./bullet.js";
|
|
18
19
|
export type { TyplInlineExtraction } from "./inline.js";
|
|
19
20
|
export { extractTyplInlines } from "./inline.js";
|
|
21
|
+
export type { TyplTableExtraction } from "./table.js";
|
|
22
|
+
export { extractTyplTable } from "./table.js";
|
|
23
|
+
export type { TyplCitation } from "./citations.js";
|
|
24
|
+
export { extractTyplCitations, isTyplCitationText } from "./citations.js";
|
|
25
|
+
export { isPublishedTyplName, isRelativeTyplName, TYPL_REF_OPS, typlPathOf, } from "./resolve.js";
|
|
20
26
|
export type { RegistryBinding, RegistryTypedef, TypeRegistry, } from "./registry.js";
|
|
21
27
|
export { buildTypeRegistry } from "./registry.js";
|
|
22
28
|
export { validateTypl } from "./validator.js";
|
package/esm/typl/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/typl/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EACV,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/typl/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EACV,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,YAAY,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,eAAe,EACf,eAAe,EACf,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
package/esm/typl/mod.js
CHANGED
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
export { KINDS } from "./ast.js";
|
|
9
9
|
export { TYPL_CODES, typlDiagnostic } from "./diagnostics.js";
|
|
10
10
|
export { parseTyplBlock } from "./grammar.js";
|
|
11
|
+
export { assembleTyplTypes } from "./assemble.js";
|
|
11
12
|
export { extractTyplFences } from "./fence.js";
|
|
12
13
|
export { bridgeTyplDiagnostic } from "./bridge.js";
|
|
13
|
-
export {
|
|
14
|
+
export { extractTyplBulletsNested } from "./bullet.js";
|
|
14
15
|
export { extractTyplInlines } from "./inline.js";
|
|
16
|
+
export { extractTyplTable } from "./table.js";
|
|
17
|
+
export { extractTyplCitations, isTyplCitationText } from "./citations.js";
|
|
18
|
+
export { isPublishedTyplName, isRelativeTyplName, TYPL_REF_OPS, typlPathOf, } from "./resolve.js";
|
|
15
19
|
export { buildTypeRegistry } from "./registry.js";
|
|
16
20
|
export { validateTypl } from "./validator.js";
|
package/esm/typl/recognize.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See ADR-019.
|
|
11
11
|
*/
|
|
12
|
-
/** Matches a typl binding: `$Name
|
|
13
|
-
const BINDING_RE =
|
|
12
|
+
/** Matches a typl binding: `$Name :`, `$a.b :` (published), `$.x :` (relative). */
|
|
13
|
+
const BINDING_RE = /^\$\.?[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z0-9_]+)*\s*:/;
|
|
14
14
|
/** Matches a typl typedef: `type Name =`. */
|
|
15
15
|
const TYPEDEF_RE = /^type\s+[A-Za-z_][A-Za-z0-9_]*\s*=/;
|
|
16
16
|
/** True when `text` begins a typl binding or typedef declaration. */
|
package/esm/typl/registry.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface RegistryTypedef {
|
|
|
25
25
|
/**
|
|
26
26
|
* Corpus-wide index. Each $Name (and each typedef name) maps to ALL
|
|
27
27
|
* declarations found — collisions are NOT collapsed; the validator
|
|
28
|
-
* surfaces
|
|
28
|
+
* surfaces dotted-name (published) collisions via TYPL-009 (#723).
|
|
29
29
|
*/
|
|
30
30
|
export interface TypeRegistry {
|
|
31
31
|
/** Keyed by $Name (including leading `$`). */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module typl/resolve
|
|
3
|
+
*
|
|
4
|
+
* typl instantiation of the DSL-agnostic base-resolution engine
|
|
5
|
+
* (core/decl/resolve, #722). Published typl symbols are dotted paths
|
|
6
|
+
* (`$powertrain.brake.pedal_position`, ≥2 segments); relative refs keep
|
|
7
|
+
* the sigil and mark relativity with a leading dot (`$.pedal_position`).
|
|
8
|
+
* `$` is a *sigil* (part of the token), not a URI scheme — unlike uxil's
|
|
9
|
+
* `ux:`, it stays on relative forms. See the S5 design spec
|
|
10
|
+
* (docs/wip/2026-07-04-typl-published-tier-design.md, D2–D5).
|
|
11
|
+
*/
|
|
12
|
+
import type { RefOps } from "../decl/mod.js";
|
|
13
|
+
/**
|
|
14
|
+
* True for `$.x` / `$.a.b` — a relative published ref. The first segment
|
|
15
|
+
* must start with a letter/underscore (matching `BINDING_RE` in
|
|
16
|
+
* recognize.ts and {@linkcode isPublishedTyplName}'s first-segment rule);
|
|
17
|
+
* a digit-leading first segment would be citable here but never
|
|
18
|
+
* declarable, a permanent dead end (#754).
|
|
19
|
+
*/
|
|
20
|
+
export declare function isRelativeTyplName(name: string): boolean;
|
|
21
|
+
/** True for `$a.b` / `$a.b.c` — an absolute published name (≥2 segments). */
|
|
22
|
+
export declare function isPublishedTyplName(name: string): boolean;
|
|
23
|
+
/** Strip the `$` sigil: `$powertrain.brake` → `powertrain.brake`. */
|
|
24
|
+
export declare function typlPathOf(name: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Engine parameterization for typl: absolute = the sigil is followed by
|
|
27
|
+
* an identifier character; join = base path + relative segments with the
|
|
28
|
+
* sigil restored (`join("powertrain.brake", "$.x")` → `$powertrain.brake.x`).
|
|
29
|
+
*/
|
|
30
|
+
export declare const TYPL_REF_OPS: RefOps;
|
|
31
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/typl/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,6EAA6E;AAC7E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,qEAAqE;AACrE,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,MAG1B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True for `$.x` / `$.a.b` — a relative published ref. The first segment
|
|
3
|
+
* must start with a letter/underscore (matching `BINDING_RE` in
|
|
4
|
+
* recognize.ts and {@linkcode isPublishedTyplName}'s first-segment rule);
|
|
5
|
+
* a digit-leading first segment would be citable here but never
|
|
6
|
+
* declarable, a permanent dead end (#754).
|
|
7
|
+
*/
|
|
8
|
+
export function isRelativeTyplName(name) {
|
|
9
|
+
return /^\$\.[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z0-9_]+)*$/.test(name);
|
|
10
|
+
}
|
|
11
|
+
/** True for `$a.b` / `$a.b.c` — an absolute published name (≥2 segments). */
|
|
12
|
+
export function isPublishedTyplName(name) {
|
|
13
|
+
return /^\$[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z0-9_]+)+$/.test(name);
|
|
14
|
+
}
|
|
15
|
+
/** Strip the `$` sigil: `$powertrain.brake` → `powertrain.brake`. */
|
|
16
|
+
export function typlPathOf(name) {
|
|
17
|
+
return name.startsWith("$") ? name.slice(1) : name;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Engine parameterization for typl: absolute = the sigil is followed by
|
|
21
|
+
* an identifier character; join = base path + relative segments with the
|
|
22
|
+
* sigil restored (`join("powertrain.brake", "$.x")` → `$powertrain.brake.x`).
|
|
23
|
+
*/
|
|
24
|
+
export const TYPL_REF_OPS = {
|
|
25
|
+
isAbsolute: (ref) => /^\$[A-Za-z_]/.test(ref),
|
|
26
|
+
join: (base, ref) => `$${base}.${ref.slice(2)}`,
|
|
27
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module typl/table
|
|
3
|
+
*
|
|
4
|
+
* Table surface adapter (#724 / S6) — recognises typl declarations authored
|
|
5
|
+
* as GFM table data rows. A thin wrapper over the shared declaration-surface
|
|
6
|
+
* machinery (core/decl): each data row `$name | kind shape | description` is
|
|
7
|
+
* reduced to the declaration source `$name : kind shape` (the `description`
|
|
8
|
+
* column is human documentation and is dropped, since a typl binding carries
|
|
9
|
+
* no description), then parsed like any other surface. Rows whose first cell
|
|
10
|
+
* is not a typl name — or whose shape cell is empty — are skipped, so mixed
|
|
11
|
+
* tables and malformed rows contribute nothing.
|
|
12
|
+
*
|
|
13
|
+
* A table's `Table:` caption may carry a base: {@linkcode typlTableCaptionBase}
|
|
14
|
+
* reads an absolute typl name out of the caption text, which
|
|
15
|
+
* {@linkcode extractTyplTable}'s caller (assemble) hands to the entry-local
|
|
16
|
+
* resolver (S4) so relative rows (`$.x`) resolve against it. Only bindings are
|
|
17
|
+
* expressed in tables; typedefs (`type X = …`) keep their fence / bullet /
|
|
18
|
+
* inline surfaces.
|
|
19
|
+
*
|
|
20
|
+
* See ADR-019.
|
|
21
|
+
*/
|
|
22
|
+
import type { BodyBlock } from "../ast/nodes.js";
|
|
23
|
+
import { type RowRecognizer, type TableRowDeclaration } from "../decl/mod.js";
|
|
24
|
+
/** A single typl table-row declaration: `{ source, range, captionText? }`. */
|
|
25
|
+
export type TyplTableExtraction = TableRowDeclaration;
|
|
26
|
+
/**
|
|
27
|
+
* Reduce a table data row to a typl declaration source, or `undefined` to
|
|
28
|
+
* skip the row. The first cell supplies the binding name (`$name`), the
|
|
29
|
+
* second the kind + shape; the remaining cells (a description) are dropped.
|
|
30
|
+
* Returns `undefined` when the reconstructed `$name : kind shape` is not a
|
|
31
|
+
* typl declaration (non-typl row) or when either required cell is empty
|
|
32
|
+
* (malformed row).
|
|
33
|
+
*/
|
|
34
|
+
export declare const typlTableRowRecognizer: RowRecognizer;
|
|
35
|
+
/**
|
|
36
|
+
* Parse a base path out of a `Table:` caption's text, or `undefined` when
|
|
37
|
+
* the caption carries no typl base. The base is the caption's leading
|
|
38
|
+
* whitespace-delimited token when it is an absolute typl name; a trailing
|
|
39
|
+
* description (`$powertrain.brake — brake signals`) is ignored. Relative
|
|
40
|
+
* names (`$.x`) are not bases — they would need a base themselves — and a
|
|
41
|
+
* non-typl caption yields no base. The `$` sigil is stripped, matching the
|
|
42
|
+
* base paths the entry-local resolver joins against.
|
|
43
|
+
*/
|
|
44
|
+
export declare function typlTableCaptionBase(captionText: string): string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Walk a body AST and return a declaration for every table data row that is
|
|
47
|
+
* a typl binding, in source order (recursing into list-nested tables).
|
|
48
|
+
* Delegates traversal to {@linkcode extractTableDeclarations}; each result
|
|
49
|
+
* carries the enclosing table's `captionText` when present.
|
|
50
|
+
*/
|
|
51
|
+
export declare function extractTyplTable(blocks: readonly BodyBlock[]): readonly TyplTableExtraction[];
|
|
52
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/typl/table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AAIxB,8EAA8E;AAC9E,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAUtD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAMpC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAGpB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,SAAS,EAAE,GAC3B,SAAS,mBAAmB,EAAE,CAEhC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module typl/table
|
|
3
|
+
*
|
|
4
|
+
* Table surface adapter (#724 / S6) — recognises typl declarations authored
|
|
5
|
+
* as GFM table data rows. A thin wrapper over the shared declaration-surface
|
|
6
|
+
* machinery (core/decl): each data row `$name | kind shape | description` is
|
|
7
|
+
* reduced to the declaration source `$name : kind shape` (the `description`
|
|
8
|
+
* column is human documentation and is dropped, since a typl binding carries
|
|
9
|
+
* no description), then parsed like any other surface. Rows whose first cell
|
|
10
|
+
* is not a typl name — or whose shape cell is empty — are skipped, so mixed
|
|
11
|
+
* tables and malformed rows contribute nothing.
|
|
12
|
+
*
|
|
13
|
+
* A table's `Table:` caption may carry a base: {@linkcode typlTableCaptionBase}
|
|
14
|
+
* reads an absolute typl name out of the caption text, which
|
|
15
|
+
* {@linkcode extractTyplTable}'s caller (assemble) hands to the entry-local
|
|
16
|
+
* resolver (S4) so relative rows (`$.x`) resolve against it. Only bindings are
|
|
17
|
+
* expressed in tables; typedefs (`type X = …`) keep their fence / bullet /
|
|
18
|
+
* inline surfaces.
|
|
19
|
+
*
|
|
20
|
+
* See ADR-019.
|
|
21
|
+
*/
|
|
22
|
+
import { extractTableDeclarations, } from "../decl/mod.js";
|
|
23
|
+
import { isTyplDeclarationText } from "./recognize.js";
|
|
24
|
+
import { typlPathOf } from "./resolve.js";
|
|
25
|
+
/**
|
|
26
|
+
* An absolute typl name (sigil + ≥1 dotted segments, no leading dot): the
|
|
27
|
+
* only shape a `Table:` caption base may take. Mirrors `isPublishedTyplName`
|
|
28
|
+
* but also admits a single-segment name (`$vehicle`) — a caption base need
|
|
29
|
+
* not be dotted.
|
|
30
|
+
*/
|
|
31
|
+
const ABSOLUTE_TYPL_NAME_RE = /^\$[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z0-9_]+)*$/;
|
|
32
|
+
/**
|
|
33
|
+
* Reduce a table data row to a typl declaration source, or `undefined` to
|
|
34
|
+
* skip the row. The first cell supplies the binding name (`$name`), the
|
|
35
|
+
* second the kind + shape; the remaining cells (a description) are dropped.
|
|
36
|
+
* Returns `undefined` when the reconstructed `$name : kind shape` is not a
|
|
37
|
+
* typl declaration (non-typl row) or when either required cell is empty
|
|
38
|
+
* (malformed row).
|
|
39
|
+
*/
|
|
40
|
+
export const typlTableRowRecognizer = (cells) => {
|
|
41
|
+
const name = cells[0]?.trim() ?? "";
|
|
42
|
+
const decl = cells[1]?.trim() ?? "";
|
|
43
|
+
if (name === "" || decl === "")
|
|
44
|
+
return undefined;
|
|
45
|
+
const source = `${name} : ${decl}`;
|
|
46
|
+
return isTyplDeclarationText(source) ? source : undefined;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Parse a base path out of a `Table:` caption's text, or `undefined` when
|
|
50
|
+
* the caption carries no typl base. The base is the caption's leading
|
|
51
|
+
* whitespace-delimited token when it is an absolute typl name; a trailing
|
|
52
|
+
* description (`$powertrain.brake — brake signals`) is ignored. Relative
|
|
53
|
+
* names (`$.x`) are not bases — they would need a base themselves — and a
|
|
54
|
+
* non-typl caption yields no base. The `$` sigil is stripped, matching the
|
|
55
|
+
* base paths the entry-local resolver joins against.
|
|
56
|
+
*/
|
|
57
|
+
export function typlTableCaptionBase(captionText) {
|
|
58
|
+
const first = captionText.trim().split(/\s+/)[0] ?? "";
|
|
59
|
+
return ABSOLUTE_TYPL_NAME_RE.test(first) ? typlPathOf(first) : undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Walk a body AST and return a declaration for every table data row that is
|
|
63
|
+
* a typl binding, in source order (recursing into list-nested tables).
|
|
64
|
+
* Delegates traversal to {@linkcode extractTableDeclarations}; each result
|
|
65
|
+
* carries the enclosing table's `captionText` when present.
|
|
66
|
+
*/
|
|
67
|
+
export function extractTyplTable(blocks) {
|
|
68
|
+
return extractTableDeclarations(blocks, typlTableRowRecognizer);
|
|
69
|
+
}
|
package/esm/typl/validator.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module typl/validator
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Published tier (#723): corpus-wide declared-once enforcement for dotted
|
|
5
|
+
* ($published) names (TYPL-009) and citation resolution for bare
|
|
6
|
+
* published-shaped code spans (TYPL-010 relative-with-no-root, TYPL-011
|
|
7
|
+
* undeclared symbol) — plus intra-entry undefined-typedef-reference checks
|
|
6
8
|
* (TYPL-005).
|
|
7
9
|
*
|
|
10
|
+
* TYPL-002 (kind mismatch) and TYPL-003 (shape mismatch) are retired: the
|
|
11
|
+
* v1 cross-entry collision rule they implemented applied to plain (entry-
|
|
12
|
+
* local) names, which the published tier deliberately leaves unchecked
|
|
13
|
+
* across entries — only dotted, corpus-wide names are declared exactly
|
|
14
|
+
* once. The codes remain in the catalogue (deprecated) but this validator
|
|
15
|
+
* never emits them.
|
|
16
|
+
*
|
|
8
17
|
* Per the v1 entry-local scope rule, typedef references are resolved
|
|
9
18
|
* within the binding's own entry — references to typedefs declared in
|
|
10
19
|
* other entries are TYPL-005 errors.
|
|
@@ -17,9 +26,19 @@ import { type TypeRegistry } from "./registry.js";
|
|
|
17
26
|
/**
|
|
18
27
|
* Validate the typl declarations across all entries.
|
|
19
28
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
29
|
+
* Upstream entries (federated-upstream epic) are typl-inert: they are
|
|
30
|
+
* excluded from the working set before the registry is built, so their
|
|
31
|
+
* declarations neither emit their own TYPL diagnostics nor count toward
|
|
32
|
+
* the corpus-wide declared-once (TYPL-009) accounting — a project entry
|
|
33
|
+
* re-declaring a dotted name an upstream also publishes is not a
|
|
34
|
+
* collision. Cross-repo typl resolution is out of scope for this slice
|
|
35
|
+
* (see ADR-019 / federated-upstream design §4.7); this is the same #771
|
|
36
|
+
* `emittableEntries` partition the validator orchestrators apply.
|
|
37
|
+
*
|
|
38
|
+
* Returns the built corpus registry (scoped to non-upstream entries)
|
|
39
|
+
* plus any diagnostics. The registry is returned even when diagnostics
|
|
40
|
+
* are present so callers (compiler, LSP) can use it for navigation and
|
|
41
|
+
* emission.
|
|
23
42
|
*/
|
|
24
43
|
export declare function validateTypl(entries: readonly Entry[]): {
|
|
25
44
|
registry: TypeRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../src/typl/validator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../src/typl/validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,OAAO,EAAS,MAAM,UAAU,CAAC;AAI/C,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGrE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,SAAS,KAAK,EAAE,GACxB;IAAE,QAAQ,EAAE,YAAY,CAAC;IAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,CAoGhE;AA0CD,YAAY,EAAE,OAAO,EAAE,CAAC"}
|