@driftsys/markspec 0.8.0 → 0.10.1

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.
Files changed (119) hide show
  1. package/esm/compiler/mod.d.ts +7 -0
  2. package/esm/compiler/mod.d.ts.map +1 -1
  3. package/esm/compiler/mod.js +17 -3
  4. package/esm/compiler/schema.d.ts +8 -1
  5. package/esm/compiler/schema.d.ts.map +1 -1
  6. package/esm/compiler/schema.js +8 -1
  7. package/esm/config/mod.d.ts.map +1 -1
  8. package/esm/config/mod.js +25 -0
  9. package/esm/discovery/gitignore.d.ts +40 -0
  10. package/esm/discovery/gitignore.d.ts.map +1 -0
  11. package/esm/discovery/gitignore.js +145 -0
  12. package/esm/discovery/mod.d.ts +54 -0
  13. package/esm/discovery/mod.d.ts.map +1 -0
  14. package/esm/discovery/mod.js +122 -0
  15. package/esm/formatter/dprint.d.ts +62 -0
  16. package/esm/formatter/dprint.d.ts.map +1 -0
  17. package/esm/formatter/dprint.js +83 -0
  18. package/esm/formatter/md_equiv.d.ts +24 -0
  19. package/esm/formatter/md_equiv.d.ts.map +1 -0
  20. package/esm/formatter/md_equiv.js +81 -0
  21. package/esm/formatter/mod.d.ts +25 -0
  22. package/esm/formatter/mod.d.ts.map +1 -1
  23. package/esm/formatter/mod.js +106 -6
  24. package/esm/formatter/prose.d.ts +48 -0
  25. package/esm/formatter/prose.d.ts.map +1 -0
  26. package/esm/formatter/prose.js +85 -0
  27. package/esm/mod.d.ts +10 -4
  28. package/esm/mod.d.ts.map +1 -1
  29. package/esm/mod.js +7 -2
  30. package/esm/model/mod.d.ts +25 -1
  31. package/esm/model/mod.d.ts.map +1 -1
  32. package/esm/model/mod.js +1 -0
  33. package/esm/model/profile.d.ts +34 -0
  34. package/esm/model/profile.d.ts.map +1 -1
  35. package/esm/parser/markdown.d.ts.map +1 -1
  36. package/esm/parser/markdown.js +28 -15
  37. package/esm/profile/chain.js +1 -0
  38. package/esm/profile/delivered.d.ts +27 -0
  39. package/esm/profile/delivered.d.ts.map +1 -0
  40. package/esm/profile/delivered.js +60 -0
  41. package/esm/profile/manifest.d.ts +1 -0
  42. package/esm/profile/manifest.d.ts.map +1 -1
  43. package/esm/profile/manifest.js +107 -0
  44. package/esm/profile/merge.d.ts.map +1 -1
  45. package/esm/profile/merge.js +21 -0
  46. package/esm/refs/mod.d.ts.map +1 -1
  47. package/esm/refs/mod.js +22 -0
  48. package/esm/reporter/mod.js +17 -4
  49. package/esm/self_upgrade/target.d.ts +3 -3
  50. package/esm/self_upgrade/target.d.ts.map +1 -1
  51. package/esm/self_upgrade/target.js +4 -2
  52. package/esm/validator/corpus.d.ts +25 -0
  53. package/esm/validator/corpus.d.ts.map +1 -0
  54. package/esm/validator/corpus.js +138 -0
  55. package/esm/validator/listing.d.ts.map +1 -1
  56. package/esm/validator/listing.js +4 -1
  57. package/esm/validator/mod.d.ts +2 -0
  58. package/esm/validator/mod.d.ts.map +1 -1
  59. package/esm/validator/mod.js +1 -0
  60. package/package.json +3 -1
  61. package/script/compiler/mod.d.ts +7 -0
  62. package/script/compiler/mod.d.ts.map +1 -1
  63. package/script/compiler/mod.js +16 -2
  64. package/script/compiler/schema.d.ts +8 -1
  65. package/script/compiler/schema.d.ts.map +1 -1
  66. package/script/compiler/schema.js +8 -1
  67. package/script/config/mod.d.ts.map +1 -1
  68. package/script/config/mod.js +25 -0
  69. package/script/discovery/gitignore.d.ts +40 -0
  70. package/script/discovery/gitignore.d.ts.map +1 -0
  71. package/script/discovery/gitignore.js +149 -0
  72. package/script/discovery/mod.d.ts +54 -0
  73. package/script/discovery/mod.d.ts.map +1 -0
  74. package/script/discovery/mod.js +128 -0
  75. package/script/formatter/dprint.d.ts +62 -0
  76. package/script/formatter/dprint.d.ts.map +1 -0
  77. package/script/formatter/dprint.js +120 -0
  78. package/script/formatter/md_equiv.d.ts +24 -0
  79. package/script/formatter/md_equiv.d.ts.map +1 -0
  80. package/script/formatter/md_equiv.js +87 -0
  81. package/script/formatter/mod.d.ts +25 -0
  82. package/script/formatter/mod.d.ts.map +1 -1
  83. package/script/formatter/mod.js +106 -5
  84. package/script/formatter/prose.d.ts +48 -0
  85. package/script/formatter/prose.d.ts.map +1 -0
  86. package/script/formatter/prose.js +88 -0
  87. package/script/mod.d.ts +10 -4
  88. package/script/mod.d.ts.map +1 -1
  89. package/script/mod.js +22 -3
  90. package/script/model/mod.d.ts +25 -1
  91. package/script/model/mod.d.ts.map +1 -1
  92. package/script/model/mod.js +1 -0
  93. package/script/model/profile.d.ts +34 -0
  94. package/script/model/profile.d.ts.map +1 -1
  95. package/script/parser/markdown.d.ts.map +1 -1
  96. package/script/parser/markdown.js +27 -14
  97. package/script/profile/chain.js +1 -0
  98. package/script/profile/delivered.d.ts +27 -0
  99. package/script/profile/delivered.d.ts.map +1 -0
  100. package/script/profile/delivered.js +65 -0
  101. package/script/profile/manifest.d.ts +1 -0
  102. package/script/profile/manifest.d.ts.map +1 -1
  103. package/script/profile/manifest.js +108 -1
  104. package/script/profile/merge.d.ts.map +1 -1
  105. package/script/profile/merge.js +21 -0
  106. package/script/refs/mod.d.ts.map +1 -1
  107. package/script/refs/mod.js +22 -0
  108. package/script/reporter/mod.js +17 -4
  109. package/script/self_upgrade/target.d.ts +3 -3
  110. package/script/self_upgrade/target.d.ts.map +1 -1
  111. package/script/self_upgrade/target.js +4 -2
  112. package/script/validator/corpus.d.ts +25 -0
  113. package/script/validator/corpus.d.ts.map +1 -0
  114. package/script/validator/corpus.js +142 -0
  115. package/script/validator/listing.d.ts.map +1 -1
  116. package/script/validator/listing.js +4 -1
  117. package/script/validator/mod.d.ts +2 -0
  118. package/script/validator/mod.d.ts.map +1 -1
  119. package/script/validator/mod.js +4 -1
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * Map (os, arch) → the GitHub release target string used in tarball
6
6
  * names. Targets match those produced by the Release workflow:
