@driftsys/markspec 0.10.2 → 0.11.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 (414) hide show
  1. package/README.md +2 -2
  2. package/esm/compiler/deserialize.d.ts +49 -0
  3. package/esm/compiler/deserialize.d.ts.map +1 -0
  4. package/esm/compiler/deserialize.js +139 -0
  5. package/esm/compiler/manifest.d.ts +3 -0
  6. package/esm/compiler/manifest.d.ts.map +1 -1
  7. package/esm/compiler/manifest.js +9 -3
  8. package/esm/compiler/mod.d.ts.map +1 -1
  9. package/esm/compiler/mod.js +16 -7
  10. package/esm/config/markspec.d.ts +38 -1
  11. package/esm/config/markspec.d.ts.map +1 -1
  12. package/esm/config/markspec.js +127 -2
  13. package/esm/config/mod.d.ts.map +1 -1
  14. package/esm/config/mod.js +143 -147
  15. package/esm/decl/duplicates.d.ts +29 -0
  16. package/esm/decl/duplicates.d.ts.map +1 -0
  17. package/esm/decl/duplicates.js +28 -0
  18. package/esm/decl/mod.d.ts +20 -0
  19. package/esm/decl/mod.d.ts.map +1 -0
  20. package/esm/decl/mod.js +15 -0
  21. package/esm/decl/resolve.d.ts +104 -0
  22. package/esm/decl/resolve.d.ts.map +1 -0
  23. package/esm/decl/resolve.js +66 -0
  24. package/esm/decl/surfaces.d.ts +118 -0
  25. package/esm/decl/surfaces.d.ts.map +1 -0
  26. package/esm/decl/surfaces.js +135 -0
  27. package/esm/decl/table.d.ts +50 -0
  28. package/esm/decl/table.d.ts.map +1 -0
  29. package/esm/decl/table.js +124 -0
  30. package/esm/gates/mod.d.ts +13 -2
  31. package/esm/gates/mod.d.ts.map +1 -1
  32. package/esm/gates/mod.js +38 -11
  33. package/esm/lint/runner.d.ts.map +1 -1
  34. package/esm/lint/runner.js +3 -1
  35. package/esm/lock/acquire_compile.d.ts +31 -0
  36. package/esm/lock/acquire_compile.d.ts.map +1 -0
  37. package/esm/lock/acquire_compile.js +83 -0
  38. package/esm/lock/cache_check.d.ts +28 -0
  39. package/esm/lock/cache_check.d.ts.map +1 -0
  40. package/esm/lock/cache_check.js +51 -0
  41. package/esm/lock/check.d.ts +14 -3
  42. package/esm/lock/check.d.ts.map +1 -1
  43. package/esm/lock/check.js +41 -3
  44. package/esm/lock/git_intent.d.ts +46 -0
  45. package/esm/lock/git_intent.d.ts.map +1 -0
  46. package/esm/lock/git_intent.js +111 -0
  47. package/esm/lock/mod.d.ts +10 -3
  48. package/esm/lock/mod.d.ts.map +1 -1
  49. package/esm/lock/mod.js +7 -1
  50. package/esm/lock/model.d.ts +24 -1
  51. package/esm/lock/model.d.ts.map +1 -1
  52. package/esm/lock/parser.d.ts.map +1 -1
  53. package/esm/lock/parser.js +32 -0
  54. package/esm/lock/pin_assurance.d.ts +20 -0
  55. package/esm/lock/pin_assurance.d.ts.map +1 -0
  56. package/esm/lock/pin_assurance.js +34 -0
  57. package/esm/lock/resolve.d.ts +8 -17
  58. package/esm/lock/resolve.d.ts.map +1 -1
  59. package/esm/lock/resolve.js +7 -67
  60. package/esm/lock/serializer.d.ts.map +1 -1
  61. package/esm/lock/serializer.js +23 -0
  62. package/esm/lock/upstream_common.d.ts +29 -0
  63. package/esm/lock/upstream_common.d.ts.map +1 -0
  64. package/esm/lock/upstream_common.js +38 -0
  65. package/esm/lock/upstream_deps.d.ts +63 -0
  66. package/esm/lock/upstream_deps.d.ts.map +1 -0
  67. package/esm/lock/upstream_deps.js +172 -0
  68. package/esm/lock/upstream_refs.d.ts +69 -0
  69. package/esm/lock/upstream_refs.d.ts.map +1 -0
  70. package/esm/lock/upstream_refs.js +238 -0
  71. package/esm/mod.d.ts +16 -8
  72. package/esm/mod.d.ts.map +1 -1
  73. package/esm/mod.js +15 -5
  74. package/esm/model/mod.d.ts +93 -28
  75. package/esm/model/mod.d.ts.map +1 -1
  76. package/esm/model/mod.js +66 -13
  77. package/esm/model/profile.d.ts +13 -0
  78. package/esm/model/profile.d.ts.map +1 -1
  79. package/esm/parser/directives.d.ts +6 -0
  80. package/esm/parser/directives.d.ts.map +1 -1
  81. package/esm/parser/directives.js +17 -0
  82. package/esm/parser/markdown.d.ts.map +1 -1
  83. package/esm/parser/markdown.js +16 -51
  84. package/esm/profile/manifest.d.ts.map +1 -1
  85. package/esm/profile/manifest.js +20 -3
  86. package/esm/profile/merge.js +7 -0
  87. package/esm/reporter/mod.d.ts +11 -0
  88. package/esm/reporter/mod.d.ts.map +1 -1
  89. package/esm/reporter/mod.js +19 -8
  90. package/esm/typl/assemble.d.ts +53 -0
  91. package/esm/typl/assemble.d.ts.map +1 -0
  92. package/esm/typl/assemble.js +238 -0
  93. package/esm/typl/ast.d.ts +7 -1
  94. package/esm/typl/ast.d.ts.map +1 -1
  95. package/esm/typl/ast.js +3 -0
  96. package/esm/typl/bullet.d.ts +16 -24
  97. package/esm/typl/bullet.d.ts.map +1 -1
  98. package/esm/typl/bullet.js +9 -41
  99. package/esm/typl/citations.d.ts +27 -0
  100. package/esm/typl/citations.d.ts.map +1 -0
  101. package/esm/typl/citations.js +16 -0
  102. package/esm/typl/diagnostics.d.ts +2 -2
  103. package/esm/typl/diagnostics.d.ts.map +1 -1
  104. package/esm/typl/diagnostics.js +18 -0
  105. package/esm/typl/fence.d.ts +12 -21
  106. package/esm/typl/fence.d.ts.map +1 -1
  107. package/esm/typl/fence.js +5 -20
  108. package/esm/typl/grammar.d.ts.map +1 -1
  109. package/esm/typl/grammar.js +6 -0
  110. package/esm/typl/inline.d.ts +15 -24
  111. package/esm/typl/inline.d.ts.map +1 -1
  112. package/esm/typl/inline.js +6 -44
  113. package/esm/typl/lexer.d.ts.map +1 -1
  114. package/esm/typl/lexer.js +25 -4
  115. package/esm/typl/mod.d.ts +8 -2
  116. package/esm/typl/mod.d.ts.map +1 -1
  117. package/esm/typl/mod.js +5 -1
  118. package/esm/typl/recognize.d.ts +14 -0
  119. package/esm/typl/recognize.d.ts.map +1 -0
  120. package/esm/typl/recognize.js +19 -0
  121. package/esm/typl/registry.d.ts +1 -1
  122. package/esm/typl/resolve.d.ts +31 -0
  123. package/esm/typl/resolve.d.ts.map +1 -0
  124. package/esm/typl/resolve.js +27 -0
  125. package/esm/typl/table.d.ts +52 -0
  126. package/esm/typl/table.d.ts.map +1 -0
  127. package/esm/typl/table.js +69 -0
  128. package/esm/typl/validator.d.ts +24 -5
  129. package/esm/typl/validator.d.ts.map +1 -1
  130. package/esm/typl/validator.js +55 -75
  131. package/esm/upstream/mod.d.ts +45 -0
  132. package/esm/upstream/mod.d.ts.map +1 -0
  133. package/esm/upstream/mod.js +98 -0
  134. package/esm/upstream/project.d.ts +33 -0
  135. package/esm/upstream/project.d.ts.map +1 -0
  136. package/esm/upstream/project.js +38 -0
  137. package/esm/upstream/refs.d.ts +23 -0
  138. package/esm/upstream/refs.d.ts.map +1 -0
  139. package/esm/upstream/refs.js +71 -0
  140. package/esm/util/paths.d.ts +14 -0
  141. package/esm/util/paths.d.ts.map +1 -0
  142. package/esm/util/paths.js +22 -0
  143. package/esm/uxil/assemble.d.ts +38 -0
  144. package/esm/uxil/assemble.d.ts.map +1 -0
  145. package/esm/uxil/assemble.js +268 -0
  146. package/esm/uxil/ast.d.ts +63 -0
  147. package/esm/uxil/ast.d.ts.map +1 -0
  148. package/esm/uxil/ast.js +9 -0
  149. package/esm/uxil/citations.d.ts +27 -0
  150. package/esm/uxil/citations.d.ts.map +1 -0
  151. package/esm/uxil/citations.js +25 -0
  152. package/esm/uxil/diagnostics.d.ts +39 -0
  153. package/esm/uxil/diagnostics.d.ts.map +1 -0
  154. package/esm/uxil/diagnostics.js +135 -0
  155. package/esm/uxil/grammar.d.ts +72 -0
  156. package/esm/uxil/grammar.d.ts.map +1 -0
  157. package/esm/uxil/grammar.js +505 -0
  158. package/esm/uxil/lexer.d.ts +23 -0
  159. package/esm/uxil/lexer.d.ts.map +1 -0
  160. package/esm/uxil/lexer.js +58 -0
  161. package/esm/uxil/mod.d.ts +32 -0
  162. package/esm/uxil/mod.d.ts.map +1 -0
  163. package/esm/uxil/mod.js +11 -0
  164. package/esm/uxil/projection.d.ts +40 -0
  165. package/esm/uxil/projection.d.ts.map +1 -0
  166. package/esm/uxil/projection.js +41 -0
  167. package/esm/uxil/recognize.d.ts +16 -0
  168. package/esm/uxil/recognize.d.ts.map +1 -0
  169. package/esm/uxil/recognize.js +28 -0
  170. package/esm/uxil/registry.d.ts +37 -0
  171. package/esm/uxil/registry.d.ts.map +1 -0
  172. package/esm/uxil/registry.js +29 -0
  173. package/esm/uxil/surfaces.d.ts +36 -0
  174. package/esm/uxil/surfaces.d.ts.map +1 -0
  175. package/esm/uxil/surfaces.js +34 -0
  176. package/esm/uxil/validator.d.ts +36 -0
  177. package/esm/uxil/validator.d.ts.map +1 -0
  178. package/esm/uxil/validator.js +139 -0
  179. package/esm/uxil/vocab.d.ts +33 -0
  180. package/esm/uxil/vocab.d.ts.map +1 -0
  181. package/esm/uxil/vocab.js +36 -0
  182. package/esm/validator/body_blocks.d.ts.map +1 -1
  183. package/esm/validator/body_blocks.js +3 -9
  184. package/esm/validator/caption_convention.d.ts +2 -1
  185. package/esm/validator/caption_convention.d.ts.map +1 -1
  186. package/esm/validator/caption_convention.js +2 -1
  187. package/esm/validator/corpus.d.ts.map +1 -1
  188. package/esm/validator/corpus.js +40 -17
  189. package/esm/validator/discipline.d.ts +6 -4
  190. package/esm/validator/discipline.d.ts.map +1 -1
  191. package/esm/validator/discipline.js +6 -4
  192. package/esm/validator/mod.d.ts.map +1 -1
  193. package/esm/validator/mod.js +28 -15
  194. package/esm/validator/pipeline.d.ts +11 -1
  195. package/esm/validator/pipeline.d.ts.map +1 -1
  196. package/esm/validator/pipeline.js +68 -18
  197. package/esm/validator/trace_types.d.ts +9 -2
  198. package/esm/validator/trace_types.d.ts.map +1 -1
  199. package/esm/validator/trace_types.js +21 -5
  200. package/esm/validator/traceability.d.ts +15 -3
  201. package/esm/validator/traceability.d.ts.map +1 -1
  202. package/esm/validator/traceability.js +39 -4
  203. package/esm/validator/types.d.ts.map +1 -1
  204. package/esm/validator/types.js +11 -1
  205. package/esm/validator/uxil_family.d.ts +43 -0
  206. package/esm/validator/uxil_family.d.ts.map +1 -0
  207. package/esm/validator/uxil_family.js +52 -0
  208. package/package.json +1 -1
  209. package/script/compiler/deserialize.d.ts +49 -0
  210. package/script/compiler/deserialize.d.ts.map +1 -0
  211. package/script/compiler/deserialize.js +144 -0
  212. package/script/compiler/manifest.d.ts +3 -0
  213. package/script/compiler/manifest.d.ts.map +1 -1
  214. package/script/compiler/manifest.js +10 -3
  215. package/script/compiler/mod.d.ts.map +1 -1
  216. package/script/compiler/mod.js +15 -6
  217. package/script/config/markspec.d.ts +38 -1
  218. package/script/config/markspec.d.ts.map +1 -1
  219. package/script/config/markspec.js +129 -3
  220. package/script/config/mod.d.ts.map +1 -1
  221. package/script/config/mod.js +143 -147
  222. package/script/decl/duplicates.d.ts +29 -0
  223. package/script/decl/duplicates.d.ts.map +1 -0
  224. package/script/decl/duplicates.js +31 -0
  225. package/script/decl/mod.d.ts +20 -0
  226. package/script/decl/mod.d.ts.map +1 -0
  227. package/script/decl/mod.js +26 -0
  228. package/script/decl/resolve.d.ts +104 -0
  229. package/script/decl/resolve.d.ts.map +1 -0
  230. package/script/decl/resolve.js +70 -0
  231. package/script/decl/surfaces.d.ts +118 -0
  232. package/script/decl/surfaces.d.ts.map +1 -0
  233. package/script/decl/surfaces.js +141 -0
  234. package/script/decl/table.d.ts +50 -0
  235. package/script/decl/table.d.ts.map +1 -0
  236. package/script/decl/table.js +127 -0
  237. package/script/gates/mod.d.ts +13 -2
  238. package/script/gates/mod.d.ts.map +1 -1
  239. package/script/gates/mod.js +37 -10
  240. package/script/lint/runner.d.ts.map +1 -1
  241. package/script/lint/runner.js +3 -1
  242. package/script/lock/acquire_compile.d.ts +31 -0
  243. package/script/lock/acquire_compile.d.ts.map +1 -0
  244. package/script/lock/acquire_compile.js +86 -0
  245. package/script/lock/cache_check.d.ts +28 -0
  246. package/script/lock/cache_check.d.ts.map +1 -0
  247. package/script/lock/cache_check.js +54 -0
  248. package/script/lock/check.d.ts +14 -3
  249. package/script/lock/check.d.ts.map +1 -1
  250. package/script/lock/check.js +41 -3
  251. package/script/lock/git_intent.d.ts +46 -0
  252. package/script/lock/git_intent.d.ts.map +1 -0
  253. package/script/lock/git_intent.js +115 -0
  254. package/script/lock/mod.d.ts +10 -3
  255. package/script/lock/mod.d.ts.map +1 -1
  256. package/script/lock/mod.js +16 -2
  257. package/script/lock/model.d.ts +24 -1
  258. package/script/lock/model.d.ts.map +1 -1
  259. package/script/lock/parser.d.ts.map +1 -1
  260. package/script/lock/parser.js +32 -0
  261. package/script/lock/pin_assurance.d.ts +20 -0
  262. package/script/lock/pin_assurance.d.ts.map +1 -0
  263. package/script/lock/pin_assurance.js +37 -0
  264. package/script/lock/resolve.d.ts +8 -17
  265. package/script/lock/resolve.d.ts.map +1 -1
  266. package/script/lock/resolve.js +7 -68
  267. package/script/lock/serializer.d.ts.map +1 -1
  268. package/script/lock/serializer.js +23 -0
  269. package/script/lock/upstream_common.d.ts +29 -0
  270. package/script/lock/upstream_common.d.ts.map +1 -0
  271. package/script/lock/upstream_common.js +42 -0
  272. package/script/lock/upstream_deps.d.ts +63 -0
  273. package/script/lock/upstream_deps.d.ts.map +1 -0
  274. package/script/lock/upstream_deps.js +175 -0
  275. package/script/lock/upstream_refs.d.ts +69 -0
  276. package/script/lock/upstream_refs.d.ts.map +1 -0
  277. package/script/lock/upstream_refs.js +244 -0
  278. package/script/mod.d.ts +16 -8
  279. package/script/mod.d.ts.map +1 -1
  280. package/script/mod.js +40 -7
  281. package/script/model/mod.d.ts +93 -28
  282. package/script/model/mod.d.ts.map +1 -1
  283. package/script/model/mod.js +70 -14
  284. package/script/model/profile.d.ts +13 -0
  285. package/script/model/profile.d.ts.map +1 -1
  286. package/script/parser/directives.d.ts +6 -0
  287. package/script/parser/directives.d.ts.map +1 -1
  288. package/script/parser/directives.js +18 -0
  289. package/script/parser/markdown.d.ts.map +1 -1
  290. package/script/parser/markdown.js +15 -50
  291. package/script/profile/manifest.d.ts.map +1 -1
  292. package/script/profile/manifest.js +20 -3
  293. package/script/profile/merge.js +7 -0
  294. package/script/reporter/mod.d.ts +11 -0
  295. package/script/reporter/mod.d.ts.map +1 -1
  296. package/script/reporter/mod.js +18 -7
  297. package/script/typl/assemble.d.ts +53 -0
  298. package/script/typl/assemble.d.ts.map +1 -0
  299. package/script/typl/assemble.js +241 -0
  300. package/script/typl/ast.d.ts +7 -1
  301. package/script/typl/ast.d.ts.map +1 -1
  302. package/script/typl/ast.js +3 -0
  303. package/script/typl/bullet.d.ts +16 -24
  304. package/script/typl/bullet.d.ts.map +1 -1
  305. package/script/typl/bullet.js +10 -42
  306. package/script/typl/citations.d.ts +27 -0
  307. package/script/typl/citations.d.ts.map +1 -0
  308. package/script/typl/citations.js +20 -0
  309. package/script/typl/diagnostics.d.ts +2 -2
  310. package/script/typl/diagnostics.d.ts.map +1 -1
  311. package/script/typl/diagnostics.js +18 -0
  312. package/script/typl/fence.d.ts +12 -21
  313. package/script/typl/fence.d.ts.map +1 -1
  314. package/script/typl/fence.js +5 -20
  315. package/script/typl/grammar.d.ts.map +1 -1
  316. package/script/typl/grammar.js +6 -0
  317. package/script/typl/inline.d.ts +15 -24
  318. package/script/typl/inline.d.ts.map +1 -1
  319. package/script/typl/inline.js +6 -44
  320. package/script/typl/lexer.d.ts.map +1 -1
  321. package/script/typl/lexer.js +25 -4
  322. package/script/typl/mod.d.ts +8 -2
  323. package/script/typl/mod.d.ts.map +1 -1
  324. package/script/typl/mod.js +14 -2
  325. package/script/typl/recognize.d.ts +14 -0
  326. package/script/typl/recognize.d.ts.map +1 -0
  327. package/script/typl/recognize.js +22 -0
  328. package/script/typl/registry.d.ts +1 -1
  329. package/script/typl/resolve.d.ts +31 -0
  330. package/script/typl/resolve.d.ts.map +1 -0
  331. package/script/typl/resolve.js +33 -0
  332. package/script/typl/table.d.ts +52 -0
  333. package/script/typl/table.d.ts.map +1 -0
  334. package/script/typl/table.js +75 -0
  335. package/script/typl/validator.d.ts +24 -5
  336. package/script/typl/validator.d.ts.map +1 -1
  337. package/script/typl/validator.js +55 -75
  338. package/script/upstream/mod.d.ts +45 -0
  339. package/script/upstream/mod.d.ts.map +1 -0
  340. package/script/upstream/mod.js +101 -0
  341. package/script/upstream/project.d.ts +33 -0
  342. package/script/upstream/project.d.ts.map +1 -0
  343. package/script/upstream/project.js +41 -0
  344. package/script/upstream/refs.d.ts +23 -0
  345. package/script/upstream/refs.d.ts.map +1 -0
  346. package/script/upstream/refs.js +74 -0
  347. package/script/util/paths.d.ts +14 -0
  348. package/script/util/paths.d.ts.map +1 -0
  349. package/script/util/paths.js +25 -0
  350. package/script/uxil/assemble.d.ts +38 -0
  351. package/script/uxil/assemble.d.ts.map +1 -0
  352. package/script/uxil/assemble.js +272 -0
  353. package/script/uxil/ast.d.ts +63 -0
  354. package/script/uxil/ast.d.ts.map +1 -0
  355. package/script/uxil/ast.js +10 -0
  356. package/script/uxil/citations.d.ts +27 -0
  357. package/script/uxil/citations.d.ts.map +1 -0
  358. package/script/uxil/citations.js +29 -0
  359. package/script/uxil/diagnostics.d.ts +39 -0
  360. package/script/uxil/diagnostics.d.ts.map +1 -0
  361. package/script/uxil/diagnostics.js +140 -0
  362. package/script/uxil/grammar.d.ts +72 -0
  363. package/script/uxil/grammar.d.ts.map +1 -0
  364. package/script/uxil/grammar.js +511 -0
  365. package/script/uxil/lexer.d.ts +23 -0
  366. package/script/uxil/lexer.d.ts.map +1 -0
  367. package/script/uxil/lexer.js +61 -0
  368. package/script/uxil/mod.d.ts +32 -0
  369. package/script/uxil/mod.d.ts.map +1 -0
  370. package/script/uxil/mod.js +37 -0
  371. package/script/uxil/projection.d.ts +40 -0
  372. package/script/uxil/projection.d.ts.map +1 -0
  373. package/script/uxil/projection.js +44 -0
  374. package/script/uxil/recognize.d.ts +16 -0
  375. package/script/uxil/recognize.d.ts.map +1 -0
  376. package/script/uxil/recognize.js +31 -0
  377. package/script/uxil/registry.d.ts +37 -0
  378. package/script/uxil/registry.d.ts.map +1 -0
  379. package/script/uxil/registry.js +32 -0
  380. package/script/uxil/surfaces.d.ts +36 -0
  381. package/script/uxil/surfaces.d.ts.map +1 -0
  382. package/script/uxil/surfaces.js +39 -0
  383. package/script/uxil/validator.d.ts +36 -0
  384. package/script/uxil/validator.d.ts.map +1 -0
  385. package/script/uxil/validator.js +142 -0
  386. package/script/uxil/vocab.d.ts +33 -0
  387. package/script/uxil/vocab.d.ts.map +1 -0
  388. package/script/uxil/vocab.js +41 -0
  389. package/script/validator/body_blocks.d.ts.map +1 -1
  390. package/script/validator/body_blocks.js +3 -9
  391. package/script/validator/caption_convention.d.ts +2 -1
  392. package/script/validator/caption_convention.d.ts.map +1 -1
  393. package/script/validator/caption_convention.js +2 -1
  394. package/script/validator/corpus.d.ts.map +1 -1
  395. package/script/validator/corpus.js +39 -16
  396. package/script/validator/discipline.d.ts +6 -4
  397. package/script/validator/discipline.d.ts.map +1 -1
  398. package/script/validator/discipline.js +6 -4
  399. package/script/validator/mod.d.ts.map +1 -1
  400. package/script/validator/mod.js +27 -14
  401. package/script/validator/pipeline.d.ts +11 -1
  402. package/script/validator/pipeline.d.ts.map +1 -1
  403. package/script/validator/pipeline.js +67 -17
  404. package/script/validator/trace_types.d.ts +9 -2
  405. package/script/validator/trace_types.d.ts.map +1 -1
  406. package/script/validator/trace_types.js +20 -4
  407. package/script/validator/traceability.d.ts +15 -3
  408. package/script/validator/traceability.d.ts.map +1 -1
  409. package/script/validator/traceability.js +38 -3
  410. package/script/validator/types.d.ts.map +1 -1
  411. package/script/validator/types.js +10 -0
  412. package/script/validator/uxil_family.d.ts +43 -0
  413. package/script/validator/uxil_family.d.ts.map +1 -0
  414. package/script/validator/uxil_family.js +56 -0
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @module core/lock/pin_assurance
3
+ *
4
+ * Release-assurance advisory for federated dependencies (design §4.4). Every
5
+ * `[[upstream.dependency]]` pin that resolved to a branch or bare sha (rather
6
+ * than a tag) is an "unreleased" pin. Below `check --strict` this is a gentle
7
+ * project-level advisory; `check --strict` promotes the warning to an error,
8
+ * making it the release gate — you cannot release against a dependency that
9
+ * never baselined. Pure.
10
+ */
11
+ /**
12
+ * Emit one `MSL-L215` warning per `[[upstream.dependency]]` row whose
13
+ * `resolved` value is not a tag pin (`branch:*` or `sha:*`). Returns an
14
+ * empty array for an all-tag lockfile or an undefined lockfile (no
15
+ * `markspec.lock` present).
16
+ */
17
+ export function dependencyPinAssurance(lockfile) {
18
+ if (!lockfile)
19
+ return [];
20
+ const out = [];
21
+ for (const u of lockfile.upstreams) {
22
+ if (u.kind !== "dependency")
23
+ continue;
24
+ if (u.resolved.startsWith("tag:"))
25
+ continue;
26
+ out.push({
27
+ code: "MSL-L215",
28
+ severity: "warning",
29
+ message: `dependency '${u.id}' is pinned to an unreleased state (${u.resolved} @ ${u.sha.slice(0, 12)}); release builds (check --strict) require a tagged pin — ask the upstream to cut a tag, then run 'markspec lock --update=${u.id}'`,
30
+ location: undefined,
31
+ });
32
+ }
33
+ return out;
34
+ }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { Diagnostic, Entry, ProfileChain, ProjectConfig } from "../model/mod.js";
13
13
  import type { Mapping } from "../sync/mod.js";
