@ghx-dev/core 0.1.0-beta.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 (319) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +212 -0
  3. package/dist/agent-interface/prompt/main-skill.d.ts +3 -0
  4. package/dist/agent-interface/prompt/main-skill.js +7 -0
  5. package/dist/agent-interface/prompt/main-skill.js.map +1 -0
  6. package/dist/agent-interface/tools/execute-tool.d.ts +16 -0
  7. package/dist/agent-interface/tools/execute-tool.js +7 -0
  8. package/dist/agent-interface/tools/execute-tool.js.map +1 -0
  9. package/dist/agent-interface/tools/explain-tool.d.ts +11 -0
  10. package/dist/agent-interface/tools/explain-tool.js +9 -0
  11. package/dist/agent-interface/tools/explain-tool.js.map +1 -0
  12. package/dist/agent-interface/tools/list-capabilities-tool.d.ts +7 -0
  13. package/dist/agent-interface/tools/list-capabilities-tool.js +9 -0
  14. package/dist/agent-interface/tools/list-capabilities-tool.js.map +1 -0
  15. package/dist/agent.d.ts +7 -0
  16. package/dist/agent.js +21 -0
  17. package/dist/agent.js.map +1 -0
  18. package/dist/chunk-2W4L5YCC.js +116 -0
  19. package/dist/chunk-2W4L5YCC.js.map +1 -0
  20. package/dist/chunk-3RAT5BCB.js +584 -0
  21. package/dist/chunk-3RAT5BCB.js.map +1 -0
  22. package/dist/chunk-3RJCF42N.js +16 -0
  23. package/dist/chunk-3RJCF42N.js.map +1 -0
  24. package/dist/chunk-573MDG3I.js +18 -0
  25. package/dist/chunk-573MDG3I.js.map +1 -0
  26. package/dist/chunk-5JRLVOF2.js +50 -0
  27. package/dist/chunk-5JRLVOF2.js.map +1 -0
  28. package/dist/chunk-B6RLMKS4.js +41 -0
  29. package/dist/chunk-B6RLMKS4.js.map +1 -0
  30. package/dist/chunk-BJHVAFTN.js +42 -0
  31. package/dist/chunk-BJHVAFTN.js.map +1 -0
  32. package/dist/chunk-D746VR3B.js +38 -0
  33. package/dist/chunk-D746VR3B.js.map +1 -0
  34. package/dist/chunk-DJIEG6K7.js +20 -0
  35. package/dist/chunk-DJIEG6K7.js.map +1 -0
  36. package/dist/chunk-DLKIQBK6.js +106 -0
  37. package/dist/chunk-DLKIQBK6.js.map +1 -0
  38. package/dist/chunk-EBRDO4Y6.js +31 -0
  39. package/dist/chunk-EBRDO4Y6.js.map +1 -0
  40. package/dist/chunk-FXN6IIT5.js +14 -0
  41. package/dist/chunk-FXN6IIT5.js.map +1 -0
  42. package/dist/chunk-GPU4P7UG.js +92 -0
  43. package/dist/chunk-GPU4P7UG.js.map +1 -0
  44. package/dist/chunk-MMG6CIKK.js +44 -0
  45. package/dist/chunk-MMG6CIKK.js.map +1 -0
  46. package/dist/chunk-MT4U5DYD.js +88 -0
  47. package/dist/chunk-MT4U5DYD.js.map +1 -0
  48. package/dist/chunk-NFF5VF4U.js +28 -0
  49. package/dist/chunk-NFF5VF4U.js.map +1 -0
  50. package/dist/chunk-Q4RTT3DV.js +209 -0
  51. package/dist/chunk-Q4RTT3DV.js.map +1 -0
  52. package/dist/chunk-QEAMC4IJ.js +34 -0
  53. package/dist/chunk-QEAMC4IJ.js.map +1 -0
  54. package/dist/chunk-QX34GTH6.js +30 -0
  55. package/dist/chunk-QX34GTH6.js.map +1 -0
  56. package/dist/chunk-QZZC53HF.js +38 -0
  57. package/dist/chunk-QZZC53HF.js.map +1 -0
  58. package/dist/chunk-RUQXGZ35.js +34 -0
  59. package/dist/chunk-RUQXGZ35.js.map +1 -0
  60. package/dist/chunk-TCLMLVUQ.js +38 -0
  61. package/dist/chunk-TCLMLVUQ.js.map +1 -0
  62. package/dist/chunk-TDTKOJKN.js +52 -0
  63. package/dist/chunk-TDTKOJKN.js.map +1 -0
  64. package/dist/chunk-UGWIZ3RI.js +7 -0
  65. package/dist/chunk-UGWIZ3RI.js.map +1 -0
  66. package/dist/chunk-UOJWOHRM.js +16 -0
  67. package/dist/chunk-UOJWOHRM.js.map +1 -0
  68. package/dist/chunk-VD5NXQP7.js +42 -0
  69. package/dist/chunk-VD5NXQP7.js.map +1 -0
  70. package/dist/chunk-W2TKG2UL.js +37 -0
  71. package/dist/chunk-W2TKG2UL.js.map +1 -0
  72. package/dist/chunk-W6ROKCY5.js +28 -0
  73. package/dist/chunk-W6ROKCY5.js.map +1 -0
  74. package/dist/chunk-WYSY75U7.js +156 -0
  75. package/dist/chunk-WYSY75U7.js.map +1 -0
  76. package/dist/chunk-YNNDBMNR.js +113 -0
  77. package/dist/chunk-YNNDBMNR.js.map +1 -0
  78. package/dist/chunk-YNQNHCRS.js +198 -0
  79. package/dist/chunk-YNQNHCRS.js.map +1 -0
  80. package/dist/chunk-YQDQX4BT.js +624 -0
  81. package/dist/chunk-YQDQX4BT.js.map +1 -0
  82. package/dist/cli/commands/capabilities-explain.d.ts +3 -0
  83. package/dist/cli/commands/capabilities-explain.js +10 -0
  84. package/dist/cli/commands/capabilities-explain.js.map +1 -0
  85. package/dist/cli/commands/capabilities-list.d.ts +3 -0
  86. package/dist/cli/commands/capabilities-list.js +10 -0
  87. package/dist/cli/commands/capabilities-list.js.map +1 -0
  88. package/dist/cli/commands/doctor.d.ts +3 -0
  89. package/dist/cli/commands/doctor.js +7 -0
  90. package/dist/cli/commands/doctor.js.map +1 -0
  91. package/dist/cli/commands/routes.d.ts +3 -0
  92. package/dist/cli/commands/routes.js +7 -0
  93. package/dist/cli/commands/routes.js.map +1 -0
  94. package/dist/cli/commands/run.d.ts +3 -0
  95. package/dist/cli/commands/run.js +31 -0
  96. package/dist/cli/commands/run.js.map +1 -0
  97. package/dist/cli/commands/setup.d.ts +3 -0
  98. package/dist/cli/commands/setup.js +7 -0
  99. package/dist/cli/commands/setup.js.map +1 -0
  100. package/dist/cli/formatters/json.d.ts +3 -0
  101. package/dist/cli/formatters/json.js +8 -0
  102. package/dist/cli/formatters/json.js.map +1 -0
  103. package/dist/cli/formatters/table.d.ts +3 -0
  104. package/dist/cli/formatters/table.js +8 -0
  105. package/dist/cli/formatters/table.js.map +1 -0
  106. package/dist/cli/index.d.ts +4 -0
  107. package/dist/cli/index.js +118 -0
  108. package/dist/cli/index.js.map +1 -0
  109. package/dist/core/contracts/envelope.d.ts +43 -0
  110. package/dist/core/contracts/envelope.js +1 -0
  111. package/dist/core/contracts/envelope.js.map +1 -0
  112. package/dist/core/contracts/task.d.ts +7 -0
  113. package/dist/core/contracts/task.js +1 -0
  114. package/dist/core/contracts/task.js.map +1 -0
  115. package/dist/core/contracts/tasks/check_run.annotations.list.d.ts +5 -0
  116. package/dist/core/contracts/tasks/check_run.annotations.list.js +8 -0
  117. package/dist/core/contracts/tasks/check_run.annotations.list.js.map +1 -0
  118. package/dist/core/contracts/tasks/issue.comments.list.d.ts +5 -0
  119. package/dist/core/contracts/tasks/issue.comments.list.js +8 -0
  120. package/dist/core/contracts/tasks/issue.comments.list.js.map +1 -0
  121. package/dist/core/contracts/tasks/issue.list.d.ts +5 -0
  122. package/dist/core/contracts/tasks/issue.list.js +8 -0
  123. package/dist/core/contracts/tasks/issue.list.js.map +1 -0
  124. package/dist/core/contracts/tasks/issue.view.d.ts +5 -0
  125. package/dist/core/contracts/tasks/issue.view.js +8 -0
  126. package/dist/core/contracts/tasks/issue.view.js.map +1 -0
  127. package/dist/core/contracts/tasks/pr.checks.get_failed.d.ts +5 -0
  128. package/dist/core/contracts/tasks/pr.checks.get_failed.js +8 -0
  129. package/dist/core/contracts/tasks/pr.checks.get_failed.js.map +1 -0
  130. package/dist/core/contracts/tasks/pr.comment.reply.d.ts +5 -0
  131. package/dist/core/contracts/tasks/pr.comment.reply.js +8 -0
  132. package/dist/core/contracts/tasks/pr.comment.reply.js.map +1 -0
  133. package/dist/core/contracts/tasks/pr.comment.resolve.d.ts +5 -0
  134. package/dist/core/contracts/tasks/pr.comment.resolve.js +8 -0
  135. package/dist/core/contracts/tasks/pr.comment.resolve.js.map +1 -0
  136. package/dist/core/contracts/tasks/pr.comment.unresolve.d.ts +5 -0
  137. package/dist/core/contracts/tasks/pr.comment.unresolve.js +8 -0
  138. package/dist/core/contracts/tasks/pr.comment.unresolve.js.map +1 -0
  139. package/dist/core/contracts/tasks/pr.comments.list.d.ts +5 -0
  140. package/dist/core/contracts/tasks/pr.comments.list.js +8 -0
  141. package/dist/core/contracts/tasks/pr.comments.list.js.map +1 -0
  142. package/dist/core/contracts/tasks/pr.diff.list_files.d.ts +5 -0
  143. package/dist/core/contracts/tasks/pr.diff.list_files.js +8 -0
  144. package/dist/core/contracts/tasks/pr.diff.list_files.js.map +1 -0
  145. package/dist/core/contracts/tasks/pr.list.d.ts +5 -0
  146. package/dist/core/contracts/tasks/pr.list.js +8 -0
  147. package/dist/core/contracts/tasks/pr.list.js.map +1 -0
  148. package/dist/core/contracts/tasks/pr.mergeability.view.d.ts +5 -0
  149. package/dist/core/contracts/tasks/pr.mergeability.view.js +8 -0
  150. package/dist/core/contracts/tasks/pr.mergeability.view.js.map +1 -0
  151. package/dist/core/contracts/tasks/pr.ready_for_review.set.d.ts +5 -0
  152. package/dist/core/contracts/tasks/pr.ready_for_review.set.js +8 -0
  153. package/dist/core/contracts/tasks/pr.ready_for_review.set.js.map +1 -0
  154. package/dist/core/contracts/tasks/pr.reviews.list.d.ts +5 -0
  155. package/dist/core/contracts/tasks/pr.reviews.list.js +8 -0
  156. package/dist/core/contracts/tasks/pr.reviews.list.js.map +1 -0
  157. package/dist/core/contracts/tasks/pr.status.checks.d.ts +5 -0
  158. package/dist/core/contracts/tasks/pr.status.checks.js +8 -0
  159. package/dist/core/contracts/tasks/pr.status.checks.js.map +1 -0
  160. package/dist/core/contracts/tasks/pr.view.d.ts +5 -0
  161. package/dist/core/contracts/tasks/pr.view.js +8 -0
  162. package/dist/core/contracts/tasks/pr.view.js.map +1 -0
  163. package/dist/core/contracts/tasks/repo.view.d.ts +5 -0
  164. package/dist/core/contracts/tasks/repo.view.js +8 -0
  165. package/dist/core/contracts/tasks/repo.view.js.map +1 -0
  166. package/dist/core/contracts/tasks/workflow_job.logs.analyze.d.ts +5 -0
  167. package/dist/core/contracts/tasks/workflow_job.logs.analyze.js +8 -0
  168. package/dist/core/contracts/tasks/workflow_job.logs.analyze.js.map +1 -0
  169. package/dist/core/contracts/tasks/workflow_job.logs.get.d.ts +5 -0
  170. package/dist/core/contracts/tasks/workflow_job.logs.get.js +8 -0
  171. package/dist/core/contracts/tasks/workflow_job.logs.get.js.map +1 -0
  172. package/dist/core/contracts/tasks/workflow_run.jobs.list.d.ts +5 -0
  173. package/dist/core/contracts/tasks/workflow_run.jobs.list.js +8 -0
  174. package/dist/core/contracts/tasks/workflow_run.jobs.list.js.map +1 -0
  175. package/dist/core/contracts/tasks/workflow_runs.list.d.ts +5 -0
  176. package/dist/core/contracts/tasks/workflow_runs.list.js +8 -0
  177. package/dist/core/contracts/tasks/workflow_runs.list.js.map +1 -0
  178. package/dist/core/errors/codes.d.ts +13 -0
  179. package/dist/core/errors/codes.js +7 -0
  180. package/dist/core/errors/codes.js.map +1 -0
  181. package/dist/core/errors/map-error.d.ts +5 -0
  182. package/dist/core/errors/map-error.js +8 -0
  183. package/dist/core/errors/map-error.js.map +1 -0
  184. package/dist/core/errors/retryability.d.ts +3 -0
  185. package/dist/core/errors/retryability.js +8 -0
  186. package/dist/core/errors/retryability.js.map +1 -0
  187. package/dist/core/execute/execute.d.ts +28 -0
  188. package/dist/core/execute/execute.js +11 -0
  189. package/dist/core/execute/execute.js.map +1 -0
  190. package/dist/core/execution/adapters/cli-adapter.d.ts +22 -0
  191. package/dist/core/execution/adapters/cli-adapter.js +69 -0
  192. package/dist/core/execution/adapters/cli-adapter.js.map +1 -0
  193. package/dist/core/execution/adapters/cli-capability-adapter.d.ts +16 -0
  194. package/dist/core/execution/adapters/cli-capability-adapter.js +11 -0
  195. package/dist/core/execution/adapters/cli-capability-adapter.js.map +1 -0
  196. package/dist/core/execution/adapters/graphql-adapter.d.ts +25 -0
  197. package/dist/core/execution/adapters/graphql-adapter.js +44 -0
  198. package/dist/core/execution/adapters/graphql-adapter.js.map +1 -0
  199. package/dist/core/execution/adapters/graphql-capability-adapter.d.ts +20 -0
  200. package/dist/core/execution/adapters/graphql-capability-adapter.js +11 -0
  201. package/dist/core/execution/adapters/graphql-capability-adapter.js.map +1 -0
  202. package/dist/core/execution/adapters/rest-adapter.d.ts +3 -0
  203. package/dist/core/execution/adapters/rest-adapter.js +8 -0
  204. package/dist/core/execution/adapters/rest-adapter.js.map +1 -0
  205. package/dist/core/execution/cli/safe-runner.d.ts +12 -0
  206. package/dist/core/execution/cli/safe-runner.js +7 -0
  207. package/dist/core/execution/cli/safe-runner.js.map +1 -0
  208. package/dist/core/execution/normalizer.d.ts +13 -0
  209. package/dist/core/execution/normalizer.js +9 -0
  210. package/dist/core/execution/normalizer.js.map +1 -0
  211. package/dist/core/execution/preflight.d.ts +24 -0
  212. package/dist/core/execution/preflight.js +8 -0
  213. package/dist/core/execution/preflight.js.map +1 -0
  214. package/dist/core/registry/cards/check_run.annotations.list.yaml +35 -0
  215. package/dist/core/registry/cards/issue.comments.list.yaml +48 -0
  216. package/dist/core/registry/cards/issue.list.yaml +48 -0
  217. package/dist/core/registry/cards/issue.view.yaml +32 -0
  218. package/dist/core/registry/cards/pr.checks.get_failed.yaml +42 -0
  219. package/dist/core/registry/cards/pr.comment.reply.yaml +23 -0
  220. package/dist/core/registry/cards/pr.comment.resolve.yaml +22 -0
  221. package/dist/core/registry/cards/pr.comment.unresolve.yaml +22 -0
  222. package/dist/core/registry/cards/pr.comments.list.yaml +98 -0
  223. package/dist/core/registry/cards/pr.diff.list_files.yaml +43 -0
  224. package/dist/core/registry/cards/pr.list.yaml +48 -0
  225. package/dist/core/registry/cards/pr.mergeability.view.yaml +27 -0
  226. package/dist/core/registry/cards/pr.ready_for_review.set.yaml +24 -0
  227. package/dist/core/registry/cards/pr.reviews.list.yaml +47 -0
  228. package/dist/core/registry/cards/pr.status.checks.yaml +42 -0
  229. package/dist/core/registry/cards/pr.view.yaml +32 -0
  230. package/dist/core/registry/cards/repo.view.yaml +34 -0
  231. package/dist/core/registry/cards/workflow_job.logs.analyze.yaml +33 -0
  232. package/dist/core/registry/cards/workflow_job.logs.get.yaml +24 -0
  233. package/dist/core/registry/cards/workflow_run.jobs.list.yaml +35 -0
  234. package/dist/core/registry/cards/workflow_runs.list.yaml +45 -0
  235. package/dist/core/registry/index.d.ts +15 -0
  236. package/dist/core/registry/index.js +12 -0
  237. package/dist/core/registry/index.js.map +1 -0
  238. package/dist/core/registry/operation-card-schema.d.ts +167 -0
  239. package/dist/core/registry/operation-card-schema.js +7 -0
  240. package/dist/core/registry/operation-card-schema.js.map +1 -0
  241. package/dist/core/registry/schema-validator.d.ts +16 -0
  242. package/dist/core/registry/schema-validator.js +9 -0
  243. package/dist/core/registry/schema-validator.js.map +1 -0
  244. package/dist/core/registry/types.d.ts +51 -0
  245. package/dist/core/registry/types.js +1 -0
  246. package/dist/core/registry/types.js.map +1 -0
  247. package/dist/core/routing/capability-registry.d.ts +8 -0
  248. package/dist/core/routing/capability-registry.js +15 -0
  249. package/dist/core/routing/capability-registry.js.map +1 -0
  250. package/dist/core/routing/engine.d.ts +32 -0
  251. package/dist/core/routing/engine.js +23 -0
  252. package/dist/core/routing/engine.js.map +1 -0
  253. package/dist/core/routing/policy.d.ts +3 -0
  254. package/dist/core/routing/policy.js +7 -0
  255. package/dist/core/routing/policy.js.map +1 -0
  256. package/dist/core/routing/reason-codes.d.ts +4 -0
  257. package/dist/core/routing/reason-codes.js +15 -0
  258. package/dist/core/routing/reason-codes.js.map +1 -0
  259. package/dist/core/telemetry/logger.d.ts +8 -0
  260. package/dist/core/telemetry/logger.js +9 -0
  261. package/dist/core/telemetry/logger.js.map +1 -0
  262. package/dist/core/telemetry/metrics.d.ts +7 -0
  263. package/dist/core/telemetry/metrics.js +1 -0
  264. package/dist/core/telemetry/metrics.js.map +1 -0
  265. package/dist/gql/client.d.ts +183 -0
  266. package/dist/gql/client.js +17 -0
  267. package/dist/gql/client.js.map +1 -0
  268. package/dist/gql/generated/common-types.d.ts +36 -0
  269. package/dist/gql/generated/common-types.js +1 -0
  270. package/dist/gql/generated/common-types.js.map +1 -0
  271. package/dist/gql/operations/issue-comments-list.generated.d.ts +59 -0
  272. package/dist/gql/operations/issue-comments-list.generated.js +9 -0
  273. package/dist/gql/operations/issue-comments-list.generated.js.map +1 -0
  274. package/dist/gql/operations/issue-list.generated.d.ts +40 -0
  275. package/dist/gql/operations/issue-list.generated.js +9 -0
  276. package/dist/gql/operations/issue-list.generated.js.map +1 -0
  277. package/dist/gql/operations/issue-view.generated.d.ts +31 -0
  278. package/dist/gql/operations/issue-view.generated.js +9 -0
  279. package/dist/gql/operations/issue-view.generated.js.map +1 -0
  280. package/dist/gql/operations/pr-comment-reply.generated.d.ts +26 -0
  281. package/dist/gql/operations/pr-comment-reply.generated.js +25 -0
  282. package/dist/gql/operations/pr-comment-reply.generated.js.map +1 -0
  283. package/dist/gql/operations/pr-comment-resolve.generated.d.ts +26 -0
  284. package/dist/gql/operations/pr-comment-resolve.generated.js +24 -0
  285. package/dist/gql/operations/pr-comment-resolve.generated.js.map +1 -0
  286. package/dist/gql/operations/pr-comment-unresolve.generated.d.ts +26 -0
  287. package/dist/gql/operations/pr-comment-unresolve.generated.js +24 -0
  288. package/dist/gql/operations/pr-comment-unresolve.generated.js.map +1 -0
  289. package/dist/gql/operations/pr-comments-list.generated.d.ts +84 -0
  290. package/dist/gql/operations/pr-comments-list.generated.js +58 -0
  291. package/dist/gql/operations/pr-comments-list.generated.js.map +1 -0
  292. package/dist/gql/operations/pr-diff-list-files.generated.d.ts +42 -0
  293. package/dist/gql/operations/pr-diff-list-files.generated.js +9 -0
  294. package/dist/gql/operations/pr-diff-list-files.generated.js.map +1 -0
  295. package/dist/gql/operations/pr-list.generated.d.ts +40 -0
  296. package/dist/gql/operations/pr-list.generated.js +9 -0
  297. package/dist/gql/operations/pr-list.generated.js.map +1 -0
  298. package/dist/gql/operations/pr-reviews-list.generated.d.ts +64 -0
  299. package/dist/gql/operations/pr-reviews-list.generated.js +9 -0
  300. package/dist/gql/operations/pr-reviews-list.generated.js.map +1 -0
  301. package/dist/gql/operations/pr-view.generated.d.ts +31 -0
  302. package/dist/gql/operations/pr-view.generated.js +9 -0
  303. package/dist/gql/operations/pr-view.generated.js.map +1 -0
  304. package/dist/gql/operations/repo-view.generated.d.ts +33 -0
  305. package/dist/gql/operations/repo-view.generated.js +9 -0
  306. package/dist/gql/operations/repo-view.generated.js.map +1 -0
  307. package/dist/index.d.ts +22 -0
  308. package/dist/index.js +43 -0
  309. package/dist/index.js.map +1 -0
  310. package/dist/shared/constants.d.ts +3 -0
  311. package/dist/shared/constants.js +6 -0
  312. package/dist/shared/constants.js.map +1 -0
  313. package/dist/shared/types.d.ts +3 -0
  314. package/dist/shared/types.js +1 -0
  315. package/dist/shared/types.js.map +1 -0
  316. package/dist/shared/utils.d.ts +3 -0
  317. package/dist/shared/utils.js +8 -0
  318. package/dist/shared/utils.js.map +1 -0
  319. package/package.json +79 -0
