@sourcey/catalog-verifier 1.1.36 → 1.2.1

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 (620) 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 +253 -2301
  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/contracts/authoring/src/index.d.ts +3 -0
  20. package/dist/contracts/authoring/src/index.d.ts.map +1 -1
  21. package/dist/contracts/revisions/src/index.d.ts +6 -0
  22. package/dist/contracts/revisions/src/index.d.ts.map +1 -1
  23. package/dist/contracts/revisions/src/index.js +2 -1
  24. package/dist/contracts/revisions/src/index.js.map +1 -1
  25. package/dist/modules/agent-readiness-jobs/src/current.d.ts +48 -0
  26. package/dist/modules/agent-readiness-jobs/src/current.d.ts.map +1 -0
  27. package/dist/modules/agent-readiness-jobs/src/current.js +7 -0
  28. package/dist/modules/agent-readiness-jobs/src/current.js.map +1 -0
  29. package/dist/modules/agent-readiness-jobs/src/index.d.ts +1 -1
  30. package/dist/modules/agent-readiness-jobs/src/index.d.ts.map +1 -1
  31. package/dist/modules/agent-readiness-jobs/src/index.js +1 -1
  32. package/dist/modules/agent-readiness-jobs/src/index.js.map +1 -1
  33. package/dist/modules/agent-readiness-policy/src/declaration-jobs.d.ts +8 -6
  34. package/dist/modules/agent-readiness-policy/src/declaration-jobs.d.ts.map +1 -1
  35. package/dist/modules/agent-readiness-policy/src/declaration-jobs.js +7 -7
  36. package/dist/modules/agent-readiness-policy/src/declaration-jobs.js.map +1 -1
  37. package/dist/modules/agent-readiness-repository/src/change.d.ts +4 -3
  38. package/dist/modules/agent-readiness-repository/src/change.d.ts.map +1 -1
  39. package/dist/modules/agent-readiness-repository/src/change.js +7 -7
  40. package/dist/modules/agent-readiness-repository/src/change.js.map +1 -1
  41. package/dist/modules/agent-readiness-repository/src/index.d.ts +4 -4
  42. package/dist/modules/agent-readiness-repository/src/index.d.ts.map +1 -1
  43. package/dist/modules/agent-readiness-repository/src/index.js +3 -3
  44. package/dist/modules/agent-readiness-repository/src/index.js.map +1 -1
  45. package/dist/modules/authority/src/identity-context.d.ts +6 -0
  46. package/dist/modules/authority/src/identity-context.d.ts.map +1 -0
  47. package/dist/modules/authority/src/identity-context.js +42 -0
  48. package/dist/modules/authority/src/identity-context.js.map +1 -0
  49. package/dist/modules/authority/src/registry.d.ts +29 -0
  50. package/dist/modules/authority/src/registry.d.ts.map +1 -0
  51. package/dist/modules/authority/src/registry.js +112 -0
  52. package/dist/modules/authority/src/registry.js.map +1 -0
  53. package/dist/modules/catalog-admission/src/admission-conflicts.d.ts.map +1 -1
  54. package/dist/modules/catalog-admission/src/admission-conflicts.js +2 -1
  55. package/dist/modules/catalog-admission/src/admission-conflicts.js.map +1 -1
  56. package/dist/modules/catalog-admission/src/pull-request-tree.d.ts +61 -0
  57. package/dist/modules/catalog-admission/src/pull-request-tree.d.ts.map +1 -0
  58. package/dist/modules/catalog-admission/src/pull-request-tree.js +149 -0
  59. package/dist/modules/catalog-admission/src/pull-request-tree.js.map +1 -0
  60. package/dist/packages/catalog-verifier/src/application.d.ts +1 -5
  61. package/dist/packages/catalog-verifier/src/application.d.ts.map +1 -1
  62. package/dist/packages/catalog-verifier/src/application.js +9 -75
  63. package/dist/packages/catalog-verifier/src/application.js.map +1 -1
  64. package/dist/packages/catalog-verifier/src/cli.d.ts +8 -0
  65. package/dist/packages/catalog-verifier/src/cli.d.ts.map +1 -0
  66. package/dist/packages/catalog-verifier/src/cli.js +43 -0
  67. package/dist/packages/catalog-verifier/src/cli.js.map +1 -0
  68. package/dist/packages/catalog-verifier/src/contribution.d.ts +8 -0
  69. package/dist/packages/catalog-verifier/src/contribution.d.ts.map +1 -0
  70. package/dist/packages/catalog-verifier/src/contribution.js +8 -0
  71. package/dist/packages/catalog-verifier/src/contribution.js.map +1 -0
  72. package/dist/packages/catalog-verifier/src/program.d.ts +0 -1
  73. package/dist/packages/catalog-verifier/src/program.d.ts.map +1 -1
  74. package/dist/packages/catalog-verifier/src/program.js +1 -53
  75. package/dist/packages/catalog-verifier/src/program.js.map +1 -1
  76. package/dist/packages/catalog-verifier/src/result.d.ts +12 -0
  77. package/dist/packages/catalog-verifier/src/result.d.ts.map +1 -0
  78. package/dist/packages/catalog-verifier/src/result.js +57 -0
  79. package/dist/packages/catalog-verifier/src/result.js.map +1 -0
  80. package/package.json +4 -5
  81. package/dist/contracts/admission-results/src/index.d.ts +0 -448
  82. package/dist/contracts/admission-results/src/index.d.ts.map +0 -1
  83. package/dist/contracts/admission-results/src/index.js +0 -259
  84. package/dist/contracts/admission-results/src/index.js.map +0 -1
  85. package/dist/contracts/agent-readiness/src/authority.d.ts +0 -51
  86. package/dist/contracts/agent-readiness/src/authority.d.ts.map +0 -1
  87. package/dist/contracts/agent-readiness/src/authority.js +0 -36
  88. package/dist/contracts/agent-readiness/src/authority.js.map +0 -1
  89. package/dist/contracts/agent-readiness/src/checks.d.ts +0 -26
  90. package/dist/contracts/agent-readiness/src/checks.d.ts.map +0 -1
  91. package/dist/contracts/agent-readiness/src/checks.js +0 -56
  92. package/dist/contracts/agent-readiness/src/checks.js.map +0 -1
  93. package/dist/contracts/agent-readiness/src/client.d.ts +0 -30
  94. package/dist/contracts/agent-readiness/src/client.d.ts.map +0 -1
  95. package/dist/contracts/agent-readiness/src/client.js +0 -25
  96. package/dist/contracts/agent-readiness/src/client.js.map +0 -1
  97. package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts +0 -714
  98. package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts.map +0 -1
  99. package/dist/contracts/agent-readiness/src/declaration-acquisition.js +0 -176
  100. package/dist/contracts/agent-readiness/src/declaration-acquisition.js.map +0 -1
  101. package/dist/contracts/agent-readiness/src/grade-policy.d.ts +0 -263
  102. package/dist/contracts/agent-readiness/src/grade-policy.d.ts.map +0 -1
  103. package/dist/contracts/agent-readiness/src/grade-policy.js +0 -125
  104. package/dist/contracts/agent-readiness/src/grade-policy.js.map +0 -1
  105. package/dist/contracts/agent-readiness/src/index.d.ts +0 -19
  106. package/dist/contracts/agent-readiness/src/index.d.ts.map +0 -1
  107. package/dist/contracts/agent-readiness/src/index.js +0 -16
  108. package/dist/contracts/agent-readiness/src/index.js.map +0 -1
  109. package/dist/contracts/agent-readiness/src/offer-relations.d.ts +0 -968
  110. package/dist/contracts/agent-readiness/src/offer-relations.d.ts.map +0 -1
  111. package/dist/contracts/agent-readiness/src/offer-relations.js +0 -197
  112. package/dist/contracts/agent-readiness/src/offer-relations.js.map +0 -1
  113. package/dist/contracts/agent-readiness/src/release-index.d.ts +0 -1846
  114. package/dist/contracts/agent-readiness/src/release-index.d.ts.map +0 -1
  115. package/dist/contracts/agent-readiness/src/release-index.js +0 -143
  116. package/dist/contracts/agent-readiness/src/release-index.js.map +0 -1
  117. package/dist/contracts/agent-readiness/src/revision.d.ts +0 -2816
  118. package/dist/contracts/agent-readiness/src/revision.d.ts.map +0 -1
  119. package/dist/contracts/agent-readiness/src/revision.js +0 -478
  120. package/dist/contracts/agent-readiness/src/revision.js.map +0 -1
  121. package/dist/contracts/agent-readiness/src/run.d.ts +0 -880
  122. package/dist/contracts/agent-readiness/src/run.d.ts.map +0 -1
  123. package/dist/contracts/agent-readiness/src/run.js +0 -629
  124. package/dist/contracts/agent-readiness/src/run.js.map +0 -1
  125. package/dist/contracts/api/src/endpoints.d.ts +0 -44929
  126. package/dist/contracts/api/src/endpoints.d.ts.map +0 -1
  127. package/dist/contracts/api/src/endpoints.js +0 -643
  128. package/dist/contracts/api/src/endpoints.js.map +0 -1
  129. package/dist/contracts/api/src/index.d.ts +0 -10
  130. package/dist/contracts/api/src/index.d.ts.map +0 -1
  131. package/dist/contracts/api/src/index.js +0 -6
  132. package/dist/contracts/api/src/index.js.map +0 -1
  133. package/dist/contracts/api/src/read.d.ts +0 -13871
  134. package/dist/contracts/api/src/read.d.ts.map +0 -1
  135. package/dist/contracts/api/src/read.js +0 -519
  136. package/dist/contracts/api/src/read.js.map +0 -1
  137. package/dist/contracts/api/src/routes.d.ts +0 -1885
  138. package/dist/contracts/api/src/routes.d.ts.map +0 -1
  139. package/dist/contracts/api/src/routes.js +0 -136
  140. package/dist/contracts/api/src/routes.js.map +0 -1
  141. package/dist/contracts/api/src/submissions.d.ts +0 -2071
  142. package/dist/contracts/api/src/submissions.d.ts.map +0 -1
  143. package/dist/contracts/api/src/submissions.js +0 -286
  144. package/dist/contracts/api/src/submissions.js.map +0 -1
  145. package/dist/contracts/api/src/values.d.ts +0 -26
  146. package/dist/contracts/api/src/values.d.ts.map +0 -1
  147. package/dist/contracts/api/src/values.js +0 -30
  148. package/dist/contracts/api/src/values.js.map +0 -1
  149. package/dist/contracts/artifact/src/distribution.d.ts +0 -17
  150. package/dist/contracts/artifact/src/distribution.d.ts.map +0 -1
  151. package/dist/contracts/artifact/src/distribution.js +0 -57
  152. package/dist/contracts/artifact/src/distribution.js.map +0 -1
  153. package/dist/contracts/artifact/src/index.d.ts +0 -2315
  154. package/dist/contracts/artifact/src/index.d.ts.map +0 -1
  155. package/dist/contracts/artifact/src/index.js +0 -354
  156. package/dist/contracts/artifact/src/index.js.map +0 -1
  157. package/dist/contracts/assets/src/index.d.ts +0 -1298
  158. package/dist/contracts/assets/src/index.d.ts.map +0 -1
  159. package/dist/contracts/assets/src/index.js +0 -577
  160. package/dist/contracts/assets/src/index.js.map +0 -1
  161. package/dist/contracts/assurance/src/index.d.ts +0 -148
  162. package/dist/contracts/assurance/src/index.d.ts.map +0 -1
  163. package/dist/contracts/assurance/src/index.js +0 -147
  164. package/dist/contracts/assurance/src/index.js.map +0 -1
  165. package/dist/contracts/billing/src/index.d.ts +0 -462
  166. package/dist/contracts/billing/src/index.d.ts.map +0 -1
  167. package/dist/contracts/billing/src/index.js +0 -242
  168. package/dist/contracts/billing/src/index.js.map +0 -1
  169. package/dist/contracts/capture/src/index.d.ts +0 -17
  170. package/dist/contracts/capture/src/index.d.ts.map +0 -1
  171. package/dist/contracts/capture/src/index.js +0 -15
  172. package/dist/contracts/capture/src/index.js.map +0 -1
  173. package/dist/contracts/capture/src/method-names.d.ts +0 -4
  174. package/dist/contracts/capture/src/method-names.d.ts.map +0 -1
  175. package/dist/contracts/capture/src/method-names.js +0 -4
  176. package/dist/contracts/capture/src/method-names.js.map +0 -1
  177. package/dist/contracts/capture/src/methods.d.ts +0 -7
  178. package/dist/contracts/capture/src/methods.d.ts.map +0 -1
  179. package/dist/contracts/capture/src/methods.js +0 -18
  180. package/dist/contracts/capture/src/methods.js.map +0 -1
  181. package/dist/contracts/company-authoring/src/index.d.ts +0 -72
  182. package/dist/contracts/company-authoring/src/index.d.ts.map +0 -1
  183. package/dist/contracts/company-authoring/src/index.js +0 -41
  184. package/dist/contracts/company-authoring/src/index.js.map +0 -1
  185. package/dist/contracts/company-standing/src/index.d.ts +0 -143
  186. package/dist/contracts/company-standing/src/index.d.ts.map +0 -1
  187. package/dist/contracts/company-standing/src/index.js +0 -146
  188. package/dist/contracts/company-standing/src/index.js.map +0 -1
  189. package/dist/contracts/company-verification/src/commercial.d.ts +0 -571
  190. package/dist/contracts/company-verification/src/commercial.d.ts.map +0 -1
  191. package/dist/contracts/company-verification/src/commercial.js +0 -273
  192. package/dist/contracts/company-verification/src/commercial.js.map +0 -1
  193. package/dist/contracts/company-verification/src/index.d.ts +0 -94
  194. package/dist/contracts/company-verification/src/index.d.ts.map +0 -1
  195. package/dist/contracts/company-verification/src/index.js +0 -138
  196. package/dist/contracts/company-verification/src/index.js.map +0 -1
  197. package/dist/contracts/datasets/src/index.d.ts +0 -868
  198. package/dist/contracts/datasets/src/index.d.ts.map +0 -1
  199. package/dist/contracts/datasets/src/index.js +0 -80
  200. package/dist/contracts/datasets/src/index.js.map +0 -1
  201. package/dist/contracts/events/src/index.d.ts +0 -749
  202. package/dist/contracts/events/src/index.d.ts.map +0 -1
  203. package/dist/contracts/events/src/index.js +0 -640
  204. package/dist/contracts/events/src/index.js.map +0 -1
  205. package/dist/contracts/evidence/src/index.d.ts +0 -302
  206. package/dist/contracts/evidence/src/index.d.ts.map +0 -1
  207. package/dist/contracts/evidence/src/index.js +0 -346
  208. package/dist/contracts/evidence/src/index.js.map +0 -1
  209. package/dist/contracts/feed/src/index.d.ts +0 -156
  210. package/dist/contracts/feed/src/index.d.ts.map +0 -1
  211. package/dist/contracts/feed/src/index.js +0 -79
  212. package/dist/contracts/feed/src/index.js.map +0 -1
  213. package/dist/contracts/funded-work/src/index.d.ts +0 -64
  214. package/dist/contracts/funded-work/src/index.d.ts.map +0 -1
  215. package/dist/contracts/funded-work/src/index.js +0 -68
  216. package/dist/contracts/funded-work/src/index.js.map +0 -1
  217. package/dist/contracts/observations/src/index.d.ts +0 -155
  218. package/dist/contracts/observations/src/index.d.ts.map +0 -1
  219. package/dist/contracts/observations/src/index.js +0 -110
  220. package/dist/contracts/observations/src/index.js.map +0 -1
  221. package/dist/contracts/policies/src/index.d.ts +0 -152
  222. package/dist/contracts/policies/src/index.d.ts.map +0 -1
  223. package/dist/contracts/policies/src/index.js +0 -125
  224. package/dist/contracts/policies/src/index.js.map +0 -1
  225. package/dist/contracts/publication/src/index.d.ts +0 -5590
  226. package/dist/contracts/publication/src/index.d.ts.map +0 -1
  227. package/dist/contracts/publication/src/index.js +0 -486
  228. package/dist/contracts/publication/src/index.js.map +0 -1
  229. package/dist/contracts/release/src/index.d.ts +0 -2559
  230. package/dist/contracts/release/src/index.d.ts.map +0 -1
  231. package/dist/contracts/release/src/index.js +0 -243
  232. package/dist/contracts/release/src/index.js.map +0 -1
  233. package/dist/contracts/routes/src/index.d.ts +0 -165
  234. package/dist/contracts/routes/src/index.d.ts.map +0 -1
  235. package/dist/contracts/routes/src/index.js +0 -290
  236. package/dist/contracts/routes/src/index.js.map +0 -1
  237. package/dist/contracts/sourcey-publication/src/index.d.ts +0 -27
  238. package/dist/contracts/sourcey-publication/src/index.d.ts.map +0 -1
  239. package/dist/contracts/sourcey-publication/src/index.js +0 -43
  240. package/dist/contracts/sourcey-publication/src/index.js.map +0 -1
  241. package/dist/contracts/sourcey-publication/src/instance-id.d.ts +0 -3
  242. package/dist/contracts/sourcey-publication/src/instance-id.d.ts.map +0 -1
  243. package/dist/contracts/sourcey-publication/src/instance-id.js +0 -3
  244. package/dist/contracts/sourcey-publication/src/instance-id.js.map +0 -1
  245. package/dist/contracts/sourcey-publication/src/ownership.d.ts +0 -13
  246. package/dist/contracts/sourcey-publication/src/ownership.d.ts.map +0 -1
  247. package/dist/contracts/sourcey-publication/src/ownership.js +0 -82
  248. package/dist/contracts/sourcey-publication/src/ownership.js.map +0 -1
  249. package/dist/contracts/startup-credits-commercial/src/index.d.ts +0 -8
  250. package/dist/contracts/startup-credits-commercial/src/index.d.ts.map +0 -1
  251. package/dist/contracts/startup-credits-commercial/src/index.js +0 -5
  252. package/dist/contracts/startup-credits-commercial/src/index.js.map +0 -1
  253. package/dist/contracts/startup-credits-commercial/src/product.d.ts +0 -99
  254. package/dist/contracts/startup-credits-commercial/src/product.d.ts.map +0 -1
  255. package/dist/contracts/startup-credits-commercial/src/product.js +0 -98
  256. package/dist/contracts/startup-credits-commercial/src/product.js.map +0 -1
  257. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts +0 -851
  258. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts.map +0 -1
  259. package/dist/contracts/startup-credits-commercial/src/purchase.js +0 -433
  260. package/dist/contracts/startup-credits-commercial/src/purchase.js.map +0 -1
  261. package/dist/contracts/startup-credits-commercial/src/requests.d.ts +0 -1275
  262. package/dist/contracts/startup-credits-commercial/src/requests.d.ts.map +0 -1
  263. package/dist/contracts/startup-credits-commercial/src/requests.js +0 -367
  264. package/dist/contracts/startup-credits-commercial/src/requests.js.map +0 -1
  265. package/dist/contracts/startup-credits-commercial/src/values.d.ts +0 -7
  266. package/dist/contracts/startup-credits-commercial/src/values.d.ts.map +0 -1
  267. package/dist/contracts/startup-credits-commercial/src/values.js +0 -9
  268. package/dist/contracts/startup-credits-commercial/src/values.js.map +0 -1
  269. package/dist/modules/agent-readiness-engine/src/assertions.d.ts +0 -45
  270. package/dist/modules/agent-readiness-engine/src/assertions.d.ts.map +0 -1
  271. package/dist/modules/agent-readiness-engine/src/assertions.js +0 -252
  272. package/dist/modules/agent-readiness-engine/src/assertions.js.map +0 -1
  273. package/dist/modules/agent-readiness-engine/src/authority.d.ts +0 -81
  274. package/dist/modules/agent-readiness-engine/src/authority.d.ts.map +0 -1
  275. package/dist/modules/agent-readiness-engine/src/authority.js +0 -193
  276. package/dist/modules/agent-readiness-engine/src/authority.js.map +0 -1
  277. package/dist/modules/agent-readiness-engine/src/binding.d.ts +0 -13
  278. package/dist/modules/agent-readiness-engine/src/binding.d.ts.map +0 -1
  279. package/dist/modules/agent-readiness-engine/src/binding.js +0 -116
  280. package/dist/modules/agent-readiness-engine/src/binding.js.map +0 -1
  281. package/dist/modules/agent-readiness-engine/src/challenges.d.ts +0 -13
  282. package/dist/modules/agent-readiness-engine/src/challenges.d.ts.map +0 -1
  283. package/dist/modules/agent-readiness-engine/src/challenges.js +0 -67
  284. package/dist/modules/agent-readiness-engine/src/challenges.js.map +0 -1
  285. package/dist/modules/agent-readiness-engine/src/checks.d.ts +0 -88
  286. package/dist/modules/agent-readiness-engine/src/checks.d.ts.map +0 -1
  287. package/dist/modules/agent-readiness-engine/src/checks.js +0 -237
  288. package/dist/modules/agent-readiness-engine/src/checks.js.map +0 -1
  289. package/dist/modules/agent-readiness-engine/src/documents.d.ts +0 -21
  290. package/dist/modules/agent-readiness-engine/src/documents.d.ts.map +0 -1
  291. package/dist/modules/agent-readiness-engine/src/documents.js +0 -69
  292. package/dist/modules/agent-readiness-engine/src/documents.js.map +0 -1
  293. package/dist/modules/agent-readiness-engine/src/naming.d.ts +0 -21
  294. package/dist/modules/agent-readiness-engine/src/naming.d.ts.map +0 -1
  295. package/dist/modules/agent-readiness-engine/src/naming.js +0 -29
  296. package/dist/modules/agent-readiness-engine/src/naming.js.map +0 -1
  297. package/dist/modules/agent-readiness-engine/src/path.d.ts +0 -74
  298. package/dist/modules/agent-readiness-engine/src/path.d.ts.map +0 -1
  299. package/dist/modules/agent-readiness-engine/src/path.js +0 -437
  300. package/dist/modules/agent-readiness-engine/src/path.js.map +0 -1
  301. package/dist/modules/agent-readiness-engine/src/profile.d.ts +0 -87
  302. package/dist/modules/agent-readiness-engine/src/profile.d.ts.map +0 -1
  303. package/dist/modules/agent-readiness-engine/src/profile.js +0 -180
  304. package/dist/modules/agent-readiness-engine/src/profile.js.map +0 -1
  305. package/dist/modules/agent-readiness-engine/src/rate.d.ts +0 -14
  306. package/dist/modules/agent-readiness-engine/src/rate.d.ts.map +0 -1
  307. package/dist/modules/agent-readiness-engine/src/rate.js +0 -46
  308. package/dist/modules/agent-readiness-engine/src/rate.js.map +0 -1
  309. package/dist/modules/agent-readiness-engine/src/records.d.ts +0 -48
  310. package/dist/modules/agent-readiness-engine/src/records.d.ts.map +0 -1
  311. package/dist/modules/agent-readiness-engine/src/records.js +0 -125
  312. package/dist/modules/agent-readiness-engine/src/records.js.map +0 -1
  313. package/dist/modules/agent-readiness-engine/src/run.d.ts +0 -9
  314. package/dist/modules/agent-readiness-engine/src/run.d.ts.map +0 -1
  315. package/dist/modules/agent-readiness-engine/src/run.js +0 -44
  316. package/dist/modules/agent-readiness-engine/src/run.js.map +0 -1
  317. package/dist/modules/agent-readiness-engine/src/templates.d.ts +0 -21
  318. package/dist/modules/agent-readiness-engine/src/templates.d.ts.map +0 -1
  319. package/dist/modules/agent-readiness-engine/src/templates.js +0 -89
  320. package/dist/modules/agent-readiness-engine/src/templates.js.map +0 -1
  321. package/dist/modules/agent-readiness-policy/src/current-policy.d.ts +0 -74
  322. package/dist/modules/agent-readiness-policy/src/current-policy.d.ts.map +0 -1
  323. package/dist/modules/agent-readiness-policy/src/current-policy.js +0 -11
  324. package/dist/modules/agent-readiness-policy/src/current-policy.js.map +0 -1
  325. package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts +0 -16
  326. package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts.map +0 -1
  327. package/dist/modules/agent-readiness-policy/src/grade-policy.js +0 -115
  328. package/dist/modules/agent-readiness-policy/src/grade-policy.js.map +0 -1
  329. package/dist/modules/agent-readiness-policy/src/impact.d.ts +0 -24
  330. package/dist/modules/agent-readiness-policy/src/impact.d.ts.map +0 -1
  331. package/dist/modules/agent-readiness-policy/src/impact.js +0 -59
  332. package/dist/modules/agent-readiness-policy/src/impact.js.map +0 -1
  333. package/dist/modules/agent-readiness-policy/src/index.d.ts +0 -47
  334. package/dist/modules/agent-readiness-policy/src/index.d.ts.map +0 -1
  335. package/dist/modules/agent-readiness-policy/src/index.js +0 -214
  336. package/dist/modules/agent-readiness-policy/src/index.js.map +0 -1
  337. package/dist/modules/agent-readiness-policy/src/offer-relations.d.ts +0 -16
  338. package/dist/modules/agent-readiness-policy/src/offer-relations.d.ts.map +0 -1
  339. package/dist/modules/agent-readiness-policy/src/offer-relations.js +0 -96
  340. package/dist/modules/agent-readiness-policy/src/offer-relations.js.map +0 -1
  341. package/dist/modules/agent-readiness-policy/src/prior-projection.d.ts +0 -3
  342. package/dist/modules/agent-readiness-policy/src/prior-projection.d.ts.map +0 -1
  343. package/dist/modules/agent-readiness-policy/src/prior-projection.js +0 -11
  344. package/dist/modules/agent-readiness-policy/src/prior-projection.js.map +0 -1
  345. package/dist/modules/agent-readiness-policy/src/revision.d.ts +0 -15
  346. package/dist/modules/agent-readiness-policy/src/revision.d.ts.map +0 -1
  347. package/dist/modules/agent-readiness-policy/src/revision.js +0 -95
  348. package/dist/modules/agent-readiness-policy/src/revision.js.map +0 -1
  349. package/dist/modules/artifact/src/agent-readiness-closure.d.ts +0 -20
  350. package/dist/modules/artifact/src/agent-readiness-closure.d.ts.map +0 -1
  351. package/dist/modules/artifact/src/agent-readiness-closure.js +0 -75
  352. package/dist/modules/artifact/src/agent-readiness-closure.js.map +0 -1
  353. package/dist/modules/artifact/src/asset-closure.d.ts +0 -17
  354. package/dist/modules/artifact/src/asset-closure.d.ts.map +0 -1
  355. package/dist/modules/artifact/src/asset-closure.js +0 -44
  356. package/dist/modules/artifact/src/asset-closure.js.map +0 -1
  357. package/dist/modules/artifact/src/authoring-closure.d.ts +0 -4
  358. package/dist/modules/artifact/src/authoring-closure.d.ts.map +0 -1
  359. package/dist/modules/artifact/src/authoring-closure.js +0 -19
  360. package/dist/modules/artifact/src/authoring-closure.js.map +0 -1
  361. package/dist/modules/artifact/src/index.d.ts +0 -53
  362. package/dist/modules/artifact/src/index.d.ts.map +0 -1
  363. package/dist/modules/artifact/src/index.js +0 -379
  364. package/dist/modules/artifact/src/index.js.map +0 -1
  365. package/dist/modules/artifact/src/policy-closure.d.ts +0 -12
  366. package/dist/modules/artifact/src/policy-closure.d.ts.map +0 -1
  367. package/dist/modules/artifact/src/policy-closure.js +0 -48
  368. package/dist/modules/artifact/src/policy-closure.js.map +0 -1
  369. package/dist/modules/artifact/src/release-directory-files.d.ts +0 -16
  370. package/dist/modules/artifact/src/release-directory-files.d.ts.map +0 -1
  371. package/dist/modules/artifact/src/release-directory-files.js +0 -34
  372. package/dist/modules/artifact/src/release-directory-files.js.map +0 -1
  373. package/dist/modules/artifact/src/trust-history.d.ts +0 -3
  374. package/dist/modules/artifact/src/trust-history.d.ts.map +0 -1
  375. package/dist/modules/artifact/src/trust-history.js +0 -134
  376. package/dist/modules/artifact/src/trust-history.js.map +0 -1
  377. package/dist/modules/assets/src/authority-bundle.d.ts +0 -46
  378. package/dist/modules/assets/src/authority-bundle.d.ts.map +0 -1
  379. package/dist/modules/assets/src/authority-bundle.js +0 -227
  380. package/dist/modules/assets/src/authority-bundle.js.map +0 -1
  381. package/dist/modules/assets/src/delta.d.ts +0 -45
  382. package/dist/modules/assets/src/delta.d.ts.map +0 -1
  383. package/dist/modules/assets/src/delta.js +0 -141
  384. package/dist/modules/assets/src/delta.js.map +0 -1
  385. package/dist/modules/assets/src/disposition.d.ts +0 -3
  386. package/dist/modules/assets/src/disposition.d.ts.map +0 -1
  387. package/dist/modules/assets/src/disposition.js +0 -30
  388. package/dist/modules/assets/src/disposition.js.map +0 -1
  389. package/dist/modules/assets/src/index.d.ts +0 -25
  390. package/dist/modules/assets/src/index.d.ts.map +0 -1
  391. package/dist/modules/assets/src/index.js +0 -243
  392. package/dist/modules/assets/src/index.js.map +0 -1
  393. package/dist/modules/assets/src/ingestion.d.ts +0 -70
  394. package/dist/modules/assets/src/ingestion.d.ts.map +0 -1
  395. package/dist/modules/assets/src/ingestion.js +0 -169
  396. package/dist/modules/assets/src/ingestion.js.map +0 -1
  397. package/dist/modules/assurance/src/index.d.ts +0 -22
  398. package/dist/modules/assurance/src/index.d.ts.map +0 -1
  399. package/dist/modules/assurance/src/index.js +0 -73
  400. package/dist/modules/assurance/src/index.js.map +0 -1
  401. package/dist/modules/authority/src/index.d.ts +0 -48
  402. package/dist/modules/authority/src/index.d.ts.map +0 -1
  403. package/dist/modules/authority/src/index.js +0 -298
  404. package/dist/modules/authority/src/index.js.map +0 -1
  405. package/dist/modules/authority-state/src/index.d.ts +0 -44
  406. package/dist/modules/authority-state/src/index.d.ts.map +0 -1
  407. package/dist/modules/authority-state/src/index.js +0 -190
  408. package/dist/modules/authority-state/src/index.js.map +0 -1
  409. package/dist/modules/catalog-admission/src/change-analysis.d.ts +0 -54
  410. package/dist/modules/catalog-admission/src/change-analysis.d.ts.map +0 -1
  411. package/dist/modules/catalog-admission/src/change-analysis.js +0 -116
  412. package/dist/modules/catalog-admission/src/change-analysis.js.map +0 -1
  413. package/dist/modules/catalog-admission/src/index.d.ts +0 -221
  414. package/dist/modules/catalog-admission/src/index.d.ts.map +0 -1
  415. package/dist/modules/catalog-admission/src/index.js +0 -470
  416. package/dist/modules/catalog-admission/src/index.js.map +0 -1
  417. package/dist/modules/catalog-admission/src/machine-admission.d.ts +0 -3252
  418. package/dist/modules/catalog-admission/src/machine-admission.d.ts.map +0 -1
  419. package/dist/modules/catalog-admission/src/machine-admission.js +0 -424
  420. package/dist/modules/catalog-admission/src/machine-admission.js.map +0 -1
  421. package/dist/modules/catalog-admission/src/publication-assets.d.ts +0 -5
  422. package/dist/modules/catalog-admission/src/publication-assets.d.ts.map +0 -1
  423. package/dist/modules/catalog-admission/src/publication-assets.js +0 -26
  424. package/dist/modules/catalog-admission/src/publication-assets.js.map +0 -1
  425. package/dist/modules/catalog-admission/src/publication-authorities.d.ts +0 -6
  426. package/dist/modules/catalog-admission/src/publication-authorities.d.ts.map +0 -1
  427. package/dist/modules/catalog-admission/src/publication-authorities.js +0 -28
  428. package/dist/modules/catalog-admission/src/publication-authorities.js.map +0 -1
  429. package/dist/modules/catalog-admission/src/publication-composition.d.ts +0 -437
  430. package/dist/modules/catalog-admission/src/publication-composition.d.ts.map +0 -1
  431. package/dist/modules/catalog-admission/src/publication-composition.js +0 -290
  432. package/dist/modules/catalog-admission/src/publication-composition.js.map +0 -1
  433. package/dist/modules/catalog-admission/src/publication-dependencies.d.ts +0 -103
  434. package/dist/modules/catalog-admission/src/publication-dependencies.d.ts.map +0 -1
  435. package/dist/modules/catalog-admission/src/publication-dependencies.js +0 -175
  436. package/dist/modules/catalog-admission/src/publication-dependencies.js.map +0 -1
  437. package/dist/modules/catalog-admission/src/publication-entities.d.ts +0 -8
  438. package/dist/modules/catalog-admission/src/publication-entities.d.ts.map +0 -1
  439. package/dist/modules/catalog-admission/src/publication-entities.js +0 -48
  440. package/dist/modules/catalog-admission/src/publication-entities.js.map +0 -1
  441. package/dist/modules/catalog-admission/src/publication-state.d.ts +0 -19
  442. package/dist/modules/catalog-admission/src/publication-state.d.ts.map +0 -1
  443. package/dist/modules/catalog-admission/src/publication-state.js +0 -97
  444. package/dist/modules/catalog-admission/src/publication-state.js.map +0 -1
  445. package/dist/modules/catalog-admission/src/publication.d.ts +0 -89
  446. package/dist/modules/catalog-admission/src/publication.d.ts.map +0 -1
  447. package/dist/modules/catalog-admission/src/publication.js +0 -532
  448. package/dist/modules/catalog-admission/src/publication.js.map +0 -1
  449. package/dist/modules/catalog-admission/src/submission-input.d.ts +0 -44
  450. package/dist/modules/catalog-admission/src/submission-input.d.ts.map +0 -1
  451. package/dist/modules/catalog-admission/src/submission-input.js +0 -174
  452. package/dist/modules/catalog-admission/src/submission-input.js.map +0 -1
  453. package/dist/modules/catalog-admission/src/submission-state.d.ts +0 -9
  454. package/dist/modules/catalog-admission/src/submission-state.d.ts.map +0 -1
  455. package/dist/modules/catalog-admission/src/submission-state.js +0 -24
  456. package/dist/modules/catalog-admission/src/submission-state.js.map +0 -1
  457. package/dist/modules/catalog-admission/src/submission.d.ts +0 -157
  458. package/dist/modules/catalog-admission/src/submission.d.ts.map +0 -1
  459. package/dist/modules/catalog-admission/src/submission.js +0 -346
  460. package/dist/modules/catalog-admission/src/submission.js.map +0 -1
  461. package/dist/modules/catalog-query/src/contracts.d.ts +0 -13
  462. package/dist/modules/catalog-query/src/contracts.d.ts.map +0 -1
  463. package/dist/modules/catalog-query/src/contracts.js +0 -13
  464. package/dist/modules/catalog-query/src/contracts.js.map +0 -1
  465. package/dist/modules/catalog-read-port/src/index.d.ts +0 -34
  466. package/dist/modules/catalog-read-port/src/index.d.ts.map +0 -1
  467. package/dist/modules/catalog-read-port/src/index.js +0 -2
  468. package/dist/modules/catalog-read-port/src/index.js.map +0 -1
  469. package/dist/modules/evidence-comparison/src/domains.d.ts +0 -8
  470. package/dist/modules/evidence-comparison/src/domains.d.ts.map +0 -1
  471. package/dist/modules/evidence-comparison/src/domains.js +0 -16
  472. package/dist/modules/evidence-comparison/src/domains.js.map +0 -1
  473. package/dist/modules/evidence-operations/src/attested-capture.d.ts +0 -75
  474. package/dist/modules/evidence-operations/src/attested-capture.d.ts.map +0 -1
  475. package/dist/modules/evidence-operations/src/attested-capture.js +0 -227
  476. package/dist/modules/evidence-operations/src/attested-capture.js.map +0 -1
  477. package/dist/modules/evidence-operations/src/configuration.d.ts +0 -100
  478. package/dist/modules/evidence-operations/src/configuration.d.ts.map +0 -1
  479. package/dist/modules/evidence-operations/src/configuration.js +0 -199
  480. package/dist/modules/evidence-operations/src/configuration.js.map +0 -1
  481. package/dist/modules/evidence-operations/src/evidence-authority-materialization.d.ts +0 -53
  482. package/dist/modules/evidence-operations/src/evidence-authority-materialization.d.ts.map +0 -1
  483. package/dist/modules/evidence-operations/src/evidence-authority-materialization.js +0 -161
  484. package/dist/modules/evidence-operations/src/evidence-authority-materialization.js.map +0 -1
  485. package/dist/modules/evidence-operations/src/evidence-authority.d.ts +0 -669
  486. package/dist/modules/evidence-operations/src/evidence-authority.d.ts.map +0 -1
  487. package/dist/modules/evidence-operations/src/evidence-authority.js +0 -391
  488. package/dist/modules/evidence-operations/src/evidence-authority.js.map +0 -1
  489. package/dist/modules/evidence-operations/src/evidence-normalization.d.ts +0 -46
  490. package/dist/modules/evidence-operations/src/evidence-normalization.d.ts.map +0 -1
  491. package/dist/modules/evidence-operations/src/evidence-normalization.js +0 -61
  492. package/dist/modules/evidence-operations/src/evidence-normalization.js.map +0 -1
  493. package/dist/modules/evidence-operations/src/evidence-revision.d.ts +0 -5
  494. package/dist/modules/evidence-operations/src/evidence-revision.d.ts.map +0 -1
  495. package/dist/modules/evidence-operations/src/evidence-revision.js +0 -12
  496. package/dist/modules/evidence-operations/src/evidence-revision.js.map +0 -1
  497. package/dist/modules/evidence-operations/src/proof-graph.d.ts +0 -32
  498. package/dist/modules/evidence-operations/src/proof-graph.d.ts.map +0 -1
  499. package/dist/modules/evidence-operations/src/proof-graph.js +0 -208
  500. package/dist/modules/evidence-operations/src/proof-graph.js.map +0 -1
  501. package/dist/modules/evidence-operations/src/retained-revision.d.ts +0 -9
  502. package/dist/modules/evidence-operations/src/retained-revision.d.ts.map +0 -1
  503. package/dist/modules/evidence-operations/src/retained-revision.js +0 -30
  504. package/dist/modules/evidence-operations/src/retained-revision.js.map +0 -1
  505. package/dist/modules/evidence-operations/src/source-authority.d.ts +0 -43
  506. package/dist/modules/evidence-operations/src/source-authority.d.ts.map +0 -1
  507. package/dist/modules/evidence-operations/src/source-authority.js +0 -77
  508. package/dist/modules/evidence-operations/src/source-authority.js.map +0 -1
  509. package/dist/modules/evidence-operations/src/submission-verifier.d.ts +0 -350
  510. package/dist/modules/evidence-operations/src/submission-verifier.d.ts.map +0 -1
  511. package/dist/modules/evidence-operations/src/submission-verifier.js +0 -388
  512. package/dist/modules/evidence-operations/src/submission-verifier.js.map +0 -1
  513. package/dist/modules/evidence-operations/src/url-canonicalization.d.ts +0 -3
  514. package/dist/modules/evidence-operations/src/url-canonicalization.d.ts.map +0 -1
  515. package/dist/modules/evidence-operations/src/url-canonicalization.js +0 -7
  516. package/dist/modules/evidence-operations/src/url-canonicalization.js.map +0 -1
  517. package/dist/modules/projection-identity/src/index.d.ts +0 -14
  518. package/dist/modules/projection-identity/src/index.d.ts.map +0 -1
  519. package/dist/modules/projection-identity/src/index.js +0 -23
  520. package/dist/modules/projection-identity/src/index.js.map +0 -1
  521. package/dist/modules/provenance/src/evidence-bindings.d.ts +0 -11
  522. package/dist/modules/provenance/src/evidence-bindings.d.ts.map +0 -1
  523. package/dist/modules/provenance/src/evidence-bindings.js +0 -49
  524. package/dist/modules/provenance/src/evidence-bindings.js.map +0 -1
  525. package/dist/modules/provenance/src/evidence-coverage.d.ts +0 -36
  526. package/dist/modules/provenance/src/evidence-coverage.d.ts.map +0 -1
  527. package/dist/modules/provenance/src/evidence-coverage.js +0 -131
  528. package/dist/modules/provenance/src/evidence-coverage.js.map +0 -1
  529. package/dist/modules/provenance/src/index.d.ts +0 -80
  530. package/dist/modules/provenance/src/index.d.ts.map +0 -1
  531. package/dist/modules/provenance/src/index.js +0 -535
  532. package/dist/modules/provenance/src/index.js.map +0 -1
  533. package/dist/modules/provenance/src/material-claims.d.ts +0 -262
  534. package/dist/modules/provenance/src/material-claims.d.ts.map +0 -1
  535. package/dist/modules/provenance/src/material-claims.js +0 -383
  536. package/dist/modules/provenance/src/material-claims.js.map +0 -1
  537. package/dist/modules/provenance/src/prospective-evidence.d.ts +0 -6
  538. package/dist/modules/provenance/src/prospective-evidence.d.ts.map +0 -1
  539. package/dist/modules/provenance/src/prospective-evidence.js +0 -61
  540. package/dist/modules/provenance/src/prospective-evidence.js.map +0 -1
  541. package/dist/modules/publication-instance/src/index.d.ts +0 -516
  542. package/dist/modules/publication-instance/src/index.d.ts.map +0 -1
  543. package/dist/modules/publication-instance/src/index.js +0 -34
  544. package/dist/modules/publication-instance/src/index.js.map +0 -1
  545. package/dist/modules/release/src/agent-readiness-authority.d.ts +0 -71
  546. package/dist/modules/release/src/agent-readiness-authority.d.ts.map +0 -1
  547. package/dist/modules/release/src/agent-readiness-authority.js +0 -164
  548. package/dist/modules/release/src/agent-readiness-authority.js.map +0 -1
  549. package/dist/modules/release/src/agent-readiness-publication-inputs.d.ts +0 -11
  550. package/dist/modules/release/src/agent-readiness-publication-inputs.d.ts.map +0 -1
  551. package/dist/modules/release/src/agent-readiness-publication-inputs.js +0 -45
  552. package/dist/modules/release/src/agent-readiness-publication-inputs.js.map +0 -1
  553. package/dist/modules/release/src/agent-readiness-regrade-evidence.d.ts +0 -158
  554. package/dist/modules/release/src/agent-readiness-regrade-evidence.d.ts.map +0 -1
  555. package/dist/modules/release/src/agent-readiness-regrade-evidence.js +0 -164
  556. package/dist/modules/release/src/agent-readiness-regrade-evidence.js.map +0 -1
  557. package/dist/modules/release/src/asset-delta-verifier.d.ts +0 -13
  558. package/dist/modules/release/src/asset-delta-verifier.d.ts.map +0 -1
  559. package/dist/modules/release/src/asset-delta-verifier.js +0 -80
  560. package/dist/modules/release/src/asset-delta-verifier.js.map +0 -1
  561. package/dist/modules/release/src/changes.d.ts +0 -23
  562. package/dist/modules/release/src/changes.d.ts.map +0 -1
  563. package/dist/modules/release/src/changes.js +0 -376
  564. package/dist/modules/release/src/changes.js.map +0 -1
  565. package/dist/modules/release/src/evidence-admission.d.ts +0 -59
  566. package/dist/modules/release/src/evidence-admission.d.ts.map +0 -1
  567. package/dist/modules/release/src/evidence-admission.js +0 -531
  568. package/dist/modules/release/src/evidence-admission.js.map +0 -1
  569. package/dist/modules/release/src/evidence-bundle-tree.d.ts +0 -14
  570. package/dist/modules/release/src/evidence-bundle-tree.d.ts.map +0 -1
  571. package/dist/modules/release/src/evidence-bundle-tree.js +0 -58
  572. package/dist/modules/release/src/evidence-bundle-tree.js.map +0 -1
  573. package/dist/modules/release/src/identity.d.ts +0 -17
  574. package/dist/modules/release/src/identity.d.ts.map +0 -1
  575. package/dist/modules/release/src/identity.js +0 -480
  576. package/dist/modules/release/src/identity.js.map +0 -1
  577. package/dist/modules/release/src/inputs.d.ts +0 -98
  578. package/dist/modules/release/src/inputs.d.ts.map +0 -1
  579. package/dist/modules/release/src/inputs.js +0 -338
  580. package/dist/modules/release/src/inputs.js.map +0 -1
  581. package/dist/modules/release/src/publication-inputs.d.ts +0 -6
  582. package/dist/modules/release/src/publication-inputs.d.ts.map +0 -1
  583. package/dist/modules/release/src/publication-inputs.js +0 -81
  584. package/dist/modules/release/src/publication-inputs.js.map +0 -1
  585. package/dist/modules/release/src/transition.d.ts +0 -41
  586. package/dist/modules/release/src/transition.d.ts.map +0 -1
  587. package/dist/modules/release/src/transition.js +0 -240
  588. package/dist/modules/release/src/transition.js.map +0 -1
  589. package/dist/modules/release/src/verification-changes.d.ts +0 -11
  590. package/dist/modules/release/src/verification-changes.d.ts.map +0 -1
  591. package/dist/modules/release/src/verification-changes.js +0 -29
  592. package/dist/modules/release/src/verification-changes.js.map +0 -1
  593. package/dist/modules/release/src/verification-policies.d.ts +0 -123
  594. package/dist/modules/release/src/verification-policies.d.ts.map +0 -1
  595. package/dist/modules/release/src/verification-policies.js +0 -39
  596. package/dist/modules/release/src/verification-policies.js.map +0 -1
  597. package/dist/modules/release/src/verification-transitions.d.ts +0 -27
  598. package/dist/modules/release/src/verification-transitions.d.ts.map +0 -1
  599. package/dist/modules/release/src/verification-transitions.js +0 -81
  600. package/dist/modules/release/src/verification-transitions.js.map +0 -1
  601. package/dist/modules/sourcey-publication/src/publication-parent-guard.d.ts +0 -17
  602. package/dist/modules/sourcey-publication/src/publication-parent-guard.d.ts.map +0 -1
  603. package/dist/modules/sourcey-publication/src/publication-parent-guard.js +0 -18
  604. package/dist/modules/sourcey-publication/src/publication-parent-guard.js.map +0 -1
  605. package/dist/modules/sourcey-publication/src/publication-parent-relations.d.ts +0 -24
  606. package/dist/modules/sourcey-publication/src/publication-parent-relations.d.ts.map +0 -1
  607. package/dist/modules/sourcey-publication/src/publication-parent-relations.js +0 -104
  608. package/dist/modules/sourcey-publication/src/publication-parent-relations.js.map +0 -1
  609. package/dist/modules/sourcey-publication/src/submission-verification.d.ts +0 -25
  610. package/dist/modules/sourcey-publication/src/submission-verification.d.ts.map +0 -1
  611. package/dist/modules/sourcey-publication/src/submission-verification.js +0 -45
  612. package/dist/modules/sourcey-publication/src/submission-verification.js.map +0 -1
  613. package/dist/modules/sourcey-publication/src/verifier.d.ts +0 -54
  614. package/dist/modules/sourcey-publication/src/verifier.d.ts.map +0 -1
  615. package/dist/modules/sourcey-publication/src/verifier.js +0 -555
  616. package/dist/modules/sourcey-publication/src/verifier.js.map +0 -1
  617. package/dist/packages/catalog-verifier/src/index.d.ts +0 -10
  618. package/dist/packages/catalog-verifier/src/index.d.ts.map +0 -1
  619. package/dist/packages/catalog-verifier/src/index.js +0 -10
  620. 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