14
- import type { BoundEntry, LockEdge, UpstreamProfile, UpstreamReference, UpstreamRegistry } from "./model.js";
14
+ import type { BoundEntry, LockEdge, UpstreamProfile, UpstreamReference } from "./model.js";
15
15
  import { type EdgeQuad } from "./canonical_edges.js";
16
16
  /**
17
17
  * Callback to fetch a URL. Returns the bytes on success, or an
@@ -57,11 +57,6 @@ export interface ResolvedProfile {
57
57
  readonly upstream: UpstreamProfile;
58
58
  readonly diagnostics: readonly Diagnostic[];
59
59
  }
60
- /** A federated registry that resolved. */
61
- export interface ResolvedRegistry {
62
- readonly upstream: UpstreamRegistry;
63
- readonly diagnostics: readonly Diagnostic[];
64
- }
65
60
  /** A bound entry's locked-attribute snapshot. */
66
61
  export interface ResolvedBoundEntry {
67
62
  readonly boundEntry: BoundEntry;
@@ -71,7 +66,6 @@ export interface ResolvedBoundEntry {
71
66
  export interface ResolvedUpstreams {
72
67
  readonly references: readonly ResolvedReference[];
73
68
  readonly profiles: readonly ResolvedProfile[];
74
- readonly registries: readonly ResolvedRegistry[];
75
69
  readonly boundEntries: readonly ResolvedBoundEntry[];
76
70
  /** sha256:* of the canonical edge serialization. */
77
71
  readonly canonicalEdgeHash: string;
@@ -117,11 +111,14 @@ export declare function extractEdgeQuads(entries: readonly Entry[]): EdgeQuad[];
117
111
  export declare function extractEdgeLedger(entries: readonly Entry[], byDisplayId: ReadonlyMap<string, Entry>, byId: ReadonlyMap<string, Entry>): LockEdge[];
118
112
  /**
119
113
  * Resolve every upstream the lockfile needs: References, profile chain
120
- * tiers, federated registries, and bound entries. Computes the
121
- * canonical edge hash from the same entry set. Returns the aggregate
122
- * `ResolvedUpstreams` payload ready for {@link serializeLockfile}.
114
+ * tiers, and bound entries. Computes the canonical edge hash from the
115
+ * same entry set. Returns the aggregate `ResolvedUpstreams` payload
116
+ * ready for {@link serializeLockfile}. Federated registry rows (org
117
+ * `references:`) are resolved separately by
118
+ * {@linkcode resolveProjectReferences} in `upstream_refs.ts` — the CLI
119
+ * composes both into the final lockfile's `upstreams` list.
123
120
  *
124
- * The four sub-resolvers run sequentially (not concurrently) because
121
+ * The sub-resolvers run sequentially (not concurrently) because
125
122
  * (a) the callbacks they share — `fetchUrl`, `readFile` — may themselves
126
123
  * serialize work, and (b) the diagnostics output is easier to reason
127
124
  * about with a deterministic order. Wrap inside `Promise.all` only when
@@ -139,12 +136,6 @@ export declare function resolveUpstreams(opts: ResolveUpstreamsOptions): Promise
139
136
  * the previous tier's id. The root tier has `extends: undefined`.
140
137
  */
141
138
  export declare function resolveProfileChain(chain: ProfileChain | readonly never[], readFile: ReadFile): Promise<ResolvedProfile[]>;
142
- /**
143
- * Resolve federated parent registries (and the fallback, when not already
144
- * listed). Each URL's `<url>/manifest` is fetched; the body is parsed
145
- * loosely for `markspec-schema` (defaults to 1 on parse failure).
146
- */
147
- export declare function resolveRegistries(config: ProjectConfig, fetchUrl: FetchUrl): Promise<ResolvedRegistry[]>;
148
139
  /**
149
140
  * Resolve every entry carrying `External-id:` attributes into a
150
141
  * `ResolvedBoundEntry`. For each External-id, look up the mapping by
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/lock/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,KAAK,EACL,YAAY,EAEZ,aAAa,EACd,MAAM,iBAAiB,CAAC;AAMzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EACV,UAAU,EAEV,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,KAAK,QAAQ,EAAsB,MAAM,sBAAsB,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,CACrB,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,CACrB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE7C,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,KAAK,EAAE,CAAC;IACvD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,E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AE,KAAK,CAAC,GAC/B,QAAQ,EAAE,CAgBZ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,uBAAuB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,CAwC5B;AAmCD;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,YAAY,GAAG,SAAS,KAAK,EAAE,EACtC,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,eAAe,EAAE,CAAC,CAkC5B;AAMD;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,QAAQ,EAAE,SAAS,OAAO,EAAE,GAC3B,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAuD/B"}
@@ -170,11 +170,14 @@ export function extractEdgeLedger(entries, byDisplayId, byId) {
170
170
  }
171
171
  /**
172
172
  * Resolve every upstream the lockfile needs: References, profile chain
173
- * tiers, federated registries, and bound entries. Computes the
174
- * canonical edge hash from the same entry set. Returns the aggregate
175
- * `ResolvedUpstreams` payload ready for {@link serializeLockfile}.
173
+ * tiers, and bound entries. Computes the canonical edge hash from the
174
+ * same entry set. Returns the aggregate `ResolvedUpstreams` payload
175
+ * ready for {@link serializeLockfile}. Federated registry rows (org
176
+ * `references:`) are resolved separately by
177
+ * {@linkcode resolveProjectReferences} in `upstream_refs.ts` — the CLI
178
+ * composes both into the final lockfile's `upstreams` list.
176
179
  *
177
- * The four sub-resolvers run sequentially (not concurrently) because
180
+ * The sub-resolvers run sequentially (not concurrently) because
178
181
  * (a) the callbacks they share — `fetchUrl`, `readFile` — may themselves
179
182
  * serialize work, and (b) the diagnostics output is easier to reason
180
183
  * about with a deterministic order. Wrap inside `Promise.all` only when
@@ -185,7 +188,6 @@ export async function resolveUpstreams(opts) {
185
188
  const lockedAt = now.toISOString();
186
189
  const refResults = await resolveReferences(opts.entries, opts.fetchUrl);
187
190
  const profResults = await resolveProfileChain(opts.profileChain, opts.readFile);
188
- const regResults = await resolveRegistries(opts.config, opts.fetchUrl);
189
191
  const boundResults = await resolveBoundEntries(opts.entries, opts.mappings);
190
192
  const edges = extractEdgeQuads(opts.entries);
191
193
  const canonicalEdgeHash = await hashCanonicalEdges(edges);
@@ -203,13 +205,11 @@ export async function resolveUpstreams(opts) {
203
205
  const diagnostics = [
204
206
  ...refResults.flatMap((r) => r.diagnostics),
205
207
  ...profResults.flatMap((r) => r.diagnostics),
206
- ...regResults.flatMap((r) => r.diagnostics),
207
208
  ...boundResults.flatMap((r) => r.diagnostics),
208
209
  ];
209
210
  return {
210
211
  references: refResults,
211
212
  profiles: profResults,
212
- registries: regResults,
213
213
  boundEntries: boundResults,
214
214
  canonicalEdgeHash,
215
215
  canonicalEdgeCount: edges.length,
@@ -296,66 +296,6 @@ export async function resolveProfileChain(chain, readFile) {
296
296
  return out;
297
297
  }
298
298
  // ---------------------------------------------------------------------------
299
- // Registry resolution (Task 16)
300
- // ---------------------------------------------------------------------------
301
- /**
302
- * Resolve federated parent registries (and the fallback, when not already
303
- * listed). Each URL's `<url>/manifest` is fetched; the body is parsed
304
- * loosely for `markspec-schema` (defaults to 1 on parse failure).
305
- */
306
- export async function resolveRegistries(config, fetchUrl) {
307
- const urls = [...config.parents];
308
- if (config.parentFallback && !urls.includes(config.parentFallback)) {
309
- urls.push(config.parentFallback);
310
- }
311
- const out = [];
312
- for (const url of urls) {
313
- const manifestUrl = url.endsWith("/")
314
- ? `${url}manifest`
315
- : `${url}/manifest`;
316
- const fetched = await fetchUrl(manifestUrl);
317
- if (fetched instanceof Uint8Array) {
318
- const hash = await sha256Bytes(fetched);
319
- let markspecSchema = 1;
320
- try {
321
- const parsed = JSON.parse(new TextDecoder().decode(fetched));
322
- if (typeof parsed["markspec-schema"] === "number") {
323
- markspecSchema = parsed["markspec-schema"];
324
- }
325
- }
326
- catch { /* leave default */ }
327
- out.push({
328
- upstream: {
329
- kind: "registry",
330
- id: `urn:markspec:registry:${url}`,
331
- api: url,
332
- resolvedManifestHash: hash,
333
- markspecSchema,
334
- },
335
- diagnostics: [],
336
- });
337
- }
338
- else {
339
- out.push({
340
- upstream: {
341
- kind: "registry",
342
- id: `urn:markspec:registry:${url}`,
343
- api: url,
344
- resolvedManifestHash: "sha256:0",
345
- markspecSchema: 1,
346
- },
347
- diagnostics: [{
348
- code: "MSL-L101",
349
- severity: "warning",
350
- message: `Failed to fetch registry manifest from ${manifestUrl}: ${fetched.error}`,
351
- location: undefined,
352
- }],
353
- });
354
- }
355
- }
356
- return out;
357
- }
358
- // ---------------------------------------------------------------------------
359
299
  // Bound-entry resolution (Task 17)
360
300
  // ---------------------------------------------------------------------------
361
301
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/lock/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAEV,QAAQ,EAIT,MAAM,YAAY,CAAC;AAOpB,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CAuGtD"}
1
+ {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/lock/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAEV,QAAQ,EAKT,MAAM,YAAY,CAAC;AAOpB,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CA+HtD"}
@@ -66,6 +66,29 @@ export function serializeLockfile(lf) {
66
66
  parts.push(`api = ${tomlString(r.api)}\n`);
67
67
  parts.push(`resolved-manifest-hash = ${tomlString(r.resolvedManifestHash)}\n`);
68
68
  parts.push(`markspec-schema = ${r.markspecSchema}\n`);
69
+ if (r.version !== undefined) {
70
+ parts.push(`version = ${tomlString(r.version)}\n`);
71
+ }
72
+ if (r.snapshot !== undefined) {
73
+ parts.push(`snapshot = ${tomlString(r.snapshot)}\n`);
74
+ }
75
+ if (r.lockedAt !== undefined) {
76
+ parts.push(`locked-at = ${tomlString(r.lockedAt)}\n`);
77
+ }
78
+ }
79
+ const deps = lf.upstreams
80
+ .filter((u) => u.kind === "dependency")
81
+ .slice()
82
+ .sort((a, b) => a.id.localeCompare(b.id));
83
+ for (const d of deps) {
84
+ parts.push("\n[[upstream.dependency]]\n");
85
+ parts.push(`id = ${tomlString(d.id)}\n`);
86
+ parts.push(`url = ${tomlString(d.url)}\n`);
87
+ parts.push(`intent = ${tomlString(d.intent)}\n`);
88
+ parts.push(`resolved = ${tomlString(d.resolved)}\n`);
89
+ parts.push(`sha = ${tomlString(d.sha)}\n`);
90
+ parts.push(`snapshot = ${tomlString(d.snapshot)}\n`);
91
+ parts.push(`locked-at = ${tomlString(d.lockedAt)}\n`);
69
92
  }
70
93
  const bounds = lf.boundEntries.slice().sort((a, b) => a.displayId.localeCompare(b.displayId));
71
94
  for (const be of bounds) {
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @module core/lock/upstream_common
3
+ *
4
+ * Primitives shared by the two lock-mediated upstream acquirers —
5
+ * `upstream_refs.ts` (published `references:` snapshots) and
6
+ * `upstream_deps.ts` (git `dependencies:` trees). Both emit the same
7
+ * MSL-L213 "could not be locked" warning (differing only by the noun) and
8
+ * write a `[path, bytes][]` cache batch with identical error handling, so
9
+ * the primitive lives here once rather than duplicated in each module.
10
+ */
11
+ import type { Diagnostic } from "../model/mod.js";
12
+ /** The two upstream kinds, used only to word the shared MSL-L213 message. */
13
+ export type UpstreamNoun = "reference" | "dependency";
14
+ /**
15
+ * Warn-and-write diagnostic (design §4.2, decision 1): one upstream could
16
+ * not be locked. Identical shape for both kinds — `noun` selects the word.
17
+ */
18
+ export declare function upstreamNotLockable(noun: UpstreamNoun, id: string, detail: string): Diagnostic;
19
+ /**
20
+ * Write a batch of `[absolutePath, bytes]` cache files via the injected
21
+ * `writeFile` (which creates parent directories). Returns an MSL-L213
22
+ * warning naming the clean `id` (never the raw path) on the first failure,
23
+ * or `undefined` when every write succeeds. Shared by both acquirers' cache
24
+ * writers so a cache-write-failure message is worded identically.
25
+ */
26
+ export declare function writeCacheFiles(writes: ReadonlyArray<readonly [string, Uint8Array]>, noun: UpstreamNoun, id: string, writeFile: (path: string, bytes: Uint8Array) => Promise<{
27
+ error?: string;
28
+ }>): Promise<Diagnostic | undefined>;
29
+ //# sourceMappingURL=upstream_common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upstream_common.d.ts","sourceRoot":"","sources":["../../src/lock/upstream_common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,YAAY,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,EAClB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,GACb,UAAU,CAOZ;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EACpD,IAAI,EAAE,YAAY,EAClB,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAC1E,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAYjC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @module core/lock/upstream_common
3
+ *
4
+ * Primitives shared by the two lock-mediated upstream acquirers —
5
+ * `upstream_refs.ts` (published `references:` snapshots) and
6
+ * `upstream_deps.ts` (git `dependencies:` trees). Both emit the same
7
+ * MSL-L213 "could not be locked" warning (differing only by the noun) and
8
+ * write a `[path, bytes][]` cache batch with identical error handling, so
9
+ * the primitive lives here once rather than duplicated in each module.
10
+ */
11
+ /**
12
+ * Warn-and-write diagnostic (design §4.2, decision 1): one upstream could
13
+ * not be locked. Identical shape for both kinds — `noun` selects the word.
14
+ */
15
+ export function upstreamNotLockable(noun, id, detail) {
16
+ return {
17
+ code: "MSL-L213",
18
+ severity: "warning",
19
+ message: `upstream ${noun} '${id}' could not be locked: ${detail}`,
20
+ location: undefined,
21
+ };
22
+ }
23
+ /**
24
+ * Write a batch of `[absolutePath, bytes]` cache files via the injected
25
+ * `writeFile` (which creates parent directories). Returns an MSL-L213
26
+ * warning naming the clean `id` (never the raw path) on the first failure,
27
+ * or `undefined` when every write succeeds. Shared by both acquirers' cache
28
+ * writers so a cache-write-failure message is worded identically.
29
+ */
30
+ export async function writeCacheFiles(writes, noun, id, writeFile) {
31
+ for (const [path, bytes] of writes) {
32
+ const res = await writeFile(path, bytes);
33
+ if (res.error !== undefined) {
34
+ return upstreamNotLockable(noun, id, `cache write of '${path}' failed (${res.error})`);
35
+ }
36
+ }
37
+ return undefined;
38
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @module core/lock/upstream_deps
3
+ *
4
+ * Lock-mediated acquisition of org-manifest `dependencies:` git repositories
5
+ * (design §4.3), the sibling of `upstream_refs.ts`. Unlike a `references:`
6
+ * published site (fetched as ready JSON), a dependency is a git tree we
7
+ * resolve, acquire at one sha, and compile in-process into the same cache
8
+ * layout. Three flows: first-lock (resolve intent → acquire → compile → pin),
9
+ * keep/restore (pin exists → verify cache offline, re-acquire the *pinned* sha
10
+ * only to repopulate), update (`--update` → re-resolve + move the pin).
11
+ *
12
+ * Warn-and-write policy (design §4.2, decision 1): an unreachable dependency
13
+ * yields a warning and the resolvable pins still lock. Pure — git, fs, and
14
+ * temp-dir access flow through {@linkcode UpstreamDepsIO}.
15
+ */
16
+ import type { Diagnostic, ProjectRef } from "../model/mod.js";
17
+ import type { UpstreamDependency } from "./model.js";
18
+ import type { ReadFile } from "./resolve.js";
19
+ import { type RefList } from "./git_intent.js";
20
+ import type { CompiledSnapshot } from "./acquire_compile.js";
21
+ export interface GitIO {
22
+ lsRemote(url: string): Promise<RefList | {
23
+ error: string;
24
+ }>;
25
+ acquireTree(url: string, sha: string, destDir: string): Promise<{
26
+ error?: string;
27
+ }>;
28
+ }
29
+ export interface UpstreamDepsIO {
30
+ readonly git: GitIO;
31
+ readonly compileTree: (treeRoot: string) => Promise<CompiledSnapshot | {
32
+ error: string;
33
+ }>;
34
+ readonly readFile: ReadFile;
35
+ readonly writeFile: (path: string, bytes: Uint8Array) => Promise<{
36
+ error?: string;
37
+ }>;
38
+ readonly makeTempDir: () => Promise<string>;
39
+ readonly removeDir: (path: string) => Promise<void>;
40
+ }
41
+ export interface ResolveProjectDependenciesOptions {
42
+ readonly dependencies: readonly ProjectRef[];
43
+ readonly existing: readonly UpstreamDependency[];
44
+ readonly cacheRoot: string;
45
+ readonly update: boolean | string;
46
+ readonly io: UpstreamDepsIO;
47
+ readonly lockedAt: string;
48
+ /**
49
+ * Upstream ids already claimed by declared `references:` entries. A
50
+ * dependency whose derived id collides with one is skipped with an
51
+ * MSL-L216 warning (warn-and-write) — the reference snapshot owns that
52
+ * cache namespace, and two rows under one id would clobber each other's
53
+ * cache and double-map the corpus. Defaults to empty (no cross-kind
54
+ * dedup) for callers that resolve dependencies in isolation.
55
+ */
56
+ readonly reservedIds?: ReadonlySet<string>;
57
+ }
58
+ export interface ResolveProjectDependenciesResult {
59
+ readonly dependencies: UpstreamDependency[];
60
+ readonly diagnostics: Diagnostic[];
61
+ }
62
+ export declare function resolveProjectDependencies(opts: ResolveProjectDependenciesOptions): Promise<ResolveProjectDependenciesResult>;
63
+ //# sourceMappingURL=upstream_deps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upstream_deps.d.ts","sourceRoot":"","sources":["../../src/lock/upstream_deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC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E,CAAC;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,YAAY,EAAE,kBAAkB,EAAE,CAAC;IAC5C,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,CAAC;CACpC;AAkID,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,iCAAiC,GACtC,OAAO,CAAC,gCAAgC,CAAC,CA+D3C"}
@@ -0,0 +1,172 @@
1
+ /**
2
+ * @module core/lock/upstream_deps
3
+ *
4
+ * Lock-mediated acquisition of org-manifest `dependencies:` git repositories
5
+ * (design §4.3), the sibling of `upstream_refs.ts`. Unlike a `references:`
6
+ * published site (fetched as ready JSON), a dependency is a git tree we
7
+ * resolve, acquire at one sha, and compile in-process into the same cache
8
+ * layout. Three flows: first-lock (resolve intent → acquire → compile → pin),
9
+ * keep/restore (pin exists → verify cache offline, re-acquire the *pinned* sha
10
+ * only to repopulate), update (`--update` → re-resolve + move the pin).
11
+ *
12
+ * Warn-and-write policy (design §4.2, decision 1): an unreachable dependency
13
+ * yields a warning and the resolvable pins still lock. Pure — git, fs, and
14
+ * temp-dir access flow through {@linkcode UpstreamDepsIO}.
15
+ */
16
+ import { join } from "@std/path";
17
+ import { deriveUpstreamId, probeCacheSnapshot } from "./upstream_refs.js";
18
+ import { upstreamNotLockable, writeCacheFiles } from "./upstream_common.js";
19
+ import { resolveIntent } from "./git_intent.js";
20
+ /** Warn-and-write diagnostic — one dependency could not be locked (decision 1). */
21
+ function l213(id, detail) {
22
+ return upstreamNotLockable("dependency", id, detail);
23
+ }
24
+ /** Cross-kind id-collision diagnostic — a dependency id is already claimed
25
+ * by a `references:` entry (warn-and-write: the dependency is skipped). */
26
+ function l216(id) {
27
+ return {
28
+ code: "MSL-L216",
29
+ severity: "warning",
30
+ message: `upstream id '${id}' is claimed by both a 'references:' entry and a ` +
31
+ `'dependencies:' entry — skipping the dependency (the reference ` +
32
+ `snapshot owns the cache); set a distinct 'name:' on one of them`,
33
+ location: undefined,
34
+ };
35
+ }
36
+ /** Acquire the tree at `sha` into a fresh temp dir, compile it, clean up.
37
+ * A temp-dir creation failure is turned into a warn-and-write `{ error }`
38
+ * rather than propagating and aborting the whole lock. */
39
+ async function acquireAndCompile(url, sha, io) {
40
+ let tmp;
41
+ try {
42
+ tmp = await io.makeTempDir();
43
+ }
44
+ catch (err) {
45
+ return {
46
+ error: `temp dir creation failed (${err instanceof Error ? err.message : String(err)})`,
47
+ };
48
+ }
49
+ try {
50
+ const acq = await io.git.acquireTree(url, sha, tmp);
51
+ if (acq.error !== undefined) {
52
+ return { error: `acquire ${sha.slice(0, 12)} failed (${acq.error})` };
53
+ }
54
+ return await io.compileTree(tmp);
55
+ }
56
+ finally {
57
+ await io.removeDir(tmp);
58
+ }
59
+ }
60
+ /** Write `manifest.json` + `compiled.json` for a snapshot under `dir`. The
61
+ * clean `id` (not `dir`) is threaded through so a cache-write-failure
62
+ * warning names the upstream, not the raw cache path. */
63
+ function writeSnapshotCache(id, dir, snap, io) {
64
+ const writes = [
65
+ [
66
+ join(dir, "manifest.json"),
67
+ new TextEncoder().encode(JSON.stringify(snap.manifestJson, null, 2)),
68
+ ],
69
+ [join(dir, "compiled.json"), snap.compiledBytes],
70
+ ];
71
+ return writeCacheFiles(writes, "dependency", id, io.writeFile);
72
+ }
73
+ /**
74
+ * RESTORE — the pin exists but its cache is missing or hash-broken. Re-acquire
75
+ * the *pinned* sha (intent is NOT re-resolved) purely to repopulate the cache;
76
+ * the pin never moves. Returns a warning on any failure (unreachable, markspec
77
+ * version skew, or cache-write error) and `undefined` on a clean repopulate.
78
+ * In every case the caller keeps the existing row.
79
+ */
80
+ async function restore(id, existing, dir, io) {
81
+ const snap = await acquireAndCompile(existing.url, existing.sha, io);
82
+ if ("error" in snap)
83
+ return l213(id, `restore failed: ${snap.error}`);
84
+ if (snap.snapshot !== existing.snapshot) {
85
+ // Same sha but a different compiled hash → markspec wire-format skew
86
+ // (the source is byte-identical by git's guarantee). Keep the pin, do
87
+ // not clobber the cache; tell the user to re-pin explicitly.
88
+ return l213(id, `restore recompiled to a different snapshot (markspec version skew?) — run 'markspec lock --update=${id}' to re-pin`);
89
+ }
90
+ return await writeSnapshotCache(id, dir, snap, io);
91
+ }
92
+ /**
93
+ * FIRST-LOCK or UPDATE — resolve the declared intent to a sha, acquire,
94
+ * compile, and write the cache. Returns the new pinned row, or a warning
95
+ * (ls-remote / intent / acquire / cache-write failure). The caller decides
96
+ * whether to fall back to a prior `existing` row.
97
+ */
98
+ async function firstLockOrUpdate(ref, id, dir, intent, io, lockedAt) {
99
+ const refs = await io.git.lsRemote(ref.url);
100
+ if ("error" in refs)
101
+ return l213(id, `ls-remote failed (${refs.error})`);
102
+ const ri = resolveIntent(intent, refs);
103
+ if ("error" in ri)
104
+ return l213(id, ri.error);
105
+ const snap = await acquireAndCompile(ref.url, ri.sha, io);
106
+ if ("error" in snap)
107
+ return l213(id, snap.error);
108
+ const writeErr = await writeSnapshotCache(id, dir, snap, io);
109
+ if (writeErr)
110
+ return writeErr;
111
+ return {
112
+ kind: "dependency",
113
+ id,
114
+ url: ref.url,
115
+ intent,
116
+ resolved: ri.resolved,
117
+ sha: ri.sha,
118
+ snapshot: snap.snapshot,
119
+ lockedAt,
120
+ };
121
+ }
122
+ export async function resolveProjectDependencies(opts) {
123
+ const dependencies = [];
124
+ const diagnostics = [];
125
+ const byId = new Map(opts.existing.map((row) => [row.id, row]));
126
+ const seen = new Set();
127
+ for (const ref of opts.dependencies) {
128
+ const id = deriveUpstreamId(ref);
129
+ if (id === undefined) {
130
+ diagnostics.push(l213(ref.name ?? ref.url, "no safe upstream id could be derived — set an explicit 'name:'"));
131
+ continue;
132
+ }
133
+ // Cross-kind collision: a `references:` entry already owns this id.
134
+ // Skip the dependency (warn-and-write) — it must not clobber the cache.
135
+ if (opts.reservedIds?.has(id)) {
136
+ diagnostics.push(l216(id));
137
+ continue;
138
+ }
139
+ if (seen.has(id)) {
140
+ diagnostics.push(l213(id, "duplicate upstream id — set distinct 'name:'"));
141
+ continue;
142
+ }
143
+ seen.add(id);
144
+ const dir = join(opts.cacheRoot, id);
145
+ const existing = byId.get(id);
146
+ const selectedForUpdate = opts.update === true || opts.update === id;
147
+ // KEEP / RESTORE
148
+ if (existing !== undefined && !selectedForUpdate) {
149
+ if (await probeCacheSnapshot(dir, existing.snapshot, opts.io.readFile)) {
150
+ dependencies.push(existing); // idempotent — no git
151
+ continue;
152
+ }
153
+ const restoreDiag = await restore(id, existing, dir, opts.io);
154
+ if (restoreDiag)
155
+ diagnostics.push(restoreDiag);
156
+ dependencies.push(existing); // the pin never moves on restore
157
+ continue;
158
+ }
159
+ // FIRST-LOCK or UPDATE.
160
+ const intent = ref.version ?? "auto";
161
+ const outcome = await firstLockOrUpdate(ref, id, dir, intent, opts.io, opts.lockedAt);
162
+ if ("code" in outcome) {
163
+ diagnostics.push(outcome);
164
+ if (existing !== undefined)
165
+ dependencies.push(existing);
166
+ }
167
+ else {
168
+ dependencies.push(outcome);
169
+ }
170
+ }
171
+ return { dependencies, diagnostics };
172
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @module lock/upstream_refs
3
+ *
4
+ * Lock-mediated resolution of org-manifest `references:` projectRefs
5
+ * (design §4.2): fetch a published compile-output snapshot over https or
6
+ * `file://`, cache it under `.markspec/cache/upstreams/<id>/`, and pin it
7
+ * as an extended `[[upstream.registry]]` lockfile row. Three flows:
8
+ * first lock (new declaration → fetch + pin), keep/restore (pin exists →
9
+ * verify cache offline, refetch only to repopulate, never move the pin),
10
+ * update (`--update` → refetch + move the pin).
11
+ *
12
+ * Pure module: network and file access only via {@linkcode UpstreamRefsIO}.
13
+ */
14
+ import type { Diagnostic, ProjectRef } from "../model/mod.js";
15
+ import type { UpstreamRegistry } from "./model.js";
16
+ import type { FetchUrl, ReadFile } from "./resolve.js";
17
+ /**
18
+ * Root directory under which every upstream's cached snapshot is stored,
19
+ * one subdirectory per upstream id (`<root>/<id>/manifest.json`, etc.).
20
+ * Shared by `markspec lock` (the writer) and `markspec check` (the
21
+ * offline MSL-L212 prober) so the two commands can never disagree on
22
+ * where the cache lives.
23
+ */
24
+ export declare function upstreamCacheRoot(projectRoot: string): string;
25
+ /** IO seam — the CLI supplies Deno-backed implementations. */
26
+ export interface UpstreamRefsIO {
27
+ readonly fetchUrl: FetchUrl;
28
+ /** Bytes reader used to probe the existing cache (missing → `{error}`). */
29
+ readonly readFile: ReadFile;
30
+ /** Write `bytes` to `path`, creating parent directories. */
31
+ readonly writeFile: (path: string, bytes: Uint8Array) => Promise<{
32
+ error?: string;
33
+ }>;
34
+ }
35
+ /** See module doc. */
36
+ export interface ResolveProjectReferencesOptions {
37
+ readonly references: readonly ProjectRef[];
38
+ readonly existing: readonly UpstreamRegistry[];
39
+ readonly cacheRoot: string;
40
+ readonly update: boolean | string;
41
+ readonly io: UpstreamRefsIO;
42
+ readonly lockedAt: string;
43
+ }
44
+ /** Result of {@linkcode resolveProjectReferences}. */
45
+ export interface ResolveProjectReferencesResult {
46
+ readonly registries: UpstreamRegistry[];
47
+ readonly diagnostics: Diagnostic[];
48
+ }
49
+ /**
50
+ * Derive the upstream id for a projectRef: the explicit `name`, else the
51
+ * last non-empty path segment of the URL with any `.git` suffix stripped.
52
+ * Returns `undefined` when no safe id can be derived.
53
+ */
54
+ export declare function deriveUpstreamId(ref: ProjectRef): string | undefined;
55
+ /**
56
+ * Probe whether the cached snapshot under `dir` is present and hash-intact
57
+ * against `snapshot`: `manifest.json` must exist and parse, its
58
+ * `entries.file` must name a safe relative path, and the hashed bytes of
59
+ * that file must equal `snapshot`.
60
+ *
61
+ * Shared by {@linkcode cacheIntact} (this module's keep/restore flow) and
62
+ * `verifyUpstreamCache` (`cache_check.ts`'s MSL-L212 offline cache-drift
63
+ * gate) so the two never disagree on what "cache intact" means — the
64
+ * single probe implementation, not a duplicate.
65
+ */
66
+ export declare function probeCacheSnapshot(dir: string, snapshot: string, readFile: ReadFile): Promise<boolean>;
67
+ /** See module doc for the flow table. */
68
+ export declare function resolveProjectReferences(opts: ResolveProjectReferencesOptions): Promise<ResolveProjectReferencesResult>;
69
+ //# sourceMappingURL=upstream_refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upstream_refs.d.ts","sourceRoot":"","sources":["../../src/lock/upstream_refs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAMvD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,CAClB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,KACd,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClC;AAED,sBAAsB;AACtB,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,UAAU,EAAE,SAAS,UAAU,EAAE,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB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