@driftsys/markspec 0.5.0 → 0.6.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 (484) hide show
  1. package/README.md +74 -20
  2. package/esm/ast/build.d.ts +11 -21
  3. package/esm/ast/build.d.ts.map +1 -1
  4. package/esm/ast/build.js +50 -139
  5. package/esm/ast/nodes.d.ts +11 -43
  6. package/esm/ast/nodes.d.ts.map +1 -1
  7. package/esm/ast/nodes.js +6 -1
  8. package/esm/ast/normalize.d.ts +8 -17
  9. package/esm/ast/normalize.d.ts.map +1 -1
  10. package/esm/ast/normalize.js +14 -72
  11. package/esm/compiler/constants.d.ts +16 -0
  12. package/esm/compiler/constants.d.ts.map +1 -0
  13. package/esm/compiler/constants.js +26 -0
  14. package/esm/compiler/discipline_classifier.d.ts +55 -0
  15. package/esm/compiler/discipline_classifier.d.ts.map +1 -0
  16. package/esm/compiler/discipline_classifier.js +191 -0
  17. package/esm/compiler/inverses.d.ts +7 -0
  18. package/esm/compiler/inverses.d.ts.map +1 -1
  19. package/esm/compiler/inverses.js +1 -18
  20. package/esm/compiler/mod.d.ts +30 -1
  21. package/esm/compiler/mod.d.ts.map +1 -1
  22. package/esm/compiler/mod.js +198 -65
  23. package/esm/compiler/schema.d.ts +15 -0
  24. package/esm/compiler/schema.d.ts.map +1 -1
  25. package/esm/compiler/schema.js +12 -0
  26. package/esm/config/markspec.d.ts +5 -0
  27. package/esm/config/markspec.d.ts.map +1 -1
  28. package/esm/config/markspec.js +17 -2
  29. package/esm/formatter/mod.d.ts +9 -3
  30. package/esm/formatter/mod.d.ts.map +1 -1
  31. package/esm/formatter/mod.js +97 -49
  32. package/esm/lexicons/loader.d.ts +35 -0
  33. package/esm/lexicons/loader.d.ts.map +1 -0
  34. package/esm/lexicons/loader.js +51 -0
  35. package/esm/lexicons/mod.d.ts +13 -0
  36. package/esm/lexicons/mod.d.ts.map +1 -0
  37. package/esm/lexicons/mod.js +12 -0
  38. package/esm/lint/glossary.d.ts +45 -0
  39. package/esm/lint/glossary.d.ts.map +1 -0
  40. package/esm/lint/glossary.js +85 -0
  41. package/esm/lint/mod.d.ts +4 -0
  42. package/esm/lint/mod.d.ts.map +1 -1
  43. package/esm/lint/mod.js +2 -0
  44. package/esm/lint/range_util.d.ts +25 -0
  45. package/esm/lint/range_util.d.ts.map +1 -0
  46. package/esm/lint/range_util.js +50 -0
  47. package/esm/lint/rules/ears.d.ts +39 -0
  48. package/esm/lint/rules/ears.d.ts.map +1 -0
  49. package/esm/lint/rules/ears.js +316 -0
  50. package/esm/lint/rules/incose_sentence.d.ts +46 -0
  51. package/esm/lint/rules/incose_sentence.d.ts.map +1 -0
  52. package/esm/lint/rules/incose_sentence.js +417 -0
  53. package/esm/lint/rules/modal_sentence.d.ts +46 -0
  54. package/esm/lint/rules/modal_sentence.d.ts.map +1 -0
  55. package/esm/lint/rules/modal_sentence.js +146 -0
  56. package/esm/lint/rules/passive.d.ts +64 -0
  57. package/esm/lint/rules/passive.d.ts.map +1 -0
  58. package/esm/lint/rules/passive.js +282 -0
  59. package/esm/lint/rules/suppression.d.ts +38 -3
  60. package/esm/lint/rules/suppression.d.ts.map +1 -1
  61. package/esm/lint/rules/suppression.js +58 -4
  62. package/esm/lint/rules/xref.d.ts +19 -0
  63. package/esm/lint/rules/xref.d.ts.map +1 -0
  64. package/esm/lint/rules/xref.js +248 -0
  65. package/esm/lint/runner.d.ts +31 -11
  66. package/esm/lint/runner.d.ts.map +1 -1
  67. package/esm/lint/runner.js +67 -26
  68. package/esm/lint/score.d.ts +64 -0
  69. package/esm/lint/score.d.ts.map +1 -0
  70. package/esm/lint/score.js +163 -0
  71. package/esm/lint/segmenter.d.ts +32 -0
  72. package/esm/lint/segmenter.d.ts.map +1 -0
  73. package/esm/lint/segmenter.js +79 -0
  74. package/esm/lint/types.d.ts +12 -0
  75. package/esm/lint/types.d.ts.map +1 -1
  76. package/esm/lock/canonical_edges.d.ts +31 -0
  77. package/esm/lock/canonical_edges.d.ts.map +1 -0
  78. package/esm/lock/canonical_edges.js +57 -0
  79. package/esm/lock/check.d.ts +24 -0
  80. package/esm/lock/check.d.ts.map +1 -0
  81. package/esm/lock/check.js +127 -0
  82. package/esm/lock/hash.d.ts +12 -0
  83. package/esm/lock/hash.d.ts.map +1 -0
  84. package/esm/lock/hash.js +32 -0
  85. package/esm/lock/mod.d.ts +19 -0
  86. package/esm/lock/mod.d.ts.map +1 -0
  87. package/esm/lock/mod.js +14 -0
  88. package/esm/lock/model.d.ts +81 -0
  89. package/esm/lock/model.d.ts.map +1 -0
  90. package/esm/lock/model.js +7 -0
  91. package/esm/lock/parser.d.ts +26 -0
  92. package/esm/lock/parser.d.ts.map +1 -0
  93. package/esm/lock/parser.js +195 -0
  94. package/esm/lock/resolve.d.ts +142 -0
  95. package/esm/lock/resolve.d.ts.map +1 -0
  96. package/esm/lock/resolve.js +389 -0
  97. package/esm/lock/serializer.d.ts +14 -0
  98. package/esm/lock/serializer.d.ts.map +1 -0
  99. package/esm/lock/serializer.js +104 -0
  100. package/esm/mod.d.ts +16 -9
  101. package/esm/mod.d.ts.map +1 -1
  102. package/esm/mod.js +12 -4
  103. package/esm/model/attributes.d.ts +6 -0
  104. package/esm/model/attributes.d.ts.map +1 -1
  105. package/esm/model/attributes.js +37 -0
  106. package/esm/model/discipline.d.ts +53 -0
  107. package/esm/model/discipline.d.ts.map +1 -0
  108. package/esm/model/discipline.js +50 -0
  109. package/esm/model/mod.d.ts +188 -30
  110. package/esm/model/mod.d.ts.map +1 -1
  111. package/esm/model/mod.js +42 -1
  112. package/esm/model/profile.d.ts +69 -0
  113. package/esm/model/profile.d.ts.map +1 -1
  114. package/esm/parser/attributes.d.ts.map +1 -1
  115. package/esm/parser/attributes.js +1 -10
  116. package/esm/parser/body_tokens.d.ts +35 -0
  117. package/esm/parser/body_tokens.d.ts.map +1 -0
  118. package/esm/parser/body_tokens.js +232 -0
  119. package/esm/parser/glossary.d.ts +8 -0
  120. package/esm/parser/glossary.d.ts.map +1 -1
  121. package/esm/parser/glossary.js +6 -4
  122. package/esm/parser/grammars.d.ts +5 -3
  123. package/esm/parser/grammars.d.ts.map +1 -1
  124. package/esm/parser/grammars.js +12 -4
  125. package/esm/parser/language_spec.d.ts +55 -0
  126. package/esm/parser/language_spec.d.ts.map +1 -0
  127. package/esm/parser/language_spec.js +419 -0
  128. package/esm/parser/line_map.d.ts +60 -0
  129. package/esm/parser/line_map.d.ts.map +1 -0
  130. package/esm/parser/line_map.js +41 -0
  131. package/esm/parser/markdown.d.ts +9 -0
  132. package/esm/parser/markdown.d.ts.map +1 -1
  133. package/esm/parser/markdown.js +107 -31
  134. package/esm/parser/mod.d.ts +4 -0
  135. package/esm/parser/mod.d.ts.map +1 -1
  136. package/esm/parser/mod.js +30 -8
  137. package/esm/parser/source.d.ts +39 -8
  138. package/esm/parser/source.d.ts.map +1 -1
  139. package/esm/parser/source.js +155 -65
  140. package/esm/parser/translate.d.ts +24 -0
  141. package/esm/parser/translate.d.ts.map +1 -0
  142. package/esm/parser/translate.js +99 -0
  143. package/esm/profile/chain.d.ts +8 -0
  144. package/esm/profile/chain.d.ts.map +1 -1
  145. package/esm/profile/chain.js +29 -1
  146. package/esm/profile/default_profile.d.ts +25 -0
  147. package/esm/profile/default_profile.d.ts.map +1 -0
  148. package/esm/profile/default_profile.js +43 -0
  149. package/esm/profile/discipline_mode.d.ts +64 -0
  150. package/esm/profile/discipline_mode.d.ts.map +1 -0
  151. package/esm/profile/discipline_mode.js +133 -0
  152. package/esm/profile/discipline_registry.d.ts +41 -0
  153. package/esm/profile/discipline_registry.d.ts.map +1 -0
  154. package/esm/profile/discipline_registry.js +67 -0
  155. package/esm/profile/load.d.ts +3 -1
  156. package/esm/profile/load.d.ts.map +1 -1
  157. package/esm/profile/load.js +24 -5
  158. package/esm/profile/manifest.d.ts.map +1 -1
  159. package/esm/profile/manifest.js +253 -20
  160. package/esm/profile/merge.d.ts.map +1 -1
  161. package/esm/profile/merge.js +112 -0
  162. package/esm/profile/mod.d.ts +2 -0
  163. package/esm/profile/mod.d.ts.map +1 -1
  164. package/esm/profile/mod.js +2 -0
  165. package/esm/sync/locked_attributes.d.ts +19 -0
  166. package/esm/sync/locked_attributes.d.ts.map +1 -0
  167. package/esm/sync/locked_attributes.js +27 -0
  168. package/esm/sync/log.d.ts +34 -0
  169. package/esm/sync/log.d.ts.map +1 -0
  170. package/esm/sync/log.js +48 -0
  171. package/esm/sync/mapping.d.ts +66 -0
  172. package/esm/sync/mapping.d.ts.map +1 -0
  173. package/esm/sync/mapping.js +165 -0
  174. package/esm/sync/mod.d.ts +16 -0
  175. package/esm/sync/mod.d.ts.map +1 -0
  176. package/esm/sync/mod.js +12 -0
  177. package/esm/sync/status.d.ts +23 -0
  178. package/esm/sync/status.d.ts.map +1 -0
  179. package/esm/sync/status.js +21 -0
  180. package/esm/typl/ast.d.ts +87 -0
  181. package/esm/typl/ast.d.ts.map +1 -0
  182. package/esm/typl/ast.js +21 -0
  183. package/esm/typl/bridge.d.ts +32 -0
  184. package/esm/typl/bridge.d.ts.map +1 -0
  185. package/esm/typl/bridge.js +27 -0
  186. package/esm/typl/bullet.d.ts +34 -0
  187. package/esm/typl/bullet.d.ts.map +1 -0
  188. package/esm/typl/bullet.js +44 -0
  189. package/esm/typl/diagnostics.d.ts +43 -0
  190. package/esm/typl/diagnostics.d.ts.map +1 -0
  191. package/esm/typl/diagnostics.js +61 -0
  192. package/esm/typl/fence.d.ts +31 -0
  193. package/esm/typl/fence.d.ts.map +1 -0
  194. package/esm/typl/fence.js +24 -0
  195. package/esm/typl/grammar.d.ts +20 -0
  196. package/esm/typl/grammar.d.ts.map +1 -0
  197. package/esm/typl/grammar.js +471 -0
  198. package/esm/typl/inline.d.ts +34 -0
  199. package/esm/typl/inline.d.ts.map +1 -0
  200. package/esm/typl/inline.js +48 -0
  201. package/esm/typl/lexer.d.ts +37 -0
  202. package/esm/typl/lexer.d.ts.map +1 -0
  203. package/esm/typl/lexer.js +234 -0
  204. package/esm/typl/mod.d.ts +23 -0
  205. package/esm/typl/mod.d.ts.map +1 -0
  206. package/esm/typl/mod.js +16 -0
  207. package/esm/typl/registry.d.ts +42 -0
  208. package/esm/typl/registry.d.ts.map +1 -0
  209. package/esm/typl/registry.js +26 -0
  210. package/esm/typl/validator.d.ts +29 -0
  211. package/esm/typl/validator.d.ts.map +1 -0
  212. package/esm/typl/validator.js +141 -0
  213. package/esm/util/line_endings.d.ts +33 -0
  214. package/esm/util/line_endings.d.ts.map +1 -0
  215. package/esm/util/line_endings.js +53 -0
  216. package/esm/util/modals.d.ts +29 -0
  217. package/esm/util/modals.d.ts.map +1 -0
  218. package/esm/util/modals.js +38 -0
  219. package/esm/validator/discipline.d.ts +35 -0
  220. package/esm/validator/discipline.d.ts.map +1 -0
  221. package/esm/validator/discipline.js +204 -0
  222. package/esm/validator/mod.d.ts +1 -1
  223. package/esm/validator/mod.d.ts.map +1 -1
  224. package/esm/validator/mod.js +23 -2
  225. package/esm/validator/modal_keywords.d.ts +15 -13
  226. package/esm/validator/modal_keywords.d.ts.map +1 -1
  227. package/esm/validator/modal_keywords.js +26 -109
  228. package/esm/validator/pattern.d.ts +15 -8
  229. package/esm/validator/pattern.d.ts.map +1 -1
  230. package/esm/validator/pattern.js +42 -19
  231. package/esm/validator/per_type_attrs.d.ts +2 -2
  232. package/esm/validator/per_type_attrs.d.ts.map +1 -1
  233. package/esm/validator/per_type_attrs.js +2 -2
  234. package/esm/validator/pipeline.d.ts +11 -0
  235. package/esm/validator/pipeline.d.ts.map +1 -1
  236. package/esm/validator/pipeline.js +37 -15
  237. package/esm/validator/type_resolution.d.ts +3 -3
  238. package/esm/validator/type_resolution.d.ts.map +1 -1
  239. package/esm/validator/type_resolution.js +31 -9
  240. package/package.json +2 -2
  241. package/script/ast/build.d.ts +11 -21
  242. package/script/ast/build.d.ts.map +1 -1
  243. package/script/ast/build.js +51 -140
  244. package/script/ast/nodes.d.ts +11 -43
  245. package/script/ast/nodes.d.ts.map +1 -1
  246. package/script/ast/nodes.js +6 -1
  247. package/script/ast/normalize.d.ts +8 -17
  248. package/script/ast/normalize.d.ts.map +1 -1
  249. package/script/ast/normalize.js +16 -74
  250. package/script/compiler/constants.d.ts +16 -0
  251. package/script/compiler/constants.d.ts.map +1 -0
  252. package/script/compiler/constants.js +29 -0
  253. package/script/compiler/discipline_classifier.d.ts +55 -0
  254. package/script/compiler/discipline_classifier.d.ts.map +1 -0
  255. package/script/compiler/discipline_classifier.js +196 -0
  256. package/script/compiler/inverses.d.ts +7 -0
  257. package/script/compiler/inverses.d.ts.map +1 -1
  258. package/script/compiler/inverses.js +2 -19
  259. package/script/compiler/mod.d.ts +30 -1
  260. package/script/compiler/mod.d.ts.map +1 -1
  261. package/script/compiler/mod.js +202 -69
  262. package/script/compiler/schema.d.ts +15 -0
  263. package/script/compiler/schema.d.ts.map +1 -1
  264. package/script/compiler/schema.js +12 -0
  265. package/script/config/markspec.d.ts +5 -0
  266. package/script/config/markspec.d.ts.map +1 -1
  267. package/script/config/markspec.js +17 -2
  268. package/script/formatter/mod.d.ts +9 -3
  269. package/script/formatter/mod.d.ts.map +1 -1
  270. package/script/formatter/mod.js +99 -51
  271. package/script/lexicons/loader.d.ts +35 -0
  272. package/script/lexicons/loader.d.ts.map +1 -0
  273. package/script/lexicons/loader.js +55 -0
  274. package/script/lexicons/mod.d.ts +13 -0
  275. package/script/lexicons/mod.d.ts.map +1 -0
  276. package/script/lexicons/mod.js +17 -0
  277. package/script/lint/glossary.d.ts +45 -0
  278. package/script/lint/glossary.d.ts.map +1 -0
  279. package/script/lint/glossary.js +88 -0
  280. package/script/lint/mod.d.ts +4 -0
  281. package/script/lint/mod.d.ts.map +1 -1
  282. package/script/lint/mod.js +6 -1
  283. package/script/lint/range_util.d.ts +25 -0
  284. package/script/lint/range_util.d.ts.map +1 -0
  285. package/script/lint/range_util.js +53 -0
  286. package/script/lint/rules/ears.d.ts +39 -0
  287. package/script/lint/rules/ears.d.ts.map +1 -0
  288. package/script/lint/rules/ears.js +320 -0
  289. package/script/lint/rules/incose_sentence.d.ts +46 -0
  290. package/script/lint/rules/incose_sentence.d.ts.map +1 -0
  291. package/script/lint/rules/incose_sentence.js +421 -0
  292. package/script/lint/rules/modal_sentence.d.ts +46 -0
  293. package/script/lint/rules/modal_sentence.d.ts.map +1 -0
  294. package/script/lint/rules/modal_sentence.js +150 -0
  295. package/script/lint/rules/passive.d.ts +64 -0
  296. package/script/lint/rules/passive.d.ts.map +1 -0
  297. package/script/lint/rules/passive.js +286 -0
  298. package/script/lint/rules/suppression.d.ts +38 -3
  299. package/script/lint/rules/suppression.d.ts.map +1 -1
  300. package/script/lint/rules/suppression.js +59 -3
  301. package/script/lint/rules/xref.d.ts +19 -0
  302. package/script/lint/rules/xref.d.ts.map +1 -0
  303. package/script/lint/rules/xref.js +251 -0
  304. package/script/lint/runner.d.ts +31 -11
  305. package/script/lint/runner.d.ts.map +1 -1
  306. package/script/lint/runner.js +67 -26
  307. package/script/lint/score.d.ts +64 -0
  308. package/script/lint/score.d.ts.map +1 -0
  309. package/script/lint/score.js +167 -0
  310. package/script/lint/segmenter.d.ts +32 -0
  311. package/script/lint/segmenter.d.ts.map +1 -0
  312. package/script/lint/segmenter.js +82 -0
  313. package/script/lint/types.d.ts +12 -0
  314. package/script/lint/types.d.ts.map +1 -1
  315. package/script/lock/canonical_edges.d.ts +31 -0
  316. package/script/lock/canonical_edges.d.ts.map +1 -0
  317. package/script/lock/canonical_edges.js +61 -0
  318. package/script/lock/check.d.ts +24 -0
  319. package/script/lock/check.d.ts.map +1 -0
  320. package/script/lock/check.js +130 -0
  321. package/script/lock/hash.d.ts +12 -0
  322. package/script/lock/hash.d.ts.map +1 -0
  323. package/script/lock/hash.js +36 -0
  324. package/script/lock/mod.d.ts +19 -0
  325. package/script/lock/mod.d.ts.map +1 -0
  326. package/script/lock/mod.js +31 -0
  327. package/script/lock/model.d.ts +81 -0
  328. package/script/lock/model.d.ts.map +1 -0
  329. package/script/lock/model.js +10 -0
  330. package/script/lock/parser.d.ts +26 -0
  331. package/script/lock/parser.d.ts.map +1 -0
  332. package/script/lock/parser.js +198 -0
  333. package/script/lock/resolve.d.ts +142 -0
  334. package/script/lock/resolve.d.ts.map +1 -0
  335. package/script/lock/resolve.js +397 -0
  336. package/script/lock/serializer.d.ts +14 -0
  337. package/script/lock/serializer.d.ts.map +1 -0
  338. package/script/lock/serializer.js +107 -0
  339. package/script/mod.d.ts +16 -9
  340. package/script/mod.d.ts.map +1 -1
  341. package/script/mod.js +111 -38
  342. package/script/model/attributes.d.ts +6 -0
  343. package/script/model/attributes.d.ts.map +1 -1
  344. package/script/model/attributes.js +38 -1
  345. package/script/model/discipline.d.ts +53 -0
  346. package/script/model/discipline.d.ts.map +1 -0
  347. package/script/model/discipline.js +53 -0
  348. package/script/model/mod.d.ts +188 -30
  349. package/script/model/mod.d.ts.map +1 -1
  350. package/script/model/mod.js +48 -1
  351. package/script/model/profile.d.ts +69 -0
  352. package/script/model/profile.d.ts.map +1 -1
  353. package/script/parser/attributes.d.ts.map +1 -1
  354. package/script/parser/attributes.js +1 -10
  355. package/script/parser/body_tokens.d.ts +35 -0
  356. package/script/parser/body_tokens.d.ts.map +1 -0
  357. package/script/parser/body_tokens.js +235 -0
  358. package/script/parser/glossary.d.ts +8 -0
  359. package/script/parser/glossary.d.ts.map +1 -1
  360. package/script/parser/glossary.js +7 -4
  361. package/script/parser/grammars.d.ts +5 -3
  362. package/script/parser/grammars.d.ts.map +1 -1
  363. package/script/parser/grammars.js +15 -8
  364. package/script/parser/language_spec.d.ts +55 -0
  365. package/script/parser/language_spec.d.ts.map +1 -0
  366. package/script/parser/language_spec.js +423 -0
  367. package/script/parser/line_map.d.ts +60 -0
  368. package/script/parser/line_map.d.ts.map +1 -0
  369. package/script/parser/line_map.js +44 -0
  370. package/script/parser/markdown.d.ts +9 -0
  371. package/script/parser/markdown.d.ts.map +1 -1
  372. package/script/parser/markdown.js +105 -29
  373. package/script/parser/mod.d.ts +4 -0
  374. package/script/parser/mod.d.ts.map +1 -1
  375. package/script/parser/mod.js +32 -7
  376. package/script/parser/source.d.ts +39 -8
  377. package/script/parser/source.d.ts.map +1 -1
  378. package/script/parser/source.js +156 -69
  379. package/script/parser/translate.d.ts +24 -0
  380. package/script/parser/translate.d.ts.map +1 -0
  381. package/script/parser/translate.js +102 -0
  382. package/script/profile/chain.d.ts +8 -0
  383. package/script/profile/chain.d.ts.map +1 -1
  384. package/script/profile/chain.js +29 -1
  385. package/script/profile/default_profile.d.ts +25 -0
  386. package/script/profile/default_profile.d.ts.map +1 -0
  387. package/script/profile/default_profile.js +46 -0
  388. package/script/profile/discipline_mode.d.ts +64 -0
  389. package/script/profile/discipline_mode.d.ts.map +1 -0
  390. package/script/profile/discipline_mode.js +138 -0
  391. package/script/profile/discipline_registry.d.ts +41 -0
  392. package/script/profile/discipline_registry.d.ts.map +1 -0
  393. package/script/profile/discipline_registry.js +70 -0
  394. package/script/profile/load.d.ts +3 -1
  395. package/script/profile/load.d.ts.map +1 -1
  396. package/script/profile/load.js +24 -5
  397. package/script/profile/manifest.d.ts.map +1 -1
  398. package/script/profile/manifest.js +252 -19
  399. package/script/profile/merge.d.ts.map +1 -1
  400. package/script/profile/merge.js +112 -0
  401. package/script/profile/mod.d.ts +2 -0
  402. package/script/profile/mod.d.ts.map +1 -1
  403. package/script/profile/mod.js +6 -1
  404. package/script/sync/locked_attributes.d.ts +19 -0
  405. package/script/sync/locked_attributes.d.ts.map +1 -0
  406. package/script/sync/locked_attributes.js +30 -0
  407. package/script/sync/log.d.ts +34 -0
  408. package/script/sync/log.d.ts.map +1 -0
  409. package/script/sync/log.js +52 -0
  410. package/script/sync/mapping.d.ts +66 -0
  411. package/script/sync/mapping.d.ts.map +1 -0
  412. package/script/sync/mapping.js +169 -0
  413. package/script/sync/mod.d.ts +16 -0
  414. package/script/sync/mod.d.ts.map +1 -0
  415. package/script/sync/mod.js +21 -0
  416. package/script/sync/status.d.ts +23 -0
  417. package/script/sync/status.d.ts.map +1 -0
  418. package/script/sync/status.js +24 -0
  419. package/script/typl/ast.d.ts +87 -0
  420. package/script/typl/ast.d.ts.map +1 -0
  421. package/script/typl/ast.js +24 -0
  422. package/script/typl/bridge.d.ts +32 -0
  423. package/script/typl/bridge.d.ts.map +1 -0
  424. package/script/typl/bridge.js +30 -0
  425. package/script/typl/bullet.d.ts +34 -0
  426. package/script/typl/bullet.d.ts.map +1 -0
  427. package/script/typl/bullet.js +47 -0
  428. package/script/typl/diagnostics.d.ts +43 -0
  429. package/script/typl/diagnostics.d.ts.map +1 -0
  430. package/script/typl/diagnostics.js +65 -0
  431. package/script/typl/fence.d.ts +31 -0
  432. package/script/typl/fence.d.ts.map +1 -0
  433. package/script/typl/fence.js +27 -0
  434. package/script/typl/grammar.d.ts +20 -0
  435. package/script/typl/grammar.d.ts.map +1 -0
  436. package/script/typl/grammar.js +474 -0
  437. package/script/typl/inline.d.ts +34 -0
  438. package/script/typl/inline.d.ts.map +1 -0
  439. package/script/typl/inline.js +51 -0
  440. package/script/typl/lexer.d.ts +37 -0
  441. package/script/typl/lexer.d.ts.map +1 -0
  442. package/script/typl/lexer.js +237 -0
  443. package/script/typl/mod.d.ts +23 -0
  444. package/script/typl/mod.d.ts.map +1 -0
  445. package/script/typl/mod.js +29 -0
  446. package/script/typl/registry.d.ts +42 -0
  447. package/script/typl/registry.d.ts.map +1 -0
  448. package/script/typl/registry.js +29 -0
  449. package/script/typl/validator.d.ts +29 -0
  450. package/script/typl/validator.d.ts.map +1 -0
  451. package/script/typl/validator.js +144 -0
  452. package/script/util/line_endings.d.ts +33 -0
  453. package/script/util/line_endings.d.ts.map +1 -0
  454. package/script/util/line_endings.js +58 -0
  455. package/script/util/modals.d.ts +29 -0
  456. package/script/util/modals.d.ts.map +1 -0
  457. package/script/util/modals.js +42 -0
  458. package/script/validator/discipline.d.ts +35 -0
  459. package/script/validator/discipline.d.ts.map +1 -0
  460. package/script/validator/discipline.js +207 -0
  461. package/script/validator/mod.d.ts +1 -1
  462. package/script/validator/mod.d.ts.map +1 -1
  463. package/script/validator/mod.js +23 -1
  464. package/script/validator/modal_keywords.d.ts +15 -13
  465. package/script/validator/modal_keywords.d.ts.map +1 -1
  466. package/script/validator/modal_keywords.js +26 -109
  467. package/script/validator/pattern.d.ts +15 -8
  468. package/script/validator/pattern.d.ts.map +1 -1
  469. package/script/validator/pattern.js +42 -19
  470. package/script/validator/per_type_attrs.d.ts +2 -2
  471. package/script/validator/per_type_attrs.d.ts.map +1 -1
  472. package/script/validator/per_type_attrs.js +2 -2
  473. package/script/validator/pipeline.d.ts +11 -0
  474. package/script/validator/pipeline.d.ts.map +1 -1
  475. package/script/validator/pipeline.js +40 -17
  476. package/script/validator/type_resolution.d.ts +3 -3
  477. package/script/validator/type_resolution.d.ts.map +1 -1
  478. package/script/validator/type_resolution.js +31 -9
  479. package/esm/parser/entity_refs.d.ts +0 -53
  480. package/esm/parser/entity_refs.d.ts.map +0 -1
  481. package/esm/parser/entity_refs.js +0 -151
  482. package/script/parser/entity_refs.d.ts +0 -53
  483. package/script/parser/entity_refs.d.ts.map +0 -1
  484. package/script/parser/entity_refs.js +0 -155
