@ghx-dev/core 0.1.0-beta.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/README.md +181 -114
  2. package/dist/agent.d.ts +32 -7
  3. package/dist/agent.js +29 -12
  4. package/dist/agent.js.map +1 -1
  5. package/dist/cards/check_run.annotations.list.yaml +35 -0
  6. package/dist/cards/issue.assignees.update.yaml +27 -0
  7. package/dist/cards/issue.blocked_by.add.yaml +23 -0
  8. package/dist/cards/issue.blocked_by.remove.yaml +24 -0
  9. package/dist/cards/issue.close.yaml +24 -0
  10. package/dist/cards/issue.comments.create.yaml +24 -0
  11. package/dist/cards/issue.comments.list.yaml +48 -0
  12. package/dist/cards/issue.create.yaml +28 -0
  13. package/dist/cards/issue.delete.yaml +23 -0
  14. package/dist/cards/issue.labels.update.yaml +27 -0
  15. package/dist/cards/issue.linked_prs.list.yaml +34 -0
  16. package/dist/cards/issue.list.yaml +48 -0
  17. package/dist/cards/issue.milestone.set.yaml +23 -0
  18. package/dist/cards/issue.parent.remove.yaml +22 -0
  19. package/dist/cards/issue.parent.set.yaml +23 -0
  20. package/dist/cards/issue.relations.get.yaml +54 -0
  21. package/dist/cards/issue.reopen.yaml +24 -0
  22. package/dist/cards/issue.update.yaml +27 -0
  23. package/dist/cards/issue.view.yaml +32 -0
  24. package/dist/cards/pr.assignees.update.yaml +38 -0
  25. package/dist/cards/pr.branch.update.yaml +23 -0
  26. package/dist/cards/pr.checks.get_failed.yaml +42 -0
  27. package/dist/cards/pr.checks.rerun_all.yaml +26 -0
  28. package/dist/cards/pr.checks.rerun_failed.yaml +26 -0
  29. package/dist/cards/pr.comment.reply.yaml +23 -0
  30. package/dist/cards/pr.comment.resolve.yaml +22 -0
  31. package/dist/cards/pr.comment.unresolve.yaml +22 -0
  32. package/dist/cards/pr.comments.list.yaml +98 -0
  33. package/dist/cards/pr.diff.list_files.yaml +43 -0
  34. package/dist/cards/pr.list.yaml +48 -0
  35. package/dist/cards/pr.merge.execute.yaml +29 -0
  36. package/dist/cards/pr.mergeability.view.yaml +27 -0
  37. package/dist/cards/pr.ready_for_review.set.yaml +24 -0
  38. package/dist/cards/pr.review.submit_approve.yaml +26 -0
  39. package/dist/cards/pr.review.submit_comment.yaml +26 -0
  40. package/dist/cards/pr.review.submit_request_changes.yaml +26 -0
  41. package/dist/cards/pr.reviewers.request.yaml +31 -0
  42. package/dist/cards/pr.reviews.list.yaml +47 -0
  43. package/dist/cards/pr.status.checks.yaml +42 -0
  44. package/dist/cards/pr.view.yaml +32 -0
  45. package/dist/cards/project_v2.fields.list.yaml +37 -0
  46. package/dist/cards/project_v2.item.add_issue.yaml +23 -0
  47. package/dist/cards/project_v2.item.field.update.yaml +29 -0
  48. package/dist/cards/project_v2.items.list.yaml +39 -0
  49. package/dist/cards/project_v2.org.get.yaml +26 -0
  50. package/dist/cards/project_v2.user.get.yaml +26 -0
  51. package/dist/cards/release.create_draft.yaml +36 -0
  52. package/dist/cards/release.get.yaml +30 -0
  53. package/dist/cards/release.list.yaml +44 -0
  54. package/dist/cards/release.publish_draft.yaml +36 -0
  55. package/dist/cards/release.update.yaml +38 -0
  56. package/dist/cards/repo.issue_types.list.yaml +40 -0
  57. package/dist/cards/repo.labels.list.yaml +41 -0
  58. package/dist/cards/repo.view.yaml +34 -0
  59. package/dist/cards/workflow.get.yaml +30 -0
  60. package/dist/cards/workflow.list.yaml +40 -0
  61. package/dist/cards/workflow_dispatch.run.yaml +29 -0
  62. package/dist/cards/workflow_job.logs.analyze.yaml +33 -0
  63. package/dist/cards/workflow_job.logs.get.yaml +24 -0
  64. package/dist/cards/workflow_run.artifacts.list.yaml +40 -0
  65. package/dist/cards/workflow_run.cancel.yaml +23 -0
  66. package/dist/cards/workflow_run.get.yaml +33 -0
  67. package/dist/cards/workflow_run.jobs.list.yaml +35 -0
  68. package/dist/cards/workflow_run.rerun_all.yaml +23 -0
  69. package/dist/cards/workflow_run.rerun_failed.yaml +23 -0
  70. package/dist/cards/workflow_runs.list.yaml +45 -0
  71. package/dist/chunk-OL4ARD3R.js +242 -0
  72. package/dist/chunk-OL4ARD3R.js.map +1 -0
  73. package/dist/chunk-PJ2JKKQE.js +4148 -0
  74. package/dist/chunk-PJ2JKKQE.js.map +1 -0
  75. package/dist/{chunk-MMG6CIKK.js → chunk-SCIJMW5P.js} +14 -4
  76. package/dist/chunk-SCIJMW5P.js.map +1 -0
  77. package/dist/cli/assets/skills/ghx/SKILL.md +57 -0
  78. package/dist/cli/index.js +373 -41
  79. package/dist/cli/index.js.map +1 -1
  80. package/dist/core/registry/cards/issue.assignees.update.yaml +27 -0
  81. package/dist/core/registry/cards/issue.blocked_by.add.yaml +23 -0
  82. package/dist/core/registry/cards/issue.blocked_by.remove.yaml +24 -0
  83. package/dist/core/registry/cards/issue.close.yaml +24 -0
  84. package/dist/core/registry/cards/issue.comments.create.yaml +24 -0
  85. package/dist/core/registry/cards/issue.create.yaml +28 -0
  86. package/dist/core/registry/cards/issue.delete.yaml +23 -0
  87. package/dist/core/registry/cards/issue.labels.update.yaml +27 -0
  88. package/dist/core/registry/cards/issue.linked_prs.list.yaml +34 -0
  89. package/dist/core/registry/cards/issue.milestone.set.yaml +23 -0
  90. package/dist/core/registry/cards/issue.parent.remove.yaml +22 -0
  91. package/dist/core/registry/cards/issue.parent.set.yaml +23 -0
  92. package/dist/core/registry/cards/issue.relations.get.yaml +54 -0
  93. package/dist/core/registry/cards/issue.reopen.yaml +24 -0
  94. package/dist/core/registry/cards/issue.update.yaml +27 -0
  95. package/dist/core/registry/cards/pr.assignees.update.yaml +38 -0
  96. package/dist/core/registry/cards/pr.branch.update.yaml +23 -0
  97. package/dist/core/registry/cards/pr.checks.rerun_all.yaml +26 -0
  98. package/dist/core/registry/cards/pr.checks.rerun_failed.yaml +26 -0
  99. package/dist/core/registry/cards/pr.merge.execute.yaml +29 -0
  100. package/dist/core/registry/cards/pr.review.submit_approve.yaml +26 -0
  101. package/dist/core/registry/cards/pr.review.submit_comment.yaml +26 -0
  102. package/dist/core/registry/cards/pr.review.submit_request_changes.yaml +26 -0
  103. package/dist/core/registry/cards/pr.reviewers.request.yaml +31 -0
  104. package/dist/core/registry/cards/project_v2.fields.list.yaml +37 -0
  105. package/dist/core/registry/cards/project_v2.item.add_issue.yaml +23 -0
  106. package/dist/core/registry/cards/project_v2.item.field.update.yaml +29 -0
  107. package/dist/core/registry/cards/project_v2.items.list.yaml +39 -0
  108. package/dist/core/registry/cards/project_v2.org.get.yaml +26 -0
  109. package/dist/core/registry/cards/project_v2.user.get.yaml +26 -0
  110. package/dist/core/registry/cards/release.create_draft.yaml +36 -0
  111. package/dist/core/registry/cards/release.get.yaml +30 -0
  112. package/dist/core/registry/cards/release.list.yaml +44 -0
  113. package/dist/core/registry/cards/release.publish_draft.yaml +36 -0
  114. package/dist/core/registry/cards/release.update.yaml +38 -0
  115. package/dist/core/registry/cards/repo.issue_types.list.yaml +40 -0
  116. package/dist/core/registry/cards/repo.labels.list.yaml +41 -0
  117. package/dist/core/registry/cards/workflow.get.yaml +30 -0
  118. package/dist/core/registry/cards/workflow.list.yaml +40 -0
  119. package/dist/core/registry/cards/workflow_dispatch.run.yaml +29 -0
  120. package/dist/core/registry/cards/workflow_run.artifacts.list.yaml +40 -0
  121. package/dist/core/registry/cards/workflow_run.cancel.yaml +23 -0
  122. package/dist/core/registry/cards/workflow_run.get.yaml +33 -0
  123. package/dist/core/registry/cards/workflow_run.rerun_all.yaml +23 -0
  124. package/dist/core/registry/cards/workflow_run.rerun_failed.yaml +23 -0
  125. package/dist/{core/contracts/envelope.d.ts → envelope-BpF6MNCv.d.ts} +15 -3
  126. package/dist/index.d.ts +470 -22
  127. package/dist/index.js +7 -29
  128. package/package.json +49 -20
  129. package/dist/agent-interface/prompt/main-skill.d.ts +0 -3
  130. package/dist/agent-interface/prompt/main-skill.js +0 -7
  131. package/dist/agent-interface/prompt/main-skill.js.map +0 -1
  132. package/dist/agent-interface/tools/execute-tool.d.ts +0 -16
  133. package/dist/agent-interface/tools/execute-tool.js +0 -7
  134. package/dist/agent-interface/tools/execute-tool.js.map +0 -1
  135. package/dist/agent-interface/tools/explain-tool.d.ts +0 -11
  136. package/dist/agent-interface/tools/explain-tool.js +0 -9
  137. package/dist/agent-interface/tools/explain-tool.js.map +0 -1
  138. package/dist/agent-interface/tools/list-capabilities-tool.d.ts +0 -7
  139. package/dist/agent-interface/tools/list-capabilities-tool.js +0 -9
  140. package/dist/agent-interface/tools/list-capabilities-tool.js.map +0 -1
  141. package/dist/chunk-2W4L5YCC.js +0 -116
  142. package/dist/chunk-2W4L5YCC.js.map +0 -1
  143. package/dist/chunk-3RAT5BCB.js +0 -584
  144. package/dist/chunk-3RAT5BCB.js.map +0 -1
  145. package/dist/chunk-3RJCF42N.js +0 -16
  146. package/dist/chunk-3RJCF42N.js.map +0 -1
  147. package/dist/chunk-573MDG3I.js +0 -18
  148. package/dist/chunk-573MDG3I.js.map +0 -1
  149. package/dist/chunk-5JRLVOF2.js +0 -50
  150. package/dist/chunk-5JRLVOF2.js.map +0 -1
  151. package/dist/chunk-B6RLMKS4.js +0 -41
  152. package/dist/chunk-B6RLMKS4.js.map +0 -1
  153. package/dist/chunk-BJHVAFTN.js +0 -42
  154. package/dist/chunk-BJHVAFTN.js.map +0 -1
  155. package/dist/chunk-D746VR3B.js +0 -38
  156. package/dist/chunk-D746VR3B.js.map +0 -1
  157. package/dist/chunk-DJIEG6K7.js +0 -20
  158. package/dist/chunk-DJIEG6K7.js.map +0 -1
  159. package/dist/chunk-DLKIQBK6.js +0 -106
  160. package/dist/chunk-DLKIQBK6.js.map +0 -1
  161. package/dist/chunk-EBRDO4Y6.js +0 -31
  162. package/dist/chunk-EBRDO4Y6.js.map +0 -1
  163. package/dist/chunk-FXN6IIT5.js +0 -14
  164. package/dist/chunk-FXN6IIT5.js.map +0 -1
  165. package/dist/chunk-GPU4P7UG.js +0 -92
  166. package/dist/chunk-GPU4P7UG.js.map +0 -1
  167. package/dist/chunk-MMG6CIKK.js.map +0 -1
  168. package/dist/chunk-MT4U5DYD.js +0 -88
  169. package/dist/chunk-MT4U5DYD.js.map +0 -1
  170. package/dist/chunk-NFF5VF4U.js +0 -28
  171. package/dist/chunk-NFF5VF4U.js.map +0 -1
  172. package/dist/chunk-Q4RTT3DV.js +0 -209
  173. package/dist/chunk-Q4RTT3DV.js.map +0 -1
  174. package/dist/chunk-QEAMC4IJ.js +0 -34
  175. package/dist/chunk-QEAMC4IJ.js.map +0 -1
  176. package/dist/chunk-QX34GTH6.js +0 -30
  177. package/dist/chunk-QX34GTH6.js.map +0 -1
  178. package/dist/chunk-QZZC53HF.js +0 -38
  179. package/dist/chunk-QZZC53HF.js.map +0 -1
  180. package/dist/chunk-RUQXGZ35.js +0 -34
  181. package/dist/chunk-RUQXGZ35.js.map +0 -1
  182. package/dist/chunk-TCLMLVUQ.js +0 -38
  183. package/dist/chunk-TCLMLVUQ.js.map +0 -1
  184. package/dist/chunk-TDTKOJKN.js +0 -52
  185. package/dist/chunk-TDTKOJKN.js.map +0 -1
  186. package/dist/chunk-UGWIZ3RI.js +0 -7
  187. package/dist/chunk-UGWIZ3RI.js.map +0 -1
  188. package/dist/chunk-UOJWOHRM.js +0 -16
  189. package/dist/chunk-UOJWOHRM.js.map +0 -1
  190. package/dist/chunk-VD5NXQP7.js +0 -42
  191. package/dist/chunk-VD5NXQP7.js.map +0 -1
  192. package/dist/chunk-W2TKG2UL.js +0 -37
  193. package/dist/chunk-W2TKG2UL.js.map +0 -1
  194. package/dist/chunk-W6ROKCY5.js +0 -28
  195. package/dist/chunk-W6ROKCY5.js.map +0 -1
  196. package/dist/chunk-WYSY75U7.js +0 -156
  197. package/dist/chunk-WYSY75U7.js.map +0 -1
  198. package/dist/chunk-YNNDBMNR.js +0 -113
  199. package/dist/chunk-YNNDBMNR.js.map +0 -1
  200. package/dist/chunk-YNQNHCRS.js +0 -198
  201. package/dist/chunk-YNQNHCRS.js.map +0 -1
  202. package/dist/chunk-YQDQX4BT.js +0 -624
  203. package/dist/chunk-YQDQX4BT.js.map +0 -1
  204. package/dist/cli/commands/capabilities-explain.d.ts +0 -3
  205. package/dist/cli/commands/capabilities-explain.js +0 -10
  206. package/dist/cli/commands/capabilities-explain.js.map +0 -1
  207. package/dist/cli/commands/capabilities-list.d.ts +0 -3
  208. package/dist/cli/commands/capabilities-list.js +0 -10
  209. package/dist/cli/commands/capabilities-list.js.map +0 -1
  210. package/dist/cli/commands/doctor.d.ts +0 -3
  211. package/dist/cli/commands/doctor.js +0 -7
  212. package/dist/cli/commands/doctor.js.map +0 -1
  213. package/dist/cli/commands/routes.d.ts +0 -3
  214. package/dist/cli/commands/routes.js +0 -7
  215. package/dist/cli/commands/routes.js.map +0 -1
  216. package/dist/cli/commands/run.d.ts +0 -3
  217. package/dist/cli/commands/run.js +0 -31
  218. package/dist/cli/commands/run.js.map +0 -1
  219. package/dist/cli/commands/setup.d.ts +0 -3
  220. package/dist/cli/commands/setup.js +0 -7
  221. package/dist/cli/commands/setup.js.map +0 -1
  222. package/dist/cli/formatters/json.d.ts +0 -3
  223. package/dist/cli/formatters/json.js +0 -8
  224. package/dist/cli/formatters/json.js.map +0 -1
  225. package/dist/cli/formatters/table.d.ts +0 -3
  226. package/dist/cli/formatters/table.js +0 -8
  227. package/dist/cli/formatters/table.js.map +0 -1
  228. package/dist/core/contracts/envelope.js +0 -1
  229. package/dist/core/contracts/envelope.js.map +0 -1
  230. package/dist/core/contracts/task.d.ts +0 -7
  231. package/dist/core/contracts/task.js +0 -1
  232. package/dist/core/contracts/task.js.map +0 -1
  233. package/dist/core/contracts/tasks/check_run.annotations.list.d.ts +0 -5
  234. package/dist/core/contracts/tasks/check_run.annotations.list.js +0 -8
  235. package/dist/core/contracts/tasks/check_run.annotations.list.js.map +0 -1
  236. package/dist/core/contracts/tasks/issue.comments.list.d.ts +0 -5
  237. package/dist/core/contracts/tasks/issue.comments.list.js +0 -8
  238. package/dist/core/contracts/tasks/issue.comments.list.js.map +0 -1
  239. package/dist/core/contracts/tasks/issue.list.d.ts +0 -5
  240. package/dist/core/contracts/tasks/issue.list.js +0 -8
  241. package/dist/core/contracts/tasks/issue.list.js.map +0 -1
  242. package/dist/core/contracts/tasks/issue.view.d.ts +0 -5
  243. package/dist/core/contracts/tasks/issue.view.js +0 -8
  244. package/dist/core/contracts/tasks/issue.view.js.map +0 -1
  245. package/dist/core/contracts/tasks/pr.checks.get_failed.d.ts +0 -5
  246. package/dist/core/contracts/tasks/pr.checks.get_failed.js +0 -8
  247. package/dist/core/contracts/tasks/pr.checks.get_failed.js.map +0 -1
  248. package/dist/core/contracts/tasks/pr.comment.reply.d.ts +0 -5
  249. package/dist/core/contracts/tasks/pr.comment.reply.js +0 -8
  250. package/dist/core/contracts/tasks/pr.comment.reply.js.map +0 -1
  251. package/dist/core/contracts/tasks/pr.comment.resolve.d.ts +0 -5
  252. package/dist/core/contracts/tasks/pr.comment.resolve.js +0 -8
  253. package/dist/core/contracts/tasks/pr.comment.resolve.js.map +0 -1
  254. package/dist/core/contracts/tasks/pr.comment.unresolve.d.ts +0 -5
  255. package/dist/core/contracts/tasks/pr.comment.unresolve.js +0 -8
  256. package/dist/core/contracts/tasks/pr.comment.unresolve.js.map +0 -1
  257. package/dist/core/contracts/tasks/pr.comments.list.d.ts +0 -5
  258. package/dist/core/contracts/tasks/pr.comments.list.js +0 -8
  259. package/dist/core/contracts/tasks/pr.comments.list.js.map +0 -1
  260. package/dist/core/contracts/tasks/pr.diff.list_files.d.ts +0 -5
  261. package/dist/core/contracts/tasks/pr.diff.list_files.js +0 -8
  262. package/dist/core/contracts/tasks/pr.diff.list_files.js.map +0 -1
  263. package/dist/core/contracts/tasks/pr.list.d.ts +0 -5
  264. package/dist/core/contracts/tasks/pr.list.js +0 -8
  265. package/dist/core/contracts/tasks/pr.list.js.map +0 -1
  266. package/dist/core/contracts/tasks/pr.mergeability.view.d.ts +0 -5
  267. package/dist/core/contracts/tasks/pr.mergeability.view.js +0 -8
  268. package/dist/core/contracts/tasks/pr.mergeability.view.js.map +0 -1
  269. package/dist/core/contracts/tasks/pr.ready_for_review.set.d.ts +0 -5
  270. package/dist/core/contracts/tasks/pr.ready_for_review.set.js +0 -8
  271. package/dist/core/contracts/tasks/pr.ready_for_review.set.js.map +0 -1
  272. package/dist/core/contracts/tasks/pr.reviews.list.d.ts +0 -5
  273. package/dist/core/contracts/tasks/pr.reviews.list.js +0 -8
  274. package/dist/core/contracts/tasks/pr.reviews.list.js.map +0 -1
  275. package/dist/core/contracts/tasks/pr.status.checks.d.ts +0 -5
  276. package/dist/core/contracts/tasks/pr.status.checks.js +0 -8
  277. package/dist/core/contracts/tasks/pr.status.checks.js.map +0 -1
  278. package/dist/core/contracts/tasks/pr.view.d.ts +0 -5
  279. package/dist/core/contracts/tasks/pr.view.js +0 -8
  280. package/dist/core/contracts/tasks/pr.view.js.map +0 -1
  281. package/dist/core/contracts/tasks/repo.view.d.ts +0 -5
  282. package/dist/core/contracts/tasks/repo.view.js +0 -8
  283. package/dist/core/contracts/tasks/repo.view.js.map +0 -1
  284. package/dist/core/contracts/tasks/workflow_job.logs.analyze.d.ts +0 -5
  285. package/dist/core/contracts/tasks/workflow_job.logs.analyze.js +0 -8
  286. package/dist/core/contracts/tasks/workflow_job.logs.analyze.js.map +0 -1
  287. package/dist/core/contracts/tasks/workflow_job.logs.get.d.ts +0 -5
  288. package/dist/core/contracts/tasks/workflow_job.logs.get.js +0 -8
  289. package/dist/core/contracts/tasks/workflow_job.logs.get.js.map +0 -1
  290. package/dist/core/contracts/tasks/workflow_run.jobs.list.d.ts +0 -5
  291. package/dist/core/contracts/tasks/workflow_run.jobs.list.js +0 -8
  292. package/dist/core/contracts/tasks/workflow_run.jobs.list.js.map +0 -1
  293. package/dist/core/contracts/tasks/workflow_runs.list.d.ts +0 -5
  294. package/dist/core/contracts/tasks/workflow_runs.list.js +0 -8
  295. package/dist/core/contracts/tasks/workflow_runs.list.js.map +0 -1
  296. package/dist/core/errors/codes.d.ts +0 -13
  297. package/dist/core/errors/codes.js +0 -7
  298. package/dist/core/errors/codes.js.map +0 -1
  299. package/dist/core/errors/map-error.d.ts +0 -5
  300. package/dist/core/errors/map-error.js +0 -8
  301. package/dist/core/errors/map-error.js.map +0 -1
  302. package/dist/core/errors/retryability.d.ts +0 -3
  303. package/dist/core/errors/retryability.js +0 -8
  304. package/dist/core/errors/retryability.js.map +0 -1
  305. package/dist/core/execute/execute.d.ts +0 -28
  306. package/dist/core/execute/execute.js +0 -11
  307. package/dist/core/execute/execute.js.map +0 -1
  308. package/dist/core/execution/adapters/cli-adapter.d.ts +0 -22
  309. package/dist/core/execution/adapters/cli-adapter.js +0 -69
  310. package/dist/core/execution/adapters/cli-adapter.js.map +0 -1
  311. package/dist/core/execution/adapters/cli-capability-adapter.d.ts +0 -16
  312. package/dist/core/execution/adapters/cli-capability-adapter.js +0 -11
  313. package/dist/core/execution/adapters/cli-capability-adapter.js.map +0 -1
  314. package/dist/core/execution/adapters/graphql-adapter.d.ts +0 -25
  315. package/dist/core/execution/adapters/graphql-adapter.js +0 -44
  316. package/dist/core/execution/adapters/graphql-adapter.js.map +0 -1
  317. package/dist/core/execution/adapters/graphql-capability-adapter.d.ts +0 -20
  318. package/dist/core/execution/adapters/graphql-capability-adapter.js +0 -11
  319. package/dist/core/execution/adapters/graphql-capability-adapter.js.map +0 -1
  320. package/dist/core/execution/adapters/rest-adapter.d.ts +0 -3
  321. package/dist/core/execution/adapters/rest-adapter.js +0 -8
  322. package/dist/core/execution/adapters/rest-adapter.js.map +0 -1
  323. package/dist/core/execution/cli/safe-runner.d.ts +0 -12
  324. package/dist/core/execution/cli/safe-runner.js +0 -7
  325. package/dist/core/execution/cli/safe-runner.js.map +0 -1
  326. package/dist/core/execution/normalizer.d.ts +0 -13
  327. package/dist/core/execution/normalizer.js +0 -9
  328. package/dist/core/execution/normalizer.js.map +0 -1
  329. package/dist/core/execution/preflight.d.ts +0 -24
  330. package/dist/core/execution/preflight.js +0 -8
  331. package/dist/core/execution/preflight.js.map +0 -1
  332. package/dist/core/registry/index.d.ts +0 -15
  333. package/dist/core/registry/index.js +0 -12
  334. package/dist/core/registry/index.js.map +0 -1
  335. package/dist/core/registry/operation-card-schema.d.ts +0 -167
  336. package/dist/core/registry/operation-card-schema.js +0 -7
  337. package/dist/core/registry/operation-card-schema.js.map +0 -1
  338. package/dist/core/registry/schema-validator.d.ts +0 -16
  339. package/dist/core/registry/schema-validator.js +0 -9
  340. package/dist/core/registry/schema-validator.js.map +0 -1
  341. package/dist/core/registry/types.d.ts +0 -51
  342. package/dist/core/registry/types.js +0 -1
  343. package/dist/core/registry/types.js.map +0 -1
  344. package/dist/core/routing/capability-registry.d.ts +0 -8
  345. package/dist/core/routing/capability-registry.js +0 -15
  346. package/dist/core/routing/capability-registry.js.map +0 -1
  347. package/dist/core/routing/engine.d.ts +0 -32
  348. package/dist/core/routing/engine.js +0 -23
  349. package/dist/core/routing/engine.js.map +0 -1
  350. package/dist/core/routing/policy.d.ts +0 -3
  351. package/dist/core/routing/policy.js +0 -7
  352. package/dist/core/routing/policy.js.map +0 -1
  353. package/dist/core/routing/reason-codes.d.ts +0 -4
  354. package/dist/core/routing/reason-codes.js +0 -15
  355. package/dist/core/routing/reason-codes.js.map +0 -1
  356. package/dist/core/telemetry/logger.d.ts +0 -8
  357. package/dist/core/telemetry/logger.js +0 -9
  358. package/dist/core/telemetry/logger.js.map +0 -1
  359. package/dist/core/telemetry/metrics.d.ts +0 -7
  360. package/dist/core/telemetry/metrics.js +0 -1
  361. package/dist/core/telemetry/metrics.js.map +0 -1
  362. package/dist/gql/client.d.ts +0 -183
  363. package/dist/gql/client.js +0 -17
  364. package/dist/gql/client.js.map +0 -1
  365. package/dist/gql/generated/common-types.d.ts +0 -36
  366. package/dist/gql/generated/common-types.js +0 -1
  367. package/dist/gql/generated/common-types.js.map +0 -1
  368. package/dist/gql/operations/issue-comments-list.generated.d.ts +0 -59
  369. package/dist/gql/operations/issue-comments-list.generated.js +0 -9
  370. package/dist/gql/operations/issue-comments-list.generated.js.map +0 -1
  371. package/dist/gql/operations/issue-list.generated.d.ts +0 -40
  372. package/dist/gql/operations/issue-list.generated.js +0 -9
  373. package/dist/gql/operations/issue-list.generated.js.map +0 -1
  374. package/dist/gql/operations/issue-view.generated.d.ts +0 -31
  375. package/dist/gql/operations/issue-view.generated.js +0 -9
  376. package/dist/gql/operations/issue-view.generated.js.map +0 -1
  377. package/dist/gql/operations/pr-comment-reply.generated.d.ts +0 -26
  378. package/dist/gql/operations/pr-comment-reply.generated.js +0 -25
  379. package/dist/gql/operations/pr-comment-reply.generated.js.map +0 -1
  380. package/dist/gql/operations/pr-comment-resolve.generated.d.ts +0 -26
  381. package/dist/gql/operations/pr-comment-resolve.generated.js +0 -24
  382. package/dist/gql/operations/pr-comment-resolve.generated.js.map +0 -1
  383. package/dist/gql/operations/pr-comment-unresolve.generated.d.ts +0 -26
  384. package/dist/gql/operations/pr-comment-unresolve.generated.js +0 -24
  385. package/dist/gql/operations/pr-comment-unresolve.generated.js.map +0 -1
  386. package/dist/gql/operations/pr-comments-list.generated.d.ts +0 -84
  387. package/dist/gql/operations/pr-comments-list.generated.js +0 -58
  388. package/dist/gql/operations/pr-comments-list.generated.js.map +0 -1
  389. package/dist/gql/operations/pr-diff-list-files.generated.d.ts +0 -42
  390. package/dist/gql/operations/pr-diff-list-files.generated.js +0 -9
  391. package/dist/gql/operations/pr-diff-list-files.generated.js.map +0 -1
  392. package/dist/gql/operations/pr-list.generated.d.ts +0 -40
  393. package/dist/gql/operations/pr-list.generated.js +0 -9
  394. package/dist/gql/operations/pr-list.generated.js.map +0 -1
  395. package/dist/gql/operations/pr-reviews-list.generated.d.ts +0 -64
  396. package/dist/gql/operations/pr-reviews-list.generated.js +0 -9
  397. package/dist/gql/operations/pr-reviews-list.generated.js.map +0 -1
  398. package/dist/gql/operations/pr-view.generated.d.ts +0 -31
  399. package/dist/gql/operations/pr-view.generated.js +0 -9
  400. package/dist/gql/operations/pr-view.generated.js.map +0 -1
  401. package/dist/gql/operations/repo-view.generated.d.ts +0 -33
  402. package/dist/gql/operations/repo-view.generated.js +0 -9
  403. package/dist/gql/operations/repo-view.generated.js.map +0 -1
  404. package/dist/shared/constants.d.ts +0 -3
  405. package/dist/shared/constants.js +0 -6
  406. package/dist/shared/constants.js.map +0 -1
  407. package/dist/shared/types.d.ts +0 -3
  408. package/dist/shared/types.js +0 -1
  409. package/dist/shared/types.js.map +0 -1
  410. package/dist/shared/utils.d.ts +0 -3
  411. package/dist/shared/utils.js +0 -8
  412. package/dist/shared/utils.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/pr.status.checks.ts"],"sourcesContent":["export const prStatusChecksTask = {\n id: \"pr.status.checks\",\n} as const\n"],"mappings":";AAAO,IAAM,qBAAqB;AAAA,EAChC,IAAI;AACN;","names":[]}
