@driftsys/markspec 0.3.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 (331) 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 +56 -6
  34. package/esm/formatter/mod.d.ts.map +1 -1
  35. package/esm/formatter/mod.js +372 -41
  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 +21 -8
  58. package/esm/mod.d.ts.map +1 -1
  59. package/esm/mod.js +16 -5
  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 +100 -3
  66. package/esm/model/mod.d.ts.map +1 -1
  67. package/esm/model/mod.js +58 -2
  68. package/esm/model/palette.d.ts +18 -0
  69. package/esm/model/palette.d.ts.map +1 -0
  70. package/esm/model/palette.js +23 -0
  71. package/esm/model/profile.d.ts +33 -27
  72. package/esm/model/profile.d.ts.map +1 -1
  73. package/esm/model/source_introspection.d.ts +26 -0
  74. package/esm/model/source_introspection.d.ts.map +1 -0
  75. package/esm/model/source_introspection.js +77 -0
  76. package/esm/model/type_hierarchy.d.ts +51 -0
  77. package/esm/model/type_hierarchy.d.ts.map +1 -0
  78. package/esm/model/type_hierarchy.js +126 -0
  79. package/esm/model/uri_scheme_map.d.ts +21 -0
  80. package/esm/model/uri_scheme_map.d.ts.map +1 -0
  81. package/esm/model/uri_scheme_map.js +66 -0
  82. package/esm/parser/attributes.d.ts.map +1 -1
  83. package/esm/parser/attributes.js +9 -6
  84. package/esm/parser/entity_refs.d.ts +53 -0
  85. package/esm/parser/entity_refs.d.ts.map +1 -0
  86. package/esm/parser/entity_refs.js +151 -0
  87. package/esm/parser/glossary.d.ts +43 -0
  88. package/esm/parser/glossary.d.ts.map +1 -0
  89. package/esm/parser/glossary.js +217 -0
  90. package/esm/parser/markdown.d.ts +10 -3
  91. package/esm/parser/markdown.d.ts.map +1 -1
  92. package/esm/parser/markdown.js +241 -11
  93. package/esm/parser/mod.d.ts +1 -0
  94. package/esm/parser/mod.d.ts.map +1 -1
  95. package/esm/parser/mod.js +4 -3
  96. package/esm/parser/source.d.ts +20 -0
  97. package/esm/parser/source.d.ts.map +1 -1
  98. package/esm/parser/source.js +4 -4
  99. package/esm/profile/chain.js +3 -13
  100. package/esm/profile/colors.d.ts +26 -0
  101. package/esm/profile/colors.d.ts.map +1 -0
  102. package/esm/profile/colors.js +46 -0
  103. package/esm/profile/introspect.d.ts +135 -0
  104. package/esm/profile/introspect.d.ts.map +1 -0
  105. package/esm/profile/introspect.js +378 -0
  106. package/esm/profile/load.d.ts.map +1 -1
  107. package/esm/profile/load.js +67 -0
  108. package/esm/profile/manifest.d.ts.map +1 -1
  109. package/esm/profile/manifest.js +278 -104
  110. package/esm/profile/merge.js +139 -39
  111. package/esm/profile/mod.d.ts +3 -4
  112. package/esm/profile/mod.d.ts.map +1 -1
  113. package/esm/profile/mod.js +6 -2
  114. package/esm/reporter/mod.js +4 -4
  115. package/esm/util/fence.d.ts +30 -0
  116. package/esm/util/fence.d.ts.map +1 -0
  117. package/esm/util/fence.js +40 -0
  118. package/esm/validator/attributes.d.ts +3 -3
  119. package/esm/validator/attributes.d.ts.map +1 -1
  120. package/esm/validator/attributes.js +1 -18
  121. package/esm/validator/body_blocks.d.ts +38 -0
  122. package/esm/validator/body_blocks.d.ts.map +1 -0
  123. package/esm/validator/body_blocks.js +218 -0
  124. package/esm/validator/caption_convention.d.ts +29 -0
  125. package/esm/validator/caption_convention.d.ts.map +1 -0
  126. package/esm/validator/caption_convention.js +58 -0
  127. package/esm/validator/captions.d.ts +22 -0
  128. package/esm/validator/captions.d.ts.map +1 -0
  129. package/esm/validator/captions.js +137 -0
  130. package/esm/validator/component_schemes.d.ts +73 -0
  131. package/esm/validator/component_schemes.d.ts.map +1 -0
  132. package/esm/validator/component_schemes.js +375 -0
  133. package/esm/validator/feature_ac.d.ts +28 -0
  134. package/esm/validator/feature_ac.d.ts.map +1 -0
  135. package/esm/validator/feature_ac.js +102 -0
  136. package/esm/validator/listing.d.ts +42 -0
  137. package/esm/validator/listing.d.ts.map +1 -0
  138. package/esm/validator/listing.js +295 -0
  139. package/esm/validator/mod.d.ts +2 -0
  140. package/esm/validator/mod.d.ts.map +1 -1
  141. package/esm/validator/mod.js +253 -12
  142. package/esm/validator/modal_keywords.d.ts +23 -0
  143. package/esm/validator/modal_keywords.d.ts.map +1 -0
  144. package/esm/validator/modal_keywords.js +137 -0
  145. package/esm/validator/per_type_attrs.d.ts +29 -0
  146. package/esm/validator/per_type_attrs.d.ts.map +1 -0
  147. package/esm/validator/per_type_attrs.js +75 -0
  148. package/esm/validator/pipeline.d.ts +7 -2
  149. package/esm/validator/pipeline.d.ts.map +1 -1
  150. package/esm/validator/pipeline.js +40 -7
  151. package/esm/validator/trace_types.d.ts +26 -0
  152. package/esm/validator/trace_types.d.ts.map +1 -0
  153. package/esm/validator/trace_types.js +232 -0
  154. package/esm/validator/traceability.d.ts +3 -4
  155. package/esm/validator/traceability.d.ts.map +1 -1
  156. package/esm/validator/traceability.js +5 -10
  157. package/esm/validator/type_resolution.d.ts +67 -0
  158. package/esm/validator/type_resolution.d.ts.map +1 -0
  159. package/esm/validator/type_resolution.js +140 -0
  160. package/esm/validator/types.d.ts +45 -0
  161. package/esm/validator/types.d.ts.map +1 -1
  162. package/esm/validator/types.js +128 -16
  163. package/esm/validator/value_types.d.ts +8 -0
  164. package/esm/validator/value_types.d.ts.map +1 -1
  165. package/esm/validator/value_types.js +8 -1
  166. package/package.json +1 -1
  167. package/script/ast/build.d.ts +70 -0
  168. package/script/ast/build.d.ts.map +1 -0
  169. package/script/ast/build.js +610 -0
  170. package/script/ast/equivalence.d.ts +18 -0
  171. package/script/ast/equivalence.d.ts.map +1 -0
  172. package/script/ast/equivalence.js +59 -0
  173. package/script/ast/nodes.d.ts +221 -0
  174. package/script/ast/nodes.d.ts.map +1 -0
  175. package/script/ast/nodes.js +13 -0
  176. package/script/ast/normalize.d.ts +67 -0
  177. package/script/ast/normalize.d.ts.map +1 -0
  178. package/script/ast/normalize.js +258 -0
  179. package/script/ast/render.d.ts +34 -0
  180. package/script/ast/render.d.ts.map +1 -0
  181. package/script/ast/render.js +218 -0
  182. package/script/compiler/inverses.d.ts +2 -8
  183. package/script/compiler/inverses.d.ts.map +1 -1
  184. package/script/compiler/inverses.js +50 -14
  185. package/script/compiler/manifest.d.ts +59 -0
  186. package/script/compiler/manifest.d.ts.map +1 -0
  187. package/script/compiler/manifest.js +51 -0
  188. package/script/compiler/mod.d.ts +9 -1
  189. package/script/compiler/mod.d.ts.map +1 -1
  190. package/script/compiler/mod.js +21 -2
  191. package/script/compiler/ndjson_writer.d.ts +50 -0
  192. package/script/compiler/ndjson_writer.d.ts.map +1 -0
  193. package/script/compiler/ndjson_writer.js +78 -0
  194. package/script/compiler/schema.d.ts +18 -1
  195. package/script/compiler/schema.d.ts.map +1 -1
  196. package/script/compiler/schema.js +18 -8
  197. package/script/config/mod.d.ts.map +1 -1
  198. package/script/config/mod.js +54 -0
  199. package/script/formatter/mod.d.ts +56 -6
  200. package/script/formatter/mod.d.ts.map +1 -1
  201. package/script/formatter/mod.js +375 -41
  202. package/script/formatter/synth_ulid.d.ts +21 -0
  203. package/script/formatter/synth_ulid.d.ts.map +1 -0
  204. package/script/formatter/synth_ulid.js +67 -0
  205. package/script/lint/mod.d.ts +10 -0
  206. package/script/lint/mod.d.ts.map +1 -0
  207. package/script/lint/mod.js +12 -0
  208. package/script/lint/rules/lexicon.d.ts +24 -0
  209. package/script/lint/rules/lexicon.d.ts.map +1 -0
  210. package/script/lint/rules/lexicon.js +240 -0
  211. package/script/lint/rules/struct.d.ts +17 -0
  212. package/script/lint/rules/struct.d.ts.map +1 -0
  213. package/script/lint/rules/struct.js +59 -0
  214. package/script/lint/rules/suppression.d.ts +19 -0
  215. package/script/lint/rules/suppression.d.ts.map +1 -0
  216. package/script/lint/rules/suppression.js +80 -0
  217. package/script/lint/runner.d.ts +39 -0
  218. package/script/lint/runner.d.ts.map +1 -0
  219. package/script/lint/runner.js +116 -0
  220. package/script/lint/types.d.ts +19 -0
  221. package/script/lint/types.d.ts.map +1 -0
  222. package/script/lint/types.js +10 -0
  223. package/script/mod.d.ts +21 -8
  224. package/script/mod.d.ts.map +1 -1
  225. package/script/mod.js +58 -32
  226. package/script/model/attributes.d.ts.map +1 -1
  227. package/script/model/attributes.js +163 -2
  228. package/script/model/discriminating_attr.d.ts +33 -0
  229. package/script/model/discriminating_attr.d.ts.map +1 -0
  230. package/script/model/discriminating_attr.js +77 -0
  231. package/script/model/mod.d.ts +100 -3
  232. package/script/model/mod.d.ts.map +1 -1
  233. package/script/model/mod.js +67 -3
  234. package/script/model/palette.d.ts +18 -0
  235. package/script/model/palette.d.ts.map +1 -0
  236. package/script/model/palette.js +26 -0
  237. package/script/model/profile.d.ts +33 -27
  238. package/script/model/profile.d.ts.map +1 -1
  239. package/script/model/source_introspection.d.ts +26 -0
  240. package/script/model/source_introspection.d.ts.map +1 -0
  241. package/script/model/source_introspection.js +80 -0
  242. package/script/model/type_hierarchy.d.ts +51 -0
  243. package/script/model/type_hierarchy.d.ts.map +1 -0
  244. package/script/model/type_hierarchy.js +130 -0
  245. package/script/model/uri_scheme_map.d.ts +21 -0
  246. package/script/model/uri_scheme_map.d.ts.map +1 -0
  247. package/script/model/uri_scheme_map.js +69 -0
  248. package/script/parser/attributes.d.ts.map +1 -1
  249. package/script/parser/attributes.js +9 -6
  250. package/script/parser/entity_refs.d.ts +53 -0
  251. package/script/parser/entity_refs.d.ts.map +1 -0
  252. package/script/parser/entity_refs.js +155 -0
  253. package/script/parser/glossary.d.ts +43 -0
  254. package/script/parser/glossary.d.ts.map +1 -0
  255. package/script/parser/glossary.js +221 -0
  256. package/script/parser/markdown.d.ts +10 -3
  257. package/script/parser/markdown.d.ts.map +1 -1
  258. package/script/parser/markdown.js +240 -10
  259. package/script/parser/mod.d.ts +1 -0
  260. package/script/parser/mod.d.ts.map +1 -1
  261. package/script/parser/mod.js +8 -4
  262. package/script/parser/source.d.ts +20 -0
  263. package/script/parser/source.d.ts.map +1 -1
  264. package/script/parser/source.js +4 -1
  265. package/script/profile/chain.js +3 -13
  266. package/script/profile/colors.d.ts +26 -0
  267. package/script/profile/colors.d.ts.map +1 -0
  268. package/script/profile/colors.js +49 -0
  269. package/script/profile/introspect.d.ts +135 -0
  270. package/script/profile/introspect.d.ts.map +1 -0
  271. package/script/profile/introspect.js +381 -0
  272. package/script/profile/load.d.ts.map +1 -1
  273. package/script/profile/load.js +67 -0
  274. package/script/profile/manifest.d.ts.map +1 -1
  275. package/script/profile/manifest.js +280 -106
  276. package/script/profile/merge.js +139 -39
  277. package/script/profile/mod.d.ts +3 -4
  278. package/script/profile/mod.d.ts.map +1 -1
  279. package/script/profile/mod.js +9 -6
  280. package/script/reporter/mod.js +4 -4
  281. package/script/util/fence.d.ts +30 -0
  282. package/script/util/fence.d.ts.map +1 -0
  283. package/script/util/fence.js +44 -0
  284. package/script/validator/attributes.d.ts +3 -3
  285. package/script/validator/attributes.d.ts.map +1 -1
  286. package/script/validator/attributes.js +1 -18
  287. package/script/validator/body_blocks.d.ts +38 -0
  288. package/script/validator/body_blocks.d.ts.map +1 -0
  289. package/script/validator/body_blocks.js +221 -0
  290. package/script/validator/caption_convention.d.ts +29 -0
  291. package/script/validator/caption_convention.d.ts.map +1 -0
  292. package/script/validator/caption_convention.js +61 -0
  293. package/script/validator/captions.d.ts +22 -0
  294. package/script/validator/captions.d.ts.map +1 -0
  295. package/script/validator/captions.js +140 -0
  296. package/script/validator/component_schemes.d.ts +73 -0
  297. package/script/validator/component_schemes.d.ts.map +1 -0
  298. package/script/validator/component_schemes.js +384 -0
  299. package/script/validator/feature_ac.d.ts +28 -0
  300. package/script/validator/feature_ac.d.ts.map +1 -0
  301. package/script/validator/feature_ac.js +105 -0
  302. package/script/validator/listing.d.ts +42 -0
  303. package/script/validator/listing.d.ts.map +1 -0
  304. package/script/validator/listing.js +298 -0
  305. package/script/validator/mod.d.ts +2 -0
  306. package/script/validator/mod.d.ts.map +1 -1
  307. package/script/validator/mod.js +256 -14
  308. package/script/validator/modal_keywords.d.ts +23 -0
  309. package/script/validator/modal_keywords.d.ts.map +1 -0
  310. package/script/validator/modal_keywords.js +140 -0
  311. package/script/validator/per_type_attrs.d.ts +29 -0
  312. package/script/validator/per_type_attrs.d.ts.map +1 -0
  313. package/script/validator/per_type_attrs.js +78 -0
  314. package/script/validator/pipeline.d.ts +7 -2
  315. package/script/validator/pipeline.d.ts.map +1 -1
  316. package/script/validator/pipeline.js +39 -6
  317. package/script/validator/trace_types.d.ts +26 -0
  318. package/script/validator/trace_types.d.ts.map +1 -0
  319. package/script/validator/trace_types.js +235 -0
  320. package/script/validator/traceability.d.ts +3 -4
  321. package/script/validator/traceability.d.ts.map +1 -1
  322. package/script/validator/traceability.js +5 -10
  323. package/script/validator/type_resolution.d.ts +67 -0
  324. package/script/validator/type_resolution.d.ts.map +1 -0
  325. package/script/validator/type_resolution.js +146 -0
  326. package/script/validator/types.d.ts +45 -0
  327. package/script/validator/types.d.ts.map +1 -1
  328. package/script/validator/types.js +131 -16
  329. package/script/validator/value_types.d.ts +8 -0
  330. package/script/validator/value_types.d.ts.map +1 -1
  331. 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
