@driftsys/markspec 0.4.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 (632) hide show
  1. package/README.md +74 -20
  2. package/esm/ast/build.d.ts +60 -0
  3. package/esm/ast/build.d.ts.map +1 -0
  4. package/esm/ast/build.js +516 -0
  5. package/esm/ast/equivalence.d.ts +18 -0
  6. package/esm/ast/equivalence.d.ts.map +1 -0
  7. package/esm/ast/equivalence.js +56 -0
  8. package/esm/ast/nodes.d.ts +189 -0
  9. package/esm/ast/nodes.d.ts.map +1 -0
  10. package/esm/ast/nodes.js +17 -0
  11. package/esm/ast/normalize.d.ts +58 -0
  12. package/esm/ast/normalize.d.ts.map +1 -0
  13. package/esm/ast/normalize.js +197 -0
  14. package/esm/ast/render.d.ts +34 -0
  15. package/esm/ast/render.d.ts.map +1 -0
  16. package/esm/ast/render.js +215 -0
  17. package/esm/compiler/constants.d.ts +16 -0
  18. package/esm/compiler/constants.d.ts.map +1 -0
  19. package/esm/compiler/constants.js +26 -0
  20. package/esm/compiler/discipline_classifier.d.ts +55 -0
  21. package/esm/compiler/discipline_classifier.d.ts.map +1 -0
  22. package/esm/compiler/discipline_classifier.js +191 -0
  23. package/esm/compiler/inverses.d.ts +2 -1
  24. package/esm/compiler/inverses.d.ts.map +1 -1
  25. package/esm/compiler/inverses.js +33 -14
  26. package/esm/compiler/manifest.d.ts +59 -0
  27. package/esm/compiler/manifest.d.ts.map +1 -0
  28. package/esm/compiler/manifest.js +48 -0
  29. package/esm/compiler/mod.d.ts +38 -1
  30. package/esm/compiler/mod.d.ts.map +1 -1
  31. package/esm/compiler/mod.js +202 -50
  32. package/esm/compiler/ndjson_writer.d.ts +50 -0
  33. package/esm/compiler/ndjson_writer.d.ts.map +1 -0
  34. package/esm/compiler/ndjson_writer.js +73 -0
  35. package/esm/compiler/schema.d.ts +33 -1
  36. package/esm/compiler/schema.d.ts.map +1 -1
  37. package/esm/compiler/schema.js +30 -9
  38. package/esm/config/markspec.d.ts +5 -0
  39. package/esm/config/markspec.d.ts.map +1 -1
  40. package/esm/config/markspec.js +17 -2
  41. package/esm/config/mod.d.ts.map +1 -1
  42. package/esm/config/mod.js +54 -0
  43. package/esm/formatter/mod.d.ts +55 -4
  44. package/esm/formatter/mod.d.ts.map +1 -1
  45. package/esm/formatter/mod.js +423 -46
  46. package/esm/formatter/synth_ulid.d.ts +21 -0
  47. package/esm/formatter/synth_ulid.d.ts.map +1 -0
  48. package/esm/formatter/synth_ulid.js +64 -0
  49. package/esm/lexicons/loader.d.ts +35 -0
  50. package/esm/lexicons/loader.d.ts.map +1 -0
  51. package/esm/lexicons/loader.js +51 -0
  52. package/esm/lexicons/mod.d.ts +13 -0
  53. package/esm/lexicons/mod.d.ts.map +1 -0
  54. package/esm/lexicons/mod.js +12 -0
  55. package/esm/lint/glossary.d.ts +45 -0
  56. package/esm/lint/glossary.d.ts.map +1 -0
  57. package/esm/lint/glossary.js +85 -0
  58. package/esm/lint/mod.d.ts +14 -0
  59. package/esm/lint/mod.d.ts.map +1 -0
  60. package/esm/lint/mod.js +9 -0
  61. package/esm/lint/range_util.d.ts +25 -0
  62. package/esm/lint/range_util.d.ts.map +1 -0
  63. package/esm/lint/range_util.js +50 -0
  64. package/esm/lint/rules/ears.d.ts +39 -0
  65. package/esm/lint/rules/ears.d.ts.map +1 -0
  66. package/esm/lint/rules/ears.js +316 -0
  67. package/esm/lint/rules/incose_sentence.d.ts +46 -0
  68. package/esm/lint/rules/incose_sentence.d.ts.map +1 -0
  69. package/esm/lint/rules/incose_sentence.js +417 -0
  70. package/esm/lint/rules/lexicon.d.ts +24 -0
  71. package/esm/lint/rules/lexicon.d.ts.map +1 -0
  72. package/esm/lint/rules/lexicon.js +236 -0
  73. package/esm/lint/rules/modal_sentence.d.ts +46 -0
  74. package/esm/lint/rules/modal_sentence.d.ts.map +1 -0
  75. package/esm/lint/rules/modal_sentence.js +146 -0
  76. package/esm/lint/rules/passive.d.ts +64 -0
  77. package/esm/lint/rules/passive.d.ts.map +1 -0
  78. package/esm/lint/rules/passive.js +282 -0
  79. package/esm/lint/rules/struct.d.ts +17 -0
  80. package/esm/lint/rules/struct.d.ts.map +1 -0
  81. package/esm/lint/rules/struct.js +55 -0
  82. package/esm/lint/rules/suppression.d.ts +54 -0
  83. package/esm/lint/rules/suppression.d.ts.map +1 -0
  84. package/esm/lint/rules/suppression.js +129 -0
  85. package/esm/lint/rules/xref.d.ts +19 -0
  86. package/esm/lint/rules/xref.d.ts.map +1 -0
  87. package/esm/lint/rules/xref.js +248 -0
  88. package/esm/lint/runner.d.ts +59 -0
  89. package/esm/lint/runner.d.ts.map +1 -0
  90. package/esm/lint/runner.js +153 -0
  91. package/esm/lint/score.d.ts +64 -0
  92. package/esm/lint/score.d.ts.map +1 -0
  93. package/esm/lint/score.js +163 -0
  94. package/esm/lint/segmenter.d.ts +32 -0
  95. package/esm/lint/segmenter.d.ts.map +1 -0
  96. package/esm/lint/segmenter.js +79 -0
  97. package/esm/lint/types.d.ts +31 -0
  98. package/esm/lint/types.d.ts.map +1 -0
  99. package/esm/lint/types.js +9 -0
  100. package/esm/lock/canonical_edges.d.ts +31 -0
  101. package/esm/lock/canonical_edges.d.ts.map +1 -0
  102. package/esm/lock/canonical_edges.js +57 -0
  103. package/esm/lock/check.d.ts +24 -0
  104. package/esm/lock/check.d.ts.map +1 -0
  105. package/esm/lock/check.js +127 -0
  106. package/esm/lock/hash.d.ts +12 -0
  107. package/esm/lock/hash.d.ts.map +1 -0
  108. package/esm/lock/hash.js +32 -0
  109. package/esm/lock/mod.d.ts +19 -0
  110. package/esm/lock/mod.d.ts.map +1 -0
  111. package/esm/lock/mod.js +14 -0
  112. package/esm/lock/model.d.ts +81 -0
  113. package/esm/lock/model.d.ts.map +1 -0
  114. package/esm/lock/model.js +7 -0
  115. package/esm/lock/parser.d.ts +26 -0
  116. package/esm/lock/parser.d.ts.map +1 -0
  117. package/esm/lock/parser.js +195 -0
  118. package/esm/lock/resolve.d.ts +142 -0
  119. package/esm/lock/resolve.d.ts.map +1 -0
  120. package/esm/lock/resolve.js +389 -0
  121. package/esm/lock/serializer.d.ts +14 -0
  122. package/esm/lock/serializer.d.ts.map +1 -0
  123. package/esm/lock/serializer.js +104 -0
  124. package/esm/mod.d.ts +28 -8
  125. package/esm/mod.d.ts.map +1 -1
  126. package/esm/mod.js +23 -4
  127. package/esm/model/attributes.d.ts +6 -0
  128. package/esm/model/attributes.d.ts.map +1 -1
  129. package/esm/model/attributes.js +200 -2
  130. package/esm/model/discipline.d.ts +53 -0
  131. package/esm/model/discipline.d.ts.map +1 -0
  132. package/esm/model/discipline.js +50 -0
  133. package/esm/model/discriminating_attr.d.ts +33 -0
  134. package/esm/model/discriminating_attr.d.ts.map +1 -0
  135. package/esm/model/discriminating_attr.js +74 -0
  136. package/esm/model/mod.d.ts +267 -14
  137. package/esm/model/mod.d.ts.map +1 -1
  138. package/esm/model/mod.js +99 -3
  139. package/esm/model/profile.d.ts +102 -27
  140. package/esm/model/profile.d.ts.map +1 -1
  141. package/esm/model/source_introspection.d.ts +26 -0
  142. package/esm/model/source_introspection.d.ts.map +1 -0
  143. package/esm/model/source_introspection.js +77 -0
  144. package/esm/model/type_hierarchy.d.ts +51 -0
  145. package/esm/model/type_hierarchy.d.ts.map +1 -0
  146. package/esm/model/type_hierarchy.js +126 -0
  147. package/esm/model/uri_scheme_map.d.ts +21 -0
  148. package/esm/model/uri_scheme_map.d.ts.map +1 -0
  149. package/esm/model/uri_scheme_map.js +66 -0
  150. package/esm/parser/attributes.d.ts.map +1 -1
  151. package/esm/parser/attributes.js +10 -16
  152. package/esm/parser/body_tokens.d.ts +35 -0
  153. package/esm/parser/body_tokens.d.ts.map +1 -0
  154. package/esm/parser/body_tokens.js +232 -0
  155. package/esm/parser/glossary.d.ts +51 -0
  156. package/esm/parser/glossary.d.ts.map +1 -0
  157. package/esm/parser/glossary.js +219 -0
  158. package/esm/parser/grammars.d.ts +5 -3
  159. package/esm/parser/grammars.d.ts.map +1 -1
  160. package/esm/parser/grammars.js +12 -4
  161. package/esm/parser/language_spec.d.ts +55 -0
  162. package/esm/parser/language_spec.d.ts.map +1 -0
  163. package/esm/parser/language_spec.js +419 -0
  164. package/esm/parser/line_map.d.ts +60 -0
  165. package/esm/parser/line_map.d.ts.map +1 -0
  166. package/esm/parser/line_map.js +41 -0
  167. package/esm/parser/markdown.d.ts +9 -0
  168. package/esm/parser/markdown.d.ts.map +1 -1
  169. package/esm/parser/markdown.js +317 -25
  170. package/esm/parser/mod.d.ts +5 -0
  171. package/esm/parser/mod.d.ts.map +1 -1
  172. package/esm/parser/mod.js +31 -8
  173. package/esm/parser/source.d.ts +53 -2
  174. package/esm/parser/source.d.ts.map +1 -1
  175. package/esm/parser/source.js +158 -68
  176. package/esm/parser/translate.d.ts +24 -0
  177. package/esm/parser/translate.d.ts.map +1 -0
  178. package/esm/parser/translate.js +99 -0
  179. package/esm/profile/chain.d.ts +8 -0
  180. package/esm/profile/chain.d.ts.map +1 -1
  181. package/esm/profile/chain.js +32 -14
  182. package/esm/profile/colors.js +1 -1
  183. package/esm/profile/default_profile.d.ts +25 -0
  184. package/esm/profile/default_profile.d.ts.map +1 -0
  185. package/esm/profile/default_profile.js +43 -0
  186. package/esm/profile/discipline_mode.d.ts +64 -0
  187. package/esm/profile/discipline_mode.d.ts.map +1 -0
  188. package/esm/profile/discipline_mode.js +133 -0
  189. package/esm/profile/discipline_registry.d.ts +41 -0
  190. package/esm/profile/discipline_registry.d.ts.map +1 -0
  191. package/esm/profile/discipline_registry.js +67 -0
  192. package/esm/profile/introspect.d.ts +135 -0
  193. package/esm/profile/introspect.d.ts.map +1 -0
  194. package/esm/profile/introspect.js +378 -0
  195. package/esm/profile/load.d.ts +3 -1
  196. package/esm/profile/load.d.ts.map +1 -1
  197. package/esm/profile/load.js +91 -5
  198. package/esm/profile/manifest.d.ts.map +1 -1
  199. package/esm/profile/manifest.js +512 -90
  200. package/esm/profile/merge.d.ts.map +1 -1
  201. package/esm/profile/merge.js +251 -39
  202. package/esm/profile/mod.d.ts +4 -4
  203. package/esm/profile/mod.d.ts.map +1 -1
  204. package/esm/profile/mod.js +7 -2
  205. package/esm/reporter/mod.js +4 -4
  206. package/esm/sync/locked_attributes.d.ts +19 -0
  207. package/esm/sync/locked_attributes.d.ts.map +1 -0
  208. package/esm/sync/locked_attributes.js +27 -0
  209. package/esm/sync/log.d.ts +34 -0
  210. package/esm/sync/log.d.ts.map +1 -0
  211. package/esm/sync/log.js +48 -0
  212. package/esm/sync/mapping.d.ts +66 -0
  213. package/esm/sync/mapping.d.ts.map +1 -0
  214. package/esm/sync/mapping.js +165 -0
  215. package/esm/sync/mod.d.ts +16 -0
  216. package/esm/sync/mod.d.ts.map +1 -0
  217. package/esm/sync/mod.js +12 -0
  218. package/esm/sync/status.d.ts +23 -0
  219. package/esm/sync/status.d.ts.map +1 -0
  220. package/esm/sync/status.js +21 -0
  221. package/esm/typl/ast.d.ts +87 -0
  222. package/esm/typl/ast.d.ts.map +1 -0
  223. package/esm/typl/ast.js +21 -0
  224. package/esm/typl/bridge.d.ts +32 -0
  225. package/esm/typl/bridge.d.ts.map +1 -0
  226. package/esm/typl/bridge.js +27 -0
  227. package/esm/typl/bullet.d.ts +34 -0
  228. package/esm/typl/bullet.d.ts.map +1 -0
  229. package/esm/typl/bullet.js +44 -0
  230. package/esm/typl/diagnostics.d.ts +43 -0
  231. package/esm/typl/diagnostics.d.ts.map +1 -0
  232. package/esm/typl/diagnostics.js +61 -0
  233. package/esm/typl/fence.d.ts +31 -0
  234. package/esm/typl/fence.d.ts.map +1 -0
  235. package/esm/typl/fence.js +24 -0
  236. package/esm/typl/grammar.d.ts +20 -0
  237. package/esm/typl/grammar.d.ts.map +1 -0
  238. package/esm/typl/grammar.js +471 -0
  239. package/esm/typl/inline.d.ts +34 -0
  240. package/esm/typl/inline.d.ts.map +1 -0
  241. package/esm/typl/inline.js +48 -0
  242. package/esm/typl/lexer.d.ts +37 -0
  243. package/esm/typl/lexer.d.ts.map +1 -0
  244. package/esm/typl/lexer.js +234 -0
  245. package/esm/typl/mod.d.ts +23 -0
  246. package/esm/typl/mod.d.ts.map +1 -0
  247. package/esm/typl/mod.js +16 -0
  248. package/esm/typl/registry.d.ts +42 -0
  249. package/esm/typl/registry.d.ts.map +1 -0
  250. package/esm/typl/registry.js +26 -0
  251. package/esm/typl/validator.d.ts +29 -0
  252. package/esm/typl/validator.d.ts.map +1 -0
  253. package/esm/typl/validator.js +141 -0
  254. package/esm/util/fence.d.ts +30 -0
  255. package/esm/util/fence.d.ts.map +1 -0
  256. package/esm/util/fence.js +40 -0
  257. package/esm/util/line_endings.d.ts +33 -0
  258. package/esm/util/line_endings.d.ts.map +1 -0
  259. package/esm/util/line_endings.js +53 -0
  260. package/esm/util/modals.d.ts +29 -0
  261. package/esm/util/modals.d.ts.map +1 -0
  262. package/esm/util/modals.js +38 -0
  263. package/esm/validator/attributes.d.ts +3 -3
  264. package/esm/validator/attributes.d.ts.map +1 -1
  265. package/esm/validator/attributes.js +1 -18
  266. package/esm/validator/body_blocks.d.ts +38 -0
  267. package/esm/validator/body_blocks.d.ts.map +1 -0
  268. package/esm/validator/body_blocks.js +218 -0
  269. package/esm/validator/caption_convention.d.ts +29 -0
  270. package/esm/validator/caption_convention.d.ts.map +1 -0
  271. package/esm/validator/caption_convention.js +58 -0
  272. package/esm/validator/captions.d.ts +22 -0
  273. package/esm/validator/captions.d.ts.map +1 -0
  274. package/esm/validator/captions.js +137 -0
  275. package/esm/validator/component_schemes.d.ts +73 -0
  276. package/esm/validator/component_schemes.d.ts.map +1 -0
  277. package/esm/validator/component_schemes.js +375 -0
  278. package/esm/validator/discipline.d.ts +35 -0
  279. package/esm/validator/discipline.d.ts.map +1 -0
  280. package/esm/validator/discipline.js +204 -0
  281. package/esm/validator/feature_ac.d.ts +28 -0
  282. package/esm/validator/feature_ac.d.ts.map +1 -0
  283. package/esm/validator/feature_ac.js +102 -0
  284. package/esm/validator/listing.d.ts +42 -0
  285. package/esm/validator/listing.d.ts.map +1 -0
  286. package/esm/validator/listing.js +295 -0
  287. package/esm/validator/mod.d.ts +3 -1
  288. package/esm/validator/mod.d.ts.map +1 -1
  289. package/esm/validator/mod.js +275 -13
  290. package/esm/validator/modal_keywords.d.ts +25 -0
  291. package/esm/validator/modal_keywords.d.ts.map +1 -0
  292. package/esm/validator/modal_keywords.js +54 -0
  293. package/esm/validator/pattern.d.ts +15 -8
  294. package/esm/validator/pattern.d.ts.map +1 -1
  295. package/esm/validator/pattern.js +42 -19
  296. package/esm/validator/per_type_attrs.d.ts +29 -0
  297. package/esm/validator/per_type_attrs.d.ts.map +1 -0
  298. package/esm/validator/per_type_attrs.js +75 -0
  299. package/esm/validator/pipeline.d.ts +18 -2
  300. package/esm/validator/pipeline.d.ts.map +1 -1
  301. package/esm/validator/pipeline.js +76 -21
  302. package/esm/validator/trace_types.d.ts +26 -0
  303. package/esm/validator/trace_types.d.ts.map +1 -0
  304. package/esm/validator/trace_types.js +232 -0
  305. package/esm/validator/traceability.d.ts +3 -4
  306. package/esm/validator/traceability.d.ts.map +1 -1
  307. package/esm/validator/traceability.js +5 -10
  308. package/esm/validator/type_resolution.d.ts +67 -0
  309. package/esm/validator/type_resolution.d.ts.map +1 -0
  310. package/esm/validator/type_resolution.js +162 -0
  311. package/esm/validator/types.d.ts +45 -0
  312. package/esm/validator/types.d.ts.map +1 -1
  313. package/esm/validator/types.js +128 -16
  314. package/esm/validator/value_types.d.ts +8 -0
  315. package/esm/validator/value_types.d.ts.map +1 -1
  316. package/esm/validator/value_types.js +8 -1
  317. package/package.json +2 -2
  318. package/script/ast/build.d.ts +60 -0
  319. package/script/ast/build.d.ts.map +1 -0
  320. package/script/ast/build.js +521 -0
  321. package/script/ast/equivalence.d.ts +18 -0
  322. package/script/ast/equivalence.d.ts.map +1 -0
  323. package/script/ast/equivalence.js +59 -0
  324. package/script/ast/nodes.d.ts +189 -0
  325. package/script/ast/nodes.d.ts.map +1 -0
  326. package/script/ast/nodes.js +18 -0
  327. package/script/ast/normalize.d.ts +58 -0
  328. package/script/ast/normalize.d.ts.map +1 -0
  329. package/script/ast/normalize.js +200 -0
  330. package/script/ast/render.d.ts +34 -0
  331. package/script/ast/render.d.ts.map +1 -0
  332. package/script/ast/render.js +218 -0
  333. package/script/compiler/constants.d.ts +16 -0
  334. package/script/compiler/constants.d.ts.map +1 -0
  335. package/script/compiler/constants.js +29 -0
  336. package/script/compiler/discipline_classifier.d.ts +55 -0
  337. package/script/compiler/discipline_classifier.d.ts.map +1 -0
  338. package/script/compiler/discipline_classifier.js +196 -0
  339. package/script/compiler/inverses.d.ts +2 -1
  340. package/script/compiler/inverses.d.ts.map +1 -1
  341. package/script/compiler/inverses.js +33 -14
  342. package/script/compiler/manifest.d.ts +59 -0
  343. package/script/compiler/manifest.d.ts.map +1 -0
  344. package/script/compiler/manifest.js +51 -0
  345. package/script/compiler/mod.d.ts +38 -1
  346. package/script/compiler/mod.d.ts.map +1 -1
  347. package/script/compiler/mod.js +206 -54
  348. package/script/compiler/ndjson_writer.d.ts +50 -0
  349. package/script/compiler/ndjson_writer.d.ts.map +1 -0
  350. package/script/compiler/ndjson_writer.js +78 -0
  351. package/script/compiler/schema.d.ts +33 -1
  352. package/script/compiler/schema.d.ts.map +1 -1
  353. package/script/compiler/schema.js +30 -8
  354. package/script/config/markspec.d.ts +5 -0
  355. package/script/config/markspec.d.ts.map +1 -1
  356. package/script/config/markspec.js +17 -2
  357. package/script/config/mod.d.ts.map +1 -1
  358. package/script/config/mod.js +54 -0
  359. package/script/formatter/mod.d.ts +55 -4
  360. package/script/formatter/mod.d.ts.map +1 -1
  361. package/script/formatter/mod.js +426 -46
  362. package/script/formatter/synth_ulid.d.ts +21 -0
  363. package/script/formatter/synth_ulid.d.ts.map +1 -0
  364. package/script/formatter/synth_ulid.js +67 -0
  365. package/script/lexicons/loader.d.ts +35 -0
  366. package/script/lexicons/loader.d.ts.map +1 -0
  367. package/script/lexicons/loader.js +55 -0
  368. package/script/lexicons/mod.d.ts +13 -0
  369. package/script/lexicons/mod.d.ts.map +1 -0
  370. package/script/lexicons/mod.js +17 -0
  371. package/script/lint/glossary.d.ts +45 -0
  372. package/script/lint/glossary.d.ts.map +1 -0
  373. package/script/lint/glossary.js +88 -0
  374. package/script/lint/mod.d.ts +14 -0
  375. package/script/lint/mod.d.ts.map +1 -0
  376. package/script/lint/mod.js +17 -0
  377. package/script/lint/range_util.d.ts +25 -0
  378. package/script/lint/range_util.d.ts.map +1 -0
  379. package/script/lint/range_util.js +53 -0
  380. package/script/lint/rules/ears.d.ts +39 -0
  381. package/script/lint/rules/ears.d.ts.map +1 -0
  382. package/script/lint/rules/ears.js +320 -0
  383. package/script/lint/rules/incose_sentence.d.ts +46 -0
  384. package/script/lint/rules/incose_sentence.d.ts.map +1 -0
  385. package/script/lint/rules/incose_sentence.js +421 -0
  386. package/script/lint/rules/lexicon.d.ts +24 -0
  387. package/script/lint/rules/lexicon.d.ts.map +1 -0
  388. package/script/lint/rules/lexicon.js +240 -0
  389. package/script/lint/rules/modal_sentence.d.ts +46 -0
  390. package/script/lint/rules/modal_sentence.d.ts.map +1 -0
  391. package/script/lint/rules/modal_sentence.js +150 -0
  392. package/script/lint/rules/passive.d.ts +64 -0
  393. package/script/lint/rules/passive.d.ts.map +1 -0
  394. package/script/lint/rules/passive.js +286 -0
  395. package/script/lint/rules/struct.d.ts +17 -0
  396. package/script/lint/rules/struct.d.ts.map +1 -0
  397. package/script/lint/rules/struct.js +59 -0
  398. package/script/lint/rules/suppression.d.ts +54 -0
  399. package/script/lint/rules/suppression.d.ts.map +1 -0
  400. package/script/lint/rules/suppression.js +136 -0
  401. package/script/lint/rules/xref.d.ts +19 -0
  402. package/script/lint/rules/xref.d.ts.map +1 -0
  403. package/script/lint/rules/xref.js +251 -0
  404. package/script/lint/runner.d.ts +59 -0
  405. package/script/lint/runner.d.ts.map +1 -0
  406. package/script/lint/runner.js +157 -0
  407. package/script/lint/score.d.ts +64 -0
  408. package/script/lint/score.d.ts.map +1 -0
  409. package/script/lint/score.js +167 -0
  410. package/script/lint/segmenter.d.ts +32 -0
  411. package/script/lint/segmenter.d.ts.map +1 -0
  412. package/script/lint/segmenter.js +82 -0
  413. package/script/lint/types.d.ts +31 -0
  414. package/script/lint/types.d.ts.map +1 -0
  415. package/script/lint/types.js +10 -0
  416. package/script/lock/canonical_edges.d.ts +31 -0
  417. package/script/lock/canonical_edges.d.ts.map +1 -0
  418. package/script/lock/canonical_edges.js +61 -0
  419. package/script/lock/check.d.ts +24 -0
  420. package/script/lock/check.d.ts.map +1 -0
  421. package/script/lock/check.js +130 -0
  422. package/script/lock/hash.d.ts +12 -0
  423. package/script/lock/hash.d.ts.map +1 -0
  424. package/script/lock/hash.js +36 -0
  425. package/script/lock/mod.d.ts +19 -0
  426. package/script/lock/mod.d.ts.map +1 -0
  427. package/script/lock/mod.js +31 -0
  428. package/script/lock/model.d.ts +81 -0
  429. package/script/lock/model.d.ts.map +1 -0
  430. package/script/lock/model.js +10 -0
  431. package/script/lock/parser.d.ts +26 -0
  432. package/script/lock/parser.d.ts.map +1 -0
  433. package/script/lock/parser.js +198 -0
  434. package/script/lock/resolve.d.ts +142 -0
  435. package/script/lock/resolve.d.ts.map +1 -0
  436. package/script/lock/resolve.js +397 -0
  437. package/script/lock/serializer.d.ts +14 -0
  438. package/script/lock/serializer.d.ts.map +1 -0
  439. package/script/lock/serializer.js +107 -0
  440. package/script/mod.d.ts +28 -8
  441. package/script/mod.d.ts.map +1 -1
  442. package/script/mod.js +129 -32
  443. package/script/model/attributes.d.ts +6 -0
  444. package/script/model/attributes.d.ts.map +1 -1
  445. package/script/model/attributes.js +201 -3
  446. package/script/model/discipline.d.ts +53 -0
  447. package/script/model/discipline.d.ts.map +1 -0
  448. package/script/model/discipline.js +53 -0
  449. package/script/model/discriminating_attr.d.ts +33 -0
  450. package/script/model/discriminating_attr.d.ts.map +1 -0
  451. package/script/model/discriminating_attr.js +77 -0
  452. package/script/model/mod.d.ts +267 -14
  453. package/script/model/mod.d.ts.map +1 -1
  454. package/script/model/mod.js +111 -3
  455. package/script/model/profile.d.ts +102 -27
  456. package/script/model/profile.d.ts.map +1 -1
  457. package/script/model/source_introspection.d.ts +26 -0
  458. package/script/model/source_introspection.d.ts.map +1 -0
  459. package/script/model/source_introspection.js +80 -0
  460. package/script/model/type_hierarchy.d.ts +51 -0
  461. package/script/model/type_hierarchy.d.ts.map +1 -0
  462. package/script/model/type_hierarchy.js +130 -0
  463. package/script/model/uri_scheme_map.d.ts +21 -0
  464. package/script/model/uri_scheme_map.d.ts.map +1 -0
  465. package/script/model/uri_scheme_map.js +69 -0
  466. package/script/parser/attributes.d.ts.map +1 -1
  467. package/script/parser/attributes.js +10 -16
  468. package/script/parser/body_tokens.d.ts +35 -0
  469. package/script/parser/body_tokens.d.ts.map +1 -0
  470. package/script/parser/body_tokens.js +235 -0
  471. package/script/parser/glossary.d.ts +51 -0
  472. package/script/parser/glossary.d.ts.map +1 -0
  473. package/script/parser/glossary.js +224 -0
  474. package/script/parser/grammars.d.ts +5 -3
  475. package/script/parser/grammars.d.ts.map +1 -1
  476. package/script/parser/grammars.js +15 -8
  477. package/script/parser/language_spec.d.ts +55 -0
  478. package/script/parser/language_spec.d.ts.map +1 -0
  479. package/script/parser/language_spec.js +423 -0
  480. package/script/parser/line_map.d.ts +60 -0
  481. package/script/parser/line_map.d.ts.map +1 -0
  482. package/script/parser/line_map.js +44 -0
  483. package/script/parser/markdown.d.ts +9 -0
  484. package/script/parser/markdown.d.ts.map +1 -1
  485. package/script/parser/markdown.js +315 -23
  486. package/script/parser/mod.d.ts +5 -0
  487. package/script/parser/mod.d.ts.map +1 -1
  488. package/script/parser/mod.js +36 -7
  489. package/script/parser/source.d.ts +53 -2
  490. package/script/parser/source.d.ts.map +1 -1
  491. package/script/parser/source.js +159 -69
  492. package/script/parser/translate.d.ts +24 -0
  493. package/script/parser/translate.d.ts.map +1 -0
  494. package/script/parser/translate.js +102 -0
  495. package/script/profile/chain.d.ts +8 -0
  496. package/script/profile/chain.d.ts.map +1 -1
  497. package/script/profile/chain.js +32 -14
  498. package/script/profile/colors.js +1 -1
  499. package/script/profile/default_profile.d.ts +25 -0
  500. package/script/profile/default_profile.d.ts.map +1 -0
  501. package/script/profile/default_profile.js +46 -0
  502. package/script/profile/discipline_mode.d.ts +64 -0
  503. package/script/profile/discipline_mode.d.ts.map +1 -0
  504. package/script/profile/discipline_mode.js +138 -0
  505. package/script/profile/discipline_registry.d.ts +41 -0
  506. package/script/profile/discipline_registry.d.ts.map +1 -0
  507. package/script/profile/discipline_registry.js +70 -0
  508. package/script/profile/introspect.d.ts +135 -0
  509. package/script/profile/introspect.d.ts.map +1 -0
  510. package/script/profile/introspect.js +381 -0
  511. package/script/profile/load.d.ts +3 -1
  512. package/script/profile/load.d.ts.map +1 -1
  513. package/script/profile/load.js +91 -5
  514. package/script/profile/manifest.d.ts.map +1 -1
  515. package/script/profile/manifest.js +511 -89
  516. package/script/profile/merge.d.ts.map +1 -1
  517. package/script/profile/merge.js +251 -39
  518. package/script/profile/mod.d.ts +4 -4
  519. package/script/profile/mod.d.ts.map +1 -1
  520. package/script/profile/mod.js +12 -6
  521. package/script/reporter/mod.js +4 -4
  522. package/script/sync/locked_attributes.d.ts +19 -0
  523. package/script/sync/locked_attributes.d.ts.map +1 -0
  524. package/script/sync/locked_attributes.js +30 -0
  525. package/script/sync/log.d.ts +34 -0
  526. package/script/sync/log.d.ts.map +1 -0
  527. package/script/sync/log.js +52 -0
  528. package/script/sync/mapping.d.ts +66 -0
  529. package/script/sync/mapping.d.ts.map +1 -0
  530. package/script/sync/mapping.js +169 -0
  531. package/script/sync/mod.d.ts +16 -0
  532. package/script/sync/mod.d.ts.map +1 -0
  533. package/script/sync/mod.js +21 -0
  534. package/script/sync/status.d.ts +23 -0
  535. package/script/sync/status.d.ts.map +1 -0
  536. package/script/sync/status.js +24 -0
  537. package/script/typl/ast.d.ts +87 -0
  538. package/script/typl/ast.d.ts.map +1 -0
  539. package/script/typl/ast.js +24 -0
  540. package/script/typl/bridge.d.ts +32 -0
  541. package/script/typl/bridge.d.ts.map +1 -0
  542. package/script/typl/bridge.js +30 -0
  543. package/script/typl/bullet.d.ts +34 -0
  544. package/script/typl/bullet.d.ts.map +1 -0
  545. package/script/typl/bullet.js +47 -0
  546. package/script/typl/diagnostics.d.ts +43 -0
  547. package/script/typl/diagnostics.d.ts.map +1 -0
  548. package/script/typl/diagnostics.js +65 -0
  549. package/script/typl/fence.d.ts +31 -0
  550. package/script/typl/fence.d.ts.map +1 -0
  551. package/script/typl/fence.js +27 -0
  552. package/script/typl/grammar.d.ts +20 -0
  553. package/script/typl/grammar.d.ts.map +1 -0
  554. package/script/typl/grammar.js +474 -0
  555. package/script/typl/inline.d.ts +34 -0
  556. package/script/typl/inline.d.ts.map +1 -0
  557. package/script/typl/inline.js +51 -0
  558. package/script/typl/lexer.d.ts +37 -0
  559. package/script/typl/lexer.d.ts.map +1 -0
  560. package/script/typl/lexer.js +237 -0
  561. package/script/typl/mod.d.ts +23 -0
  562. package/script/typl/mod.d.ts.map +1 -0
  563. package/script/typl/mod.js +29 -0
  564. package/script/typl/registry.d.ts +42 -0
  565. package/script/typl/registry.d.ts.map +1 -0
  566. package/script/typl/registry.js +29 -0
  567. package/script/typl/validator.d.ts +29 -0
  568. package/script/typl/validator.d.ts.map +1 -0
  569. package/script/typl/validator.js +144 -0
  570. package/script/util/fence.d.ts +30 -0
  571. package/script/util/fence.d.ts.map +1 -0
  572. package/script/util/fence.js +44 -0
  573. package/script/util/line_endings.d.ts +33 -0
  574. package/script/util/line_endings.d.ts.map +1 -0
  575. package/script/util/line_endings.js +58 -0
  576. package/script/util/modals.d.ts +29 -0
  577. package/script/util/modals.d.ts.map +1 -0
  578. package/script/util/modals.js +42 -0
  579. package/script/validator/attributes.d.ts +3 -3
  580. package/script/validator/attributes.d.ts.map +1 -1
  581. package/script/validator/attributes.js +1 -18
  582. package/script/validator/body_blocks.d.ts +38 -0
  583. package/script/validator/body_blocks.d.ts.map +1 -0
  584. package/script/validator/body_blocks.js +221 -0
  585. package/script/validator/caption_convention.d.ts +29 -0
  586. package/script/validator/caption_convention.d.ts.map +1 -0
  587. package/script/validator/caption_convention.js +61 -0
  588. package/script/validator/captions.d.ts +22 -0
  589. package/script/validator/captions.d.ts.map +1 -0
  590. package/script/validator/captions.js +140 -0
  591. package/script/validator/component_schemes.d.ts +73 -0
  592. package/script/validator/component_schemes.d.ts.map +1 -0
  593. package/script/validator/component_schemes.js +384 -0
  594. package/script/validator/discipline.d.ts +35 -0
  595. package/script/validator/discipline.d.ts.map +1 -0
  596. package/script/validator/discipline.js +207 -0
  597. package/script/validator/feature_ac.d.ts +28 -0
  598. package/script/validator/feature_ac.d.ts.map +1 -0
  599. package/script/validator/feature_ac.js +105 -0
  600. package/script/validator/listing.d.ts +42 -0
  601. package/script/validator/listing.d.ts.map +1 -0
  602. package/script/validator/listing.js +298 -0
  603. package/script/validator/mod.d.ts +3 -1
  604. package/script/validator/mod.d.ts.map +1 -1
  605. package/script/validator/mod.js +278 -14
  606. package/script/validator/modal_keywords.d.ts +25 -0
  607. package/script/validator/modal_keywords.d.ts.map +1 -0
  608. package/script/validator/modal_keywords.js +57 -0
  609. package/script/validator/pattern.d.ts +15 -8
  610. package/script/validator/pattern.d.ts.map +1 -1
  611. package/script/validator/pattern.js +42 -19
  612. package/script/validator/per_type_attrs.d.ts +29 -0
  613. package/script/validator/per_type_attrs.d.ts.map +1 -0
  614. package/script/validator/per_type_attrs.js +78 -0
  615. package/script/validator/pipeline.d.ts +18 -2
  616. package/script/validator/pipeline.d.ts.map +1 -1
  617. package/script/validator/pipeline.js +78 -22
  618. package/script/validator/trace_types.d.ts +26 -0
  619. package/script/validator/trace_types.d.ts.map +1 -0
  620. package/script/validator/trace_types.js +235 -0
  621. package/script/validator/traceability.d.ts +3 -4
  622. package/script/validator/traceability.d.ts.map +1 -1
  623. package/script/validator/traceability.js +5 -10
  624. package/script/validator/type_resolution.d.ts +67 -0
  625. package/script/validator/type_resolution.d.ts.map +1 -0
  626. package/script/validator/type_resolution.js +168 -0
  627. package/script/validator/types.d.ts +45 -0
  628. package/script/validator/types.d.ts.map +1 -1
  629. package/script/validator/types.js +131 -16
  630. package/script/validator/value_types.d.ts +8 -0
  631. package/script/validator/value_types.d.ts.map +1 -1
  632. package/script/validator/value_types.js +10 -2
