@driftsys/markspec 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +32 -8
  2. package/esm/_dnt.polyfills.d.ts +101 -0
  3. package/esm/_dnt.polyfills.d.ts.map +1 -0
  4. package/esm/_dnt.polyfills.js +127 -0
  5. package/esm/compiler/inverses.d.ts +22 -0
  6. package/esm/compiler/inverses.d.ts.map +1 -0
  7. package/esm/compiler/inverses.js +147 -0
  8. package/esm/compiler/link_target.d.ts +19 -0
  9. package/esm/compiler/link_target.d.ts.map +1 -0
  10. package/esm/compiler/link_target.js +66 -0
  11. package/esm/compiler/mod.d.ts +43 -0
  12. package/esm/compiler/mod.d.ts.map +1 -0
  13. package/esm/compiler/mod.js +163 -0
  14. package/esm/compiler/schema.d.ts +38 -0
  15. package/esm/compiler/schema.d.ts.map +1 -0
  16. package/esm/compiler/schema.js +44 -0
  17. package/esm/config/markspec.d.ts +51 -0
  18. package/esm/config/markspec.d.ts.map +1 -0
  19. package/esm/config/markspec.js +216 -0
  20. package/esm/config/mod.d.ts +48 -0
  21. package/esm/config/mod.d.ts.map +1 -0
  22. package/esm/config/mod.js +243 -0
  23. package/esm/formatter/mod.d.ts +65 -0
  24. package/esm/formatter/mod.d.ts.map +1 -0
  25. package/esm/formatter/mod.js +306 -0
  26. package/esm/mod.d.ts +19 -0
  27. package/esm/mod.d.ts.map +1 -1
  28. package/esm/mod.js +18 -0
  29. package/esm/model/attributes.d.ts +47 -0
  30. package/esm/model/attributes.d.ts.map +1 -0
  31. package/esm/model/attributes.js +97 -0
  32. package/esm/model/mod.d.ts +381 -0
  33. package/esm/model/mod.d.ts.map +1 -0
  34. package/esm/model/mod.js +73 -0
  35. package/esm/model/profile.d.ts +189 -0
  36. package/esm/model/profile.d.ts.map +1 -0
  37. package/esm/model/profile.js +31 -0
  38. package/esm/parser/attributes.d.ts +48 -0
  39. package/esm/parser/attributes.d.ts.map +1 -0
  40. package/esm/parser/attributes.js +131 -0
  41. package/esm/parser/captions.d.ts +25 -0
  42. package/esm/parser/captions.d.ts.map +1 -0
  43. package/esm/parser/captions.js +148 -0
  44. package/esm/parser/directives.d.ts +29 -0
  45. package/esm/parser/directives.d.ts.map +1 -0
  46. package/esm/parser/directives.js +88 -0
  47. package/esm/parser/frontmatter.d.ts +53 -0
  48. package/esm/parser/frontmatter.d.ts.map +1 -0
  49. package/esm/parser/frontmatter.js +185 -0
  50. package/esm/parser/grammars.d.ts +22 -0
  51. package/esm/parser/grammars.d.ts.map +1 -0
  52. package/esm/parser/grammars.js +70 -0
  53. package/esm/parser/markdown.d.ts +32 -0
  54. package/esm/parser/markdown.d.ts.map +1 -0
  55. package/esm/parser/markdown.js +225 -0
  56. package/esm/parser/mod.d.ts +73 -0
  57. package/esm/parser/mod.d.ts.map +1 -0
  58. package/esm/parser/mod.js +89 -0
  59. package/esm/parser/references.d.ts +24 -0
  60. package/esm/parser/references.d.ts.map +1 -0
  61. package/esm/parser/references.js +71 -0
  62. package/esm/parser/remark.d.ts +9 -0
  63. package/esm/parser/remark.d.ts.map +1 -0
  64. package/esm/parser/remark.js +11 -0
  65. package/esm/parser/source.d.ts +33 -0
  66. package/esm/parser/source.d.ts.map +1 -0
  67. package/esm/parser/source.js +192 -0
  68. package/esm/profile/cache.d.ts +29 -0
  69. package/esm/profile/cache.d.ts.map +1 -0
  70. package/esm/profile/cache.js +45 -0
  71. package/esm/profile/chain.d.ts +42 -0
  72. package/esm/profile/chain.d.ts.map +1 -0
  73. package/esm/profile/chain.js +193 -0
  74. package/esm/profile/git-cache.d.ts +73 -0
  75. package/esm/profile/git-cache.d.ts.map +1 -0
  76. package/esm/profile/git-cache.js +96 -0
  77. package/esm/profile/load.d.ts +28 -0
  78. package/esm/profile/load.d.ts.map +1 -0
  79. package/esm/profile/load.js +50 -0
  80. package/esm/profile/manifest.d.ts +21 -0
  81. package/esm/profile/manifest.d.ts.map +1 -0
  82. package/esm/profile/manifest.js +830 -0
  83. package/esm/profile/merge.d.ts +26 -0
  84. package/esm/profile/merge.d.ts.map +1 -0
  85. package/esm/profile/merge.js +518 -0
  86. package/esm/profile/mod.d.ts +23 -0
  87. package/esm/profile/mod.d.ts.map +1 -0
  88. package/esm/profile/mod.js +14 -0
  89. package/esm/profile/npm.d.ts +51 -0
  90. package/esm/profile/npm.d.ts.map +1 -0
  91. package/esm/profile/npm.js +186 -0
  92. package/esm/profile/resolver.d.ts +60 -0
  93. package/esm/profile/resolver.d.ts.map +1 -0
  94. package/esm/profile/resolver.js +132 -0
  95. package/esm/reporter/mod.d.ts +31 -0
  96. package/esm/reporter/mod.d.ts.map +1 -0
  97. package/esm/reporter/mod.js +173 -0
  98. package/esm/validator/attributes.d.ts +43 -0
  99. package/esm/validator/attributes.d.ts.map +1 -0
  100. package/esm/validator/attributes.js +169 -0
  101. package/esm/validator/mod.d.ts +44 -0
  102. package/esm/validator/mod.d.ts.map +1 -0
  103. package/esm/validator/mod.js +214 -0
  104. package/esm/validator/normalize.d.ts +21 -0
  105. package/esm/validator/normalize.d.ts.map +1 -0
  106. package/esm/validator/normalize.js +58 -0
  107. package/esm/validator/pattern.d.ts +23 -0
  108. package/esm/validator/pattern.d.ts.map +1 -0
  109. package/esm/validator/pattern.js +44 -0
  110. package/esm/validator/pipeline.d.ts +30 -0
  111. package/esm/validator/pipeline.d.ts.map +1 -0
  112. package/esm/validator/pipeline.js +115 -0
  113. package/esm/validator/traceability.d.ts +48 -0
  114. package/esm/validator/traceability.d.ts.map +1 -0
  115. package/esm/validator/traceability.js +141 -0
  116. package/esm/validator/types.d.ts +48 -0
  117. package/esm/validator/types.d.ts.map +1 -0
  118. package/esm/validator/types.js +140 -0
  119. package/esm/validator/value_types.d.ts +20 -0
  120. package/esm/validator/value_types.d.ts.map +1 -0
  121. package/esm/validator/value_types.js +126 -0
  122. package/package.json +8 -1
  123. package/script/_dnt.polyfills.d.ts +101 -0
  124. package/script/_dnt.polyfills.d.ts.map +1 -0
  125. package/script/_dnt.polyfills.js +130 -0
  126. package/script/compiler/inverses.d.ts +22 -0
  127. package/script/compiler/inverses.d.ts.map +1 -0
  128. package/script/compiler/inverses.js +150 -0
  129. package/script/compiler/link_target.d.ts +19 -0
  130. package/script/compiler/link_target.d.ts.map +1 -0
  131. package/script/compiler/link_target.js +69 -0
  132. package/script/compiler/mod.d.ts +43 -0
  133. package/script/compiler/mod.d.ts.map +1 -0
  134. package/script/compiler/mod.js +169 -0
  135. package/script/compiler/schema.d.ts +38 -0
  136. package/script/compiler/schema.d.ts.map +1 -0
  137. package/script/compiler/schema.js +47 -0
  138. package/script/config/markspec.d.ts +51 -0
  139. package/script/config/markspec.d.ts.map +1 -0
  140. package/script/config/markspec.js +222 -0
  141. package/script/config/mod.d.ts +48 -0
  142. package/script/config/mod.d.ts.map +1 -0
  143. package/script/config/mod.js +250 -0
  144. package/script/formatter/mod.d.ts +65 -0
  145. package/script/formatter/mod.d.ts.map +1 -0
  146. package/script/formatter/mod.js +313 -0
  147. package/script/mod.d.ts +19 -0
  148. package/script/mod.d.ts.map +1 -1
  149. package/script/mod.js +65 -2
  150. package/script/model/attributes.d.ts +47 -0
  151. package/script/model/attributes.d.ts.map +1 -0
  152. package/script/model/attributes.js +101 -0
  153. package/script/model/mod.d.ts +381 -0
  154. package/script/model/mod.d.ts.map +1 -0
  155. package/script/model/mod.js +83 -0
  156. package/script/model/profile.d.ts +189 -0
  157. package/script/model/profile.d.ts.map +1 -0
  158. package/script/model/profile.js +34 -0
  159. package/script/parser/attributes.d.ts +48 -0
  160. package/script/parser/attributes.d.ts.map +1 -0
  161. package/script/parser/attributes.js +137 -0
  162. package/script/parser/captions.d.ts +25 -0
  163. package/script/parser/captions.d.ts.map +1 -0
  164. package/script/parser/captions.js +151 -0
  165. package/script/parser/directives.d.ts +29 -0
  166. package/script/parser/directives.d.ts.map +1 -0
  167. package/script/parser/directives.js +91 -0
  168. package/script/parser/frontmatter.d.ts +53 -0
  169. package/script/parser/frontmatter.d.ts.map +1 -0
  170. package/script/parser/frontmatter.js +188 -0
  171. package/script/parser/grammars.d.ts +22 -0
  172. package/script/parser/grammars.d.ts.map +1 -0
  173. package/script/parser/grammars.js +77 -0
  174. package/script/parser/markdown.d.ts +32 -0
  175. package/script/parser/markdown.d.ts.map +1 -0
  176. package/script/parser/markdown.js +228 -0
  177. package/script/parser/mod.d.ts +73 -0
  178. package/script/parser/mod.d.ts.map +1 -0
  179. package/script/parser/mod.js +101 -0
  180. package/script/parser/references.d.ts +24 -0
  181. package/script/parser/references.d.ts.map +1 -0
  182. package/script/parser/references.js +74 -0
  183. package/script/parser/remark.d.ts +9 -0
  184. package/script/parser/remark.d.ts.map +1 -0
  185. package/script/parser/remark.js +17 -0
  186. package/script/parser/source.d.ts +33 -0
  187. package/script/parser/source.d.ts.map +1 -0
  188. package/script/parser/source.js +198 -0
  189. package/script/profile/cache.d.ts +29 -0
  190. package/script/profile/cache.d.ts.map +1 -0
  191. package/script/profile/cache.js +48 -0
  192. package/script/profile/chain.d.ts +42 -0
  193. package/script/profile/chain.d.ts.map +1 -0
  194. package/script/profile/chain.js +229 -0
  195. package/script/profile/git-cache.d.ts +73 -0
  196. package/script/profile/git-cache.d.ts.map +1 -0
  197. package/script/profile/git-cache.js +104 -0
  198. package/script/profile/load.d.ts +28 -0
  199. package/script/profile/load.d.ts.map +1 -0
  200. package/script/profile/load.js +53 -0
  201. package/script/profile/manifest.d.ts +21 -0
  202. package/script/profile/manifest.d.ts.map +1 -0
  203. package/script/profile/manifest.js +833 -0
  204. package/script/profile/merge.d.ts +26 -0
  205. package/script/profile/merge.d.ts.map +1 -0
  206. package/script/profile/merge.js +521 -0
  207. package/script/profile/mod.d.ts +23 -0
  208. package/script/profile/mod.d.ts.map +1 -0
  209. package/script/profile/mod.js +31 -0
  210. package/script/profile/npm.d.ts +51 -0
  211. package/script/profile/npm.d.ts.map +1 -0
  212. package/script/profile/npm.js +191 -0
  213. package/script/profile/resolver.d.ts +60 -0
  214. package/script/profile/resolver.d.ts.map +1 -0
  215. package/script/profile/resolver.js +136 -0
  216. package/script/reporter/mod.d.ts +31 -0
  217. package/script/reporter/mod.d.ts.map +1 -0
  218. package/script/reporter/mod.js +176 -0
  219. package/script/validator/attributes.d.ts +43 -0
  220. package/script/validator/attributes.d.ts.map +1 -0
  221. package/script/validator/attributes.js +173 -0
  222. package/script/validator/mod.d.ts +44 -0
  223. package/script/validator/mod.d.ts.map +1 -0
  224. package/script/validator/mod.js +231 -0
  225. package/script/validator/normalize.d.ts +21 -0
  226. package/script/validator/normalize.d.ts.map +1 -0
  227. package/script/validator/normalize.js +61 -0
  228. package/script/validator/pattern.d.ts +23 -0
  229. package/script/validator/pattern.d.ts.map +1 -0
  230. package/script/validator/pattern.js +47 -0
  231. package/script/validator/pipeline.d.ts +30 -0
  232. package/script/validator/pipeline.d.ts.map +1 -0
  233. package/script/validator/pipeline.js +118 -0
  234. package/script/validator/traceability.d.ts +48 -0
  235. package/script/validator/traceability.d.ts.map +1 -0
  236. package/script/validator/traceability.js +146 -0
  237. package/script/validator/types.d.ts +48 -0
  238. package/script/validator/types.d.ts.map +1 -0
  239. package/script/validator/types.js +144 -0
  240. package/script/validator/value_types.d.ts +20 -0
  241. package/script/validator/value_types.d.ts.map +1 -0
  242. package/script/validator/value_types.js +129 -0
