@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.
- package/README.md +181 -114
- package/dist/agent.d.ts +32 -7
- package/dist/agent.js +29 -12
- package/dist/agent.js.map +1 -1
- package/dist/cards/check_run.annotations.list.yaml +35 -0
- package/dist/cards/issue.assignees.update.yaml +27 -0
- package/dist/cards/issue.blocked_by.add.yaml +23 -0
- package/dist/cards/issue.blocked_by.remove.yaml +24 -0
- package/dist/cards/issue.close.yaml +24 -0
- package/dist/cards/issue.comments.create.yaml +24 -0
- package/dist/cards/issue.comments.list.yaml +48 -0
- package/dist/cards/issue.create.yaml +28 -0
- package/dist/cards/issue.delete.yaml +23 -0
- package/dist/cards/issue.labels.update.yaml +27 -0
- package/dist/cards/issue.linked_prs.list.yaml +34 -0
- package/dist/cards/issue.list.yaml +48 -0
- package/dist/cards/issue.milestone.set.yaml +23 -0
- package/dist/cards/issue.parent.remove.yaml +22 -0
- package/dist/cards/issue.parent.set.yaml +23 -0
- package/dist/cards/issue.relations.get.yaml +54 -0
- package/dist/cards/issue.reopen.yaml +24 -0
- package/dist/cards/issue.update.yaml +27 -0
- package/dist/cards/issue.view.yaml +32 -0
- package/dist/cards/pr.assignees.update.yaml +38 -0
- package/dist/cards/pr.branch.update.yaml +23 -0
- package/dist/cards/pr.checks.get_failed.yaml +42 -0
- package/dist/cards/pr.checks.rerun_all.yaml +26 -0
- package/dist/cards/pr.checks.rerun_failed.yaml +26 -0
- package/dist/cards/pr.comment.reply.yaml +23 -0
- package/dist/cards/pr.comment.resolve.yaml +22 -0
- package/dist/cards/pr.comment.unresolve.yaml +22 -0
- package/dist/cards/pr.comments.list.yaml +98 -0
- package/dist/cards/pr.diff.list_files.yaml +43 -0
- package/dist/cards/pr.list.yaml +48 -0
- package/dist/cards/pr.merge.execute.yaml +29 -0
- package/dist/cards/pr.mergeability.view.yaml +27 -0
- package/dist/cards/pr.ready_for_review.set.yaml +24 -0
- package/dist/cards/pr.review.submit_approve.yaml +26 -0
- package/dist/cards/pr.review.submit_comment.yaml +26 -0
- package/dist/cards/pr.review.submit_request_changes.yaml +26 -0
- package/dist/cards/pr.reviewers.request.yaml +31 -0
- package/dist/cards/pr.reviews.list.yaml +47 -0
- package/dist/cards/pr.status.checks.yaml +42 -0
- package/dist/cards/pr.view.yaml +32 -0
- package/dist/cards/project_v2.fields.list.yaml +37 -0
- package/dist/cards/project_v2.item.add_issue.yaml +23 -0
- package/dist/cards/project_v2.item.field.update.yaml +29 -0
- package/dist/cards/project_v2.items.list.yaml +39 -0
- package/dist/cards/project_v2.org.get.yaml +26 -0
- package/dist/cards/project_v2.user.get.yaml +26 -0
- package/dist/cards/release.create_draft.yaml +36 -0
- package/dist/cards/release.get.yaml +30 -0
- package/dist/cards/release.list.yaml +44 -0
- package/dist/cards/release.publish_draft.yaml +36 -0
- package/dist/cards/release.update.yaml +38 -0
- package/dist/cards/repo.issue_types.list.yaml +40 -0
- package/dist/cards/repo.labels.list.yaml +41 -0
- package/dist/cards/repo.view.yaml +34 -0
- package/dist/cards/workflow.get.yaml +30 -0
- package/dist/cards/workflow.list.yaml +40 -0
- package/dist/cards/workflow_dispatch.run.yaml +29 -0
- package/dist/cards/workflow_job.logs.analyze.yaml +33 -0
- package/dist/cards/workflow_job.logs.get.yaml +24 -0
- package/dist/cards/workflow_run.artifacts.list.yaml +40 -0
- package/dist/cards/workflow_run.cancel.yaml +23 -0
- package/dist/cards/workflow_run.get.yaml +33 -0
- package/dist/cards/workflow_run.jobs.list.yaml +35 -0
- package/dist/cards/workflow_run.rerun_all.yaml +23 -0
- package/dist/cards/workflow_run.rerun_failed.yaml +23 -0
- package/dist/cards/workflow_runs.list.yaml +45 -0
- package/dist/chunk-OL4ARD3R.js +242 -0
- package/dist/chunk-OL4ARD3R.js.map +1 -0
- package/dist/chunk-PJ2JKKQE.js +4148 -0
- package/dist/chunk-PJ2JKKQE.js.map +1 -0
- package/dist/{chunk-MMG6CIKK.js → chunk-SCIJMW5P.js} +14 -4
- package/dist/chunk-SCIJMW5P.js.map +1 -0
- package/dist/cli/assets/skills/ghx/SKILL.md +57 -0
- package/dist/cli/index.js +373 -41
- package/dist/cli/index.js.map +1 -1
- package/dist/core/registry/cards/issue.assignees.update.yaml +27 -0
- package/dist/core/registry/cards/issue.blocked_by.add.yaml +23 -0
- package/dist/core/registry/cards/issue.blocked_by.remove.yaml +24 -0
- package/dist/core/registry/cards/issue.close.yaml +24 -0
- package/dist/core/registry/cards/issue.comments.create.yaml +24 -0
- package/dist/core/registry/cards/issue.create.yaml +28 -0
- package/dist/core/registry/cards/issue.delete.yaml +23 -0
- package/dist/core/registry/cards/issue.labels.update.yaml +27 -0
- package/dist/core/registry/cards/issue.linked_prs.list.yaml +34 -0
- package/dist/core/registry/cards/issue.milestone.set.yaml +23 -0
- package/dist/core/registry/cards/issue.parent.remove.yaml +22 -0
- package/dist/core/registry/cards/issue.parent.set.yaml +23 -0
- package/dist/core/registry/cards/issue.relations.get.yaml +54 -0
- package/dist/core/registry/cards/issue.reopen.yaml +24 -0
- package/dist/core/registry/cards/issue.update.yaml +27 -0
- package/dist/core/registry/cards/pr.assignees.update.yaml +38 -0
- package/dist/core/registry/cards/pr.branch.update.yaml +23 -0
- package/dist/core/registry/cards/pr.checks.rerun_all.yaml +26 -0
- package/dist/core/registry/cards/pr.checks.rerun_failed.yaml +26 -0
- package/dist/core/registry/cards/pr.merge.execute.yaml +29 -0
- package/dist/core/registry/cards/pr.review.submit_approve.yaml +26 -0
- package/dist/core/registry/cards/pr.review.submit_comment.yaml +26 -0
- package/dist/core/registry/cards/pr.review.submit_request_changes.yaml +26 -0
- package/dist/core/registry/cards/pr.reviewers.request.yaml +31 -0
- package/dist/core/registry/cards/project_v2.fields.list.yaml +37 -0
- package/dist/core/registry/cards/project_v2.item.add_issue.yaml +23 -0
- package/dist/core/registry/cards/project_v2.item.field.update.yaml +29 -0
- package/dist/core/registry/cards/project_v2.items.list.yaml +39 -0
- package/dist/core/registry/cards/project_v2.org.get.yaml +26 -0
- package/dist/core/registry/cards/project_v2.user.get.yaml +26 -0
- package/dist/core/registry/cards/release.create_draft.yaml +36 -0
- package/dist/core/registry/cards/release.get.yaml +30 -0
- package/dist/core/registry/cards/release.list.yaml +44 -0
- package/dist/core/registry/cards/release.publish_draft.yaml +36 -0
- package/dist/core/registry/cards/release.update.yaml +38 -0
- package/dist/core/registry/cards/repo.issue_types.list.yaml +40 -0
- package/dist/core/registry/cards/repo.labels.list.yaml +41 -0
- package/dist/core/registry/cards/workflow.get.yaml +30 -0
- package/dist/core/registry/cards/workflow.list.yaml +40 -0
- package/dist/core/registry/cards/workflow_dispatch.run.yaml +29 -0
- package/dist/core/registry/cards/workflow_run.artifacts.list.yaml +40 -0
- package/dist/core/registry/cards/workflow_run.cancel.yaml +23 -0
- package/dist/core/registry/cards/workflow_run.get.yaml +33 -0
- package/dist/core/registry/cards/workflow_run.rerun_all.yaml +23 -0
- package/dist/core/registry/cards/workflow_run.rerun_failed.yaml +23 -0
- package/dist/{core/contracts/envelope.d.ts → envelope-BpF6MNCv.d.ts} +15 -3
- package/dist/index.d.ts +470 -22
- package/dist/index.js +7 -29
- package/package.json +49 -20
- package/dist/agent-interface/prompt/main-skill.d.ts +0 -3
- package/dist/agent-interface/prompt/main-skill.js +0 -7
- package/dist/agent-interface/prompt/main-skill.js.map +0 -1
- package/dist/agent-interface/tools/execute-tool.d.ts +0 -16
- package/dist/agent-interface/tools/execute-tool.js +0 -7
- package/dist/agent-interface/tools/execute-tool.js.map +0 -1
- package/dist/agent-interface/tools/explain-tool.d.ts +0 -11
- package/dist/agent-interface/tools/explain-tool.js +0 -9
- package/dist/agent-interface/tools/explain-tool.js.map +0 -1
- package/dist/agent-interface/tools/list-capabilities-tool.d.ts +0 -7
- package/dist/agent-interface/tools/list-capabilities-tool.js +0 -9
- package/dist/agent-interface/tools/list-capabilities-tool.js.map +0 -1
- package/dist/chunk-2W4L5YCC.js +0 -116
- package/dist/chunk-2W4L5YCC.js.map +0 -1
- package/dist/chunk-3RAT5BCB.js +0 -584
- package/dist/chunk-3RAT5BCB.js.map +0 -1
- package/dist/chunk-3RJCF42N.js +0 -16
- package/dist/chunk-3RJCF42N.js.map +0 -1
- package/dist/chunk-573MDG3I.js +0 -18
- package/dist/chunk-573MDG3I.js.map +0 -1
- package/dist/chunk-5JRLVOF2.js +0 -50
- package/dist/chunk-5JRLVOF2.js.map +0 -1
- package/dist/chunk-B6RLMKS4.js +0 -41
- package/dist/chunk-B6RLMKS4.js.map +0 -1
- package/dist/chunk-BJHVAFTN.js +0 -42
- package/dist/chunk-BJHVAFTN.js.map +0 -1
- package/dist/chunk-D746VR3B.js +0 -38
- package/dist/chunk-D746VR3B.js.map +0 -1
- package/dist/chunk-DJIEG6K7.js +0 -20
- package/dist/chunk-DJIEG6K7.js.map +0 -1
- package/dist/chunk-DLKIQBK6.js +0 -106
- package/dist/chunk-DLKIQBK6.js.map +0 -1
- package/dist/chunk-EBRDO4Y6.js +0 -31
- package/dist/chunk-EBRDO4Y6.js.map +0 -1
- package/dist/chunk-FXN6IIT5.js +0 -14
- package/dist/chunk-FXN6IIT5.js.map +0 -1
- package/dist/chunk-GPU4P7UG.js +0 -92
- package/dist/chunk-GPU4P7UG.js.map +0 -1
- package/dist/chunk-MMG6CIKK.js.map +0 -1
- package/dist/chunk-MT4U5DYD.js +0 -88
- package/dist/chunk-MT4U5DYD.js.map +0 -1
- package/dist/chunk-NFF5VF4U.js +0 -28
- package/dist/chunk-NFF5VF4U.js.map +0 -1
- package/dist/chunk-Q4RTT3DV.js +0 -209
- package/dist/chunk-Q4RTT3DV.js.map +0 -1
- package/dist/chunk-QEAMC4IJ.js +0 -34
- package/dist/chunk-QEAMC4IJ.js.map +0 -1
- package/dist/chunk-QX34GTH6.js +0 -30
- package/dist/chunk-QX34GTH6.js.map +0 -1
- package/dist/chunk-QZZC53HF.js +0 -38
- package/dist/chunk-QZZC53HF.js.map +0 -1
- package/dist/chunk-RUQXGZ35.js +0 -34
- package/dist/chunk-RUQXGZ35.js.map +0 -1
- package/dist/chunk-TCLMLVUQ.js +0 -38
- package/dist/chunk-TCLMLVUQ.js.map +0 -1
- package/dist/chunk-TDTKOJKN.js +0 -52
- package/dist/chunk-TDTKOJKN.js.map +0 -1
- package/dist/chunk-UGWIZ3RI.js +0 -7
- package/dist/chunk-UGWIZ3RI.js.map +0 -1
- package/dist/chunk-UOJWOHRM.js +0 -16
- package/dist/chunk-UOJWOHRM.js.map +0 -1
- package/dist/chunk-VD5NXQP7.js +0 -42
- package/dist/chunk-VD5NXQP7.js.map +0 -1
- package/dist/chunk-W2TKG2UL.js +0 -37
- package/dist/chunk-W2TKG2UL.js.map +0 -1
- package/dist/chunk-W6ROKCY5.js +0 -28
- package/dist/chunk-W6ROKCY5.js.map +0 -1
- package/dist/chunk-WYSY75U7.js +0 -156
- package/dist/chunk-WYSY75U7.js.map +0 -1
- package/dist/chunk-YNNDBMNR.js +0 -113
- package/dist/chunk-YNNDBMNR.js.map +0 -1
- package/dist/chunk-YNQNHCRS.js +0 -198
- package/dist/chunk-YNQNHCRS.js.map +0 -1
- package/dist/chunk-YQDQX4BT.js +0 -624
- package/dist/chunk-YQDQX4BT.js.map +0 -1
- package/dist/cli/commands/capabilities-explain.d.ts +0 -3
- package/dist/cli/commands/capabilities-explain.js +0 -10
- package/dist/cli/commands/capabilities-explain.js.map +0 -1
- package/dist/cli/commands/capabilities-list.d.ts +0 -3
- package/dist/cli/commands/capabilities-list.js +0 -10
- package/dist/cli/commands/capabilities-list.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -3
- package/dist/cli/commands/doctor.js +0 -7
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/routes.d.ts +0 -3
- package/dist/cli/commands/routes.js +0 -7
- package/dist/cli/commands/routes.js.map +0 -1
- package/dist/cli/commands/run.d.ts +0 -3
- package/dist/cli/commands/run.js +0 -31
- package/dist/cli/commands/run.js.map +0 -1
- package/dist/cli/commands/setup.d.ts +0 -3
- package/dist/cli/commands/setup.js +0 -7
- package/dist/cli/commands/setup.js.map +0 -1
- package/dist/cli/formatters/json.d.ts +0 -3
- package/dist/cli/formatters/json.js +0 -8
- package/dist/cli/formatters/json.js.map +0 -1
- package/dist/cli/formatters/table.d.ts +0 -3
- package/dist/cli/formatters/table.js +0 -8
- package/dist/cli/formatters/table.js.map +0 -1
- package/dist/core/contracts/envelope.js +0 -1
- package/dist/core/contracts/envelope.js.map +0 -1
- package/dist/core/contracts/task.d.ts +0 -7
- package/dist/core/contracts/task.js +0 -1
- package/dist/core/contracts/task.js.map +0 -1
- package/dist/core/contracts/tasks/check_run.annotations.list.d.ts +0 -5
- package/dist/core/contracts/tasks/check_run.annotations.list.js +0 -8
- package/dist/core/contracts/tasks/check_run.annotations.list.js.map +0 -1
- package/dist/core/contracts/tasks/issue.comments.list.d.ts +0 -5
- package/dist/core/contracts/tasks/issue.comments.list.js +0 -8
- package/dist/core/contracts/tasks/issue.comments.list.js.map +0 -1
- package/dist/core/contracts/tasks/issue.list.d.ts +0 -5
- package/dist/core/contracts/tasks/issue.list.js +0 -8
- package/dist/core/contracts/tasks/issue.list.js.map +0 -1
- package/dist/core/contracts/tasks/issue.view.d.ts +0 -5
- package/dist/core/contracts/tasks/issue.view.js +0 -8
- package/dist/core/contracts/tasks/issue.view.js.map +0 -1
- package/dist/core/contracts/tasks/pr.checks.get_failed.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.checks.get_failed.js +0 -8
- package/dist/core/contracts/tasks/pr.checks.get_failed.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comment.reply.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comment.reply.js +0 -8
- package/dist/core/contracts/tasks/pr.comment.reply.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comment.resolve.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comment.resolve.js +0 -8
- package/dist/core/contracts/tasks/pr.comment.resolve.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comment.unresolve.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comment.unresolve.js +0 -8
- package/dist/core/contracts/tasks/pr.comment.unresolve.js.map +0 -1
- package/dist/core/contracts/tasks/pr.comments.list.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.comments.list.js +0 -8
- package/dist/core/contracts/tasks/pr.comments.list.js.map +0 -1
- package/dist/core/contracts/tasks/pr.diff.list_files.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.diff.list_files.js +0 -8
- package/dist/core/contracts/tasks/pr.diff.list_files.js.map +0 -1
- package/dist/core/contracts/tasks/pr.list.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.list.js +0 -8
- package/dist/core/contracts/tasks/pr.list.js.map +0 -1
- package/dist/core/contracts/tasks/pr.mergeability.view.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.mergeability.view.js +0 -8
- package/dist/core/contracts/tasks/pr.mergeability.view.js.map +0 -1
- package/dist/core/contracts/tasks/pr.ready_for_review.set.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.ready_for_review.set.js +0 -8
- package/dist/core/contracts/tasks/pr.ready_for_review.set.js.map +0 -1
- package/dist/core/contracts/tasks/pr.reviews.list.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.reviews.list.js +0 -8
- package/dist/core/contracts/tasks/pr.reviews.list.js.map +0 -1
- package/dist/core/contracts/tasks/pr.status.checks.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.status.checks.js +0 -8
- package/dist/core/contracts/tasks/pr.status.checks.js.map +0 -1
- package/dist/core/contracts/tasks/pr.view.d.ts +0 -5
- package/dist/core/contracts/tasks/pr.view.js +0 -8
- package/dist/core/contracts/tasks/pr.view.js.map +0 -1
- package/dist/core/contracts/tasks/repo.view.d.ts +0 -5
- package/dist/core/contracts/tasks/repo.view.js +0 -8
- package/dist/core/contracts/tasks/repo.view.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.js +0 -8
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_job.logs.get.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_job.logs.get.js +0 -8
- package/dist/core/contracts/tasks/workflow_job.logs.get.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_run.jobs.list.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_run.jobs.list.js +0 -8
- package/dist/core/contracts/tasks/workflow_run.jobs.list.js.map +0 -1
- package/dist/core/contracts/tasks/workflow_runs.list.d.ts +0 -5
- package/dist/core/contracts/tasks/workflow_runs.list.js +0 -8
- package/dist/core/contracts/tasks/workflow_runs.list.js.map +0 -1
- package/dist/core/errors/codes.d.ts +0 -13
- package/dist/core/errors/codes.js +0 -7
- package/dist/core/errors/codes.js.map +0 -1
- package/dist/core/errors/map-error.d.ts +0 -5
- package/dist/core/errors/map-error.js +0 -8
- package/dist/core/errors/map-error.js.map +0 -1
- package/dist/core/errors/retryability.d.ts +0 -3
- package/dist/core/errors/retryability.js +0 -8
- package/dist/core/errors/retryability.js.map +0 -1
- package/dist/core/execute/execute.d.ts +0 -28
- package/dist/core/execute/execute.js +0 -11
- package/dist/core/execute/execute.js.map +0 -1
- package/dist/core/execution/adapters/cli-adapter.d.ts +0 -22
- package/dist/core/execution/adapters/cli-adapter.js +0 -69
- package/dist/core/execution/adapters/cli-adapter.js.map +0 -1
- package/dist/core/execution/adapters/cli-capability-adapter.d.ts +0 -16
- package/dist/core/execution/adapters/cli-capability-adapter.js +0 -11
- package/dist/core/execution/adapters/cli-capability-adapter.js.map +0 -1
- package/dist/core/execution/adapters/graphql-adapter.d.ts +0 -25
- package/dist/core/execution/adapters/graphql-adapter.js +0 -44
- package/dist/core/execution/adapters/graphql-adapter.js.map +0 -1
- package/dist/core/execution/adapters/graphql-capability-adapter.d.ts +0 -20
- package/dist/core/execution/adapters/graphql-capability-adapter.js +0 -11
- package/dist/core/execution/adapters/graphql-capability-adapter.js.map +0 -1
- package/dist/core/execution/adapters/rest-adapter.d.ts +0 -3
- package/dist/core/execution/adapters/rest-adapter.js +0 -8
- package/dist/core/execution/adapters/rest-adapter.js.map +0 -1
- package/dist/core/execution/cli/safe-runner.d.ts +0 -12
- package/dist/core/execution/cli/safe-runner.js +0 -7
- package/dist/core/execution/cli/safe-runner.js.map +0 -1
- package/dist/core/execution/normalizer.d.ts +0 -13
- package/dist/core/execution/normalizer.js +0 -9
- package/dist/core/execution/normalizer.js.map +0 -1
- package/dist/core/execution/preflight.d.ts +0 -24
- package/dist/core/execution/preflight.js +0 -8
- package/dist/core/execution/preflight.js.map +0 -1
- package/dist/core/registry/index.d.ts +0 -15
- package/dist/core/registry/index.js +0 -12
- package/dist/core/registry/index.js.map +0 -1
- package/dist/core/registry/operation-card-schema.d.ts +0 -167
- package/dist/core/registry/operation-card-schema.js +0 -7
- package/dist/core/registry/operation-card-schema.js.map +0 -1
- package/dist/core/registry/schema-validator.d.ts +0 -16
- package/dist/core/registry/schema-validator.js +0 -9
- package/dist/core/registry/schema-validator.js.map +0 -1
- package/dist/core/registry/types.d.ts +0 -51
- package/dist/core/registry/types.js +0 -1
- package/dist/core/registry/types.js.map +0 -1
- package/dist/core/routing/capability-registry.d.ts +0 -8
- package/dist/core/routing/capability-registry.js +0 -15
- package/dist/core/routing/capability-registry.js.map +0 -1
- package/dist/core/routing/engine.d.ts +0 -32
- package/dist/core/routing/engine.js +0 -23
- package/dist/core/routing/engine.js.map +0 -1
- package/dist/core/routing/policy.d.ts +0 -3
- package/dist/core/routing/policy.js +0 -7
- package/dist/core/routing/policy.js.map +0 -1
- package/dist/core/routing/reason-codes.d.ts +0 -4
- package/dist/core/routing/reason-codes.js +0 -15
- package/dist/core/routing/reason-codes.js.map +0 -1
- package/dist/core/telemetry/logger.d.ts +0 -8
- package/dist/core/telemetry/logger.js +0 -9
- package/dist/core/telemetry/logger.js.map +0 -1
- package/dist/core/telemetry/metrics.d.ts +0 -7
- package/dist/core/telemetry/metrics.js +0 -1
- package/dist/core/telemetry/metrics.js.map +0 -1
- package/dist/gql/client.d.ts +0 -183
- package/dist/gql/client.js +0 -17
- package/dist/gql/client.js.map +0 -1
- package/dist/gql/generated/common-types.d.ts +0 -36
- package/dist/gql/generated/common-types.js +0 -1
- package/dist/gql/generated/common-types.js.map +0 -1
- package/dist/gql/operations/issue-comments-list.generated.d.ts +0 -59
- package/dist/gql/operations/issue-comments-list.generated.js +0 -9
- package/dist/gql/operations/issue-comments-list.generated.js.map +0 -1
- package/dist/gql/operations/issue-list.generated.d.ts +0 -40
- package/dist/gql/operations/issue-list.generated.js +0 -9
- package/dist/gql/operations/issue-list.generated.js.map +0 -1
- package/dist/gql/operations/issue-view.generated.d.ts +0 -31
- package/dist/gql/operations/issue-view.generated.js +0 -9
- package/dist/gql/operations/issue-view.generated.js.map +0 -1
- package/dist/gql/operations/pr-comment-reply.generated.d.ts +0 -26
- package/dist/gql/operations/pr-comment-reply.generated.js +0 -25
- package/dist/gql/operations/pr-comment-reply.generated.js.map +0 -1
- package/dist/gql/operations/pr-comment-resolve.generated.d.ts +0 -26
- package/dist/gql/operations/pr-comment-resolve.generated.js +0 -24
- package/dist/gql/operations/pr-comment-resolve.generated.js.map +0 -1
- package/dist/gql/operations/pr-comment-unresolve.generated.d.ts +0 -26
- package/dist/gql/operations/pr-comment-unresolve.generated.js +0 -24
- package/dist/gql/operations/pr-comment-unresolve.generated.js.map +0 -1
- package/dist/gql/operations/pr-comments-list.generated.d.ts +0 -84
- package/dist/gql/operations/pr-comments-list.generated.js +0 -58
- package/dist/gql/operations/pr-comments-list.generated.js.map +0 -1
- package/dist/gql/operations/pr-diff-list-files.generated.d.ts +0 -42
- package/dist/gql/operations/pr-diff-list-files.generated.js +0 -9
- package/dist/gql/operations/pr-diff-list-files.generated.js.map +0 -1
- package/dist/gql/operations/pr-list.generated.d.ts +0 -40
- package/dist/gql/operations/pr-list.generated.js +0 -9
- package/dist/gql/operations/pr-list.generated.js.map +0 -1
- package/dist/gql/operations/pr-reviews-list.generated.d.ts +0 -64
- package/dist/gql/operations/pr-reviews-list.generated.js +0 -9
- package/dist/gql/operations/pr-reviews-list.generated.js.map +0 -1
- package/dist/gql/operations/pr-view.generated.d.ts +0 -31
- package/dist/gql/operations/pr-view.generated.js +0 -9
- package/dist/gql/operations/pr-view.generated.js.map +0 -1
- package/dist/gql/operations/repo-view.generated.d.ts +0 -33
- package/dist/gql/operations/repo-view.generated.js +0 -9
- package/dist/gql/operations/repo-view.generated.js.map +0 -1
- package/dist/shared/constants.d.ts +0 -3
- package/dist/shared/constants.js +0 -6
- package/dist/shared/constants.js.map +0 -1
- package/dist/shared/types.d.ts +0 -3
- package/dist/shared/types.js +0 -1
- package/dist/shared/types.js.map +0 -1
- package/dist/shared/utils.d.ts +0 -3
- package/dist/shared/utils.js +0 -8
- package/dist/shared/utils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
declare const operationCardSchema: {
|
|
2
|
-
readonly $id: "https://ghx.local/schemas/operation-card.json";
|
|
3
|
-
readonly type: "object";
|
|
4
|
-
readonly required: readonly ["capability_id", "version", "description", "input_schema", "output_schema", "routing"];
|
|
5
|
-
readonly properties: {
|
|
6
|
-
readonly capability_id: {
|
|
7
|
-
readonly type: "string";
|
|
8
|
-
readonly minLength: 1;
|
|
9
|
-
};
|
|
10
|
-
readonly version: {
|
|
11
|
-
readonly type: "string";
|
|
12
|
-
readonly minLength: 1;
|
|
13
|
-
};
|
|
14
|
-
readonly description: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly minLength: 1;
|
|
17
|
-
};
|
|
18
|
-
readonly input_schema: {
|
|
19
|
-
readonly type: "object";
|
|
20
|
-
};
|
|
21
|
-
readonly output_schema: {
|
|
22
|
-
readonly type: "object";
|
|
23
|
-
};
|
|
24
|
-
readonly routing: {
|
|
25
|
-
readonly type: "object";
|
|
26
|
-
readonly required: readonly ["preferred", "fallbacks"];
|
|
27
|
-
readonly properties: {
|
|
28
|
-
readonly preferred: {
|
|
29
|
-
readonly enum: readonly ["cli", "graphql", "rest"];
|
|
30
|
-
};
|
|
31
|
-
readonly fallbacks: {
|
|
32
|
-
readonly type: "array";
|
|
33
|
-
readonly items: {
|
|
34
|
-
readonly enum: readonly ["cli", "graphql", "rest"];
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
readonly suitability: {
|
|
38
|
-
readonly type: "array";
|
|
39
|
-
readonly items: {
|
|
40
|
-
readonly type: "object";
|
|
41
|
-
readonly required: readonly ["when", "predicate", "reason"];
|
|
42
|
-
readonly properties: {
|
|
43
|
-
readonly when: {
|
|
44
|
-
readonly enum: readonly ["always", "env", "params"];
|
|
45
|
-
};
|
|
46
|
-
readonly predicate: {
|
|
47
|
-
readonly type: "string";
|
|
48
|
-
readonly minLength: 1;
|
|
49
|
-
};
|
|
50
|
-
readonly reason: {
|
|
51
|
-
readonly type: "string";
|
|
52
|
-
readonly minLength: 1;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
readonly additionalProperties: false;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
readonly notes: {
|
|
59
|
-
readonly type: "array";
|
|
60
|
-
readonly items: {
|
|
61
|
-
readonly type: "string";
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
readonly additionalProperties: false;
|
|
66
|
-
};
|
|
67
|
-
readonly graphql: {
|
|
68
|
-
readonly type: "object";
|
|
69
|
-
readonly required: readonly ["operationName", "documentPath"];
|
|
70
|
-
readonly properties: {
|
|
71
|
-
readonly operationName: {
|
|
72
|
-
readonly type: "string";
|
|
73
|
-
readonly minLength: 1;
|
|
74
|
-
};
|
|
75
|
-
readonly documentPath: {
|
|
76
|
-
readonly type: "string";
|
|
77
|
-
readonly minLength: 1;
|
|
78
|
-
};
|
|
79
|
-
readonly variables: {
|
|
80
|
-
readonly type: "object";
|
|
81
|
-
};
|
|
82
|
-
readonly limits: {
|
|
83
|
-
readonly type: "object";
|
|
84
|
-
readonly properties: {
|
|
85
|
-
readonly maxPageSize: {
|
|
86
|
-
readonly type: "number";
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
readonly additionalProperties: false;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
readonly additionalProperties: false;
|
|
93
|
-
};
|
|
94
|
-
readonly cli: {
|
|
95
|
-
readonly type: "object";
|
|
96
|
-
readonly required: readonly ["command"];
|
|
97
|
-
readonly properties: {
|
|
98
|
-
readonly command: {
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
readonly minLength: 1;
|
|
101
|
-
};
|
|
102
|
-
readonly jsonFields: {
|
|
103
|
-
readonly type: "array";
|
|
104
|
-
readonly items: {
|
|
105
|
-
readonly type: "string";
|
|
106
|
-
readonly minLength: 1;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
readonly jq: {
|
|
110
|
-
readonly type: "string";
|
|
111
|
-
};
|
|
112
|
-
readonly limits: {
|
|
113
|
-
readonly type: "object";
|
|
114
|
-
readonly properties: {
|
|
115
|
-
readonly maxItemsPerCall: {
|
|
116
|
-
readonly type: "number";
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
readonly additionalProperties: false;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
readonly additionalProperties: false;
|
|
123
|
-
};
|
|
124
|
-
readonly rest: {
|
|
125
|
-
readonly type: "object";
|
|
126
|
-
readonly required: readonly ["endpoints"];
|
|
127
|
-
readonly properties: {
|
|
128
|
-
readonly endpoints: {
|
|
129
|
-
readonly type: "array";
|
|
130
|
-
readonly items: {
|
|
131
|
-
readonly type: "object";
|
|
132
|
-
readonly required: readonly ["method", "path"];
|
|
133
|
-
readonly properties: {
|
|
134
|
-
readonly method: {
|
|
135
|
-
readonly type: "string";
|
|
136
|
-
};
|
|
137
|
-
readonly path: {
|
|
138
|
-
readonly type: "string";
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
readonly additionalProperties: false;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
readonly additionalProperties: false;
|
|
146
|
-
};
|
|
147
|
-
readonly examples: {
|
|
148
|
-
readonly type: "array";
|
|
149
|
-
readonly items: {
|
|
150
|
-
readonly type: "object";
|
|
151
|
-
readonly required: readonly ["title", "input"];
|
|
152
|
-
readonly properties: {
|
|
153
|
-
readonly title: {
|
|
154
|
-
readonly type: "string";
|
|
155
|
-
};
|
|
156
|
-
readonly input: {
|
|
157
|
-
readonly type: "object";
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
readonly additionalProperties: false;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
readonly additionalProperties: false;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
export { operationCardSchema };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
type SchemaValidationError = {
|
|
2
|
-
instancePath: string;
|
|
3
|
-
message: string;
|
|
4
|
-
keyword: string;
|
|
5
|
-
params: Record<string, unknown>;
|
|
6
|
-
};
|
|
7
|
-
type SchemaValidationResult = {
|
|
8
|
-
ok: true;
|
|
9
|
-
} | {
|
|
10
|
-
ok: false;
|
|
11
|
-
errors: SchemaValidationError[];
|
|
12
|
-
};
|
|
13
|
-
declare function validateInput(inputSchema: Record<string, unknown>, params: Record<string, unknown>): SchemaValidationResult;
|
|
14
|
-
declare function validateOutput(outputSchema: Record<string, unknown>, data: unknown): SchemaValidationResult;
|
|
15
|
-
|
|
16
|
-
export { validateInput, validateOutput };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { RouteSource } from '../contracts/envelope.js';
|
|
2
|
-
import '../routing/reason-codes.js';
|
|
3
|
-
import '../errors/codes.js';
|
|
4
|
-
|
|
5
|
-
type JsonSchema = Record<string, unknown>;
|
|
6
|
-
interface SuitabilityRule {
|
|
7
|
-
when: "always" | "env" | "params";
|
|
8
|
-
predicate: string;
|
|
9
|
-
reason: string;
|
|
10
|
-
}
|
|
11
|
-
interface OperationCard<Input = Record<string, unknown>> {
|
|
12
|
-
capability_id: string;
|
|
13
|
-
version: string;
|
|
14
|
-
description: string;
|
|
15
|
-
input_schema: JsonSchema;
|
|
16
|
-
output_schema: JsonSchema;
|
|
17
|
-
routing: {
|
|
18
|
-
preferred: RouteSource;
|
|
19
|
-
fallbacks: RouteSource[];
|
|
20
|
-
suitability?: SuitabilityRule[];
|
|
21
|
-
notes?: string[];
|
|
22
|
-
};
|
|
23
|
-
graphql?: {
|
|
24
|
-
operationName: string;
|
|
25
|
-
documentPath: string;
|
|
26
|
-
variables?: Record<string, string>;
|
|
27
|
-
limits?: {
|
|
28
|
-
maxPageSize?: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
cli?: {
|
|
32
|
-
command: string;
|
|
33
|
-
jsonFields?: string[];
|
|
34
|
-
jq?: string;
|
|
35
|
-
limits?: {
|
|
36
|
-
maxItemsPerCall?: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
rest?: {
|
|
40
|
-
endpoints: Array<{
|
|
41
|
-
method: string;
|
|
42
|
-
path: string;
|
|
43
|
-
}>;
|
|
44
|
-
};
|
|
45
|
-
examples?: Array<{
|
|
46
|
-
title: string;
|
|
47
|
-
input: Input;
|
|
48
|
-
}>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type { JsonSchema, OperationCard, SuitabilityRule };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
listOperationCards
|
|
3
|
-
} from "../../chunk-MT4U5DYD.js";
|
|
4
|
-
import "../../chunk-2W4L5YCC.js";
|
|
5
|
-
|
|
6
|
-
// src/core/routing/capability-registry.ts
|
|
7
|
-
var capabilityRegistry = listOperationCards().map((card) => ({
|
|
8
|
-
task: card.capability_id,
|
|
9
|
-
defaultRoute: card.routing.preferred,
|
|
10
|
-
fallbackRoutes: [...card.routing.fallbacks]
|
|
11
|
-
}));
|
|
12
|
-
export {
|
|
13
|
-
capabilityRegistry
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=capability-registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/core/routing/capability-registry.ts"],"sourcesContent":["import { listOperationCards } from \"../registry/index.js\"\n\nexport interface CapabilityEntry {\n task: string\n defaultRoute: \"cli\" | \"rest\" | \"graphql\"\n fallbackRoutes: Array<\"cli\" | \"rest\" | \"graphql\">\n}\n\nexport const capabilityRegistry: CapabilityEntry[] = listOperationCards().map((card) => ({\n task: card.capability_id,\n defaultRoute: card.routing.preferred,\n fallbackRoutes: [...card.routing.fallbacks]\n}))\n"],"mappings":";;;;;;AAQO,IAAM,qBAAwC,mBAAmB,EAAE,IAAI,CAAC,UAAU;AAAA,EACvF,MAAM,KAAK;AAAA,EACX,cAAc,KAAK,QAAQ;AAAA,EAC3B,gBAAgB,CAAC,GAAG,KAAK,QAAQ,SAAS;AAC5C,EAAE;","names":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { routePreferenceOrder } from './policy.js';
|
|
2
|
-
import { ResultEnvelope } from '../contracts/envelope.js';
|
|
3
|
-
import { TaskRequest } from '../contracts/task.js';
|
|
4
|
-
import { GithubClient } from '../../gql/client.js';
|
|
5
|
-
import { RouteReasonCode } from './reason-codes.js';
|
|
6
|
-
import { CliCommandRunner } from '../execution/adapters/cli-capability-adapter.js';
|
|
7
|
-
import '../errors/codes.js';
|
|
8
|
-
import 'graphql';
|
|
9
|
-
import '../../gql/operations/issue-comments-list.generated.js';
|
|
10
|
-
import '../../gql/generated/common-types.js';
|
|
11
|
-
import 'graphql-request';
|
|
12
|
-
import '../../gql/operations/issue-list.generated.js';
|
|
13
|
-
import '../../gql/operations/issue-view.generated.js';
|
|
14
|
-
import '../../gql/operations/pr-diff-list-files.generated.js';
|
|
15
|
-
import '../../gql/operations/pr-reviews-list.generated.js';
|
|
16
|
-
import '../../gql/operations/pr-list.generated.js';
|
|
17
|
-
import '../../gql/operations/pr-view.generated.js';
|
|
18
|
-
import '../../gql/operations/repo-view.generated.js';
|
|
19
|
-
import '../registry/types.js';
|
|
20
|
-
|
|
21
|
-
declare function chooseRoute(): (typeof routePreferenceOrder)[number];
|
|
22
|
-
type ExecutionDeps = {
|
|
23
|
-
githubClient: Pick<GithubClient, "fetchRepoView" | "fetchIssueCommentsList" | "fetchIssueList" | "fetchIssueView" | "fetchPrList" | "fetchPrView" | "fetchPrCommentsList" | "fetchPrReviewsList" | "fetchPrDiffListFiles" | "replyToReviewThread" | "resolveReviewThread" | "unresolveReviewThread">;
|
|
24
|
-
githubToken?: string | null;
|
|
25
|
-
cliRunner?: CliCommandRunner;
|
|
26
|
-
ghCliAvailable?: boolean;
|
|
27
|
-
ghAuthenticated?: boolean;
|
|
28
|
-
reason?: RouteReasonCode;
|
|
29
|
-
};
|
|
30
|
-
declare function executeTask(request: TaskRequest, deps: ExecutionDeps): Promise<ResultEnvelope>;
|
|
31
|
-
|
|
32
|
-
export { chooseRoute, executeTask };
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,4 +0,0 @@
|
|
|
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 };
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=metrics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/gql/client.d.ts
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
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 };
|
package/dist/gql/client.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
package/dist/gql/client.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|