@driftsys/markspec 0.10.3 → 0.11.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 +2 -2
- 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 +16 -7
- package/esm/config/markspec.d.ts +38 -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/gates/mod.d.ts +13 -2
- package/esm/gates/mod.d.ts.map +1 -1
- package/esm/gates/mod.js +38 -11
- package/esm/lint/runner.d.ts.map +1 -1
- package/esm/lint/runner.js +3 -1
- 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 +41 -3
- 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 +10 -3
- package/esm/lock/mod.d.ts.map +1 -1
- package/esm/lock/mod.js +7 -1
- 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 +16 -8
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +15 -5
- package/esm/model/mod.d.ts +93 -28
- package/esm/model/mod.d.ts.map +1 -1
- package/esm/model/mod.js +66 -13
- package/esm/model/profile.d.ts +13 -0
- package/esm/model/profile.d.ts.map +1 -1
- package/esm/parser/markdown.d.ts.map +1 -1
- package/esm/parser/markdown.js +7 -51
- 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/reporter/mod.d.ts +11 -0
- package/esm/reporter/mod.d.ts.map +1 -1
- package/esm/reporter/mod.js +19 -8
- 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/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/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.map +1 -1
- package/esm/validator/corpus.js +40 -17
- 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.map +1 -1
- package/esm/validator/mod.js +28 -15
- package/esm/validator/pipeline.d.ts +11 -1
- package/esm/validator/pipeline.d.ts.map +1 -1
- package/esm/validator/pipeline.js +68 -18
- 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/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 +15 -6
- package/script/config/markspec.d.ts +38 -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/gates/mod.d.ts +13 -2
- package/script/gates/mod.d.ts.map +1 -1
- package/script/gates/mod.js +37 -10
- package/script/lint/runner.d.ts.map +1 -1
- package/script/lint/runner.js +3 -1
- 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 +41 -3
- 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 +10 -3
- package/script/lock/mod.d.ts.map +1 -1
- package/script/lock/mod.js +16 -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 +16 -8
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +40 -7
- package/script/model/mod.d.ts +93 -28
- package/script/model/mod.d.ts.map +1 -1
- package/script/model/mod.js +70 -14
- package/script/model/profile.d.ts +13 -0
- package/script/model/profile.d.ts.map +1 -1
- package/script/parser/markdown.d.ts.map +1 -1
- package/script/parser/markdown.js +6 -50
- 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/reporter/mod.d.ts +11 -0
- package/script/reporter/mod.d.ts.map +1 -1
- package/script/reporter/mod.js +18 -7
- 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/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/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.map +1 -1
- package/script/validator/corpus.js +39 -16
- 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.map +1 -1
- package/script/validator/mod.js +27 -14
- package/script/validator/pipeline.d.ts +11 -1
- package/script/validator/pipeline.d.ts.map +1 -1
- package/script/validator/pipeline.js +67 -17
- 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
|
@@ -8,14 +8,19 @@
|
|
|
8
8
|
* attributes:
|
|
9
9
|
* - Required (MSL-L001)
|
|
10
10
|
* - Cardinality bounds (MSL-L002 upper / MSL-L003 lower)
|
|
11
|
-
* - Target match against the rule's target matchers (MSL-L004
|
|
12
|
-
*
|
|
11
|
+
* - Target match against the rule's target matchers (MSL-L004; skipped
|
|
12
|
+
* when the resolved target is an upstream entry — its `type` comes from
|
|
13
|
+
* the upstream's own profile, a vocabulary the consumer never
|
|
14
|
+
* re-classifies against, federated upstream slice 4)
|
|
15
|
+
* - Target existence (MSL-L006, warning; scheme-qualified URIs exempt) —
|
|
16
|
+
* or MSL-T014 (warning) instead of MSL-L006 when the caller declares a
|
|
17
|
+
* non-empty upstream set (federated upstream, slice 4)
|
|
13
18
|
*
|
|
14
19
|
* Referenced entries are skipped entirely — the profile manifest parser
|
|
15
20
|
* rejects `referenced.traceability` at load time, so referenced entries
|
|
16
21
|
* never have declared outgoing links.
|
|
17
22
|
*/
|
|
18
|
-
import { URI_SCHEME_RE, } from "../model/mod.js";
|
|
23
|
+
import { isUpstreamEntry, URI_SCHEME_RE, } from "../model/mod.js";
|
|
19
24
|
/**
|
|
20
25
|
* Effective trace rules for an entry: type-scope rules only.
|
|
21
26
|
* Type-scope rules are applied only when the entry is classified.
|
|
@@ -71,8 +76,15 @@ export function matchesAnyTarget(target, matchers) {
|
|
|
71
76
|
* @param graph - Index keyed by entry.id (ULID) for target lookup
|
|
72
77
|
* @param byDisplayId - Index keyed by entry.displayId for target lookup
|
|
73
78
|
* (issue #593 — display-ID targets). Defaults to empty.
|
|
79
|
+
* @param declaredUpstreamIds - Upstream ids the downstream project declares
|
|
80
|
+
* via `project.yaml` `dependencies:`/`references:`
|
|
81
|
+
* (federated upstream, slice 4). When non-empty, an
|
|
82
|
+
* otherwise-unresolved trace target fires MSL-T014
|
|
83
|
+
* (warning), naming the searched upstream set, instead
|
|
84
|
+
* of the generic MSL-L006. Defaults to empty — MSL-L006
|
|
85
|
+
* unchanged.
|
|
74
86
|
*/
|
|
75
|
-
export function validateTraceabilityForEntry(entry, profile, graph, byDisplayId = new Map()) {
|
|
87
|
+
export function validateTraceabilityForEntry(entry, profile, graph, byDisplayId = new Map(), declaredUpstreamIds = []) {
|
|
76
88
|
const diagnostics = [];
|
|
77
89
|
if (entry.shape !== "Authored")
|
|
78
90
|
return diagnostics;
|
|
@@ -122,6 +134,20 @@ export function validateTraceabilityForEntry(entry, profile, graph, byDisplayId
|
|
|
122
134
|
// graph targets, so they are not "broken references".
|
|
123
135
|
if (URI_SCHEME_RE.test(v))
|
|
124
136
|
continue;
|
|
137
|
+
// Federated upstream (slice 4): when the project declares an
|
|
138
|
+
// upstream set, an unresolved target replaces MSL-L006 with
|
|
139
|
+
// MSL-T014, naming the searched set — the same target fires
|
|
140
|
+
// exactly one of the two codes, never both.
|
|
141
|
+
if (declaredUpstreamIds.length > 0) {
|
|
142
|
+
diagnostics.push({
|
|
143
|
+
code: "MSL-T014",
|
|
144
|
+
severity: "warning",
|
|
145
|
+
message: `${entry.displayId}: link '${linkName}' target '${v}' not ` +
|
|
146
|
+
`found in project or upstreams: ${declaredUpstreamIds.join(", ")}`,
|
|
147
|
+
location: entry.location,
|
|
148
|
+
});
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
125
151
|
diagnostics.push({
|
|
126
152
|
code: "MSL-L006",
|
|
127
153
|
severity: "warning",
|
|
@@ -131,6 +157,15 @@ export function validateTraceabilityForEntry(entry, profile, graph, byDisplayId
|
|
|
131
157
|
});
|
|
132
158
|
continue;
|
|
133
159
|
}
|
|
160
|
+
// Federated upstream (slice 4): an upstream target's `type` is
|
|
161
|
+
// classified by the upstream's OWN profile — a foreign vocabulary the
|
|
162
|
+
// consumer's profile cannot map (design §4.5/D6: the consumer never
|
|
163
|
+
// re-classifies). The link still resolves (no L006/T014 — handled
|
|
164
|
+
// above); only the consumer's own target-type enforcement is skipped
|
|
165
|
+
// for this target. A project-authored target with a mismatched type
|
|
166
|
+
// still fires MSL-L004 below.
|
|
167
|
+
if (isUpstreamEntry(target))
|
|
168
|
+
continue;
|
|
134
169
|
if (!matchesAnyTarget(target, rule.target)) {
|
|
135
170
|
diagnostics.push({
|
|
136
171
|
code: "MSL-L004",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/validator/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAEhB,KAAK,EAEN,MAAM,iBAAiB,CAAC;AAwBzB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,KAAK,GACX,SAAS,UAAU,EAAE,CAWvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,KAAK,GACX,SAAS,UAAU,EAAE,CAiBvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,gBAAgB,GAAG,IAAI,GAC/B,SAAS,UAAU,EAAE,CAwBvB;AAED,4CAA4C;AAC5C,MAAM,WAAW,cAAc;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;CAC7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAA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mB;IAClC,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;CAC7C;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,OAAO,EAAE,gBAAgB,GACxB,mBAAmB,CAkCrB"}
|
package/esm/validator/types.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* `Type:` trailer attribute or by display-ID pattern matching. Un-classified
|
|
8
8
|
* entries in a strict profile (types declared) produce MSL-T003.
|
|
9
9
|
*/
|
|
10
|
-
import { CORE_TYPES } from "../model/mod.js";
|
|
10
|
+
import { CORE_TYPES, isUpstreamEntry } from "../model/mod.js";
|
|
11
11
|
import { tryCompileDisplayIdPattern } from "./pattern.js";
|
|
12
12
|
import { explicitType, resolvedCoreType, resolvedCoreTypeWithProvenance, } from "./type_resolution.js";
|
|
13
13
|
/**
|
|
@@ -213,6 +213,16 @@ export function classifyEntriesStage(entries, profile) {
|
|
|
213
213
|
const diagnostics = [];
|
|
214
214
|
const out = [];
|
|
215
215
|
for (const entry of entries) {
|
|
216
|
+
// Deliberately NOT the #771 emittableEntries partition: this stage is
|
|
217
|
+
// a TRANSFORM, not an emit loop — upstream entries must pass through
|
|
218
|
+
// into the output (they stay in finalEntries as resolution targets,
|
|
219
|
+
// in original order for first-entry-wins ties), and their `type`
|
|
220
|
+
// comes from their OWN compile (design §4.5/D6) — the consumer never
|
|
221
|
+
// re-classifies. No MSL-T001..T004 emit, no type overwrite.
|
|
222
|
+
if (isUpstreamEntry(entry)) {
|
|
223
|
+
out.push(entry);
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
216
226
|
const classified = classifyEntry(entry, profile);
|
|
217
227
|
diagnostics.push(...classified.diagnostics);
|
|
218
228
|
if (classified.type !== undefined) {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module validator/uxil_family
|
|
3
|
+
*
|
|
4
|
+
* The UXIL-0xx diagnostics family orchestrator (S9 #727). Bridges S8's
|
|
5
|
+
* uxil compiler into the profile-aware validation surfaces (`runPipeline`
|
|
6
|
+
* → `markspec check`; LSP `WorkspaceIndex.validateAll`).
|
|
7
|
+
*
|
|
8
|
+
* Gate: a profile type carrying `declares: ux-surface` (ADR-009: the
|
|
9
|
+
* mechanism is core, the designation is profile policy). With no
|
|
10
|
+
* designation anywhere in the chain the family is fully inert — uxil-
|
|
11
|
+
* looking code spans stay opaque (epic S1's Tier-1 guarantee), so a
|
|
12
|
+
* `.gitignore`-style prose bullet can never draw a diagnostic.
|
|
13
|
+
*
|
|
14
|
+
* With a designation:
|
|
15
|
+
* - entries of a declaring type run the full S8 validation (structure,
|
|
16
|
+
* vocabulary, corpus registry);
|
|
17
|
+
* - `ux:` citations are validated from EVERY non-upstream entry —
|
|
18
|
+
* journeys, tests, and specs cite surfaces from any type;
|
|
19
|
+
* - an unambiguous root declaration (`ux:… : kind` span) in a
|
|
20
|
+
* non-declaring entry is UXIL-023. Element/child bullets (`/`-led,
|
|
21
|
+
* `.`-led) in non-declaring entries stay opaque — they are ambiguous
|
|
22
|
+
* with ordinary prose code spans, deliberately.
|
|
23
|
+
*
|
|
24
|
+
* Upstream entries are uxil-inert (the #771 `emittableEntries` partition,
|
|
25
|
+
* mirroring validateTypl). Entries are gated by `entry.type` when the
|
|
26
|
+
* pipeline's Stage 2 already classified them, else by `classifyEntry` —
|
|
27
|
+
* so the LSP path (which never runs Stage 2) gates identically; the
|
|
28
|
+
* classification diagnostics are deliberately dropped here (the pipeline
|
|
29
|
+
* owns emitting those).
|
|
30
|
+
*/
|
|
31
|
+
import type { Diagnostic, EffectiveProfile, Entry } from "../model/mod.js";
|
|
32
|
+
/**
|
|
33
|
+
* Names of the profile types designated as uxil declaring entry types
|
|
34
|
+
* (`declares: ux-surface`). Empty when `profile` is `null` or no tier
|
|
35
|
+
* designates one — the family's inertness gate.
|
|
36
|
+
*/
|
|
37
|
+
export declare function uxilDeclaringTypes(profile: EffectiveProfile | null): ReadonlySet<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Run the UXIL-0xx family over `entries`. Returns file-anchored core
|
|
40
|
+
* diagnostics; `[]` when the gate is closed (see module doc).
|
|
41
|
+
*/
|
|
42
|
+
export declare function validateUxilFamily(entries: readonly Entry[], profile: EffectiveProfile | null): readonly Diagnostic[];
|
|
43
|
+
//# sourceMappingURL=uxil_family.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uxil_family.d.ts","sourceRoot":"","sources":["../../src/validator/uxil_family.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAS3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,gBAAgB,GAAG,IAAI,GAC/B,WAAW,CAAC,MAAM,CAAC,CAOrB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,OAAO,EAAE,gBAAgB,GAAG,IAAI,GAC/B,SAAS,UAAU,EAAE,CA8BvB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { emittableEntries } from "../model/mod.js";
|
|
2
|
+
import { extractUxRootSpans, uxilDiagnosticAt, validateUxil, } from "../uxil/mod.js";
|
|
3
|
+
import { classifyEntry } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Names of the profile types designated as uxil declaring entry types
|
|
6
|
+
* (`declares: ux-surface`). Empty when `profile` is `null` or no tier
|
|
7
|
+
* designates one — the family's inertness gate.
|
|
8
|
+
*/
|
|
9
|
+
export function uxilDeclaringTypes(profile) {
|
|
10
|
+
const out = new Set();
|
|
11
|
+
if (profile === null)
|
|
12
|
+
return out;
|
|
13
|
+
for (const [name, td] of profile.types) {
|
|
14
|
+
if (td.value.declares?.value === "ux-surface")
|
|
15
|
+
out.add(name);
|
|
16
|
+
}
|
|
17
|
+
return out;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Run the UXIL-0xx family over `entries`. Returns file-anchored core
|
|
21
|
+
* diagnostics; `[]` when the gate is closed (see module doc).
|
|
22
|
+
*/
|
|
23
|
+
export function validateUxilFamily(entries, profile) {
|
|
24
|
+
const declaring = uxilDeclaringTypes(profile);
|
|
25
|
+
if (declaring.size === 0)
|
|
26
|
+
return [];
|
|
27
|
+
const local = emittableEntries(entries);
|
|
28
|
+
const declaringEntries = [];
|
|
29
|
+
const otherEntries = [];
|
|
30
|
+
const typeOf = new Map();
|
|
31
|
+
for (const e of local) {
|
|
32
|
+
const type = e.type ?? classifyEntry(e, profile).type;
|
|
33
|
+
typeOf.set(e, type);
|
|
34
|
+
if (type !== undefined && declaring.has(type))
|
|
35
|
+
declaringEntries.push(e);
|
|
36
|
+
else
|
|
37
|
+
otherEntries.push(e);
|
|
38
|
+
}
|
|
39
|
+
const diagnostics = [];
|
|
40
|
+
// UXIL-023 — an unambiguous root declaration outside a declaring type.
|
|
41
|
+
for (const e of otherEntries) {
|
|
42
|
+
for (const span of extractUxRootSpans(e.bodyTokens)) {
|
|
43
|
+
diagnostics.push(uxilDiagnosticAt("UXIL-023", {
|
|
44
|
+
entry: e.displayId,
|
|
45
|
+
type: typeOf.get(e) ?? "unclassified",
|
|
46
|
+
}, span.location));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const result = validateUxil(declaringEntries, { citationEntries: local });
|
|
50
|
+
diagnostics.push(...result.diagnostics);
|
|
51
|
+
return diagnostics;
|
|
52
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module compiler/deserialize
|
|
3
|
+
*
|
|
4
|
+
* Hydration of compiled-JSON snapshots back into core {@linkcode Entry}
|
|
5
|
+
* values — the inverse of `./schema.ts`. Consumed by the upstream corpus
|
|
6
|
+
* loader (`core/upstream/`): a dependency's or reference's published
|
|
7
|
+
* compile output is deserialized here before joining the consumer's graph.
|
|
8
|
+
*
|
|
9
|
+
* Pure module: no I/O, no Deno APIs.
|
|
10
|
+
*/
|
|
11
|
+
import type { Diagnostic, Entry } from "../model/mod.js";
|
|
12
|
+
import type { SerializedEntry } from "./schema.js";
|
|
13
|
+
/**
|
|
14
|
+
* Rebuild an {@linkcode Entry} from its serialized wire form. Inverse of
|
|
15
|
+
* `serializeEntry`: restores `typedAttributes` from a plain record to a
|
|
16
|
+
* `Map` (absent → empty). All other fields — including `origin` — pass
|
|
17
|
+
* through verbatim.
|
|
18
|
+
*
|
|
19
|
+
* `type` and `id` are re-keyed explicitly (rather than left to the
|
|
20
|
+
* `...rest` spread) to restore field-presence parity with a freshly
|
|
21
|
+
* parsed {@linkcode Entry}: the parser always includes both as own
|
|
22
|
+
* properties (`type` is `undefined` when no profile classified the
|
|
23
|
+
* entry; `id` is `undefined` on Reference-shaped entries with no `Id:`
|
|
24
|
+
* trailer), but `JSON.stringify` drops `undefined`-valued keys
|
|
25
|
+
* entirely, so the wire form loses the keys when it round-trips
|
|
26
|
+
* through `JSON.parse`. Without this, `deserializeEntry(wire)` would
|
|
27
|
+
* be missing those keys while the original entry still carries them
|
|
28
|
+
* (with value `undefined`), breaking the deep-equality round-trip
|
|
29
|
+
* contract.
|
|
30
|
+
*/
|
|
31
|
+
export declare function deserializeEntry(s: SerializedEntry): Entry;
|
|
32
|
+
/** Result of {@linkcode extractSerializedEntries}. */
|
|
33
|
+
export interface ExtractedEntries {
|
|
34
|
+
readonly entries: SerializedEntry[];
|
|
35
|
+
readonly diagnostics: Diagnostic[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Reject a snapshot whose schema versions don't match this build — a
|
|
39
|
+
* skewed snapshot must never silently misparse. Returns the diagnostic to
|
|
40
|
+
* publish, or `undefined` when the snapshot is compatible.
|
|
41
|
+
*/
|
|
42
|
+
export declare function checkSnapshotSchema(manifest: unknown, manifestPath: string): Diagnostic | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Follow the manifest's `entries` block and return the raw serialized
|
|
45
|
+
* entries. `readSnapshotFile` resolves a path relative to the snapshot
|
|
46
|
+
* directory (injected — this module does no I/O).
|
|
47
|
+
*/
|
|
48
|
+
export declare function extractSerializedEntries(manifest: unknown, readSnapshotFile: (relPath: string) => string | undefined, manifestPath: string): ExtractedEntries;
|
|
49
|
+
//# sourceMappingURL=deserialize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize.d.ts","sourceRoot":"","sources":["../../src/compiler/deserialize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,eAAe,GAAG,KAAK,CAQ1D;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,MAAM,GACnB,UAAU,GAAG,SAAS,CAwBxB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,OAAO,EACjB,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,EACzD,YAAY,EAAE,MAAM,GACnB,gBAAgB,CAsDlB"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module compiler/deserialize
|
|
4
|
+
*
|
|
5
|
+
* Hydration of compiled-JSON snapshots back into core {@linkcode Entry}
|
|
6
|
+
* values — the inverse of `./schema.ts`. Consumed by the upstream corpus
|
|
7
|
+
* loader (`core/upstream/`): a dependency's or reference's published
|
|
8
|
+
* compile output is deserialized here before joining the consumer's graph.
|
|
9
|
+
*
|
|
10
|
+
* Pure module: no I/O, no Deno APIs.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.deserializeEntry = deserializeEntry;
|
|
14
|
+
exports.checkSnapshotSchema = checkSnapshotSchema;
|
|
15
|
+
exports.extractSerializedEntries = extractSerializedEntries;
|
|
16
|
+
const mod_js_1 = require("../model/mod.js");
|
|
17
|
+
const manifest_js_1 = require("./manifest.js");
|
|
18
|
+
/**
|
|
19
|
+
* Rebuild an {@linkcode Entry} from its serialized wire form. Inverse of
|
|
20
|
+
* `serializeEntry`: restores `typedAttributes` from a plain record to a
|
|
21
|
+
* `Map` (absent → empty). All other fields — including `origin` — pass
|
|
22
|
+
* through verbatim.
|
|
23
|
+
*
|
|
24
|
+
* `type` and `id` are re-keyed explicitly (rather than left to the
|
|
25
|
+
* `...rest` spread) to restore field-presence parity with a freshly
|
|
26
|
+
* parsed {@linkcode Entry}: the parser always includes both as own
|
|
27
|
+
* properties (`type` is `undefined` when no profile classified the
|
|
28
|
+
* entry; `id` is `undefined` on Reference-shaped entries with no `Id:`
|
|
29
|
+
* trailer), but `JSON.stringify` drops `undefined`-valued keys
|
|
30
|
+
* entirely, so the wire form loses the keys when it round-trips
|
|
31
|
+
* through `JSON.parse`. Without this, `deserializeEntry(wire)` would
|
|
32
|
+
* be missing those keys while the original entry still carries them
|
|
33
|
+
* (with value `undefined`), breaking the deep-equality round-trip
|
|
34
|
+
* contract.
|
|
35
|
+
*/
|
|
36
|
+
function deserializeEntry(s) {
|
|
37
|
+
const { typedAttributes, type, id, ...rest } = s;
|
|
38
|
+
return {
|
|
39
|
+
...rest,
|
|
40
|
+
type,
|
|
41
|
+
id,
|
|
42
|
+
typedAttributes: new Map(Object.entries(typedAttributes ?? {})),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Reject a snapshot whose schema versions don't match this build — a
|
|
47
|
+
* skewed snapshot must never silently misparse. Returns the diagnostic to
|
|
48
|
+
* publish, or `undefined` when the snapshot is compatible.
|
|
49
|
+
*/
|
|
50
|
+
function checkSnapshotSchema(manifest, manifestPath) {
|
|
51
|
+
const m = manifest;
|
|
52
|
+
if (m?.markspecSchemaVersion === manifest_js_1.MANIFEST_SCHEMA_VERSION &&
|
|
53
|
+
m?.generator?.coreSchema === mod_js_1.CORE_SCHEMA_VERSION) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
code: "UPSTREAM-SNAPSHOT-001",
|
|
58
|
+
severity: "error",
|
|
59
|
+
message: `upstream snapshot schema mismatch (manifest v${String(m?.markspecSchemaVersion)}, ` +
|
|
60
|
+
`core-schema ${String(m?.generator?.coreSchema)} vs expected ${manifest_js_1.MANIFEST_SCHEMA_VERSION}/${mod_js_1.CORE_SCHEMA_VERSION}); ` +
|
|
61
|
+
`re-run 'markspec lock' with a compatible markspec version`,
|
|
62
|
+
location: { file: manifestPath, line: 1, column: 1 },
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Follow the manifest's `entries` block and return the raw serialized
|
|
67
|
+
* entries. `readSnapshotFile` resolves a path relative to the snapshot
|
|
68
|
+
* directory (injected — this module does no I/O).
|
|
69
|
+
*/
|
|
70
|
+
function extractSerializedEntries(manifest, readSnapshotFile, manifestPath) {
|
|
71
|
+
const diagnostics = [];
|
|
72
|
+
const block = manifest
|
|
73
|
+
?.entries;
|
|
74
|
+
const file = block?.file;
|
|
75
|
+
if (!file || (block?.format !== "inline" && block?.format !== "ndjson")) {
|
|
76
|
+
diagnostics.push(malformed(manifestPath, "manifest entries block missing or unknown format"));
|
|
77
|
+
return { entries: [], diagnostics };
|
|
78
|
+
}
|
|
79
|
+
const raw = readSnapshotFile(file);
|
|
80
|
+
if (raw === undefined) {
|
|
81
|
+
diagnostics.push({
|
|
82
|
+
code: "UPSTREAM-SNAPSHOT-002",
|
|
83
|
+
severity: "error",
|
|
84
|
+
message: `upstream snapshot file '${file}' is missing or unreadable; ` +
|
|
85
|
+
`run 'markspec lock' to restore the cache`,
|
|
86
|
+
location: { file: manifestPath, line: 1, column: 1 },
|
|
87
|
+
});
|
|
88
|
+
return { entries: [], diagnostics };
|
|
89
|
+
}
|
|
90
|
+
try {
|
|
91
|
+
let candidates;
|
|
92
|
+
if (block.format === "inline") {
|
|
93
|
+
const json = JSON.parse(raw);
|
|
94
|
+
candidates = Object.values(json.entries ?? {});
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
candidates = raw
|
|
98
|
+
.split("\n")
|
|
99
|
+
.filter((line) => line.trim().length > 0)
|
|
100
|
+
.map((line) => JSON.parse(line));
|
|
101
|
+
}
|
|
102
|
+
const { valid, rejectedCount } = partitionEntryCandidates(candidates);
|
|
103
|
+
if (rejectedCount > 0) {
|
|
104
|
+
diagnostics.push(malformed(manifestPath, `snapshot file '${file}' contains ${rejectedCount} non-object ` +
|
|
105
|
+
`entry value(s)`));
|
|
106
|
+
}
|
|
107
|
+
return { entries: valid, diagnostics };
|
|
108
|
+
}
|
|
109
|
+
catch (err) {
|
|
110
|
+
diagnostics.push(malformed(manifestPath, `snapshot file '${file}' is not valid JSON: ${err instanceof Error ? err.message : String(err)}`));
|
|
111
|
+
return { entries: [], diagnostics };
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Keep only candidates that are non-null, non-array plain objects — the
|
|
116
|
+
* shape a serialized entry must have. A snapshot line/value that parses
|
|
117
|
+
* as valid JSON but isn't an object (`null`, a bare string, a number, an
|
|
118
|
+
* array) would otherwise crash downstream (`deserializeEntry` destructures
|
|
119
|
+
* fields off it) or produce a garbage entry with an `undefined` displayId.
|
|
120
|
+
* Rejected candidates are dropped silently here; the caller emits a single
|
|
121
|
+
* summary diagnostic when `rejectedCount > 0`.
|
|
122
|
+
*/
|
|
123
|
+
function partitionEntryCandidates(candidates) {
|
|
124
|
+
const valid = [];
|
|
125
|
+
let rejectedCount = 0;
|
|
126
|
+
for (const candidate of candidates) {
|
|
127
|
+
if (typeof candidate === "object" && candidate !== null &&
|
|
128
|
+
!Array.isArray(candidate)) {
|
|
129
|
+
valid.push(candidate);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
rejectedCount++;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return { valid, rejectedCount };
|
|
136
|
+
}
|
|
137
|
+
function malformed(file, detail) {
|
|
138
|
+
return {
|
|
139
|
+
code: "UPSTREAM-SNAPSHOT-003",
|
|
140
|
+
severity: "error",
|
|
141
|
+
message: `malformed upstream snapshot: ${detail}`,
|
|
142
|
+
location: { file, line: 1, column: 1 },
|
|
143
|
+
};
|
|
144
|
+
}
|
|
@@ -25,6 +25,8 @@ export type ManifestEdgesBlock = {
|
|
|
25
25
|
readonly format: "ndjson";
|
|
26
26
|
readonly file: string;
|
|
27
27
|
};
|
|
28
|
+
/** Version of the compile-output wire schema (`manifest.json` et al.). */
|
|
29
|
+
export declare const MANIFEST_SCHEMA_VERSION = 1;
|
|
28
30
|
/** `manifest.json` schema (spec §4.2). */
|
|
29
31
|
export interface ManifestJson {
|
|
30
32
|
readonly markspecSchemaVersion: 1;
|
|
@@ -35,6 +37,7 @@ export interface ManifestJson {
|
|
|
35
37
|
readonly project: {
|
|
36
38
|
readonly name: string;
|
|
37
39
|
readonly root: string;
|
|
40
|
+
readonly version?: string;
|
|
38
41
|
};
|
|
39
42
|
readonly counts: {
|
|
40
43
|
readonly entries: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","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CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;KACnD,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;CACpD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,gBAAgB,GAAG,SAAS,EACtC,OAAO,EAAE,MAAM,EACf,SAAS,UAAQ,GAChB,YAAY,CAmCd"}
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
* indirection blocks.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.MANIFEST_SCHEMA_VERSION = void 0;
|
|
11
12
|
exports.buildManifest = buildManifest;
|
|
13
|
+
const mod_js_1 = require("../model/mod.js");
|
|
14
|
+
/** Version of the compile-output wire schema (`manifest.json` et al.). */
|
|
15
|
+
exports.MANIFEST_SCHEMA_VERSION = 1;
|
|
12
16
|
/**
|
|
13
17
|
* Build the `manifest.json` object for a compiled project.
|
|
14
18
|
*
|
|
@@ -24,14 +28,17 @@ function buildManifest(result, config, projectRoot, _profile, version, streaming
|
|
|
24
28
|
byType[typeName] = (byType[typeName] ?? 0) + 1;
|
|
25
29
|
}
|
|
26
30
|
return {
|
|
27
|
-
markspecSchemaVersion:
|
|
31
|
+
markspecSchemaVersion: exports.MANIFEST_SCHEMA_VERSION,
|
|
28
32
|
generator: {
|
|
29
33
|
release: version,
|
|
30
|
-
coreSchema:
|
|
34
|
+
coreSchema: mod_js_1.CORE_SCHEMA_VERSION,
|
|
31
35
|
},
|
|
32
36
|
project: {
|
|
33
37
|
name: config.name ?? "",
|
|
34
38
|
root: projectRoot,
|
|
39
|
+
...(config.version && config.version !== "0.0.0"
|
|
40
|
+
? { version: config.version }
|
|
41
|
+
: {}),
|
|
35
42
|
},
|
|
36
43
|
counts: {
|
|
37
44
|
entries: result.entries.size,
|
|
@@ -45,7 +52,7 @@ function buildManifest(result, config, projectRoot, _profile, version, streaming
|
|
|
45
52
|
? { format: "ndjson", file: "edges.ndjson" }
|
|
46
53
|
: { format: "inline", file: "compiled.json" },
|
|
47
54
|
sqliteMirror: null,
|
|
48
|
-
federation: config.
|
|
55
|
+
federation: (config.references ?? []).map((r) => r.url),
|
|
49
56
|
reserved: {},
|
|
50
57
|
};
|
|
51
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/compiler/mod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,KAAK,EAEL,IAAI,EAEL,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/compiler/mod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,KAAK,EAEL,IAAI,EAEL,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOtE,uCAAu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AC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAClD,+CAA+C;IAC/C,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5C;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC;AA4BD;;;;;;;GAOG;AACH,wBAAsB,OAAO,CAC3B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,CA4MxB;AA+ED,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,sBAAsB,GACvB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC"}
|
package/script/compiler/mod.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.compile = compile;
|
|
|
11
11
|
const mod_js_1 = require("../model/mod.js");
|
|
12
12
|
const mod_js_2 = require("../parser/mod.js");
|
|
13
13
|
const mod_js_3 = require("../validator/mod.js");
|
|
14
|
+
const uxil_family_js_1 = require("../validator/uxil_family.js");
|
|
14
15
|
const mod_js_4 = require("../typl/mod.js");
|
|
15
16
|
const discipline_registry_js_1 = require("../profile/discipline_registry.js");
|
|
16
17
|
const constants_js_1 = require("./constants.js");
|
|
@@ -193,6 +194,13 @@ async function compile(paths, options) {
|
|
|
193
194
|
classifiedEntries = stage2.entries;
|
|
194
195
|
parseDiagnostics.push(...stage2.diagnostics);
|
|
195
196
|
}
|
|
197
|
+
// Phase 2.6: uxil diagnostics family (S9 #727) — profile-gated (inert
|
|
198
|
+
// without a `declares: ux-surface` designation), mirroring runPipeline's
|
|
199
|
+
// Stage 5 so compile-backed surfaces (CLI compile/export/show, the MCP
|
|
200
|
+
// server) agree with `check` and the LSP on designated corpora. No
|
|
201
|
+
// file-local filter here: the requested path set IS the corpus being
|
|
202
|
+
// compiled — the same full-set semantics MSL-L006 assumes in compile.
|
|
203
|
+
const uxilDiagnostics = (0, uxil_family_js_1.validateUxilFamily)(classifiedEntries, options.profile ?? null);
|
|
196
204
|
// Phase 3: Build traceability graph.
|
|
197
205
|
// Keep first occurrence of each display ID (validator catches duplicates).
|
|
198
206
|
const entries = new Map();
|
|
@@ -236,15 +244,16 @@ async function compile(paths, options) {
|
|
|
236
244
|
const linkTargetDiags = (0, link_target_js_1.checkLinkTargets)(entries, links);
|
|
237
245
|
const forward = buildAdjacency(links, (l) => l.from);
|
|
238
246
|
const reverse = buildAdjacency(links, (l) => l.to);
|
|
239
|
-
// Build the corpus typl registry
|
|
240
|
-
//
|
|
241
|
-
//
|
|
242
|
-
//
|
|
243
|
-
//
|
|
244
|
-
const
|
|
247
|
+
// Build the corpus typl registry directly — validate() (called above)
|
|
248
|
+
// already ran the full validateTypl pass (citation resolution, TYPL-009,
|
|
249
|
+
// etc.) for validationDiagnostics; re-running it here just to get
|
|
250
|
+
// `.registry` would redo that work a second time per compile/show/
|
|
251
|
+
// context/report/export/MCP call.
|
|
252
|
+
const typeRegistry = (0, mod_js_4.buildTypeRegistry)([...entries.values()]);
|
|
245
253
|
let diagnostics = [
|
|
246
254
|
...parseDiagnostics,
|
|
247
255
|
...validationDiagnostics,
|
|
256
|
+
...uxilDiagnostics,
|
|
248
257
|
...linkTargetDiags,
|
|
249
258
|
];
|
|
250
259
|
// Phase 5: Corpus-aware diagnostic post-pass (ADR-030). A project entry
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Emits diagnostics (MARKSPEC-YAML-*) on parse or schema errors. See
|
|
8
8
|
* [spec §7.6](../../../../docs/superpowers/specs/2026-04-21-adr-008-profile-system-v1-design.md).
|
|
9
9
|
*/
|
|
10
|
-
import type { Diagnostic, ProfileSpecifier } from "../model/mod.js";
|
|
10
|
+
import type { CaptionConventions, Diagnostic, ProfileSpecifier } from "../model/mod.js";
|
|
11
11
|
import type { ReadFile } from "./mod.js";
|
|
12
12
|
/** The consumer-binding config filename, placed next to `project.yaml`. */
|
|
13
13
|
export declare const MARKSPEC_YAML_FILENAME = ".markspec.yaml";
|
|
@@ -44,6 +44,18 @@ export interface MarkspecYaml {
|
|
|
44
44
|
* `undefined` (key absent) means the default is active.
|
|
45
45
|
*/
|
|
46
46
|
readonly defaultProfile?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Gitignore-syntax patterns excluded from project file discovery,
|
|
49
|
+
* anchored at the project root (e.g. `["skills/", "*.gen.md"]`).
|
|
50
|
+
* Applied after `.gitignore` rules by `core/discovery`. Defaults to
|
|
51
|
+
* `[]` when the key is absent.
|
|
52
|
+
*/
|
|
53
|
+
readonly exclude: readonly string[];
|
|
54
|
+
/**
|
|
55
|
+
* Per-keyword caption-position conventions (spec §4.7 MSL-C072).
|
|
56
|
+
* Defaults to `{}` when the key is absent.
|
|
57
|
+
*/
|
|
58
|
+
readonly captionConventions: CaptionConventions;
|
|
47
59
|
}
|
|
48
60
|
/** Result of parsing a `.markspec.yaml` string. */
|
|
49
61
|
export interface ParseMarkspecYamlResult {
|
|
@@ -71,4 +83,29 @@ export type WriteFile = (path: string, content: string) => Promise<void>;
|
|
|
71
83
|
* Uses raw string manipulation to preserve user comments and formatting.
|
|
72
84
|
*/
|
|
73
85
|
export declare function addProfileSpecifier(specifier: string, readFileFn: ReadFile, writeFileFn: WriteFile, projectRoot: string): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* The markspec-tool configuration read from `.markspec.yaml`: file-
|
|
88
|
+
* discovery exclusions and caption-position conventions. Distinct from
|
|
89
|
+
* {@linkcode MarkspecYaml}'s `profiles` / `defaultProfile` fields, which
|
|
90
|
+
* drive profile-chain resolution rather than tool behavior.
|
|
91
|
+
*/
|
|
92
|
+
export interface ToolConfig {
|
|
93
|
+
readonly exclude: readonly string[];
|
|
94
|
+
readonly captionConventions: CaptionConventions;
|
|
95
|
+
}
|
|
96
|
+
/** Defaults used when `.markspec.yaml` is absent or carries neither key. */
|
|
97
|
+
export declare const DEFAULT_TOOL_CONFIG: ToolConfig;
|
|
98
|
+
/**
|
|
99
|
+
* Load the markspec tool config (`exclude`, `caption-conventions`) from
|
|
100
|
+
* `.markspec.yaml` at `projectRoot`.
|
|
101
|
+
*
|
|
102
|
+
* An absent file, or one that parses to a `null` config (a schema or YAML
|
|
103
|
+
* error — see {@linkcode parseMarkspecYaml}), yields
|
|
104
|
+
* {@linkcode DEFAULT_TOOL_CONFIG}; callers inspect the returned
|
|
105
|
+
* diagnostics to decide whether that default is acceptable or fatal.
|
|
106
|
+
*/
|
|
107
|
+
export declare function loadToolConfig(projectRoot: string, readFile: ReadFile): Promise<{
|
|
108
|
+
config: ToolConfig;
|
|
109
|
+
diagnostics: readonly Diagnostic[];
|
|
110
|
+
}>;
|
|
74
111
|
//# sourceMappingURL=markspec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markspec.d.ts","sourceRoot":"","sources":["../../src/config/markspec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"markspec.d.ts","sourceRoot":"","sources":["../../src/config/markspec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EACV,kBAAkB,EAElB,UAAU,EACV,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAEvD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIxB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,MAAM,EAChB,QAAQ,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