package/script/mod.js CHANGED
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.report = exports.serializeCompileResult = exports.generateInverses = exports.compile = exports.validateValue = exports.validateTraceabilityForEntry = exports.validateAttributesForEntry = exports.validate = exports.runPipeline = exports.normalizeListValues = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.effectiveScope = exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.format = exports.parseSource = exports.parseFile = exports.parse = exports.loadGrammar = exports.isSupportedExtension = exports.detectInlineRefs = exports.detectDirectives = exports.detectCaptions = exports.resolveLocalSpecifier = exports.resolveGitSpecifier = exports.parseManifest = exports.mergeChain = exports.loadProfileForCommand = exports.loadChain = exports.ensureCacheGitignored = exports.defaultRunGit = exports.defaultAppendFile = exports.computeCacheLocation = exports.computeCacheKey = exports.readMarkspecYaml = exports.parseMarkspecYaml = exports.MARKSPEC_YAML_FILENAME = exports.parseProjectConfig = exports.loadConfig = exports.discoverProjectRoot = exports.REFHUB_URL = exports.DEFAULT_PROJECT_CONFIG = exports.ConfigError = exports.VERSION = void 0;
2
4
  /**
3
5
  * @module core
4
6
  *
@@ -8,6 +10,67 @@
8
10
  * This is the library boundary. Everything outside core/ imports
9
11
  * from core/mod.ts, never from internal paths.
10
12
  */
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.VERSION = void 0;
13
+ require("./_dnt.polyfills.js");
13
14
  exports.VERSION = "0.0.1";