@@ -244,10 +244,47 @@ export const ATTRIBUTE_CATALOG = [
244
244
  shapes: BOTH_SHAPES,
245
245
  required: false,
246
246
  },
247
+ // Discipline classification per ADR-017 Slice 3.
248
+ // - `Discipline:` is an author-asserted kind that takes precedence over
249
+ // the classifier's type-based and allocation-based channels.
250
+ // Lenient on unknown kinds — the value is emitted verbatim and
251
+ // MSL-T025 warns separately.
252
+ // - `Discipline-frozen:` is a dated snapshot of a past derivation in
253
+ // the form `<kind>` or `<kind> @ <YYYY-MM-DD>`. The formatter stamps
254
+ // today's UTC date when only `<kind>` is written. MSL-T026 catches
255
+ // malformed values; MSL-T030 warns when the freeze diverges from the
256
+ // current derivation.
257
+ // Both are text-typed (the value space is dynamic — kinds come from the
258
+ // effective registry built per ADR-017 Slice 2). Single-cardinality
259
+ // follows automatically because `text` is not in `REPEATABLE_VALUE_TYPES`.
260
+ {
261
+ key: "Discipline",
262
+ type: "text",
263
+ origin: "authored",
264
+ shapes: BOTH_SHAPES,
265
+ required: false,
266
+ },
267
+ {
268
+ key: "Discipline-frozen",
269
+ type: "text",
270
+ origin: "authored",
271
+ shapes: BOTH_SHAPES,
272
+ required: false,
273
+ },
247
274
  ];