@@ -0,0 +1,23 @@
1
+ import {
2
+ chooseRoute,
3
+ executeTask
4
+ } from "../../chunk-WYSY75U7.js";
5
+ import "../../chunk-DLKIQBK6.js";
6
+ import "../../chunk-3RAT5BCB.js";
7
+ import "../../chunk-YNNDBMNR.js";
8
+ import "../../chunk-UGWIZ3RI.js";
9
+ import "../../chunk-TDTKOJKN.js";
10
+ import "../../chunk-Q4RTT3DV.js";
11
+ import "../../chunk-W2TKG2UL.js";
12
+ import "../../chunk-QEAMC4IJ.js";
13
+ import "../../chunk-5JRLVOF2.js";
14
+ import "../../chunk-B6RLMKS4.js";
15
+ import "../../chunk-573MDG3I.js";
16
+ import "../../chunk-UOJWOHRM.js";
17
+ import "../../chunk-MT4U5DYD.js";
18
+ import "../../chunk-2W4L5YCC.js";
19
+ export {
20
+ chooseRoute,
21
+ executeTask
22
+ };
23
+ //# sourceMappingURL=engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,3 @@
1
+ declare const routePreferenceOrder: readonly ["cli", "graphql"];
2
+
3
+ export { routePreferenceOrder };
@@ -0,0 +1,7 @@
1
+ import {
2
+ routePreferenceOrder
3
+ } from "../../chunk-UGWIZ3RI.js";
4
+ export {
5
+ routePreferenceOrder
6
+ };
7
+ //# sourceMappingURL=policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,4 @@
1
+ declare const routeReasonCodes: readonly ["INPUT_VALIDATION", "OUTPUT_VALIDATION", "CARD_PREFERRED", "CARD_FALLBACK", "PREFLIGHT_FAILED", "ENV_CONSTRAINT", "CAPABILITY_LIMIT", "DEFAULT_POLICY"];
2
+ type RouteReasonCode = (typeof routeReasonCodes)[number];
3
+
4
+ export { type RouteReasonCode, routeReasonCodes };
@@ -0,0 +1,15 @@
1
+ // src/core/routing/reason-codes.ts
2
+ var routeReasonCodes = [
3
+ "INPUT_VALIDATION",
4
+ "OUTPUT_VALIDATION",
5
+ "CARD_PREFERRED",
6
+ "CARD_FALLBACK",
7
+ "PREFLIGHT_FAILED",
8
+ "ENV_CONSTRAINT",
9
+ "CAPABILITY_LIMIT",
10
+ "DEFAULT_POLICY"
11
+ ];
12
+ export {
13
+ routeReasonCodes
14
+ };
15
+ //# sourceMappingURL=reason-codes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/core/routing/reason-codes.ts"],"sourcesContent":["export const routeReasonCodes = [\n \"INPUT_VALIDATION\",\n \"OUTPUT_VALIDATION\",\n \"CARD_PREFERRED\",\n \"CARD_FALLBACK\",\n \"PREFLIGHT_FAILED\",\n \"ENV_CONSTRAINT\",\n \"CAPABILITY_LIMIT\",\n \"DEFAULT_POLICY\"\n] as const\n\nexport type RouteReasonCode = (typeof routeReasonCodes)[number]\n"],"mappings":";AAAO,IAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
@@ -0,0 +1,8 @@
1
+ type Primitive = string | number | boolean | null;
2
+ type LogValue = Primitive | LogValue[] | {
3
+ [key: string]: LogValue;
4
+ };
5
+ declare function sanitizeTelemetryContext(context: Record<string, LogValue>): Record<string, LogValue>;
6
+ declare function logMetric(name: string, value: number, context?: Record<string, LogValue>): void;
7
+
8
+ export { logMetric, sanitizeTelemetryContext };
@@ -0,0 +1,9 @@
1
+ import {
2
+ logMetric,
3
+ sanitizeTelemetryContext
4
+ } from "../../chunk-W2TKG2UL.js";
5
+ export {
6
+ logMetric,
7
+ sanitizeTelemetryContext
8
+ };
9
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ interface ExecutionMetrics {
2
+ latencyMs: number;
3
+ toolCalls: number;
4
+ apiCalls: number;
5
+ }
6
+
7
+ export type { ExecutionMetrics };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=metrics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,183 @@
1
+ import { DocumentNode } from 'graphql';
2
+ import { IssueCommentsListQueryVariables } from './operations/issue-comments-list.generated.js';
3
+ import { IssueListQueryVariables } from './operations/issue-list.generated.js';
4
+ import { IssueViewQueryVariables } from './operations/issue-view.generated.js';
5
+ import { PrDiffListFilesQueryVariables } from './operations/pr-diff-list-files.generated.js';
6
+ import { PrReviewsListQueryVariables } from './operations/pr-reviews-list.generated.js';
7
+ import { PrListQueryVariables } from './operations/pr-list.generated.js';
8
+ import { PrViewQueryVariables } from './operations/pr-view.generated.js';
9
+ import { RepoViewQueryVariables } from './operations/repo-view.generated.js';
10
+ import './generated/common-types.js';
11
+ import 'graphql-request';
12
+
13
+ type GraphqlVariables = Record<string, unknown>;
14
+ type GraphqlDocument = string | DocumentNode;
15
+ interface GraphqlTransport {
16
+ execute<TData>(query: string, variables?: GraphqlVariables): Promise<TData>;
17
+ }
18
+ interface GraphqlClient {
19
+ query<TData, TVariables extends GraphqlVariables = GraphqlVariables>(query: GraphqlDocument, variables?: TVariables): Promise<TData>;
20
+ }
21
+ type RepoViewInput = RepoViewQueryVariables;
22
+ type IssueCommentsListInput = IssueCommentsListQueryVariables;
23
+ type IssueListInput = IssueListQueryVariables;
24
+ type IssueViewInput = IssueViewQueryVariables;
25
+ type PrListInput = PrListQueryVariables;
26
+ type PrViewInput = PrViewQueryVariables;
27
+ type PrReviewsListInput = PrReviewsListQueryVariables;
28
+ type PrDiffListFilesInput = PrDiffListFilesQueryVariables;
29
+ type PrCommentsListInput = {
30
+ owner: string;
31
+ name: string;
32
+ prNumber: number;
33
+ first: number;
34
+ after?: string | null;
35
+ unresolvedOnly?: boolean;
36
+ includeOutdated?: boolean;
37
+ };
38
+ type RepoViewData = {
39
+ id: string;
40
+ name: string;
41
+ nameWithOwner: string;
42
+ isPrivate: boolean;
43
+ stargazerCount: number;
44
+ forkCount: number;
45
+ url: string;
46
+ defaultBranch: string | null;
47
+ };
48
+ type IssueViewData = {
49
+ id: string;
50
+ number: number;
51
+ title: string;
52
+ state: string;
53
+ url: string;
54
+ };
55
+ type IssueListData = {
56
+ items: Array<IssueViewData>;
57
+ pageInfo: {
58
+ endCursor: string | null;
59
+ hasNextPage: boolean;
60
+ };
61
+ };
62
+ type IssueCommentData = {
63
+ id: string;
64
+ body: string;
65
+ authorLogin: string | null;
66
+ createdAt: string;
67
+ url: string;
68
+ };
69
+ type IssueCommentsListData = {
70
+ items: Array<IssueCommentData>;
71
+ pageInfo: {
72
+ endCursor: string | null;
73
+ hasNextPage: boolean;
74
+ };
75
+ };
76
+ type PrViewData = {
77
+ id: string;
78
+ number: number;
79
+ title: string;
80
+ state: string;
81
+ url: string;
82
+ };
83
+ type PrListData = {
84
+ items: Array<PrViewData>;
85
+ pageInfo: {
86
+ endCursor: string | null;
87
+ hasNextPage: boolean;
88
+ };
89
+ };
90
+ type PrReviewThreadCommentData = {
91
+ id: string;
92
+ authorLogin: string | null;
93
+ body: string;
94
+ createdAt: string;
95
+ url: string;
96
+ };
97
+ type PrReviewThreadData = {
98
+ id: string;
99
+ path: string | null;
100
+ line: number | null;
101
+ startLine: number | null;
102
+ diffSide: string | null;
103
+ subjectType: string | null;
104
+ isResolved: boolean;
105
+ isOutdated: boolean;
106
+ viewerCanReply: boolean;
107
+ viewerCanResolve: boolean;
108
+ viewerCanUnresolve: boolean;
109
+ resolvedByLogin: string | null;
110
+ comments: Array<PrReviewThreadCommentData>;
111
+ };
112
+ type PrCommentsListData = {
113
+ items: Array<PrReviewThreadData>;
114
+ pageInfo: {
115
+ endCursor: string | null;
116
+ hasNextPage: boolean;
117
+ };
118
+ filterApplied: {
119
+ unresolvedOnly: boolean;
120
+ includeOutdated: boolean;
121
+ };
122
+ scan: {
123
+ pagesScanned: number;
124
+ sourceItemsScanned: number;
125
+ scanTruncated: boolean;
126
+ };
127
+ };
128
+ type PrReviewData = {
129
+ id: string;
130
+ authorLogin: string | null;
131
+ body: string;
132
+ state: string;
133
+ submittedAt: string | null;
134
+ url: string;
135
+ commitOid: string | null;
136
+ };
137
+ type PrReviewsListData = {
138
+ items: Array<PrReviewData>;
139
+ pageInfo: {
140
+ endCursor: string | null;
141
+ hasNextPage: boolean;
142
+ };
143
+ };
144
+ type PrDiffFileData = {
145
+ path: string;
146
+ additions: number;
147
+ deletions: number;
148
+ };
149
+ type PrDiffListFilesData = {
150
+ items: Array<PrDiffFileData>;
151
+ pageInfo: {
152
+ endCursor: string | null;
153
+ hasNextPage: boolean;
154
+ };
155
+ };
156
+ type ReviewThreadMutationInput = {
157
+ threadId: string;
158
+ };
159
+ type ReplyToReviewThreadInput = ReviewThreadMutationInput & {
160
+ body: string;
161
+ };
162
+ type ReviewThreadMutationData = {
163
+ id: string;
164
+ isResolved: boolean;
165
+ };
166
+ interface GithubClient extends GraphqlClient {
167
+ fetchRepoView(input: RepoViewInput): Promise<RepoViewData>;
168
+ fetchIssueCommentsList(input: IssueCommentsListInput): Promise<IssueCommentsListData>;
169
+ fetchIssueList(input: IssueListInput): Promise<IssueListData>;
170
+ fetchIssueView(input: IssueViewInput): Promise<IssueViewData>;
171
+ fetchPrList(input: PrListInput): Promise<PrListData>;
172
+ fetchPrView(input: PrViewInput): Promise<PrViewData>;
173
+ fetchPrCommentsList(input: PrCommentsListInput): Promise<PrCommentsListData>;
174
+ fetchPrReviewsList(input: PrReviewsListInput): Promise<PrReviewsListData>;
175
+ fetchPrDiffListFiles(input: PrDiffListFilesInput): Promise<PrDiffListFilesData>;
176
+ replyToReviewThread(input: ReplyToReviewThreadInput): Promise<ReviewThreadMutationData>;
177
+ resolveReviewThread(input: ReviewThreadMutationInput): Promise<ReviewThreadMutationData>;
178
+ unresolveReviewThread(input: ReviewThreadMutationInput): Promise<ReviewThreadMutationData>;
179
+ }
180
+ declare function createGraphqlClient(transport: GraphqlTransport): GraphqlClient;
181
+ declare function createGithubClient(transport: GraphqlTransport): GithubClient;
182
+
183
+ export { type GithubClient, type GraphqlClient, type GraphqlTransport, type GraphqlVariables, type IssueCommentData, type IssueCommentsListData, type IssueCommentsListInput, type IssueListData, type IssueListInput, type IssueViewData, type IssueViewInput, type PrCommentsListData, type PrCommentsListInput, type PrDiffFileData, type PrDiffListFilesData, type PrDiffListFilesInput, type PrListData, type PrListInput, type PrReviewData, type PrReviewThreadCommentData, type PrReviewThreadData, type PrReviewsListData, type PrReviewsListInput, type PrViewData, type PrViewInput, type ReplyToReviewThreadInput, type RepoViewData, type RepoViewInput, type ReviewThreadMutationData, type ReviewThreadMutationInput, createGithubClient, createGraphqlClient };
@@ -0,0 +1,17 @@
1
+ import {
2
+ createGithubClient,
3
+ createGraphqlClient
4
+ } from "../chunk-YQDQX4BT.js";
5
+ import "../chunk-NFF5VF4U.js";
6
+ import "../chunk-EBRDO4Y6.js";
7
+ import "../chunk-W6ROKCY5.js";
8
+ import "../chunk-RUQXGZ35.js";
9
+ import "../chunk-TCLMLVUQ.js";
10
+ import "../chunk-VD5NXQP7.js";
11
+ import "../chunk-QZZC53HF.js";
12
+ import "../chunk-D746VR3B.js";
13
+ export {
14
+ createGithubClient,
15
+ createGraphqlClient
16
+ };
17
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,36 @@
1
+ type Maybe<T> = T | null;
2
+ type InputMaybe<T> = Maybe<T>;
3
+ type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ type Scalars = {
9
+ String: {
10
+ input: string;
11
+ output: string;
12
+ };
13
+ Int: {
14
+ input: number;
15
+ output: number;
16
+ };
17
+ Boolean: {
18
+ input: boolean;
19
+ output: boolean;
20
+ };
21
+ ID: {
22
+ input: string;
23
+ output: string;
24
+ };
25
+ URI: {
26
+ input: unknown;
27
+ output: unknown;
28
+ };
29
+ };
30
+ type IssueState = string;
31
+ type PullRequestState = string;
32
+ type DiffSide = string;
33
+ type PullRequestReviewThreadSubjectType = string;
34
+ type PullRequestReviewState = string;
35
+
36
+ export type { DiffSide, Exact, InputMaybe, IssueState, Maybe, PullRequestReviewState, PullRequestReviewThreadSubjectType, PullRequestState, Scalars };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=common-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,59 @@
1
+ import { Exact, Scalars, InputMaybe } from '../generated/common-types.js';
2
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
3
+
4
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
5
+ type IssueCommentsListQueryVariables = Exact<{
6
+ owner: Scalars['String']['input'];
7
+ name: Scalars['String']['input'];
8
+ issueNumber: Scalars['Int']['input'];
9
+ first: Scalars['Int']['input'];
10
+ after?: InputMaybe<Scalars['String']['input']>;
11
+ }>;
12
+ type IssueCommentsListQuery = {
13
+ __typename?: 'Query';
14
+ repository?: {
15
+ __typename?: 'Repository';
16
+ issue?: {
17
+ __typename?: 'Issue';
18
+ comments: {
19
+ __typename?: 'IssueCommentConnection';
20
+ nodes?: Array<{
21
+ __typename?: 'IssueComment';
22
+ id: string;
23
+ body: string;
24
+ createdAt: any;
25
+ url: any;
26
+ author?: {
27
+ __typename?: 'Bot';
28
+ login: string;
29
+ } | {
30
+ __typename?: 'EnterpriseUserAccount';
31
+ login: string;
32
+ } | {
33
+ __typename?: 'Mannequin';
34
+ login: string;
35
+ } | {
36
+ __typename?: 'Organization';
37
+ login: string;
38
+ } | {
39
+ __typename?: 'User';
40
+ login: string;
41
+ } | null;
42
+ } | null> | null;
43
+ pageInfo: {
44
+ __typename?: 'PageInfo';
45
+ endCursor?: string | null;
46
+ hasNextPage: boolean;
47
+ };
48
+ };
49
+ } | null;
50
+ } | null;
51
+ };
52
+ declare const IssueCommentsListDocument = "\n query IssueCommentsList($owner: String!, $name: String!, $issueNumber: Int!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n issue(number: $issueNumber) {\n comments(first: $first, after: $after) {\n nodes {\n id\n body\n createdAt\n url\n author {\n login\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n ";
53
+ type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
54
+ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
55
+ IssueCommentsList(variables: IssueCommentsListQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<IssueCommentsListQuery>;
56
+ };
57
+ type Sdk = ReturnType<typeof getSdk>;
58
+
59
+ export { IssueCommentsListDocument, type IssueCommentsListQuery, type IssueCommentsListQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
@@ -0,0 +1,9 @@
1
+ import {
2
+ IssueCommentsListDocument,
3
+ getSdk
4
+ } from "../../chunk-QZZC53HF.js";
5
+ export {
6
+ IssueCommentsListDocument,
7
+ getSdk
8
+ };
9
+ //# sourceMappingURL=issue-comments-list.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,40 @@
1
+ import { Exact, Scalars, InputMaybe, IssueState } from '../generated/common-types.js';
2
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
3
+
4
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
5
+ type IssueListQueryVariables = Exact<{
6
+ owner: Scalars['String']['input'];
7
+ name: Scalars['String']['input'];
8
+ first: Scalars['Int']['input'];
9
+ after?: InputMaybe<Scalars['String']['input']>;
10
+ }>;
11
+ type IssueListQuery = {
12
+ __typename?: 'Query';
13
+ repository?: {
14
+ __typename?: 'Repository';
15
+ issues: {
16
+ __typename?: 'IssueConnection';
17
+ nodes?: Array<{
18
+ __typename?: 'Issue';
19
+ id: string;
20
+ number: number;
21
+ title: string;
22
+ state: IssueState;
23
+ url: any;
24
+ } | null> | null;
25
+ pageInfo: {
26
+ __typename?: 'PageInfo';
27
+ endCursor?: string | null;
28
+ hasNextPage: boolean;
29
+ };
30
+ };
31
+ } | null;
32
+ };
33
+ declare const IssueListDocument = "\n query IssueList($owner: String!, $name: String!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n issues(\n first: $first\n after: $after\n orderBy: {field: CREATED_AT, direction: DESC}\n ) {\n nodes {\n id\n number\n title\n state\n url\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n}\n ";
34
+ type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
35
+ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
36
+ IssueList(variables: IssueListQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<IssueListQuery>;
37
+ };
38
+ type Sdk = ReturnType<typeof getSdk>;
39
+
40
+ export { IssueListDocument, type IssueListQuery, type IssueListQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
@@ -0,0 +1,9 @@
1
+ import {
2
+ IssueListDocument,
3
+ getSdk
4
+ } from "../../chunk-D746VR3B.js";
5
+ export {
6
+ IssueListDocument,
7
+ getSdk
8
+ };
9
+ //# sourceMappingURL=issue-list.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,31 @@
1
+ import { Exact, Scalars, IssueState } from '../generated/common-types.js';
2
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
3
+
4
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
5
+ type IssueViewQueryVariables = Exact<{
6
+ owner: Scalars['String']['input'];
7
+ name: Scalars['String']['input'];
8
+ issueNumber: Scalars['Int']['input'];
9
+ }>;
10
+ type IssueViewQuery = {
11
+ __typename?: 'Query';
12
+ repository?: {
13
+ __typename?: 'Repository';
14
+ issue?: {
15
+ __typename?: 'Issue';
16
+ id: string;
17
+ number: number;
18
+ title: string;
19
+ state: IssueState;
20
+ url: any;
21
+ } | null;
22
+ } | null;
23
+ };
24
+ declare const IssueViewDocument = "\n query IssueView($owner: String!, $name: String!, $issueNumber: Int!) {\n repository(owner: $owner, name: $name) {\n issue(number: $issueNumber) {\n id\n number\n title\n state\n url\n }\n }\n}\n ";
25
+ type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
26
+ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
27
+ IssueView(variables: IssueViewQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<IssueViewQuery>;
28
+ };
29
+ type Sdk = ReturnType<typeof getSdk>;
30
+
31
+ export { IssueViewDocument, type IssueViewQuery, type IssueViewQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
@@ -0,0 +1,9 @@
1
+ import {
2
+ IssueViewDocument,
3
+ getSdk
4
+ } from "../../chunk-W6ROKCY5.js";
5
+ export {
6
+ IssueViewDocument,
7
+ getSdk
8
+ };
9
+ //# sourceMappingURL=issue-view.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,26 @@
1
+ import { Exact, Scalars } from '../generated/common-types.js';
2
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
3
+
4
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
5
+ type PrCommentReplyMutationVariables = Exact<{
6
+ threadId: Scalars['ID']['input'];
7
+ body: Scalars['String']['input'];
8
+ }>;
9
+ type PrCommentReplyMutation = {
10
+ __typename?: 'Mutation';
11
+ addPullRequestReviewThreadReply?: {
12
+ __typename?: 'AddPullRequestReviewThreadReplyPayload';
13
+ comment?: {
14
+ __typename?: 'PullRequestReviewComment';
15
+ id: string;
16
+ } | null;
17
+ } | null;
18
+ };
19
+ declare const PrCommentReplyDocument = "\n mutation PrCommentReply($threadId: ID!, $body: String!) {\n addPullRequestReviewThreadReply(\n input: {pullRequestReviewThreadId: $threadId, body: $body}\n ) {\n comment {\n id\n }\n }\n}\n ";
20
+ type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
21
+ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
22
+ PrCommentReply(variables: PrCommentReplyMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrCommentReplyMutation>;
23
+ };
24
+ type Sdk = ReturnType<typeof getSdk>;
25
+
26
+ export { PrCommentReplyDocument, type PrCommentReplyMutation, type PrCommentReplyMutationVariables, type Sdk, type SdkFunctionWrapper, getSdk };
@@ -0,0 +1,25 @@
1
+ // src/gql/operations/pr-comment-reply.generated.ts
2
+ var PrCommentReplyDocument = `
3
+ mutation PrCommentReply($threadId: ID!, $body: String!) {
4
+ addPullRequestReviewThreadReply(
5
+ input: {pullRequestReviewThreadId: $threadId, body: $body}
6
+ ) {
7
+ comment {
8
+ id
9
+ }
10
+ }
11
+ }
12
+ `;
13
+ var defaultWrapper = (action, _operationName, _operationType, _variables) => action();
14
+ function getSdk(client, withWrapper = defaultWrapper) {
15
+ return {
16
+ PrCommentReply(variables, requestHeaders, signal) {
17
+ return withWrapper((wrappedRequestHeaders) => client.request({ document: PrCommentReplyDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "PrCommentReply", "mutation", variables);
18
+ }
19
+ };
20
+ }
21
+ export {
22
+ PrCommentReplyDocument,
23
+ getSdk
24
+ };
25
+ //# sourceMappingURL=pr-comment-reply.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/gql/operations/pr-comment-reply.generated.ts"],"sourcesContent":["import type * as Types from '../generated/common-types';\n\nimport type { GraphQLClient, RequestOptions } from 'graphql-request';\ntype GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];\nexport type PrCommentReplyMutationVariables = Types.Exact<{\n threadId: Types.Scalars['ID']['input'];\n body: Types.Scalars['String']['input'];\n}>;\n\n\nexport type PrCommentReplyMutation = { __typename?: 'Mutation', addPullRequestReviewThreadReply?: { __typename?: 'AddPullRequestReviewThreadReplyPayload', comment?: { __typename?: 'PullRequestReviewComment', id: string } | null } | null };\n\n\nexport const PrCommentReplyDocument = `\n mutation PrCommentReply($threadId: ID!, $body: String!) {\n addPullRequestReviewThreadReply(\n input: {pullRequestReviewThreadId: $threadId, body: $body}\n ) {\n comment {\n id\n }\n }\n}\n `;\n\nexport type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;\n\n\nconst defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();\n\nexport function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n return {\n PrCommentReply(variables: PrCommentReplyMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<PrCommentReplyMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<PrCommentReplyMutation>({ document: PrCommentReplyDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'PrCommentReply', 'mutation', variables);\n }\n };\n}\nexport type Sdk = ReturnType<typeof getSdk>;"],"mappings":";AAaO,IAAM,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAetC,IAAM,iBAAqC,CAAC,QAAQ,gBAAgB,gBAAgB,eAAe,OAAO;AAEnG,SAAS,OAAO,QAAuB,cAAkC,gBAAgB;AAC9F,SAAO;AAAA,IACL,eAAe,WAA4C,gBAA8C,QAAiE;AACxK,aAAO,YAAY,CAAC,0BAA0B,OAAO,QAAgC,EAAE,UAAU,wBAAwB,WAAW,gBAAgB,EAAE,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,OAAO,CAAC,GAAG,kBAAkB,YAAY,SAAS;AAAA,IACzP;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,26 @@
1
+ import { Exact, Scalars } from '../generated/common-types.js';
2
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
3
+
4
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
5
+ type PrCommentResolveMutationVariables = Exact<{
6
+ threadId: Scalars['ID']['input'];
7
+ }>;
8
+ type PrCommentResolveMutation = {
9
+ __typename?: 'Mutation';
10
+ resolveReviewThread?: {
11
+ __typename?: 'ResolveReviewThreadPayload';
12
+ thread?: {
13
+ __typename?: 'PullRequestReviewThread';
14
+ id: string;
15
+ isResolved: boolean;
16
+ } | null;
17
+ } | null;
18
+ };
19
+ declare const PrCommentResolveDocument = "\n mutation PrCommentResolve($threadId: ID!) {\n resolveReviewThread(input: {threadId: $threadId}) {\n thread {\n id\n isResolved\n }\n }\n}\n ";
20
+ type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
21
+ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
22
+ PrCommentResolve(variables: PrCommentResolveMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrCommentResolveMutation>;
23
+ };
24
+ type Sdk = ReturnType<typeof getSdk>;
25
+
26
+ export { PrCommentResolveDocument, type PrCommentResolveMutation, type PrCommentResolveMutationVariables, type Sdk, type SdkFunctionWrapper, getSdk };
@@ -0,0 +1,24 @@
1
+ // src/gql/operations/pr-comment-resolve.generated.ts
2
+ var PrCommentResolveDocument = `
3
+ mutation PrCommentResolve($threadId: ID!) {
4
+ resolveReviewThread(input: {threadId: $threadId}) {
5
+ thread {
6
+ id
7
+ isResolved
8
+ }
9
+ }
10
+ }
11
+ `;
12
+ var defaultWrapper = (action, _operationName, _operationType, _variables) => action();
13
+ function getSdk(client, withWrapper = defaultWrapper) {
14
+ return {
15
+ PrCommentResolve(variables, requestHeaders, signal) {
16
+ return withWrapper((wrappedRequestHeaders) => client.request({ document: PrCommentResolveDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "PrCommentResolve", "mutation", variables);
17
+ }
18
+ };
19
+ }
20
+ export {
21
+ PrCommentResolveDocument,
22
+ getSdk
23
+ };
24
+ //# sourceMappingURL=pr-comment-resolve.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/gql/operations/pr-comment-resolve.generated.ts"],"sourcesContent":["import type * as Types from '../generated/common-types';\n\nimport type { GraphQLClient, RequestOptions } from 'graphql-request';\ntype GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];\nexport type PrCommentResolveMutationVariables = Types.Exact<{\n threadId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type PrCommentResolveMutation = { __typename?: 'Mutation', resolveReviewThread?: { __typename?: 'ResolveReviewThreadPayload', thread?: { __typename?: 'PullRequestReviewThread', id: string, isResolved: boolean } | null } | null };\n\n\nexport const PrCommentResolveDocument = `\n mutation PrCommentResolve($threadId: ID!) {\n resolveReviewThread(input: {threadId: $threadId}) {\n thread {\n id\n isResolved\n }\n }\n}\n `;\n\nexport type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;\n\n\nconst defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();\n\nexport function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n return {\n PrCommentResolve(variables: PrCommentResolveMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<PrCommentResolveMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<PrCommentResolveMutation>({ document: PrCommentResolveDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'PrCommentResolve', 'mutation', variables);\n }\n };\n}\nexport type Sdk = ReturnType<typeof getSdk>;"],"mappings":";AAYO,IAAM,2BAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcxC,IAAM,iBAAqC,CAAC,QAAQ,gBAAgB,gBAAgB,eAAe,OAAO;AAEnG,SAAS,OAAO,QAAuB,cAAkC,gBAAgB;AAC9F,SAAO;AAAA,IACL,iBAAiB,WAA8C,gBAA8C,QAAmE;AAC9K,aAAO,YAAY,CAAC,0BAA0B,OAAO,QAAkC,EAAE,UAAU,0BAA0B,WAAW,gBAAgB,EAAE,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,OAAO,CAAC,GAAG,oBAAoB,YAAY,SAAS;AAAA,IAC/P;AAAA,EACF;AACF;","names":[]}