@descryy/mcp 0.11.3 → 0.11.5

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 (441) hide show
  1. package/package.json +20 -20
  2. package/dist/action-handshake.d.ts +0 -38
  3. package/dist/action-handshake.d.ts.map +0 -1
  4. package/dist/action-handshake.js +0 -127
  5. package/dist/action-handshake.js.map +0 -1
  6. package/dist/bin/descry-mcp.d.ts +0 -7
  7. package/dist/bin/descry-mcp.d.ts.map +0 -1
  8. package/dist/bin/descry-mcp.js +0 -72
  9. package/dist/bin/descry-mcp.js.map +0 -1
  10. package/dist/browser/auth.d.ts +0 -84
  11. package/dist/browser/auth.d.ts.map +0 -1
  12. package/dist/browser/auth.js +0 -233
  13. package/dist/browser/auth.js.map +0 -1
  14. package/dist/browser/capability-probe.d.ts +0 -109
  15. package/dist/browser/capability-probe.d.ts.map +0 -1
  16. package/dist/browser/capability-probe.js +0 -201
  17. package/dist/browser/capability-probe.js.map +0 -1
  18. package/dist/browser/driver.d.ts +0 -570
  19. package/dist/browser/driver.d.ts.map +0 -1
  20. package/dist/browser/driver.js +0 -116
  21. package/dist/browser/driver.js.map +0 -1
  22. package/dist/browser/evidence.d.ts +0 -28
  23. package/dist/browser/evidence.d.ts.map +0 -1
  24. package/dist/browser/evidence.js +0 -82
  25. package/dist/browser/evidence.js.map +0 -1
  26. package/dist/browser/fake-driver.d.ts +0 -116
  27. package/dist/browser/fake-driver.d.ts.map +0 -1
  28. package/dist/browser/fake-driver.js +0 -416
  29. package/dist/browser/fake-driver.js.map +0 -1
  30. package/dist/browser/fault-attribution.d.ts +0 -178
  31. package/dist/browser/fault-attribution.d.ts.map +0 -1
  32. package/dist/browser/fault-attribution.js +0 -266
  33. package/dist/browser/fault-attribution.js.map +0 -1
  34. package/dist/browser/graph-write.d.ts +0 -45
  35. package/dist/browser/graph-write.d.ts.map +0 -1
  36. package/dist/browser/graph-write.js +0 -103
  37. package/dist/browser/graph-write.js.map +0 -1
  38. package/dist/browser/identity-graph-write.d.ts +0 -55
  39. package/dist/browser/identity-graph-write.d.ts.map +0 -1
  40. package/dist/browser/identity-graph-write.js +0 -45
  41. package/dist/browser/identity-graph-write.js.map +0 -1
  42. package/dist/browser/page-probe.d.ts +0 -81
  43. package/dist/browser/page-probe.d.ts.map +0 -1
  44. package/dist/browser/page-probe.js +0 -202
  45. package/dist/browser/page-probe.js.map +0 -1
  46. package/dist/browser/playwright-driver.d.ts +0 -114
  47. package/dist/browser/playwright-driver.d.ts.map +0 -1
  48. package/dist/browser/playwright-driver.js +0 -1479
  49. package/dist/browser/playwright-driver.js.map +0 -1
  50. package/dist/browser/provider.d.ts +0 -26
  51. package/dist/browser/provider.d.ts.map +0 -1
  52. package/dist/browser/provider.js +0 -14
  53. package/dist/browser/provider.js.map +0 -1
  54. package/dist/browser/reach-recording-session.d.ts +0 -44
  55. package/dist/browser/reach-recording-session.d.ts.map +0 -1
  56. package/dist/browser/reach-recording-session.js +0 -143
  57. package/dist/browser/reach-recording-session.js.map +0 -1
  58. package/dist/browser/reachability.d.ts +0 -168
  59. package/dist/browser/reachability.d.ts.map +0 -1
  60. package/dist/browser/reachability.js +0 -294
  61. package/dist/browser/reachability.js.map +0 -1
  62. package/dist/browser/registry.d.ts +0 -126
  63. package/dist/browser/registry.d.ts.map +0 -1
  64. package/dist/browser/registry.js +0 -177
  65. package/dist/browser/registry.js.map +0 -1
  66. package/dist/browser/scenario-provenance.d.ts +0 -23
  67. package/dist/browser/scenario-provenance.d.ts.map +0 -1
  68. package/dist/browser/scenario-provenance.js +0 -73
  69. package/dist/browser/scenario-provenance.js.map +0 -1
  70. package/dist/browser/scenario-resolve.d.ts +0 -28
  71. package/dist/browser/scenario-resolve.d.ts.map +0 -1
  72. package/dist/browser/scenario-resolve.js +0 -96
  73. package/dist/browser/scenario-resolve.js.map +0 -1
  74. package/dist/browser/scenario-runner.d.ts +0 -72
  75. package/dist/browser/scenario-runner.d.ts.map +0 -1
  76. package/dist/browser/scenario-runner.js +0 -353
  77. package/dist/browser/scenario-runner.js.map +0 -1
  78. package/dist/browser/stack-parser.d.ts +0 -19
  79. package/dist/browser/stack-parser.d.ts.map +0 -1
  80. package/dist/browser/stack-parser.js +0 -85
  81. package/dist/browser/stack-parser.js.map +0 -1
  82. package/dist/browser/tool-support.d.ts +0 -71
  83. package/dist/browser/tool-support.d.ts.map +0 -1
  84. package/dist/browser/tool-support.js +0 -216
  85. package/dist/browser/tool-support.js.map +0 -1
  86. package/dist/browser/url-scheme.d.ts +0 -14
  87. package/dist/browser/url-scheme.d.ts.map +0 -1
  88. package/dist/browser/url-scheme.js +0 -38
  89. package/dist/browser/url-scheme.js.map +0 -1
  90. package/dist/browser/wait-target.d.ts +0 -37
  91. package/dist/browser/wait-target.d.ts.map +0 -1
  92. package/dist/browser/wait-target.js +0 -54
  93. package/dist/browser/wait-target.js.map +0 -1
  94. package/dist/cancellation.d.ts +0 -20
  95. package/dist/cancellation.d.ts.map +0 -1
  96. package/dist/cancellation.js +0 -41
  97. package/dist/cancellation.js.map +0 -1
  98. package/dist/capped.d.ts +0 -17
  99. package/dist/capped.d.ts.map +0 -1
  100. package/dist/capped.js +0 -15
  101. package/dist/capped.js.map +0 -1
  102. package/dist/credential-store.d.ts +0 -22
  103. package/dist/credential-store.d.ts.map +0 -1
  104. package/dist/credential-store.js +0 -33
  105. package/dist/credential-store.js.map +0 -1
  106. package/dist/disclosure-ledger.d.ts +0 -14
  107. package/dist/disclosure-ledger.d.ts.map +0 -1
  108. package/dist/disclosure-ledger.js +0 -18
  109. package/dist/disclosure-ledger.js.map +0 -1
  110. package/dist/evidence/observed-route-evidence.d.ts +0 -25
  111. package/dist/evidence/observed-route-evidence.d.ts.map +0 -1
  112. package/dist/evidence/observed-route-evidence.js +0 -76
  113. package/dist/evidence/observed-route-evidence.js.map +0 -1
  114. package/dist/heap.d.ts +0 -61
  115. package/dist/heap.d.ts.map +0 -1
  116. package/dist/heap.js +0 -82
  117. package/dist/heap.js.map +0 -1
  118. package/dist/heartbeat.d.ts +0 -46
  119. package/dist/heartbeat.d.ts.map +0 -1
  120. package/dist/heartbeat.js +0 -66
  121. package/dist/heartbeat.js.map +0 -1
  122. package/dist/index.d.ts +0 -32
  123. package/dist/index.d.ts.map +0 -1
  124. package/dist/index.js +0 -19
  125. package/dist/index.js.map +0 -1
  126. package/dist/module-trust.d.ts +0 -37
  127. package/dist/module-trust.d.ts.map +0 -1
  128. package/dist/module-trust.js +0 -77
  129. package/dist/module-trust.js.map +0 -1
  130. package/dist/path-confinement.d.ts +0 -31
  131. package/dist/path-confinement.d.ts.map +0 -1
  132. package/dist/path-confinement.js +0 -44
  133. package/dist/path-confinement.js.map +0 -1
  134. package/dist/planner/predict-then-propose.d.ts +0 -134
  135. package/dist/planner/predict-then-propose.d.ts.map +0 -1
  136. package/dist/planner/predict-then-propose.js +0 -138
  137. package/dist/planner/predict-then-propose.js.map +0 -1
  138. package/dist/planner/propose-journey.d.ts +0 -75
  139. package/dist/planner/propose-journey.d.ts.map +0 -1
  140. package/dist/planner/propose-journey.js +0 -96
  141. package/dist/planner/propose-journey.js.map +0 -1
  142. package/dist/protocol.d.ts +0 -57
  143. package/dist/protocol.d.ts.map +0 -1
  144. package/dist/protocol.js +0 -90
  145. package/dist/protocol.js.map +0 -1
  146. package/dist/registry.d.ts +0 -103
  147. package/dist/registry.d.ts.map +0 -1
  148. package/dist/registry.js +0 -319
  149. package/dist/registry.js.map +0 -1
  150. package/dist/render.d.ts +0 -580
  151. package/dist/render.d.ts.map +0 -1
  152. package/dist/render.js +0 -867
  153. package/dist/render.js.map +0 -1
  154. package/dist/runtime-registry.d.ts +0 -22
  155. package/dist/runtime-registry.d.ts.map +0 -1
  156. package/dist/runtime-registry.js +0 -142
  157. package/dist/runtime-registry.js.map +0 -1
  158. package/dist/sandbox-defaults.d.ts +0 -41
  159. package/dist/sandbox-defaults.d.ts.map +0 -1
  160. package/dist/sandbox-defaults.js +0 -14
  161. package/dist/sandbox-defaults.js.map +0 -1
  162. package/dist/scenarios/browser-run-plan-projection.d.ts +0 -161
  163. package/dist/scenarios/browser-run-plan-projection.d.ts.map +0 -1
  164. package/dist/scenarios/browser-run-plan-projection.js +0 -264
  165. package/dist/scenarios/browser-run-plan-projection.js.map +0 -1
  166. package/dist/scenarios/credential-ref.d.ts +0 -102
  167. package/dist/scenarios/credential-ref.d.ts.map +0 -1
  168. package/dist/scenarios/credential-ref.js +0 -148
  169. package/dist/scenarios/credential-ref.js.map +0 -1
  170. package/dist/scenarios/index.d.ts +0 -7
  171. package/dist/scenarios/index.d.ts.map +0 -1
  172. package/dist/scenarios/index.js +0 -7
  173. package/dist/scenarios/index.js.map +0 -1
  174. package/dist/scenarios/parse.d.ts +0 -18
  175. package/dist/scenarios/parse.d.ts.map +0 -1
  176. package/dist/scenarios/parse.js +0 -212
  177. package/dist/scenarios/parse.js.map +0 -1
  178. package/dist/scenarios/scenario.d.ts +0 -93
  179. package/dist/scenarios/scenario.d.ts.map +0 -1
  180. package/dist/scenarios/scenario.js +0 -27
  181. package/dist/scenarios/scenario.js.map +0 -1
  182. package/dist/scenarios/secret-ref.d.ts +0 -86
  183. package/dist/scenarios/secret-ref.d.ts.map +0 -1
  184. package/dist/scenarios/secret-ref.js +0 -125
  185. package/dist/scenarios/secret-ref.js.map +0 -1
  186. package/dist/scenarios/storage.d.ts +0 -21
  187. package/dist/scenarios/storage.d.ts.map +0 -1
  188. package/dist/scenarios/storage.js +0 -103
  189. package/dist/scenarios/storage.js.map +0 -1
  190. package/dist/server.d.ts +0 -61
  191. package/dist/server.d.ts.map +0 -1
  192. package/dist/server.js +0 -541
  193. package/dist/server.js.map +0 -1
  194. package/dist/session.d.ts +0 -243
  195. package/dist/session.d.ts.map +0 -1
  196. package/dist/session.js +0 -602
  197. package/dist/session.js.map +0 -1
  198. package/dist/tools/alias-kit.d.ts +0 -29
  199. package/dist/tools/alias-kit.d.ts.map +0 -1
  200. package/dist/tools/alias-kit.js +0 -21
  201. package/dist/tools/alias-kit.js.map +0 -1
  202. package/dist/tools/aliases.d.ts +0 -42
  203. package/dist/tools/aliases.d.ts.map +0 -1
  204. package/dist/tools/aliases.js +0 -52
  205. package/dist/tools/aliases.js.map +0 -1
  206. package/dist/tools/analyze-workspace.d.ts +0 -52
  207. package/dist/tools/analyze-workspace.d.ts.map +0 -1
  208. package/dist/tools/analyze-workspace.js +0 -207
  209. package/dist/tools/analyze-workspace.js.map +0 -1
  210. package/dist/tools/analyze.d.ts +0 -163
  211. package/dist/tools/analyze.d.ts.map +0 -1
  212. package/dist/tools/analyze.js +0 -724
  213. package/dist/tools/analyze.js.map +0 -1
  214. package/dist/tools/browser-click.d.ts +0 -18
  215. package/dist/tools/browser-click.d.ts.map +0 -1
  216. package/dist/tools/browser-click.js +0 -110
  217. package/dist/tools/browser-click.js.map +0 -1
  218. package/dist/tools/browser-close-session.d.ts +0 -39
  219. package/dist/tools/browser-close-session.d.ts.map +0 -1
  220. package/dist/tools/browser-close-session.js +0 -120
  221. package/dist/tools/browser-close-session.js.map +0 -1
  222. package/dist/tools/browser-fill.d.ts +0 -18
  223. package/dist/tools/browser-fill.d.ts.map +0 -1
  224. package/dist/tools/browser-fill.js +0 -117
  225. package/dist/tools/browser-fill.js.map +0 -1
  226. package/dist/tools/browser-navigate.d.ts +0 -15
  227. package/dist/tools/browser-navigate.d.ts.map +0 -1
  228. package/dist/tools/browser-navigate.js +0 -104
  229. package/dist/tools/browser-navigate.js.map +0 -1
  230. package/dist/tools/browser-read.d.ts +0 -33
  231. package/dist/tools/browser-read.d.ts.map +0 -1
  232. package/dist/tools/browser-read.js +0 -113
  233. package/dist/tools/browser-read.js.map +0 -1
  234. package/dist/tools/browser-run-scenario.d.ts +0 -28
  235. package/dist/tools/browser-run-scenario.d.ts.map +0 -1
  236. package/dist/tools/browser-run-scenario.js +0 -206
  237. package/dist/tools/browser-run-scenario.js.map +0 -1
  238. package/dist/tools/browser-save-scenario.d.ts +0 -19
  239. package/dist/tools/browser-save-scenario.d.ts.map +0 -1
  240. package/dist/tools/browser-save-scenario.js +0 -447
  241. package/dist/tools/browser-save-scenario.js.map +0 -1
  242. package/dist/tools/browser-select.d.ts +0 -20
  243. package/dist/tools/browser-select.d.ts.map +0 -1
  244. package/dist/tools/browser-select.js +0 -120
  245. package/dist/tools/browser-select.js.map +0 -1
  246. package/dist/tools/browser-snapshot.d.ts +0 -46
  247. package/dist/tools/browser-snapshot.d.ts.map +0 -1
  248. package/dist/tools/browser-snapshot.js +0 -127
  249. package/dist/tools/browser-snapshot.js.map +0 -1
  250. package/dist/tools/browser-start-session.d.ts +0 -24
  251. package/dist/tools/browser-start-session.d.ts.map +0 -1
  252. package/dist/tools/browser-start-session.js +0 -622
  253. package/dist/tools/browser-start-session.js.map +0 -1
  254. package/dist/tools/browser-submit.d.ts +0 -18
  255. package/dist/tools/browser-submit.d.ts.map +0 -1
  256. package/dist/tools/browser-submit.js +0 -106
  257. package/dist/tools/browser-submit.js.map +0 -1
  258. package/dist/tools/browser-type.d.ts +0 -18
  259. package/dist/tools/browser-type.d.ts.map +0 -1
  260. package/dist/tools/browser-type.js +0 -115
  261. package/dist/tools/browser-type.js.map +0 -1
  262. package/dist/tools/browser-wait-for.d.ts +0 -45
  263. package/dist/tools/browser-wait-for.d.ts.map +0 -1
  264. package/dist/tools/browser-wait-for.js +0 -150
  265. package/dist/tools/browser-wait-for.js.map +0 -1
  266. package/dist/tools/browser.d.ts +0 -69
  267. package/dist/tools/browser.d.ts.map +0 -1
  268. package/dist/tools/browser.js +0 -386
  269. package/dist/tools/browser.js.map +0 -1
  270. package/dist/tools/chain.d.ts +0 -41
  271. package/dist/tools/chain.d.ts.map +0 -1
  272. package/dist/tools/chain.js +0 -105
  273. package/dist/tools/chain.js.map +0 -1
  274. package/dist/tools/change-scope.d.ts +0 -25
  275. package/dist/tools/change-scope.d.ts.map +0 -1
  276. package/dist/tools/change-scope.js +0 -110
  277. package/dist/tools/change-scope.js.map +0 -1
  278. package/dist/tools/code-context.d.ts +0 -83
  279. package/dist/tools/code-context.d.ts.map +0 -1
  280. package/dist/tools/code-context.js +0 -416
  281. package/dist/tools/code-context.js.map +0 -1
  282. package/dist/tools/contracts.d.ts +0 -74
  283. package/dist/tools/contracts.d.ts.map +0 -1
  284. package/dist/tools/contracts.js +0 -196
  285. package/dist/tools/contracts.js.map +0 -1
  286. package/dist/tools/cross-pr.d.ts +0 -178
  287. package/dist/tools/cross-pr.d.ts.map +0 -1
  288. package/dist/tools/cross-pr.js +0 -321
  289. package/dist/tools/cross-pr.js.map +0 -1
  290. package/dist/tools/disclosure.d.ts +0 -75
  291. package/dist/tools/disclosure.d.ts.map +0 -1
  292. package/dist/tools/disclosure.js +0 -288
  293. package/dist/tools/disclosure.js.map +0 -1
  294. package/dist/tools/draw-conclusion.d.ts +0 -55
  295. package/dist/tools/draw-conclusion.d.ts.map +0 -1
  296. package/dist/tools/draw-conclusion.js +0 -259
  297. package/dist/tools/draw-conclusion.js.map +0 -1
  298. package/dist/tools/git-context.d.ts +0 -39
  299. package/dist/tools/git-context.d.ts.map +0 -1
  300. package/dist/tools/git-context.js +0 -364
  301. package/dist/tools/git-context.js.map +0 -1
  302. package/dist/tools/git-diff.d.ts +0 -45
  303. package/dist/tools/git-diff.d.ts.map +0 -1
  304. package/dist/tools/git-diff.js +0 -338
  305. package/dist/tools/git-diff.js.map +0 -1
  306. package/dist/tools/git-history.d.ts +0 -16
  307. package/dist/tools/git-history.d.ts.map +0 -1
  308. package/dist/tools/git-history.js +0 -86
  309. package/dist/tools/git-history.js.map +0 -1
  310. package/dist/tools/history.d.ts +0 -34
  311. package/dist/tools/history.d.ts.map +0 -1
  312. package/dist/tools/history.js +0 -121
  313. package/dist/tools/history.js.map +0 -1
  314. package/dist/tools/impact.d.ts +0 -46
  315. package/dist/tools/impact.d.ts.map +0 -1
  316. package/dist/tools/impact.js +0 -225
  317. package/dist/tools/impact.js.map +0 -1
  318. package/dist/tools/index.d.ts +0 -59
  319. package/dist/tools/index.d.ts.map +0 -1
  320. package/dist/tools/index.js +0 -70
  321. package/dist/tools/index.js.map +0 -1
  322. package/dist/tools/kit.d.ts +0 -165
  323. package/dist/tools/kit.d.ts.map +0 -1
  324. package/dist/tools/kit.js +0 -153
  325. package/dist/tools/kit.js.map +0 -1
  326. package/dist/tools/link-workspace.d.ts +0 -24
  327. package/dist/tools/link-workspace.d.ts.map +0 -1
  328. package/dist/tools/link-workspace.js +0 -131
  329. package/dist/tools/link-workspace.js.map +0 -1
  330. package/dist/tools/lookup.d.ts +0 -19
  331. package/dist/tools/lookup.d.ts.map +0 -1
  332. package/dist/tools/lookup.js +0 -63
  333. package/dist/tools/lookup.js.map +0 -1
  334. package/dist/tools/mark-incident.d.ts +0 -28
  335. package/dist/tools/mark-incident.d.ts.map +0 -1
  336. package/dist/tools/mark-incident.js +0 -188
  337. package/dist/tools/mark-incident.js.map +0 -1
  338. package/dist/tools/merged-browser.d.ts +0 -11
  339. package/dist/tools/merged-browser.d.ts.map +0 -1
  340. package/dist/tools/merged-browser.js +0 -20
  341. package/dist/tools/merged-browser.js.map +0 -1
  342. package/dist/tools/merged-context.d.ts +0 -11
  343. package/dist/tools/merged-context.d.ts.map +0 -1
  344. package/dist/tools/merged-context.js +0 -21
  345. package/dist/tools/merged-context.js.map +0 -1
  346. package/dist/tools/merged-observe.d.ts +0 -13
  347. package/dist/tools/merged-observe.d.ts.map +0 -1
  348. package/dist/tools/merged-observe.js +0 -21
  349. package/dist/tools/merged-observe.js.map +0 -1
  350. package/dist/tools/merged-workspace.d.ts +0 -14
  351. package/dist/tools/merged-workspace.d.ts.map +0 -1
  352. package/dist/tools/merged-workspace.js +0 -21
  353. package/dist/tools/merged-workspace.js.map +0 -1
  354. package/dist/tools/observe-runtime.d.ts +0 -250
  355. package/dist/tools/observe-runtime.d.ts.map +0 -1
  356. package/dist/tools/observe-runtime.js +0 -1753
  357. package/dist/tools/observe-runtime.js.map +0 -1
  358. package/dist/tools/observe-tests.d.ts +0 -57
  359. package/dist/tools/observe-tests.d.ts.map +0 -1
  360. package/dist/tools/observe-tests.js +0 -368
  361. package/dist/tools/observe-tests.js.map +0 -1
  362. package/dist/tools/observe.d.ts +0 -28
  363. package/dist/tools/observe.d.ts.map +0 -1
  364. package/dist/tools/observe.js +0 -330
  365. package/dist/tools/observe.js.map +0 -1
  366. package/dist/tools/pr-analysis.d.ts +0 -189
  367. package/dist/tools/pr-analysis.d.ts.map +0 -1
  368. package/dist/tools/pr-analysis.js +0 -299
  369. package/dist/tools/pr-analysis.js.map +0 -1
  370. package/dist/tools/pre-push.d.ts +0 -168
  371. package/dist/tools/pre-push.d.ts.map +0 -1
  372. package/dist/tools/pre-push.js +0 -416
  373. package/dist/tools/pre-push.js.map +0 -1
  374. package/dist/tools/predict-reach.d.ts +0 -57
  375. package/dist/tools/predict-reach.d.ts.map +0 -1
  376. package/dist/tools/predict-reach.js +0 -159
  377. package/dist/tools/predict-reach.js.map +0 -1
  378. package/dist/tools/propagation.d.ts +0 -37
  379. package/dist/tools/propagation.d.ts.map +0 -1
  380. package/dist/tools/propagation.js +0 -162
  381. package/dist/tools/propagation.js.map +0 -1
  382. package/dist/tools/propose-journey.d.ts +0 -16
  383. package/dist/tools/propose-journey.d.ts.map +0 -1
  384. package/dist/tools/propose-journey.js +0 -121
  385. package/dist/tools/propose-journey.js.map +0 -1
  386. package/dist/tools/prove-reach.d.ts +0 -74
  387. package/dist/tools/prove-reach.d.ts.map +0 -1
  388. package/dist/tools/prove-reach.js +0 -286
  389. package/dist/tools/prove-reach.js.map +0 -1
  390. package/dist/tools/questions.d.ts +0 -30
  391. package/dist/tools/questions.d.ts.map +0 -1
  392. package/dist/tools/questions.js +0 -232
  393. package/dist/tools/questions.js.map +0 -1
  394. package/dist/tools/refusal-fetch.d.ts +0 -35
  395. package/dist/tools/refusal-fetch.d.ts.map +0 -1
  396. package/dist/tools/refusal-fetch.js +0 -103
  397. package/dist/tools/refusal-fetch.js.map +0 -1
  398. package/dist/tools/runtime-incident.d.ts +0 -33
  399. package/dist/tools/runtime-incident.d.ts.map +0 -1
  400. package/dist/tools/runtime-incident.js +0 -67
  401. package/dist/tools/runtime-incident.js.map +0 -1
  402. package/dist/tools/runtime-journey-drive.d.ts +0 -102
  403. package/dist/tools/runtime-journey-drive.d.ts.map +0 -1
  404. package/dist/tools/runtime-journey-drive.js +0 -247
  405. package/dist/tools/runtime-journey-drive.js.map +0 -1
  406. package/dist/tools/scope.d.ts +0 -45
  407. package/dist/tools/scope.d.ts.map +0 -1
  408. package/dist/tools/scope.js +0 -186
  409. package/dist/tools/scope.js.map +0 -1
  410. package/dist/tools/similar-incidents.d.ts +0 -43
  411. package/dist/tools/similar-incidents.d.ts.map +0 -1
  412. package/dist/tools/similar-incidents.js +0 -179
  413. package/dist/tools/similar-incidents.js.map +0 -1
  414. package/dist/tools/validate.d.ts +0 -133
  415. package/dist/tools/validate.d.ts.map +0 -1
  416. package/dist/tools/validate.js +0 -442
  417. package/dist/tools/validate.js.map +0 -1
  418. package/dist/tools/verb.d.ts +0 -46
  419. package/dist/tools/verb.d.ts.map +0 -1
  420. package/dist/tools/verb.js +0 -78
  421. package/dist/tools/verb.js.map +0 -1
  422. package/dist/tools/verification-status.d.ts +0 -38
  423. package/dist/tools/verification-status.d.ts.map +0 -1
  424. package/dist/tools/verification-status.js +0 -203
  425. package/dist/tools/verification-status.js.map +0 -1
  426. package/dist/tools/verify-claim.d.ts +0 -29
  427. package/dist/tools/verify-claim.d.ts.map +0 -1
  428. package/dist/tools/verify-claim.js +0 -220
  429. package/dist/tools/verify-claim.js.map +0 -1
  430. package/dist/tools/workspace.d.ts +0 -28
  431. package/dist/tools/workspace.d.ts.map +0 -1
  432. package/dist/tools/workspace.js +0 -101
  433. package/dist/tools/workspace.js.map +0 -1
  434. package/dist/transport.d.ts +0 -32
  435. package/dist/transport.d.ts.map +0 -1
  436. package/dist/transport.js +0 -85
  437. package/dist/transport.js.map +0 -1
  438. package/dist/workspace-index.d.ts +0 -164
  439. package/dist/workspace-index.d.ts.map +0 -1
  440. package/dist/workspace-index.js +0 -381
  441. package/dist/workspace-index.js.map +0 -1
