@sourcey/catalog-verifier 1.1.36 → 1.2.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 (614) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +11 -5
  3. package/SBOM.cdx.json +1 -60
  4. package/SOURCEY-CLOSURE.json +297 -2345
  5. package/SOURCEY-DISTRIBUTION.json +38 -12
  6. package/THIRD_PARTY_NOTICES.json +0 -30
  7. package/dist/contracts/agent-readiness/src/binding.d.ts +12 -0
  8. package/dist/contracts/agent-readiness/src/binding.d.ts.map +1 -1
  9. package/dist/contracts/agent-readiness/src/binding.js +116 -1
  10. package/dist/contracts/agent-readiness/src/binding.js.map +1 -1
  11. package/dist/contracts/agent-readiness/src/jobs.d.ts +36 -0
  12. package/dist/contracts/agent-readiness/src/jobs.d.ts.map +1 -1
  13. package/dist/contracts/agent-readiness/src/jobs.js +80 -0
  14. package/dist/contracts/agent-readiness/src/jobs.js.map +1 -1
  15. package/dist/contracts/agent-readiness/src/shared.d.ts +2 -0
  16. package/dist/contracts/agent-readiness/src/shared.d.ts.map +1 -1
  17. package/dist/contracts/agent-readiness/src/shared.js +21 -0
  18. package/dist/contracts/agent-readiness/src/shared.js.map +1 -1
  19. package/dist/modules/agent-readiness-jobs/src/current.d.ts +48 -0
  20. package/dist/modules/agent-readiness-jobs/src/current.d.ts.map +1 -0
  21. package/dist/modules/agent-readiness-jobs/src/current.js +7 -0
  22. package/dist/modules/agent-readiness-jobs/src/current.js.map +1 -0
  23. package/dist/modules/agent-readiness-jobs/src/index.d.ts +1 -1
  24. package/dist/modules/agent-readiness-jobs/src/index.d.ts.map +1 -1
  25. package/dist/modules/agent-readiness-jobs/src/index.js +1 -1
  26. package/dist/modules/agent-readiness-jobs/src/index.js.map +1 -1
  27. package/dist/modules/agent-readiness-policy/src/declaration-jobs.d.ts +8 -6
  28. package/dist/modules/agent-readiness-policy/src/declaration-jobs.d.ts.map +1 -1
  29. package/dist/modules/agent-readiness-policy/src/declaration-jobs.js +7 -7
  30. package/dist/modules/agent-readiness-policy/src/declaration-jobs.js.map +1 -1
  31. package/dist/modules/agent-readiness-repository/src/change.d.ts +4 -3
  32. package/dist/modules/agent-readiness-repository/src/change.d.ts.map +1 -1
  33. package/dist/modules/agent-readiness-repository/src/change.js +7 -7
  34. package/dist/modules/agent-readiness-repository/src/change.js.map +1 -1
  35. package/dist/modules/agent-readiness-repository/src/index.d.ts +4 -4
  36. package/dist/modules/agent-readiness-repository/src/index.d.ts.map +1 -1
  37. package/dist/modules/agent-readiness-repository/src/index.js +3 -3
  38. package/dist/modules/agent-readiness-repository/src/index.js.map +1 -1
  39. package/dist/modules/authority/src/identity-context.d.ts +6 -0
  40. package/dist/modules/authority/src/identity-context.d.ts.map +1 -0
  41. package/dist/modules/authority/src/identity-context.js +42 -0
  42. package/dist/modules/authority/src/identity-context.js.map +1 -0
  43. package/dist/modules/authority/src/registry.d.ts +29 -0
  44. package/dist/modules/authority/src/registry.d.ts.map +1 -0
  45. package/dist/modules/authority/src/registry.js +112 -0
  46. package/dist/modules/authority/src/registry.js.map +1 -0
  47. package/dist/modules/catalog-admission/src/admission-conflicts.d.ts.map +1 -1
  48. package/dist/modules/catalog-admission/src/admission-conflicts.js +2 -1
  49. package/dist/modules/catalog-admission/src/admission-conflicts.js.map +1 -1
  50. package/dist/modules/catalog-admission/src/pull-request-tree.d.ts +61 -0
  51. package/dist/modules/catalog-admission/src/pull-request-tree.d.ts.map +1 -0
  52. package/dist/modules/catalog-admission/src/pull-request-tree.js +149 -0
  53. package/dist/modules/catalog-admission/src/pull-request-tree.js.map +1 -0
  54. package/dist/packages/catalog-verifier/src/application.d.ts +1 -5
  55. package/dist/packages/catalog-verifier/src/application.d.ts.map +1 -1
  56. package/dist/packages/catalog-verifier/src/application.js +9 -75
  57. package/dist/packages/catalog-verifier/src/application.js.map +1 -1
  58. package/dist/packages/catalog-verifier/src/cli.d.ts +8 -0
  59. package/dist/packages/catalog-verifier/src/cli.d.ts.map +1 -0
  60. package/dist/packages/catalog-verifier/src/cli.js +43 -0
  61. package/dist/packages/catalog-verifier/src/cli.js.map +1 -0
  62. package/dist/packages/catalog-verifier/src/contribution.d.ts +8 -0
  63. package/dist/packages/catalog-verifier/src/contribution.d.ts.map +1 -0
  64. package/dist/packages/catalog-verifier/src/contribution.js +8 -0
  65. package/dist/packages/catalog-verifier/src/contribution.js.map +1 -0
  66. package/dist/packages/catalog-verifier/src/program.d.ts +0 -1
  67. package/dist/packages/catalog-verifier/src/program.d.ts.map +1 -1
  68. package/dist/packages/catalog-verifier/src/program.js +1 -53
  69. package/dist/packages/catalog-verifier/src/program.js.map +1 -1
  70. package/dist/packages/catalog-verifier/src/result.d.ts +12 -0
  71. package/dist/packages/catalog-verifier/src/result.d.ts.map +1 -0
  72. package/dist/packages/catalog-verifier/src/result.js +57 -0
  73. package/dist/packages/catalog-verifier/src/result.js.map +1 -0
  74. package/package.json +4 -5
  75. package/dist/contracts/admission-results/src/index.d.ts +0 -448
  76. package/dist/contracts/admission-results/src/index.d.ts.map +0 -1
  77. package/dist/contracts/admission-results/src/index.js +0 -259
  78. package/dist/contracts/admission-results/src/index.js.map +0 -1
  79. package/dist/contracts/agent-readiness/src/authority.d.ts +0 -51
  80. package/dist/contracts/agent-readiness/src/authority.d.ts.map +0 -1
  81. package/dist/contracts/agent-readiness/src/authority.js +0 -36
  82. package/dist/contracts/agent-readiness/src/authority.js.map +0 -1
  83. package/dist/contracts/agent-readiness/src/checks.d.ts +0 -26
  84. package/dist/contracts/agent-readiness/src/checks.d.ts.map +0 -1
  85. package/dist/contracts/agent-readiness/src/checks.js +0 -56
  86. package/dist/contracts/agent-readiness/src/checks.js.map +0 -1
  87. package/dist/contracts/agent-readiness/src/client.d.ts +0 -30
  88. package/dist/contracts/agent-readiness/src/client.d.ts.map +0 -1
  89. package/dist/contracts/agent-readiness/src/client.js +0 -25
  90. package/dist/contracts/agent-readiness/src/client.js.map +0 -1
  91. package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts +0 -714
  92. package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts.map +0 -1
  93. package/dist/contracts/agent-readiness/src/declaration-acquisition.js +0 -176
  94. package/dist/contracts/agent-readiness/src/declaration-acquisition.js.map +0 -1
  95. package/dist/contracts/agent-readiness/src/grade-policy.d.ts +0 -263
  96. package/dist/contracts/agent-readiness/src/grade-policy.d.ts.map +0 -1
  97. package/dist/contracts/agent-readiness/src/grade-policy.js +0 -125
  98. package/dist/contracts/agent-readiness/src/grade-policy.js.map +0 -1
  99. package/dist/contracts/agent-readiness/src/index.d.ts +0 -19
  100. package/dist/contracts/agent-readiness/src/index.d.ts.map +0 -1
  101. package/dist/contracts/agent-readiness/src/index.js +0 -16
  102. package/dist/contracts/agent-readiness/src/index.js.map +0 -1
  103. package/dist/contracts/agent-readiness/src/offer-relations.d.ts +0 -968
  104. package/dist/contracts/agent-readiness/src/offer-relations.d.ts.map +0 -1
  105. package/dist/contracts/agent-readiness/src/offer-relations.js +0 -197
  106. package/dist/contracts/agent-readiness/src/offer-relations.js.map +0 -1
  107. package/dist/contracts/agent-readiness/src/release-index.d.ts +0 -1846
  108. package/dist/contracts/agent-readiness/src/release-index.d.ts.map +0 -1
  109. package/dist/contracts/agent-readiness/src/release-index.js +0 -143
  110. package/dist/contracts/agent-readiness/src/release-index.js.map +0 -1
  111. package/dist/contracts/agent-readiness/src/revision.d.ts +0 -2816
  112. package/dist/contracts/agent-readiness/src/revision.d.ts.map +0 -1
  113. package/dist/contracts/agent-readiness/src/revision.js +0 -478
  114. package/dist/contracts/agent-readiness/src/revision.js.map +0 -1
  115. package/dist/contracts/agent-readiness/src/run.d.ts +0 -880
  116. package/dist/contracts/agent-readiness/src/run.d.ts.map +0 -1
  117. package/dist/contracts/agent-readiness/src/run.js +0 -629
  118. package/dist/contracts/agent-readiness/src/run.js.map +0 -1
  119. package/dist/contracts/api/src/endpoints.d.ts +0 -44929
  120. package/dist/contracts/api/src/endpoints.d.ts.map +0 -1
  121. package/dist/contracts/api/src/endpoints.js +0 -643
  122. package/dist/contracts/api/src/endpoints.js.map +0 -1
  123. package/dist/contracts/api/src/index.d.ts +0 -10
  124. package/dist/contracts/api/src/index.d.ts.map +0 -1
  125. package/dist/contracts/api/src/index.js +0 -6
  126. package/dist/contracts/api/src/index.js.map +0 -1
  127. package/dist/contracts/api/src/read.d.ts +0 -13871
  128. package/dist/contracts/api/src/read.d.ts.map +0 -1
  129. package/dist/contracts/api/src/read.js +0 -519
  130. package/dist/contracts/api/src/read.js.map +0 -1
  131. package/dist/contracts/api/src/routes.d.ts +0 -1885
  132. package/dist/contracts/api/src/routes.d.ts.map +0 -1
  133. package/dist/contracts/api/src/routes.js +0 -136
  134. package/dist/contracts/api/src/routes.js.map +0 -1
  135. package/dist/contracts/api/src/submissions.d.ts +0 -2071
  136. package/dist/contracts/api/src/submissions.d.ts.map +0 -1
  137. package/dist/contracts/api/src/submissions.js +0 -286
  138. package/dist/contracts/api/src/submissions.js.map +0 -1
  139. package/dist/contracts/api/src/values.d.ts +0 -26
  140. package/dist/contracts/api/src/values.d.ts.map +0 -1
  141. package/dist/contracts/api/src/values.js +0 -30
  142. package/dist/contracts/api/src/values.js.map +0 -1
  143. package/dist/contracts/artifact/src/distribution.d.ts +0 -17
  144. package/dist/contracts/artifact/src/distribution.d.ts.map +0 -1
  145. package/dist/contracts/artifact/src/distribution.js +0 -57
  146. package/dist/contracts/artifact/src/distribution.js.map +0 -1
  147. package/dist/contracts/artifact/src/index.d.ts +0 -2315
  148. package/dist/contracts/artifact/src/index.d.ts.map +0 -1
  149. package/dist/contracts/artifact/src/index.js +0 -354
  150. package/dist/contracts/artifact/src/index.js.map +0 -1
  151. package/dist/contracts/assets/src/index.d.ts +0 -1298
  152. package/dist/contracts/assets/src/index.d.ts.map +0 -1
  153. package/dist/contracts/assets/src/index.js +0 -577
  154. package/dist/contracts/assets/src/index.js.map +0 -1
  155. package/dist/contracts/assurance/src/index.d.ts +0 -148
  156. package/dist/contracts/assurance/src/index.d.ts.map +0 -1
  157. package/dist/contracts/assurance/src/index.js +0 -147
  158. package/dist/contracts/assurance/src/index.js.map +0 -1
  159. package/dist/contracts/billing/src/index.d.ts +0 -462
  160. package/dist/contracts/billing/src/index.d.ts.map +0 -1
  161. package/dist/contracts/billing/src/index.js +0 -242
  162. package/dist/contracts/billing/src/index.js.map +0 -1
  163. package/dist/contracts/capture/src/index.d.ts +0 -17
  164. package/dist/contracts/capture/src/index.d.ts.map +0 -1
  165. package/dist/contracts/capture/src/index.js +0 -15
  166. package/dist/contracts/capture/src/index.js.map +0 -1
  167. package/dist/contracts/capture/src/method-names.d.ts +0 -4
  168. package/dist/contracts/capture/src/method-names.d.ts.map +0 -1
  169. package/dist/contracts/capture/src/method-names.js +0 -4
  170. package/dist/contracts/capture/src/method-names.js.map +0 -1
  171. package/dist/contracts/capture/src/methods.d.ts +0 -7
  172. package/dist/contracts/capture/src/methods.d.ts.map +0 -1
  173. package/dist/contracts/capture/src/methods.js +0 -18
  174. package/dist/contracts/capture/src/methods.js.map +0 -1
  175. package/dist/contracts/company-authoring/src/index.d.ts +0 -72
  176. package/dist/contracts/company-authoring/src/index.d.ts.map +0 -1
  177. package/dist/contracts/company-authoring/src/index.js +0 -41
  178. package/dist/contracts/company-authoring/src/index.js.map +0 -1
  179. package/dist/contracts/company-standing/src/index.d.ts +0 -143
  180. package/dist/contracts/company-standing/src/index.d.ts.map +0 -1
  181. package/dist/contracts/company-standing/src/index.js +0 -146
  182. package/dist/contracts/company-standing/src/index.js.map +0 -1
  183. package/dist/contracts/company-verification/src/commercial.d.ts +0 -571
  184. package/dist/contracts/company-verification/src/commercial.d.ts.map +0 -1
  185. package/dist/contracts/company-verification/src/commercial.js +0 -273
  186. package/dist/contracts/company-verification/src/commercial.js.map +0 -1
  187. package/dist/contracts/company-verification/src/index.d.ts +0 -94
  188. package/dist/contracts/company-verification/src/index.d.ts.map +0 -1
  189. package/dist/contracts/company-verification/src/index.js +0 -138
  190. package/dist/contracts/company-verification/src/index.js.map +0 -1
  191. package/dist/contracts/datasets/src/index.d.ts +0 -868
  192. package/dist/contracts/datasets/src/index.d.ts.map +0 -1
  193. package/dist/contracts/datasets/src/index.js +0 -80
  194. package/dist/contracts/datasets/src/index.js.map +0 -1
  195. package/dist/contracts/events/src/index.d.ts +0 -749
  196. package/dist/contracts/events/src/index.d.ts.map +0 -1
  197. package/dist/contracts/events/src/index.js +0 -640
  198. package/dist/contracts/events/src/index.js.map +0 -1
  199. package/dist/contracts/evidence/src/index.d.ts +0 -302
  200. package/dist/contracts/evidence/src/index.d.ts.map +0 -1
  201. package/dist/contracts/evidence/src/index.js +0 -346
  202. package/dist/contracts/evidence/src/index.js.map +0 -1
  203. package/dist/contracts/feed/src/index.d.ts +0 -156
  204. package/dist/contracts/feed/src/index.d.ts.map +0 -1
  205. package/dist/contracts/feed/src/index.js +0 -79
  206. package/dist/contracts/feed/src/index.js.map +0 -1
  207. package/dist/contracts/funded-work/src/index.d.ts +0 -64
  208. package/dist/contracts/funded-work/src/index.d.ts.map +0 -1
  209. package/dist/contracts/funded-work/src/index.js +0 -68
  210. package/dist/contracts/funded-work/src/index.js.map +0 -1
  211. package/dist/contracts/observations/src/index.d.ts +0 -155
  212. package/dist/contracts/observations/src/index.d.ts.map +0 -1
  213. package/dist/contracts/observations/src/index.js +0 -110
  214. package/dist/contracts/observations/src/index.js.map +0 -1
  215. package/dist/contracts/policies/src/index.d.ts +0 -152
  216. package/dist/contracts/policies/src/index.d.ts.map +0 -1
  217. package/dist/contracts/policies/src/index.js +0 -125
  218. package/dist/contracts/policies/src/index.js.map +0 -1
  219. package/dist/contracts/publication/src/index.d.ts +0 -5590
  220. package/dist/contracts/publication/src/index.d.ts.map +0 -1
  221. package/dist/contracts/publication/src/index.js +0 -486
  222. package/dist/contracts/publication/src/index.js.map +0 -1
  223. package/dist/contracts/release/src/index.d.ts +0 -2559
  224. package/dist/contracts/release/src/index.d.ts.map +0 -1
  225. package/dist/contracts/release/src/index.js +0 -243
  226. package/dist/contracts/release/src/index.js.map +0 -1
  227. package/dist/contracts/routes/src/index.d.ts +0 -165
  228. package/dist/contracts/routes/src/index.d.ts.map +0 -1
  229. package/dist/contracts/routes/src/index.js +0 -290
  230. package/dist/contracts/routes/src/index.js.map +0 -1
  231. package/dist/contracts/sourcey-publication/src/index.d.ts +0 -27
  232. package/dist/contracts/sourcey-publication/src/index.d.ts.map +0 -1
  233. package/dist/contracts/sourcey-publication/src/index.js +0 -43
  234. package/dist/contracts/sourcey-publication/src/index.js.map +0 -1
  235. package/dist/contracts/sourcey-publication/src/instance-id.d.ts +0 -3
  236. package/dist/contracts/sourcey-publication/src/instance-id.d.ts.map +0 -1
  237. package/dist/contracts/sourcey-publication/src/instance-id.js +0 -3
  238. package/dist/contracts/sourcey-publication/src/instance-id.js.map +0 -1
  239. package/dist/contracts/sourcey-publication/src/ownership.d.ts +0 -13
  240. package/dist/contracts/sourcey-publication/src/ownership.d.ts.map +0 -1
  241. package/dist/contracts/sourcey-publication/src/ownership.js +0 -82
  242. package/dist/contracts/sourcey-publication/src/ownership.js.map +0 -1
  243. package/dist/contracts/startup-credits-commercial/src/index.d.ts +0 -8
  244. package/dist/contracts/startup-credits-commercial/src/index.d.ts.map +0 -1
  245. package/dist/contracts/startup-credits-commercial/src/index.js +0 -5
  246. package/dist/contracts/startup-credits-commercial/src/index.js.map +0 -1
  247. package/dist/contracts/startup-credits-commercial/src/product.d.ts +0 -99
  248. package/dist/contracts/startup-credits-commercial/src/product.d.ts.map +0 -1
  249. package/dist/contracts/startup-credits-commercial/src/product.js +0 -98
  250. package/dist/contracts/startup-credits-commercial/src/product.js.map +0 -1
  251. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts +0 -851
  252. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts.map +0 -1
  253. package/dist/contracts/startup-credits-commercial/src/purchase.js +0 -433
  254. package/dist/contracts/startup-credits-commercial/src/purchase.js.map +0 -1
  255. package/dist/contracts/startup-credits-commercial/src/requests.d.ts +0 -1275
  256. package/dist/contracts/startup-credits-commercial/src/requests.d.ts.map +0 -1
  257. package/dist/contracts/startup-credits-commercial/src/requests.js +0 -367
  258. package/dist/contracts/startup-credits-commercial/src/requests.js.map +0 -1
  259. package/dist/contracts/startup-credits-commercial/src/values.d.ts +0 -7
  260. package/dist/contracts/startup-credits-commercial/src/values.d.ts.map +0 -1
  261. package/dist/contracts/startup-credits-commercial/src/values.js +0 -9
  262. package/dist/contracts/startup-credits-commercial/src/values.js.map +0 -1
  263. package/dist/modules/agent-readiness-engine/src/assertions.d.ts +0 -45
  264. package/dist/modules/agent-readiness-engine/src/assertions.d.ts.map +0 -1
  265. package/dist/modules/agent-readiness-engine/src/assertions.js +0 -252
  266. package/dist/modules/agent-readiness-engine/src/assertions.js.map +0 -1
  267. package/dist/modules/agent-readiness-engine/src/authority.d.ts +0 -81
  268. package/dist/modules/agent-readiness-engine/src/authority.d.ts.map +0 -1
  269. package/dist/modules/agent-readiness-engine/src/authority.js +0 -193
  270. package/dist/modules/agent-readiness-engine/src/authority.js.map +0 -1
  271. package/dist/modules/agent-readiness-engine/src/binding.d.ts +0 -13
  272. package/dist/modules/agent-readiness-engine/src/binding.d.ts.map +0 -1
  273. package/dist/modules/agent-readiness-engine/src/binding.js +0 -116
  274. package/dist/modules/agent-readiness-engine/src/binding.js.map +0 -1
  275. package/dist/modules/agent-readiness-engine/src/challenges.d.ts +0 -13
  276. package/dist/modules/agent-readiness-engine/src/challenges.d.ts.map +0 -1
  277. package/dist/modules/agent-readiness-engine/src/challenges.js +0 -67
  278. package/dist/modules/agent-readiness-engine/src/challenges.js.map +0 -1
  279. package/dist/modules/agent-readiness-engine/src/checks.d.ts +0 -88
  280. package/dist/modules/agent-readiness-engine/src/checks.d.ts.map +0 -1
  281. package/dist/modules/agent-readiness-engine/src/checks.js +0 -237
  282. package/dist/modules/agent-readiness-engine/src/checks.js.map +0 -1
  283. package/dist/modules/agent-readiness-engine/src/documents.d.ts +0 -21
  284. package/dist/modules/agent-readiness-engine/src/documents.d.ts.map +0 -1
  285. package/dist/modules/agent-readiness-engine/src/documents.js +0 -69
  286. package/dist/modules/agent-readiness-engine/src/documents.js.map +0 -1
  287. package/dist/modules/agent-readiness-engine/src/naming.d.ts +0 -21
  288. package/dist/modules/agent-readiness-engine/src/naming.d.ts.map +0 -1
  289. package/dist/modules/agent-readiness-engine/src/naming.js +0 -29
  290. package/dist/modules/agent-readiness-engine/src/naming.js.map +0 -1
  291. package/dist/modules/agent-readiness-engine/src/path.d.ts +0 -74
  292. package/dist/modules/agent-readiness-engine/src/path.d.ts.map +0 -1
  293. package/dist/modules/agent-readiness-engine/src/path.js +0 -437
  294. package/dist/modules/agent-readiness-engine/src/path.js.map +0 -1
  295. package/dist/modules/agent-readiness-engine/src/profile.d.ts +0 -87
  296. package/dist/modules/agent-readiness-engine/src/profile.d.ts.map +0 -1
  297. package/dist/modules/agent-readiness-engine/src/profile.js +0 -180
  298. package/dist/modules/agent-readiness-engine/src/profile.js.map +0 -1
  299. package/dist/modules/agent-readiness-engine/src/rate.d.ts +0 -14
  300. package/dist/modules/agent-readiness-engine/src/rate.d.ts.map +0 -1
  301. package/dist/modules/agent-readiness-engine/src/rate.js +0 -46
  302. package/dist/modules/agent-readiness-engine/src/rate.js.map +0 -1
  303. package/dist/modules/agent-readiness-engine/src/records.d.ts +0 -48
  304. package/dist/modules/agent-readiness-engine/src/records.d.ts.map +0 -1
  305. package/dist/modules/agent-readiness-engine/src/records.js +0 -125
  306. package/dist/modules/agent-readiness-engine/src/records.js.map +0 -1
  307. package/dist/modules/agent-readiness-engine/src/run.d.ts +0 -9
  308. package/dist/modules/agent-readiness-engine/src/run.d.ts.map +0 -1
  309. package/dist/modules/agent-readiness-engine/src/run.js +0 -44
  310. package/dist/modules/agent-readiness-engine/src/run.js.map +0 -1
  311. package/dist/modules/agent-readiness-engine/src/templates.d.ts +0 -21
  312. package/dist/modules/agent-readiness-engine/src/templates.d.ts.map +0 -1
  313. package/dist/modules/agent-readiness-engine/src/templates.js +0 -89
  314. package/dist/modules/agent-readiness-engine/src/templates.js.map +0 -1
  315. package/dist/modules/agent-readiness-policy/src/current-policy.d.ts +0 -74
  316. package/dist/modules/agent-readiness-policy/src/current-policy.d.ts.map +0 -1
  317. package/dist/modules/agent-readiness-policy/src/current-policy.js +0 -11
  318. package/dist/modules/agent-readiness-policy/src/current-policy.js.map +0 -1
  319. package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts +0 -16
  320. package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts.map +0 -1
  321. package/dist/modules/agent-readiness-policy/src/grade-policy.js +0 -115
  322. package/dist/modules/agent-readiness-policy/src/grade-policy.js.map +0 -1
  323. package/dist/modules/agent-readiness-policy/src/impact.d.ts +0 -24
  324. package/dist/modules/agent-readiness-policy/src/impact.d.ts.map +0 -1
  325. package/dist/modules/agent-readiness-policy/src/impact.js +0 -59
  326. package/dist/modules/agent-readiness-policy/src/impact.js.map +0 -1
  327. package/dist/modules/agent-readiness-policy/src/index.d.ts +0 -47
  328. package/dist/modules/agent-readiness-policy/src/index.d.ts.map +0 -1
  329. package/dist/modules/agent-readiness-policy/src/index.js +0 -214
  330. package/dist/modules/agent-readiness-policy/src/index.js.map +0 -1
  331. package/dist/modules/agent-readiness-policy/src/offer-relations.d.ts +0 -16
  332. package/dist/modules/agent-readiness-policy/src/offer-relations.d.ts.map +0 -1
  333. package/dist/modules/agent-readiness-policy/src/offer-relations.js +0 -96
  334. package/dist/modules/agent-readiness-policy/src/offer-relations.js.map +0 -1
  335. package/dist/modules/agent-readiness-policy/src/prior-projection.d.ts +0 -3
  336. package/dist/modules/agent-readiness-policy/src/prior-projection.d.ts.map +0 -1
  337. package/dist/modules/agent-readiness-policy/src/prior-projection.js +0 -11
  338. package/dist/modules/agent-readiness-policy/src/prior-projection.js.map +0 -1
  339. package/dist/modules/agent-readiness-policy/src/revision.d.ts +0 -15
  340. package/dist/modules/agent-readiness-policy/src/revision.d.ts.map +0 -1
  341. package/dist/modules/agent-readiness-policy/src/revision.js +0 -95
  342. package/dist/modules/agent-readiness-policy/src/revision.js.map +0 -1
  343. package/dist/modules/artifact/src/agent-readiness-closure.d.ts +0 -20
  344. package/dist/modules/artifact/src/agent-readiness-closure.d.ts.map +0 -1
  345. package/dist/modules/artifact/src/agent-readiness-closure.js +0 -75
  346. package/dist/modules/artifact/src/agent-readiness-closure.js.map +0 -1
  347. package/dist/modules/artifact/src/asset-closure.d.ts +0 -17
  348. package/dist/modules/artifact/src/asset-closure.d.ts.map +0 -1
  349. package/dist/modules/artifact/src/asset-closure.js +0 -44
  350. package/dist/modules/artifact/src/asset-closure.js.map +0 -1
  351. package/dist/modules/artifact/src/authoring-closure.d.ts +0 -4
  352. package/dist/modules/artifact/src/authoring-closure.d.ts.map +0 -1
  353. package/dist/modules/artifact/src/authoring-closure.js +0 -19
  354. package/dist/modules/artifact/src/authoring-closure.js.map +0 -1
  355. package/dist/modules/artifact/src/index.d.ts +0 -53
  356. package/dist/modules/artifact/src/index.d.ts.map +0 -1
  357. package/dist/modules/artifact/src/index.js +0 -379
  358. package/dist/modules/artifact/src/index.js.map +0 -1
  359. package/dist/modules/artifact/src/policy-closure.d.ts +0 -12
  360. package/dist/modules/artifact/src/policy-closure.d.ts.map +0 -1
  361. package/dist/modules/artifact/src/policy-closure.js +0 -48
  362. package/dist/modules/artifact/src/policy-closure.js.map +0 -1
  363. package/dist/modules/artifact/src/release-directory-files.d.ts +0 -16
  364. package/dist/modules/artifact/src/release-directory-files.d.ts.map +0 -1
  365. package/dist/modules/artifact/src/release-directory-files.js +0 -34
  366. package/dist/modules/artifact/src/release-directory-files.js.map +0 -1
  367. package/dist/modules/artifact/src/trust-history.d.ts +0 -3
  368. package/dist/modules/artifact/src/trust-history.d.ts.map +0 -1
  369. package/dist/modules/artifact/src/trust-history.js +0 -134
  370. package/dist/modules/artifact/src/trust-history.js.map +0 -1
  371. package/dist/modules/assets/src/authority-bundle.d.ts +0 -46
  372. package/dist/modules/assets/src/authority-bundle.d.ts.map +0 -1
  373. package/dist/modules/assets/src/authority-bundle.js +0 -227
  374. package/dist/modules/assets/src/authority-bundle.js.map +0 -1
  375. package/dist/modules/assets/src/delta.d.ts +0 -45
  376. package/dist/modules/assets/src/delta.d.ts.map +0 -1
  377. package/dist/modules/assets/src/delta.js +0 -141
  378. package/dist/modules/assets/src/delta.js.map +0 -1
  379. package/dist/modules/assets/src/disposition.d.ts +0 -3
  380. package/dist/modules/assets/src/disposition.d.ts.map +0 -1
  381. package/dist/modules/assets/src/disposition.js +0 -30
  382. package/dist/modules/assets/src/disposition.js.map +0 -1
  383. package/dist/modules/assets/src/index.d.ts +0 -25
  384. package/dist/modules/assets/src/index.d.ts.map +0 -1
  385. package/dist/modules/assets/src/index.js +0 -243
  386. package/dist/modules/assets/src/index.js.map +0 -1
  387. package/dist/modules/assets/src/ingestion.d.ts +0 -70
  388. package/dist/modules/assets/src/ingestion.d.ts.map +0 -1
  389. package/dist/modules/assets/src/ingestion.js +0 -169
  390. package/dist/modules/assets/src/ingestion.js.map +0 -1
  391. package/dist/modules/assurance/src/index.d.ts +0 -22
  392. package/dist/modules/assurance/src/index.d.ts.map +0 -1
  393. package/dist/modules/assurance/src/index.js +0 -73
  394. package/dist/modules/assurance/src/index.js.map +0 -1
  395. package/dist/modules/authority/src/index.d.ts +0 -48
  396. package/dist/modules/authority/src/index.d.ts.map +0 -1
  397. package/dist/modules/authority/src/index.js +0 -298
  398. package/dist/modules/authority/src/index.js.map +0 -1
  399. package/dist/modules/authority-state/src/index.d.ts +0 -44
  400. package/dist/modules/authority-state/src/index.d.ts.map +0 -1
  401. package/dist/modules/authority-state/src/index.js +0 -190
  402. package/dist/modules/authority-state/src/index.js.map +0 -1
  403. package/dist/modules/catalog-admission/src/change-analysis.d.ts +0 -54
  404. package/dist/modules/catalog-admission/src/change-analysis.d.ts.map +0 -1
  405. package/dist/modules/catalog-admission/src/change-analysis.js +0 -116
  406. package/dist/modules/catalog-admission/src/change-analysis.js.map +0 -1
  407. package/dist/modules/catalog-admission/src/index.d.ts +0 -221
  408. package/dist/modules/catalog-admission/src/index.d.ts.map +0 -1
  409. package/dist/modules/catalog-admission/src/index.js +0 -470
  410. package/dist/modules/catalog-admission/src/index.js.map +0 -1
  411. package/dist/modules/catalog-admission/src/machine-admission.d.ts +0 -3252
  412. package/dist/modules/catalog-admission/src/machine-admission.d.ts.map +0 -1
  413. package/dist/modules/catalog-admission/src/machine-admission.js +0 -424
  414. package/dist/modules/catalog-admission/src/machine-admission.js.map +0 -1
  415. package/dist/modules/catalog-admission/src/publication-assets.d.ts +0 -5
  416. package/dist/modules/catalog-admission/src/publication-assets.d.ts.map +0 -1
  417. package/dist/modules/catalog-admission/src/publication-assets.js +0 -26
  418. package/dist/modules/catalog-admission/src/publication-assets.js.map +0 -1
  419. package/dist/modules/catalog-admission/src/publication-authorities.d.ts +0 -6
  420. package/dist/modules/catalog-admission/src/publication-authorities.d.ts.map +0 -1
  421. package/dist/modules/catalog-admission/src/publication-authorities.js +0 -28
  422. package/dist/modules/catalog-admission/src/publication-authorities.js.map +0 -1
  423. package/dist/modules/catalog-admission/src/publication-composition.d.ts +0 -437
  424. package/dist/modules/catalog-admission/src/publication-composition.d.ts.map +0 -1
  425. package/dist/modules/catalog-admission/src/publication-composition.js +0 -290
  426. package/dist/modules/catalog-admission/src/publication-composition.js.map +0 -1
  427. package/dist/modules/catalog-admission/src/publication-dependencies.d.ts +0 -103
  428. package/dist/modules/catalog-admission/src/publication-dependencies.d.ts.map +0 -1
  429. package/dist/modules/catalog-admission/src/publication-dependencies.js +0 -175
  430. package/dist/modules/catalog-admission/src/publication-dependencies.js.map +0 -1
  431. package/dist/modules/catalog-admission/src/publication-entities.d.ts +0 -8
  432. package/dist/modules/catalog-admission/src/publication-entities.d.ts.map +0 -1
  433. package/dist/modules/catalog-admission/src/publication-entities.js +0 -48
  434. package/dist/modules/catalog-admission/src/publication-entities.js.map +0 -1
  435. package/dist/modules/catalog-admission/src/publication-state.d.ts +0 -19
  436. package/dist/modules/catalog-admission/src/publication-state.d.ts.map +0 -1
  437. package/dist/modules/catalog-admission/src/publication-state.js +0 -97
  438. package/dist/modules/catalog-admission/src/publication-state.js.map +0 -1
  439. package/dist/modules/catalog-admission/src/publication.d.ts +0 -89
  440. package/dist/modules/catalog-admission/src/publication.d.ts.map +0 -1
  441. package/dist/modules/catalog-admission/src/publication.js +0 -532
  442. package/dist/modules/catalog-admission/src/publication.js.map +0 -1
  443. package/dist/modules/catalog-admission/src/submission-input.d.ts +0 -44
  444. package/dist/modules/catalog-admission/src/submission-input.d.ts.map +0 -1
  445. package/dist/modules/catalog-admission/src/submission-input.js +0 -174
  446. package/dist/modules/catalog-admission/src/submission-input.js.map +0 -1
  447. package/dist/modules/catalog-admission/src/submission-state.d.ts +0 -9
  448. package/dist/modules/catalog-admission/src/submission-state.d.ts.map +0 -1
  449. package/dist/modules/catalog-admission/src/submission-state.js +0 -24
  450. package/dist/modules/catalog-admission/src/submission-state.js.map +0 -1
  451. package/dist/modules/catalog-admission/src/submission.d.ts +0 -157
  452. package/dist/modules/catalog-admission/src/submission.d.ts.map +0 -1
  453. package/dist/modules/catalog-admission/src/submission.js +0 -346
  454. package/dist/modules/catalog-admission/src/submission.js.map +0 -1
  455. package/dist/modules/catalog-query/src/contracts.d.ts +0 -13
  456. package/dist/modules/catalog-query/src/contracts.d.ts.map +0 -1
  457. package/dist/modules/catalog-query/src/contracts.js +0 -13
  458. package/dist/modules/catalog-query/src/contracts.js.map +0 -1
  459. package/dist/modules/catalog-read-port/src/index.d.ts +0 -34
  460. package/dist/modules/catalog-read-port/src/index.d.ts.map +0 -1
  461. package/dist/modules/catalog-read-port/src/index.js +0 -2
  462. package/dist/modules/catalog-read-port/src/index.js.map +0 -1
  463. package/dist/modules/evidence-comparison/src/domains.d.ts +0 -8
  464. package/dist/modules/evidence-comparison/src/domains.d.ts.map +0 -1
  465. package/dist/modules/evidence-comparison/src/domains.js +0 -16
  466. package/dist/modules/evidence-comparison/src/domains.js.map +0 -1
  467. package/dist/modules/evidence-operations/src/attested-capture.d.ts +0 -75
  468. package/dist/modules/evidence-operations/src/attested-capture.d.ts.map +0 -1
  469. package/dist/modules/evidence-operations/src/attested-capture.js +0 -227
  470. package/dist/modules/evidence-operations/src/attested-capture.js.map +0 -1
  471. package/dist/modules/evidence-operations/src/configuration.d.ts +0 -100
  472. package/dist/modules/evidence-operations/src/configuration.d.ts.map +0 -1
  473. package/dist/modules/evidence-operations/src/configuration.js +0 -199
  474. package/dist/modules/evidence-operations/src/configuration.js.map +0 -1
  475. package/dist/modules/evidence-operations/src/evidence-authority-materialization.d.ts +0 -53
  476. package/dist/modules/evidence-operations/src/evidence-authority-materialization.d.ts.map +0 -1
  477. package/dist/modules/evidence-operations/src/evidence-authority-materialization.js +0 -161
  478. package/dist/modules/evidence-operations/src/evidence-authority-materialization.js.map +0 -1
  479. package/dist/modules/evidence-operations/src/evidence-authority.d.ts +0 -669
  480. package/dist/modules/evidence-operations/src/evidence-authority.d.ts.map +0 -1
  481. package/dist/modules/evidence-operations/src/evidence-authority.js +0 -391
  482. package/dist/modules/evidence-operations/src/evidence-authority.js.map +0 -1
  483. package/dist/modules/evidence-operations/src/evidence-normalization.d.ts +0 -46
  484. package/dist/modules/evidence-operations/src/evidence-normalization.d.ts.map +0 -1
  485. package/dist/modules/evidence-operations/src/evidence-normalization.js +0 -61
  486. package/dist/modules/evidence-operations/src/evidence-normalization.js.map +0 -1
  487. package/dist/modules/evidence-operations/src/evidence-revision.d.ts +0 -5
  488. package/dist/modules/evidence-operations/src/evidence-revision.d.ts.map +0 -1
  489. package/dist/modules/evidence-operations/src/evidence-revision.js +0 -12
  490. package/dist/modules/evidence-operations/src/evidence-revision.js.map +0 -1
  491. package/dist/modules/evidence-operations/src/proof-graph.d.ts +0 -32
  492. package/dist/modules/evidence-operations/src/proof-graph.d.ts.map +0 -1
  493. package/dist/modules/evidence-operations/src/proof-graph.js +0 -208
  494. package/dist/modules/evidence-operations/src/proof-graph.js.map +0 -1
  495. package/dist/modules/evidence-operations/src/retained-revision.d.ts +0 -9
  496. package/dist/modules/evidence-operations/src/retained-revision.d.ts.map +0 -1
  497. package/dist/modules/evidence-operations/src/retained-revision.js +0 -30
  498. package/dist/modules/evidence-operations/src/retained-revision.js.map +0 -1
  499. package/dist/modules/evidence-operations/src/source-authority.d.ts +0 -43
  500. package/dist/modules/evidence-operations/src/source-authority.d.ts.map +0 -1
  501. package/dist/modules/evidence-operations/src/source-authority.js +0 -77
  502. package/dist/modules/evidence-operations/src/source-authority.js.map +0 -1
  503. package/dist/modules/evidence-operations/src/submission-verifier.d.ts +0 -350
  504. package/dist/modules/evidence-operations/src/submission-verifier.d.ts.map +0 -1
  505. package/dist/modules/evidence-operations/src/submission-verifier.js +0 -388
  506. package/dist/modules/evidence-operations/src/submission-verifier.js.map +0 -1
  507. package/dist/modules/evidence-operations/src/url-canonicalization.d.ts +0 -3
  508. package/dist/modules/evidence-operations/src/url-canonicalization.d.ts.map +0 -1
  509. package/dist/modules/evidence-operations/src/url-canonicalization.js +0 -7
  510. package/dist/modules/evidence-operations/src/url-canonicalization.js.map +0 -1
  511. package/dist/modules/projection-identity/src/index.d.ts +0 -14
  512. package/dist/modules/projection-identity/src/index.d.ts.map +0 -1
  513. package/dist/modules/projection-identity/src/index.js +0 -23
  514. package/dist/modules/projection-identity/src/index.js.map +0 -1
  515. package/dist/modules/provenance/src/evidence-bindings.d.ts +0 -11
  516. package/dist/modules/provenance/src/evidence-bindings.d.ts.map +0 -1
  517. package/dist/modules/provenance/src/evidence-bindings.js +0 -49
  518. package/dist/modules/provenance/src/evidence-bindings.js.map +0 -1
  519. package/dist/modules/provenance/src/evidence-coverage.d.ts +0 -36
  520. package/dist/modules/provenance/src/evidence-coverage.d.ts.map +0 -1
  521. package/dist/modules/provenance/src/evidence-coverage.js +0 -131
  522. package/dist/modules/provenance/src/evidence-coverage.js.map +0 -1
  523. package/dist/modules/provenance/src/index.d.ts +0 -80
  524. package/dist/modules/provenance/src/index.d.ts.map +0 -1
  525. package/dist/modules/provenance/src/index.js +0 -535
  526. package/dist/modules/provenance/src/index.js.map +0 -1
  527. package/dist/modules/provenance/src/material-claims.d.ts +0 -262
  528. package/dist/modules/provenance/src/material-claims.d.ts.map +0 -1
  529. package/dist/modules/provenance/src/material-claims.js +0 -383
  530. package/dist/modules/provenance/src/material-claims.js.map +0 -1
  531. package/dist/modules/provenance/src/prospective-evidence.d.ts +0 -6
  532. package/dist/modules/provenance/src/prospective-evidence.d.ts.map +0 -1
  533. package/dist/modules/provenance/src/prospective-evidence.js +0 -61
  534. package/dist/modules/provenance/src/prospective-evidence.js.map +0 -1
  535. package/dist/modules/publication-instance/src/index.d.ts +0 -516
  536. package/dist/modules/publication-instance/src/index.d.ts.map +0 -1
  537. package/dist/modules/publication-instance/src/index.js +0 -34
  538. package/dist/modules/publication-instance/src/index.js.map +0 -1
  539. package/dist/modules/release/src/agent-readiness-authority.d.ts +0 -71
  540. package/dist/modules/release/src/agent-readiness-authority.d.ts.map +0 -1
  541. package/dist/modules/release/src/agent-readiness-authority.js +0 -164
  542. package/dist/modules/release/src/agent-readiness-authority.js.map +0 -1
  543. package/dist/modules/release/src/agent-readiness-publication-inputs.d.ts +0 -11
  544. package/dist/modules/release/src/agent-readiness-publication-inputs.d.ts.map +0 -1
  545. package/dist/modules/release/src/agent-readiness-publication-inputs.js +0 -45
  546. package/dist/modules/release/src/agent-readiness-publication-inputs.js.map +0 -1
  547. package/dist/modules/release/src/agent-readiness-regrade-evidence.d.ts +0 -158
  548. package/dist/modules/release/src/agent-readiness-regrade-evidence.d.ts.map +0 -1
  549. package/dist/modules/release/src/agent-readiness-regrade-evidence.js +0 -164
  550. package/dist/modules/release/src/agent-readiness-regrade-evidence.js.map +0 -1
  551. package/dist/modules/release/src/asset-delta-verifier.d.ts +0 -13
  552. package/dist/modules/release/src/asset-delta-verifier.d.ts.map +0 -1
  553. package/dist/modules/release/src/asset-delta-verifier.js +0 -80
  554. package/dist/modules/release/src/asset-delta-verifier.js.map +0 -1
  555. package/dist/modules/release/src/changes.d.ts +0 -23
  556. package/dist/modules/release/src/changes.d.ts.map +0 -1
  557. package/dist/modules/release/src/changes.js +0 -376
  558. package/dist/modules/release/src/changes.js.map +0 -1
  559. package/dist/modules/release/src/evidence-admission.d.ts +0 -59
  560. package/dist/modules/release/src/evidence-admission.d.ts.map +0 -1
  561. package/dist/modules/release/src/evidence-admission.js +0 -531
  562. package/dist/modules/release/src/evidence-admission.js.map +0 -1
  563. package/dist/modules/release/src/evidence-bundle-tree.d.ts +0 -14
  564. package/dist/modules/release/src/evidence-bundle-tree.d.ts.map +0 -1
  565. package/dist/modules/release/src/evidence-bundle-tree.js +0 -58
  566. package/dist/modules/release/src/evidence-bundle-tree.js.map +0 -1
  567. package/dist/modules/release/src/identity.d.ts +0 -17
  568. package/dist/modules/release/src/identity.d.ts.map +0 -1
  569. package/dist/modules/release/src/identity.js +0 -480
  570. package/dist/modules/release/src/identity.js.map +0 -1
  571. package/dist/modules/release/src/inputs.d.ts +0 -98
  572. package/dist/modules/release/src/inputs.d.ts.map +0 -1
  573. package/dist/modules/release/src/inputs.js +0 -338
  574. package/dist/modules/release/src/inputs.js.map +0 -1
  575. package/dist/modules/release/src/publication-inputs.d.ts +0 -6
  576. package/dist/modules/release/src/publication-inputs.d.ts.map +0 -1
  577. package/dist/modules/release/src/publication-inputs.js +0 -81
  578. package/dist/modules/release/src/publication-inputs.js.map +0 -1
  579. package/dist/modules/release/src/transition.d.ts +0 -41
  580. package/dist/modules/release/src/transition.d.ts.map +0 -1
  581. package/dist/modules/release/src/transition.js +0 -240
  582. package/dist/modules/release/src/transition.js.map +0 -1
  583. package/dist/modules/release/src/verification-changes.d.ts +0 -11
  584. package/dist/modules/release/src/verification-changes.d.ts.map +0 -1
  585. package/dist/modules/release/src/verification-changes.js +0 -29
  586. package/dist/modules/release/src/verification-changes.js.map +0 -1
  587. package/dist/modules/release/src/verification-policies.d.ts +0 -123
  588. package/dist/modules/release/src/verification-policies.d.ts.map +0 -1
  589. package/dist/modules/release/src/verification-policies.js +0 -39
  590. package/dist/modules/release/src/verification-policies.js.map +0 -1
  591. package/dist/modules/release/src/verification-transitions.d.ts +0 -27
  592. package/dist/modules/release/src/verification-transitions.d.ts.map +0 -1
  593. package/dist/modules/release/src/verification-transitions.js +0 -81
  594. package/dist/modules/release/src/verification-transitions.js.map +0 -1
  595. package/dist/modules/sourcey-publication/src/publication-parent-guard.d.ts +0 -17
  596. package/dist/modules/sourcey-publication/src/publication-parent-guard.d.ts.map +0 -1
  597. package/dist/modules/sourcey-publication/src/publication-parent-guard.js +0 -18
  598. package/dist/modules/sourcey-publication/src/publication-parent-guard.js.map +0 -1
  599. package/dist/modules/sourcey-publication/src/publication-parent-relations.d.ts +0 -24
  600. package/dist/modules/sourcey-publication/src/publication-parent-relations.d.ts.map +0 -1
  601. package/dist/modules/sourcey-publication/src/publication-parent-relations.js +0 -104
  602. package/dist/modules/sourcey-publication/src/publication-parent-relations.js.map +0 -1
  603. package/dist/modules/sourcey-publication/src/submission-verification.d.ts +0 -25
  604. package/dist/modules/sourcey-publication/src/submission-verification.d.ts.map +0 -1
  605. package/dist/modules/sourcey-publication/src/submission-verification.js +0 -45
  606. package/dist/modules/sourcey-publication/src/submission-verification.js.map +0 -1
  607. package/dist/modules/sourcey-publication/src/verifier.d.ts +0 -54
  608. package/dist/modules/sourcey-publication/src/verifier.d.ts.map +0 -1
  609. package/dist/modules/sourcey-publication/src/verifier.js +0 -555
  610. package/dist/modules/sourcey-publication/src/verifier.js.map +0 -1
  611. package/dist/packages/catalog-verifier/src/index.d.ts +0 -10
  612. package/dist/packages/catalog-verifier/src/index.d.ts.map +0 -1
  613. package/dist/packages/catalog-verifier/src/index.js +0 -10
  614. package/dist/packages/catalog-verifier/src/index.js.map +0 -1