package/script/mod.d.ts CHANGED
@@ -8,23 +8,43 @@
8
8
  * from core/mod.ts, never from internal paths.
9
9
  */
10
10
  import "./_dnt.polyfills.js";
11
- export declare const VERSION = "0.0.1";
12
- export { ConfigError, DEFAULT_PROJECT_CONFIG, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
13
- export type { Attribute, Caption, ConfigFieldError, Diagnostic, Directive, DisplayId, EffectiveProfile, EffectiveTypeDef, Entry, EntryShape, EntrySource, InlineRef, Link, LinkKind, PaletteHue, ProfileChain, ProjectConfig, Severity, SourceLocation, Ulid, } from "./model/mod.js";
11
+ export declare const VERSION = "0.6.0";
12
+ export declare const CORE_SCHEMA_VERSION = 1;
13
+ export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, DEFAULT_PROJECT_CONFIG, KNOWN_LINK_KINDS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
14
+ export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, Severity, SourceLocation, Ulid, } from "./model/mod.js";
15
+ export { astEquivalent } from "./ast/equivalence.js";
16
+ export { normalizeBodyAst } from "./ast/normalize.js";
17
+ export { render } from "./ast/render.js";
18
+ export type { AdmonitionKind, BlockquoteNode, BodyBlock, CaptionNode, CodeNode, DefinitionListNode, DefinitionPair, FeatureNode, FigureNode, InlineContent, ListItemNode, ListNode, MathNode, NoteNode, ParagraphNode, SourceRange, TableNode, UnknownNode, } from "./ast/nodes.js";
14
19
  export { discoverProjectRoot, loadConfig, parseProjectConfig, } from "./config/mod.js";