248
275
  /** Canonical Title-Case attribute keys the core recognizes. */
249
276
  export const UNIVERSAL_ATTRIBUTE_KEYS = ATTRIBUTE_CATALOG
250
277
  .map((spec) => spec.key);
278
+ /**
279
+ * Attribute value types that accept CSV on input but must be emitted as
280
+ * multi-line per ADR-002 §2.6. `citation` is excluded — locators may contain
281
+ * commas.
282
+ */
283
+ export const CSV_SPLITTABLE_TYPES = new Set([
284
+ "id-list",
285
+ "tag-list",
286
+ "external-id",
287
+ ]);
251
288
  // ---------------------------------------------------------------------------
252
289
  // Lookup helpers
253
290
  // ---------------------------------------------------------------------------
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @module core/model/discipline
3
+ *
4
+ * Discipline classification primitives per ADR-017 Invariants 1 and 2 and
5
+ * ADR-018 R3. The discipline of an entry is one of a small set of "kinds"
6
+ * (`software`, `hardware`, `system`, plus profile-declared extensions).
7
+ *
8
+ * The {@linkcode CORE_DISCIPLINE_REGISTRY} maps the six core SW/HW
9
+ * Component / Interface / Unit subtypes to their kind. Profiles will later
10
+ * extend this registry with their own type → kind mappings (Slice 2; not in
11
+ * this module — Slice 2 will introduce a merge function on top).
12
+ *
13
+ * Authors never type a kind name directly. Discipline is resolved by the
14
+ * classifier (see `core/compiler/discipline_classifier.ts`) via four
15
+ * channels in precedence order: override → freeze → type-based →
16
+ * allocation-based → default `system`. This module supports channels 3
17
+ * (type-based) and 4 (allocation-based); override and freeze are Slice 3.
18
+ */
19
+ /**
20
+ * A discipline kind. `string` rather than a closed union because profiles
21
+ * may register new kinds (e.g. `firmware`, `mechanical`, `avionics`) per
22
+ * ADR-017 Invariant 2. Validity is enforced at registration time, not in
23
+ * the type system.
24
+ */
25
+ export type Discipline = string;
26
+ /**
27
+ * The built-in kinds shipped by core. Profiles may add to this set via the
28
+ * `kinds:` block in their manifest (Slice 2).
29
+ */
30
+ export declare const CORE_KINDS: ReadonlySet<Discipline>;
31
+ /**
32
+ * Sentinel value emitted by the classifier when channel 4 (allocation-based)
33
+ * sees `Allocated-to` targets resolving to more than one distinct kind.
34
+ * **Not** a registerable kind — `CORE_KINDS.has(MIXED_DISCIPLINE)` is
35
+ * `false` by design. The validator (Slice 4) will surface this as an error
36
+ * in flat profiles.
37
+ */
38
+ export declare const MIXED_DISCIPLINE: Discipline;
39
+ /**
40
+ * A discipline registry: type-name → kind mapping. Read-only at the type
41
+ * level; the core seed is frozen. Slice 2 will introduce a builder that
42
+ * merges core seed + profile extensions into an effective registry.
43
+ */
44
+ export type DisciplineRegistry = ReadonlyMap<string, Discipline>;
45
+ /**
46
+ * The built-in core registry, seeded with the six SW/HW Component /
47
+ * Interface / Unit subtypes from ADR-003 §Part 1. Parent types
48
+ * (`Component`, `Interface`, `Unit`) are intentionally absent — they are
49
+ * not discipline-bearing; the classifier walks `Allocated-to` to a
50
+ * concrete subtype.
51
+ */
52
+ export declare const CORE_DISCIPLINE_REGISTRY: DisciplineRegistry;
53
+ //# sourceMappingURL=discipline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discipline.d.ts","sourceRoot":"","sources":["../../src/model/discipline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,UAAU,CAI7C,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAoB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAUrC,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @module core/model/discipline
3
+ *
4
+ * Discipline classification primitives per ADR-017 Invariants 1 and 2 and
5
+ * ADR-018 R3. The discipline of an entry is one of a small set of "kinds"
6
+ * (`software`, `hardware`, `system`, plus profile-declared extensions).
7
+ *
8
+ * The {@linkcode CORE_DISCIPLINE_REGISTRY} maps the six core SW/HW
9
+ * Component / Interface / Unit subtypes to their kind. Profiles will later
10
+ * extend this registry with their own type → kind mappings (Slice 2; not in
11
+ * this module — Slice 2 will introduce a merge function on top).
12
+ *
13
+ * Authors never type a kind name directly. Discipline is resolved by the
14
+ * classifier (see `core/compiler/discipline_classifier.ts`) via four
15
+ * channels in precedence order: override → freeze → type-based →
16
+ * allocation-based → default `system`. This module supports channels 3
17
+ * (type-based) and 4 (allocation-based); override and freeze are Slice 3.
18
+ */
19
+ /**
20
+ * The built-in kinds shipped by core. Profiles may add to this set via the
21
+ * `kinds:` block in their manifest (Slice 2).
22
+ */
23
+ export const CORE_KINDS = new Set([
24
+ "system",
25
+ "software",
26
+ "hardware",
27
+ ]);
28
+ /**
29
+ * Sentinel value emitted by the classifier when channel 4 (allocation-based)
30
+ * sees `Allocated-to` targets resolving to more than one distinct kind.
31
+ * **Not** a registerable kind — `CORE_KINDS.has(MIXED_DISCIPLINE)` is
32
+ * `false` by design. The validator (Slice 4) will surface this as an error
33
+ * in flat profiles.
34
+ */
35
+ export const MIXED_DISCIPLINE = "mixed";
36
+ /**
37
+ * The built-in core registry, seeded with the six SW/HW Component /
38
+ * Interface / Unit subtypes from ADR-003 §Part 1. Parent types
39
+ * (`Component`, `Interface`, `Unit`) are intentionally absent — they are
40
+ * not discipline-bearing; the classifier walks `Allocated-to` to a
41
+ * concrete subtype.
42
+ */
43
+ export const CORE_DISCIPLINE_REGISTRY = new Map([
44
+ ["SoftwareComponent", "software"],
45
+ ["HardwareComponent", "hardware"],
46
+ ["SoftwareInterface", "software"],
47
+ ["HardwareInterface", "hardware"],
48
+ ["SoftwareUnit", "software"],
49
+ ["HardwareUnit", "hardware"],
50
+ ]);
@@ -4,7 +4,9 @@
4
4
  * MarkSpec document model — AST types, ID types, and project configuration.