- export { ConfigError, DEFAULT_PROJECT_CONFIG, REFHUB_URL, } from "./model/mod.js";
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
- export { computeCacheKey, computeCacheLocation, defaultAppendFile, defaultRunGit, ensureCacheGitignored, loadChain, loadProfileForCommand, mergeChain, parseManifest, resolveGitSpecifier, resolveLocalSpecifier, } from "./profile/mod.js";
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,8 +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";
9
+ export { COLOR_NAME_RE, PALETTE_HUES } from "./palette.js";
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";
8
16
  /**
9
17
  * Human-readable entry identifier from the `[...]` bracket marker.
10
18
  *
@@ -33,6 +41,28 @@ export interface SourceLocation {
33
41
  /** 1-based column number of the entry start. */
34
42
  readonly column: number;
35
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>;
36
66
  /** A single `Key: Value` pair from an attribute block. */
37
67
  export interface Attribute {
38
68
  /** Attribute name (e.g., `Id`, `Satisfies`, `Labels`). */
@@ -71,7 +101,7 @@ export type EntrySource = "markdown" | "doc-comment";
71
101
  * (`requirement`, `test`, `unit`, `standard`, `dependency`, …) are declared
72
102
  * by the active profile, not by the core.
73
103
  */
74
- export type EntryShape = "identified" | "referenced";
104
+ export type EntryShape = "Authored" | "Reference";
75
105
  /** Core-reserved identity attribute name. */
76
106
  export declare const IDENTITY_KEY: "Id";
77
107
  /** Regex matching a bare ULID (identified-entry `Id:` value). */
@@ -128,6 +158,8 @@ export interface EntryProperties {
128
158
  readonly path: string;
129
159
  readonly line?: number;
130
160
  readonly column?: number;
161
+ /** ISO 8601 last-modified timestamp from the filesystem. */
162
+ readonly mtime?: string;
131
163
  };
132
164
  /** Version-control observations. */
133
165
  readonly git?: {
@@ -179,6 +211,8 @@ export interface Entry {
179
211
  readonly title: string;
180
212
  /** Body content (paragraphs, alerts, code blocks) between title and attributes. */
181
213
  readonly body: string;
214
+ /** Canonical body AST (PR 2: additive, not yet consumed). */
215
+ readonly bodyAst?: readonly BodyBlock[];
182
216
  /**
183
217
  * Source-order raw attribute array. Used by the formatter for round-trip
184
218
  * fidelity (preserving key casing, line order, and trailing backslashes).
@@ -208,7 +242,7 @@ export interface Entry {
208
242
  * matches (e.g., free-form display ID with no `type:` attribute).
209
243
  */
210
244
  readonly type?: string;
211
- /** Entry shape — `identified` or `referenced`. */
245
+ /** Entry shape — `Authored` or `Reference`. */
212
246
  readonly shape: EntryShape;
213
247
  /** Where the entry was found. */
214
248
  readonly location: SourceLocation;
@@ -219,6 +253,12 @@ export interface Entry {
219
253
  * source-adapter provenance).
220
254
  */
221
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[];
222
262
  }
223
263
  /** Severity level for diagnostics. */
224
264
  export type Severity = "error" | "warning" | "info";
@@ -235,6 +275,29 @@ export interface Diagnostic {
235
275
  }
236
276
  /** Default RefHub URL used as implicit fallback for parent registries. */
237
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>>>;
238
301
  /** MarkSpec project configuration from `project.yaml`. */
239
302
  export interface ProjectConfig {
240
303
  /** Project name (e.g., `io.driftsys.markspec`). */
@@ -247,6 +310,13 @@ export interface ProjectConfig {
247
310
  readonly parents: readonly string[];
248
311
  /** Fallback registry URL when parents don't resolve a reference. */
249
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;
250
320
  }
251
321
  /** Default configuration used when no `project.yaml` is found. */
252
322
  export declare const DEFAULT_PROJECT_CONFIG: ProjectConfig;
@@ -292,6 +362,31 @@ export interface InlineRef {
292
362
  readonly refId: string;
293
363
  readonly location: SourceLocation;
294
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
+ }
295
390
  /**
296
391
  * Kind of directional link between entries — relation name lifted from the
297
392
  * source attribute.
@@ -308,6 +403,8 @@ export interface Link {
308
403
  readonly to: DisplayId;
309
404
  readonly kind: LinkKind;
310
405
  readonly location: SourceLocation;
406
+ /** How this link was produced. Absent means authored (default). */
407
+ readonly origin?: "authored" | "generated";
311
408
  }
312
409
  /**
313
410
  * Document-level attributes authored in YAML front matter.
@@ -376,6 +473,6 @@ export interface Document {
376
473
  /** Observed document properties. */
377
474
  readonly properties: DocumentProperties;
378
475
  }
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";
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";
380
477
  export { LIST_VALUE_TYPES, VALUE_TYPES } from "./profile.js";
381
478
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/model/mod.ts"],"names":[],"m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,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,oCAAoC;IACpC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;CACzC;AAMD,YAAY,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
package/esm/model/mod.js CHANGED
@@ -4,6 +4,61 @@
4
4
  * MarkSpec document model — AST types, ID types, and project configuration.
5
5
  */
6
6
  export { ATTRIBUTE_CATALOG, attributeSpec, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
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
+ ]);
7
62
  /** Core-reserved identity attribute name. */