15
20
  export type { LoadConfigResult, ReadFile } from "./config/mod.js";
16
- export { MARKSPEC_YAML_FILENAME, parseMarkspecYaml, readMarkspecYaml, } from "./config/markspec.js";
21
+ export { addProfileSpecifier, MARKSPEC_YAML_FILENAME, parseMarkspecYaml, readMarkspecYaml, } from "./config/markspec.js";
17
22
  export type { MarkspecYaml, ParseMarkspecYamlResult, } from "./config/markspec.js";
18
23
  export { computeCacheKey, computeCacheLocation, defaultAppendFile, defaultRunGit, ensureCacheGitignored, loadChain, loadProfileForCommand, mergeChain, parseManifest, resolveEntryColor, resolveGitSpecifier, resolveLocalSpecifier, } from "./profile/mod.js";
19
24
  export type { AppendFile, CacheLocation, GitCacheKeyInput, LoadChainOptions, LoadChainResult, LoadProfileForCommandResult, MergeResult, ParseManifestResult, ResolvedProfileSource, ResolveGitOptions, RunGit, RunGitResult, } from "./profile/mod.js";
25
+ export { buildEffectiveDisciplineRegistry } from "./profile/mod.js";
26
+ export { inferDisciplineMode, resolveDisciplineMode } from "./profile/mod.js";
27
+ export { buildProfileIntrospection } from "./profile/mod.js";
28
+ export type { AttributeDetail, ConventionDetail, LabelConcernDetail, ProfileElementDetail, ProfileElementKind, ProfileElementRef, ProfileIntrospection, ProfileOverview, ProvenancedDescription, RelationDetail, TypeDetail, } from "./profile/mod.js";
20
29
  export { detectCaptions, detectDirectives, detectInlineRefs, isSupportedExtension, loadGrammar, parse, parseFile, parseSource, } from "./parser/mod.js";
