@driftsys/markspec 0.4.0 → 0.5.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 (319) hide show
  1. package/esm/ast/build.d.ts +70 -0
  2. package/esm/ast/build.d.ts.map +1 -0
  3. package/esm/ast/build.js +605 -0
  4. package/esm/ast/equivalence.d.ts +18 -0
  5. package/esm/ast/equivalence.d.ts.map +1 -0
  6. package/esm/ast/equivalence.js +56 -0
  7. package/esm/ast/nodes.d.ts +221 -0
  8. package/esm/ast/nodes.d.ts.map +1 -0
  9. package/esm/ast/nodes.js +12 -0
  10. package/esm/ast/normalize.d.ts +67 -0
  11. package/esm/ast/normalize.d.ts.map +1 -0
  12. package/esm/ast/normalize.js +255 -0
  13. package/esm/ast/render.d.ts +34 -0
  14. package/esm/ast/render.d.ts.map +1 -0
  15. package/esm/ast/render.js +215 -0
  16. package/esm/compiler/inverses.d.ts +2 -8
  17. package/esm/compiler/inverses.d.ts.map +1 -1
  18. package/esm/compiler/inverses.js +50 -14
  19. package/esm/compiler/manifest.d.ts +59 -0
  20. package/esm/compiler/manifest.d.ts.map +1 -0
  21. package/esm/compiler/manifest.js +48 -0
  22. package/esm/compiler/mod.d.ts +9 -1
  23. package/esm/compiler/mod.d.ts.map +1 -1
  24. package/esm/compiler/mod.js +21 -2
  25. package/esm/compiler/ndjson_writer.d.ts +50 -0
  26. package/esm/compiler/ndjson_writer.d.ts.map +1 -0
  27. package/esm/compiler/ndjson_writer.js +73 -0
  28. package/esm/compiler/schema.d.ts +18 -1
  29. package/esm/compiler/schema.d.ts.map +1 -1
  30. package/esm/compiler/schema.js +18 -9
  31. package/esm/config/mod.d.ts.map +1 -1
  32. package/esm/config/mod.js +54 -0
  33. package/esm/formatter/mod.d.ts +49 -4
  34. package/esm/formatter/mod.d.ts.map +1 -1
  35. package/esm/formatter/mod.js +362 -33
  36. package/esm/formatter/synth_ulid.d.ts +21 -0
  37. package/esm/formatter/synth_ulid.d.ts.map +1 -0
  38. package/esm/formatter/synth_ulid.js +64 -0
  39. package/esm/lint/mod.d.ts +10 -0
  40. package/esm/lint/mod.d.ts.map +1 -0
  41. package/esm/lint/mod.js +7 -0
  42. package/esm/lint/rules/lexicon.d.ts +24 -0
  43. package/esm/lint/rules/lexicon.d.ts.map +1 -0
  44. package/esm/lint/rules/lexicon.js +236 -0
  45. package/esm/lint/rules/struct.d.ts +17 -0
  46. package/esm/lint/rules/struct.d.ts.map +1 -0
  47. package/esm/lint/rules/struct.js +55 -0
  48. package/esm/lint/rules/suppression.d.ts +19 -0
  49. package/esm/lint/rules/suppression.d.ts.map +1 -0
  50. package/esm/lint/rules/suppression.js +75 -0
  51. package/esm/lint/runner.d.ts +39 -0
  52. package/esm/lint/runner.d.ts.map +1 -0
  53. package/esm/lint/runner.js +112 -0
  54. package/esm/lint/types.d.ts +19 -0
  55. package/esm/lint/types.d.ts.map +1 -0
  56. package/esm/lint/types.js +9 -0
  57. package/esm/mod.d.ts +19 -6
  58. package/esm/mod.d.ts.map +1 -1
  59. package/esm/mod.js +14 -3
  60. package/esm/model/attributes.d.ts.map +1 -1
  61. package/esm/model/attributes.js +163 -2
  62. package/esm/model/discriminating_attr.d.ts +33 -0
  63. package/esm/model/discriminating_attr.d.ts.map +1 -0
  64. package/esm/model/discriminating_attr.js +74 -0
  65. package/esm/model/mod.d.ts +98 -3
  66. package/esm/model/mod.d.ts.map +1 -1
  67. package/esm/model/mod.js +57 -2
  68. package/esm/model/profile.d.ts +33 -27
  69. package/esm/model/profile.d.ts.map +1 -1
  70. package/esm/model/source_introspection.d.ts +26 -0
  71. package/esm/model/source_introspection.d.ts.map +1 -0
  72. package/esm/model/source_introspection.js +77 -0
  73. package/esm/model/type_hierarchy.d.ts +51 -0
  74. package/esm/model/type_hierarchy.d.ts.map +1 -0
  75. package/esm/model/type_hierarchy.js +126 -0
  76. package/esm/model/uri_scheme_map.d.ts +21 -0
  77. package/esm/model/uri_scheme_map.d.ts.map +1 -0
  78. package/esm/model/uri_scheme_map.js +66 -0
  79. package/esm/parser/attributes.d.ts.map +1 -1
  80. package/esm/parser/attributes.js +9 -6
  81. package/esm/parser/entity_refs.d.ts +53 -0
  82. package/esm/parser/entity_refs.d.ts.map +1 -0
  83. package/esm/parser/entity_refs.js +151 -0
  84. package/esm/parser/glossary.d.ts +43 -0
  85. package/esm/parser/glossary.d.ts.map +1 -0
  86. package/esm/parser/glossary.js +217 -0
  87. package/esm/parser/markdown.d.ts.map +1 -1
  88. package/esm/parser/markdown.js +223 -7
  89. package/esm/parser/mod.d.ts +1 -0
  90. package/esm/parser/mod.d.ts.map +1 -1
  91. package/esm/parser/mod.js +1 -0
  92. package/esm/parser/source.d.ts +20 -0
  93. package/esm/parser/source.d.ts.map +1 -1
  94. package/esm/parser/source.js +3 -3
  95. package/esm/profile/chain.js +3 -13
  96. package/esm/profile/colors.js +1 -1
  97. package/esm/profile/introspect.d.ts +135 -0
  98. package/esm/profile/introspect.d.ts.map +1 -0
  99. package/esm/profile/introspect.js +378 -0
  100. package/esm/profile/load.d.ts.map +1 -1
  101. package/esm/profile/load.js +67 -0
  102. package/esm/profile/manifest.d.ts.map +1 -1
  103. package/esm/profile/manifest.js +277 -88
  104. package/esm/profile/merge.js +139 -39
  105. package/esm/profile/mod.d.ts +2 -4
  106. package/esm/profile/mod.d.ts.map +1 -1
  107. package/esm/profile/mod.js +5 -2
  108. package/esm/reporter/mod.js +4 -4
  109. package/esm/util/fence.d.ts +30 -0
  110. package/esm/util/fence.d.ts.map +1 -0
  111. package/esm/util/fence.js +40 -0
  112. package/esm/validator/attributes.d.ts +3 -3
  113. package/esm/validator/attributes.d.ts.map +1 -1
  114. package/esm/validator/attributes.js +1 -18
  115. package/esm/validator/body_blocks.d.ts +38 -0
  116. package/esm/validator/body_blocks.d.ts.map +1 -0
  117. package/esm/validator/body_blocks.js +218 -0
  118. package/esm/validator/caption_convention.d.ts +29 -0
  119. package/esm/validator/caption_convention.d.ts.map +1 -0
  120. package/esm/validator/caption_convention.js +58 -0
  121. package/esm/validator/captions.d.ts +22 -0
  122. package/esm/validator/captions.d.ts.map +1 -0
  123. package/esm/validator/captions.js +137 -0
  124. package/esm/validator/component_schemes.d.ts +73 -0
  125. package/esm/validator/component_schemes.d.ts.map +1 -0
  126. package/esm/validator/component_schemes.js +375 -0
  127. package/esm/validator/feature_ac.d.ts +28 -0
  128. package/esm/validator/feature_ac.d.ts.map +1 -0
  129. package/esm/validator/feature_ac.js +102 -0
  130. package/esm/validator/listing.d.ts +42 -0
  131. package/esm/validator/listing.d.ts.map +1 -0
  132. package/esm/validator/listing.js +295 -0
  133. package/esm/validator/mod.d.ts +2 -0
  134. package/esm/validator/mod.d.ts.map +1 -1
  135. package/esm/validator/mod.js +253 -12
  136. package/esm/validator/modal_keywords.d.ts +23 -0
  137. package/esm/validator/modal_keywords.d.ts.map +1 -0
  138. package/esm/validator/modal_keywords.js +137 -0
  139. package/esm/validator/per_type_attrs.d.ts +29 -0
  140. package/esm/validator/per_type_attrs.d.ts.map +1 -0
  141. package/esm/validator/per_type_attrs.js +75 -0
  142. package/esm/validator/pipeline.d.ts +7 -2
  143. package/esm/validator/pipeline.d.ts.map +1 -1
  144. package/esm/validator/pipeline.js +40 -7
  145. package/esm/validator/trace_types.d.ts +26 -0
  146. package/esm/validator/trace_types.d.ts.map +1 -0
  147. package/esm/validator/trace_types.js +232 -0
  148. package/esm/validator/traceability.d.ts +3 -4
  149. package/esm/validator/traceability.d.ts.map +1 -1
  150. package/esm/validator/traceability.js +5 -10
  151. package/esm/validator/type_resolution.d.ts +67 -0
  152. package/esm/validator/type_resolution.d.ts.map +1 -0
  153. package/esm/validator/type_resolution.js +140 -0
  154. package/esm/validator/types.d.ts +45 -0
  155. package/esm/validator/types.d.ts.map +1 -1
  156. package/esm/validator/types.js +128 -16
  157. package/esm/validator/value_types.d.ts +8 -0
  158. package/esm/validator/value_types.d.ts.map +1 -1
  159. package/esm/validator/value_types.js +8 -1
  160. package/package.json +1 -1
  161. package/script/ast/build.d.ts +70 -0
  162. package/script/ast/build.d.ts.map +1 -0
  163. package/script/ast/build.js +610 -0
  164. package/script/ast/equivalence.d.ts +18 -0
  165. package/script/ast/equivalence.d.ts.map +1 -0
  166. package/script/ast/equivalence.js +59 -0
  167. package/script/ast/nodes.d.ts +221 -0
  168. package/script/ast/nodes.d.ts.map +1 -0
  169. package/script/ast/nodes.js +13 -0
  170. package/script/ast/normalize.d.ts +67 -0
  171. package/script/ast/normalize.d.ts.map +1 -0
  172. package/script/ast/normalize.js +258 -0
  173. package/script/ast/render.d.ts +34 -0
  174. package/script/ast/render.d.ts.map +1 -0
  175. package/script/ast/render.js +218 -0
  176. package/script/compiler/inverses.d.ts +2 -8
  177. package/script/compiler/inverses.d.ts.map +1 -1
  178. package/script/compiler/inverses.js +50 -14
  179. package/script/compiler/manifest.d.ts +59 -0
  180. package/script/compiler/manifest.d.ts.map +1 -0
  181. package/script/compiler/manifest.js +51 -0
  182. package/script/compiler/mod.d.ts +9 -1
  183. package/script/compiler/mod.d.ts.map +1 -1
  184. package/script/compiler/mod.js +21 -2
  185. package/script/compiler/ndjson_writer.d.ts +50 -0
  186. package/script/compiler/ndjson_writer.d.ts.map +1 -0
  187. package/script/compiler/ndjson_writer.js +78 -0
  188. package/script/compiler/schema.d.ts +18 -1
  189. package/script/compiler/schema.d.ts.map +1 -1
  190. package/script/compiler/schema.js +18 -8
  191. package/script/config/mod.d.ts.map +1 -1
  192. package/script/config/mod.js +54 -0
  193. package/script/formatter/mod.d.ts +49 -4
  194. package/script/formatter/mod.d.ts.map +1 -1
  195. package/script/formatter/mod.js +365 -33
  196. package/script/formatter/synth_ulid.d.ts +21 -0
  197. package/script/formatter/synth_ulid.d.ts.map +1 -0
  198. package/script/formatter/synth_ulid.js +67 -0
  199. package/script/lint/mod.d.ts +10 -0
  200. package/script/lint/mod.d.ts.map +1 -0
  201. package/script/lint/mod.js +12 -0
  202. package/script/lint/rules/lexicon.d.ts +24 -0
  203. package/script/lint/rules/lexicon.d.ts.map +1 -0
  204. package/script/lint/rules/lexicon.js +240 -0
  205. package/script/lint/rules/struct.d.ts +17 -0
  206. package/script/lint/rules/struct.d.ts.map +1 -0
  207. package/script/lint/rules/struct.js +59 -0
  208. package/script/lint/rules/suppression.d.ts +19 -0
  209. package/script/lint/rules/suppression.d.ts.map +1 -0
  210. package/script/lint/rules/suppression.js +80 -0
  211. package/script/lint/runner.d.ts +39 -0
  212. package/script/lint/runner.d.ts.map +1 -0
  213. package/script/lint/runner.js +116 -0
  214. package/script/lint/types.d.ts +19 -0
  215. package/script/lint/types.d.ts.map +1 -0
  216. package/script/lint/types.js +10 -0
  217. package/script/mod.d.ts +19 -6
  218. package/script/mod.d.ts.map +1 -1
  219. package/script/mod.js +56 -32
  220. package/script/model/attributes.d.ts.map +1 -1
  221. package/script/model/attributes.js +163 -2
  222. package/script/model/discriminating_attr.d.ts +33 -0
  223. package/script/model/discriminating_attr.d.ts.map +1 -0
  224. package/script/model/discriminating_attr.js +77 -0
  225. package/script/model/mod.d.ts +98 -3
  226. package/script/model/mod.d.ts.map +1 -1
  227. package/script/model/mod.js +64 -3
  228. package/script/model/profile.d.ts +33 -27
  229. package/script/model/profile.d.ts.map +1 -1
  230. package/script/model/source_introspection.d.ts +26 -0
  231. package/script/model/source_introspection.d.ts.map +1 -0
  232. package/script/model/source_introspection.js +80 -0
  233. package/script/model/type_hierarchy.d.ts +51 -0
  234. package/script/model/type_hierarchy.d.ts.map +1 -0
  235. package/script/model/type_hierarchy.js +130 -0
  236. package/script/model/uri_scheme_map.d.ts +21 -0
  237. package/script/model/uri_scheme_map.d.ts.map +1 -0
  238. package/script/model/uri_scheme_map.js +69 -0
  239. package/script/parser/attributes.d.ts.map +1 -1
  240. package/script/parser/attributes.js +9 -6
  241. package/script/parser/entity_refs.d.ts +53 -0
  242. package/script/parser/entity_refs.d.ts.map +1 -0
  243. package/script/parser/entity_refs.js +155 -0
  244. package/script/parser/glossary.d.ts +43 -0
  245. package/script/parser/glossary.d.ts.map +1 -0
  246. package/script/parser/glossary.js +221 -0
  247. package/script/parser/markdown.d.ts.map +1 -1
  248. package/script/parser/markdown.js +222 -6
  249. package/script/parser/mod.d.ts +1 -0
  250. package/script/parser/mod.d.ts.map +1 -1
  251. package/script/parser/mod.js +5 -1
  252. package/script/parser/source.d.ts +20 -0
  253. package/script/parser/source.d.ts.map +1 -1
  254. package/script/parser/source.js +3 -0
  255. package/script/profile/chain.js +3 -13
  256. package/script/profile/colors.js +1 -1
  257. package/script/profile/introspect.d.ts +135 -0
  258. package/script/profile/introspect.d.ts.map +1 -0
  259. package/script/profile/introspect.js +381 -0
  260. package/script/profile/load.d.ts.map +1 -1
  261. package/script/profile/load.js +67 -0
  262. package/script/profile/manifest.d.ts.map +1 -1
  263. package/script/profile/manifest.js +276 -87
  264. package/script/profile/merge.js +139 -39
  265. package/script/profile/mod.d.ts +2 -4
  266. package/script/profile/mod.d.ts.map +1 -1
  267. package/script/profile/mod.js +7 -6
  268. package/script/reporter/mod.js +4 -4
  269. package/script/util/fence.d.ts +30 -0
  270. package/script/util/fence.d.ts.map +1 -0
  271. package/script/util/fence.js +44 -0
  272. package/script/validator/attributes.d.ts +3 -3
  273. package/script/validator/attributes.d.ts.map +1 -1
  274. package/script/validator/attributes.js +1 -18
  275. package/script/validator/body_blocks.d.ts +38 -0
  276. package/script/validator/body_blocks.d.ts.map +1 -0
  277. package/script/validator/body_blocks.js +221 -0
  278. package/script/validator/caption_convention.d.ts +29 -0
  279. package/script/validator/caption_convention.d.ts.map +1 -0
  280. package/script/validator/caption_convention.js +61 -0
  281. package/script/validator/captions.d.ts +22 -0
  282. package/script/validator/captions.d.ts.map +1 -0
  283. package/script/validator/captions.js +140 -0
  284. package/script/validator/component_schemes.d.ts +73 -0
  285. package/script/validator/component_schemes.d.ts.map +1 -0
  286. package/script/validator/component_schemes.js +384 -0
  287. package/script/validator/feature_ac.d.ts +28 -0
  288. package/script/validator/feature_ac.d.ts.map +1 -0
  289. package/script/validator/feature_ac.js +105 -0
  290. package/script/validator/listing.d.ts +42 -0
  291. package/script/validator/listing.d.ts.map +1 -0
  292. package/script/validator/listing.js +298 -0
  293. package/script/validator/mod.d.ts +2 -0
  294. package/script/validator/mod.d.ts.map +1 -1
  295. package/script/validator/mod.js +256 -14
  296. package/script/validator/modal_keywords.d.ts +23 -0
  297. package/script/validator/modal_keywords.d.ts.map +1 -0
  298. package/script/validator/modal_keywords.js +140 -0
  299. package/script/validator/per_type_attrs.d.ts +29 -0
  300. package/script/validator/per_type_attrs.d.ts.map +1 -0
  301. package/script/validator/per_type_attrs.js +78 -0
  302. package/script/validator/pipeline.d.ts +7 -2
  303. package/script/validator/pipeline.d.ts.map +1 -1
  304. package/script/validator/pipeline.js +39 -6
  305. package/script/validator/trace_types.d.ts +26 -0
  306. package/script/validator/trace_types.d.ts.map +1 -0
  307. package/script/validator/trace_types.js +235 -0
  308. package/script/validator/traceability.d.ts +3 -4
  309. package/script/validator/traceability.d.ts.map +1 -1
  310. package/script/validator/traceability.js +5 -10
  311. package/script/validator/type_resolution.d.ts +67 -0
  312. package/script/validator/type_resolution.d.ts.map +1 -0
  313. package/script/validator/type_resolution.js +146 -0
  314. package/script/validator/types.d.ts +45 -0
  315. package/script/validator/types.d.ts.map +1 -1
  316. package/script/validator/types.js +131 -16
  317. package/script/validator/value_types.d.ts +8 -0
  318. package/script/validator/value_types.d.ts.map +1 -1
  319. package/script/validator/value_types.js +10 -2