5
5
  */
6
6
  import type { BodyBlock } from "../ast/nodes.js";
7
- export { ATTRIBUTE_CATALOG, attributeSpec, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
7
+ import type { Discipline } from "./discipline.js";
8
+ import type { TyplBlock } from "../typl/mod.js";
9
+ export { ATTRIBUTE_CATALOG, attributeSpec, CSV_SPLITTABLE_TYPES, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
8
10
  export type { AttributeSpec } from "./attributes.js";
9
11
  export { COLOR_NAME_RE, PALETTE_HUES } from "./palette.js";
10
12
  export type { PaletteHue } from "./palette.js";
@@ -13,6 +15,8 @@ export type { CoreTypeDef } from "./type_hierarchy.js";
13
15
  export { inferTypeFromUriScheme } from "./uri_scheme_map.js";
14
16
  export { inferTypeFromSource } from "./source_introspection.js";
15
17
  export { inferTypeFromDiscriminatingAttr } from "./discriminating_attr.js";
18
+ export { CORE_DISCIPLINE_REGISTRY, CORE_KINDS, MIXED_DISCIPLINE, } from "./discipline.js";
19
+ export type { Discipline, DisciplineRegistry } from "./discipline.js";
16
20
  /**
17
21
  * Human-readable entry identifier from the `[...]` bracket marker.
18
22
  *
@@ -23,15 +27,40 @@ export { inferTypeFromDiscriminatingAttr } from "./discriminating_attr.js";
23
27
  * For referenced entries the display ID is a slug (pandoc/BibTeX cite-key
24
28
  * convention, e.g., `ISO-26262-6`, `serde`, `smith2021`). The leading `@`
25
29
  * in `[@slug]` is accepted as Pandoc sugar and stripped during parsing.
30
+ *
31
+ * Branded so a `Ulid` cannot be accidentally passed where a `DisplayId`
32
+ * is expected, and vice versa. Use {@linkcode makeDisplayId} to construct.
33
+ */
34
+ export type DisplayId = string & {
35
+ readonly __brand: "DisplayId";
36
+ };
37
+ /**
38
+ * Cast a plain string to a branded `DisplayId`.
39
+ *
40
+ * This is a zero-cost assertion — no validation is performed. The caller
41
+ * asserts that `s` is a syntactically valid display ID.
26
42
  */
27
- export type DisplayId = string;
43
+ export declare function makeDisplayId(s: string): DisplayId;
28
44
  /**
29
45
  * Universally unique identifier, bare 26-character Crockford base32.
30
46
  *
31
47
  * Used as the `Id:` attribute value for identified entries. Assigned by
32
48
  * tooling, never hand-authored, immutable once assigned.
49
+ *
50
+ * Branded so a `DisplayId` cannot be accidentally passed where a `Ulid`
51
+ * is expected, and vice versa. Use {@linkcode makeUlid} to construct.
33
52
  */
34
- export type Ulid = string;
53
+ export type Ulid = string & {
54
+ readonly __brand: "Ulid";
55
+ };
56
+ /**
57
+ * Cast a plain string to a branded `Ulid`.
58
+ *
59
+ * This is a zero-cost assertion — no validation is performed. The caller
60
+ * asserts that `s` is a syntactically valid 26-character Crockford base32
61
+ * ULID.
62
+ */
63
+ export declare function makeUlid(s: string): Ulid;
35
64
  /** Points to a span within a source file. */
36
65
  export interface SourceLocation {
37
66
  /** Absolute or project-relative file path. */
@@ -85,8 +114,35 @@ export interface Attribute {
85
114
  * for exact round-trip through `markspec format`.
86
115
  */
87
116
  export type TypedAttributes = ReadonlyMap<string, readonly string[]>;
88
- /** The origin format of the entry. */
89
- export type EntrySource = "markdown" | "doc-comment";
117
+ /** Supported source-file languages for doc-comment extraction. */
118
+ export type SupportedLanguage = "rust" | "kotlin" | "java" | "c" | "cpp" | "typescript" | "tsx" | "javascript" | "csharp";
119
+ /** Which extractor rule produced a doc-comment entry. Distinguishes the
120
+ * three lexical doc-comment styles MarkSpec recognises across grammars. */
121
+ export type ExtractorRule = "outer-doc-comment" | "inner-doc-comment" | "block-doc-comment";
122
+ /**
123
+ * Tagged union describing what produced an entry. Replaces the previous
124
+ * string discriminator ("markdown" | "doc-comment") to carry per-entry
125
+ * source metadata (language, enclosing function name, extractor rule) for
126
+ * code-extracted entries. See ADR-006 §1 and the source-properties spec.
127
+ */
128
+ export type EntrySource = {
129
+ readonly kind: "markdown";
130
+ } | {
131
+ readonly kind: "doc-comment";
132
+ readonly language: SupportedLanguage;
133
+ /**
134
+ * Name of the enclosing function / class / struct / impl / mod /
135
+ * trait at the doc comment's source location. Absent means the
136
+ * extractor returned undefined for any reason — covers both
137
+ * "no enclosing item exists" (e.g., crate-root `//!` block) AND
138
+ * "extractor could not extract a name from the item it found"
139
+ * (anonymous structures, operator overloads, lambdas). Consumers
140
+ * must NOT treat absence as proof the entry is at file scope.
141
+ */
142
+ readonly function?: string;
143
+ /** Which extractor rule matched. */
144
+ readonly rule: ExtractorRule;
145
+ };
90
146
  /**
91
147
  * Entry shape — one of two semantics-free categories the core recognizes.
92
148
  *
@@ -161,16 +217,22 @@ export interface EntryProperties {
161
217
  /** ISO 8601 last-modified timestamp from the filesystem. */
162
218
  readonly mtime?: string;
163
219
  };
164
- /** Version-control observations. */
220
+ /** Version-control observations from the file's git history. */
165
221
  readonly git?: {
222
+ /** ISO 8601 — author date of the first commit that touched the file. */
166
223
  readonly createdAt?: string;
224
+ /** ISO 8601 — author date of the last commit that touched the file. */
167
225
  readonly modifiedAt?: string;
226
+ /** Distinct commit-author names, sorted. PII-adjacent — opt-in only. */
168
227
  readonly contributors?: readonly string[];
228
+ /** Short SHA of the last commit that touched the file. */
169
229
  readonly revision?: string;
170
230
  };
171
231
  /** External connector state. */
172
232
  readonly sync?: {
173
233
  readonly lastSyncedAt?: string;
234
+ /** RFC 3339 timestamp of the most recent conflict event for any binding on this entry (ADR-019). */
235
+ readonly lastConflictAt?: string;
174
236
  readonly remoteState?: string;
175
237
  readonly externalSource?: string;
176
238
  };
@@ -178,6 +240,8 @@ export interface EntryProperties {
178
240
  readonly build?: {
179
241
  readonly resolutionSource?: string;
180
242
  readonly registryOrigin?: string;
243
+ /** sha256:* hash recorded in markspec.lock for this entry's locked-attribute set at last lock (ADR-019). */
244
+ readonly lockHash?: string;
181
245
  };
182
246
  /**
183
247
  * Entry-source provenance — set when an entry is produced by an adapter
@@ -188,6 +252,16 @@ export interface EntryProperties {
188
252
  readonly type: string;
189
253
  readonly adapter?: string;
190
254
  readonly language?: string;
255
+ /**
256
+ * Name of the enclosing function / class / struct / impl / mod /
257
+ * trait at the doc comment's source location. Absent means the
258
+ * extractor returned undefined — covers BOTH "no enclosing item
259
+ * exists" (crate-root `//!` block) AND "extractor could not extract
260
+ * a name from the item it found" (anonymous structures, operator
261
+ * overloads, lambdas). Consumers must NOT treat absence as proof
262
+ * the entry is at file scope.
263
+ */
264
+ readonly function?: string;
191
265
  readonly rule?: string;
192
266
  readonly extractedAt?: string;
193
267
  };
@@ -246,6 +320,24 @@ export interface Entry {
246
320
  readonly shape: EntryShape;
247
321
  /** Where the entry was found. */
248
322
  readonly location: SourceLocation;
323
+ /**
324
+ * File-absolute 1-based line where the entry's body begins.
325
+ *
326
+ * Used by prose-analysis rules (MSL-Q500) to convert body-relative
327
+ * paragraph ranges (as produced by `buildBodyAst`) to file-absolute
328
+ * `LintDiagnostic.range` positions — the contract from slice 3.
329
+ *
330
+ * For `.md` entries this is `location.line + 1` (legacy convention
331
+ * shared with `bodyTokens`); for doc-comment entries it is the
332
+ * file-absolute line of the first non-title child after lineMap
333
+ * translation.
334
+ *
335
+ * Optional so existing test fixtures and pre-compiler pipeline
336
+ * stages that do not set this field can remain unchanged. Prose-analysis
337
+ * rules that need a file-absolute base line fall back to
338
+ * `location.line + 1` when absent.
339
+ */
340
+ readonly bodyStartLine?: number;
249
341
  /** Whether this came from a Markdown file or a doc comment. */
250
342
  readonly source: EntrySource;
251
343
  /**
@@ -254,11 +346,41 @@ export interface Entry {
254
346
  */
255
347
  readonly properties?: EntryProperties;
256
348
  /**
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.
349
+ * Inline-construct tokens recognised in the entry body prose
350
+ * (ADR-016). Eager, sorted by `(line, column)`, file-relative.
351
+ * Always present — empty array when no constructs are recognised.
260
352
  */
261
- readonly entityRefs?: readonly EntityRef[];
353
+ readonly bodyTokens: readonly BodyToken[];
354
+ /**
355
+ * typl declarations extracted from typl-info-string fences in the
356
+ * entry body, if any. Absent when the entry contains no typl fences.
357
+ *
358
+ * Populated by the parser via {@linkcode extractTyplFences} +
359
+ * {@linkcode parseTyplBlock} aggregated across all fences in the
360
+ * entry. Per-fence diagnostics are bridged to file-relative core
361
+ * diagnostics and surface in the parser's diagnostic stream.
362
+ *
363
+ * See ADR-019.
364
+ */
365
+ readonly types?: TyplBlock;
366
+ /**
367
+ * Discipline kind resolved by the classifier per ADR-017 Invariant 1
368
+ * (channels 1–4 with default `system`).
369
+ *
370
+ * **Always set on entries returned from `compile()` after Phase 4** —
371
+ * external consumers reading the compiled output (reporter, serializer,
372
+ * LSP, MCP) can rely on this field being present. The optional `?:`
373
+ * modifier exists only because synthetic Entry literals (test fixtures)
374
+ * and parser-emitted entries before Phase 4 don't carry the field;
375
+ * these are internal pipeline states, not the public contract.
376
+ *
377
+ * Values are drawn from the active discipline registry (built-in
378
+ * `software` / `hardware` / `system` plus any profile-declared
379
+ * extensions); `"mixed"` is emitted when channel 4 sees `Allocated-to`
380
+ * targets resolving to more than one distinct kind. Authors never type
381
+ * this value directly.
382
+ */
383
+ readonly derivedDiscipline?: Discipline;
262
384
  }
263
385
  /** Severity level for diagnostics. */
264
386
  export type Severity = "error" | "warning" | "info";
@@ -368,35 +490,71 @@ export interface InlineRef {
368
490
  */
369
491
  export type EntityRefConvention = "type" | "instance" | "constant";
370
492
  /**
371
- * An inline `$Identifier` token found in entry body prose (spec §2.5.2).
493
+ * Inline-construct token kinds recognised in entry body prose (ADR-016).
372
494
  *
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`.
495
+ * Split where at least one consumer fans out behaviour at the kind level
496
+ * (`gherkin-section` → LSP `class` token vs `gherkin-step` → `keyword`),
497
+ * collapsed elsewhere into discriminator fields on the token variant
498
+ * (`modal.case`, `entity-ref.convention`).
499
+ */
500
+ export type BodyTokenKind = "modal" | "ears-trigger" | "gherkin-section" | "gherkin-step" | "entity-ref" | "inline-code";
501
+ /** Case form of a modal token — MSL-M060 targets `"upper"`. */
502
+ export type ModalCase = "lower" | "upper";
503
+ /** EARS trigger word — captured as a discriminator on `ears-trigger` tokens. */
504
+ export type EarsTrigger = "When" | "While" | "If" | "Where" | "Then";
505
+ /**
506
+ * One inline-construct token emitted by the parser at extraction time.
381
507
  *
382
- * Resolution to an entity in the project's RIDL types / code symbols /
383
- * constants registry is performed by the validator's marker pass.
508
+ * Discriminated union; consumers `switch` on `kind` for fan-out and read
509
+ * the discriminator field (`case`, `trigger`, `convention`) when more
510
+ * precision is needed. Locations are file-relative 1-based, matching
511
+ * every other {@linkcode SourceLocation} in the model.
384
512
  */
385
- export interface EntityRef {
386
- readonly ident: string;
513
+ export type BodyToken = {
514
+ readonly kind: "modal";
515
+ readonly text: string;
516
+ readonly case: ModalCase;
517
+ readonly location: SourceLocation;
518
+ } | {
519
+ readonly kind: "ears-trigger";
520
+ readonly text: string;
521
+ readonly trigger: EarsTrigger;
522
+ readonly location: SourceLocation;
523
+ } | {
524
+ readonly kind: "gherkin-section";
525
+ readonly text: string;
526
+ readonly location: SourceLocation;
527
+ } | {
528
+ readonly kind: "gherkin-step";
529
+ readonly text: string;
530
+ readonly location: SourceLocation;
531
+ } | {
532
+ readonly kind: "entity-ref";
533
+ readonly text: string;
387
534
  readonly convention: EntityRefConvention;
388
535
  readonly location: SourceLocation;
389
- }
536
+ } | {
537
+ readonly kind: "inline-code";
538
+ readonly text: string;
539
+ readonly location: SourceLocation;
540
+ };
390
541
  /**
391
542
  * Kind of directional link between entries — relation name lifted from the
392
543
  * source attribute.
393
544
  *
394
- * The core bakes in only `supersedes` (universal retirement). All other
395
- * relation names listed here are conventions recognized by shipped profile
396
- * packages; in a profile-aware pipeline, link kinds come from the active
397
- * profile's `traceability:` declarations rather than this closed union.
545
+ * Open `string` so profile-declared relation names (e.g., from a profile's
546
+ * `traceability:` declarations) can be used without changing core. The
547
+ * canonical built-in kinds are enumerated in {@linkcode KNOWN_LINK_KINDS}.
548
+ */
549
+ export type LinkKind = string;
550
+ /**
551
+ * Built-in link kinds recognized by the core compiler and shipped profiles.
552
+ *
553
+ * Consumers that need to validate or enumerate the core-defined relation
554
+ * vocabulary should use this constant rather than hard-coding string literals.
555
+ * Profile-declared kinds extend this set at runtime.
398
556
  */
399
- export type LinkKind = "satisfies" | "derived-from" | "references" | "allocated-to" | "realizes" | "verifies" | "tests" | "depends-on" | "part-of" | "generated-from" | "supersedes";
557
+ export declare const KNOWN_LINK_KINDS: readonly string[];
400
558
  /** A directional link between two entries in the traceability graph. */
401
559
  export interface Link {
402
560
  readonly from: DisplayId;
@@ -473,6 +631,6 @@ export interface Document {
473
631
  /** Observed document properties. */
474
632
  readonly properties: DocumentProperties;
475
633
  }
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";
634
+ export type { AttrDecl, Cardinality, DisciplineMode, DocTypeDef, EffectiveProfile, EffectiveTypeDef, EnforcementMode, InverseDecl, KindDecl, LabelConcern, LabelConcernKind, LabelValue, LoadedProfile, ProfileChain, ProfileConvention, ProfileId, ProfileManifest, ProfileSpecifier, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, TargetMatcher, TraceRule, TypeDef, ValueType, } from "./profile.js";
477
635
  export { LIST_VALUE_TYPES, VALUE_TYPES } from "./profile.js";
478
636
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/model/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,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;AAE/C,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAM3E;;;;;;;;;;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,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAMD;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,yDAKtB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kMAiBtB,CAAC;AAEX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MarkSpec document model — AST types, ID types, and project configuration.
5
5
  */
6
- export { ATTRIBUTE_CATALOG, attributeSpec, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
6
+ export { ATTRIBUTE_CATALOG, attributeSpec, CSV_SPLITTABLE_TYPES, UNIVERSAL_ATTRIBUTE_KEYS, } from "./attributes.js";
7
7
  export { COLOR_NAME_RE, PALETTE_HUES } from "./palette.js";
8
8
  export { attributesForType, CORE_TYPE_HIERARCHY, CORE_TYPE_SCOPED_ATTRS, } from "./type_hierarchy.js";
9
9
  export { inferTypeFromUriScheme } from "./uri_scheme_map.js";
10
10
  export { inferTypeFromSource } from "./source_introspection.js";
11
11
  export { inferTypeFromDiscriminatingAttr } from "./discriminating_attr.js";
12
+ // Re-export discipline primitives (ADR-017 / ADR-018).
13
+ export { CORE_DISCIPLINE_REGISTRY, CORE_KINDS, MIXED_DISCIPLINE, } from "./discipline.js";
14
+ /**
15
+ * Cast a plain string to a branded `DisplayId`.
16
+ *
17
+ * This is a zero-cost assertion — no validation is performed. The caller
18
+ * asserts that `s` is a syntactically valid display ID.
19
+ */
20
+ export function makeDisplayId(s) {
21
+ return s;
22
+ }
23
+ /**
24
+ * Cast a plain string to a branded `Ulid`.
25
+ *
26
+ * This is a zero-cost assertion — no validation is performed. The caller
27
+ * asserts that `s` is a syntactically valid 26-character Crockford base32
28
+ * ULID.
29
+ */
30
+ export function makeUlid(s) {
31
+ return s;
32
+ }
12
33
  // ---------------------------------------------------------------------------
13
34
  // Core type taxonomy (ADR-003 §Part 1, spec §1.3)
14
35
  // ---------------------------------------------------------------------------
@@ -126,4 +147,24 @@ export class ConfigError extends Error {
126
147
  this.fieldErrors = fieldErrors;
127
148
  }
128
149
  }
150
+ /**
151
+ * Built-in link kinds recognized by the core compiler and shipped profiles.
152
+ *
153
+ * Consumers that need to validate or enumerate the core-defined relation
154
+ * vocabulary should use this constant rather than hard-coding string literals.
155
+ * Profile-declared kinds extend this set at runtime.
156
+ */
157
+ export const KNOWN_LINK_KINDS = [
158
+ "satisfies",
159
+ "derived-from",
160
+ "references",
161
+ "allocated-to",
162
+ "realizes",
163
+ "verifies",
164
+ "tests",
165
+ "depends-on",
166
+ "part-of",
167
+ "generated-from",
168
+ "supersedes",
169
+ ];
129
170
  export { LIST_VALUE_TYPES, VALUE_TYPES } from "./profile.js";