8
63
  export const IDENTITY_KEY = "Id";
9
64
  /** Regex matching a bare ULID (identified-entry `Id:` value). */
@@ -24,9 +79,9 @@ export const URI_SCHEME_RE = /^[A-Za-z][A-Za-z0-9+\-.]*:/;
24
79
  */
25
80
  export function shapeFromIdValue(value) {
26
81
  if (ULID_RE.test(value))
27
- return "identified";
82
+ return "Authored";
28
83
  if (URI_SCHEME_RE.test(value))
29
- return "referenced";
84
+ return "Reference";
30
85
  return undefined;
31
86
  }
32
87
  // ---------------------------------------------------------------------------
@@ -41,6 +96,7 @@ export const DEFAULT_PROJECT_CONFIG = {
41
96
  labels: [],
42
97
  parents: [],
43
98
  parentFallback: REFHUB_URL,
99
+ captionConventions: {},
44
100
  };
45
101
  /** Error thrown when `project.yaml` is invalid. */
46
102
  export class ConfigError extends Error {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @module model/palette
3
+ *
4
+ * The seven-hue entry color palette and its semantic-name regex. Single
5
+ * source of truth — both the profile manifest parser and the renderer
6
+ * import from here so the two layers can never drift.
7
+ *
8
+ * Mirrors the `diagram:` group in `theme/tokens.yaml`. Adding a hue is a
9
+ * tokens-side change followed by an entry here; the order does not matter
10
+ * but kept stable for diagnostic message readability.
11
+ */
12
+ /** The seven palette hues a profile may bind a semantic color name to. */
13
+ export declare const PALETTE_HUES: readonly ["blue", "cyan", "teal", "orange", "red", "purple", "grey"];
14
+ /** Type of a palette hue name. */
15
+ export type PaletteHue = typeof PALETTE_HUES[number];
16
+ /** Regex for a valid semantic color-role name (key into `profile.colors:`). */
17
+ export declare const COLOR_NAME_RE: RegExp;
18
+ //# sourceMappingURL=palette.d.ts.map