7
- * x86_64-unknown-linux-gnu, x86_64-apple-darwin,
8
- * aarch64-apple-darwin, x86_64-pc-windows-msvc.
7
+ * x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu,
8
+ * x86_64-apple-darwin, aarch64-apple-darwin, x86_64-pc-windows-msvc.
9
9
  *
10
10
  * Pure functions — no I/O, no Deno.* APIs. The CLI passes
11
11
  * `Deno.build.os` / `Deno.build.arch` strings to platformFromBuild;
@@ -20,6 +20,8 @@ function detectTarget(platform) {
20
20
  const { os, arch } = platform;
21
21
  if (os === "linux" && arch === "x86_64")
22
22
  return "x86_64-unknown-linux-gnu";
23
+ if (os === "linux" && arch === "aarch64")
24
+ return "aarch64-unknown-linux-gnu";
23
25
  if (os === "darwin" && arch === "x86_64")
24
26
  return "x86_64-apple-darwin";
25
27
  if (os === "darwin" && arch === "aarch64")
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @module core/validator/corpus
3
+ *
4
+ * Corpus-aware diagnostic post-pass (ADR-030). Two responsibilities:
5
+ *
6
+ * 1. {@linkcode detectCorpusCollisions} — a project entry re-declaring a
7
+ * display ID (or Id) owned by a delivered corpus entry is MSL-R014, a
8
+ * distinct code from MSL-R006 because the fix is different: rename the
9
+ * project entry; the corpus entry is not yours to change.
10
+ * 2. {@linkcode attributeCorpusDiagnostics} — consumer builds must not go
11
+ * red from upstream bugs they cannot fix: findings located inside a
12
+ * corpus file are downgraded to warnings and attributed to the
13
+ * delivering profile; generic duplicate codes are suppressed for
14
+ * collided tokens (MSL-R014 replaces them).
15
+ */
16
+ import type { Diagnostic, Entry } from "../model/mod.js";
17
+ /** Result of {@linkcode detectCorpusCollisions}. */
18
+ export interface CorpusCollisionResult {
19
+ readonly diagnostics: readonly Diagnostic[];
20
+ /** Display-ID / Id tokens involved in a project↔corpus collision. */
21
+ readonly collidedTokens: ReadonlySet<string>;
22
+ }
23
+ export declare function detectCorpusCollisions(allEntries: readonly Entry[]): CorpusCollisionResult;
24
+ export declare function attributeCorpusDiagnostics(diagnostics: readonly Diagnostic[], allEntries: readonly Entry[], collidedTokens: ReadonlySet<string>): Diagnostic[];
25
+ //# sourceMappingURL=corpus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"corpus.d.ts","sourceRoot":"","sources":["../../src/validator/corpus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAUzD,oDAAoD;AACpD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5C,qEAAqE;IACrE,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,SAAS,KAAK,EAAE,GAC3B,qBAAqB,CAwFvB;AAED,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,SAAS,UAAU,EAAE,EAClC,UAAU,EAAE,SAAS,KAAK,EAAE,EAC5B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAClC,UAAU,EAAE,CAiCd"}
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ /**
3
+ * @module core/validator/corpus
4
+ *
5
+ * Corpus-aware diagnostic post-pass (ADR-030). Two responsibilities:
6
+ *
7
+ * 1. {@linkcode detectCorpusCollisions} — a project entry re-declaring a
8
+ * display ID (or Id) owned by a delivered corpus entry is MSL-R014, a
9
+ * distinct code from MSL-R006 because the fix is different: rename the
10
+ * project entry; the corpus entry is not yours to change.
11
+ * 2. {@linkcode attributeCorpusDiagnostics} — consumer builds must not go
12
+ * red from upstream bugs they cannot fix: findings located inside a
13
+ * corpus file are downgraded to warnings and attributed to the
14
+ * delivering profile; generic duplicate codes are suppressed for
15
+ * collided tokens (MSL-R014 replaces them).
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.detectCorpusCollisions = detectCorpusCollisions;
19
+ exports.attributeCorpusDiagnostics = attributeCorpusDiagnostics;
20
+ /** Generic duplicate detectors superseded by MSL-R014 for corpus collisions. */
21
+ const GENERIC_DUP_CODES = new Set([
22
+ "MSL-R005",
23
+ "MSL-R006",
24
+ "MSL-I007",
25
+ "MSL-I008",
26
+ ]);
27
+ function detectCorpusCollisions(allEntries) {
28
+ const corpusByDisplayId = new Map();
29
+ const corpusById = new Map();
30
+ for (const e of allEntries) {
31
+ if (!e.origin)
32
+ continue;
33
+ if (!corpusByDisplayId.has(e.displayId)) {
34
+ corpusByDisplayId.set(e.displayId, e);
35
+ }
36
+ if (e.id && !corpusById.has(e.id))
37
+ corpusById.set(e.id, e);
38
+ }
39
+ if (corpusByDisplayId.size === 0 && corpusById.size === 0) {
40
+ return { diagnostics: [], collidedTokens: new Set() };
41
+ }
42
+ const diagnostics = [];
43
+ const collided = new Set();
44
+ for (const e of allEntries) {
45
+ if (!e.origin) {
46
+ const displayOwner = corpusByDisplayId.get(e.displayId);
47
+ if (displayOwner) {
48
+ collided.add(e.displayId);
49
+ diagnostics.push({
50
+ code: "MSL-R014",
51
+ severity: "error",
52
+ message: `display ID '${e.displayId}' is already delivered by ` +
53
+ `${displayOwner.origin.profileId}@` +
54
+ `${displayOwner.origin.profileVersion}; rename this entry — ` +
55
+ `delivered corpus entries are read-only`,
56
+ location: e.location,
57
+ });
58
+ }
59
+ if (e.id) {
60
+ const idOwner = corpusById.get(e.id);
61
+ if (idOwner) {
62
+ collided.add(e.id);
63
+ diagnostics.push({
64
+ code: "MSL-R014",
65
+ severity: "error",
66
+ message: `Id '${e.id}' is already delivered by ` +
67
+ `${idOwner.origin.profileId}@` +
68
+ `${idOwner.origin.profileVersion}; rename this entry — ` +
69
+ `delivered corpus entries are read-only`,
70
+ location: e.location,
71
+ });
72
+ }
73
+ }
74
+ continue;
75
+ }
76
+ // Corpus↔corpus inter-tier collision: a later delivered entry from a
77
+ // DIFFERENT profile claims a display ID (or Id) the first-registered
78
+ // profile already owns. Same-profile duplicates are excluded — that's
79
+ // the delivering profile's own authoring bug, not a read-only-boundary
80
+ // violation, and stays on the generic duplicate codes.
81
+ const displayOwner = corpusByDisplayId.get(e.displayId);
82
+ if (displayOwner !== e && displayOwner &&
83
+ displayOwner.origin.profileId !== e.origin.profileId) {
84
+ collided.add(e.displayId);
85
+ diagnostics.push({
86
+ code: "MSL-R014",
87
+ severity: "error",
88
+ message: `display ID '${e.displayId}' is already delivered by ` +
89
+ `${displayOwner.origin.profileId}@` +
90
+ `${displayOwner.origin.profileVersion}; delivered corpus ` +
91
+ `entries are read-only`,
92
+ location: e.location,
93
+ });
94
+ }
95
+ if (e.id) {
96
+ const idOwner = corpusById.get(e.id);
97
+ if (idOwner !== e && idOwner &&
98
+ idOwner.origin.profileId !== e.origin.profileId) {
99
+ collided.add(e.id);
100
+ diagnostics.push({
101
+ code: "MSL-R014",
102
+ severity: "error",
103
+ message: `Id '${e.id}' is already delivered by ` +
104
+ `${idOwner.origin.profileId}@` +
105
+ `${idOwner.origin.profileVersion}; delivered corpus entries ` +
106
+ `are read-only`,
107
+ location: e.location,
108
+ });
109
+ }
110
+ }
111
+ }
112
+ return { diagnostics, collidedTokens: collided };
113
+ }
114
+ function attributeCorpusDiagnostics(diagnostics, allEntries, collidedTokens) {
115
+ const corpusFiles = new Map();
116
+ for (const e of allEntries) {
117
+ if (e.origin) {
118
+ corpusFiles.set(e.location.file, `${e.origin.profileId}@${e.origin.profileVersion}`);
119
+ }
120
+ }
121
+ const out = [];
122
+ for (const d of diagnostics) {
123
+ // Suppress the generic duplicate codes for corpus collisions; the
124
+ // validator embeds the offending token in single quotes, which is what
125
+ // this containment check keys on.
126
+ if (GENERIC_DUP_CODES.has(d.code) &&
127
+ [...collidedTokens].some((t) => d.message.includes(`'${t}'`))) {
128
+ continue;
129
+ }
130
+ const label = d.location ? corpusFiles.get(d.location.file) : undefined;
131
+ if (label !== undefined) {
132
+ out.push({
133
+ ...d,
134
+ severity: d.severity === "error" ? "warning" : d.severity,
135
+ message: `delivered by ${label}: ${d.message}`,
136
+ });
137
+ continue;
138
+ }
139
+ out.push(d);
140
+ }
141
+ return out;
142
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../src/validator/listing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAYpE,oDAAoD;AACpD,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAEnE,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;CAC3C;AA4SD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,SAAS,UAAU,EAAE,CAMvB"}
1
+ {"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../src/validator/listing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAYpE,oDAAoD;AACpD,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAEnE,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;CAC3C;AA8SD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,SAAS,UAAU,EAAE,CAMvB"}
@@ -45,7 +45,10 @@ const UNIT_FAMILY = new Set([
45
45
  // ---------------------------------------------------------------------------
46
46
  /** Listing kind implied by a file's basename, or null if not a listing file. */
47
47
  function filenameKind(file) {
48
- const base = (0, path_1.basename)(file).toLowerCase().replace(/\.[^.]+$/, "");
48
+ const name = (0, path_1.basename)(file).toLowerCase();
49
+ if (!name.endsWith(".md"))
50
+ return null;
51
+ const base = name.replace(/\.md$/, "");
49
52
  if (base === "references")
50
53
  return "references";
51
54
  if (base === "glossary")
@@ -43,4 +43,6 @@ export { validateValue } from "./value_types.js";
43
43
  export type { ValueValidator } from "./value_types.js";
44
44
  export { normalizeListValues } from "./normalize.js";
45
45
  export { effectiveTraceRules, matchesAnyTarget, validateTraceabilityForEntry, } from "./traceability.js";
46
+ export { attributeCorpusDiagnostics, detectCorpusCollisions, } from "./corpus.js";
47
+ export type { CorpusCollisionResult } from "./corpus.js";
46
48
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/validator/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAqCpE,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5C,gDAAgD;IAChD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,GAAG,cAAc,CAclE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A0B,EAC1B,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
@@ -15,7 +15,7 @@
15
15
  * a profile-aware validator layer (not in the core).
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.validateTraceabilityForEntry = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.normalizeListValues = exports.validateValue = exports.validateAttributesForEntry = exports.effectiveScope = exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.validateListingDocuments = exports.suppressDeclaredAttrR010 = exports.runPipeline = void 0;
18
+ exports.detectCorpusCollisions = exports.attributeCorpusDiagnostics = exports.validateTraceabilityForEntry = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.normalizeListValues = exports.validateValue = exports.validateAttributesForEntry = exports.effectiveScope = exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.validateListingDocuments = exports.suppressDeclaredAttrR010 = exports.runPipeline = void 0;
19
19
  exports.validate = validate;
20
20
  exports.indexByDisplayId = indexByDisplayId;
21
21
  exports.findAttr = findAttr;
@@ -493,3 +493,6 @@ var traceability_js_1 = require("./traceability.js");
493
493
  Object.defineProperty(exports, "effectiveTraceRules", { enumerable: true, get: function () { return traceability_js_1.effectiveTraceRules; } });
494
494
  Object.defineProperty(exports, "matchesAnyTarget", { enumerable: true, get: function () { return traceability_js_1.matchesAnyTarget; } });
495
495
  Object.defineProperty(exports, "validateTraceabilityForEntry", { enumerable: true, get: function () { return traceability_js_1.validateTraceabilityForEntry; } });
496
+ var corpus_js_1 = require("./corpus.js");
497
+ Object.defineProperty(exports, "attributeCorpusDiagnostics", { enumerable: true, get: function () { return corpus_js_1.attributeCorpusDiagnostics; } });
498
+ Object.defineProperty(exports, "detectCorpusCollisions", { enumerable: true, get: function () { return corpus_js_1.detectCorpusCollisions; } });