@sourcey/catalog-verifier 1.1.35 → 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 (622) 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 +119 -2
  10. package/dist/contracts/agent-readiness/src/binding.js.map +1 -1
  11. package/dist/contracts/agent-readiness/src/declaration.d.ts +68 -0
  12. package/dist/contracts/agent-readiness/src/declaration.d.ts.map +1 -1
  13. package/dist/contracts/agent-readiness/src/declaration.js +19 -3
  14. package/dist/contracts/agent-readiness/src/declaration.js.map +1 -1
  15. package/dist/contracts/agent-readiness/src/jobs.d.ts +36 -0
  16. package/dist/contracts/agent-readiness/src/jobs.d.ts.map +1 -1
  17. package/dist/contracts/agent-readiness/src/jobs.js +80 -0
  18. package/dist/contracts/agent-readiness/src/jobs.js.map +1 -1
  19. package/dist/contracts/agent-readiness/src/operation.d.ts +40 -0
  20. package/dist/contracts/agent-readiness/src/operation.d.ts.map +1 -1
  21. package/dist/contracts/agent-readiness/src/operation.js +85 -16
  22. package/dist/contracts/agent-readiness/src/operation.js.map +1 -1
  23. package/dist/contracts/agent-readiness/src/shared.d.ts +15 -0
  24. package/dist/contracts/agent-readiness/src/shared.d.ts.map +1 -1
  25. package/dist/contracts/agent-readiness/src/shared.js +36 -0
  26. package/dist/contracts/agent-readiness/src/shared.js.map +1 -1
  27. package/dist/modules/agent-readiness-jobs/src/current.d.ts +48 -0
  28. package/dist/modules/agent-readiness-jobs/src/current.d.ts.map +1 -0
  29. package/dist/modules/agent-readiness-jobs/src/current.js +7 -0
  30. package/dist/modules/agent-readiness-jobs/src/current.js.map +1 -0
  31. package/dist/modules/agent-readiness-jobs/src/index.d.ts +1 -1
  32. package/dist/modules/agent-readiness-jobs/src/index.d.ts.map +1 -1
  33. package/dist/modules/agent-readiness-jobs/src/index.js +1 -1
  34. package/dist/modules/agent-readiness-jobs/src/index.js.map +1 -1
  35. package/dist/modules/agent-readiness-policy/src/declaration-jobs.d.ts +8 -6
  36. package/dist/modules/agent-readiness-policy/src/declaration-jobs.d.ts.map +1 -1
  37. package/dist/modules/agent-readiness-policy/src/declaration-jobs.js +7 -7
  38. package/dist/modules/agent-readiness-policy/src/declaration-jobs.js.map +1 -1
  39. package/dist/modules/agent-readiness-repository/src/change.d.ts +4 -3
  40. package/dist/modules/agent-readiness-repository/src/change.d.ts.map +1 -1
  41. package/dist/modules/agent-readiness-repository/src/change.js +7 -7
  42. package/dist/modules/agent-readiness-repository/src/change.js.map +1 -1
  43. package/dist/modules/agent-readiness-repository/src/index.d.ts +4 -4
  44. package/dist/modules/agent-readiness-repository/src/index.d.ts.map +1 -1
  45. package/dist/modules/agent-readiness-repository/src/index.js +3 -3
  46. package/dist/modules/agent-readiness-repository/src/index.js.map +1 -1
  47. package/dist/modules/authority/src/identity-context.d.ts +6 -0
  48. package/dist/modules/authority/src/identity-context.d.ts.map +1 -0
  49. package/dist/modules/authority/src/identity-context.js +42 -0
  50. package/dist/modules/authority/src/identity-context.js.map +1 -0
  51. package/dist/modules/authority/src/registry.d.ts +29 -0
  52. package/dist/modules/authority/src/registry.d.ts.map +1 -0
  53. package/dist/modules/authority/src/registry.js +112 -0
  54. package/dist/modules/authority/src/registry.js.map +1 -0
  55. package/dist/modules/catalog-admission/src/admission-conflicts.d.ts.map +1 -1
  56. package/dist/modules/catalog-admission/src/admission-conflicts.js +2 -1
  57. package/dist/modules/catalog-admission/src/admission-conflicts.js.map +1 -1
  58. package/dist/modules/catalog-admission/src/pull-request-tree.d.ts +61 -0
  59. package/dist/modules/catalog-admission/src/pull-request-tree.d.ts.map +1 -0
  60. package/dist/modules/catalog-admission/src/pull-request-tree.js +149 -0
  61. package/dist/modules/catalog-admission/src/pull-request-tree.js.map +1 -0
  62. package/dist/packages/catalog-verifier/src/application.d.ts +1 -5
  63. package/dist/packages/catalog-verifier/src/application.d.ts.map +1 -1
  64. package/dist/packages/catalog-verifier/src/application.js +9 -75
  65. package/dist/packages/catalog-verifier/src/application.js.map +1 -1
  66. package/dist/packages/catalog-verifier/src/cli.d.ts +8 -0
  67. package/dist/packages/catalog-verifier/src/cli.d.ts.map +1 -0
  68. package/dist/packages/catalog-verifier/src/cli.js +43 -0
  69. package/dist/packages/catalog-verifier/src/cli.js.map +1 -0
  70. package/dist/packages/catalog-verifier/src/contribution.d.ts +8 -0
  71. package/dist/packages/catalog-verifier/src/contribution.d.ts.map +1 -0
  72. package/dist/packages/catalog-verifier/src/contribution.js +8 -0
  73. package/dist/packages/catalog-verifier/src/contribution.js.map +1 -0
  74. package/dist/packages/catalog-verifier/src/program.d.ts +0 -1
  75. package/dist/packages/catalog-verifier/src/program.d.ts.map +1 -1
  76. package/dist/packages/catalog-verifier/src/program.js +1 -53
  77. package/dist/packages/catalog-verifier/src/program.js.map +1 -1
  78. package/dist/packages/catalog-verifier/src/result.d.ts +12 -0
  79. package/dist/packages/catalog-verifier/src/result.d.ts.map +1 -0
  80. package/dist/packages/catalog-verifier/src/result.js +57 -0
  81. package/dist/packages/catalog-verifier/src/result.js.map +1 -0
  82. package/package.json +4 -5
  83. package/dist/contracts/admission-results/src/index.d.ts +0 -448
  84. package/dist/contracts/admission-results/src/index.d.ts.map +0 -1
  85. package/dist/contracts/admission-results/src/index.js +0 -259
  86. package/dist/contracts/admission-results/src/index.js.map +0 -1
  87. package/dist/contracts/agent-readiness/src/authority.d.ts +0 -51
  88. package/dist/contracts/agent-readiness/src/authority.d.ts.map +0 -1
  89. package/dist/contracts/agent-readiness/src/authority.js +0 -36
  90. package/dist/contracts/agent-readiness/src/authority.js.map +0 -1
  91. package/dist/contracts/agent-readiness/src/checks.d.ts +0 -26
  92. package/dist/contracts/agent-readiness/src/checks.d.ts.map +0 -1
  93. package/dist/contracts/agent-readiness/src/checks.js +0 -56
  94. package/dist/contracts/agent-readiness/src/checks.js.map +0 -1
  95. package/dist/contracts/agent-readiness/src/client.d.ts +0 -30
  96. package/dist/contracts/agent-readiness/src/client.d.ts.map +0 -1
  97. package/dist/contracts/agent-readiness/src/client.js +0 -25
  98. package/dist/contracts/agent-readiness/src/client.js.map +0 -1
  99. package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts +0 -695
  100. package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts.map +0 -1
  101. package/dist/contracts/agent-readiness/src/declaration-acquisition.js +0 -169
  102. package/dist/contracts/agent-readiness/src/declaration-acquisition.js.map +0 -1
  103. package/dist/contracts/agent-readiness/src/grade-policy.d.ts +0 -263
  104. package/dist/contracts/agent-readiness/src/grade-policy.d.ts.map +0 -1
  105. package/dist/contracts/agent-readiness/src/grade-policy.js +0 -125
  106. package/dist/contracts/agent-readiness/src/grade-policy.js.map +0 -1
  107. package/dist/contracts/agent-readiness/src/index.d.ts +0 -19
  108. package/dist/contracts/agent-readiness/src/index.d.ts.map +0 -1
  109. package/dist/contracts/agent-readiness/src/index.js +0 -16
  110. package/dist/contracts/agent-readiness/src/index.js.map +0 -1
  111. package/dist/contracts/agent-readiness/src/offer-relations.d.ts +0 -951
  112. package/dist/contracts/agent-readiness/src/offer-relations.d.ts.map +0 -1
  113. package/dist/contracts/agent-readiness/src/offer-relations.js +0 -197
  114. package/dist/contracts/agent-readiness/src/offer-relations.js.map +0 -1
  115. package/dist/contracts/agent-readiness/src/release-index.d.ts +0 -1790
  116. package/dist/contracts/agent-readiness/src/release-index.d.ts.map +0 -1
  117. package/dist/contracts/agent-readiness/src/release-index.js +0 -143
  118. package/dist/contracts/agent-readiness/src/release-index.js.map +0 -1
  119. package/dist/contracts/agent-readiness/src/revision.d.ts +0 -2721
  120. package/dist/contracts/agent-readiness/src/revision.d.ts.map +0 -1
  121. package/dist/contracts/agent-readiness/src/revision.js +0 -478
  122. package/dist/contracts/agent-readiness/src/revision.js.map +0 -1
  123. package/dist/contracts/agent-readiness/src/run.d.ts +0 -749
  124. package/dist/contracts/agent-readiness/src/run.d.ts.map +0 -1
  125. package/dist/contracts/agent-readiness/src/run.js +0 -588
  126. package/dist/contracts/agent-readiness/src/run.js.map +0 -1
  127. package/dist/contracts/api/src/endpoints.d.ts +0 -44819
  128. package/dist/contracts/api/src/endpoints.d.ts.map +0 -1
  129. package/dist/contracts/api/src/endpoints.js +0 -643
  130. package/dist/contracts/api/src/endpoints.js.map +0 -1
  131. package/dist/contracts/api/src/index.d.ts +0 -10
  132. package/dist/contracts/api/src/index.d.ts.map +0 -1
  133. package/dist/contracts/api/src/index.js +0 -6
  134. package/dist/contracts/api/src/index.js.map +0 -1
  135. package/dist/contracts/api/src/read.d.ts +0 -13837
  136. package/dist/contracts/api/src/read.d.ts.map +0 -1
  137. package/dist/contracts/api/src/read.js +0 -519
  138. package/dist/contracts/api/src/read.js.map +0 -1
  139. package/dist/contracts/api/src/routes.d.ts +0 -1885
  140. package/dist/contracts/api/src/routes.d.ts.map +0 -1
  141. package/dist/contracts/api/src/routes.js +0 -136
  142. package/dist/contracts/api/src/routes.js.map +0 -1
  143. package/dist/contracts/api/src/submissions.d.ts +0 -2052
  144. package/dist/contracts/api/src/submissions.d.ts.map +0 -1
  145. package/dist/contracts/api/src/submissions.js +0 -286
  146. package/dist/contracts/api/src/submissions.js.map +0 -1
  147. package/dist/contracts/api/src/values.d.ts +0 -26
  148. package/dist/contracts/api/src/values.d.ts.map +0 -1
  149. package/dist/contracts/api/src/values.js +0 -30
  150. package/dist/contracts/api/src/values.js.map +0 -1
  151. package/dist/contracts/artifact/src/distribution.d.ts +0 -17
  152. package/dist/contracts/artifact/src/distribution.d.ts.map +0 -1
  153. package/dist/contracts/artifact/src/distribution.js +0 -57
  154. package/dist/contracts/artifact/src/distribution.js.map +0 -1
  155. package/dist/contracts/artifact/src/index.d.ts +0 -2315
  156. package/dist/contracts/artifact/src/index.d.ts.map +0 -1
  157. package/dist/contracts/artifact/src/index.js +0 -354
  158. package/dist/contracts/artifact/src/index.js.map +0 -1
  159. package/dist/contracts/assets/src/index.d.ts +0 -1298
  160. package/dist/contracts/assets/src/index.d.ts.map +0 -1
  161. package/dist/contracts/assets/src/index.js +0 -577
  162. package/dist/contracts/assets/src/index.js.map +0 -1
  163. package/dist/contracts/assurance/src/index.d.ts +0 -148
  164. package/dist/contracts/assurance/src/index.d.ts.map +0 -1
  165. package/dist/contracts/assurance/src/index.js +0 -147
  166. package/dist/contracts/assurance/src/index.js.map +0 -1
  167. package/dist/contracts/billing/src/index.d.ts +0 -462
  168. package/dist/contracts/billing/src/index.d.ts.map +0 -1
  169. package/dist/contracts/billing/src/index.js +0 -242
  170. package/dist/contracts/billing/src/index.js.map +0 -1
  171. package/dist/contracts/capture/src/index.d.ts +0 -17
  172. package/dist/contracts/capture/src/index.d.ts.map +0 -1
  173. package/dist/contracts/capture/src/index.js +0 -15
  174. package/dist/contracts/capture/src/index.js.map +0 -1
  175. package/dist/contracts/capture/src/method-names.d.ts +0 -4
  176. package/dist/contracts/capture/src/method-names.d.ts.map +0 -1
  177. package/dist/contracts/capture/src/method-names.js +0 -4
  178. package/dist/contracts/capture/src/method-names.js.map +0 -1
  179. package/dist/contracts/capture/src/methods.d.ts +0 -7
  180. package/dist/contracts/capture/src/methods.d.ts.map +0 -1
  181. package/dist/contracts/capture/src/methods.js +0 -18
  182. package/dist/contracts/capture/src/methods.js.map +0 -1
  183. package/dist/contracts/company-authoring/src/index.d.ts +0 -72
  184. package/dist/contracts/company-authoring/src/index.d.ts.map +0 -1
  185. package/dist/contracts/company-authoring/src/index.js +0 -41
  186. package/dist/contracts/company-authoring/src/index.js.map +0 -1
  187. package/dist/contracts/company-standing/src/index.d.ts +0 -143
  188. package/dist/contracts/company-standing/src/index.d.ts.map +0 -1
  189. package/dist/contracts/company-standing/src/index.js +0 -146
  190. package/dist/contracts/company-standing/src/index.js.map +0 -1
  191. package/dist/contracts/company-verification/src/commercial.d.ts +0 -571
  192. package/dist/contracts/company-verification/src/commercial.d.ts.map +0 -1
  193. package/dist/contracts/company-verification/src/commercial.js +0 -273
  194. package/dist/contracts/company-verification/src/commercial.js.map +0 -1
  195. package/dist/contracts/company-verification/src/index.d.ts +0 -94
  196. package/dist/contracts/company-verification/src/index.d.ts.map +0 -1
  197. package/dist/contracts/company-verification/src/index.js +0 -138
  198. package/dist/contracts/company-verification/src/index.js.map +0 -1
  199. package/dist/contracts/datasets/src/index.d.ts +0 -868
  200. package/dist/contracts/datasets/src/index.d.ts.map +0 -1
  201. package/dist/contracts/datasets/src/index.js +0 -80
  202. package/dist/contracts/datasets/src/index.js.map +0 -1
  203. package/dist/contracts/events/src/index.d.ts +0 -749
  204. package/dist/contracts/events/src/index.d.ts.map +0 -1
  205. package/dist/contracts/events/src/index.js +0 -640
  206. package/dist/contracts/events/src/index.js.map +0 -1
  207. package/dist/contracts/evidence/src/index.d.ts +0 -302
  208. package/dist/contracts/evidence/src/index.d.ts.map +0 -1
  209. package/dist/contracts/evidence/src/index.js +0 -346
  210. package/dist/contracts/evidence/src/index.js.map +0 -1
  211. package/dist/contracts/feed/src/index.d.ts +0 -156
  212. package/dist/contracts/feed/src/index.d.ts.map +0 -1
  213. package/dist/contracts/feed/src/index.js +0 -79
  214. package/dist/contracts/feed/src/index.js.map +0 -1
  215. package/dist/contracts/funded-work/src/index.d.ts +0 -64
  216. package/dist/contracts/funded-work/src/index.d.ts.map +0 -1
  217. package/dist/contracts/funded-work/src/index.js +0 -68
  218. package/dist/contracts/funded-work/src/index.js.map +0 -1
  219. package/dist/contracts/observations/src/index.d.ts +0 -155
  220. package/dist/contracts/observations/src/index.d.ts.map +0 -1
  221. package/dist/contracts/observations/src/index.js +0 -110
  222. package/dist/contracts/observations/src/index.js.map +0 -1
  223. package/dist/contracts/policies/src/index.d.ts +0 -152
  224. package/dist/contracts/policies/src/index.d.ts.map +0 -1
  225. package/dist/contracts/policies/src/index.js +0 -125
  226. package/dist/contracts/policies/src/index.js.map +0 -1
  227. package/dist/contracts/publication/src/index.d.ts +0 -5590
  228. package/dist/contracts/publication/src/index.d.ts.map +0 -1
  229. package/dist/contracts/publication/src/index.js +0 -486
  230. package/dist/contracts/publication/src/index.js.map +0 -1
  231. package/dist/contracts/release/src/index.d.ts +0 -2559
  232. package/dist/contracts/release/src/index.d.ts.map +0 -1
  233. package/dist/contracts/release/src/index.js +0 -243
  234. package/dist/contracts/release/src/index.js.map +0 -1
  235. package/dist/contracts/routes/src/index.d.ts +0 -165
  236. package/dist/contracts/routes/src/index.d.ts.map +0 -1
  237. package/dist/contracts/routes/src/index.js +0 -290
  238. package/dist/contracts/routes/src/index.js.map +0 -1
  239. package/dist/contracts/sourcey-publication/src/index.d.ts +0 -27
  240. package/dist/contracts/sourcey-publication/src/index.d.ts.map +0 -1
  241. package/dist/contracts/sourcey-publication/src/index.js +0 -43
  242. package/dist/contracts/sourcey-publication/src/index.js.map +0 -1
  243. package/dist/contracts/sourcey-publication/src/instance-id.d.ts +0 -3
  244. package/dist/contracts/sourcey-publication/src/instance-id.d.ts.map +0 -1
  245. package/dist/contracts/sourcey-publication/src/instance-id.js +0 -3
  246. package/dist/contracts/sourcey-publication/src/instance-id.js.map +0 -1
  247. package/dist/contracts/sourcey-publication/src/ownership.d.ts +0 -13
  248. package/dist/contracts/sourcey-publication/src/ownership.d.ts.map +0 -1
  249. package/dist/contracts/sourcey-publication/src/ownership.js +0 -82
  250. package/dist/contracts/sourcey-publication/src/ownership.js.map +0 -1
  251. package/dist/contracts/startup-credits-commercial/src/index.d.ts +0 -8
  252. package/dist/contracts/startup-credits-commercial/src/index.d.ts.map +0 -1
  253. package/dist/contracts/startup-credits-commercial/src/index.js +0 -5
  254. package/dist/contracts/startup-credits-commercial/src/index.js.map +0 -1
  255. package/dist/contracts/startup-credits-commercial/src/product.d.ts +0 -99
  256. package/dist/contracts/startup-credits-commercial/src/product.d.ts.map +0 -1
  257. package/dist/contracts/startup-credits-commercial/src/product.js +0 -98
  258. package/dist/contracts/startup-credits-commercial/src/product.js.map +0 -1
  259. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts +0 -851
  260. package/dist/contracts/startup-credits-commercial/src/purchase.d.ts.map +0 -1
  261. package/dist/contracts/startup-credits-commercial/src/purchase.js +0 -433
  262. package/dist/contracts/startup-credits-commercial/src/purchase.js.map +0 -1
  263. package/dist/contracts/startup-credits-commercial/src/requests.d.ts +0 -1275
  264. package/dist/contracts/startup-credits-commercial/src/requests.d.ts.map +0 -1
  265. package/dist/contracts/startup-credits-commercial/src/requests.js +0 -367
  266. package/dist/contracts/startup-credits-commercial/src/requests.js.map +0 -1
  267. package/dist/contracts/startup-credits-commercial/src/values.d.ts +0 -7
  268. package/dist/contracts/startup-credits-commercial/src/values.d.ts.map +0 -1
  269. package/dist/contracts/startup-credits-commercial/src/values.js +0 -9
  270. package/dist/contracts/startup-credits-commercial/src/values.js.map +0 -1
  271. package/dist/modules/agent-readiness-engine/src/assertions.d.ts +0 -45
  272. package/dist/modules/agent-readiness-engine/src/assertions.d.ts.map +0 -1
  273. package/dist/modules/agent-readiness-engine/src/assertions.js +0 -252
  274. package/dist/modules/agent-readiness-engine/src/assertions.js.map +0 -1
  275. package/dist/modules/agent-readiness-engine/src/authority.d.ts +0 -81
  276. package/dist/modules/agent-readiness-engine/src/authority.d.ts.map +0 -1
  277. package/dist/modules/agent-readiness-engine/src/authority.js +0 -193
  278. package/dist/modules/agent-readiness-engine/src/authority.js.map +0 -1
  279. package/dist/modules/agent-readiness-engine/src/binding.d.ts +0 -13
  280. package/dist/modules/agent-readiness-engine/src/binding.d.ts.map +0 -1
  281. package/dist/modules/agent-readiness-engine/src/binding.js +0 -116
  282. package/dist/modules/agent-readiness-engine/src/binding.js.map +0 -1
  283. package/dist/modules/agent-readiness-engine/src/challenges.d.ts +0 -13
  284. package/dist/modules/agent-readiness-engine/src/challenges.d.ts.map +0 -1
  285. package/dist/modules/agent-readiness-engine/src/challenges.js +0 -67
  286. package/dist/modules/agent-readiness-engine/src/challenges.js.map +0 -1
  287. package/dist/modules/agent-readiness-engine/src/checks.d.ts +0 -88
  288. package/dist/modules/agent-readiness-engine/src/checks.d.ts.map +0 -1
  289. package/dist/modules/agent-readiness-engine/src/checks.js +0 -237
  290. package/dist/modules/agent-readiness-engine/src/checks.js.map +0 -1
  291. package/dist/modules/agent-readiness-engine/src/documents.d.ts +0 -21
  292. package/dist/modules/agent-readiness-engine/src/documents.d.ts.map +0 -1
  293. package/dist/modules/agent-readiness-engine/src/documents.js +0 -69
  294. package/dist/modules/agent-readiness-engine/src/documents.js.map +0 -1
  295. package/dist/modules/agent-readiness-engine/src/naming.d.ts +0 -21
  296. package/dist/modules/agent-readiness-engine/src/naming.d.ts.map +0 -1
  297. package/dist/modules/agent-readiness-engine/src/naming.js +0 -29
  298. package/dist/modules/agent-readiness-engine/src/naming.js.map +0 -1
  299. package/dist/modules/agent-readiness-engine/src/path.d.ts +0 -72
  300. package/dist/modules/agent-readiness-engine/src/path.d.ts.map +0 -1
  301. package/dist/modules/agent-readiness-engine/src/path.js +0 -424
  302. package/dist/modules/agent-readiness-engine/src/path.js.map +0 -1
  303. package/dist/modules/agent-readiness-engine/src/profile.d.ts +0 -87
  304. package/dist/modules/agent-readiness-engine/src/profile.d.ts.map +0 -1
  305. package/dist/modules/agent-readiness-engine/src/profile.js +0 -178
  306. package/dist/modules/agent-readiness-engine/src/profile.js.map +0 -1
  307. package/dist/modules/agent-readiness-engine/src/rate.d.ts +0 -14
  308. package/dist/modules/agent-readiness-engine/src/rate.d.ts.map +0 -1
  309. package/dist/modules/agent-readiness-engine/src/rate.js +0 -46
  310. package/dist/modules/agent-readiness-engine/src/rate.js.map +0 -1
  311. package/dist/modules/agent-readiness-engine/src/records.d.ts +0 -45
  312. package/dist/modules/agent-readiness-engine/src/records.d.ts.map +0 -1
  313. package/dist/modules/agent-readiness-engine/src/records.js +0 -117
  314. package/dist/modules/agent-readiness-engine/src/records.js.map +0 -1
  315. package/dist/modules/agent-readiness-engine/src/run.d.ts +0 -9
  316. package/dist/modules/agent-readiness-engine/src/run.d.ts.map +0 -1
  317. package/dist/modules/agent-readiness-engine/src/run.js +0 -44
  318. package/dist/modules/agent-readiness-engine/src/run.js.map +0 -1
  319. package/dist/modules/agent-readiness-engine/src/templates.d.ts +0 -21
  320. package/dist/modules/agent-readiness-engine/src/templates.d.ts.map +0 -1
  321. package/dist/modules/agent-readiness-engine/src/templates.js +0 -89
  322. package/dist/modules/agent-readiness-engine/src/templates.js.map +0 -1
  323. package/dist/modules/agent-readiness-policy/src/current-policy.d.ts +0 -74
  324. package/dist/modules/agent-readiness-policy/src/current-policy.d.ts.map +0 -1
  325. package/dist/modules/agent-readiness-policy/src/current-policy.js +0 -11
  326. package/dist/modules/agent-readiness-policy/src/current-policy.js.map +0 -1
  327. package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts +0 -16
  328. package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts.map +0 -1
  329. package/dist/modules/agent-readiness-policy/src/grade-policy.js +0 -115
  330. package/dist/modules/agent-readiness-policy/src/grade-policy.js.map +0 -1
  331. package/dist/modules/agent-readiness-policy/src/impact.d.ts +0 -24
  332. package/dist/modules/agent-readiness-policy/src/impact.d.ts.map +0 -1
  333. package/dist/modules/agent-readiness-policy/src/impact.js +0 -59
  334. package/dist/modules/agent-readiness-policy/src/impact.js.map +0 -1
  335. package/dist/modules/agent-readiness-policy/src/index.d.ts +0 -47
  336. package/dist/modules/agent-readiness-policy/src/index.d.ts.map +0 -1
  337. package/dist/modules/agent-readiness-policy/src/index.js +0 -214
  338. package/dist/modules/agent-readiness-policy/src/index.js.map +0 -1
  339. package/dist/modules/agent-readiness-policy/src/offer-relations.d.ts +0 -16
  340. package/dist/modules/agent-readiness-policy/src/offer-relations.d.ts.map +0 -1
  341. package/dist/modules/agent-readiness-policy/src/offer-relations.js +0 -96
  342. package/dist/modules/agent-readiness-policy/src/offer-relations.js.map +0 -1
  343. package/dist/modules/agent-readiness-policy/src/prior-projection.d.ts +0 -3
  344. package/dist/modules/agent-readiness-policy/src/prior-projection.d.ts.map +0 -1
  345. package/dist/modules/agent-readiness-policy/src/prior-projection.js +0 -11
  346. package/dist/modules/agent-readiness-policy/src/prior-projection.js.map +0 -1
  347. package/dist/modules/agent-readiness-policy/src/revision.d.ts +0 -15
  348. package/dist/modules/agent-readiness-policy/src/revision.d.ts.map +0 -1
  349. package/dist/modules/agent-readiness-policy/src/revision.js +0 -95
  350. package/dist/modules/agent-readiness-policy/src/revision.js.map +0 -1
  351. package/dist/modules/artifact/src/agent-readiness-closure.d.ts +0 -20
  352. package/dist/modules/artifact/src/agent-readiness-closure.d.ts.map +0 -1
  353. package/dist/modules/artifact/src/agent-readiness-closure.js +0 -75
  354. package/dist/modules/artifact/src/agent-readiness-closure.js.map +0 -1
  355. package/dist/modules/artifact/src/asset-closure.d.ts +0 -17
  356. package/dist/modules/artifact/src/asset-closure.d.ts.map +0 -1
  357. package/dist/modules/artifact/src/asset-closure.js +0 -44
  358. package/dist/modules/artifact/src/asset-closure.js.map +0 -1
  359. package/dist/modules/artifact/src/authoring-closure.d.ts +0 -4
  360. package/dist/modules/artifact/src/authoring-closure.d.ts.map +0 -1
  361. package/dist/modules/artifact/src/authoring-closure.js +0 -19
  362. package/dist/modules/artifact/src/authoring-closure.js.map +0 -1
  363. package/dist/modules/artifact/src/index.d.ts +0 -53
  364. package/dist/modules/artifact/src/index.d.ts.map +0 -1
  365. package/dist/modules/artifact/src/index.js +0 -379
  366. package/dist/modules/artifact/src/index.js.map +0 -1
  367. package/dist/modules/artifact/src/policy-closure.d.ts +0 -12
  368. package/dist/modules/artifact/src/policy-closure.d.ts.map +0 -1
  369. package/dist/modules/artifact/src/policy-closure.js +0 -48
  370. package/dist/modules/artifact/src/policy-closure.js.map +0 -1
  371. package/dist/modules/artifact/src/release-directory-files.d.ts +0 -16
  372. package/dist/modules/artifact/src/release-directory-files.d.ts.map +0 -1
  373. package/dist/modules/artifact/src/release-directory-files.js +0 -34
  374. package/dist/modules/artifact/src/release-directory-files.js.map +0 -1
  375. package/dist/modules/artifact/src/trust-history.d.ts +0 -3
  376. package/dist/modules/artifact/src/trust-history.d.ts.map +0 -1
  377. package/dist/modules/artifact/src/trust-history.js +0 -134
  378. package/dist/modules/artifact/src/trust-history.js.map +0 -1
  379. package/dist/modules/assets/src/authority-bundle.d.ts +0 -46
  380. package/dist/modules/assets/src/authority-bundle.d.ts.map +0 -1
  381. package/dist/modules/assets/src/authority-bundle.js +0 -227
  382. package/dist/modules/assets/src/authority-bundle.js.map +0 -1
  383. package/dist/modules/assets/src/delta.d.ts +0 -45
  384. package/dist/modules/assets/src/delta.d.ts.map +0 -1
  385. package/dist/modules/assets/src/delta.js +0 -141
  386. package/dist/modules/assets/src/delta.js.map +0 -1
  387. package/dist/modules/assets/src/disposition.d.ts +0 -3
  388. package/dist/modules/assets/src/disposition.d.ts.map +0 -1
  389. package/dist/modules/assets/src/disposition.js +0 -30
  390. package/dist/modules/assets/src/disposition.js.map +0 -1
  391. package/dist/modules/assets/src/index.d.ts +0 -25
  392. package/dist/modules/assets/src/index.d.ts.map +0 -1
  393. package/dist/modules/assets/src/index.js +0 -243
  394. package/dist/modules/assets/src/index.js.map +0 -1
  395. package/dist/modules/assets/src/ingestion.d.ts +0 -70
  396. package/dist/modules/assets/src/ingestion.d.ts.map +0 -1
  397. package/dist/modules/assets/src/ingestion.js +0 -169
  398. package/dist/modules/assets/src/ingestion.js.map +0 -1
  399. package/dist/modules/assurance/src/index.d.ts +0 -22
  400. package/dist/modules/assurance/src/index.d.ts.map +0 -1
  401. package/dist/modules/assurance/src/index.js +0 -73
  402. package/dist/modules/assurance/src/index.js.map +0 -1
  403. package/dist/modules/authority/src/index.d.ts +0 -48
  404. package/dist/modules/authority/src/index.d.ts.map +0 -1
  405. package/dist/modules/authority/src/index.js +0 -298
  406. package/dist/modules/authority/src/index.js.map +0 -1
  407. package/dist/modules/authority-state/src/index.d.ts +0 -44
  408. package/dist/modules/authority-state/src/index.d.ts.map +0 -1
  409. package/dist/modules/authority-state/src/index.js +0 -190
  410. package/dist/modules/authority-state/src/index.js.map +0 -1
  411. package/dist/modules/catalog-admission/src/change-analysis.d.ts +0 -54
  412. package/dist/modules/catalog-admission/src/change-analysis.d.ts.map +0 -1
  413. package/dist/modules/catalog-admission/src/change-analysis.js +0 -116
  414. package/dist/modules/catalog-admission/src/change-analysis.js.map +0 -1
  415. package/dist/modules/catalog-admission/src/index.d.ts +0 -221
  416. package/dist/modules/catalog-admission/src/index.d.ts.map +0 -1
  417. package/dist/modules/catalog-admission/src/index.js +0 -470
  418. package/dist/modules/catalog-admission/src/index.js.map +0 -1
  419. package/dist/modules/catalog-admission/src/machine-admission.d.ts +0 -3252
  420. package/dist/modules/catalog-admission/src/machine-admission.d.ts.map +0 -1
  421. package/dist/modules/catalog-admission/src/machine-admission.js +0 -424
  422. package/dist/modules/catalog-admission/src/machine-admission.js.map +0 -1
  423. package/dist/modules/catalog-admission/src/publication-assets.d.ts +0 -5
  424. package/dist/modules/catalog-admission/src/publication-assets.d.ts.map +0 -1
  425. package/dist/modules/catalog-admission/src/publication-assets.js +0 -26
  426. package/dist/modules/catalog-admission/src/publication-assets.js.map +0 -1
  427. package/dist/modules/catalog-admission/src/publication-authorities.d.ts +0 -6
  428. package/dist/modules/catalog-admission/src/publication-authorities.d.ts.map +0 -1
  429. package/dist/modules/catalog-admission/src/publication-authorities.js +0 -28
  430. package/dist/modules/catalog-admission/src/publication-authorities.js.map +0 -1
  431. package/dist/modules/catalog-admission/src/publication-composition.d.ts +0 -437
  432. package/dist/modules/catalog-admission/src/publication-composition.d.ts.map +0 -1
  433. package/dist/modules/catalog-admission/src/publication-composition.js +0 -290
  434. package/dist/modules/catalog-admission/src/publication-composition.js.map +0 -1
  435. package/dist/modules/catalog-admission/src/publication-dependencies.d.ts +0 -103
  436. package/dist/modules/catalog-admission/src/publication-dependencies.d.ts.map +0 -1
  437. package/dist/modules/catalog-admission/src/publication-dependencies.js +0 -175
  438. package/dist/modules/catalog-admission/src/publication-dependencies.js.map +0 -1
  439. package/dist/modules/catalog-admission/src/publication-entities.d.ts +0 -8
  440. package/dist/modules/catalog-admission/src/publication-entities.d.ts.map +0 -1
  441. package/dist/modules/catalog-admission/src/publication-entities.js +0 -48
  442. package/dist/modules/catalog-admission/src/publication-entities.js.map +0 -1
  443. package/dist/modules/catalog-admission/src/publication-state.d.ts +0 -19
  444. package/dist/modules/catalog-admission/src/publication-state.d.ts.map +0 -1
  445. package/dist/modules/catalog-admission/src/publication-state.js +0 -97
  446. package/dist/modules/catalog-admission/src/publication-state.js.map +0 -1
  447. package/dist/modules/catalog-admission/src/publication.d.ts +0 -89
  448. package/dist/modules/catalog-admission/src/publication.d.ts.map +0 -1
  449. package/dist/modules/catalog-admission/src/publication.js +0 -532
  450. package/dist/modules/catalog-admission/src/publication.js.map +0 -1
  451. package/dist/modules/catalog-admission/src/submission-input.d.ts +0 -44
  452. package/dist/modules/catalog-admission/src/submission-input.d.ts.map +0 -1
  453. package/dist/modules/catalog-admission/src/submission-input.js +0 -174
  454. package/dist/modules/catalog-admission/src/submission-input.js.map +0 -1
  455. package/dist/modules/catalog-admission/src/submission-state.d.ts +0 -9
  456. package/dist/modules/catalog-admission/src/submission-state.d.ts.map +0 -1
  457. package/dist/modules/catalog-admission/src/submission-state.js +0 -24
  458. package/dist/modules/catalog-admission/src/submission-state.js.map +0 -1
  459. package/dist/modules/catalog-admission/src/submission.d.ts +0 -157
  460. package/dist/modules/catalog-admission/src/submission.d.ts.map +0 -1
  461. package/dist/modules/catalog-admission/src/submission.js +0 -346
  462. package/dist/modules/catalog-admission/src/submission.js.map +0 -1
  463. package/dist/modules/catalog-query/src/contracts.d.ts +0 -13
  464. package/dist/modules/catalog-query/src/contracts.d.ts.map +0 -1
  465. package/dist/modules/catalog-query/src/contracts.js +0 -13
  466. package/dist/modules/catalog-query/src/contracts.js.map +0 -1
  467. package/dist/modules/catalog-read-port/src/index.d.ts +0 -34
  468. package/dist/modules/catalog-read-port/src/index.d.ts.map +0 -1
  469. package/dist/modules/catalog-read-port/src/index.js +0 -2
  470. package/dist/modules/catalog-read-port/src/index.js.map +0 -1
  471. package/dist/modules/evidence-comparison/src/domains.d.ts +0 -8
  472. package/dist/modules/evidence-comparison/src/domains.d.ts.map +0 -1
  473. package/dist/modules/evidence-comparison/src/domains.js +0 -16
  474. package/dist/modules/evidence-comparison/src/domains.js.map +0 -1
  475. package/dist/modules/evidence-operations/src/attested-capture.d.ts +0 -75
  476. package/dist/modules/evidence-operations/src/attested-capture.d.ts.map +0 -1
  477. package/dist/modules/evidence-operations/src/attested-capture.js +0 -227
  478. package/dist/modules/evidence-operations/src/attested-capture.js.map +0 -1
  479. package/dist/modules/evidence-operations/src/configuration.d.ts +0 -100
  480. package/dist/modules/evidence-operations/src/configuration.d.ts.map +0 -1
  481. package/dist/modules/evidence-operations/src/configuration.js +0 -199
  482. package/dist/modules/evidence-operations/src/configuration.js.map +0 -1
  483. package/dist/modules/evidence-operations/src/evidence-authority-materialization.d.ts +0 -53
  484. package/dist/modules/evidence-operations/src/evidence-authority-materialization.d.ts.map +0 -1
  485. package/dist/modules/evidence-operations/src/evidence-authority-materialization.js +0 -161
  486. package/dist/modules/evidence-operations/src/evidence-authority-materialization.js.map +0 -1
  487. package/dist/modules/evidence-operations/src/evidence-authority.d.ts +0 -669
  488. package/dist/modules/evidence-operations/src/evidence-authority.d.ts.map +0 -1
  489. package/dist/modules/evidence-operations/src/evidence-authority.js +0 -391
  490. package/dist/modules/evidence-operations/src/evidence-authority.js.map +0 -1
  491. package/dist/modules/evidence-operations/src/evidence-normalization.d.ts +0 -46
  492. package/dist/modules/evidence-operations/src/evidence-normalization.d.ts.map +0 -1
  493. package/dist/modules/evidence-operations/src/evidence-normalization.js +0 -61
  494. package/dist/modules/evidence-operations/src/evidence-normalization.js.map +0 -1
  495. package/dist/modules/evidence-operations/src/evidence-revision.d.ts +0 -5
  496. package/dist/modules/evidence-operations/src/evidence-revision.d.ts.map +0 -1
  497. package/dist/modules/evidence-operations/src/evidence-revision.js +0 -12
  498. package/dist/modules/evidence-operations/src/evidence-revision.js.map +0 -1
  499. package/dist/modules/evidence-operations/src/proof-graph.d.ts +0 -32
  500. package/dist/modules/evidence-operations/src/proof-graph.d.ts.map +0 -1
  501. package/dist/modules/evidence-operations/src/proof-graph.js +0 -208
  502. package/dist/modules/evidence-operations/src/proof-graph.js.map +0 -1
  503. package/dist/modules/evidence-operations/src/retained-revision.d.ts +0 -9
  504. package/dist/modules/evidence-operations/src/retained-revision.d.ts.map +0 -1
  505. package/dist/modules/evidence-operations/src/retained-revision.js +0 -30
  506. package/dist/modules/evidence-operations/src/retained-revision.js.map +0 -1
  507. package/dist/modules/evidence-operations/src/source-authority.d.ts +0 -43
  508. package/dist/modules/evidence-operations/src/source-authority.d.ts.map +0 -1
  509. package/dist/modules/evidence-operations/src/source-authority.js +0 -77
  510. package/dist/modules/evidence-operations/src/source-authority.js.map +0 -1
  511. package/dist/modules/evidence-operations/src/submission-verifier.d.ts +0 -350
  512. package/dist/modules/evidence-operations/src/submission-verifier.d.ts.map +0 -1
  513. package/dist/modules/evidence-operations/src/submission-verifier.js +0 -388
  514. package/dist/modules/evidence-operations/src/submission-verifier.js.map +0 -1
  515. package/dist/modules/evidence-operations/src/url-canonicalization.d.ts +0 -3
  516. package/dist/modules/evidence-operations/src/url-canonicalization.d.ts.map +0 -1
  517. package/dist/modules/evidence-operations/src/url-canonicalization.js +0 -7
  518. package/dist/modules/evidence-operations/src/url-canonicalization.js.map +0 -1
  519. package/dist/modules/projection-identity/src/index.d.ts +0 -14
  520. package/dist/modules/projection-identity/src/index.d.ts.map +0 -1
  521. package/dist/modules/projection-identity/src/index.js +0 -23
  522. package/dist/modules/projection-identity/src/index.js.map +0 -1
  523. package/dist/modules/provenance/src/evidence-bindings.d.ts +0 -11
  524. package/dist/modules/provenance/src/evidence-bindings.d.ts.map +0 -1
  525. package/dist/modules/provenance/src/evidence-bindings.js +0 -49
  526. package/dist/modules/provenance/src/evidence-bindings.js.map +0 -1
  527. package/dist/modules/provenance/src/evidence-coverage.d.ts +0 -36
  528. package/dist/modules/provenance/src/evidence-coverage.d.ts.map +0 -1
  529. package/dist/modules/provenance/src/evidence-coverage.js +0 -131
  530. package/dist/modules/provenance/src/evidence-coverage.js.map +0 -1
  531. package/dist/modules/provenance/src/index.d.ts +0 -80
  532. package/dist/modules/provenance/src/index.d.ts.map +0 -1
  533. package/dist/modules/provenance/src/index.js +0 -535
  534. package/dist/modules/provenance/src/index.js.map +0 -1
  535. package/dist/modules/provenance/src/material-claims.d.ts +0 -262
  536. package/dist/modules/provenance/src/material-claims.d.ts.map +0 -1
  537. package/dist/modules/provenance/src/material-claims.js +0 -383
  538. package/dist/modules/provenance/src/material-claims.js.map +0 -1
  539. package/dist/modules/provenance/src/prospective-evidence.d.ts +0 -6
  540. package/dist/modules/provenance/src/prospective-evidence.d.ts.map +0 -1
  541. package/dist/modules/provenance/src/prospective-evidence.js +0 -61
  542. package/dist/modules/provenance/src/prospective-evidence.js.map +0 -1
  543. package/dist/modules/publication-instance/src/index.d.ts +0 -516
  544. package/dist/modules/publication-instance/src/index.d.ts.map +0 -1
  545. package/dist/modules/publication-instance/src/index.js +0 -34
  546. package/dist/modules/publication-instance/src/index.js.map +0 -1
  547. package/dist/modules/release/src/agent-readiness-authority.d.ts +0 -71
  548. package/dist/modules/release/src/agent-readiness-authority.d.ts.map +0 -1
  549. package/dist/modules/release/src/agent-readiness-authority.js +0 -164
  550. package/dist/modules/release/src/agent-readiness-authority.js.map +0 -1
  551. package/dist/modules/release/src/agent-readiness-publication-inputs.d.ts +0 -11
  552. package/dist/modules/release/src/agent-readiness-publication-inputs.d.ts.map +0 -1
  553. package/dist/modules/release/src/agent-readiness-publication-inputs.js +0 -45
  554. package/dist/modules/release/src/agent-readiness-publication-inputs.js.map +0 -1
  555. package/dist/modules/release/src/agent-readiness-regrade-evidence.d.ts +0 -158
  556. package/dist/modules/release/src/agent-readiness-regrade-evidence.d.ts.map +0 -1
  557. package/dist/modules/release/src/agent-readiness-regrade-evidence.js +0 -164
  558. package/dist/modules/release/src/agent-readiness-regrade-evidence.js.map +0 -1
  559. package/dist/modules/release/src/asset-delta-verifier.d.ts +0 -13
  560. package/dist/modules/release/src/asset-delta-verifier.d.ts.map +0 -1
  561. package/dist/modules/release/src/asset-delta-verifier.js +0 -80
  562. package/dist/modules/release/src/asset-delta-verifier.js.map +0 -1
  563. package/dist/modules/release/src/changes.d.ts +0 -23
  564. package/dist/modules/release/src/changes.d.ts.map +0 -1
  565. package/dist/modules/release/src/changes.js +0 -376
  566. package/dist/modules/release/src/changes.js.map +0 -1
  567. package/dist/modules/release/src/evidence-admission.d.ts +0 -59
  568. package/dist/modules/release/src/evidence-admission.d.ts.map +0 -1
  569. package/dist/modules/release/src/evidence-admission.js +0 -531
  570. package/dist/modules/release/src/evidence-admission.js.map +0 -1
  571. package/dist/modules/release/src/evidence-bundle-tree.d.ts +0 -14
  572. package/dist/modules/release/src/evidence-bundle-tree.d.ts.map +0 -1
  573. package/dist/modules/release/src/evidence-bundle-tree.js +0 -58
  574. package/dist/modules/release/src/evidence-bundle-tree.js.map +0 -1
  575. package/dist/modules/release/src/identity.d.ts +0 -17
  576. package/dist/modules/release/src/identity.d.ts.map +0 -1
  577. package/dist/modules/release/src/identity.js +0 -480
  578. package/dist/modules/release/src/identity.js.map +0 -1
  579. package/dist/modules/release/src/inputs.d.ts +0 -98
  580. package/dist/modules/release/src/inputs.d.ts.map +0 -1
  581. package/dist/modules/release/src/inputs.js +0 -338
  582. package/dist/modules/release/src/inputs.js.map +0 -1
  583. package/dist/modules/release/src/publication-inputs.d.ts +0 -6
  584. package/dist/modules/release/src/publication-inputs.d.ts.map +0 -1
  585. package/dist/modules/release/src/publication-inputs.js +0 -81
  586. package/dist/modules/release/src/publication-inputs.js.map +0 -1
  587. package/dist/modules/release/src/transition.d.ts +0 -41
  588. package/dist/modules/release/src/transition.d.ts.map +0 -1
  589. package/dist/modules/release/src/transition.js +0 -240
  590. package/dist/modules/release/src/transition.js.map +0 -1
  591. package/dist/modules/release/src/verification-changes.d.ts +0 -11
  592. package/dist/modules/release/src/verification-changes.d.ts.map +0 -1
  593. package/dist/modules/release/src/verification-changes.js +0 -29
  594. package/dist/modules/release/src/verification-changes.js.map +0 -1
  595. package/dist/modules/release/src/verification-policies.d.ts +0 -123
  596. package/dist/modules/release/src/verification-policies.d.ts.map +0 -1
  597. package/dist/modules/release/src/verification-policies.js +0 -39
  598. package/dist/modules/release/src/verification-policies.js.map +0 -1
  599. package/dist/modules/release/src/verification-transitions.d.ts +0 -27
  600. package/dist/modules/release/src/verification-transitions.d.ts.map +0 -1
  601. package/dist/modules/release/src/verification-transitions.js +0 -81
  602. package/dist/modules/release/src/verification-transitions.js.map +0 -1
  603. package/dist/modules/sourcey-publication/src/publication-parent-guard.d.ts +0 -17
  604. package/dist/modules/sourcey-publication/src/publication-parent-guard.d.ts.map +0 -1
  605. package/dist/modules/sourcey-publication/src/publication-parent-guard.js +0 -18
  606. package/dist/modules/sourcey-publication/src/publication-parent-guard.js.map +0 -1
  607. package/dist/modules/sourcey-publication/src/publication-parent-relations.d.ts +0 -24
  608. package/dist/modules/sourcey-publication/src/publication-parent-relations.d.ts.map +0 -1
  609. package/dist/modules/sourcey-publication/src/publication-parent-relations.js +0 -104
  610. package/dist/modules/sourcey-publication/src/publication-parent-relations.js.map +0 -1
  611. package/dist/modules/sourcey-publication/src/submission-verification.d.ts +0 -25
  612. package/dist/modules/sourcey-publication/src/submission-verification.d.ts.map +0 -1
  613. package/dist/modules/sourcey-publication/src/submission-verification.js +0 -45
  614. package/dist/modules/sourcey-publication/src/submission-verification.js.map +0 -1
  615. package/dist/modules/sourcey-publication/src/verifier.d.ts +0 -54
  616. package/dist/modules/sourcey-publication/src/verifier.d.ts.map +0 -1
  617. package/dist/modules/sourcey-publication/src/verifier.js +0 -555
  618. package/dist/modules/sourcey-publication/src/verifier.js.map +0 -1
  619. package/dist/packages/catalog-verifier/src/index.d.ts +0 -10
  620. package/dist/packages/catalog-verifier/src/index.d.ts.map +0 -1
  621. package/dist/packages/catalog-verifier/src/index.js +0 -10
  622. 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,72 +0,0 @@