package/esm/mod.js CHANGED
@@ -8,21 +8,32 @@
8
8
  * from core/mod.ts, never from internal paths.
9
9
  */
10
10
  import "./_dnt.polyfills.js";
11
- export const VERSION = "0.0.1";
11
+ export const VERSION = "0.5.0";
12
+ export const CORE_SCHEMA_VERSION = 1;
12
13
  // Model types
13
14
  export { ConfigError, DEFAULT_PROJECT_CONFIG, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
15
+ // AST (canonical body-AST — spec docs/specs/markspec-core-data-model.md §2)
16
+ // SourceRange is body-relative (no `file`); use SourceLocation for file-absolute positions.
17
+ export { astEquivalent } from "./ast/equivalence.js";
18
+ export { normalizeBodyAst } from "./ast/normalize.js";
19
+ export { render } from "./ast/render.js";
14
20
  // Config
15
21
  export { discoverProjectRoot, loadConfig, parseProjectConfig, } from "./config/mod.js";
16
- export { MARKSPEC_YAML_FILENAME, parseMarkspecYaml, readMarkspecYaml, } from "./config/markspec.js";
22
+ export { addProfileSpecifier, MARKSPEC_YAML_FILENAME, parseMarkspecYaml, readMarkspecYaml, } from "./config/markspec.js";
17
23
  // Profile system (ADR-008)
18
24
  export { computeCacheKey, computeCacheLocation, defaultAppendFile, defaultRunGit, ensureCacheGitignored, loadChain, loadProfileForCommand, mergeChain, parseManifest, resolveEntryColor, resolveGitSpecifier, resolveLocalSpecifier, } from "./profile/mod.js";
25
+ export { buildProfileIntrospection } from "./profile/mod.js";
19
26
  // Parser
20
27
  export { detectCaptions, detectDirectives, detectInlineRefs, isSupportedExtension, loadGrammar, parse, parseFile, parseSource, } from "./parser/mod.js";
21
28
  // Formatter
22
29
  export { format } from "./formatter/mod.js";
23
30
  // Validator
24
- export { classifyEntriesStage, classifyEntry, compileDisplayIdPattern, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, validate, validateAttributesForEntry, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
31
+ export { classifyEntriesStage, classifyEntry, compileDisplayIdPattern, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, validate, validateAttributesForEntry, validateListingDocuments, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
25
32
  // Compiler
26
33
  export { compile, generateInverses, serializeCompileResult, } from "./compiler/mod.js";
34
+ export { buildManifest } from "./compiler/manifest.js";
35
+ export { buildEdgesNdjson, buildEntriesNdjson, indexToJson, } from "./compiler/ndjson_writer.js";
27
36
  // Reporter
28
37
  export { report } from "./reporter/mod.js";
38
+ // Lint (prose-analysis)
39
+ export { isProseScope, runLint } from "./lint/mod.js";
@@ -1 +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"}
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,EA0NrD,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"}
@@ -13,13 +13,13 @@
13
13
  // Universal attribute catalog
14
14
  // ---------------------------------------------------------------------------
15
15
  /** Both shapes. */
16
- const BOTH_SHAPES = ["identified", "referenced"];
16
+ const BOTH_SHAPES = ["Authored", "Reference"];
17
17
  /**
18
18
  * Shapes that carry `References:` — identified entries only. A referenced
19
19
  * entry does not itself cite other referenced entries via `References:`
20
20
  * (the replacement relation is expressed via universal `Supersedes:`).
21
21
  */
22
- const CITING_SHAPES = ["identified"];
22
+ const CITING_SHAPES = ["Authored"];
23
23
  /**
24
24
  * Full catalog of core built-in attributes.
25
25
  *
@@ -40,6 +40,49 @@ export const ATTRIBUTE_CATALOG = [
40
40
  shapes: BOTH_SHAPES,
41
41
  required: true,
42
42
  },
43
+ // Universal classification (spec §1.3 / §1.4) — apply to every entry.
44
+ // `Type` carries the information-layer classification; `Source` and
45
+ // `Origin` are universal authoring metadata (SSoT pointer, synthesis
46
+ // flag). They live in the catalogue so validators / formatters can
47
+ // look them up without per-call special-casing.
48
+ {
49
+ key: "Type",
50
+ type: "enum",
51
+ origin: "authored",
52
+ shapes: BOTH_SHAPES,
53
+ required: false,
54
+ },
55
+ {
56
+ key: "Source",
57
+ type: "path-or-id",
58
+ origin: "authored",
59
+ shapes: BOTH_SHAPES,
60
+ required: false,
61
+ },
62
+ {
63
+ key: "Origin",
64
+ type: "enum",
65
+ origin: "authored",
66
+ shapes: BOTH_SHAPES,
67
+ required: false,
68
+ enumValues: ["authored", "synthesized"],
69
+ },
70
+ // Reference-shape navigation (spec §1.5) — promoted from the RefHub
71
+ // profile to core in PR #277.
72
+ {
73
+ key: "Reference-url",
74
+ type: "url",
75
+ origin: "authored",
76
+ shapes: ["Reference"],
77
+ required: false,
78
+ },
79
+ {
80
+ key: "Reference-document",
81
+ type: "text",
82
+ origin: "authored",
83
+ shapes: ["Reference"],
84
+ required: false,
85
+ },
43
86
  // Universal — apply to every entry
44
87
  {
45
88
  key: "Labels",
@@ -83,6 +126,124 @@ export const ATTRIBUTE_CATALOG = [
83
126
  shapes: BOTH_SHAPES,
84
127
  required: false,
85
128
  },
129
+ // Generated inverses from ADR-003 §Part 3. These are NEVER authored
130
+ // in source; the compiler computes them from authored relations at
131
+ // build time. MSL-A030 catches anyone who tries to write them
132
+ // manually.
133
+ {
134
+ key: "Derives",
135
+ type: "id-list",
136
+ origin: "generated",
137
+ shapes: BOTH_SHAPES,
138
+ required: false,
139
+ },
140
+ {
141
+ key: "Satisfied-by",
142
+ type: "id-list",
143
+ origin: "generated",
144
+ shapes: BOTH_SHAPES,
145
+ required: false,
146
+ },
147
+ {
148
+ key: "Realized-by",
149
+ type: "id-list",
150
+ origin: "generated",
151
+ shapes: BOTH_SHAPES,
152
+ required: false,
153
+ },
154
+ {
155
+ key: "Verified-by",
156
+ type: "id-list",
157
+ origin: "generated",
158
+ shapes: BOTH_SHAPES,
159
+ required: false,
160
+ },
161
+ {
162
+ key: "Tested-by",
163
+ type: "id-list",
164
+ origin: "generated",
165
+ shapes: BOTH_SHAPES,
166
+ required: false,
167
+ },
168
+ {
169
+ key: "Allocated",
170
+ type: "id-list",
171
+ origin: "generated",
172
+ shapes: BOTH_SHAPES,
173
+ required: false,
174
+ },
175
+ {
176
+ key: "Contains",
177
+ type: "id-list",
178
+ origin: "generated",
179
+ shapes: BOTH_SHAPES,
180
+ required: false,
181
+ },
182
+ {
183
+ key: "Provided-by",
184
+ type: "id-list",
185
+ origin: "generated",
186
+ shapes: BOTH_SHAPES,
187
+ required: false,
188
+ },
189
+ {
190
+ key: "Required-by",
191
+ type: "id-list",
192
+ origin: "generated",
193
+ shapes: BOTH_SHAPES,
194
+ required: false,
195
+ },
196
+ {
197
+ key: "Used-by",
198
+ type: "id-list",
199
+ origin: "generated",
200
+ shapes: BOTH_SHAPES,
201
+ required: false,
202
+ },
203
+ {
204
+ key: "Caused",
205
+ type: "id-list",
206
+ origin: "generated",
207
+ shapes: BOTH_SHAPES,
208
+ required: false,
209
+ },
210
+ {
211
+ key: "Affected-by",
212
+ type: "id-list",
213
+ origin: "generated",
214
+ shapes: BOTH_SHAPES,
215
+ required: false,
216
+ },
217
+ {
218
+ key: "Mitigates",
219
+ type: "id-list",
220
+ origin: "generated",
221
+ shapes: BOTH_SHAPES,
222
+ required: false,
223
+ },
224
+ {
225
+ key: "Cited-by",
226
+ type: "id-list",
227
+ origin: "generated",
228
+ shapes: BOTH_SHAPES,
229
+ required: false,
230
+ },
231
+ // Prose-analysis suppression (spec §MSL-Q900/Q901). Authored on any entry
232
+ // to silence specific lint rule codes; requires a companion Rationale:.
233
+ {
234
+ key: "Markspec-disable",
235
+ type: "text",
236
+ origin: "authored",
237
+ shapes: BOTH_SHAPES,
238
+ required: false,
239
+ },
240
+ {
241
+ key: "Rationale",
242
+ type: "text",
243
+ origin: "authored",
244
+ shapes: BOTH_SHAPES,
245
+ required: false,
246
+ },
86
247
  ];
87
248
  /** Canonical Title-Case attribute keys the core recognizes. */
88
249
  export const UNIVERSAL_ATTRIBUTE_KEYS = ATTRIBUTE_CATALOG
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @module core/model/discriminating_attr
3
+ *
4
+ * Spec §1.3.1 step 6 — discriminating-attribute introspection.
5
+ *
6
+ * The presence of a type-specific attribute key on an entry whose core
7
+ * type is otherwise unresolved infers that type. Only attribute keys
8
+ * **uniquely owned** by a single concrete core type are listed here; keys
9
+ * shared between siblings (e.g., `Caused-by` between Record and Risk, or
10
+ * `Manufacturer` between HardwareComponent and HardwareUnit) are not
11
+ * discriminating and intentionally absent.
12
+ *
13
+ * Owner mapping is derived from spec §1.6 “Per-abstract-type and
14
+ * per-concrete-type attributes” (ADR-003 §Part 2 catalogue).
15
+ *
16
+ * `Source:` could in principle also discriminate to `SoftwareUnit`, but
17
+ * step 3 introspection already runs ahead of step 6 and would have
18
+ * matched filename/extension first — listing it here would only fire
19
+ * when the filename pattern misses, which is fine to support.
20
+ */
21
+ /**
22
+ * Infer a core type from the first discriminating attribute key present
23
+ * on the entry. `attributeKeys` is the source-order list of attribute
24
+ * keys (TitleCase-Hyphenated form, as parsed). Returns `undefined` when
25
+ * no discriminating key is found.
26
+ *
27
+ * Source order matters: if an entry mistakenly carries discriminators
28
+ * for two different types (e.g., `Verifies:` and `Schema-language:`),
29
+ * the first one in source order wins for step-6 purposes. The MSL-T022
30
+ * pass then flags the second one as incompatible.
31
+ */
32
+ export declare function inferTypeFromDiscriminatingAttr(attributeKeys: readonly string[]): string | undefined;
33
+ //# sourceMappingURL=discriminating_attr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discriminating_attr.d.ts","sourceRoot":"","sources":["../../src/model/discriminating_attr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAsCH;;;;;;;;;;GAUG;AACH,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,SAAS,MAAM,EAAE,GAC/B,MAAM,GAAG,SAAS,CAMpB"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @module core/model/discriminating_attr
3
+ *
4
+ * Spec §1.3.1 step 6 — discriminating-attribute introspection.
5
+ *
6
+ * The presence of a type-specific attribute key on an entry whose core
7
+ * type is otherwise unresolved infers that type. Only attribute keys
8
+ * **uniquely owned** by a single concrete core type are listed here; keys
9
+ * shared between siblings (e.g., `Caused-by` between Record and Risk, or
10
+ * `Manufacturer` between HardwareComponent and HardwareUnit) are not
11
+ * discriminating and intentionally absent.
12
+ *
13
+ * Owner mapping is derived from spec §1.6 “Per-abstract-type and
14
+ * per-concrete-type attributes” (ADR-003 §Part 2 catalogue).
15
+ *
16
+ * `Source:` could in principle also discriminate to `SoftwareUnit`, but
17
+ * step 3 introspection already runs ahead of step 6 and would have
18
+ * matched filename/extension first — listing it here would only fire
19
+ * when the filename pattern misses, which is fine to support.
20
+ */
21
+ /**
22
+ * Map from discriminating attribute key → unique-owner core type. Each
23
+ * key here appears in exactly one concrete type's attribute list per
24
+ * §1.6, so its presence is sufficient to infer that type.
25
+ */
26
+ const DISCRIMINATING_ATTRIBUTES = new Map([
27
+ // Test
28
+ ["Verifies", "Test"],
29
+ ["Tests", "Test"],
30
+ // Contract
31
+ ["Schema-language", "Contract"],
32
+ // Record
33
+ ["Affects", "Record"],
34
+ // Risk
35
+ ["Mitigated-by", "Risk"],
36
+ // SoftwareComponent
37
+ ["License", "SoftwareComponent"],
38
+ ["Build-manifest", "SoftwareComponent"],
39
+ ["Package-manager", "SoftwareComponent"],
40
+ // HardwareInterface
41
+ ["Bus-protocol", "HardwareInterface"],
42
+ ["Connector-type", "HardwareInterface"],
43
+ ["Voltage-level", "HardwareInterface"],
44
+ ["Signal-direction", "HardwareInterface"],
45
+ // SoftwareUnit
46
+ ["Source", "SoftwareUnit"],
47
+ ["Symbol", "SoftwareUnit"],
48
+ ["Language", "SoftwareUnit"],
49
+ // HardwareUnit
50
+ ["Footprint", "HardwareUnit"],
51
+ ["Value", "HardwareUnit"],
52
+ // Definition
53
+ ["Aliases", "Definition"],
54
+ ["See-also", "Definition"],
55
+ ]);
56
+ /**
57
+ * Infer a core type from the first discriminating attribute key present
58
+ * on the entry. `attributeKeys` is the source-order list of attribute
59
+ * keys (TitleCase-Hyphenated form, as parsed). Returns `undefined` when
60
+ * no discriminating key is found.
61
+ *
62
+ * Source order matters: if an entry mistakenly carries discriminators
63
+ * for two different types (e.g., `Verifies:` and `Schema-language:`),
64
+ * the first one in source order wins for step-6 purposes. The MSL-T022
65
+ * pass then flags the second one as incompatible.
66
+ */
67
+ export function inferTypeFromDiscriminatingAttr(attributeKeys) {
68
+ for (const key of attributeKeys) {
69
+ const type = DISCRIMINATING_ATTRIBUTES.get(key);
70
+ if (type !== undefined)
71
+ return type;
72
+ }
73
+ return undefined;
74
+ }
@@ -3,10 +3,16 @@
3
3
  *
4
4
  * MarkSpec document model — AST types, ID types, and project configuration.
5
5
  */
6
+ import type { BodyBlock } from "../ast/nodes.js";
6
7
  export { ATTRIBUTE_CATALOG, attributeSpec, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
7
8
  export type { AttributeSpec } from "./attributes.js";
8
9
  export { COLOR_NAME_RE, PALETTE_HUES } from "./palette.js";
9
10
  export type { PaletteHue } from "./palette.js";
11
+ export { attributesForType, CORE_TYPE_HIERARCHY, CORE_TYPE_SCOPED_ATTRS, } from "./type_hierarchy.js";
12
+ export type { CoreTypeDef } from "./type_hierarchy.js";
13
+ export { inferTypeFromUriScheme } from "./uri_scheme_map.js";
14
+ export { inferTypeFromSource } from "./source_introspection.js";
15
+ export { inferTypeFromDiscriminatingAttr } from "./discriminating_attr.js";
10
16
  /**
11
17
  * Human-readable entry identifier from the `[...]` bracket marker.
12
18
  *
@@ -35,6 +41,28 @@ export interface SourceLocation {
35
41
  /** 1-based column number of the entry start. */
36
42
  readonly column: number;
37
43
  }
44
+ /**
45
+ * Core abstract item types. Always valid as `Type:` values regardless of
46
+ * which profile is loaded (core-only mode included). Convention: TitleCase.
47
+ *
48
+ * - `Item` is the abstract root and serves as the bottom fallback in the
49
+ * type-resolution chain (§1.3.1 step 8).
50
+ * - `Specification`, `Component`, `Unit` are abstract+concrete parents:
51
+ * instantiable as direct fallbacks when no concrete subtype fits, and
52
+ * roots for both core concrete subtypes and profile-declared extensions.
53
+ */
54
+ export declare const CORE_ABSTRACT_TYPES: readonly ["Item", "Specification", "Component", "Unit"];
55
+ /**
56
+ * Core concrete item types (ADR-003 §Part 1). Twelve subtypes plus three
57
+ * abstract+concrete parents from {@linkcode CORE_ABSTRACT_TYPES} make up
58
+ * the "15 concrete instantiable types" the spec describes.
59
+ */
60
+ export declare const CORE_CONCRETE_TYPES: readonly ["Requirement", "Test", "Contract", "Record", "Risk", "SoftwareComponent", "HardwareComponent", "SoftwareInterface", "HardwareInterface", "SoftwareUnit", "HardwareUnit", "Definition"];
61
+ /**
62
+ * All core type names. Accepted as `Type:` values in core-only mode and
63
+ * when any profile is loaded. Profile-declared types extend this set.
64
+ */
65
+ export declare const CORE_TYPES: ReadonlySet<string>;
38
66
  /** A single `Key: Value` pair from an attribute block. */
39
67
  export interface Attribute {
40
68
  /** Attribute name (e.g., `Id`, `Satisfies`, `Labels`). */
@@ -73,7 +101,7 @@ export type EntrySource = "markdown" | "doc-comment";
73
101
  * (`requirement`, `test`, `unit`, `standard`, `dependency`, …) are declared
74
102
  * by the active profile, not by the core.
75
103
  */
76
- export type EntryShape = "identified" | "referenced";
104
+ export type EntryShape = "Authored" | "Reference";
77
105
  /** Core-reserved identity attribute name. */
78
106
  export declare const IDENTITY_KEY: "Id";
79
107
  /** Regex matching a bare ULID (identified-entry `Id:` value). */
@@ -130,6 +158,8 @@ export interface EntryProperties {
130
158
  readonly path: string;
131
159
  readonly line?: number;
132
160
  readonly column?: number;
161
+ /** ISO 8601 last-modified timestamp from the filesystem. */
162
+ readonly mtime?: string;
133
163
  };
134
164
  /** Version-control observations. */
135
165
  readonly git?: {
@@ -181,6 +211,8 @@ export interface Entry {
181
211
  readonly title: string;
182
212
  /** Body content (paragraphs, alerts, code blocks) between title and attributes. */
183
213
  readonly body: string;
214
+ /** Canonical body AST (PR 2: additive, not yet consumed). */
215
+ readonly bodyAst?: readonly BodyBlock[];
184
216
  /**
185
217
  * Source-order raw attribute array. Used by the formatter for round-trip
186
218
  * fidelity (preserving key casing, line order, and trailing backslashes).
@@ -210,7 +242,7 @@ export interface Entry {
210
242
  * matches (e.g., free-form display ID with no `type:` attribute).
211
243
  */
212
244
  readonly type?: string;
213
- /** Entry shape — `identified` or `referenced`. */
245
+ /** Entry shape — `Authored` or `Reference`. */
214
246
  readonly shape: EntryShape;
215
247
  /** Where the entry was found. */
216
248
  readonly location: SourceLocation;
@@ -221,6 +253,12 @@ export interface Entry {
221
253
  * source-adapter provenance).
222
254
  */
223
255
  readonly properties?: EntryProperties;
256
+ /**
257
+ * Inline `$Identifier` entity references discovered in the entry body
258
+ * prose (spec §2.5.2). Empty when the body contains no references.
259
+ * Resolution into the project's entity registry happens downstream.
260
+ */
261
+ readonly entityRefs?: readonly EntityRef[];
224
262
  }
225
263
  /** Severity level for diagnostics. */
226
264
  export type Severity = "error" | "warning" | "info";
@@ -237,6 +275,29 @@ export interface Diagnostic {
237
275
  }
238
276
  /** Default RefHub URL used as implicit fallback for parent registries. */
239
277
  export declare const REFHUB_URL = "https://driftsys.github.io/refhub";
278
+ /**
279
+ * Caption-position convention for a specific caption keyword.
280
+ * `"above"` — caption must appear above its block.
281
+ * `"below"` — caption must appear below its block.
282
+ */
283
+ export type CaptionPosition = "above" | "below";
284
+ /**
285
+ * Per-keyword caption-position conventions.
286
+ *
287
+ * Keys are caption keywords (e.g. `"Figure"`, `"Table"`, `"Listing"`,
288
+ * `"Feature"`, `"Equation"`, `"List"`). A missing key means no
289
+ * convention is configured for that keyword — MSL-C072 is inactive for
290
+ * unconfigured keywords.
291
+ *
292
+ * Authored in `project.yaml` under `caption-conventions:`:
293
+ *
294
+ * ```yaml
295
+ * caption-conventions:
296
+ * Figure: below
297
+ * Table: above
298
+ * ```
299
+ */
300
+ export type CaptionConventions = Readonly<Partial<Record<string, CaptionPosition>>>;
240
301
  /** MarkSpec project configuration from `project.yaml`. */
241
302
  export interface ProjectConfig {
242
303
  /** Project name (e.g., `io.driftsys.markspec`). */
@@ -249,6 +310,13 @@ export interface ProjectConfig {
249
310
  readonly parents: readonly string[];
250
311
  /** Fallback registry URL when parents don't resolve a reference. */
251
312
  readonly parentFallback: string;
313
+ /**
314
+ * Per-keyword caption-position conventions (spec §4.7 MSL-C072).
315
+ * When a key is present, the validator emits MSL-C072 if a caption
316
+ * of that keyword appears on the wrong side of its block. An empty
317
+ * or absent map means all keywords are unconstrained.
318
+ */
319
+ readonly captionConventions: CaptionConventions;
252
320
  }
253
321
  /** Default configuration used when no `project.yaml` is found. */
254
322
  export declare const DEFAULT_PROJECT_CONFIG: ProjectConfig;
@@ -294,6 +362,31 @@ export interface InlineRef {
294
362
  readonly refId: string;
295
363
  readonly location: SourceLocation;
296
364
  }
365
+ /**
366
+ * Case convention of a `$Identifier` token (spec §2.5.2). The convention
367
+ * determines which entity domain the reference resolves into.
368
+ */
369
+ export type EntityRefConvention = "type" | "instance" | "constant";
370
+ /**
371
+ * An inline `$Identifier` token found in entry body prose (spec §2.5.2).
372
+ *
373
+ * `ident` carries the leading `$`. `convention` is derived from the
374
+ * identifier's case shape:
375
+ *
376
+ * - `type` — PascalCase (`$BrakeController`).
377
+ * - `instance` — camelCase (`$rawPressure`).
378
+ * - `constant` — SCREAMING_SNAKE (`$DEBOUNCE_WINDOW`). Requires at
379
+ * least one underscore or digit to distinguish from a single-segment
380
+ * PascalCase identifier like `$ASIL`.
381
+ *
382
+ * Resolution to an entity in the project's RIDL types / code symbols /
383
+ * constants registry is performed by the validator's marker pass.
384
+ */
385
+ export interface EntityRef {
386
+ readonly ident: string;
387
+ readonly convention: EntityRefConvention;
388
+ readonly location: SourceLocation;
389
+ }
297
390
  /**
298
391
  * Kind of directional link between entries — relation name lifted from the
299
392
  * source attribute.
@@ -310,6 +403,8 @@ export interface Link {
310
403
  readonly to: DisplayId;
311
404
  readonly kind: LinkKind;
312
405
  readonly location: SourceLocation;
406
+ /** How this link was produced. Absent means authored (default). */
407
+ readonly origin?: "authored" | "generated";
313
408
  }
314
409
  /**
315
410
  * Document-level attributes authored in YAML front matter.
@@ -378,6 +473,6 @@ export interface Document {
378
473
  /** Observed document properties. */
379
474
  readonly properties: DocumentProperties;
380
475
  }
381
- 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";
476
+ export type { AttrDecl, Cardinality, DocTypeDef, EffectiveProfile, EffectiveTypeDef, EnforcementMode, InverseDecl, LabelConcern, LabelConcernKind, LabelValue, LoadedProfile, ProfileChain, ProfileConvention, ProfileId, ProfileManifest, ProfileSpecifier, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, TargetMatcher, TraceRule, TypeDef, ValueType, } from "./profile.js";
382
477
  export { LIST_VALUE_TYPES, VALUE_TYPES } from "./profile.js";
383
478
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +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;AAErD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAM/B;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAM1B,6CAA6C;AAC7C,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,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AAO,EACP,SAAS,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
package/esm/model/mod.js CHANGED
@@ -5,6 +5,60 @@
5
5
  */
6
6
  export { ATTRIBUTE_CATALOG, attributeSpec, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
7
7
  export { COLOR_NAME_RE, PALETTE_HUES } from "./palette.js";
8
+ export { attributesForType, CORE_TYPE_HIERARCHY, CORE_TYPE_SCOPED_ATTRS, } from "./type_hierarchy.js";
9
+ export { inferTypeFromUriScheme } from "./uri_scheme_map.js";
10
+ export { inferTypeFromSource } from "./source_introspection.js";
11
+ export { inferTypeFromDiscriminatingAttr } from "./discriminating_attr.js";
12
+ // ---------------------------------------------------------------------------
13
+ // Core type taxonomy (ADR-003 §Part 1, spec §1.3)
14
+ // ---------------------------------------------------------------------------
15
+ /**
16
+ * Core abstract item types. Always valid as `Type:` values regardless of
17
+ * which profile is loaded (core-only mode included). Convention: TitleCase.
18
+ *
19
+ * - `Item` is the abstract root and serves as the bottom fallback in the
20
+ * type-resolution chain (§1.3.1 step 8).
21
+ * - `Specification`, `Component`, `Unit` are abstract+concrete parents:
22
+ * instantiable as direct fallbacks when no concrete subtype fits, and
23
+ * roots for both core concrete subtypes and profile-declared extensions.
24
+ */
25
+ export const CORE_ABSTRACT_TYPES = [
26
+ "Item",
27
+ "Specification",
28
+ "Component",
29
+ "Unit",
30
+ ];
31
+ /**
32
+ * Core concrete item types (ADR-003 §Part 1). Twelve subtypes plus three
33
+ * abstract+concrete parents from {@linkcode CORE_ABSTRACT_TYPES} make up
34
+ * the "15 concrete instantiable types" the spec describes.
35
+ */
36
+ export const CORE_CONCRETE_TYPES = [
37
+ // Specification subtypes
38
+ "Requirement",
39
+ "Test",
40
+ "Contract",
41
+ "Record",
42
+ "Risk",
43
+ // Component subtypes
44
+ "SoftwareComponent",
45
+ "HardwareComponent",
46
+ "SoftwareInterface",
47
+ "HardwareInterface",
48
+ // Unit subtypes
49
+ "SoftwareUnit",
50
+ "HardwareUnit",
51
+ // Definition (standalone under Item)
52
+ "Definition",
53
+ ];
54
+ /**
55
+ * All core type names. Accepted as `Type:` values in core-only mode and
56
+ * when any profile is loaded. Profile-declared types extend this set.
57
+ */
58
+ export const CORE_TYPES = new Set([
59
+ ...CORE_ABSTRACT_TYPES,
60
+ ...CORE_CONCRETE_TYPES,
61
+ ]);
8
62
  /** Core-reserved identity attribute name. */
9
63
  export const IDENTITY_KEY = "Id";
10
64
  /** Regex matching a bare ULID (identified-entry `Id:` value). */
@@ -25,9 +79,9 @@ export const URI_SCHEME_RE = /^[A-Za-z][A-Za-z0-9+\-.]*:/;
25
79
  */
26
80
  export function shapeFromIdValue(value) {
27
81
  if (ULID_RE.test(value))
28
- return "identified";
82
+ return "Authored";
29
83
  if (URI_SCHEME_RE.test(value))
30
- return "referenced";
84
+ return "Reference";
31
85
  return undefined;
32
86
  }
33
87
  // ---------------------------------------------------------------------------
@@ -42,6 +96,7 @@ export const DEFAULT_PROJECT_CONFIG = {
42
96
  labels: [],
43
97
  parents: [],
44
98
  parentFallback: REFHUB_URL,
99
+ captionConventions: {},
45
100
  };
46
101
  /** Error thrown when `project.yaml` is invalid. */
47
102
  export class ConfigError extends Error {