@@ -1,5 +0,0 @@
1
- declare const prViewTask: {
2
- readonly id: "pr.view";
3
- };
4
-
5
- export { prViewTask };
@@ -1,8 +0,0 @@
1
- // src/core/contracts/tasks/pr.view.ts
2
- var prViewTask = {
3
- id: "pr.view"
4
- };
5
- export {
6
- prViewTask
7
- };
8
- //# sourceMappingURL=pr.view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/pr.view.ts"],"sourcesContent":["export const prViewTask = {\n id: \"pr.view\"\n} as const\n"],"mappings":";AAAO,IAAM,aAAa;AAAA,EACxB,IAAI;AACN;","names":[]}
@@ -1,5 +0,0 @@
1
- declare const repoViewTask: {
2
- readonly id: "repo.view";
3
- };
4
-
5
- export { repoViewTask };
@@ -1,8 +0,0 @@
1
- // src/core/contracts/tasks/repo.view.ts
2
- var repoViewTask = {
3
- id: "repo.view"
4
- };
5
- export {
6
- repoViewTask
7
- };
8
- //# sourceMappingURL=repo.view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/repo.view.ts"],"sourcesContent":["export const repoViewTask = {\n id: \"repo.view\"\n} as const\n"],"mappings":";AAAO,IAAM,eAAe;AAAA,EAC1B,IAAI;AACN;","names":[]}
@@ -1,5 +0,0 @@
1
- declare const workflowJobLogsAnalyzeTask: {
2
- readonly id: "workflow_job.logs.analyze";
3
- };
4
-
5
- export { workflowJobLogsAnalyzeTask };
@@ -1,8 +0,0 @@
1
- // src/core/contracts/tasks/workflow_job.logs.analyze.ts
2
- var workflowJobLogsAnalyzeTask = {
3
- id: "workflow_job.logs.analyze"
4
- };
5
- export {
6
- workflowJobLogsAnalyzeTask
7
- };
8
- //# sourceMappingURL=workflow_job.logs.analyze.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/workflow_job.logs.analyze.ts"],"sourcesContent":["export const workflowJobLogsAnalyzeTask = {\n id: \"workflow_job.logs.analyze\"\n} as const\n"],"mappings":";AAAO,IAAM,6BAA6B;AAAA,EACxC,IAAI;AACN;","names":[]}
@@ -1,5 +0,0 @@
1
- declare const workflowJobLogsGetTask: {
2
- readonly id: "workflow_job.logs.get";
3
- };
4
-
5
- export { workflowJobLogsGetTask };
@@ -1,8 +0,0 @@
1
- // src/core/contracts/tasks/workflow_job.logs.get.ts
2
- var workflowJobLogsGetTask = {
3
- id: "workflow_job.logs.get"
4
- };
5
- export {
6
- workflowJobLogsGetTask
7
- };
8
- //# sourceMappingURL=workflow_job.logs.get.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/workflow_job.logs.get.ts"],"sourcesContent":["export const workflowJobLogsGetTask = {\n id: \"workflow_job.logs.get\",\n} as const\n"],"mappings":";AAAO,IAAM,yBAAyB;AAAA,EACpC,IAAI;AACN;","names":[]}
@@ -1,5 +0,0 @@
1
- declare const workflowRunJobsListTask: {
2
- readonly id: "workflow_run.jobs.list";
3
- };
4
-
5
- export { workflowRunJobsListTask };
@@ -1,8 +0,0 @@
1
- // src/core/contracts/tasks/workflow_run.jobs.list.ts
2
- var workflowRunJobsListTask = {
3
- id: "workflow_run.jobs.list"
4
- };
5
- export {
6
- workflowRunJobsListTask
7
- };
8
- //# sourceMappingURL=workflow_run.jobs.list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/workflow_run.jobs.list.ts"],"sourcesContent":["export const workflowRunJobsListTask = {\n id: \"workflow_run.jobs.list\"\n} as const\n"],"mappings":";AAAO,IAAM,0BAA0B;AAAA,EACrC,IAAI;AACN;","names":[]}
@@ -1,5 +0,0 @@
1
- declare const workflowRunsListTask: {
2
- readonly id: "workflow_runs.list";
3
- };
4
-
5
- export { workflowRunsListTask };
@@ -1,8 +0,0 @@
1
- // src/core/contracts/tasks/workflow_runs.list.ts
2
- var workflowRunsListTask = {
3
- id: "workflow_runs.list"
4
- };
5
- export {
6
- workflowRunsListTask
7
- };
8
- //# sourceMappingURL=workflow_runs.list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/contracts/tasks/workflow_runs.list.ts"],"sourcesContent":["export const workflowRunsListTask = {\n id: \"workflow_runs.list\",\n} as const\n"],"mappings":";AAAO,IAAM,uBAAuB;AAAA,EAClC,IAAI;AACN;","names":[]}
@@ -1,13 +0,0 @@
1
- declare const errorCodes: {
2
- readonly Auth: "AUTH";
3
- readonly NotFound: "NOT_FOUND";
4
- readonly Validation: "VALIDATION";
5
- readonly RateLimit: "RATE_LIMIT";
6
- readonly Network: "NETWORK";
7
- readonly Server: "SERVER";
8
- readonly AdapterUnsupported: "ADAPTER_UNSUPPORTED";
9
- readonly Unknown: "UNKNOWN";
10
- };
11
- type ErrorCode = (typeof errorCodes)[keyof typeof errorCodes];
12
-
13
- export { type ErrorCode, errorCodes };
@@ -1,7 +0,0 @@
1
- import {
2
- errorCodes
3
- } from "../../chunk-UOJWOHRM.js";
4
- export {
5
- errorCodes
6
- };
7
- //# sourceMappingURL=codes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,5 +0,0 @@
1
- import { ErrorCode } from './codes.js';
2
-
3
- declare function mapErrorToCode(error: unknown): ErrorCode;
4
-
5
- export { mapErrorToCode };
@@ -1,8 +0,0 @@
1
- import {
2
- mapErrorToCode
3
- } from "../../chunk-B6RLMKS4.js";
4
- import "../../chunk-UOJWOHRM.js";
5
- export {
6
- mapErrorToCode
7
- };
8
- //# sourceMappingURL=map-error.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +0,0 @@
1
- declare function isRetryableErrorCode(code: string): boolean;
2
-
3
- export { isRetryableErrorCode };
@@ -1,8 +0,0 @@
1
- import {
2
- isRetryableErrorCode
3
- } from "../../chunk-573MDG3I.js";
4
- import "../../chunk-UOJWOHRM.js";
5
- export {
6
- isRetryableErrorCode
7
- };
8
- //# sourceMappingURL=retryability.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,28 +0,0 @@
1
- import { ErrorCode } from '../errors/codes.js';
2
- import { RouteSource, ResultEnvelope } from '../contracts/envelope.js';
3
- import { OperationCard } from '../registry/types.js';
4
- import '../routing/reason-codes.js';
5
-
6
- type PreflightResult = {
7
- ok: true;
8
- } | {
9
- ok: false;
10
- code: ErrorCode;
11
- message: string;
12
- retryable: boolean;
13
- details?: Record<string, unknown>;
14
- };
15
- type ExecuteOptions = {
16
- card: OperationCard;
17
- params: Record<string, unknown>;
18
- routingContext?: Record<string, unknown>;
19
- trace?: boolean;
20
- retry?: {
21
- maxAttemptsPerRoute?: number;
22
- };
23
- preflight: (route: RouteSource) => Promise<PreflightResult>;
24
- routes: Record<RouteSource, (params: Record<string, unknown>) => Promise<ResultEnvelope>>;
25
- };
26
- declare function execute(options: ExecuteOptions): Promise<ResultEnvelope>;
27
-
28
- export { execute };
@@ -1,11 +0,0 @@
1
- import {
2
- execute
3
- } from "../../chunk-Q4RTT3DV.js";
4
- import "../../chunk-W2TKG2UL.js";
5
- import "../../chunk-QEAMC4IJ.js";
6
- import "../../chunk-5JRLVOF2.js";
7
- import "../../chunk-UOJWOHRM.js";
8
- export {
9
- execute
10
- };
11
- //# sourceMappingURL=execute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,22 +0,0 @@
1
- import { ResultEnvelope } from '../../contracts/envelope.js';
2
- import { RouteReasonCode } from '../../routing/reason-codes.js';
3
- import '../../errors/codes.js';
4
-
5
- type CliAdapterRequest = {
6
- command: string;
7
- args?: string[];
8
- timeoutMs?: number;
9
- capabilityId?: string;
10
- reason?: RouteReasonCode;
11
- };
12
- type CliRunResult = {
13
- stdout: string;
14
- stderr: string;
15
- exitCode: number;
16
- };
17
- type CliCommandRunner = {
18
- run(command: string, args: string[], timeoutMs: number): Promise<CliRunResult>;
19
- };
20
- declare function runCliAdapter(runner: CliCommandRunner, request: CliAdapterRequest): Promise<ResultEnvelope<CliRunResult>>;
21
-
22
- export { type CliAdapterRequest, type CliCommandRunner, type CliRunResult, runCliAdapter };
@@ -1,69 +0,0 @@
1
- import {
2
- normalizeError,
3
- normalizeResult
4
- } from "../../../chunk-QEAMC4IJ.js";
5
- import {
6
- mapErrorToCode
7
- } from "../../../chunk-B6RLMKS4.js";
8
- import {
9
- isRetryableErrorCode
10
- } from "../../../chunk-573MDG3I.js";
11
- import "../../../chunk-UOJWOHRM.js";
12
-
13
- // src/core/execution/adapters/cli-adapter.ts
14
- var DEFAULT_TIMEOUT_MS = 1e4;
15
- async function runCliAdapter(runner, request) {
16
- try {
17
- const args = request.args ?? [];
18
- const timeoutMs = request.timeoutMs ?? DEFAULT_TIMEOUT_MS;
19
- const result = await runner.run(request.command, args, timeoutMs);
20
- if (result.exitCode !== 0) {
21
- const code = mapErrorToCode(result.stderr);
22
- return normalizeError(
23
- {
24
- code,
25
- message: result.stderr || `CLI command failed with exit code ${result.exitCode}`,
26
- details: {
27
- adapter: "cli",
28
- exitCode: result.exitCode,
29
- command: request.command,
30
- args
31
- },
32
- retryable: isRetryableErrorCode(code)
33
- },
34
- "cli",
35
- {
36
- capabilityId: request.capabilityId ?? "unknown",
37
- reason: request.reason
38
- }
39
- );
40
- }
41
- return normalizeResult(result, "cli", {
42
- capabilityId: request.capabilityId ?? "unknown",
43
- reason: request.reason
44
- });
45
- } catch (error) {
46
- const code = mapErrorToCode(error);
47
- return normalizeError(
48
- {
49
- code,
50
- message: error instanceof Error ? error.message : String(error),
51
- details: {
52
- adapter: "cli",
53
- command: request.command,
54
- args: request.args ?? []
55
- },
56
- retryable: isRetryableErrorCode(code)
57
- },
58
- "cli",
59
- {
60
- capabilityId: request.capabilityId ?? "unknown",
61
- reason: request.reason
62
- }
63
- );
64
- }
65
- }
66
- export {
67
- runCliAdapter
68
- };
69
- //# sourceMappingURL=cli-adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/execution/adapters/cli-adapter.ts"],"sourcesContent":["import type { ResultEnvelope } from \"../../contracts/envelope.js\"\nimport { mapErrorToCode } from \"../../errors/map-error.js\"\nimport { isRetryableErrorCode } from \"../../errors/retryability.js\"\nimport { normalizeError, normalizeResult } from \"../normalizer.js\"\nimport type { RouteReasonCode } from \"../../routing/reason-codes.js\"\n\nexport type CliAdapterRequest = {\n command: string\n args?: string[]\n timeoutMs?: number\n capabilityId?: string\n reason?: RouteReasonCode\n}\n\nexport type CliRunResult = {\n stdout: string\n stderr: string\n exitCode: number\n}\n\nexport type CliCommandRunner = {\n run(command: string, args: string[], timeoutMs: number): Promise<CliRunResult>\n}\n\nconst DEFAULT_TIMEOUT_MS = 10_000\n\nexport async function runCliAdapter(\n runner: CliCommandRunner,\n request: CliAdapterRequest\n): Promise<ResultEnvelope<CliRunResult>> {\n try {\n const args = request.args ?? []\n const timeoutMs = request.timeoutMs ?? DEFAULT_TIMEOUT_MS\n const result = await runner.run(request.command, args, timeoutMs)\n\n if (result.exitCode !== 0) {\n const code = mapErrorToCode(result.stderr)\n return normalizeError(\n {\n code,\n message: result.stderr || `CLI command failed with exit code ${result.exitCode}`,\n details: {\n adapter: \"cli\",\n exitCode: result.exitCode,\n command: request.command,\n args\n },\n retryable: isRetryableErrorCode(code)\n },\n \"cli\",\n {\n capabilityId: request.capabilityId ?? \"unknown\",\n reason: request.reason\n }\n )\n }\n\n return normalizeResult(result, \"cli\", {\n capabilityId: request.capabilityId ?? \"unknown\",\n reason: request.reason\n })\n } catch (error: unknown) {\n const code = mapErrorToCode(error)\n return normalizeError(\n {\n code,\n message: error instanceof Error ? error.message : String(error),\n details: {\n adapter: \"cli\",\n command: request.command,\n args: request.args ?? []\n },\n retryable: isRetryableErrorCode(code)\n },\n \"cli\",\n {\n capabilityId: request.capabilityId ?? \"unknown\",\n reason: request.reason\n }\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAwBA,IAAM,qBAAqB;AAE3B,eAAsB,cACpB,QACA,SACuC;AACvC,MAAI;AACF,UAAM,OAAO,QAAQ,QAAQ,CAAC;AAC9B,UAAM,YAAY,QAAQ,aAAa;AACvC,UAAM,SAAS,MAAM,OAAO,IAAI,QAAQ,SAAS,MAAM,SAAS;AAEhE,QAAI,OAAO,aAAa,GAAG;AACzB,YAAM,OAAO,eAAe,OAAO,MAAM;AACzC,aAAO;AAAA,QACL;AAAA,UACE;AAAA,UACA,SAAS,OAAO,UAAU,qCAAqC,OAAO,QAAQ;AAAA,UAC9E,SAAS;AAAA,YACP,SAAS;AAAA,YACT,UAAU,OAAO;AAAA,YACjB,SAAS,QAAQ;AAAA,YACjB;AAAA,UACF;AAAA,UACA,WAAW,qBAAqB,IAAI;AAAA,QACtC;AAAA,QACA;AAAA,QACA;AAAA,UACE,cAAc,QAAQ,gBAAgB;AAAA,UACtC,QAAQ,QAAQ;AAAA,QAClB;AAAA,MACF;AAAA,IACF;AAEA,WAAO,gBAAgB,QAAQ,OAAO;AAAA,MACpC,cAAc,QAAQ,gBAAgB;AAAA,MACtC,QAAQ,QAAQ;AAAA,IAClB,CAAC;AAAA,EACH,SAAS,OAAgB;AACvB,UAAM,OAAO,eAAe,KAAK;AACjC,WAAO;AAAA,MACL;AAAA,QACE;AAAA,QACA,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAAA,QAC9D,SAAS;AAAA,UACP,SAAS;AAAA,UACT,SAAS,QAAQ;AAAA,UACjB,MAAM,QAAQ,QAAQ,CAAC;AAAA,QACzB;AAAA,QACA,WAAW,qBAAqB,IAAI;AAAA,MACtC;AAAA,MACA;AAAA,MACA;AAAA,QACE,cAAc,QAAQ,gBAAgB;AAAA,QACtC,QAAQ,QAAQ;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,16 +0,0 @@
1
- import { ResultEnvelope } from '../../contracts/envelope.js';
2
- import { OperationCard } from '../../registry/types.js';
3
- import '../../routing/reason-codes.js';
4
- import '../../errors/codes.js';
5
-
6
- type CliCapabilityId = "repo.view" | "issue.view" | "issue.list" | "issue.comments.list" | "pr.view" | "pr.list" | "pr.status.checks" | "pr.checks.get_failed" | "pr.mergeability.view" | "pr.ready_for_review.set" | "check_run.annotations.list" | "workflow_runs.list" | "workflow_run.jobs.list" | "workflow_job.logs.get" | "workflow_job.logs.analyze";
7
- type CliCommandRunner = {
8
- run(command: string, args: string[], timeoutMs: number): Promise<{
9
- stdout: string;
10
- stderr: string;
11
- exitCode: number;
12
- }>;
13
- };
14
- declare function runCliCapability(runner: CliCommandRunner, capabilityId: CliCapabilityId, params: Record<string, unknown>, card?: OperationCard): Promise<ResultEnvelope>;
15
-
16
- export { type CliCapabilityId, type CliCommandRunner, runCliCapability };
@@ -1,11 +0,0 @@
1
- import {
2
- runCliCapability
3
- } from "../../../chunk-3RAT5BCB.js";
4
- import "../../../chunk-QEAMC4IJ.js";
5
- import "../../../chunk-B6RLMKS4.js";
6
- import "../../../chunk-573MDG3I.js";
7
- import "../../../chunk-UOJWOHRM.js";
8
- export {
9
- runCliCapability
10
- };
11
- //# sourceMappingURL=cli-capability-adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,25 +0,0 @@
1
- import { ResultEnvelope } from '../../contracts/envelope.js';
2
- import { GraphqlVariables, GraphqlClient } from '../../../gql/client.js';
3
- import { RouteReasonCode } from '../../routing/reason-codes.js';
4
- import '../../errors/codes.js';
5
- import 'graphql';
6
- import '../../../gql/operations/issue-comments-list.generated.js';
7
- import '../../../gql/generated/common-types.js';
8
- import 'graphql-request';
9
- import '../../../gql/operations/issue-list.generated.js';
10
- import '../../../gql/operations/issue-view.generated.js';
11
- import '../../../gql/operations/pr-diff-list-files.generated.js';
12
- import '../../../gql/operations/pr-reviews-list.generated.js';
13
- import '../../../gql/operations/pr-list.generated.js';
14
- import '../../../gql/operations/pr-view.generated.js';
15
- import '../../../gql/operations/repo-view.generated.js';
16
-
17
- interface GraphqlAdapterRequest {
18
- query: string;
19
- variables?: GraphqlVariables;
20
- capabilityId?: string;
21
- reason?: RouteReasonCode;
22
- }
23
- declare function runGraphqlAdapter<TData>(client: GraphqlClient, request: GraphqlAdapterRequest): Promise<ResultEnvelope<TData>>;
24
-
25
- export { type GraphqlAdapterRequest, runGraphqlAdapter };
@@ -1,44 +0,0 @@
1
- import {
2
- normalizeError,
3
- normalizeResult
4
- } from "../../../chunk-QEAMC4IJ.js";
5
- import {
6
- mapErrorToCode
7
- } from "../../../chunk-B6RLMKS4.js";
8
- import {
9
- isRetryableErrorCode
10
- } from "../../../chunk-573MDG3I.js";
11
- import "../../../chunk-UOJWOHRM.js";
12
-
13
- // src/core/execution/adapters/graphql-adapter.ts
14
- async function runGraphqlAdapter(client, request) {
15
- try {
16
- const data = await client.query(request.query, request.variables);
17
- return normalizeResult(data, "graphql", {
18
- capabilityId: request.capabilityId ?? "unknown",
19
- reason: request.reason
20
- });
21
- } catch (error) {
22
- const code = mapErrorToCode(error);
23
- const message = error instanceof Error ? error.message : String(error);
24
- return normalizeError(
25
- {
26
- code,
27
- message,
28
- details: {
29
- adapter: "graphql"
30
- },
31
- retryable: isRetryableErrorCode(code)
32
- },
33
- "graphql",
34
- {
35
- capabilityId: request.capabilityId ?? "unknown",
36
- reason: request.reason
37
- }
38
- );
39
- }
40
- }
41
- export {
42
- runGraphqlAdapter
43
- };
44
- //# sourceMappingURL=graphql-adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/execution/adapters/graphql-adapter.ts"],"sourcesContent":["import type { ResultEnvelope } from \"../../contracts/envelope.js\"\nimport { mapErrorToCode } from \"../../errors/map-error.js\"\nimport { isRetryableErrorCode } from \"../../errors/retryability.js\"\nimport type { GraphqlClient, GraphqlVariables } from \"../../../gql/client.js\"\nimport type { RouteReasonCode } from \"../../routing/reason-codes.js\"\nimport { normalizeError, normalizeResult } from \"../normalizer.js\"\n\nexport interface GraphqlAdapterRequest {\n query: string\n variables?: GraphqlVariables\n capabilityId?: string\n reason?: RouteReasonCode\n}\n\nexport async function runGraphqlAdapter<TData>(\n client: GraphqlClient,\n request: GraphqlAdapterRequest\n): Promise<ResultEnvelope<TData>> {\n try {\n const data = await client.query<TData>(request.query, request.variables)\n\n return normalizeResult(data, \"graphql\", {\n capabilityId: request.capabilityId ?? \"unknown\",\n reason: request.reason\n })\n } catch (error: unknown) {\n const code = mapErrorToCode(error)\n const message = error instanceof Error ? error.message : String(error)\n\n return normalizeError(\n {\n code,\n message,\n details: {\n adapter: \"graphql\"\n },\n retryable: isRetryableErrorCode(code)\n },\n \"graphql\",\n {\n capabilityId: request.capabilityId ?? \"unknown\",\n reason: request.reason\n }\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAcA,eAAsB,kBACpB,QACA,SACgC;AAChC,MAAI;AACF,UAAM,OAAO,MAAM,OAAO,MAAa,QAAQ,OAAO,QAAQ,SAAS;AAEvE,WAAO,gBAAgB,MAAM,WAAW;AAAA,MACtC,cAAc,QAAQ,gBAAgB;AAAA,MACtC,QAAQ,QAAQ;AAAA,IAClB,CAAC;AAAA,EACH,SAAS,OAAgB;AACvB,UAAM,OAAO,eAAe,KAAK;AACjC,UAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAErE,WAAO;AAAA,MACL;AAAA,QACE;AAAA,QACA;AAAA,QACA,SAAS;AAAA,UACP,SAAS;AAAA,QACX;AAAA,QACA,WAAW,qBAAqB,IAAI;AAAA,MACtC;AAAA,MACA;AAAA,MACA;AAAA,QACE,cAAc,QAAQ,gBAAgB;AAAA,QACtC,QAAQ,QAAQ;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,20 +0,0 @@
1
- import { GithubClient } from '../../../gql/client.js';
2
- import { ResultEnvelope } from '../../contracts/envelope.js';
3
- import 'graphql';
4
- import '../../../gql/operations/issue-comments-list.generated.js';
5
- import '../../../gql/generated/common-types.js';
6
- import 'graphql-request';
7
- import '../../../gql/operations/issue-list.generated.js';
8
- import '../../../gql/operations/issue-view.generated.js';
9
- import '../../../gql/operations/pr-diff-list-files.generated.js';
10
- import '../../../gql/operations/pr-reviews-list.generated.js';
11
- import '../../../gql/operations/pr-list.generated.js';
12
- import '../../../gql/operations/pr-view.generated.js';
13
- import '../../../gql/operations/repo-view.generated.js';
14
- import '../../routing/reason-codes.js';
15
- import '../../errors/codes.js';
16
-
17
- type GraphqlCapabilityId = "repo.view" | "issue.view" | "issue.list" | "issue.comments.list" | "pr.view" | "pr.list" | "pr.comments.list" | "pr.reviews.list" | "pr.diff.list_files" | "pr.comment.reply" | "pr.comment.resolve" | "pr.comment.unresolve";
18
- declare function runGraphqlCapability(client: Pick<GithubClient, "fetchRepoView" | "fetchIssueView" | "fetchIssueList" | "fetchIssueCommentsList" | "fetchPrView" | "fetchPrList" | "fetchPrCommentsList" | "fetchPrReviewsList" | "fetchPrDiffListFiles" | "replyToReviewThread" | "resolveReviewThread" | "unresolveReviewThread">, capabilityId: GraphqlCapabilityId, params: Record<string, unknown>): Promise<ResultEnvelope>;
19
-
20
- export { type GraphqlCapabilityId, runGraphqlCapability };
@@ -1,11 +0,0 @@
1
- import {
2
- runGraphqlCapability
3
- } from "../../../chunk-YNNDBMNR.js";
4
- import "../../../chunk-QEAMC4IJ.js";
5
- import "../../../chunk-B6RLMKS4.js";
6
- import "../../../chunk-573MDG3I.js";
7
- import "../../../chunk-UOJWOHRM.js";
8
- export {
9
- runGraphqlCapability
10
- };
11
- //# sourceMappingURL=graphql-capability-adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +0,0 @@
1
- declare function runRestAdapter(): Promise<unknown>;
2
-
3
- export { runRestAdapter };
@@ -1,8 +0,0 @@
1
- // src/core/execution/adapters/rest-adapter.ts
2
- async function runRestAdapter() {
3
- throw new Error("runRestAdapter is not implemented yet");
4
- }
5
- export {
6
- runRestAdapter
7
- };
8
- //# sourceMappingURL=rest-adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/core/execution/adapters/rest-adapter.ts"],"sourcesContent":["export async function runRestAdapter(): Promise<unknown> {\n throw new Error(\"runRestAdapter is not implemented yet\")\n}\n"],"mappings":";AAAA,eAAsB,iBAAmC;AACvD,QAAM,IAAI,MAAM,uCAAuC;AACzD;","names":[]}
@@ -1,12 +0,0 @@
1
- import { CliCommandRunner } from '../adapters/cli-capability-adapter.js';
2
- import '../../contracts/envelope.js';
3
- import '../../routing/reason-codes.js';
4
- import '../../errors/codes.js';
5
- import '../../registry/types.js';
6
-
7
- type SafeRunnerOptions = {
8
- maxOutputBytes?: number;
9
- };
10
- declare function createSafeCliCommandRunner(options?: SafeRunnerOptions): CliCommandRunner;
11
-
12
- export { createSafeCliCommandRunner };
@@ -1,7 +0,0 @@
1
- import {
2
- createSafeCliCommandRunner
3
- } from "../../../chunk-DLKIQBK6.js";
4
- export {
5
- createSafeCliCommandRunner
6
- };
7
- //# sourceMappingURL=safe-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,13 +0,0 @@
1
- import { ResultEnvelope } from '../contracts/envelope.js';
2
- import { RouteReasonCode } from '../routing/reason-codes.js';
3
- import '../errors/codes.js';
4
-
5
- type MetaInput = {
6
- capabilityId: string;
7
- reason: RouteReasonCode | undefined;
8
- pagination?: ResultEnvelope["meta"]["pagination"];
9
- };
10
- declare function normalizeResult<TData>(data: TData, route: "cli" | "rest" | "graphql", options: MetaInput): ResultEnvelope<TData>;
11
- declare function normalizeError<TData = unknown>(error: NonNullable<ResultEnvelope["error"]>, route: "cli" | "rest" | "graphql", options: MetaInput): ResultEnvelope<TData>;
12
-
13
- export { normalizeError, normalizeResult };
@@ -1,9 +0,0 @@
1
- import {
2
- normalizeError,
3
- normalizeResult
4
- } from "../../chunk-QEAMC4IJ.js";
5
- export {
6
- normalizeError,
7
- normalizeResult
8
- };
9
- //# sourceMappingURL=normalizer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,24 +0,0 @@
1
- import { RouteSource } from '../contracts/envelope.js';
2
- import { ErrorCode } from '../errors/codes.js';
3
- import '../routing/reason-codes.js';
4
-
5
- type PreflightInput = {
6
- route: RouteSource;
7
- githubToken?: string | null;
8
- ghCliAvailable?: boolean;
9
- ghAuthenticated?: boolean;
10
- };
11
- type PreflightResult = {
12
- ok: true;
13
- } | {
14
- ok: false;
15
- code: ErrorCode;
16
- message: string;
17
- retryable: boolean;
18
- details: {
19
- route: RouteSource;
20
- };
21
- };
22
- declare function preflightCheck(input: PreflightInput): PreflightResult;
23
-
24
- export { type PreflightInput, type PreflightResult, preflightCheck };
@@ -1,8 +0,0 @@
1
- import {
2
- preflightCheck
3
- } from "../../chunk-TDTKOJKN.js";
4
- import "../../chunk-UOJWOHRM.js";
5
- export {
6
- preflightCheck
7
- };
8
- //# sourceMappingURL=preflight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,15 +0,0 @@
1
- import { OperationCard } from './types.js';
2
- import '../contracts/envelope.js';
3
- import '../routing/reason-codes.js';
4
- import '../errors/codes.js';
5
-
6
- declare function validateOperationCard(card: unknown): {
7
- ok: true;
8
- } | {
9
- ok: false;
10
- error: string;
11
- };
12
- declare function listOperationCards(): OperationCard[];
13
- declare function getOperationCard(capabilityId: string): OperationCard | undefined;
14
-
15
- export { getOperationCard, listOperationCards, validateOperationCard };
@@ -1,12 +0,0 @@
1
- import {
2
- getOperationCard,
3
- listOperationCards,
4
- validateOperationCard
5
- } from "../../chunk-MT4U5DYD.js";
6
- import "../../chunk-2W4L5YCC.js";
7
- export {
8
- getOperationCard,
9
- listOperationCards,
10
- validateOperationCard
11
- };
12
- //# sourceMappingURL=index.js.map