@@ -1,321 +0,0 @@
1
- /**
2
- * `cross-pr` — "what does this change collide with, that reading the diff alone
3
- * would not show?"
4
- *
5
- * §14's multi-PR engine, at the protocol level. Four checks exist behind it,
6
- * for a reason worth stating rather than discovering: a check is available
7
- * exactly when something already produces its input.
8
- *
9
- * | check | § | input | today |
10
- * | --- | --- | --- | --- |
11
- * | hidden dependency | 14.8 | `CHANGES_WITH` edges, already in the graph | **runs** |
12
- * | overlap scoring | 14.3 | stored PR scopes | **runs, over whatever is stored** |
13
- * | superseded | 14.5 | git blob ids at head and at base's tip | **runs** |
14
- * | migration heads | 14.6 | base's and head's migration files, read directly from git | **runs** |
15
- *
16
- * §14.8 is first because it is the one that costs nothing: the edges already
17
- * exist, it needs no per-PR storage, and it works at R0 in any language with no
18
- * adapter beyond file paths. For a repository whose language has no adapter at
19
- * all, this is the check that still fires.
20
- *
21
- * **Migration heads answers the diff-precise question this section once said
22
- * was out of scope for an MCP tool call** — `readMigrationsAcrossChange`
23
- * (`sources/migrations/across-change.ts`) reads base's and head's migration
24
- * files directly with `git ls-tree`/`git show`, so it needs no language
25
- * adapter and no re-resolution of the graph against two commits. `ran` is
26
- * false only when neither side has a migration format this producer
27
- * recognises — never because a producer has not run yet.
28
- *
29
- * ## Why a check that still cannot run is declared rather than omitted
30
- *
31
- * `contracts.ts` set this precedent and the reasoning transfers unchanged: a
32
- * tool that silently offers three of four checks lets a caller read "nothing
33
- * found" as "nothing there". A blocked check names the producer it is
34
- * waiting for, so the gap is actionable rather than mysterious.
35
- *
36
- * ## Everything here is Class C and that is not a defect to be fixed
37
- *
38
- * Co-change is evidence about **people**, not program structure — a pair that
39
- * moved together two hundred times is a stronger hint and is still a hint. The
40
- * checks compute their own reliability rather than being told it, and each
41
- * finding carries the sentence that must travel with it. A caller rendering
42
- * these as defects has broken principle 4 at the last gate. Migration heads is
43
- * the one exception worth naming: a genuine fork in the revision chain is
44
- * closer to a defect than a hint, but it is left at Class C here too, because
45
- * this check cannot yet tell a legitimate two-branch merge-in-progress from an
46
- * actual conflict — that distinction is left to the migration-integrity
47
- * checks in `validate`, which are provable from the graph alone.
48
- */
49
- import { changedFiles, findHiddenDependencies, findOverlaps, findSuperseded, nodesInFiles, readMigrationsAcrossChange, ScopeStore, supersededCandidates, } from "@descryy/core";
50
- import { answer, briefNode, optionalInteger, optionalString, requiredString, } from "./kit.js";
51
- import { capped } from "../capped.js";
52
- const SCHEMA = {
53
- type: "object",
54
- properties: {
55
- base: {
56
- type: "string",
57
- description: "The branch this change would merge into. Required — there is no defensible default, and " +
58
- "guessing one silently changes which diff the answer describes.",
59
- },
60
- head: { type: "string", description: "The tip being reviewed. Default HEAD." },
61
- limit: { type: "integer", minimum: 1, description: "Cap on findings per check. Default 10." },
62
- },
63
- required: ["base"],
64
- additionalProperties: false,
65
- };
66
- /**
67
- * Checks whose input no producer writes yet.
68
- *
69
- * Named here rather than in prose so the reply carries them as data a caller
70
- * can act on. Each says what would have to exist, not merely that it does not.
71
- */
72
- const BLOCKED = [];
73
- async function run(args, ctx) {
74
- const base = requiredString(args, "base");
75
- const head = optionalString(args, "head") ?? "HEAD";
76
- const limit = optionalInteger(args, "limit", 1) ?? 10;
77
- const { session } = ctx;
78
- const stamp = session.provider().baseStamp();
79
- const envelope = {
80
- resolutionFloor: 0,
81
- commitSha: stamp.commitSha,
82
- graphBuiltAt: stamp.graphBuiltAt,
83
- irSchemaVersion: stamp.irSchemaVersion,
84
- commitSpread: stamp.commitSpread,
85
- repoCount: stamp.repoCount,
86
- // A file's presence or absence in a diff, and which symbols two changes both
87
- // name, are name-level facts. Both still cap at C on R0 evidence — the
88
- // carve-out that lifts a name-level fact to A begins at R2.
89
- nameLevel: true,
90
- };
91
- // §14.6 — independent of whether the main diff below succeeds: it reads
92
- // base's and head's migration files directly from git (`ls-tree`/`show`),
93
- // not a comparison that needs the graph or the changed-file list. Computed
94
- // once, up front, so both early-return paths below — a rejected range and a
95
- // genuinely empty diff — still get a real answer rather than one about a
96
- // question this check never asked.
97
- ctx.progress("Reading migrations on both sides");
98
- let migrations = null;
99
- let migrationFailure = null;
100
- try {
101
- migrations = await readMigrationsAcrossChange(session.repoPath, base, head);
102
- }
103
- catch (error) {
104
- // One check failing is not four checks failing. Recorded rather than
105
- // thrown, and `ran: false` with a reason is what the caller reads.
106
- migrationFailure = error.message.trim();
107
- }
108
- const migrationHeads = {
109
- ran: migrations?.report.analysed === true,
110
- baseHead: migrations?.baseHead ?? null,
111
- conflict: migrations?.report.conflict ?? null,
112
- dependencies: migrations?.report.dependencies ?? [],
113
- duplicateRevisions: migrations?.report.duplicateRevisions ?? [],
114
- complete: migrations?.report.complete ?? false,
115
- checked: migrations?.report.checked ?? {
116
- changes: 0,
117
- migrations: 0,
118
- withUnknownParents: 0,
119
- heads: 0,
120
- },
121
- refused: [
122
- ...(migrations?.base.refusals ?? []),
123
- ...(migrations?.change.refusals ?? []),
124
- ].map((r) => ({ file: r.file, reason: r.reason })),
125
- misplaced: migrations?.misplaced ?? [],
126
- };
127
- const migrationHeadsNotes = [];
128
- if (migrationFailure !== null) {
129
- migrationHeadsNotes.push(`The migration head check could not read one of the two revisions: ${migrationFailure}. ` +
130
- "That is a failure of this check, not a finding that the merge leaves one head.");
131
- }
132
- else if (migrations !== null) {
133
- migrationHeadsNotes.push(...migrations.notes);
134
- if (migrationHeads.misplaced.length > 0) {
135
- migrationHeadsNotes.push(`${migrationHeads.misplaced.length} well-formed migration(s) are in a location no ` +
136
- "migration tool looks at, so nothing will run them and they are not in the head " +
137
- `computation: ${migrationHeads.misplaced.map((m) => m.file).join(", ")}.`);
138
- }
139
- if (!migrationHeads.ran) {
140
- migrationHeadsNotes.push("No migration format this producer recognises was found on either side, so no head " +
141
- "computation ran. Two of the four common families declare no DAG at all and cannot " +
142
- "have this failure; a repository using one of them is not being told it is clean.");
143
- }
144
- }
145
- ctx.progress(`Diffing ${base}...${head}`, 1, 3);
146
- let files;
147
- try {
148
- files = await changedFiles(session.repoPath, base, head);
149
- }
150
- catch (error) {
151
- return answer({
152
- ...envelope,
153
- headline: `Could not diff ${base}...${head}.`,
154
- state: "refused",
155
- data: { blocked: BLOCKED, migrationHeads },
156
- notes: [
157
- `git rejected the range: ${error.message.trim()}.`,
158
- "No check ran, which is not a finding that this change collides with nothing.",
159
- ...migrationHeadsNotes,
160
- ],
161
- });
162
- }
163
- if (files.length === 0) {
164
- return answer({
165
- ...envelope,
166
- headline: "The diff is empty.",
167
- data: { changedFiles: 0, blocked: BLOCKED, migrationHeads },
168
- notes: ["An empty diff is a real answer: there is nothing to collide with.", ...migrationHeadsNotes],
169
- });
170
- }
171
- ctx.progress(`Resolving ${files.length} changed file(s)`, 2, 3);
172
- const resolved = nodesInFiles(session.store().driver, files);
173
- // §14.8 — the historically coupled file that was NOT touched.
174
- ctx.progress("Reading co-change history", 3, 3);
175
- const hidden = findHiddenDependencies(session.provider(), resolved.nodes.map((n) => n.id), resolved.missing, { limit });
176
- // §14.3 — overlap against every scope computed on this same graph. Nothing
177
- // writes `pr_scopes` yet, so this ordinarily finds fewer than two and says so;
178
- // the check reports that as "no pair could be compared", never as "no
179
- // conflicts", which is the distinction it exists to hold.
180
- const scopes = stamp.commitSha === null
181
- ? []
182
- : new ScopeStore(session.store().driver).loadForGraph(session.config.repo, stamp.commitSha);
183
- const overlaps = findOverlaps(scopes, { limit });
184
- // §14.5 — is this work already on base? Producer and check both in core: git
185
- // computes the content hashes, so nothing here reads code.
186
- ctx.progress("Comparing against base");
187
- const produced = await supersededCandidates(session.repoPath, base, head);
188
- const superseded = findSuperseded(produced.candidates, {
189
- fingerprintBasis: produced.fingerprintBasis,
190
- });
191
- // B8 — `remaining` used to be every not-already-in-base comparison, with no
192
- // cap at all: one entry per changed file, so the reply scaled with the
193
- // diff regardless of `limit`. Capped after the already-in-base filter, so
194
- // the cap counts what would be shown rather than what was compared.
195
- const remainingAll = superseded.comparisons
196
- .filter((c) => c.verdict !== "already-in-base")
197
- .map((c) => ({ file: c.file, diffType: c.diffType, verdict: c.verdict }));
198
- const remainingCap = capped(remainingAll, limit);
199
- const notes = [
200
- ...hidden.notes,
201
- ...overlaps.notes,
202
- ...produced.notes,
203
- ...superseded.notes,
204
- ...migrationHeadsNotes,
205
- ];
206
- if (stamp.commitSha === null) {
207
- notes.push("The graph carries no commit sha, so no stored PR scope could be matched to it. Overlap " +
208
- "scoring did not run — scopes are only comparable against the graph they were computed on.");
209
- }
210
- if (remainingCap.detail !== null) {
211
- notes.push(`${remainingCap.detail.total - remainingCap.detail.shown} further file(s) not yet matched to ` +
212
- `base are not listed — the reply is capped at ${limit}. Raise "limit" to see them.`);
213
- }
214
- if (BLOCKED.length > 0) {
215
- notes.push(`${BLOCKED.length} of the four multi-PR checks did not run because nothing produces their ` +
216
- `input yet: ${BLOCKED.map((b) => b.check).join(", ")}. Each is listed in "blocked" with ` +
217
- "what it is waiting for. Their absence is not a clean result.");
218
- }
219
- // `refused` only when NOTHING looked at anything. One check producing a
220
- // real answer is a real answer, and burying it behind a caveat about a
221
- // different question is what `contracts.ts` refuses for the same reason.
222
- const anythingRan = hidden.data.analysed || scopes.length >= 2 || superseded.analysed || migrationHeads.ran;
223
- // B8 (part 2) — `truncated` used to forward only `hidden.truncated`, so
224
- // capping in `overlaps` or in `remaining` (above) went undisclosed on the
225
- // wire even when the prose said so. Three checks can each independently
226
- // withhold rows; this merges all three into the one combined count
227
- // `render.ts` puts on the envelope, rather than reporting one check's and
228
- // silently dropping the other two's.
229
- const truncationParts = [
230
- { shown: hidden.data.findings.length, total: hidden.data.findingsTotal },
231
- { shown: overlaps.findings.length, total: overlaps.findingsTotal },
232
- { shown: remainingCap.shown.length, total: remainingAll.length },
233
- ];
234
- const shownAcrossChecks = truncationParts.reduce((sum, part) => sum + part.shown, 0);
235
- const totalAcrossChecks = truncationParts.reduce((sum, part) => sum + part.total, 0);
236
- const anyCheckTruncated = totalAcrossChecks > shownAcrossChecks;
237
- // MK-7: the leading clause, worded to never read as a defect claim — this
238
- // file's own header is explicit that every finding here is Class C evidence
239
- // about people, not program structure, and "N found" would read exactly
240
- // like the graded verdict `validate`/`contracts` give their real defects.
241
- const hintCount = hidden.data.findings.length + overlaps.findings.length;
242
- const verdict = hintCount === 0 ? "No collisions detected" : `${hintCount} potential collision(s) to review`;
243
- return {
244
- result: {
245
- data: {
246
- changedFiles: files.length,
247
- resolvedNodes: resolved.nodes.length,
248
- hiddenDependencies: {
249
- ran: hidden.data.analysed,
250
- findings: hidden.data.findings.map((f) => ({
251
- ...briefNode(f.node),
252
- coupledTo: f.coupledTo.map((c) => ({ file: c.node.file, support: c.support })),
253
- strongestSupport: f.strongestSupport,
254
- reliability: f.reliability,
255
- disclosure: f.disclosure,
256
- })),
257
- findingsTotal: hidden.data.findingsTotal,
258
- checked: hidden.data.checked,
259
- unresolvedChanged: hidden.data.unresolvedChanged,
260
- },
261
- overlaps: {
262
- ran: scopes.length >= 2,
263
- scopesCompared: scopes.length,
264
- findings: overlaps.findings,
265
- findingsTotal: overlaps.findingsTotal,
266
- incomparable: overlaps.incomparable,
267
- checked: overlaps.checked,
268
- },
269
- superseded: {
270
- ran: superseded.analysed,
271
- verdict: superseded.superseded,
272
- counts: superseded.counts,
273
- reliability: superseded.reliability,
274
- disclosure: superseded.disclosure,
275
- remaining: remainingCap.shown,
276
- },
277
- migrationHeads,
278
- blocked: BLOCKED,
279
- },
280
- stamp: hidden.stamp,
281
- truncated: anyCheckTruncated,
282
- notes,
283
- },
284
- ...(anyCheckTruncated
285
- ? { truncatedDetail: { shown: shownAcrossChecks, total: totalAcrossChecks, more: null } }
286
- : {}),
287
- ...(anythingRan ? {} : { state: "refused" }),
288
- nameLevel: true,
289
- headline: anythingRan
290
- ? `${verdict}. ${hidden.data.findings.length} historically coupled file(s) were not touched; ` +
291
- `${overlaps.findings.length} overlapping change pair(s) scored above the conflict ` +
292
- `threshold; ${superseded.superseded ? "this change's work is already on base" : `${superseded.counts.alreadyInBase} of ${superseded.counts.total} touched file(s) already match base`}; ` +
293
- `${!migrationHeads.ran
294
- ? "no migration DAG was read"
295
- : migrationHeads.conflict === null
296
- ? `the merge leaves ${migrationHeads.checked.heads} migration head`
297
- : "the merge would leave more than one migration head"}; ${BLOCKED.length} of four checks could not run.`
298
- : "No multi-PR check was able to run on this change. That is a statement about the " +
299
- "evidence available, not about the change.",
300
- };
301
- }
302
- export const crossPrTool = {
303
- name: "cross_pr",
304
- class: "read",
305
- tier: "conclusion",
306
- version: "1.0.0",
307
- title: "Cross-change collisions",
308
- description: "What this change collides with that reading its diff alone would not show: files it " +
309
- "historically moves with and did not touch this time (§14.8), other in-flight changes " +
310
- "editing the same important nodes (§14.3), whether the work is already on base by another " +
311
- "route (§14.5), and whether merging it would leave the migration runner with more than one " +
312
- "head (§14.6, computed over base's migrations and this change's together, read directly from " +
313
- "git — no language adapter needed). Findings are Class C hints about how people edit this " +
314
- "repository, never claims about what breaks; a migration-head fork is reported the same way, " +
315
- "because this check cannot yet tell a legitimate merge-in-progress from a real conflict. Any " +
316
- "check whose input no producer writes is declared in \"blocked\" with what it is waiting for " +
317
- "rather than silently omitted.",
318
- inputSchema: SCHEMA,
319
- run,
320
- };
321
- //# sourceMappingURL=cross-pr.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cross-pr.js","sourceRoot":"","sources":["../../src/tools/cross-pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,UAAU,EACV,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAavB,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,cAAc,GAIf,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAq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AQ,CAAC,MAAM,kDAAkD;gBAC5F,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,wDAAwD;gBACnF,cAAc,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,aAAa,OAAO,UAAU,CAAC,MAAM,CAAC,KAAK,qCAAqC,IAAI;gBACzL,GACE,CAAC,cAAc,CAAC,GAAG;oBACjB,CAAC,CAAC,2BAA2B;oBAC7B,CAAC,CAAC,cAAc,CAAC,QAAQ,KAAK,IAAI;wBAChC,CAAC,CAAC,oBAAoB,cAAc,CAAC,OAAO,CAAC,KAAK,iBAAiB;wBACnE,CAAC,CAAC,oDACR,KAAK,OAAO,CAAC,MAAM,gCAAgC;YACrD,CAAC,CAAC,kFAAkF;gBAClF,2CAA2C;KAChD,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAmB;IACzC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,sFAAsF;QACtF,uFAAuF;QACvF,2FAA2F;QAC3F,4FAA4F;QAC5F,8FAA8F;QAC9F,2FAA2F;QAC3F,8FAA8F;QAC9F,8FAA8F;QAC9F,8FAA8F;QAC9F,+BAA+B;IACjC,WAAW,EAAE,MAAM;IACnB,GAAG;CACJ,CAAC"}
@@ -1,75 +0,0 @@
1
- /**
2
- * `disclosure` — merges `verification_status` and `refusal_fetch` behind one
3
- * `verb` (mcp-surface-consolidation.md group 3, §3.4: both read/evidence, and
4
- * both answer the *coverage* axis — what the graph did or did not reach —
5
- * rather than a finding's confidence, so the merge preserves the distinction
6
- * the five-state model exists to protect).
7
- *
8
- * `refusal_fetch` is **not** "why a call refused" — read its own section
9
- * below before touching the "unresolved" verb. It summarises and paginates
10
- * the graph's ledger of references an adapter could not resolve, and this
11
- * merge is required to keep three things exactly as they were:
12
- *
13
- * 1. **The summary-plus-opaque-handle shape.** No `handle` mints a fresh
14
- * summary (count, one exemplar, a handle); a `handle` redeems a page. A
15
- * single flat schema cannot express "these two properties are alternate
16
- * entry points", so the shape lives in the verb's own logic, unchanged.
17
- * 2. **The deliberate `{ classified: false }` read.** The default `true`
18
- * would silently drop unclassified rows (DEC-243) — this is not a stray
19
- * argument to simplify away.
20
- * 3. **The uncapped population read.** There is no `limit` on "unresolved":
21
- * the population this verb summarises must stay stable across a page's
22
- * lifetime, and a cap here would make that population caller-controlled.
23
- *
24
- * Both verbs' behaviour is otherwise unchanged from the tool each replaces.
25
- */
26
- import type { ResolutionLevel } from "@descryy/ir";
27
- import { type ToolDefinition } from "./kit.ts";
28
- export type DisclosureVerb = "coverage" | "unresolved";
29
- export interface VerificationStatusExercisedItem {
30
- readonly ref: string;
31
- readonly resolution: ResolutionLevel;
32
- }
33
- export interface VerificationStatusData {
34
- readonly checked: readonly string[];
35
- readonly exercised: readonly VerificationStatusExercisedItem[];
36
- readonly notExercised: readonly {
37
- readonly scope: string;
38
- readonly reason: string;
39
- }[];
40
- readonly verifiedByTests: readonly VerificationStatusTestedItem[];
41
- }
42
- export interface VerificationStatusTestedItem {
43
- readonly ref: string;
44
- readonly direct: boolean;
45
- readonly tests: readonly {
46
- readonly qualifiedName: string;
47
- readonly outcome: string;
48
- readonly runId: string;
49
- }[];
50
- }
51
- export interface RefusalFetchSummaryItem {
52
- readonly fromNodeId: string;
53
- readonly edgeType: string;
54
- readonly rawTarget: string;
55
- readonly file: string | null;
56
- readonly line: number | null;
57
- readonly producedBy: string;
58
- readonly reason: string;
59
- }
60
- export interface RefusalFetchSummaryData {
61
- readonly kind: "summary";
62
- readonly count: number;
63
- readonly exemplar: string | null;
64
- readonly handle: string | null;
65
- }
66
- export interface RefusalFetchPageData {
67
- readonly kind: "page";
68
- readonly items: readonly RefusalFetchSummaryItem[];
69
- readonly total: number;
70
- readonly nextHandle: string | null;
71
- }
72
- export type RefusalFetchData = RefusalFetchSummaryData | RefusalFetchPageData;
73
- export type DisclosureData = VerificationStatusData | RefusalFetchData;
74
- export declare const disclosureTool: ToolDefinition;
75
- //# sourceMappingURL=disclosure.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"disclosure.d.ts","sourceRoot":"","sources":["../../src/tools/disclosure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAYH,OAAO,KAAK,EAA4B,eAAe,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAMlB,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AAIvD,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAC/D,QAAQ,CAAC,YAAY,EAAE,SAAS;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtF,QAAQ,CAAC,eAAe,EAAE,SAAS,4BAA4B,EAAE,CAAC;CACnE;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS;QACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,EAAE,CAAC;CACL;AAwED,MAAM,WAA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