21
- export type { DetectCaptionsOptions, DetectDirectivesOptions, DetectInlineRefsOptions, ParseFileResult, ParseOptions, ParseSourceOptions, ParseSourceResult, } from "./parser/mod.js";
30
+ export type { DetectCaptionsOptions, DetectDirectivesOptions, DetectInlineRefsOptions, DocCommentBlockMeta, LanguageDocCommentSpec, LineMap, ParseFileResult, ParseOptions, ParseSourceOptions, ParseSourceResult, SupportedLanguage, } from "./parser/mod.js";
22
31
  export { format } from "./formatter/mod.js";
23
32
  export type { FormatOptions, FormatResult } from "./formatter/mod.js";
24
- export { classifyEntriesStage, classifyEntry, compileDisplayIdPattern, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, validate, validateAttributesForEntry, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
25
- export type { ClassifyResult, ClassifyStageResult, EffectiveAttrScope, PipelineResult, ValidateResult, ValueValidator, } from "./validator/mod.js";
33
+ export { classifyEntriesStage, classifyEntry, compileDisplayIdPattern, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, suppressDeclaredAttrR010, validate, validateAttributesForEntry, validateListingDocuments, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
34
+ export type { ClassifyResult, ClassifyStageResult, EffectiveAttrScope, ListingFileContext, ListingKind, PipelineResult, ValidateResult, ValueValidator, } from "./validator/mod.js";
26
35
  export { compile, generateInverses, serializeCompileResult, } from "./compiler/mod.js";
27
- export type { CompileOptions, CompileResult, GenerateInversesResult, SerializedCompileResult, } from "./compiler/mod.js";
36
+ export type { CompileOptions, CompileResult, GenerateInversesResult, SerializedCompileResult, SerializedEntry, SerializedTypeRegistry, } from "./compiler/mod.js";
37
+ export { buildManifest } from "./compiler/manifest.js";
38
+ export type { ManifestEdgesBlock, ManifestEntriesBlock, ManifestJson, } from "./compiler/manifest.js";
39
+ export { buildEdgesNdjson, buildEntriesNdjson, indexToJson, } from "./compiler/ndjson_writer.js";
40
+ export type { EntriesNdjsonResult, EntryOffset, } from "./compiler/ndjson_writer.js";
28
41
  export { report } from "./reporter/mod.js";
29
42
  export type { ReportFormat, ReportKind, ReportOptions, } from "./reporter/mod.js";
43
+ export { ANTI_PATTERN_NOTE, computeScoreRollup, isProseScope, runLint, } from "./lint/mod.js";
44
+ export type { EntryScore, LintDiagnostic, LintOptions, LintResult, RuleContribution, ScoreRollup, } from "./lint/mod.js";
45
+ export * as typl from "./typl/mod.js";
46
+ export { canonicalEdgeJson, checkDrift, extractEdgeQuads, hashCanonicalEdges, LOCKFILE_SCHEMA_VERSION, parseLockfile, resolveBoundEntries, resolveProfileChain, resolveReferences, resolveRegistries, resolveUpstreams, serializeLockfile, sha256Bytes, sha256String, } from "./lock/mod.js";
47
+ export type { BoundEntry as LockBoundEntry, BoundEntryBinding as LockBinding, EdgeQuad, FetchUrl, GeneratedCache, LockedAttributes, Lockfile, LockfileMeta, ParseLockfileResult, ReadFile as LockReadFile, ResolvedBoundEntry, ResolvedProfile, ResolvedReference, ResolvedRegistry, ResolvedUpstreams, ResolveUpstreamsOptions, Upstream, UpstreamProfile, UpstreamReference, UpstreamRegistry, } from "./lock/mod.js";
48
+ export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
49
+ export type { AttributeMapping, BoundEntryStatus, ConflictPolicy, Direction as SyncDirection, Mapping, ParseMappingResult, RemoteState, SyncLogEntry, } from "./sync/mod.js";
30
50
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAG/B,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,cAAc,EACd,IAAI,GACL,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,YAAY,EACZ,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,YAAY,GACb,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,OAAO,EACP,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EACV,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"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"}
package/script/mod.js CHANGED
@@ -1,6 +1,40 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.report = exports.serializeCompileResult = exports.generateInverses = exports.compile = exports.validateValue = exports.validateTraceabilityForEntry = exports.validateAttributesForEntry = exports.validate = exports.runPipeline = exports.normalizeListValues = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.effectiveScope = exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.format = exports.parseSource = exports.parseFile = exports.parse = exports.loadGrammar = exports.isSupportedExtension = exports.detectInlineRefs = exports.detectDirectives = exports.detectCaptions = exports.resolveLocalSpecifier = exports.resolveGitSpecifier = exports.resolveEntryColor = exports.parseManifest = exports.mergeChain = exports.loadProfileForCommand = exports.loadChain = exports.ensureCacheGitignored = exports.defaultRunGit = exports.defaultAppendFile = exports.computeCacheLocation = exports.computeCacheKey = exports.readMarkspecYaml = exports.parseMarkspecYaml = exports.MARKSPEC_YAML_FILENAME = exports.parseProjectConfig = exports.loadConfig = exports.discoverProjectRoot = exports.REFHUB_URL = exports.PALETTE_HUES = exports.DEFAULT_PROJECT_CONFIG = exports.ConfigError = exports.VERSION = void 0;
36
+ exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.format = exports.parseSource = exports.parseFile = exports.parse = exports.loadGrammar = exports.isSupportedExtension = exports.detectInlineRefs = exports.detectDirectives = exports.detectCaptions = exports.buildProfileIntrospection = exports.resolveDisciplineMode = exports.inferDisciplineMode = exports.buildEffectiveDisciplineRegistry = exports.resolveLocalSpecifier = exports.resolveGitSpecifier = exports.resolveEntryColor = exports.parseManifest = exports.mergeChain = exports.loadProfileForCommand = exports.loadChain = exports.ensureCacheGitignored = exports.defaultRunGit = exports.defaultAppendFile = exports.computeCacheLocation = exports.computeCacheKey = exports.readMarkspecYaml = exports.parseMarkspecYaml = exports.MARKSPEC_YAML_FILENAME = exports.addProfileSpecifier = exports.parseProjectConfig = exports.loadConfig = exports.discoverProjectRoot = exports.render = exports.normalizeBodyAst = exports.astEquivalent = exports.REFHUB_URL = exports.PALETTE_HUES = exports.MIXED_DISCIPLINE = exports.makeUlid = exports.makeDisplayId = exports.KNOWN_LINK_KINDS = exports.DEFAULT_PROJECT_CONFIG = exports.CORE_KINDS = exports.CORE_DISCIPLINE_REGISTRY = exports.ConfigError = exports.CORE_SCHEMA_VERSION = exports.VERSION = void 0;
37
+ exports.validateMappings = exports.parseMapping = exports.parseLogLine = exports.inferLockedAttributes = exports.encodeLogLine = exports.aggregateStatusByState = exports.sha256String = exports.sha256Bytes = exports.serializeLockfile = exports.resolveUpstreams = exports.resolveRegistries = exports.resolveReferences = exports.resolveProfileChain = exports.resolveBoundEntries = exports.parseLockfile = exports.LOCKFILE_SCHEMA_VERSION = exports.hashCanonicalEdges = exports.extractEdgeQuads = exports.checkDrift = exports.canonicalEdgeJson = exports.typl = exports.runLint = exports.isProseScope = exports.computeScoreRollup = exports.ANTI_PATTERN_NOTE = exports.report = exports.indexToJson = exports.buildEntriesNdjson = exports.buildEdgesNdjson = exports.buildManifest = exports.serializeCompileResult = exports.generateInverses = exports.compile = exports.validateValue = exports.validateTraceabilityForEntry = exports.validateListingDocuments = exports.validateAttributesForEntry = exports.validate = exports.suppressDeclaredAttrR010 = exports.runPipeline = exports.normalizeListValues = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.effectiveScope = void 0;
4
38
  /**
5
39
  * @module core
6
40
  *
@@ -11,19 +45,35 @@ exports.report = exports.serializeCompileResult = exports.generateInverses = exp
11
45
  * from core/mod.ts, never from internal paths.
12
46
  */
13
47
  require("./_dnt.polyfills.js");
14
- exports.VERSION = "0.0.1";
48
+ exports.VERSION = "0.6.0";
49
+ exports.CORE_SCHEMA_VERSION = 1;
15
50
  // Model types
16
51
  var mod_js_1 = require("./model/mod.js");
17
52
  Object.defineProperty(exports, "ConfigError", { enumerable: true, get: function () { return mod_js_1.ConfigError; } });
53
+ Object.defineProperty(exports, "CORE_DISCIPLINE_REGISTRY", { enumerable: true, get: function () { return mod_js_1.CORE_DISCIPLINE_REGISTRY; } });
54
+ Object.defineProperty(exports, "CORE_KINDS", { enumerable: true, get: function () { return mod_js_1.CORE_KINDS; } });
18
55
  Object.defineProperty(exports, "DEFAULT_PROJECT_CONFIG", { enumerable: true, get: function () { return mod_js_1.DEFAULT_PROJECT_CONFIG; } });
56
+ Object.defineProperty(exports, "KNOWN_LINK_KINDS", { enumerable: true, get: function () { return mod_js_1.KNOWN_LINK_KINDS; } });
57
+ Object.defineProperty(exports, "makeDisplayId", { enumerable: true, get: function () { return mod_js_1.makeDisplayId; } });
58
+ Object.defineProperty(exports, "makeUlid", { enumerable: true, get: function () { return mod_js_1.makeUlid; } });
59
+ Object.defineProperty(exports, "MIXED_DISCIPLINE", { enumerable: true, get: function () { return mod_js_1.MIXED_DISCIPLINE; } });
19
60
  Object.defineProperty(exports, "PALETTE_HUES", { enumerable: true, get: function () { return mod_js_1.PALETTE_HUES; } });
20
61
  Object.defineProperty(exports, "REFHUB_URL", { enumerable: true, get: function () { return mod_js_1.REFHUB_URL; } });
62
+ // AST (canonical body-AST — spec docs/specs/markspec-core-data-model.md §2)
63
+ // SourceRange is body-relative (no `file`); use SourceLocation for file-absolute positions.
64
+ var equivalence_js_1 = require("./ast/equivalence.js");
65
+ Object.defineProperty(exports, "astEquivalent", { enumerable: true, get: function () { return equivalence_js_1.astEquivalent; } });
66
+ var normalize_js_1 = require("./ast/normalize.js");
67
+ Object.defineProperty(exports, "normalizeBodyAst", { enumerable: true, get: function () { return normalize_js_1.normalizeBodyAst; } });
68
+ var render_js_1 = require("./ast/render.js");
69
+ Object.defineProperty(exports, "render", { enumerable: true, get: function () { return render_js_1.render; } });
21
70
  // Config
22
71
  var mod_js_2 = require("./config/mod.js");
23
72
  Object.defineProperty(exports, "discoverProjectRoot", { enumerable: true, get: function () { return mod_js_2.discoverProjectRoot; } });
24
73
  Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return mod_js_2.loadConfig; } });