@@ -1,69 +0,0 @@
1
- import { parse as parseYaml } from "yaml";
2
- /** Reading the documents a service publishes: their shape only, never their prose. */
3
- /** A JSON object, or null for anything else. */
4
- export function record(value) {
5
- return value !== null && typeof value === "object" && !Array.isArray(value)
6
- ? value
7
- : null;
8
- }
9
- /** An HTTPS URL carrying no credentials, normalised, or null. */
10
- export function httpsUrl(value) {
11
- if (typeof value !== "string")
12
- return null;
13
- try {
14
- const url = new URL(value);
15
- return url.protocol === "https:" && !url.username && !url.password ? url.href : null;
16
- }
17
- catch {
18
- return null;
19
- }
20
- }
21
- /** Strict UTF-8, or null for bytes that are not. */
22
- export function utf8(bytes) {
23
- try {
24
- return new TextDecoder("utf-8", { fatal: true }).decode(bytes);
25
- }
26
- catch {
27
- return null;
28
- }
29
- }
30
- /** Parsed JSON, or undefined for text that is not. */
31
- export function json(text) {
32
- try {
33
- return JSON.parse(text);
34
- }
35
- catch {
36
- return undefined;
37
- }
38
- }
39
- /**
40
- * The OpenAPI 3.x version a document states, when it is one: its `openapi`
41
- * version and the `info` object (a title and a version) OpenAPI requires.
42
- */
43
- export function openApiVersion(document) {
44
- const version = document?.openapi;
45
- const info = record(document?.info);
46
- return typeof version === "string" &&
47
- /^3\.\d+\.\d+$/u.test(version) &&
48
- typeof info?.title === "string" &&
49
- typeof info.version === "string"
50
- ? version
51
- : null;
52
- }
53
- /**
54
- * A JSON or YAML document parsed, or undefined for text that is neither:
55
- * vendors publish OpenAPI documents in both. Aliases are bounded, so a small
56
- * document cannot expand into a large one.
57
- */
58
- export function jsonOrYaml(text) {
59
- const parsed = json(text);
60
- if (parsed !== undefined)
61
- return parsed;
62
- try {
63
- return parseYaml(text, { maxAliasCount: 100 });
64
- }
65
- catch {
66
- return undefined;
67
- }
68
- }
69
- //# sourceMappingURL=documents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../../modules/agent-readiness-engine/src/documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C,sFAAsF;AAEtF,gDAAgD;AAChD,MAAM,UAAU,MAAM,CAAC,KAAc;IACnC,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC3C,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3B,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACvF,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,oDAAoD;AACpD,MAAM,UAAU,IAAI,CAAC,KAAiB;IACpC,IAAI,CAAC;QACH,OAAO,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,IAAI,CAAC,IAAY;IAC/B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,QAAwC;IACrE,MAAM,OAAO,GAAG,QAAQ,EAAE,OAAO,CAAC;IAClC,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACpC,OAAO,OAAO,OAAO,KAAK,QAAQ;QAChC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC;QAC9B,OAAO,IAAI,EAAE,KAAK,KAAK,QAAQ;QAC/B,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;QAChC,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,IAAI,CAAC;QACH,OAAO,SAAS,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,CAAY,CAAC;IAC5D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * When a discovery fact names a job's endpoint (north star §5.2, Discover).
3
- * The engine rates Discover by this rule, and a card marks the surface the
4
- * job's request reached by the same one.
5
- */
6
- /**
7
- * Facts that name an interface an agent can call; others (metadata,
8
- * registration) do not. An API catalog names an API through the OpenAPI it
9
- * links to, whose servers are `openapi_server` facts; its anchor alone does
10
- * not. An ARD entry names its artifact, not the service (ARD §5.3.2): the
11
- * card or OpenAPI document it carries or links to names the endpoint.
12
- */
13
- export declare const AGENT_READINESS_NAMING_FACTS: ReadonlySet<string>;
14
- /** A URL names an endpoint when it gives its exact URI or a base the URI sits under. */
15
- export declare function agentReadinessNamesEndpoint(value: string, uri: string): boolean;
16
- /** A discovery fact that names the endpoint: one of the naming facts, naming it. */
17
- export declare function agentReadinessFactNamesEndpoint(fact: {
18
- readonly fact: string;
19
- readonly value: string;
20
- }, uri: string): boolean;
21
- //# sourceMappingURL=naming.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../../modules/agent-readiness-engine/src/naming.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,EAAE,WAAW,CAAC,MAAM,CAK3D,CAAC;AAEH,wFAAwF;AACxF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAI/E;AAED,oFAAoF;AACpF,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACvD,GAAG,EAAE,MAAM,GACV,OAAO,CAIT"}
@@ -1,29 +0,0 @@
1
- /**
2
- * When a discovery fact names a job's endpoint (north star §5.2, Discover).
3
- * The engine rates Discover by this rule, and a card marks the surface the
4
- * job's request reached by the same one.
5
- */
6
- /**
7
- * Facts that name an interface an agent can call; others (metadata,
8
- * registration) do not. An API catalog names an API through the OpenAPI it
9
- * links to, whose servers are `openapi_server` facts; its anchor alone does
10
- * not. An ARD entry names its artifact, not the service (ARD §5.3.2): the
11
- * card or OpenAPI document it carries or links to names the endpoint.
12
- */
13
- export const AGENT_READINESS_NAMING_FACTS = new Set([
14
- "mcp_endpoint",
15
- "openapi_server",
16
- "oauth_protected_resource",
17
- "documentation_route",
18
- ]);
19
- /** A URL names an endpoint when it gives its exact URI or a base the URI sits under. */
20
- export function agentReadinessNamesEndpoint(value, uri) {
21
- const base = value.replace(/[?#].*$/u, "").replace(/\/+$/u, "");
22
- const endpoint = uri.replace(/[?#].*$/u, "").replace(/\/+$/u, "");
23
- return endpoint === base || endpoint.startsWith(`${base}/`);
24
- }
25
- /** A discovery fact that names the endpoint: one of the naming facts, naming it. */
26
- export function agentReadinessFactNamesEndpoint(fact, uri) {
27
- return (AGENT_READINESS_NAMING_FACTS.has(fact.fact) && agentReadinessNamesEndpoint(fact.value, uri));
28
- }
29
- //# sourceMappingURL=naming.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"naming.js","sourceRoot":"","sources":["../../../../modules/agent-readiness-engine/src/naming.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAwB,IAAI,GAAG,CAAC;IACvE,cAAc;IACd,gBAAgB;IAChB,0BAA0B;IAC1B,qBAAqB;CACtB,CAAC,CAAC;AAEH,wFAAwF;AACxF,MAAM,UAAU,2BAA2B,CAAC,KAAa,EAAE,GAAW;IACpE,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAClE,OAAO,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAC9D,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,+BAA+B,CAC7C,IAAuD,EACvD,GAAW;IAEX,OAAO,CACL,4BAA4B,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,2BAA2B,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAC5F,CAAC;AACJ,CAAC"}
@@ -1,74 +0,0 @@
1
- import type { AgentReadinessPolicy } from "../../../contracts/agent-readiness/src/grade-policy.js";
2
- import { type AgentReadinessAccountOperation, type AgentReadinessJob, type AgentReadinessJobOperation, type AgentReadinessJobResult, type AgentReadinessRunRecord, type AgentReadinessStep, type AgentReadinessStepResult } from "../../../contracts/agent-readiness/src/index.js";
3
- /** One interface's path, and whether a later run is due soon to settle or reproduce it. */
4
- export interface EvaluatedPath {
5
- readonly steps: readonly AgentReadinessStepResult[];
6
- /** The job itself, beside the steps (north star §5.6, the job). */
7
- readonly job: AgentReadinessJobResult;
8
- /** A later run can settle what this path leaves open: a page answer not yet reproduced. */
9
- readonly reproducible: boolean;
10
- /** The probe run whose discovery decided Discover; null when none did. */
11
- readonly discoveryRun: AgentReadinessRunRecord | null;
12
- /** The binding's run that decided its outcomes, assessed or not; null for a probed path. */
13
- readonly verifiedRun: AgentReadinessRunRecord | null;
14
- /** The probe runs that reproduce a read's standing answer: unanswered on each, since it last answered. */
15
- readonly standingRuns: readonly AgentReadinessRunRecord[];
16
- }
17
- /**
18
- * The probed path of one interface (north star §5.6). The latest probe run that
19
- * answered the operation decides its steps; a run that left its request, its
20
- * malformed request, its spec, its authority chain or a declared page
21
- * unanswered decides nothing, since residue is never a fact. Discovery's
22
- * latest run decides Discover and the payment manifests, unless an unanswered
23
- * read could change them: then the latest run whose reads were all answered,
24
- * or left unanswered only the service's standing answers, does. Earlier runs
25
- * count only to reproduce a page answer or a standing answer.
26
- */
27
- export declare function evaluateProbePath(input: {
28
- readonly operation: AgentReadinessJobOperation;
29
- /** The operation's declared endpoint URI; null for a spec operation. */
30
- readonly endpoint: string | null;
31
- readonly policy: Pick<AgentReadinessPolicy, "reproduction">;
32
- /** The vendor's sales or approval pages that gate this interface, by page id. */
33
- readonly accessGates: readonly string[];
34
- /** The settings a person turns on once before an agent can use this interface, by page id. */
35
- readonly accessSettings: readonly string[];
36
- /** The pages where a person claims later what the agent made alone through it, by page id. */
37
- readonly claimPages: readonly string[];
38
- /** The pages where a person replaces its key, which the vendor expires with no API to renew it. */
39
- readonly keyRenewalPages: readonly string[];
40
- /** The listing rules out a checkout: the job is free, or paid per call by its request's offer. */
41
- readonly checkoutRuledOut: boolean;
42
- /** The account operations this interface declares: its sign-up API, its top-up. */
43
- readonly accountOperations: readonly Pick<AgentReadinessAccountOperation, "operation_id" | "role">[];
44
- /** Probe runs of the profile's current declaration revision, any order. */
45
- readonly runs: readonly AgentReadinessRunRecord[];
46
- }): EvaluatedPath;
47
- /**
48
- * The verified path of one binding: proof, not the grade (north star §5.6). The
49
- * latest run that did the job, while it is fresh, makes the job `verified`; a
50
- * verified run sets no step and never makes the job `unavailable`, which only
51
- * the probes find. The path rests on that run, or on the latest run when none
52
- * did the job.
53
- */
54
- export declare function evaluatePath(input: {
55
- readonly job: AgentReadinessJob;
56
- readonly policy: Pick<AgentReadinessPolicy, "fresh_for_days">;
57
- /** This binding's verified runs, any order. */
58
- readonly runs: readonly AgentReadinessRunRecord[];
59
- /** When freshness is judged: the refresh's own probe run. */
60
- readonly asOf: string;
61
- }): EvaluatedPath;
62
- /**
63
- * A binding's path: every step the probes', and the job verified where its run
64
- * proved a job the probes found reachable (north star §5.6). A verified job
65
- * grades as a reachable one does, so the run never changes the letter: it
66
- * cannot lift a probed `unavailable` or settle a job the probes left open.
67
- */
68
- export declare function combinePaths(probed: EvaluatedPath, verified: EvaluatedPath): EvaluatedPath;
69
- export declare function notAssessed(step: AgentReadinessStep): AgentReadinessStepResult;
70
- /** The job not yet settled by any run. */
71
- export declare const NOT_ASSESSED_JOB: AgentReadinessJobResult;
72
- /** The job unavailable on the run's declaration revision alone: it names no interface for the job. */
73
- export declare function declaredUnavailable(run: AgentReadinessRunRecord): AgentReadinessJobResult;
74
- //# sourceMappingURL=path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../modules/agent-readiness-engine/src/path.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAE9B,MAAM,iDAAiD,CAAC;AAezD,2FAA2F;AAC3F,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACpD,mEAAmE;IACnE,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACtC,2FAA2F;IAC3F,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACtD,4FAA4F;IAC5F,QAAQ,CAAC,WAAW,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACrD,0GAA0G;IAC1G,QAAQ,CAAC,YAAY,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC3D;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;IAC/C,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;IAC5D,iFAAiF;IACjF,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,8FAA8F;IAC9F,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,8FAA8F;IAC9F,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,mGAAmG;IACnG,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,kGAAkG;IAClG,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,mFAAmF;IACnF,QAAQ,CAAC,iBAAiB,EAAE,SAAS,IAAI,CACvC,8BAA8B,EAC9B,cAAc,GAAG,MAAM,CACxB,EAAE,CAAC;IACJ,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACnD,GAAG,aAAa,CAgVhB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,QAAQ,CAAC,GAAG,EAAE,iBAAiB,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;IAC9D,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAClD,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,GAAG,aAAa,CA0BhB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,GAAG,aAAa,CAY1F;AA6HD,wBAAgB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,wBAAwB,CAE9E;AAED,0CAA0C;AAC1C,eAAO,MAAM,gBAAgB,EAAE,uBAAmE,CAAC;AASnG,sGAAsG;AACtG,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,uBAAuB,GAAG,uBAAuB,CAEzF"}
@@ -1,437 +0,0 @@
1
- import { compareInstants } from "provenry/primitives";
2
- import { AGENT_READINESS_STEPS, } from "../../../contracts/agent-readiness/src/index.js";
3
- import { consentReached } from "./authority.js";
4
- import { agentReadinessFactNamesEndpoint, agentReadinessNamesEndpoint } from "./naming.js";
5
- import { probeUnanswered } from "./records.js";
6
- const MAXIMUM_EVIDENCE = 32;
7
- const DAY_MS = 24 * 60 * 60 * 1_000;
8
- /**
9
- * The probed path of one interface (north star §5.6). The latest probe run that
10
- * answered the operation decides its steps; a run that left its request, its
11
- * malformed request, its spec, its authority chain or a declared page
12
- * unanswered decides nothing, since residue is never a fact. Discovery's
13
- * latest run decides Discover and the payment manifests, unless an unanswered
14
- * read could change them: then the latest run whose reads were all answered,
15
- * or left unanswered only the service's standing answers, does. Earlier runs
16
- * count only to reproduce a page answer or a standing answer.
17
- */
18
- export function evaluateProbePath(input) {
19
- const runs = oldestFirst(input.runs);
20
- const latest = runs.at(-1);
21
- if (!latest)
22
- throw new Error("A probed path needs at least one probe run.");
23
- const { operation } = input;
24
- const id = operation.operation_id;
25
- const accountIds = input.accountOperations.map(({ operation_id }) => operation_id);
26
- const answeredRuns = runs.filter((run) => !probeUnanswered(run, id, accountIds));
27
- const current = answeredRuns.at(-1);
28
- const probe = current?.probes.find(({ operation_id }) => operation_id === id);
29
- if (!current || !probe) {
30
- return {
31
- steps: AGENT_READINESS_STEPS.map(notAssessed),
32
- job: NOT_ASSESSED_JOB,
33
- reproducible: false,
34
- discoveryRun: null,
35
- verifiedRun: null,
36
- standingRuns: [],
37
- };
38
- }
39
- const answer = probe.request?.answer ?? null;
40
- const of = (purpose) => exchangeEvidence(current, (entry) => entry.call_id === id && entry.purpose === purpose);
41
- const requested = of("probe_operation");
42
- const malformed = of("probe_malformed");
43
- const metadata = of("probe_authorization_server");
44
- const chainEvidence = [
45
- ...of("probe_resource_metadata"),
46
- ...metadata,
47
- ...of("probe_client_registration"),
48
- ...of("probe_authorization"),
49
- ];
50
- const pagesOf = (include) => {
51
- const ids = new Set(current.pages.filter(include).map(({ page_id }) => page_id));
52
- return exchangeEvidence(current, (entry) => entry.purpose === "probe_page" && ids.has(entry.call_id));
53
- };
54
- const spec = probe.spec;
55
- const specRead = spec?.fetched === "read" ? spec : null;
56
- const covered = specRead?.covers === true ? specRead : null;
57
- // A spec reading rests on the spec and on each document its references reached.
58
- const readFrom = (reading) => [
59
- reading.attempt_digest,
60
- ...(reading.references ?? []).map(({ attempt_digest }) => attempt_digest),
61
- ].map((attempt_digest) => ({
62
- kind: "discovery",
63
- run_digest: current.run_digest,
64
- attempt_digest,
65
- }));
66
- const specEvidence = spec ? readFrom(spec) : [];
67
- // The interface's account operations, by role, as read; and those its spec covers.
68
- const declaredAccounts = (role) => (current.accounts ?? []).filter(({ operation_id }) => input.accountOperations.some((declared) => declared.operation_id === operation_id && declared.role === role));
69
- const accounts = (role) => declaredAccounts(role).filter(({ spec: read }) => read.fetched === "read" && read.covers);
70
- // A step an account operation could have set cites its reading, whichever way it read.
71
- const accountEvidence = (role) => declaredAccounts(role).flatMap(({ spec: read }) => readFrom(read));
72
- const declaration = () => [{ kind: "declaration", run_digest: current.run_digest }];
73
- const chain = probe.authority;
74
- const refusal = answer === "offer" || answer === "authority" || answer === "error";
75
- // No account is needed: the request itself answered, or the spec requires no security at
76
- // all. An empty requirement beside a credential's makes security optional: some deployments
77
- // let anonymous calls through (Jira, where an admin grants the public a permission), which
78
- // only an answer shows. A key the listing says travels in the body (Amplitude's), which
79
- // OpenAPI cannot state as a scheme, leaves the spec's empty security saying nothing.
80
- const keyInBody = operation.kind === "http" && operation.body?.credential_field !== undefined;
81
- const anonymous = answer === "success" ||
82
- answer === "offer" ||
83
- ((answer === null || answer === "error" || answer === "page") &&
84
- !keyInBody &&
85
- covered !== null &&
86
- covered.security.length > 0 &&
87
- covered.security.every((kind) => kind === "none"));
88
- // An agent registration path: the chain's auth.md registration, or a sign-up API the listing
89
- // declares as a registration account operation, which its spec covers and lets an agent call
90
- // with no credential. A sign-up the spec does not declare anonymous is for people.
91
- const signUps = accounts("registration").filter(({ spec: read }) => read.security.length > 0 && read.security.every((kind) => kind === "none"));
92
- const signedUp = signUps.length > 0;
93
- const registration = chain?.registration === "agent" || signedUp ? "agent" : (chain?.registration ?? null);
94
- const registrationEvidence = [
95
- ...(chain?.registration ? chainEvidence : []),
96
- ...signUps.flatMap(({ spec: read }) => readFrom(read)),
97
- ];
98
- const target = operation.kind === "http" ? operation.url : input.endpoint;
99
- // A read unanswered on every probe since it last answered, the first of them the policy's
100
- // interval before the latest, is the service's standing answer. A run that answered it, or did
101
- // not read it, starts the count again.
102
- const stretches = latest.discovery.unanswered.map((url) => {
103
- const since = runs.findLastIndex(({ discovery }) => !discovery.unanswered.includes(url));
104
- return { url, runs: reproducing(runs.slice(since + 1), input.policy.reproduction) };
105
- });
106
- const standing = new Set(stretches.flatMap(({ url, runs: found }) => (found.length > 0 ? [url] : [])));
107
- const settled = (run) => run.discovery.unanswered.every((url) => standing.has(url));
108
- const settledDiscovery = [...runs].reverse().find(settled);
109
- /** The discovery run that decides: the latest, unless a read there still unanswered could change the reading. */
110
- const discoveryFor = (decided) => decided(latest) || settled(latest) ? latest : (settledDiscovery ?? null);
111
- // A server that answers for authority before listing its tools describes them to the agent it
112
- // authorizes: it asked before any tool was called. A list it refused or cut short describes none.
113
- const toolCalled = current.exchanges.some((entry) => entry.call_id === id && entry.purpose === "probe_operation" && entry.role === "request");
114
- const toolDescribed = operation.kind === "mcp" &&
115
- (probe.tool_listed === true ||
116
- (probe.tool_listed === null && answer === "authority" && !toolCalled));
117
- const finds = (run) => discoverStep(run, current, operation, target, covered, specEvidence, toolDescribed);
118
- const discoveryRun = discoveryFor((candidate) => finds(candidate).outcome === "machine");
119
- const discover = discoveryRun ? finds(discoveryRun) : notAssessed("discover");
120
- const authority = (() => {
121
- if (anonymous) {
122
- return result("authority", "not_applicable", null, answer === null ? specEvidence : requested);
123
- }
124
- if (registration !== null) {
125
- return result("authority", "machine", null, [...requested, ...registrationEvidence]);
126
- }
127
- const authorization = current.exchanges.find((entry) => entry.call_id === id && entry.purpose === "probe_authorization");
128
- if (chain?.client && authorization && consentReached(authorization.record)) {
129
- return result("authority", "approval", "setup", [...requested, ...chainEvidence]);
130
- }
131
- // A key or token scheme, an OAuth flow the agent's own client cannot start, a key the
132
- // listing says travels in the body, or nothing machine-readable: a person hands over a credential.
133
- return result("authority", "workaround", "setup", [
134
- ...requested,
135
- ...chainEvidence,
136
- ...specEvidence,
137
- ...accountEvidence("registration"),
138
- ...(keyInBody ? declaration() : []),
139
- ]);
140
- })();
141
- // What the agent makes alone lasts until a person claims it later (the shape's A): the vendor's
142
- // claim page this interface lists, once it is there.
143
- const claimed = pagesOf(({ page_id, found }) => input.claimPages.includes(page_id) && found);
144
- const onboard = (() => {
145
- if (anonymous) {
146
- return claimed.length > 0
147
- ? result("onboard", "approval", "setup", [...authority.evidence, ...claimed])
148
- : result("onboard", "not_applicable", null, authority.evidence);
149
- }
150
- // The vendor's decision stands before any way in: whatever registration exists, it decides.
151
- const accessPage = pagesOf(({ page_id, found }) => input.accessGates.includes(page_id) && found);
152
- if (accessPage.length > 0)
153
- return result("onboard", "gated", null, accessPage);
154
- // A setting a person on the account turns on once before the agent can use this interface (an
155
- // organization's MCP write access): a decision made once, whatever way in the agent has.
156
- const turnedOn = pagesOf(({ page_id, found }) => input.accessSettings.includes(page_id) && found);
157
- const agentGetsIn = (evidence) => turnedOn.length > 0 || claimed.length > 0
158
- ? result("onboard", "approval", "setup", [...evidence, ...turnedOn, ...claimed])
159
- : result("onboard", "machine", null, evidence);
160
- if (registration === "agent")
161
- return agentGetsIn(registrationEvidence);
162
- if (registration === "claimable") {
163
- return result("onboard", "approval", "setup", [
164
- ...registrationEvidence,
165
- ...turnedOn,
166
- ...claimed,
167
- ]);
168
- }
169
- // The agent's own OAuth client gets it in once the server takes it to consent (the shape's A).
170
- if (chain?.client && authority.outcome === "approval")
171
- return agentGetsIn(chainEvidence);
172
- // No path for the agent: what the probes found, or the listing itself when they sent nothing.
173
- const evidence = [
174
- ...requested,
175
- ...pagesOf(({ role }) => role === "registration"),
176
- ...chainEvidence,
177
- ...specEvidence,
178
- ...accountEvidence("registration"),
179
- ];
180
- return result("onboard", "workaround", "setup", evidence.length > 0 ? evidence : declaration());
181
- })();
182
- const pay = (() => {
183
- if (answer === "offer")
184
- return result("pay", "machine", null, requested);
185
- if (covered?.payment)
186
- return result("pay", "machine", null, specEvidence);
187
- // The agent funds the balance the job draws on itself: a top-up its spec says is paid by 402.
188
- const funded = accounts("top_up").filter(({ spec: read }) => read.payment);
189
- if (funded.length > 0) {
190
- return result("pay", "machine", null, funded.flatMap(({ spec: read }) => readFrom(read)));
191
- }
192
- const manifests = (run) => target === null
193
- ? []
194
- : run.discovery.facts.filter((found) => found.fact === "payment_manifest" &&
195
- ownDomain(found.descriptor_url, run.discovery.domains) &&
196
- agentReadinessNamesEndpoint(found.value, target));
197
- const run = discoveryFor((candidate) => manifests(candidate).length > 0);
198
- const named = run ? manifests(run) : [];
199
- if (named.length > 0 && run) {
200
- return result("pay", "machine", null, named.map(({ attempt_digest }) => ({
201
- kind: "discovery",
202
- run_digest: run.run_digest,
203
- attempt_digest,
204
- })));
205
- }
206
- if (anonymous) {
207
- return result("pay", "not_applicable", null, answer === null ? specEvidence : requested);
208
- }
209
- if (input.checkoutRuledOut)
210
- return result("pay", "not_applicable", null, declaration());
211
- // An unanswered read could have held a manifest that names the endpoint.
212
- if (!run)
213
- return notAssessed("pay");
214
- // A dead or invented page sets nothing: a page counts once it is found. A balance a person tops
215
- // up by hand recurs (the shape's "manual top-ups"); a checkout puts a card on file once.
216
- const toppedUp = pagesOf(({ role, found }) => role === "top_up" && found);
217
- if (toppedUp.length > 0) {
218
- return result("pay", "workaround", "recurring", [...toppedUp, ...accountEvidence("top_up")]);
219
- }
220
- const checkout = pagesOf(({ role, found }) => role === "checkout" && found);
221
- return checkout.length > 0
222
- ? result("pay", "workaround", "setup", [...checkout, ...accountEvidence("top_up")])
223
- : notAssessed("pay");
224
- })();
225
- const pages = answeredRuns.filter((run) => run.probes.find(({ operation_id }) => operation_id === id)?.request?.answer === "page");
226
- const pageRuns = answer === "page" ? reproducing(pages, input.policy.reproduction) : [];
227
- const pageReproduced = pageRuns.length > 0;
228
- const job = (() => {
229
- // The job's tool answered, or asked for the authority it needs: whatever an anonymous list
230
- // says, the server performs it for an agent with that authority.
231
- if (answer === "success" || answer === "offer" || answer === "authority") {
232
- return jobResult("reachable", requested);
233
- }
234
- // The server lists its tools, the job's is not among them, and its call is refused with an error.
235
- if (operation.kind === "mcp" && probe.tool_listed === false && answer === "error") {
236
- return jobResult("unavailable", requested);
237
- }
238
- if (refusal)
239
- return jobResult("reachable", requested);
240
- if (covered)
241
- return jobResult("reachable", specEvidence);
242
- if (answer === null)
243
- return jobResult("unavailable", specEvidence);
244
- if (pageReproduced) {
245
- return jobResult("unavailable", pageRuns.flatMap((run) => exchangeEvidence(run, (entry) => entry.call_id === id && entry.purpose === "probe_operation")));
246
- }
247
- return NOT_ASSESSED_JOB;
248
- })();
249
- const confirm = (() => {
250
- const read = refusal ? probe.request : answer === "success" ? probe.malformed : null;
251
- if (read) {
252
- const typedRefusal = (read.answer === "offer" || read.answer === "authority" || read.answer === "error") &&
253
- read.typed === true;
254
- const evidence = refusal ? requested : [...requested, ...malformed];
255
- return typedRefusal
256
- ? result("confirm", "machine", null, evidence)
257
- : result("confirm", "workaround", "recurring", evidence);
258
- }
259
- // A page or a spec operation: the errors the spec declares for the job.
260
- return covered?.typed_errors
261
- ? result("confirm", "machine", null, specEvidence)
262
- : result("confirm", "workaround", "recurring", [...requested, ...specEvidence]);
263
- })();
264
- const sustain = (() => {
265
- if (authority.outcome === "not_applicable") {
266
- return result("sustain", "not_applicable", null, authority.evidence);
267
- }
268
- // Either alternative keeps the agent's authority alive: its key operations, or the chain's
269
- // grants, whoever obtained the first token.
270
- if (covered?.key_operations)
271
- return result("sustain", "machine", null, specEvidence);
272
- if (chain !== null) {
273
- if (!chain.renewal)
274
- return result("sustain", "workaround", "recurring", metadata);
275
- return chain.revocation
276
- ? result("sustain", "machine", null, metadata)
277
- : result("sustain", "workaround", "setup", metadata);
278
- }
279
- // A key the vendor expires with no API to renew it: a person replaces it each time (the shape's
280
- // "keys that expire with no renewal API"), at the page this interface lists, once it is there.
281
- const expiring = pagesOf(({ page_id, found }) => input.keyRenewalPages.includes(page_id) && found);
282
- const evidence = [...authority.evidence, ...specEvidence];
283
- return expiring.length > 0
284
- ? result("sustain", "workaround", "recurring", [...evidence, ...expiring])
285
- : result("sustain", "workaround", "setup", evidence);
286
- })();
287
- return {
288
- steps: [discover, authority, onboard, pay, confirm, sustain],
289
- job,
290
- reproducible: answer === "page" && !pageReproduced && covered === null,
291
- discoveryRun,
292
- verifiedRun: null,
293
- standingRuns: stretches.flatMap(({ runs: found }) => found),
294
- };
295
- }
296
- /**
297
- * The verified path of one binding: proof, not the grade (north star §5.6). The
298
- * latest run that did the job, while it is fresh, makes the job `verified`; a
299
- * verified run sets no step and never makes the job `unavailable`, which only
300
- * the probes find. The path rests on that run, or on the latest run when none
301
- * did the job.
302
- */
303
- export function evaluatePath(input) {
304
- const runs = oldestFirst(input.runs);
305
- const latestRun = runs.at(-1);
306
- if (!latestRun)
307
- throw new Error("A verified path needs at least one run.");
308
- const { job } = input;
309
- const succeeded = (run) => run.assertions.length === job.assertions.length &&
310
- job.assertions.every(({ name }) => run.assertions.some(({ assertion, holds }) => assertion === name && holds));
311
- const fresh = (run) => Date.parse(input.asOf) - Date.parse(run.finished_at) <= input.policy.fresh_for_days * DAY_MS;
312
- const proof = [...runs].reverse().find((run) => succeeded(run) && fresh(run));
313
- return {
314
- steps: AGENT_READINESS_STEPS.map(notAssessed),
315
- job: proof
316
- ? jobResult("verified", exchangeEvidence(proof, (entry) => entry.purpose === "job"))
317
- : NOT_ASSESSED_JOB,
318
- reproducible: false,
319
- discoveryRun: null,
320
- verifiedRun: proof ?? latestRun,
321
- standingRuns: [],
322
- };
323
- }
324
- /**
325
- * A binding's path: every step the probes', and the job verified where its run
326
- * proved a job the probes found reachable (north star §5.6). A verified job
327
- * grades as a reachable one does, so the run never changes the letter: it
328
- * cannot lift a probed `unavailable` or settle a job the probes left open.
329
- */
330
- export function combinePaths(probed, verified) {
331
- return {
332
- steps: probed.steps,
333
- job: verified.job.outcome === "verified" && probed.job.outcome === "reachable"
334
- ? verified.job
335
- : probed.job,
336
- reproducible: probed.reproducible,
337
- discoveryRun: probed.discoveryRun,
338
- verifiedRun: verified.verifiedRun,
339
- standingRuns: probed.standingRuns,
340
- };
341
- }
342
- /**
343
- * Discover (north star §5.6): `machine` when the agent finds the interface
344
- * from the vendor's own domains and a machine-readable description covers the
345
- * job. Found: a descriptor fetched on an Entity domain names the job's
346
- * endpoint, or a document written for agents names its origin (the route).
347
- * Covered: the named spec covers the job, the MCP server lists the job's tool
348
- * (or lists tools only after authority), or that document for agents. A spec
349
- * operation has no endpoint to name: its spec, covering the job, is the
350
- * machine-readable interface. Otherwise a setup workaround: a person tells the
351
- * agent where the interface is or how to call it.
352
- */
353
- function discoverStep(run, current, operation, target, covered, specEvidence,
354
- /** An MCP server listed the job's tool, or lists tools only to the agent it authorizes. */
355
- toolDescribed) {
356
- const { attempts, facts, domains } = run.discovery;
357
- const discovery = (attempt) => ({
358
- kind: "discovery",
359
- run_digest: run.run_digest,
360
- attempt_digest: attempt,
361
- });
362
- if (operation.kind === "spec") {
363
- return covered
364
- ? result("discover", "machine", null, specEvidence)
365
- : result("discover", "workaround", "setup", specEvidence);
366
- }
367
- const named = target
368
- ? facts.filter((fact) => agentReadinessFactNamesEndpoint(fact, target) && ownDomain(fact.descriptor_url, domains))
369
- : [];
370
- const described = covered !== null || toolDescribed;
371
- const routed = named.some(({ fact }) => fact === "documentation_route");
372
- if (routed || (named.length > 0 && described)) {
373
- return result("discover", "machine", null, [
374
- ...named.map(({ attempt_digest }) => discovery(attempt_digest)),
375
- ...specEvidence,
376
- ]);
377
- }
378
- const evidence = [...attempts.map(discovery), ...specEvidence];
379
- return result("discover", "workaround", "setup", evidence.length > 0 ? evidence : [{ kind: "declaration", run_digest: current.run_digest }]);
380
- }
381
- /** Whether a URL is on one of the Entity's domains, or a subdomain of one. */
382
- function ownDomain(url, domains) {
383
- const host = new URL(url).hostname.toLowerCase();
384
- return domains.some((domain) => host === domain || host.endsWith(`.${domain}`));
385
- }
386
- /**
387
- * The latest of `found` that reproduce a finding, the fewest that do, or none:
388
- * a revision cites only these (north star §5.4).
389
- */
390
- function reproducing(found, rule) {
391
- for (let start = found.length - rule.attempts; start >= 0; start -= 1) {
392
- const stretch = found.slice(start);
393
- if (reproduced(stretch, rule))
394
- return stretch;
395
- }
396
- return [];
397
- }
398
- /**
399
- * A finding reproduced as the policy asks: in the latest run and in earlier
400
- * ones, at least `attempts` runs whose first and last are the interval apart.
401
- */
402
- function reproduced(found, rule) {
403
- const first = found[0];
404
- const last = found.at(-1);
405
- return (first !== undefined &&
406
- last !== undefined &&
407
- found.length >= rule.attempts &&
408
- Date.parse(last.finished_at) - Date.parse(first.finished_at) >=
409
- rule.minimum_interval_seconds * 1_000);
410
- }
411
- function oldestFirst(runs) {
412
- return [...runs].sort((left, right) => compareInstants(left.finished_at, right.finished_at) ||
413
- (left.run_digest < right.run_digest ? -1 : 1));
414
- }
415
- function exchangeEvidence(run, include) {
416
- return run.exchanges.filter(include).map((entry) => ({
417
- kind: "exchange",
418
- run_digest: run.run_digest,
419
- exchange_digest: entry.record.exchange_digest,
420
- }));
421
- }
422
- function result(step, outcome, timing, evidence) {
423
- return { step, outcome, timing, evidence: evidence.slice(0, MAXIMUM_EVIDENCE) };
424
- }
425
- export function notAssessed(step) {
426
- return { step, outcome: "not_assessed", timing: null, evidence: [] };
427
- }
428
- /** The job not yet settled by any run. */
429
- export const NOT_ASSESSED_JOB = { outcome: "not_assessed", evidence: [] };
430
- function jobResult(outcome, evidence) {
431
- return { outcome, evidence: evidence.slice(0, MAXIMUM_EVIDENCE) };
432
- }
433
- /** The job unavailable on the run's declaration revision alone: it names no interface for the job. */
434
- export function declaredUnavailable(run) {
435
- return jobResult("unavailable", [{ kind: "declaration", run_digest: run.run_digest }]);
436
- }
437
- //# sourceMappingURL=path.js.map