15
+ // Model types
16
+ var mod_js_1 = require("./model/mod.js");
17
+ Object.defineProperty(exports, "ConfigError", { enumerable: true, get: function () { return mod_js_1.ConfigError; } });
18
+ Object.defineProperty(exports, "DEFAULT_PROJECT_CONFIG", { enumerable: true, get: function () { return mod_js_1.DEFAULT_PROJECT_CONFIG; } });
19
+ Object.defineProperty(exports, "REFHUB_URL", { enumerable: true, get: function () { return mod_js_1.REFHUB_URL; } });
20
+ // Config
21
+ var mod_js_2 = require("./config/mod.js");
22
+ Object.defineProperty(exports, "discoverProjectRoot", { enumerable: true, get: function () { return mod_js_2.discoverProjectRoot; } });
23
+ Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return mod_js_2.loadConfig; } });
24
+ Object.defineProperty(exports, "parseProjectConfig", { enumerable: true, get: function () { return mod_js_2.parseProjectConfig; } });
25
+ var markspec_js_1 = require("./config/markspec.js");
26
+ Object.defineProperty(exports, "MARKSPEC_YAML_FILENAME", { enumerable: true, get: function () { return markspec_js_1.MARKSPEC_YAML_FILENAME; } });
27
+ Object.defineProperty(exports, "parseMarkspecYaml", { enumerable: true, get: function () { return markspec_js_1.parseMarkspecYaml; } });
28
+ Object.defineProperty(exports, "readMarkspecYaml", { enumerable: true, get: function () { return markspec_js_1.readMarkspecYaml; } });
29
+ // Profile system (ADR-008)
30
+ var mod_js_3 = require("./profile/mod.js");
31
+ Object.defineProperty(exports, "computeCacheKey", { enumerable: true, get: function () { return mod_js_3.computeCacheKey; } });
32
+ Object.defineProperty(exports, "computeCacheLocation", { enumerable: true, get: function () { return mod_js_3.computeCacheLocation; } });
33
+ Object.defineProperty(exports, "defaultAppendFile", { enumerable: true, get: function () { return mod_js_3.defaultAppendFile; } });
34
+ Object.defineProperty(exports, "defaultRunGit", { enumerable: true, get: function () { return mod_js_3.defaultRunGit; } });
35
+ Object.defineProperty(exports, "ensureCacheGitignored", { enumerable: true, get: function () { return mod_js_3.ensureCacheGitignored; } });
36
+ Object.defineProperty(exports, "loadChain", { enumerable: true, get: function () { return mod_js_3.loadChain; } });
37
+ Object.defineProperty(exports, "loadProfileForCommand", { enumerable: true, get: function () { return mod_js_3.loadProfileForCommand; } });
38
+ Object.defineProperty(exports, "mergeChain", { enumerable: true, get: function () { return mod_js_3.mergeChain; } });
39
+ Object.defineProperty(exports, "parseManifest", { enumerable: true, get: function () { return mod_js_3.parseManifest; } });
40
+ Object.defineProperty(exports, "resolveGitSpecifier", { enumerable: true, get: function () { return mod_js_3.resolveGitSpecifier; } });
41
+ Object.defineProperty(exports, "resolveLocalSpecifier", { enumerable: true, get: function () { return mod_js_3.resolveLocalSpecifier; } });
42
+ // Parser
43
+ var mod_js_4 = require("./parser/mod.js");
44
+ Object.defineProperty(exports, "detectCaptions", { enumerable: true, get: function () { return mod_js_4.detectCaptions; } });
45
+ Object.defineProperty(exports, "detectDirectives", { enumerable: true, get: function () { return mod_js_4.detectDirectives; } });
46
+ Object.defineProperty(exports, "detectInlineRefs", { enumerable: true, get: function () { return mod_js_4.detectInlineRefs; } });
47
+ Object.defineProperty(exports, "isSupportedExtension", { enumerable: true, get: function () { return mod_js_4.isSupportedExtension; } });
48
+ Object.defineProperty(exports, "loadGrammar", { enumerable: true, get: function () { return mod_js_4.loadGrammar; } });
49
+ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return mod_js_4.parse; } });
50
+ Object.defineProperty(exports, "parseFile", { enumerable: true, get: function () { return mod_js_4.parseFile; } });
51
+ Object.defineProperty(exports, "parseSource", { enumerable: true, get: function () { return mod_js_4.parseSource; } });
52
+ // Formatter
53
+ var mod_js_5 = require("./formatter/mod.js");
54
+ Object.defineProperty(exports, "format", { enumerable: true, get: function () { return mod_js_5.format; } });
55
+ // Validator
56
+ var mod_js_6 = require("./validator/mod.js");
57
+ Object.defineProperty(exports, "classifyEntriesStage", { enumerable: true, get: function () { return mod_js_6.classifyEntriesStage; } });
58
+ Object.defineProperty(exports, "classifyEntry", { enumerable: true, get: function () { return mod_js_6.classifyEntry; } });
59
+ Object.defineProperty(exports, "compileDisplayIdPattern", { enumerable: true, get: function () { return mod_js_6.compileDisplayIdPattern; } });
60
+ Object.defineProperty(exports, "effectiveScope", { enumerable: true, get: function () { return mod_js_6.effectiveScope; } });
61
+ Object.defineProperty(exports, "effectiveTraceRules", { enumerable: true, get: function () { return mod_js_6.effectiveTraceRules; } });
62
+ Object.defineProperty(exports, "matchesAnyTarget", { enumerable: true, get: function () { return mod_js_6.matchesAnyTarget; } });
63
+ Object.defineProperty(exports, "normalizeListValues", { enumerable: true, get: function () { return mod_js_6.normalizeListValues; } });
64
+ Object.defineProperty(exports, "runPipeline", { enumerable: true, get: function () { return mod_js_6.runPipeline; } });
65
+ Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return mod_js_6.validate; } });
66
+ Object.defineProperty(exports, "validateAttributesForEntry", { enumerable: true, get: function () { return mod_js_6.validateAttributesForEntry; } });
67
+ Object.defineProperty(exports, "validateTraceabilityForEntry", { enumerable: true, get: function () { return mod_js_6.validateTraceabilityForEntry; } });
68
+ Object.defineProperty(exports, "validateValue", { enumerable: true, get: function () { return mod_js_6.validateValue; } });
69
+ // Compiler
70
+ var mod_js_7 = require("./compiler/mod.js");
71
+ Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return mod_js_7.compile; } });
72
+ Object.defineProperty(exports, "generateInverses", { enumerable: true, get: function () { return mod_js_7.generateInverses; } });
73
+ Object.defineProperty(exports, "serializeCompileResult", { enumerable: true, get: function () { return mod_js_7.serializeCompileResult; } });
74
+ // Reporter
75
+ var mod_js_8 = require("./reporter/mod.js");
76
+ Object.defineProperty(exports, "report", { enumerable: true, get: function () { return mod_js_8.report; } });
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @module model/attributes
3
+ *
4
+ * Built-in attribute catalog per the language spec (Part 2.1).
5
+ *
6
+ * The core defines one reserved identity slot (`Id:`) plus a small
7
+ * universal attribute set. Profile-declared attributes extend this
8
+ * catalog at runtime. Type-specific attributes (`Derived-from`,
9
+ * `Verifies`, `Allocated-to`, `Element-kind`, `Test-level`, …) are not
10
+ * built-ins — they are declared by the active profile.
11
+ */
12
+ import type { AttributeOrigin, AttributeValueType, EntryShape } from "./mod.js";
13
+ /** Specification of a single built-in attribute. */
14
+ export interface AttributeSpec {
15
+ /** Canonical Title-Case key (e.g., `Id`, `Labels`). */
16
+ readonly key: string;
17
+ /** Value type from the 14-type system. */
18
+ readonly type: AttributeValueType;
19
+ /** How the value arrives in the model. */
20
+ readonly origin: AttributeOrigin;
21
+ /**
22
+ * Shapes on which the attribute may appear. An empty list means the
23
+ * attribute applies to both shapes (universal).
24
+ */
25
+ readonly shapes: readonly EntryShape[];
26
+ /** Whether the attribute is required. */
27
+ readonly required: boolean;
28
+ /** Closed vocabulary — set when `type === "enum"`. */
29
+ readonly enumValues?: readonly string[];
30
+ }
31
+ /**
32
+ * Full catalog of core built-in attributes.
33
+ *
34
+ * Order within the array has no semantic meaning; consumers look up by key
35
+ * via {@linkcode attributeSpec}.
36
+ *
37
+ * Profile-declared attributes (`type:`, `Derived-from:`, `Verifies:`,
38
+ * `Allocated-to:`, `Element-kind:`, `Test-level:`, compliance attributes,
39
+ * …) are not listed here; they appear at runtime via the active profile's
40
+ * manifest.
41
+ */
42
+ export declare const ATTRIBUTE_CATALOG: readonly AttributeSpec[];
43
+ /** Canonical Title-Case attribute keys the core recognizes. */
44
+ export declare const UNIVERSAL_ATTRIBUTE_KEYS: readonly string[];
45
+ /** Look up an attribute specification by its canonical key. */
46
+ export declare function attributeSpec(key: string): AttributeSpec | undefined;
47
+ //# sourceMappingURL=attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/model/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMhF,oDAAoD;AACpD,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IACvC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAgBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EAqDrD,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB,EAAE,SAAS,MAAM,EAC5B,CAAC;AAU3B,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEpE"}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ /**
3
+ * @module model/attributes
4
+ *
5
+ * Built-in attribute catalog per the language spec (Part 2.1).
6
+ *
7
+ * The core defines one reserved identity slot (`Id:`) plus a small
8
+ * universal attribute set. Profile-declared attributes extend this
9
+ * catalog at runtime. Type-specific attributes (`Derived-from`,
10
+ * `Verifies`, `Allocated-to`, `Element-kind`, `Test-level`, …) are not
11
+ * built-ins — they are declared by the active profile.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG = void 0;
15
+ exports.attributeSpec = attributeSpec;
16
+ // ---------------------------------------------------------------------------
17
+ // Universal attribute catalog
18
+ // ---------------------------------------------------------------------------
19
+ /** Both shapes. */
20
+ const BOTH_SHAPES = ["identified", "referenced"];
21
+ /**
22
+ * Shapes that carry `References:` — identified entries only. A referenced
23
+ * entry does not itself cite other referenced entries via `References:`
24
+ * (the replacement relation is expressed via universal `Supersedes:`).
25
+ */
26
+ const CITING_SHAPES = ["identified"];
27
+ /**
28
+ * Full catalog of core built-in attributes.
29
+ *
30
+ * Order within the array has no semantic meaning; consumers look up by key
31
+ * via {@linkcode attributeSpec}.
32
+ *
33
+ * Profile-declared attributes (`type:`, `Derived-from:`, `Verifies:`,
34
+ * `Allocated-to:`, `Element-kind:`, `Test-level:`, compliance attributes,
35
+ * …) are not listed here; they appear at runtime via the active profile's
36
+ * manifest.
37
+ */
38
+ exports.ATTRIBUTE_CATALOG = [
39
+ // Identity — required on every entry, shape-discriminated by value format
40
+ {
41
+ key: "Id",
42
+ type: "id",
43
+ origin: "assigned",
44
+ shapes: BOTH_SHAPES,
45
+ required: true,
46
+ },
47
+ // Universal — apply to every entry
48
+ {
49
+ key: "Labels",
50
+ type: "tag-list",
51
+ origin: "authored",
52
+ shapes: BOTH_SHAPES,
53
+ required: false,
54
+ },
55
+ {
56
+ key: "References",
57
+ type: "citation",
58
+ origin: "authored",
59
+ shapes: CITING_SHAPES,
60
+ required: false,
61
+ },
62
+ {
63
+ key: "External-id",
64
+ type: "external-id",
65
+ origin: "authored",
66
+ shapes: BOTH_SHAPES,
67
+ required: false,
68
+ },
69
+ {
70
+ key: "Supersedes",
71
+ type: "id",
72
+ origin: "authored",
73
+ shapes: BOTH_SHAPES,
74
+ required: false,
75
+ },
76
+ {
77
+ key: "Superseded-by",
78
+ type: "id",
79
+ origin: "generated",
80
+ shapes: BOTH_SHAPES,
81
+ required: false,
82
+ },
83
+ {
84
+ key: "Deprecated",
85
+ type: "text",
86
+ origin: "authored",
87
+ shapes: BOTH_SHAPES,
88
+ required: false,
89
+ },
90
+ ];
91
+ /** Canonical Title-Case attribute keys the core recognizes. */
92
+ exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG
93
+ .map((spec) => spec.key);
94
+ // ---------------------------------------------------------------------------
95
+ // Lookup helpers
96
+ // ---------------------------------------------------------------------------
97
+ const SPEC_BY_KEY = new Map(exports.ATTRIBUTE_CATALOG.map((spec) => [spec.key, spec]));
98
+ /** Look up an attribute specification by its canonical key. */
99
+ function attributeSpec(key) {
100
+ return SPEC_BY_KEY.get(key);
101
+ }
@@ -0,0 +1,381 @@
1
+ /**
2
+ * @module model
3
+ *
4
+ * MarkSpec document model — AST types, ID types, and project configuration.
5
+ */
6
+ export { ATTRIBUTE_CATALOG, attributeSpec, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
7
+ export type { AttributeSpec } from "./attributes.js";
8
+ /**
9
+ * Human-readable entry identifier from the `[...]` bracket marker.
10
+ *
11
+ * The core accepts any non-empty, project-unique string. Profiles may
12
+ * tighten by declaring per-type `display-id-pattern:` templates, used for
13
+ * both ID minting and type inference.
14
+ *
15
+ * For referenced entries the display ID is a slug (pandoc/BibTeX cite-key
16
+ * convention, e.g., `ISO-26262-6`, `serde`, `smith2021`). The leading `@`
17
+ * in `[@slug]` is accepted as Pandoc sugar and stripped during parsing.
18
+ */
19
+ export type DisplayId = string;
20
+ /**
21
+ * Universally unique identifier, bare 26-character Crockford base32.
22
+ *
23
+ * Used as the `Id:` attribute value for identified entries. Assigned by
24
+ * tooling, never hand-authored, immutable once assigned.
25
+ */
26
+ export type Ulid = string;
27
+ /** Points to a span within a source file. */
28
+ export interface SourceLocation {
29
+ /** Absolute or project-relative file path. */
30
+ readonly file: string;
31
+ /** 1-based line number of the entry start. */
32
+ readonly line: number;
33
+ /** 1-based column number of the entry start. */
34
+ readonly column: number;
35
+ }
36
+ /** A single `Key: Value` pair from an attribute block. */
37
+ export interface Attribute {
38
+ /** Attribute name (e.g., `Id`, `Satisfies`, `Labels`). */
39
+ readonly key: string;
40
+ /** Raw attribute value string. */
41
+ readonly value: string;
42
+ }
43
+ /**
44
+ * Collated attributes keyed by Title-Case attribute name.
45
+ *
46
+ * Repeatable types (`id-list`, `tag-list`, `external-id`) carry one entry
47
+ * per value after CSV-splitting and multi-line merging; `citation` carries
48
+ * one entry per occurrence (no CSV-splitting, locators may contain `,`).
49
+ * Single-valued types carry a one-element array; if the author wrote the
50
+ * attribute twice, the later value wins but both appear in
51
+ * {@linkcode Entry.rawAttributes} for round-trip fidelity.
52
+ *
53
+ * This is the representation the validator, formatter, and compiler consult
54
+ * for typed processing; {@linkcode Entry.rawAttributes} is the source of truth
55
+ * for exact round-trip through `markspec format`.
56
+ */
57
+ export type TypedAttributes = ReadonlyMap<string, readonly string[]>;
58
+ /** The origin format of the entry. */
59
+ export type EntrySource = "markdown" | "doc-comment";
60
+ /**
61
+ * Entry shape — one of two semantics-free categories the core recognizes.
62
+ *
63
+ * - `identified` — content unit the project authors and owns; `Id:` value
64
+ * is a bare ULID.
65
+ * - `referenced` — citation pointing to an external artifact; `Id:` value
66
+ * is a scheme-qualified URI (RFC 3986): `urn:`, `doi:`, `pkg:`,
67
+ * `https:`, `isbn:`, …
68
+ *
69
+ * Shape is determined by the `Id:` attribute's value format, not by the
70
+ * display-ID format or the document context. Concrete types
71
+ * (`requirement`, `test`, `unit`, `standard`, `dependency`, …) are declared
72
+ * by the active profile, not by the core.
73
+ */
74
+ export type EntryShape = "identified" | "referenced";
75
+ /** Core-reserved identity attribute name. */
76
+ export declare const IDENTITY_KEY: "Id";
77
+ /** Regex matching a bare ULID (identified-entry `Id:` value). */
78
+ export declare const ULID_RE: RegExp;
79
+ /**
80
+ * Regex matching a scheme-qualified URI (RFC 3986 §3.1 scheme).
81
+ *
82
+ * A scheme starts with a letter, followed by letters/digits/`+`/`-`/`.`,
83
+ * terminated by `:`. This is the gate that distinguishes a URI value from
84
+ * a bare slug in an `Id:` attribute.
85
+ */
86
+ export declare const URI_SCHEME_RE: RegExp;
87
+ /**
88
+ * Decide the shape of an entry from its `Id:` value.
89
+ *
90
+ * Returns `undefined` for inputs that are neither a bare ULID nor a
91
+ * scheme-qualified URI — the caller emits a validation error.
92
+ */
93
+ export declare function shapeFromIdValue(value: string): EntryShape | undefined;
94
+ /**
95
+ * Origin of an attribute value.
96
+ *
97
+ * - `authored` — written by the author in the source file.
98
+ * - `inferred` — pre-filled by `markspec format` from a heuristic,
99
+ * committed to source, author-overridable.
100
+ * - `assigned` — generated fresh by `markspec format` at creation time
101
+ * (the ULID inside an identified-entry `Id:`). Never derived, never
102
+ * changes after assignment.
103
+ * - `generated` — computed at build time from inverse relations.
104
+ * Never committed to source.
105
+ */
106
+ export type AttributeOrigin = "authored" | "inferred" | "assigned" | "generated";
107
+ /**
108
+ * Attribute value type (14 types).
109
+ *
110
+ * Cardinality is encoded in the type:
111
+ * - Repeatable: `id-list`, `tag-list`, `citation`, `external-id`.
112
+ * - Single-valued: everything else.
113
+ *
114
+ * Repeatable types accept multi-line and (except `citation`) CSV on input;
115
+ * the formatter always emits multi-line form.
116
+ */
117
+ export type AttributeValueType = "id" | "id-list" | "uri" | "url" | "path" | "path-or-id" | "enum" | "tag-list" | "text" | "citation" | "external-id" | "integer" | "date" | "boolean";
118
+ /**
119
+ * Observed properties of an entry.
120
+ *
121
+ * Properties are model-level observations — never authored in source, never
122
+ * round-trip through `markspec format`, not in git diffs. Each category is
123
+ * optional; absence means "not observed (yet)".
124
+ */
125
+ export interface EntryProperties {
126
+ /** Repository location. */
127
+ readonly file?: {
128
+ readonly path: string;
129
+ readonly line?: number;
130
+ readonly column?: number;
131
+ };
132
+ /** Version-control observations. */
133
+ readonly git?: {
134
+ readonly createdAt?: string;
135
+ readonly modifiedAt?: string;
136
+ readonly contributors?: readonly string[];
137
+ readonly revision?: string;
138
+ };
139
+ /** External connector state. */
140
+ readonly sync?: {
141
+ readonly lastSyncedAt?: string;
142
+ readonly remoteState?: string;
143
+ readonly externalSource?: string;
144
+ };
145
+ /** Compilation-time provenance. */
146
+ readonly build?: {
147
+ readonly resolutionSource?: string;
148
+ readonly registryOrigin?: string;
149
+ };
150
+ /**
151
+ * Entry-source provenance — set when an entry is produced by an adapter
152
+ * other than the Markdown parser (doc-comment extractor, SBOM ingester,
153
+ * ECAD/PLM connector).
154
+ */
155
+ readonly source?: {
156
+ readonly type: string;
157
+ readonly adapter?: string;
158
+ readonly language?: string;
159
+ readonly rule?: string;
160
+ readonly extractedAt?: string;
161
+ };
162
+ }
163
+ /**
164
+ * A parsed MarkSpec entry — the core AST node.
165
+ *
166
+ * The `shape` field discriminates the two core categories:
167
+ * - `identified` entries carry a bare ULID in `id` (populated).
168
+ * - `referenced` entries carry a URI in `id` (populated).
169
+ *
170
+ * The `type` field holds the active profile's classification for the entry
171
+ * (inferred from the display-ID pattern or authored explicitly via a
172
+ * `type:` attribute). It is `undefined` when no profile rule classifies
173
+ * the entry.
174
+ */
175
+ export interface Entry {
176
+ /** Human-readable display ID from the `[...]` marker. */
177
+ readonly displayId: DisplayId;
178
+ /** Entry title — text after the closing `]` on the first line. */
179
+ readonly title: string;
180
+ /** Body content (paragraphs, alerts, code blocks) between title and attributes. */
181
+ readonly body: string;
182
+ /**
183
+ * Source-order raw attribute array. Used by the formatter for round-trip
184
+ * fidelity (preserving key casing, line order, and trailing backslashes).
185
+ * For lookup-oriented access, use `typedAttributes` — the collated,
186
+ * CSV-split Map view of the same data.
187
+ */
188
+ readonly rawAttributes: readonly Attribute[];
189
+ /**
190
+ * Collated, typed view of {@linkcode Entry.rawAttributes}.
191
+ *
192
+ * Populated by the parser alongside `rawAttributes`. Downstream layers
193
+ * (validator, compiler) consult this map for typed processing; the
194
+ * formatter still reads `rawAttributes` for exact round-trip.
195
+ */
196
+ readonly typedAttributes: TypedAttributes;
197
+ /**
198
+ * Value of the `Id:` attribute — a ULID for identified entries, a URI for
199
+ * referenced entries. Absent when `Id:` was missing or malformed.
200
+ */
201
+ readonly id?: string;
202
+ /**
203
+ * Profile-declared type for this entry, when classified.
204
+ *
205
+ * Normally inferred by the active profile from the display-ID prefix
206
+ * matching a declared `display-id-pattern:`. An explicit `type:`
207
+ * attribute in source overrides inference. Absent when no profile rule
208
+ * matches (e.g., free-form display ID with no `type:` attribute).
209
+ */
210
+ readonly type?: string;
211
+ /** Entry shape — `identified` or `referenced`. */
212
+ readonly shape: EntryShape;
213
+ /** Where the entry was found. */
214
+ readonly location: SourceLocation;
215
+ /** Whether this came from a Markdown file or a doc comment. */
216
+ readonly source: EntrySource;
217
+ /**
218
+ * Observed properties (file path, git history, sync state, build origin,
219
+ * source-adapter provenance).
220
+ */
221
+ readonly properties?: EntryProperties;
222
+ }
223
+ /** Severity level for diagnostics. */
224
+ export type Severity = "error" | "warning" | "info";
225
+ /** A diagnostic message produced by parsing, formatting, or validation. */
226
+ export interface Diagnostic {
227
+ /** Unique rule ID (e.g., `MSL-E001`). */
228
+ readonly code: string;
229
+ /** Severity level. */
230
+ readonly severity: Severity;
231
+ /** Human-readable message. */
232
+ readonly message: string;
233
+ /** Source location, if applicable. */
234
+ readonly location: SourceLocation | undefined;
235
+ }
236
+ /** Default RefHub URL used as implicit fallback for parent registries. */
237
+ export declare const REFHUB_URL = "https://driftsys.github.io/refhub";
238
+ /** MarkSpec project configuration from `project.yaml`. */
239
+ export interface ProjectConfig {
240
+ /** Project name (e.g., `io.driftsys.markspec`). */
241
+ readonly name: string;
242
+ /** Project version string. */
243
+ readonly version: string;
244
+ /** Allowed label vocabulary (e.g., `["ASIL-A", "ASIL-B"]`). Empty = no constraint. */
245
+ readonly labels: readonly string[];
246
+ /** Upstream parent registry URLs, searched in order. */
247
+ readonly parents: readonly string[];
248
+ /** Fallback registry URL when parents don't resolve a reference. */
249
+ readonly parentFallback: string;
250
+ }
251
+ /** Default configuration used when no `project.yaml` is found. */
252
+ export declare const DEFAULT_PROJECT_CONFIG: ProjectConfig;
253
+ /** A single field-level validation error in `project.yaml`. */
254
+ export interface ConfigFieldError {
255
+ /** The YAML field path (e.g., `domain`, `parents[0]`). */
256
+ readonly field: string;
257
+ /** Human-readable error message. */
258
+ readonly message: string;
259
+ /** 1-based line number in the YAML file, if determinable. */
260
+ readonly line: number | undefined;
261
+ }
262
+ /** A detected table or figure caption in a Markdown document. */
263
+ export interface Caption {
264
+ readonly kind: "table" | "figure";
265
+ readonly slug: string;
266
+ readonly text: string;
267
+ readonly location: SourceLocation;
268
+ }
269
+ /** Error thrown when `project.yaml` is invalid. */
270
+ export declare class ConfigError extends Error {
271
+ /** Path to the `project.yaml` file. */
272
+ readonly configPath: string;
273
+ /** Individual field errors. */
274
+ readonly fieldErrors: readonly ConfigFieldError[];
275
+ constructor(configPath: string, fieldErrors: readonly ConfigFieldError[]);
276
+ }
277
+ /**
278
+ * A MarkSpec directive extracted from an HTML comment.
279
+ *
280
+ * Directives use the form `<!-- markspec:<name> <payload> -->` inside
281
+ * Markdown files to annotate documents with processing hints (e.g.,
282
+ * `markspec:deck`, `markspec:deprecated`).
283
+ */
284
+ export interface Directive {
285
+ readonly name: string;
286
+ readonly payload: string;
287
+ readonly location: SourceLocation;
288
+ }
289
+ /** An inline reference found in prose text via `{{namespace.id}}` syntax. */
290
+ export interface InlineRef {
291
+ readonly namespace: string;
292
+ readonly refId: string;
293
+ readonly location: SourceLocation;
294
+ }
295
+ /**
296
+ * Kind of directional link between entries — relation name lifted from the
297
+ * source attribute.
298
+ *
299
+ * The core bakes in only `supersedes` (universal retirement). All other
300
+ * relation names listed here are conventions recognized by shipped profile
301
+ * packages; in a profile-aware pipeline, link kinds come from the active
302
+ * profile's `traceability:` declarations rather than this closed union.
303
+ */
304
+ export type LinkKind = "satisfies" | "derived-from" | "references" | "allocated-to" | "realizes" | "verifies" | "tests" | "depends-on" | "part-of" | "generated-from" | "supersedes";
305
+ /** A directional link between two entries in the traceability graph. */
306
+ export interface Link {
307
+ readonly from: DisplayId;
308
+ readonly to: DisplayId;
309
+ readonly kind: LinkKind;
310
+ readonly location: SourceLocation;
311
+ }
312
+ /**
313
+ * Document-level attributes authored in YAML front matter.
314
+ *
315
+ * Keys use kebab-case (YAML-ecosystem convention). Core keys below; profiles
316
+ * declare additional keys; `.markspec.yaml` → `frontMatter.allowedKeys`
317
+ * allowlists ecosystem keys (Hugo, Jekyll, Docusaurus). Keys forbidden by
318
+ * the language spec (`title`, `description`, `date`, `authors`, …) are
319
+ * rejected by MSL-D001 and never reach this map.
320
+ */
321
+ export interface DocumentAttributes {
322
+ /**
323
+ * Document identity — ULID (identified) or URI (referenced), same
324
+ * discrimination rule as entry `Id:`. Conventionally a ULID for
325
+ * project-authored documents.
326
+ */
327
+ readonly "document-id"?: string;
328
+ /** Overrides filename/directive-based type detection. */
329
+ readonly "document-type"?: string;
330
+ /** Classification tags (`tag-list`). */
331
+ readonly labels?: readonly string[];
332
+ /** Retirement reason (free-text). Presence marks the document as retired. */
333
+ readonly deprecated?: string;
334
+ /** Cross-system identifier(s) (`external-id`). */
335
+ readonly "external-id"?: readonly string[];
336
+ /** `document-id` of a document this one replaces. */
337
+ readonly supersedes?: string;
338
+ /** External reference citations with optional locator (`citation`). */
339
+ readonly references?: readonly string[];
340
+ /** Org free-form metadata, never validated. */
341
+ readonly metadata?: Readonly<Record<string, unknown>>;
342
+ /** Allowlisted ecosystem keys (preserved verbatim, not validated). */
343
+ readonly extra?: Readonly<Record<string, unknown>>;
344
+ }
345
+ /**
346
+ * Observed document properties — derived, never authored.
347
+ *
348
+ * The H1, first paragraph, git history, and filesystem are the
349
+ * authoritative sources. These fields are populated progressively as
350
+ * observation support lands.
351
+ */
352
+ export interface DocumentProperties {
353
+ /** H1 heading, or filename stem fallback. */
354
+ readonly title?: string;
355
+ /** Merge-to-main count (starts at `0`). */
356
+ readonly revision?: number;
357
+ /** Contributors from `project.yaml` or git history. */
358
+ readonly authors?: readonly string[];
359
+ /** First commit timestamp, or filesystem ctime fallback. */
360
+ readonly createdAt?: string;
361
+ /** Last merge-commit timestamp, or filesystem mtime fallback. */
362
+ readonly modifiedAt?: string;
363
+ }
364
+ /**
365
+ * A parsed MarkSpec document.
366
+ *
367
+ * A Markdown (or source) file containing entries, optionally preceded by
368
+ * YAML front matter. Document metadata is split into authored `attributes`
369
+ * (front matter) and observed `properties` (H1, git, filesystem).
370
+ */
371
+ export interface Document {
372
+ /** File path (absolute or project-relative). */
373
+ readonly file: string;
374
+ /** Document-level attributes from front matter. */
375
+ readonly attributes: DocumentAttributes;
376
+ /** Observed document properties. */
377
+ readonly properties: DocumentProperties;
378
+ }
379
+ export type { AttrDecl, Cardinality, DocTypeDef, EffectiveProfile, EffectiveShapeScope, EffectiveTypeDef, EnforcementMode, InverseDecl, LoadedProfile, ProfileChain, ProfileId, ProfileManifest, ProfileSpecifier, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, TargetMatcher, TraceRule, TypeDef, ValueType, } from "./profile.js";
380
+ export { LIST_VALUE_TYPES, VALUE_TYPES } from "./profile.js";
381
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/model/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMrD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAM/B;;;;;GAKG;AACH,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