25
74
  Object.defineProperty(exports, "parseProjectConfig", { enumerable: true, get: function () { return mod_js_2.parseProjectConfig; } });
26
75
  var markspec_js_1 = require("./config/markspec.js");
76
+ Object.defineProperty(exports, "addProfileSpecifier", { enumerable: true, get: function () { return markspec_js_1.addProfileSpecifier; } });
27
77
  Object.defineProperty(exports, "MARKSPEC_YAML_FILENAME", { enumerable: true, get: function () { return markspec_js_1.MARKSPEC_YAML_FILENAME; } });
28
78
  Object.defineProperty(exports, "parseMarkspecYaml", { enumerable: true, get: function () { return markspec_js_1.parseMarkspecYaml; } });
29
79
  Object.defineProperty(exports, "readMarkspecYaml", { enumerable: true, get: function () { return markspec_js_1.readMarkspecYaml; } });
@@ -41,38 +91,85 @@ Object.defineProperty(exports, "parseManifest", { enumerable: true, get: functio
41
91
  Object.defineProperty(exports, "resolveEntryColor", { enumerable: true, get: function () { return mod_js_3.resolveEntryColor; } });
42
92
  Object.defineProperty(exports, "resolveGitSpecifier", { enumerable: true, get: function () { return mod_js_3.resolveGitSpecifier; } });
43
93
  Object.defineProperty(exports, "resolveLocalSpecifier", { enumerable: true, get: function () { return mod_js_3.resolveLocalSpecifier; } });
94
+ var mod_js_4 = require("./profile/mod.js");
95
+ Object.defineProperty(exports, "buildEffectiveDisciplineRegistry", { enumerable: true, get: function () { return mod_js_4.buildEffectiveDisciplineRegistry; } });
96
+ var mod_js_5 = require("./profile/mod.js");
97
+ Object.defineProperty(exports, "inferDisciplineMode", { enumerable: true, get: function () { return mod_js_5.inferDisciplineMode; } });
98
+ Object.defineProperty(exports, "resolveDisciplineMode", { enumerable: true, get: function () { return mod_js_5.resolveDisciplineMode; } });
99
+ // DisciplineMode type already re-exported via Task 2.
100
+ var mod_js_6 = require("./profile/mod.js");
101
+ Object.defineProperty(exports, "buildProfileIntrospection", { enumerable: true, get: function () { return mod_js_6.buildProfileIntrospection; } });
44
102
  // Parser
45
- var mod_js_4 = require("./parser/mod.js");
46
- Object.defineProperty(exports, "detectCaptions", { enumerable: true, get: function () { return mod_js_4.detectCaptions; } });
47
- Object.defineProperty(exports, "detectDirectives", { enumerable: true, get: function () { return mod_js_4.detectDirectives; } });
48
- Object.defineProperty(exports, "detectInlineRefs", { enumerable: true, get: function () { return mod_js_4.detectInlineRefs; } });
49
- Object.defineProperty(exports, "isSupportedExtension", { enumerable: true, get: function () { return mod_js_4.isSupportedExtension; } });
50
- Object.defineProperty(exports, "loadGrammar", { enumerable: true, get: function () { return mod_js_4.loadGrammar; } });
51
- Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return mod_js_4.parse; } });
52
- Object.defineProperty(exports, "parseFile", { enumerable: true, get: function () { return mod_js_4.parseFile; } });
53
- Object.defineProperty(exports, "parseSource", { enumerable: true, get: function () { return mod_js_4.parseSource; } });
103
+ var mod_js_7 = require("./parser/mod.js");
104
+ Object.defineProperty(exports, "detectCaptions", { enumerable: true, get: function () { return mod_js_7.detectCaptions; } });
105
+ Object.defineProperty(exports, "detectDirectives", { enumerable: true, get: function () { return mod_js_7.detectDirectives; } });
106
+ Object.defineProperty(exports, "detectInlineRefs", { enumerable: true, get: function () { return mod_js_7.detectInlineRefs; } });
107
+ Object.defineProperty(exports, "isSupportedExtension", { enumerable: true, get: function () { return mod_js_7.isSupportedExtension; } });
108
+ Object.defineProperty(exports, "loadGrammar", { enumerable: true, get: function () { return mod_js_7.loadGrammar; } });
109
+ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return mod_js_7.parse; } });
110
+ Object.defineProperty(exports, "parseFile", { enumerable: true, get: function () { return mod_js_7.parseFile; } });
111
+ Object.defineProperty(exports, "parseSource", { enumerable: true, get: function () { return mod_js_7.parseSource; } });
54
112
  // Formatter