1
- import type { AgentReadinessPolicy } from "../../../contracts/agent-readiness/src/grade-policy.js";
2
- import { 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
- /** Probe runs of the profile's current declaration revision, any order. */
43
- readonly runs: readonly AgentReadinessRunRecord[];
44
- }): EvaluatedPath;
45
- /**
46
- * The verified path of one binding: proof, not the grade (north star §5.6). The
47
- * latest run that did the job, while it is fresh, makes the job `verified`; a
48
- * verified run sets no step and never makes the job `unavailable`, which only
49
- * the probes find. The path rests on that run, or on the latest run when none
50
- * did the job.
51
- */
52
- export declare function evaluatePath(input: {
53
- readonly job: AgentReadinessJob;
54
- readonly policy: Pick<AgentReadinessPolicy, "fresh_for_days">;
55
- /** This binding's verified runs, any order. */
56
- readonly runs: readonly AgentReadinessRunRecord[];
57
- /** When freshness is judged: the refresh's own probe run. */
58
- readonly asOf: string;
59
- }): EvaluatedPath;
60
- /**
61
- * A binding's path: every step the probes', and the job verified where its run
62
- * proved a job the probes found reachable (north star §5.6). A verified job
63
- * grades as a reachable one does, so the run never changes the letter: it
64
- * cannot lift a probed `unavailable` or settle a job the probes left open.
65
- */
66
- export declare function combinePaths(probed: EvaluatedPath, verified: EvaluatedPath): EvaluatedPath;
67
- export declare function notAssessed(step: AgentReadinessStep): AgentReadinessStepResult;
68
- /** The job not yet settled by any run. */
69
- export declare const NOT_ASSESSED_JOB: AgentReadinessJobResult;
70
- /** The job unavailable on the run's declaration revision alone: it names no interface for the job. */
71
- export declare function declaredUnavailable(run: AgentReadinessRunRecord): AgentReadinessJobResult;
72
- //# 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,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAE9B,MAAM,iDAAiD,CAAC;AAczD,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,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACnD,GAAG,aAAa,CAsThB;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,424 +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 answeredRuns = runs.filter((run) => !probeUnanswered(run, id));
26
- const current = answeredRuns.at(-1);
27
- const probe = current?.probes.find(({ operation_id }) => operation_id === id);
28
- if (!current || !probe) {
29
- return {
30
- steps: AGENT_READINESS_STEPS.map(notAssessed),
31
- job: NOT_ASSESSED_JOB,
32
- reproducible: false,
33
- discoveryRun: null,
34
- verifiedRun: null,
35
- standingRuns: [],
36
- };
37
- }
38
- const answer = probe.request?.answer ?? null;
39
- const of = (purpose) => exchangeEvidence(current, (entry) => entry.call_id === id && entry.purpose === purpose);
40
- const requested = of("probe_operation");
41
- const malformed = of("probe_malformed");
42
- const metadata = of("probe_authorization_server");
43
- const chainEvidence = [
44
- ...of("probe_resource_metadata"),
45
- ...metadata,
46
- ...of("probe_client_registration"),
47
- ...of("probe_authorization"),
48
- ];
49
- const pagesOf = (include) => {
50
- const ids = new Set(current.pages.filter(include).map(({ page_id }) => page_id));
51
- return exchangeEvidence(current, (entry) => entry.purpose === "probe_page" && ids.has(entry.call_id));
52
- };
53
- const spec = probe.spec;
54
- const specRead = spec?.fetched === "read" ? spec : null;
55
- const covered = specRead?.covers === true ? specRead : null;
56
- const specEvidence = spec
57
- ? [{ kind: "discovery", run_digest: current.run_digest, attempt_digest: spec.attempt_digest }]
58
- : [];
59
- const declaration = () => [{ kind: "declaration", run_digest: current.run_digest }];
60
- const chain = probe.authority;
61
- const refusal = answer === "offer" || answer === "authority" || answer === "error";
62
- // No account is needed: the request itself answered, or the spec requires no security at
63
- // all. An empty requirement beside a credential's makes security optional: some deployments
64
- // let anonymous calls through (Jira, where an admin grants the public a permission), which
65
- // only an answer shows. A key the listing says travels in the body (Amplitude's), which
66
- // OpenAPI cannot state as a scheme, leaves the spec's empty security saying nothing.
67
- const keyInBody = operation.kind === "http" && operation.body?.credential_field !== undefined;
68
- const anonymous = answer === "success" ||
69
- answer === "offer" ||
70
- ((answer === null || answer === "error" || answer === "page") &&
71
- !keyInBody &&
72
- covered !== null &&
73
- covered.security.length > 0 &&
74
- covered.security.every((kind) => kind === "none"));
75
- // An agent registration path: the chain's auth.md registration, or a sign-up API the listing names.
76
- // A sign-up API answers the probe's GET as an API that asks nothing of a person: a success, an
77
- // offer, or a typed 405 (it signs up by POST). A CAPTCHA or a credential demanded is for people.
78
- const pageStatus = (page) => {
79
- const entry = current.exchanges.find(({ purpose, call_id }) => purpose === "probe_page" && call_id === page.page_id);
80
- return entry?.record.outcome === "responded" ? entry.record.response.status : null;
81
- };
82
- const signUpApi = (page) => page.role === "registration" &&
83
- page.found &&
84
- (page.answer === "success" ||
85
- page.answer === "offer" ||
86
- (page.answer === "error" && pageStatus(page) === 405));
87
- const signedUp = current.pages.some(signUpApi);
88
- const registration = chain?.registration === "agent" || signedUp ? "agent" : (chain?.registration ?? null);
89
- const registrationEvidence = [
90
- ...(chain?.registration ? chainEvidence : []),
91
- ...(signedUp ? pagesOf(signUpApi) : []),
92
- ];
93
- const target = operation.kind === "http" ? operation.url : input.endpoint;
94
- // A read unanswered on every probe since it last answered, the first of them the policy's
95
- // interval before the latest, is the service's standing answer. A run that answered it, or did
96
- // not read it, starts the count again.
97
- const stretches = latest.discovery.unanswered.map((url) => {
98
- const since = runs.findLastIndex(({ discovery }) => !discovery.unanswered.includes(url));
99
- return { url, runs: reproducing(runs.slice(since + 1), input.policy.reproduction) };
100
- });
101
- const standing = new Set(stretches.flatMap(({ url, runs: found }) => (found.length > 0 ? [url] : [])));
102
- const settled = (run) => run.discovery.unanswered.every((url) => standing.has(url));
103
- const settledDiscovery = [...runs].reverse().find(settled);
104
- /** The discovery run that decides: the latest, unless a read there still unanswered could change the reading. */
105
- const discoveryFor = (decided) => decided(latest) || settled(latest) ? latest : (settledDiscovery ?? null);
106
- // A server that answers for authority before listing its tools describes them to the agent it
107
- // authorizes: it asked before any tool was called. A list it refused or cut short describes none.
108
- const toolCalled = current.exchanges.some((entry) => entry.call_id === id && entry.purpose === "probe_operation" && entry.role === "request");
109
- const toolDescribed = operation.kind === "mcp" &&
110
- (probe.tool_listed === true ||
111
- (probe.tool_listed === null && answer === "authority" && !toolCalled));
112
- const finds = (run) => discoverStep(run, current, operation, target, covered, specEvidence, toolDescribed);
113
- const discoveryRun = discoveryFor((candidate) => finds(candidate).outcome === "machine");
114
- const discover = discoveryRun ? finds(discoveryRun) : notAssessed("discover");
115
- const authority = (() => {
116
- if (anonymous) {
117
- return result("authority", "not_applicable", null, answer === null ? specEvidence : requested);
118
- }
119
- if (registration !== null) {
120
- return result("authority", "machine", null, [...requested, ...registrationEvidence]);
121
- }
122
- const authorization = current.exchanges.find((entry) => entry.call_id === id && entry.purpose === "probe_authorization");
123
- if (chain?.client && authorization && consentReached(authorization.record)) {
124
- return result("authority", "approval", "setup", [...requested, ...chainEvidence]);
125
- }
126
- // A key or token scheme, an OAuth flow the agent's own client cannot start, a key the
127
- // listing says travels in the body, or nothing machine-readable: a person hands over a credential.
128
- return result("authority", "workaround", "setup", [
129
- ...requested,
130
- ...chainEvidence,
131
- ...specEvidence,
132
- ...(keyInBody ? declaration() : []),
133
- ]);
134
- })();
135
- // What the agent makes alone lasts until a person claims it later (the shape's A): the vendor's
136
- // claim page this interface lists, once it is there.
137
- const claimed = pagesOf(({ page_id, found }) => input.claimPages.includes(page_id) && found);
138
- const onboard = (() => {
139
- if (anonymous) {
140
- return claimed.length > 0
141
- ? result("onboard", "approval", "setup", [...authority.evidence, ...claimed])
142
- : result("onboard", "not_applicable", null, authority.evidence);
143
- }
144
- // The vendor's decision stands before any way in: whatever registration exists, it decides.
145
- const accessPage = pagesOf(({ page_id, found }) => input.accessGates.includes(page_id) && found);
146
- if (accessPage.length > 0)
147
- return result("onboard", "gated", null, accessPage);
148
- // A setting a person on the account turns on once before the agent can use this interface (an
149
- // organization's MCP write access): a decision made once, whatever way in the agent has.
150
- const turnedOn = pagesOf(({ page_id, found }) => input.accessSettings.includes(page_id) && found);
151
- const agentGetsIn = (evidence) => turnedOn.length > 0 || claimed.length > 0
152
- ? result("onboard", "approval", "setup", [...evidence, ...turnedOn, ...claimed])
153
- : result("onboard", "machine", null, evidence);
154
- if (registration === "agent")
155
- return agentGetsIn(registrationEvidence);
156
- if (registration === "claimable") {
157
- return result("onboard", "approval", "setup", [
158
- ...registrationEvidence,
159
- ...turnedOn,
160
- ...claimed,
161
- ]);
162
- }
163
- // The agent's own OAuth client gets it in once the server takes it to consent (the shape's A).
164
- if (chain?.client && authority.outcome === "approval")
165
- return agentGetsIn(chainEvidence);
166
- // No path for the agent: what the probes found, or the listing itself when they sent nothing.
167
- const evidence = [
168
- ...requested,
169
- ...pagesOf(({ role }) => role === "registration"),
170
- ...chainEvidence,
171
- ...specEvidence,
172
- ];
173
- return result("onboard", "workaround", "setup", evidence.length > 0 ? evidence : declaration());
174
- })();
175
- const pay = (() => {
176
- if (answer === "offer")
177
- return result("pay", "machine", null, requested);
178
- if (covered?.payment)
179
- return result("pay", "machine", null, specEvidence);
180
- const manifests = (run) => target === null
181
- ? []
182
- : run.discovery.facts.filter((found) => found.fact === "payment_manifest" &&
183
- ownDomain(found.descriptor_url, run.discovery.domains) &&
184
- agentReadinessNamesEndpoint(found.value, target));
185
- const run = discoveryFor((candidate) => manifests(candidate).length > 0);
186
- const named = run ? manifests(run) : [];
187
- if (named.length > 0 && run) {
188
- return result("pay", "machine", null, named.map(({ attempt_digest }) => ({
189
- kind: "discovery",
190
- run_digest: run.run_digest,
191
- attempt_digest,
192
- })));
193
- }
194
- if (anonymous) {
195
- return result("pay", "not_applicable", null, answer === null ? specEvidence : requested);
196
- }
197
- if (input.checkoutRuledOut)
198
- return result("pay", "not_applicable", null, declaration());
199
- // An unanswered read could have held a manifest that names the endpoint.
200
- if (!run)
201
- return notAssessed("pay");
202
- // A dead or invented page sets nothing: a page counts once it is found. A balance a person tops
203
- // up by hand recurs (the shape's "manual top-ups"); a checkout puts a card on file once.
204
- const toppedUp = pagesOf(({ role, found }) => role === "top_up" && found);
205
- if (toppedUp.length > 0)
206
- return result("pay", "workaround", "recurring", toppedUp);
207
- const checkout = pagesOf(({ role, found }) => role === "checkout" && found);
208
- return checkout.length > 0
209
- ? result("pay", "workaround", "setup", checkout)
210
- : notAssessed("pay");
211
- })();
212
- const pages = answeredRuns.filter((run) => run.probes.find(({ operation_id }) => operation_id === id)?.request?.answer === "page");
213
- const pageRuns = answer === "page" ? reproducing(pages, input.policy.reproduction) : [];
214
- const pageReproduced = pageRuns.length > 0;
215
- const job = (() => {
216
- // The job's tool answered, or asked for the authority it needs: whatever an anonymous list
217
- // says, the server performs it for an agent with that authority.
218
- if (answer === "success" || answer === "offer" || answer === "authority") {
219
- return jobResult("reachable", requested);
220
- }
221
- // The server lists its tools, the job's is not among them, and its call is refused with an error.
222
- if (operation.kind === "mcp" && probe.tool_listed === false && answer === "error") {
223
- return jobResult("unavailable", requested);
224
- }
225
- if (refusal)
226
- return jobResult("reachable", requested);
227
- if (covered)
228
- return jobResult("reachable", specEvidence);
229
- if (answer === null)
230
- return jobResult("unavailable", specEvidence);
231
- if (pageReproduced) {
232
- return jobResult("unavailable", pageRuns.flatMap((run) => exchangeEvidence(run, (entry) => entry.call_id === id && entry.purpose === "probe_operation")));
233
- }
234
- return NOT_ASSESSED_JOB;
235
- })();
236
- const confirm = (() => {
237
- const read = refusal ? probe.request : answer === "success" ? probe.malformed : null;
238
- if (read) {
239
- const typedRefusal = (read.answer === "offer" || read.answer === "authority" || read.answer === "error") &&
240
- read.typed === true;
241
- const evidence = refusal ? requested : [...requested, ...malformed];
242
- return typedRefusal
243
- ? result("confirm", "machine", null, evidence)
244
- : result("confirm", "workaround", "recurring", evidence);
245
- }
246
- // A page or a spec operation: the errors the spec declares for the job.
247
- return covered?.typed_errors
248
- ? result("confirm", "machine", null, specEvidence)
249
- : result("confirm", "workaround", "recurring", [...requested, ...specEvidence]);
250
- })();
251
- const sustain = (() => {
252
- if (authority.outcome === "not_applicable") {
253
- return result("sustain", "not_applicable", null, authority.evidence);
254
- }
255
- // Either alternative keeps the agent's authority alive: its key operations, or the chain's
256
- // grants, whoever obtained the first token.
257
- if (covered?.key_operations)
258
- return result("sustain", "machine", null, specEvidence);
259
- if (chain !== null) {
260
- if (!chain.renewal)
261
- return result("sustain", "workaround", "recurring", metadata);
262
- return chain.revocation
263
- ? result("sustain", "machine", null, metadata)
264
- : result("sustain", "workaround", "setup", metadata);
265
- }
266
- // A key the vendor expires with no API to renew it: a person replaces it each time (the shape's
267
- // "keys that expire with no renewal API"), at the page this interface lists, once it is there.
268
- const expiring = pagesOf(({ page_id, found }) => input.keyRenewalPages.includes(page_id) && found);
269
- const evidence = [...authority.evidence, ...specEvidence];
270
- return expiring.length > 0
271
- ? result("sustain", "workaround", "recurring", [...evidence, ...expiring])
272
- : result("sustain", "workaround", "setup", evidence);
273
- })();
274
- return {
275
- steps: [discover, authority, onboard, pay, confirm, sustain],
276
- job,
277
- reproducible: answer === "page" && !pageReproduced && covered === null,
278
- discoveryRun,
279
- verifiedRun: null,
280
- standingRuns: stretches.flatMap(({ runs: found }) => found),
281
- };
282
- }
283
- /**
284
- * The verified path of one binding: proof, not the grade (north star §5.6). The
285
- * latest run that did the job, while it is fresh, makes the job `verified`; a
286
- * verified run sets no step and never makes the job `unavailable`, which only
287
- * the probes find. The path rests on that run, or on the latest run when none
288
- * did the job.
289
- */
290
- export function evaluatePath(input) {
291
- const runs = oldestFirst(input.runs);
292
- const latestRun = runs.at(-1);
293
- if (!latestRun)
294
- throw new Error("A verified path needs at least one run.");
295
- const { job } = input;
296
- const succeeded = (run) => run.assertions.length === job.assertions.length &&
297
- job.assertions.every(({ name }) => run.assertions.some(({ assertion, holds }) => assertion === name && holds));
298
- const fresh = (run) => Date.parse(input.asOf) - Date.parse(run.finished_at) <= input.policy.fresh_for_days * DAY_MS;
299
- const proof = [...runs].reverse().find((run) => succeeded(run) && fresh(run));
300
- return {
301
- steps: AGENT_READINESS_STEPS.map(notAssessed),
302
- job: proof
303
- ? jobResult("verified", exchangeEvidence(proof, (entry) => entry.purpose === "job"))
304
- : NOT_ASSESSED_JOB,
305
- reproducible: false,
306
- discoveryRun: null,
307
- verifiedRun: proof ?? latestRun,
308
- standingRuns: [],
309
- };
310
- }
311
- /**
312
- * A binding's path: every step the probes', and the job verified where its run
313
- * proved a job the probes found reachable (north star §5.6). A verified job
314
- * grades as a reachable one does, so the run never changes the letter: it
315
- * cannot lift a probed `unavailable` or settle a job the probes left open.
316
- */
317
- export function combinePaths(probed, verified) {
318
- return {
319
- steps: probed.steps,
320
- job: verified.job.outcome === "verified" && probed.job.outcome === "reachable"
321
- ? verified.job
322
- : probed.job,
323
- reproducible: probed.reproducible,
324
- discoveryRun: probed.discoveryRun,
325
- verifiedRun: verified.verifiedRun,
326
- standingRuns: probed.standingRuns,
327
- };
328
- }
329
- /**
330
- * Discover (north star §5.6): `machine` when the agent finds the interface
331
- * from the vendor's own domains and a machine-readable description covers the
332
- * job. Found: a descriptor fetched on an Entity domain names the job's
333
- * endpoint, or a document written for agents names its origin (the route).
334
- * Covered: the named spec covers the job, the MCP server lists the job's tool
335
- * (or lists tools only after authority), or that document for agents. A spec
336
- * operation has no endpoint to name: its spec, covering the job, is the
337
- * machine-readable interface. Otherwise a setup workaround: a person tells the
338
- * agent where the interface is or how to call it.
339
- */
340
- function discoverStep(run, current, operation, target, covered, specEvidence,
341
- /** An MCP server listed the job's tool, or lists tools only to the agent it authorizes. */
342
- toolDescribed) {
343
- const { attempts, facts, domains } = run.discovery;
344
- const discovery = (attempt) => ({
345
- kind: "discovery",
346
- run_digest: run.run_digest,
347
- attempt_digest: attempt,
348
- });
349
- if (operation.kind === "spec") {
350
- return covered
351
- ? result("discover", "machine", null, specEvidence)
352
- : result("discover", "workaround", "setup", specEvidence);
353
- }
354
- const named = target
355
- ? facts.filter((fact) => agentReadinessFactNamesEndpoint(fact, target) && ownDomain(fact.descriptor_url, domains))
356
- : [];
357
- const described = covered !== null || toolDescribed;
358
- const routed = named.some(({ fact }) => fact === "documentation_route");
359
- if (routed || (named.length > 0 && described)) {
360
- return result("discover", "machine", null, [
361
- ...named.map(({ attempt_digest }) => discovery(attempt_digest)),
362
- ...specEvidence,
363
- ]);
364
- }
365
- const evidence = [...attempts.map(discovery), ...specEvidence];
366
- return result("discover", "workaround", "setup", evidence.length > 0 ? evidence : [{ kind: "declaration", run_digest: current.run_digest }]);
367
- }
368
- /** Whether a URL is on one of the Entity's domains, or a subdomain of one. */
369
- function ownDomain(url, domains) {
370
- const host = new URL(url).hostname.toLowerCase();
371
- return domains.some((domain) => host === domain || host.endsWith(`.${domain}`));
372
- }
373
- /**
374
- * The latest of `found` that reproduce a finding, the fewest that do, or none:
375
- * a revision cites only these (north star §5.4).
376
- */
377
- function reproducing(found, rule) {
378
- for (let start = found.length - rule.attempts; start >= 0; start -= 1) {
379
- const stretch = found.slice(start);
380
- if (reproduced(stretch, rule))
381
- return stretch;
382
- }
383
- return [];
384
- }
385
- /**
386
- * A finding reproduced as the policy asks: in the latest run and in earlier
387
- * ones, at least `attempts` runs whose first and last are the interval apart.
388
- */
389
- function reproduced(found, rule) {
390
- const first = found[0];
391
- const last = found.at(-1);
392
- return (first !== undefined &&
393
- last !== undefined &&
394
- found.length >= rule.attempts &&
395
- Date.parse(last.finished_at) - Date.parse(first.finished_at) >=
396
- rule.minimum_interval_seconds * 1_000);
397
- }
398
- function oldestFirst(runs) {
399
- return [...runs].sort((left, right) => compareInstants(left.finished_at, right.finished_at) ||
400
- (left.run_digest < right.run_digest ? -1 : 1));
401
- }
402
- function exchangeEvidence(run, include) {
403
- return run.exchanges.filter(include).map((entry) => ({
404
- kind: "exchange",
405
- run_digest: run.run_digest,
406
- exchange_digest: entry.record.exchange_digest,
407
- }));
408
- }
409
- function result(step, outcome, timing, evidence) {
410
- return { step, outcome, timing, evidence: evidence.slice(0, MAXIMUM_EVIDENCE) };
411
- }
412
- export function notAssessed(step) {
413
- return { step, outcome: "not_assessed", timing: null, evidence: [] };
414
- }
415
- /** The job not yet settled by any run. */
416
- export const NOT_ASSESSED_JOB = { outcome: "not_assessed", evidence: [] };
417
- function jobResult(outcome, evidence) {
418
- return { outcome, evidence: evidence.slice(0, MAXIMUM_EVIDENCE) };
419
- }
420
- /** The job unavailable on the run's declaration revision alone: it names no interface for the job. */
421
- export function declaredUnavailable(run) {
422
- return jobResult("unavailable", [{ kind: "declaration", run_digest: run.run_digest }]);
423
- }
424
- //# sourceMappingURL=path.js.map