55
- var mod_js_5 = require("./formatter/mod.js");
56
- Object.defineProperty(exports, "format", { enumerable: true, get: function () { return mod_js_5.format; } });
113
+ var mod_js_8 = require("./formatter/mod.js");
114
+ Object.defineProperty(exports, "format", { enumerable: true, get: function () { return mod_js_8.format; } });
57
115
  // Validator
58
- var mod_js_6 = require("./validator/mod.js");
59
- Object.defineProperty(exports, "classifyEntriesStage", { enumerable: true, get: function () { return mod_js_6.classifyEntriesStage; } });
60
- Object.defineProperty(exports, "classifyEntry", { enumerable: true, get: function () { return mod_js_6.classifyEntry; } });
61
- Object.defineProperty(exports, "compileDisplayIdPattern", { enumerable: true, get: function () { return mod_js_6.compileDisplayIdPattern; } });
62
- Object.defineProperty(exports, "effectiveScope", { enumerable: true, get: function () { return mod_js_6.effectiveScope; } });
63
- Object.defineProperty(exports, "effectiveTraceRules", { enumerable: true, get: function () { return mod_js_6.effectiveTraceRules; } });
64
- Object.defineProperty(exports, "matchesAnyTarget", { enumerable: true, get: function () { return mod_js_6.matchesAnyTarget; } });
65
- Object.defineProperty(exports, "normalizeListValues", { enumerable: true, get: function () { return mod_js_6.normalizeListValues; } });
66
- Object.defineProperty(exports, "runPipeline", { enumerable: true, get: function () { return mod_js_6.runPipeline; } });
67
- Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return mod_js_6.validate; } });
68
- Object.defineProperty(exports, "validateAttributesForEntry", { enumerable: true, get: function () { return mod_js_6.validateAttributesForEntry; } });
69
- Object.defineProperty(exports, "validateTraceabilityForEntry", { enumerable: true, get: function () { return mod_js_6.validateTraceabilityForEntry; } });
70
- Object.defineProperty(exports, "validateValue", { enumerable: true, get: function () { return mod_js_6.validateValue; } });
116
+ var mod_js_9 = require("./validator/mod.js");
117
+ Object.defineProperty(exports, "classifyEntriesStage", { enumerable: true, get: function () { return mod_js_9.classifyEntriesStage; } });
118
+ Object.defineProperty(exports, "classifyEntry", { enumerable: true, get: function () { return mod_js_9.classifyEntry; } });
119
+ Object.defineProperty(exports, "compileDisplayIdPattern", { enumerable: true, get: function () { return mod_js_9.compileDisplayIdPattern; } });
120
+ Object.defineProperty(exports, "effectiveScope", { enumerable: true, get: function () { return mod_js_9.effectiveScope; } });
121
+ Object.defineProperty(exports, "effectiveTraceRules", { enumerable: true, get: function () { return mod_js_9.effectiveTraceRules; } });
122
+ Object.defineProperty(exports, "matchesAnyTarget", { enumerable: true, get: function () { return mod_js_9.matchesAnyTarget; } });
123
+ Object.defineProperty(exports, "normalizeListValues", { enumerable: true, get: function () { return mod_js_9.normalizeListValues; } });
124
+ Object.defineProperty(exports, "runPipeline", { enumerable: true, get: function () { return mod_js_9.runPipeline; } });
125
+ Object.defineProperty(exports, "suppressDeclaredAttrR010", { enumerable: true, get: function () { return mod_js_9.suppressDeclaredAttrR010; } });
126
+ Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return mod_js_9.validate; } });
127
+ Object.defineProperty(exports, "validateAttributesForEntry", { enumerable: true, get: function () { return mod_js_9.validateAttributesForEntry; } });
128
+ Object.defineProperty(exports, "validateListingDocuments", { enumerable: true, get: function () { return mod_js_9.validateListingDocuments; } });
129
+ Object.defineProperty(exports, "validateTraceabilityForEntry", { enumerable: true, get: function () { return mod_js_9.validateTraceabilityForEntry; } });
130
+ Object.defineProperty(exports, "validateValue", { enumerable: true, get: function () { return mod_js_9.validateValue; } });
71
131
  // Compiler
72
- var mod_js_7 = require("./compiler/mod.js");
73
- Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return mod_js_7.compile; } });
74
- Object.defineProperty(exports, "generateInverses", { enumerable: true, get: function () { return mod_js_7.generateInverses; } });
75
- Object.defineProperty(exports, "serializeCompileResult", { enumerable: true, get: function () { return mod_js_7.serializeCompileResult; } });
132
+ var mod_js_10 = require("./compiler/mod.js");
133
+ Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return mod_js_10.compile; } });
134
+ Object.defineProperty(exports, "generateInverses", { enumerable: true, get: function () { return mod_js_10.generateInverses; } });
135
+ Object.defineProperty(exports, "serializeCompileResult", { enumerable: true, get: function () { return mod_js_10.serializeCompileResult; } });
136
+ var manifest_js_1 = require("./compiler/manifest.js");
137
+ Object.defineProperty(exports, "buildManifest", { enumerable: true, get: function () { return manifest_js_1.buildManifest; } });
138
+ var ndjson_writer_js_1 = require("./compiler/ndjson_writer.js");
139
+ Object.defineProperty(exports, "buildEdgesNdjson", { enumerable: true, get: function () { return ndjson_writer_js_1.buildEdgesNdjson; } });
140
+ Object.defineProperty(exports, "buildEntriesNdjson", { enumerable: true, get: function () { return ndjson_writer_js_1.buildEntriesNdjson; } });
141
+ Object.defineProperty(exports, "indexToJson", { enumerable: true, get: function () { return ndjson_writer_js_1.indexToJson; } });
76
142
  // Reporter
77
- var mod_js_8 = require("./reporter/mod.js");
78
- Object.defineProperty(exports, "report", { enumerable: true, get: function () { return mod_js_8.report; } });
143
+ var mod_js_11 = require("./reporter/mod.js");
144
+ Object.defineProperty(exports, "report", { enumerable: true, get: function () { return mod_js_11.report; } });
145
+ // Lint (prose-analysis)
146
+ var mod_js_12 = require("./lint/mod.js");
147
+ Object.defineProperty(exports, "ANTI_PATTERN_NOTE", { enumerable: true, get: function () { return mod_js_12.ANTI_PATTERN_NOTE; } });
148
+ Object.defineProperty(exports, "computeScoreRollup", { enumerable: true, get: function () { return mod_js_12.computeScoreRollup; } });
149
+ Object.defineProperty(exports, "isProseScope", { enumerable: true, get: function () { return mod_js_12.isProseScope; } });
150
+ Object.defineProperty(exports, "runLint", { enumerable: true, get: function () { return mod_js_12.runLint; } });
151
+ exports.typl = __importStar(require("./typl/mod.js"));
152
+ // ── Lockfile (ADR-022) ───────────────────────────────────────────────────
153
+ var mod_js_13 = require("./lock/mod.js");
154
+ Object.defineProperty(exports, "canonicalEdgeJson", { enumerable: true, get: function () { return mod_js_13.canonicalEdgeJson; } });
155
+ Object.defineProperty(exports, "checkDrift", { enumerable: true, get: function () { return mod_js_13.checkDrift; } });
156
+ Object.defineProperty(exports, "extractEdgeQuads", { enumerable: true, get: function () { return mod_js_13.extractEdgeQuads; } });
157
+ Object.defineProperty(exports, "hashCanonicalEdges", { enumerable: true, get: function () { return mod_js_13.hashCanonicalEdges; } });
158
+ Object.defineProperty(exports, "LOCKFILE_SCHEMA_VERSION", { enumerable: true, get: function () { return mod_js_13.LOCKFILE_SCHEMA_VERSION; } });
159
+ Object.defineProperty(exports, "parseLockfile", { enumerable: true, get: function () { return mod_js_13.parseLockfile; } });
160
+ Object.defineProperty(exports, "resolveBoundEntries", { enumerable: true, get: function () { return mod_js_13.resolveBoundEntries; } });
161
+ Object.defineProperty(exports, "resolveProfileChain", { enumerable: true, get: function () { return mod_js_13.resolveProfileChain; } });
162
+ Object.defineProperty(exports, "resolveReferences", { enumerable: true, get: function () { return mod_js_13.resolveReferences; } });
163
+ Object.defineProperty(exports, "resolveRegistries", { enumerable: true, get: function () { return mod_js_13.resolveRegistries; } });
164
+ Object.defineProperty(exports, "resolveUpstreams", { enumerable: true, get: function () { return mod_js_13.resolveUpstreams; } });
165
+ Object.defineProperty(exports, "serializeLockfile", { enumerable: true, get: function () { return mod_js_13.serializeLockfile; } });
166
+ Object.defineProperty(exports, "sha256Bytes", { enumerable: true, get: function () { return mod_js_13.sha256Bytes; } });
167
+ Object.defineProperty(exports, "sha256String", { enumerable: true, get: function () { return mod_js_13.sha256String; } });
168
+ // ── External sync model (ADR-022) ────────────────────────────────────────
169
+ var mod_js_14 = require("./sync/mod.js");
170
+ Object.defineProperty(exports, "aggregateStatusByState", { enumerable: true, get: function () { return mod_js_14.aggregateStatusByState; } });
171
+ Object.defineProperty(exports, "encodeLogLine", { enumerable: true, get: function () { return mod_js_14.encodeLogLine; } });
172
+ Object.defineProperty(exports, "inferLockedAttributes", { enumerable: true, get: function () { return mod_js_14.inferLockedAttributes; } });
173
+ Object.defineProperty(exports, "parseLogLine", { enumerable: true, get: function () { return mod_js_14.parseLogLine; } });
174
+ Object.defineProperty(exports, "parseMapping", { enumerable: true, get: function () { return mod_js_14.parseMapping; } });
175
+ Object.defineProperty(exports, "validateMappings", { enumerable: true, get: function () { return mod_js_14.validateMappings; } });
@@ -42,6 +42,12 @@ export interface AttributeSpec {
42
42
  export declare const ATTRIBUTE_CATALOG: readonly AttributeSpec[];
43
43
  /** Canonical Title-Case attribute keys the core recognizes. */
44
44
  export declare const UNIVERSAL_ATTRIBUTE_KEYS: readonly string[];
45
+ /**
46
+ * Attribute value types that accept CSV on input but must be emitted as
47
+ * multi-line per ADR-002 §2.6. `citation` is excluded — locators may contain
48
+ * commas.
49
+ */
50
+ export declare const CSV_SPLITTABLE_TYPES: ReadonlySet<string>;
45
51
  /** Look up an attribute specification by its canonical key. */
46
52
  export declare function attributeSpec(key: string): AttributeSpec | undefined;
47
53
  //# sourceMappingURL=attributes.d.ts.map
@@ -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,EAsPrD,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB,EAAE,SAAS,MAAM,EAC5B,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAInD,CAAC;AAUH,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEpE"}
@@ -11,19 +11,19 @@
11
11
  * built-ins — they are declared by the active profile.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG = void 0;
14
+ exports.CSV_SPLITTABLE_TYPES = exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG = void 0;
15
15
  exports.attributeSpec = attributeSpec;
16
16
  // ---------------------------------------------------------------------------
17
17
  // Universal attribute catalog
18
18
  // ---------------------------------------------------------------------------
19
19
  /** Both shapes. */
20
- const BOTH_SHAPES = ["identified", "referenced"];
20
+ const BOTH_SHAPES = ["Authored", "Reference"];
21
21
  /**
22
22
  * Shapes that carry `References:` — identified entries only. A referenced
23
23
  * entry does not itself cite other referenced entries via `References:`
24
24
  * (the replacement relation is expressed via universal `Supersedes:`).
25
25
  */
26
- const CITING_SHAPES = ["identified"];
26
+ const CITING_SHAPES = ["Authored"];
27
27
  /**
28
28
  * Full catalog of core built-in attributes.
29
29
  *
@@ -44,6 +44,49 @@ exports.ATTRIBUTE_CATALOG = [
44
44
  shapes: BOTH_SHAPES,
45
45
  required: true,
46
46
  },
47
+ // Universal classification (spec §1.3 / §1.4) — apply to every entry.
48
+ // `Type` carries the information-layer classification; `Source` and
49
+ // `Origin` are universal authoring metadata (SSoT pointer, synthesis
50
+ // flag). They live in the catalogue so validators / formatters can
51
+ // look them up without per-call special-casing.
52
+ {
53
+ key: "Type",
54
+ type: "enum",
55
+ origin: "authored",
56
+ shapes: BOTH_SHAPES,
57
+ required: false,
58
+ },
59
+ {
60
+ key: "Source",
61
+ type: "path-or-id",
62
+ origin: "authored",
63
+ shapes: BOTH_SHAPES,
64
+ required: false,
65
+ },
66
+ {
67
+ key: "Origin",
68
+ type: "enum",
69
+ origin: "authored",
70
+ shapes: BOTH_SHAPES,
71
+ required: false,
72
+ enumValues: ["authored", "synthesized"],
73
+ },
74
+ // Reference-shape navigation (spec §1.5) — promoted from the RefHub
75
+ // profile to core in PR #277.
76
+ {
77
+ key: "Reference-url",
78
+ type: "url",
79
+ origin: "authored",
80
+ shapes: ["Reference"],
81
+ required: false,
82
+ },
83
+ {
84
+ key: "Reference-document",
85
+ type: "text",
86
+ origin: "authored",
87
+ shapes: ["Reference"],
88
+ required: false,
89
+ },
47
90
  // Universal — apply to every entry
48
91
  {
49
92
  key: "Labels",
@@ -87,10 +130,165 @@ exports.ATTRIBUTE_CATALOG = [
87
130
  shapes: BOTH_SHAPES,
88
131
  required: false,
89
132
  },
133
+ // Generated inverses from ADR-003 §Part 3. These are NEVER authored
134
+ // in source; the compiler computes them from authored relations at
135
+ // build time. MSL-A030 catches anyone who tries to write them
136
+ // manually.
137
+ {
138
+ key: "Derives",
139
+ type: "id-list",
140
+ origin: "generated",
141
+ shapes: BOTH_SHAPES,
142
+ required: false,
143
+ },
144
+ {
145
+ key: "Satisfied-by",
146
+ type: "id-list",
147
+ origin: "generated",
148
+ shapes: BOTH_SHAPES,
149
+ required: false,
150
+ },
151
+ {
152
+ key: "Realized-by",
153
+ type: "id-list",
154
+ origin: "generated",
155
+ shapes: BOTH_SHAPES,
156
+ required: false,
157
+ },
158
+ {
159
+ key: "Verified-by",
160
+ type: "id-list",
161
+ origin: "generated",
162
+ shapes: BOTH_SHAPES,
163
+ required: false,
164
+ },
165
+ {
166
+ key: "Tested-by",
167
+ type: "id-list",
168
+ origin: "generated",
169
+ shapes: BOTH_SHAPES,
170
+ required: false,
171
+ },
172
+ {
173
+ key: "Allocated",
174
+ type: "id-list",
175
+ origin: "generated",
176
+ shapes: BOTH_SHAPES,
177
+ required: false,
178
+ },
179
+ {
180
+ key: "Contains",
181
+ type: "id-list",
182
+ origin: "generated",
183
+ shapes: BOTH_SHAPES,
184
+ required: false,
185
+ },
186
+ {
187
+ key: "Provided-by",
188
+ type: "id-list",
189
+ origin: "generated",
190
+ shapes: BOTH_SHAPES,
191
+ required: false,
192
+ },
193
+ {
194
+ key: "Required-by",
195
+ type: "id-list",
196
+ origin: "generated",
197
+ shapes: BOTH_SHAPES,
198
+ required: false,
199
+ },
200
+ {
201
+ key: "Used-by",
202
+ type: "id-list",
203
+ origin: "generated",
204
+ shapes: BOTH_SHAPES,
205
+ required: false,
206
+ },
207
+ {
208
+ key: "Caused",
209
+ type: "id-list",
210
+ origin: "generated",
211
+ shapes: BOTH_SHAPES,
212
+ required: false,
213
+ },
214
+ {
215
+ key: "Affected-by",
216
+ type: "id-list",
217
+ origin: "generated",
218
+ shapes: BOTH_SHAPES,
219
+ required: false,
220
+ },
221
+ {
222
+ key: "Mitigates",
223
+ type: "id-list",
224
+ origin: "generated",
225
+ shapes: BOTH_SHAPES,
226
+ required: false,
227
+ },
228
+ {
229
+ key: "Cited-by",
230
+ type: "id-list",
231
+ origin: "generated",
232
+ shapes: BOTH_SHAPES,
233
+ required: false,
234
+ },
235
+ // Prose-analysis suppression (spec §MSL-Q900/Q901). Authored on any entry
236
+ // to silence specific lint rule codes; requires a companion Rationale:.
237
+ {
238
+ key: "Markspec-disable",
239
+ type: "text",
240
+ origin: "authored",
241
+ shapes: BOTH_SHAPES,
242
+ required: false,
243
+ },
244
+ {
245
+ key: "Rationale",
246
+ type: "text",
247
+ origin: "authored",
248
+ shapes: BOTH_SHAPES,
249
+ required: false,
250
+ },
251
+ // Discipline classification per ADR-017 Slice 3.
252
+ // - `Discipline:` is an author-asserted kind that takes precedence over
253
+ // the classifier's type-based and allocation-based channels.
254
+ // Lenient on unknown kinds — the value is emitted verbatim and
255
+ // MSL-T025 warns separately.
256
+ // - `Discipline-frozen:` is a dated snapshot of a past derivation in
257
+ // the form `<kind>` or `<kind> @ <YYYY-MM-DD>`. The formatter stamps
258
+ // today's UTC date when only `<kind>` is written. MSL-T026 catches
259
+ // malformed values; MSL-T030 warns when the freeze diverges from the
260
+ // current derivation.
261
+ // Both are text-typed (the value space is dynamic — kinds come from the
262
+ // effective registry built per ADR-017 Slice 2). Single-cardinality
263
+ // follows automatically because `text` is not in `REPEATABLE_VALUE_TYPES`.
264
+ {
265
+ key: "Discipline",
266
+ type: "text",
267
+ origin: "authored",
268
+ shapes: BOTH_SHAPES,
269
+ required: false,
270
+ },
271
+ {
272
+ key: "Discipline-frozen",
273
+ type: "text",
274
+ origin: "authored",
275
+ shapes: BOTH_SHAPES,
276
+ required: false,
277
+ },
90
278
  ];
91
279
  /** Canonical Title-Case attribute keys the core recognizes. */
92
280
  exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG
93
281
  .map((spec) => spec.key);
282
+ /**
283
+ * Attribute value types that accept CSV on input but must be emitted as
284
+ * multi-line per ADR-002 §2.6. `citation` is excluded — locators may contain
285
+ * commas.
286
+ */
287
+ exports.CSV_SPLITTABLE_TYPES = new Set([
288
+ "id-list",
289
+ "tag-list",
290
+ "external-id",
291
+ ]);
94
292
  // ---------------------------------------------------------------------------
95
293
  // Lookup helpers
96
294
  // ---------------------------------------------------------------------------
@@ -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"}