@ghx-dev/core 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +212 -0
- package/dist/agent-interface/prompt/main-skill.d.ts +3 -0
- package/dist/agent-interface/prompt/main-skill.js +7 -0
- package/dist/agent-interface/prompt/main-skill.js.map +1 -0
- package/dist/agent-interface/tools/execute-tool.d.ts +16 -0
- package/dist/agent-interface/tools/execute-tool.js +7 -0
- package/dist/agent-interface/tools/execute-tool.js.map +1 -0
- package/dist/agent-interface/tools/explain-tool.d.ts +11 -0
- package/dist/agent-interface/tools/explain-tool.js +9 -0
- package/dist/agent-interface/tools/explain-tool.js.map +1 -0
- package/dist/agent-interface/tools/list-capabilities-tool.d.ts +7 -0
- package/dist/agent-interface/tools/list-capabilities-tool.js +9 -0
- package/dist/agent-interface/tools/list-capabilities-tool.js.map +1 -0
- package/dist/agent.d.ts +7 -0
- package/dist/agent.js +21 -0
- package/dist/agent.js.map +1 -0
- package/dist/chunk-2W4L5YCC.js +116 -0
- package/dist/chunk-2W4L5YCC.js.map +1 -0
- package/dist/chunk-3RAT5BCB.js +584 -0
- package/dist/chunk-3RAT5BCB.js.map +1 -0
- package/dist/chunk-3RJCF42N.js +16 -0
- package/dist/chunk-3RJCF42N.js.map +1 -0
- package/dist/chunk-573MDG3I.js +18 -0
- package/dist/chunk-573MDG3I.js.map +1 -0
- package/dist/chunk-5JRLVOF2.js +50 -0
- package/dist/chunk-5JRLVOF2.js.map +1 -0
- package/dist/chunk-B6RLMKS4.js +41 -0
- package/dist/chunk-B6RLMKS4.js.map +1 -0
- package/dist/chunk-BJHVAFTN.js +42 -0
- package/dist/chunk-BJHVAFTN.js.map +1 -0
- package/dist/chunk-D746VR3B.js +38 -0
- package/dist/chunk-D746VR3B.js.map +1 -0
- package/dist/chunk-DJIEG6K7.js +20 -0
- package/dist/chunk-DJIEG6K7.js.map +1 -0
- package/dist/chunk-DLKIQBK6.js +106 -0
- package/dist/chunk-DLKIQBK6.js.map +1 -0
- package/dist/chunk-EBRDO4Y6.js +31 -0
- package/dist/chunk-EBRDO4Y6.js.map +1 -0
- package/dist/chunk-FXN6IIT5.js +14 -0
- package/dist/chunk-FXN6IIT5.js.map +1 -0
- package/dist/chunk-GPU4P7UG.js +92 -0
- package/dist/chunk-GPU4P7UG.js.map +1 -0
- package/dist/chunk-MMG6CIKK.js +44 -0
- package/dist/chunk-MMG6CIKK.js.map +1 -0
- package/dist/chunk-MT4U5DYD.js +88 -0
- package/dist/chunk-MT4U5DYD.js.map +1 -0
- package/dist/chunk-NFF5VF4U.js +28 -0
- package/dist/chunk-NFF5VF4U.js.map +1 -0
- package/dist/chunk-Q4RTT3DV.js +209 -0
- package/dist/chunk-Q4RTT3DV.js.map +1 -0
- package/dist/chunk-QEAMC4IJ.js +34 -0
- package/dist/chunk-QEAMC4IJ.js.map +1 -0
- package/dist/chunk-QX34GTH6.js +30 -0
- package/dist/chunk-QX34GTH6.js.map +1 -0
- package/dist/chunk-QZZC53HF.js +38 -0
- package/dist/chunk-QZZC53HF.js.map +1 -0
- package/dist/chunk-RUQXGZ35.js +34 -0
- package/dist/chunk-RUQXGZ35.js.map +1 -0
- package/dist/chunk-TCLMLVUQ.js +38 -0
- package/dist/chunk-TCLMLVUQ.js.map +1 -0
- package/dist/chunk-TDTKOJKN.js +52 -0
- package/dist/chunk-TDTKOJKN.js.map +1 -0
- package/dist/chunk-UGWIZ3RI.js +7 -0
- package/dist/chunk-UGWIZ3RI.js.map +1 -0
- package/dist/chunk-UOJWOHRM.js +16 -0
- package/dist/chunk-UOJWOHRM.js.map +1 -0
- package/dist/chunk-VD5NXQP7.js +42 -0
- package/dist/chunk-VD5NXQP7.js.map +1 -0
- package/dist/chunk-W2TKG2UL.js +37 -0
- package/dist/chunk-W2TKG2UL.js.map +1 -0
- package/dist/chunk-W6ROKCY5.js +28 -0
- package/dist/chunk-W6ROKCY5.js.map +1 -0
- package/dist/chunk-WYSY75U7.js +156 -0
- package/dist/chunk-WYSY75U7.js.map +1 -0
- package/dist/chunk-YNNDBMNR.js +113 -0
- package/dist/chunk-YNNDBMNR.js.map +1 -0
- package/dist/chunk-YNQNHCRS.js +198 -0
- package/dist/chunk-YNQNHCRS.js.map +1 -0
- package/dist/chunk-YQDQX4BT.js +624 -0
- package/dist/chunk-YQDQX4BT.js.map +1 -0
- package/dist/cli/commands/capabilities-explain.d.ts +3 -0
- package/dist/cli/commands/capabilities-explain.js +10 -0
- package/dist/cli/commands/capabilities-explain.js.map +1 -0
- package/dist/cli/commands/capabilities-list.d.ts +3 -0
- package/dist/cli/commands/capabilities-list.js +10 -0
- package/dist/cli/commands/capabilities-list.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +3 -0
- package/dist/cli/commands/doctor.js +7 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/routes.d.ts +3 -0
- package/dist/cli/commands/routes.js +7 -0
- package/dist/cli/commands/routes.js.map +1 -0
- package/dist/cli/commands/run.d.ts +3 -0
- package/dist/cli/commands/run.js +31 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/commands/setup.d.ts +3 -0
- package/dist/cli/commands/setup.js +7 -0
- package/dist/cli/commands/setup.js.map +1 -0
- package/dist/cli/formatters/json.d.ts +3 -0
- package/dist/cli/formatters/json.js +8 -0
- package/dist/cli/formatters/json.js.map +1 -0
- package/dist/cli/formatters/table.d.ts +3 -0
- package/dist/cli/formatters/table.js +8 -0
- package/dist/cli/formatters/table.js.map +1 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.js +118 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/core/contracts/envelope.d.ts +43 -0
- package/dist/core/contracts/envelope.js +1 -0
- package/dist/core/contracts/envelope.js.map +1 -0
- package/dist/core/contracts/task.d.ts +7 -0
- package/dist/core/contracts/task.js +1 -0
- package/dist/core/contracts/task.js.map +1 -0
- package/dist/core/contracts/tasks/check_run.annotations.list.d.ts +5 -0
- package/dist/core/contracts/tasks/check_run.annotations.list.js +8 -0
- package/dist/core/contracts/tasks/check_run.annotations.list.js.map +1 -0
- package/dist/core/contracts/tasks/issue.comments.list.d.ts +5 -0
- package/dist/core/contracts/tasks/issue.comments.list.js +8 -0
- package/dist/core/contracts/tasks/issue.comments.list.js.map +1 -0
- package/dist/core/contracts/tasks/issue.list.d.ts +5 -0
- package/dist/core/contracts/tasks/issue.list.js +8 -0
- package/dist/core/contracts/tasks/issue.list.js.map +1 -0
- package/dist/core/contracts/tasks/issue.view.d.ts +5 -0
- package/dist/core/contracts/tasks/issue.view.js +8 -0
- package/dist/core/contracts/tasks/issue.view.js.map +1 -0
- package/dist/core/contracts/tasks/pr.checks.get_failed.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.checks.get_failed.js +8 -0
- package/dist/core/contracts/tasks/pr.checks.get_failed.js.map +1 -0
- package/dist/core/contracts/tasks/pr.comment.reply.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.comment.reply.js +8 -0
- package/dist/core/contracts/tasks/pr.comment.reply.js.map +1 -0
- package/dist/core/contracts/tasks/pr.comment.resolve.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.comment.resolve.js +8 -0
- package/dist/core/contracts/tasks/pr.comment.resolve.js.map +1 -0
- package/dist/core/contracts/tasks/pr.comment.unresolve.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.comment.unresolve.js +8 -0
- package/dist/core/contracts/tasks/pr.comment.unresolve.js.map +1 -0
- package/dist/core/contracts/tasks/pr.comments.list.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.comments.list.js +8 -0
- package/dist/core/contracts/tasks/pr.comments.list.js.map +1 -0
- package/dist/core/contracts/tasks/pr.diff.list_files.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.diff.list_files.js +8 -0
- package/dist/core/contracts/tasks/pr.diff.list_files.js.map +1 -0
- package/dist/core/contracts/tasks/pr.list.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.list.js +8 -0
- package/dist/core/contracts/tasks/pr.list.js.map +1 -0
- package/dist/core/contracts/tasks/pr.mergeability.view.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.mergeability.view.js +8 -0
- package/dist/core/contracts/tasks/pr.mergeability.view.js.map +1 -0
- package/dist/core/contracts/tasks/pr.ready_for_review.set.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.ready_for_review.set.js +8 -0
- package/dist/core/contracts/tasks/pr.ready_for_review.set.js.map +1 -0
- package/dist/core/contracts/tasks/pr.reviews.list.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.reviews.list.js +8 -0
- package/dist/core/contracts/tasks/pr.reviews.list.js.map +1 -0
- package/dist/core/contracts/tasks/pr.status.checks.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.status.checks.js +8 -0
- package/dist/core/contracts/tasks/pr.status.checks.js.map +1 -0
- package/dist/core/contracts/tasks/pr.view.d.ts +5 -0
- package/dist/core/contracts/tasks/pr.view.js +8 -0
- package/dist/core/contracts/tasks/pr.view.js.map +1 -0
- package/dist/core/contracts/tasks/repo.view.d.ts +5 -0
- package/dist/core/contracts/tasks/repo.view.js +8 -0
- package/dist/core/contracts/tasks/repo.view.js.map +1 -0
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.d.ts +5 -0
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.js +8 -0
- package/dist/core/contracts/tasks/workflow_job.logs.analyze.js.map +1 -0
- package/dist/core/contracts/tasks/workflow_job.logs.get.d.ts +5 -0
- package/dist/core/contracts/tasks/workflow_job.logs.get.js +8 -0
- package/dist/core/contracts/tasks/workflow_job.logs.get.js.map +1 -0
- package/dist/core/contracts/tasks/workflow_run.jobs.list.d.ts +5 -0
- package/dist/core/contracts/tasks/workflow_run.jobs.list.js +8 -0
- package/dist/core/contracts/tasks/workflow_run.jobs.list.js.map +1 -0
- package/dist/core/contracts/tasks/workflow_runs.list.d.ts +5 -0
- package/dist/core/contracts/tasks/workflow_runs.list.js +8 -0
- package/dist/core/contracts/tasks/workflow_runs.list.js.map +1 -0
- package/dist/core/errors/codes.d.ts +13 -0
- package/dist/core/errors/codes.js +7 -0
- package/dist/core/errors/codes.js.map +1 -0
- package/dist/core/errors/map-error.d.ts +5 -0
- package/dist/core/errors/map-error.js +8 -0
- package/dist/core/errors/map-error.js.map +1 -0
- package/dist/core/errors/retryability.d.ts +3 -0
- package/dist/core/errors/retryability.js +8 -0
- package/dist/core/errors/retryability.js.map +1 -0
- package/dist/core/execute/execute.d.ts +28 -0
- package/dist/core/execute/execute.js +11 -0
- package/dist/core/execute/execute.js.map +1 -0
- package/dist/core/execution/adapters/cli-adapter.d.ts +22 -0
- package/dist/core/execution/adapters/cli-adapter.js +69 -0
- package/dist/core/execution/adapters/cli-adapter.js.map +1 -0
- package/dist/core/execution/adapters/cli-capability-adapter.d.ts +16 -0
- package/dist/core/execution/adapters/cli-capability-adapter.js +11 -0
- package/dist/core/execution/adapters/cli-capability-adapter.js.map +1 -0
- package/dist/core/execution/adapters/graphql-adapter.d.ts +25 -0
- package/dist/core/execution/adapters/graphql-adapter.js +44 -0
- package/dist/core/execution/adapters/graphql-adapter.js.map +1 -0
- package/dist/core/execution/adapters/graphql-capability-adapter.d.ts +20 -0
- package/dist/core/execution/adapters/graphql-capability-adapter.js +11 -0
- package/dist/core/execution/adapters/graphql-capability-adapter.js.map +1 -0
- package/dist/core/execution/adapters/rest-adapter.d.ts +3 -0
- package/dist/core/execution/adapters/rest-adapter.js +8 -0
- package/dist/core/execution/adapters/rest-adapter.js.map +1 -0
- package/dist/core/execution/cli/safe-runner.d.ts +12 -0
- package/dist/core/execution/cli/safe-runner.js +7 -0
- package/dist/core/execution/cli/safe-runner.js.map +1 -0
- package/dist/core/execution/normalizer.d.ts +13 -0
- package/dist/core/execution/normalizer.js +9 -0
- package/dist/core/execution/normalizer.js.map +1 -0
- package/dist/core/execution/preflight.d.ts +24 -0
- package/dist/core/execution/preflight.js +8 -0
- package/dist/core/execution/preflight.js.map +1 -0
- package/dist/core/registry/cards/check_run.annotations.list.yaml +35 -0
- package/dist/core/registry/cards/issue.comments.list.yaml +48 -0
- package/dist/core/registry/cards/issue.list.yaml +48 -0
- package/dist/core/registry/cards/issue.view.yaml +32 -0
- package/dist/core/registry/cards/pr.checks.get_failed.yaml +42 -0
- package/dist/core/registry/cards/pr.comment.reply.yaml +23 -0
- package/dist/core/registry/cards/pr.comment.resolve.yaml +22 -0
- package/dist/core/registry/cards/pr.comment.unresolve.yaml +22 -0
- package/dist/core/registry/cards/pr.comments.list.yaml +98 -0
- package/dist/core/registry/cards/pr.diff.list_files.yaml +43 -0
- package/dist/core/registry/cards/pr.list.yaml +48 -0
- package/dist/core/registry/cards/pr.mergeability.view.yaml +27 -0
- package/dist/core/registry/cards/pr.ready_for_review.set.yaml +24 -0
- package/dist/core/registry/cards/pr.reviews.list.yaml +47 -0
- package/dist/core/registry/cards/pr.status.checks.yaml +42 -0
- package/dist/core/registry/cards/pr.view.yaml +32 -0
- package/dist/core/registry/cards/repo.view.yaml +34 -0
- package/dist/core/registry/cards/workflow_job.logs.analyze.yaml +33 -0
- package/dist/core/registry/cards/workflow_job.logs.get.yaml +24 -0
- package/dist/core/registry/cards/workflow_run.jobs.list.yaml +35 -0
- package/dist/core/registry/cards/workflow_runs.list.yaml +45 -0
- package/dist/core/registry/index.d.ts +15 -0
- package/dist/core/registry/index.js +12 -0
- package/dist/core/registry/index.js.map +1 -0
- package/dist/core/registry/operation-card-schema.d.ts +167 -0
- package/dist/core/registry/operation-card-schema.js +7 -0
- package/dist/core/registry/operation-card-schema.js.map +1 -0
- package/dist/core/registry/schema-validator.d.ts +16 -0
- package/dist/core/registry/schema-validator.js +9 -0
- package/dist/core/registry/schema-validator.js.map +1 -0
- package/dist/core/registry/types.d.ts +51 -0
- package/dist/core/registry/types.js +1 -0
- package/dist/core/registry/types.js.map +1 -0
- package/dist/core/routing/capability-registry.d.ts +8 -0
- package/dist/core/routing/capability-registry.js +15 -0
- package/dist/core/routing/capability-registry.js.map +1 -0
- package/dist/core/routing/engine.d.ts +32 -0
- package/dist/core/routing/engine.js +23 -0
- package/dist/core/routing/engine.js.map +1 -0
- package/dist/core/routing/policy.d.ts +3 -0
- package/dist/core/routing/policy.js +7 -0
- package/dist/core/routing/policy.js.map +1 -0
- package/dist/core/routing/reason-codes.d.ts +4 -0
- package/dist/core/routing/reason-codes.js +15 -0
- package/dist/core/routing/reason-codes.js.map +1 -0
- package/dist/core/telemetry/logger.d.ts +8 -0
- package/dist/core/telemetry/logger.js +9 -0
- package/dist/core/telemetry/logger.js.map +1 -0
- package/dist/core/telemetry/metrics.d.ts +7 -0
- package/dist/core/telemetry/metrics.js +1 -0
- package/dist/core/telemetry/metrics.js.map +1 -0
- package/dist/gql/client.d.ts +183 -0
- package/dist/gql/client.js +17 -0
- package/dist/gql/client.js.map +1 -0
- package/dist/gql/generated/common-types.d.ts +36 -0
- package/dist/gql/generated/common-types.js +1 -0
- package/dist/gql/generated/common-types.js.map +1 -0
- package/dist/gql/operations/issue-comments-list.generated.d.ts +59 -0
- package/dist/gql/operations/issue-comments-list.generated.js +9 -0
- package/dist/gql/operations/issue-comments-list.generated.js.map +1 -0
- package/dist/gql/operations/issue-list.generated.d.ts +40 -0
- package/dist/gql/operations/issue-list.generated.js +9 -0
- package/dist/gql/operations/issue-list.generated.js.map +1 -0
- package/dist/gql/operations/issue-view.generated.d.ts +31 -0
- package/dist/gql/operations/issue-view.generated.js +9 -0
- package/dist/gql/operations/issue-view.generated.js.map +1 -0
- package/dist/gql/operations/pr-comment-reply.generated.d.ts +26 -0
- package/dist/gql/operations/pr-comment-reply.generated.js +25 -0
- package/dist/gql/operations/pr-comment-reply.generated.js.map +1 -0
- package/dist/gql/operations/pr-comment-resolve.generated.d.ts +26 -0
- package/dist/gql/operations/pr-comment-resolve.generated.js +24 -0
- package/dist/gql/operations/pr-comment-resolve.generated.js.map +1 -0
- package/dist/gql/operations/pr-comment-unresolve.generated.d.ts +26 -0
- package/dist/gql/operations/pr-comment-unresolve.generated.js +24 -0
- package/dist/gql/operations/pr-comment-unresolve.generated.js.map +1 -0
- package/dist/gql/operations/pr-comments-list.generated.d.ts +84 -0
- package/dist/gql/operations/pr-comments-list.generated.js +58 -0
- package/dist/gql/operations/pr-comments-list.generated.js.map +1 -0
- package/dist/gql/operations/pr-diff-list-files.generated.d.ts +42 -0
- package/dist/gql/operations/pr-diff-list-files.generated.js +9 -0
- package/dist/gql/operations/pr-diff-list-files.generated.js.map +1 -0
- package/dist/gql/operations/pr-list.generated.d.ts +40 -0
- package/dist/gql/operations/pr-list.generated.js +9 -0
- package/dist/gql/operations/pr-list.generated.js.map +1 -0
- package/dist/gql/operations/pr-reviews-list.generated.d.ts +64 -0
- package/dist/gql/operations/pr-reviews-list.generated.js +9 -0
- package/dist/gql/operations/pr-reviews-list.generated.js.map +1 -0
- package/dist/gql/operations/pr-view.generated.d.ts +31 -0
- package/dist/gql/operations/pr-view.generated.js +9 -0
- package/dist/gql/operations/pr-view.generated.js.map +1 -0
- package/dist/gql/operations/repo-view.generated.d.ts +33 -0
- package/dist/gql/operations/repo-view.generated.js +9 -0
- package/dist/gql/operations/repo-view.generated.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/shared/constants.d.ts +3 -0
- package/dist/shared/constants.js +6 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/types.d.ts +3 -0
- package/dist/shared/types.js +1 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/shared/utils.d.ts +3 -0
- package/dist/shared/utils.js +8 -0
- package/dist/shared/utils.js.map +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Exact, Scalars } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type PrCommentUnresolveMutationVariables = Exact<{
|
|
6
|
+
threadId: Scalars['ID']['input'];
|
|
7
|
+
}>;
|
|
8
|
+
type PrCommentUnresolveMutation = {
|
|
9
|
+
__typename?: 'Mutation';
|
|
10
|
+
unresolveReviewThread?: {
|
|
11
|
+
__typename?: 'UnresolveReviewThreadPayload';
|
|
12
|
+
thread?: {
|
|
13
|
+
__typename?: 'PullRequestReviewThread';
|
|
14
|
+
id: string;
|
|
15
|
+
isResolved: boolean;
|
|
16
|
+
} | null;
|
|
17
|
+
} | null;
|
|
18
|
+
};
|
|
19
|
+
declare const PrCommentUnresolveDocument = "\n mutation PrCommentUnresolve($threadId: ID!) {\n unresolveReviewThread(input: {threadId: $threadId}) {\n thread {\n id\n isResolved\n }\n }\n}\n ";
|
|
20
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
21
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
22
|
+
PrCommentUnresolve(variables: PrCommentUnresolveMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrCommentUnresolveMutation>;
|
|
23
|
+
};
|
|
24
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
25
|
+
|
|
26
|
+
export { PrCommentUnresolveDocument, type PrCommentUnresolveMutation, type PrCommentUnresolveMutationVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/gql/operations/pr-comment-unresolve.generated.ts
|
|
2
|
+
var PrCommentUnresolveDocument = `
|
|
3
|
+
mutation PrCommentUnresolve($threadId: ID!) {
|
|
4
|
+
unresolveReviewThread(input: {threadId: $threadId}) {
|
|
5
|
+
thread {
|
|
6
|
+
id
|
|
7
|
+
isResolved
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
var defaultWrapper = (action, _operationName, _operationType, _variables) => action();
|
|
13
|
+
function getSdk(client, withWrapper = defaultWrapper) {
|
|
14
|
+
return {
|
|
15
|
+
PrCommentUnresolve(variables, requestHeaders, signal) {
|
|
16
|
+
return withWrapper((wrappedRequestHeaders) => client.request({ document: PrCommentUnresolveDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "PrCommentUnresolve", "mutation", variables);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
PrCommentUnresolveDocument,
|
|
22
|
+
getSdk
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=pr-comment-unresolve.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/gql/operations/pr-comment-unresolve.generated.ts"],"sourcesContent":["import type * as Types from '../generated/common-types';\n\nimport type { GraphQLClient, RequestOptions } from 'graphql-request';\ntype GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];\nexport type PrCommentUnresolveMutationVariables = Types.Exact<{\n threadId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type PrCommentUnresolveMutation = { __typename?: 'Mutation', unresolveReviewThread?: { __typename?: 'UnresolveReviewThreadPayload', thread?: { __typename?: 'PullRequestReviewThread', id: string, isResolved: boolean } | null } | null };\n\n\nexport const PrCommentUnresolveDocument = `\n mutation PrCommentUnresolve($threadId: ID!) {\n unresolveReviewThread(input: {threadId: $threadId}) {\n thread {\n id\n isResolved\n }\n }\n}\n `;\n\nexport type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;\n\n\nconst defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();\n\nexport function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n return {\n PrCommentUnresolve(variables: PrCommentUnresolveMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<PrCommentUnresolveMutation> {\n return withWrapper((wrappedRequestHeaders) => client.request<PrCommentUnresolveMutation>({ document: PrCommentUnresolveDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'PrCommentUnresolve', 'mutation', variables);\n }\n };\n}\nexport type Sdk = ReturnType<typeof getSdk>;"],"mappings":";AAYO,IAAM,6BAA6B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAc1C,IAAM,iBAAqC,CAAC,QAAQ,gBAAgB,gBAAgB,eAAe,OAAO;AAEnG,SAAS,OAAO,QAAuB,cAAkC,gBAAgB;AAC9F,SAAO;AAAA,IACL,mBAAmB,WAAgD,gBAA8C,QAAqE;AACpL,aAAO,YAAY,CAAC,0BAA0B,OAAO,QAAoC,EAAE,UAAU,4BAA4B,WAAW,gBAAgB,EAAE,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,OAAO,CAAC,GAAG,sBAAsB,YAAY,SAAS;AAAA,IACrQ;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { DiffSide, PullRequestReviewThreadSubjectType, Exact, Scalars, InputMaybe } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type PrCommentsListQueryVariables = Exact<{
|
|
6
|
+
owner: Scalars['String']['input'];
|
|
7
|
+
name: Scalars['String']['input'];
|
|
8
|
+
prNumber: Scalars['Int']['input'];
|
|
9
|
+
first: Scalars['Int']['input'];
|
|
10
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
11
|
+
}>;
|
|
12
|
+
type PrCommentsListQuery = {
|
|
13
|
+
__typename?: 'Query';
|
|
14
|
+
repository?: {
|
|
15
|
+
__typename?: 'Repository';
|
|
16
|
+
pullRequest?: {
|
|
17
|
+
__typename?: 'PullRequest';
|
|
18
|
+
reviewThreads: {
|
|
19
|
+
__typename?: 'PullRequestReviewThreadConnection';
|
|
20
|
+
edges?: Array<{
|
|
21
|
+
__typename?: 'PullRequestReviewThreadEdge';
|
|
22
|
+
cursor: string;
|
|
23
|
+
node?: {
|
|
24
|
+
__typename?: 'PullRequestReviewThread';
|
|
25
|
+
id: string;
|
|
26
|
+
path: string;
|
|
27
|
+
line?: number | null;
|
|
28
|
+
startLine?: number | null;
|
|
29
|
+
diffSide: DiffSide;
|
|
30
|
+
subjectType: PullRequestReviewThreadSubjectType;
|
|
31
|
+
isResolved: boolean;
|
|
32
|
+
isOutdated: boolean;
|
|
33
|
+
viewerCanReply: boolean;
|
|
34
|
+
viewerCanResolve: boolean;
|
|
35
|
+
viewerCanUnresolve: boolean;
|
|
36
|
+
resolvedBy?: {
|
|
37
|
+
__typename?: 'User';
|
|
38
|
+
login: string;
|
|
39
|
+
} | null;
|
|
40
|
+
comments: {
|
|
41
|
+
__typename?: 'PullRequestReviewCommentConnection';
|
|
42
|
+
nodes?: Array<{
|
|
43
|
+
__typename?: 'PullRequestReviewComment';
|
|
44
|
+
id: string;
|
|
45
|
+
body: string;
|
|
46
|
+
createdAt: any;
|
|
47
|
+
url: any;
|
|
48
|
+
author?: {
|
|
49
|
+
__typename?: 'Bot';
|
|
50
|
+
login: string;
|
|
51
|
+
} | {
|
|
52
|
+
__typename?: 'EnterpriseUserAccount';
|
|
53
|
+
login: string;
|
|
54
|
+
} | {
|
|
55
|
+
__typename?: 'Mannequin';
|
|
56
|
+
login: string;
|
|
57
|
+
} | {
|
|
58
|
+
__typename?: 'Organization';
|
|
59
|
+
login: string;
|
|
60
|
+
} | {
|
|
61
|
+
__typename?: 'User';
|
|
62
|
+
login: string;
|
|
63
|
+
} | null;
|
|
64
|
+
} | null> | null;
|
|
65
|
+
};
|
|
66
|
+
} | null;
|
|
67
|
+
} | null> | null;
|
|
68
|
+
pageInfo: {
|
|
69
|
+
__typename?: 'PageInfo';
|
|
70
|
+
endCursor?: string | null;
|
|
71
|
+
hasNextPage: boolean;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
} | null;
|
|
75
|
+
} | null;
|
|
76
|
+
};
|
|
77
|
+
declare const PrCommentsListDocument = "\n query PrCommentsList($owner: String!, $name: String!, $prNumber: Int!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $prNumber) {\n reviewThreads(first: $first, after: $after) {\n edges {\n cursor\n node {\n id\n path\n line\n startLine\n diffSide\n subjectType\n isResolved\n isOutdated\n viewerCanReply\n viewerCanResolve\n viewerCanUnresolve\n resolvedBy {\n login\n }\n comments(first: 20) {\n nodes {\n id\n body\n createdAt\n url\n author {\n login\n }\n }\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n ";
|
|
78
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
79
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
80
|
+
PrCommentsList(variables: PrCommentsListQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrCommentsListQuery>;
|
|
81
|
+
};
|
|
82
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
83
|
+
|
|
84
|
+
export { PrCommentsListDocument, type PrCommentsListQuery, type PrCommentsListQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// src/gql/operations/pr-comments-list.generated.ts
|
|
2
|
+
var PrCommentsListDocument = `
|
|
3
|
+
query PrCommentsList($owner: String!, $name: String!, $prNumber: Int!, $first: Int!, $after: String) {
|
|
4
|
+
repository(owner: $owner, name: $name) {
|
|
5
|
+
pullRequest(number: $prNumber) {
|
|
6
|
+
reviewThreads(first: $first, after: $after) {
|
|
7
|
+
edges {
|
|
8
|
+
cursor
|
|
9
|
+
node {
|
|
10
|
+
id
|
|
11
|
+
path
|
|
12
|
+
line
|
|
13
|
+
startLine
|
|
14
|
+
diffSide
|
|
15
|
+
subjectType
|
|
16
|
+
isResolved
|
|
17
|
+
isOutdated
|
|
18
|
+
viewerCanReply
|
|
19
|
+
viewerCanResolve
|
|
20
|
+
viewerCanUnresolve
|
|
21
|
+
resolvedBy {
|
|
22
|
+
login
|
|
23
|
+
}
|
|
24
|
+
comments(first: 20) {
|
|
25
|
+
nodes {
|
|
26
|
+
id
|
|
27
|
+
body
|
|
28
|
+
createdAt
|
|
29
|
+
url
|
|
30
|
+
author {
|
|
31
|
+
login
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
pageInfo {
|
|
38
|
+
endCursor
|
|
39
|
+
hasNextPage
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
var defaultWrapper = (action, _operationName, _operationType, _variables) => action();
|
|
47
|
+
function getSdk(client, withWrapper = defaultWrapper) {
|
|
48
|
+
return {
|
|
49
|
+
PrCommentsList(variables, requestHeaders, signal) {
|
|
50
|
+
return withWrapper((wrappedRequestHeaders) => client.request({ document: PrCommentsListDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "PrCommentsList", "query", variables);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
PrCommentsListDocument,
|
|
56
|
+
getSdk
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=pr-comments-list.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/gql/operations/pr-comments-list.generated.ts"],"sourcesContent":["import type * as Types from '../generated/common-types';\n\nimport type { GraphQLClient, RequestOptions } from 'graphql-request';\ntype GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];\nexport type PrCommentsListQueryVariables = Types.Exact<{\n owner: Types.Scalars['String']['input'];\n name: Types.Scalars['String']['input'];\n prNumber: Types.Scalars['Int']['input'];\n first: Types.Scalars['Int']['input'];\n after?: Types.InputMaybe<Types.Scalars['String']['input']>;\n}>;\n\n\nexport type PrCommentsListQuery = { __typename?: 'Query', repository?: { __typename?: 'Repository', pullRequest?: { __typename?: 'PullRequest', reviewThreads: { __typename?: 'PullRequestReviewThreadConnection', edges?: Array<{ __typename?: 'PullRequestReviewThreadEdge', cursor: string, node?: { __typename?: 'PullRequestReviewThread', id: string, path: string, line?: number | null, startLine?: number | null, diffSide: Types.DiffSide, subjectType: Types.PullRequestReviewThreadSubjectType, isResolved: boolean, isOutdated: boolean, viewerCanReply: boolean, viewerCanResolve: boolean, viewerCanUnresolve: boolean, resolvedBy?: { __typename?: 'User', login: string } | null, comments: { __typename?: 'PullRequestReviewCommentConnection', nodes?: Array<{ __typename?: 'PullRequestReviewComment', id: string, body: string, createdAt: any, url: any, author?: { __typename?: 'Bot', login: string } | { __typename?: 'EnterpriseUserAccount', login: string } | { __typename?: 'Mannequin', login: string } | { __typename?: 'Organization', login: string } | { __typename?: 'User', login: string } | null } | null> | null } } | null } | null> | null, pageInfo: { __typename?: 'PageInfo', endCursor?: string | null, hasNextPage: boolean } } } | null } | null };\n\n\nexport const PrCommentsListDocument = `\n query PrCommentsList($owner: String!, $name: String!, $prNumber: Int!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $prNumber) {\n reviewThreads(first: $first, after: $after) {\n edges {\n cursor\n node {\n id\n path\n line\n startLine\n diffSide\n subjectType\n isResolved\n isOutdated\n viewerCanReply\n viewerCanResolve\n viewerCanUnresolve\n resolvedBy {\n login\n }\n comments(first: 20) {\n nodes {\n id\n body\n createdAt\n url\n author {\n login\n }\n }\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n `;\n\nexport type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;\n\n\nconst defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();\n\nexport function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {\n return {\n PrCommentsList(variables: PrCommentsListQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise<PrCommentsListQuery> {\n return withWrapper((wrappedRequestHeaders) => client.request<PrCommentsListQuery>({ document: PrCommentsListDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'PrCommentsList', 'query', variables);\n }\n };\n}\nexport type Sdk = ReturnType<typeof getSdk>;"],"mappings":";AAgBO,IAAM,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgDtC,IAAM,iBAAqC,CAAC,QAAQ,gBAAgB,gBAAgB,eAAe,OAAO;AAEnG,SAAS,OAAO,QAAuB,cAAkC,gBAAgB;AAC9F,SAAO;AAAA,IACL,eAAe,WAAyC,gBAA8C,QAA8D;AAClK,aAAO,YAAY,CAAC,0BAA0B,OAAO,QAA6B,EAAE,UAAU,wBAAwB,WAAW,gBAAgB,EAAE,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,OAAO,CAAC,GAAG,kBAAkB,SAAS,SAAS;AAAA,IACnP;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Exact, Scalars, InputMaybe } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type PrDiffListFilesQueryVariables = Exact<{
|
|
6
|
+
owner: Scalars['String']['input'];
|
|
7
|
+
name: Scalars['String']['input'];
|
|
8
|
+
prNumber: Scalars['Int']['input'];
|
|
9
|
+
first: Scalars['Int']['input'];
|
|
10
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
11
|
+
}>;
|
|
12
|
+
type PrDiffListFilesQuery = {
|
|
13
|
+
__typename?: 'Query';
|
|
14
|
+
repository?: {
|
|
15
|
+
__typename?: 'Repository';
|
|
16
|
+
pullRequest?: {
|
|
17
|
+
__typename?: 'PullRequest';
|
|
18
|
+
files?: {
|
|
19
|
+
__typename?: 'PullRequestChangedFileConnection';
|
|
20
|
+
nodes?: Array<{
|
|
21
|
+
__typename?: 'PullRequestChangedFile';
|
|
22
|
+
path: string;
|
|
23
|
+
additions: number;
|
|
24
|
+
deletions: number;
|
|
25
|
+
} | null> | null;
|
|
26
|
+
pageInfo: {
|
|
27
|
+
__typename?: 'PageInfo';
|
|
28
|
+
hasNextPage: boolean;
|
|
29
|
+
endCursor?: string | null;
|
|
30
|
+
};
|
|
31
|
+
} | null;
|
|
32
|
+
} | null;
|
|
33
|
+
} | null;
|
|
34
|
+
};
|
|
35
|
+
declare const PrDiffListFilesDocument = "\n query PrDiffListFiles($owner: String!, $name: String!, $prNumber: Int!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $prNumber) {\n files(first: $first, after: $after) {\n nodes {\n path\n additions\n deletions\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n }\n}\n ";
|
|
36
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
37
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
38
|
+
PrDiffListFiles(variables: PrDiffListFilesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrDiffListFilesQuery>;
|
|
39
|
+
};
|
|
40
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
41
|
+
|
|
42
|
+
export { PrDiffListFilesDocument, type PrDiffListFilesQuery, type PrDiffListFilesQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Exact, Scalars, InputMaybe, PullRequestState } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type PrListQueryVariables = Exact<{
|
|
6
|
+
owner: Scalars['String']['input'];
|
|
7
|
+
name: Scalars['String']['input'];
|
|
8
|
+
first: Scalars['Int']['input'];
|
|
9
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
10
|
+
}>;
|
|
11
|
+
type PrListQuery = {
|
|
12
|
+
__typename?: 'Query';
|
|
13
|
+
repository?: {
|
|
14
|
+
__typename?: 'Repository';
|
|
15
|
+
pullRequests: {
|
|
16
|
+
__typename?: 'PullRequestConnection';
|
|
17
|
+
nodes?: Array<{
|
|
18
|
+
__typename?: 'PullRequest';
|
|
19
|
+
id: string;
|
|
20
|
+
number: number;
|
|
21
|
+
title: string;
|
|
22
|
+
state: PullRequestState;
|
|
23
|
+
url: any;
|
|
24
|
+
} | null> | null;
|
|
25
|
+
pageInfo: {
|
|
26
|
+
__typename?: 'PageInfo';
|
|
27
|
+
endCursor?: string | null;
|
|
28
|
+
hasNextPage: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
} | null;
|
|
32
|
+
};
|
|
33
|
+
declare const PrListDocument = "\n query PrList($owner: String!, $name: String!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n pullRequests(\n first: $first\n after: $after\n orderBy: {field: CREATED_AT, direction: DESC}\n ) {\n nodes {\n id\n number\n title\n state\n url\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n}\n ";
|
|
34
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
35
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
36
|
+
PrList(variables: PrListQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrListQuery>;
|
|
37
|
+
};
|
|
38
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
39
|
+
|
|
40
|
+
export { PrListDocument, type PrListQuery, type PrListQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Exact, Scalars, InputMaybe, PullRequestReviewState } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type PrReviewsListQueryVariables = Exact<{
|
|
6
|
+
owner: Scalars['String']['input'];
|
|
7
|
+
name: Scalars['String']['input'];
|
|
8
|
+
prNumber: Scalars['Int']['input'];
|
|
9
|
+
first: Scalars['Int']['input'];
|
|
10
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
11
|
+
}>;
|
|
12
|
+
type PrReviewsListQuery = {
|
|
13
|
+
__typename?: 'Query';
|
|
14
|
+
repository?: {
|
|
15
|
+
__typename?: 'Repository';
|
|
16
|
+
pullRequest?: {
|
|
17
|
+
__typename?: 'PullRequest';
|
|
18
|
+
reviews?: {
|
|
19
|
+
__typename?: 'PullRequestReviewConnection';
|
|
20
|
+
nodes?: Array<{
|
|
21
|
+
__typename?: 'PullRequestReview';
|
|
22
|
+
id: string;
|
|
23
|
+
body: string;
|
|
24
|
+
state: PullRequestReviewState;
|
|
25
|
+
submittedAt?: any | null;
|
|
26
|
+
url: any;
|
|
27
|
+
author?: {
|
|
28
|
+
__typename?: 'Bot';
|
|
29
|
+
login: string;
|
|
30
|
+
} | {
|
|
31
|
+
__typename?: 'EnterpriseUserAccount';
|
|
32
|
+
login: string;
|
|
33
|
+
} | {
|
|
34
|
+
__typename?: 'Mannequin';
|
|
35
|
+
login: string;
|
|
36
|
+
} | {
|
|
37
|
+
__typename?: 'Organization';
|
|
38
|
+
login: string;
|
|
39
|
+
} | {
|
|
40
|
+
__typename?: 'User';
|
|
41
|
+
login: string;
|
|
42
|
+
} | null;
|
|
43
|
+
commit?: {
|
|
44
|
+
__typename?: 'Commit';
|
|
45
|
+
oid: any;
|
|
46
|
+
} | null;
|
|
47
|
+
} | null> | null;
|
|
48
|
+
pageInfo: {
|
|
49
|
+
__typename?: 'PageInfo';
|
|
50
|
+
hasNextPage: boolean;
|
|
51
|
+
endCursor?: string | null;
|
|
52
|
+
};
|
|
53
|
+
} | null;
|
|
54
|
+
} | null;
|
|
55
|
+
} | null;
|
|
56
|
+
};
|
|
57
|
+
declare const PrReviewsListDocument = "\n query PrReviewsList($owner: String!, $name: String!, $prNumber: Int!, $first: Int!, $after: String) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $prNumber) {\n reviews(first: $first, after: $after) {\n nodes {\n id\n author {\n login\n }\n body\n state\n submittedAt\n url\n commit {\n oid\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n }\n}\n ";
|
|
58
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
59
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
60
|
+
PrReviewsList(variables: PrReviewsListQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrReviewsListQuery>;
|
|
61
|
+
};
|
|
62
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
63
|
+
|
|
64
|
+
export { PrReviewsListDocument, type PrReviewsListQuery, type PrReviewsListQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Exact, Scalars, PullRequestState } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type PrViewQueryVariables = Exact<{
|
|
6
|
+
owner: Scalars['String']['input'];
|
|
7
|
+
name: Scalars['String']['input'];
|
|
8
|
+
prNumber: Scalars['Int']['input'];
|
|
9
|
+
}>;
|
|
10
|
+
type PrViewQuery = {
|
|
11
|
+
__typename?: 'Query';
|
|
12
|
+
repository?: {
|
|
13
|
+
__typename?: 'Repository';
|
|
14
|
+
pullRequest?: {
|
|
15
|
+
__typename?: 'PullRequest';
|
|
16
|
+
id: string;
|
|
17
|
+
number: number;
|
|
18
|
+
title: string;
|
|
19
|
+
state: PullRequestState;
|
|
20
|
+
url: any;
|
|
21
|
+
} | null;
|
|
22
|
+
} | null;
|
|
23
|
+
};
|
|
24
|
+
declare const PrViewDocument = "\n query PrView($owner: String!, $name: String!, $prNumber: Int!) {\n repository(owner: $owner, name: $name) {\n pullRequest(number: $prNumber) {\n id\n number\n title\n state\n url\n }\n }\n}\n ";
|
|
25
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
26
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
27
|
+
PrView(variables: PrViewQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<PrViewQuery>;
|
|
28
|
+
};
|
|
29
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
30
|
+
|
|
31
|
+
export { PrViewDocument, type PrViewQuery, type PrViewQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Exact, Scalars } from '../generated/common-types.js';
|
|
2
|
+
import { GraphQLClient, RequestOptions } from 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
|
|
5
|
+
type RepoViewQueryVariables = Exact<{
|
|
6
|
+
owner: Scalars['String']['input'];
|
|
7
|
+
name: Scalars['String']['input'];
|
|
8
|
+
}>;
|
|
9
|
+
type RepoViewQuery = {
|
|
10
|
+
__typename?: 'Query';
|
|
11
|
+
repository?: {
|
|
12
|
+
__typename?: 'Repository';
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
nameWithOwner: string;
|
|
16
|
+
isPrivate: boolean;
|
|
17
|
+
stargazerCount: number;
|
|
18
|
+
forkCount: number;
|
|
19
|
+
url: any;
|
|
20
|
+
defaultBranchRef?: {
|
|
21
|
+
__typename?: 'Ref';
|
|
22
|
+
name: string;
|
|
23
|
+
} | null;
|
|
24
|
+
} | null;
|
|
25
|
+
};
|
|
26
|
+
declare const RepoViewDocument = "\n query RepoView($owner: String!, $name: String!) {\n repository(owner: $owner, name: $name) {\n id\n name\n nameWithOwner\n isPrivate\n stargazerCount\n forkCount\n url\n defaultBranchRef {\n name\n }\n }\n}\n ";
|
|
27
|
+
type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
|
|
28
|
+
declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
29
|
+
RepoView(variables: RepoViewQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<RepoViewQuery>;
|
|
30
|
+
};
|
|
31
|
+
type Sdk = ReturnType<typeof getSdk>;
|
|
32
|
+
|
|
33
|
+
export { RepoViewDocument, type RepoViewQuery, type RepoViewQueryVariables, type Sdk, type SdkFunctionWrapper, getSdk };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { executeTask } from './core/routing/engine.js';
|
|
2
|
+
export { TaskRequest } from './core/contracts/task.js';
|
|
3
|
+
export { AttemptMeta, ResultEnvelope, ResultError, ResultMeta, RouteSource } from './core/contracts/envelope.js';
|
|
4
|
+
export { RouteReasonCode } from './core/routing/reason-codes.js';
|
|
5
|
+
export { GithubClient, GraphqlClient, GraphqlTransport, createGithubClient, createGraphqlClient } from './gql/client.js';
|
|
6
|
+
export { getOperationCard, listOperationCards } from './core/registry/index.js';
|
|
7
|
+
export { createSafeCliCommandRunner } from './core/execution/cli/safe-runner.js';
|
|
8
|
+
export { CliCommandRunner } from './core/execution/adapters/cli-capability-adapter.js';
|
|
9
|
+
import './core/routing/policy.js';
|
|
10
|
+
import './core/errors/codes.js';
|
|
11
|
+
import 'graphql';
|
|
12
|
+
import './gql/operations/issue-comments-list.generated.js';
|
|
13
|
+
import './gql/generated/common-types.js';
|
|
14
|
+
import 'graphql-request';
|
|
15
|
+
import './gql/operations/issue-list.generated.js';
|
|
16
|
+
import './gql/operations/issue-view.generated.js';
|
|
17
|
+
import './gql/operations/pr-diff-list-files.generated.js';
|
|
18
|
+
import './gql/operations/pr-reviews-list.generated.js';
|
|
19
|
+
import './gql/operations/pr-list.generated.js';
|
|
20
|
+
import './gql/operations/pr-view.generated.js';
|
|
21
|
+
import './gql/operations/repo-view.generated.js';
|
|
22
|
+
import './core/registry/types.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
executeTask
|
|
3
|
+
} from "./chunk-WYSY75U7.js";
|
|
4
|
+
import {
|
|
5
|
+
createSafeCliCommandRunner
|
|
6
|
+
} from "./chunk-DLKIQBK6.js";
|
|
7
|
+
import "./chunk-3RAT5BCB.js";
|
|
8
|
+
import "./chunk-YNNDBMNR.js";
|
|
9
|
+
import "./chunk-UGWIZ3RI.js";
|
|
10
|
+
import "./chunk-TDTKOJKN.js";
|
|
11
|
+
import "./chunk-Q4RTT3DV.js";
|
|
12
|
+
import "./chunk-W2TKG2UL.js";
|
|
13
|
+
import "./chunk-QEAMC4IJ.js";
|
|
14
|
+
import "./chunk-5JRLVOF2.js";
|
|
15
|
+
import "./chunk-B6RLMKS4.js";
|
|
16
|
+
import "./chunk-573MDG3I.js";
|
|
17
|
+
import "./chunk-UOJWOHRM.js";
|
|
18
|
+
import {
|
|
19
|
+
getOperationCard,
|
|
20
|
+
listOperationCards
|
|
21
|
+
} from "./chunk-MT4U5DYD.js";
|
|
22
|
+
import "./chunk-2W4L5YCC.js";
|
|
23
|
+
import {
|
|
24
|
+
createGithubClient,
|
|
25
|
+
createGraphqlClient
|
|
26
|
+
} from "./chunk-YQDQX4BT.js";
|
|
27
|
+
import "./chunk-NFF5VF4U.js";
|
|
28
|
+
import "./chunk-EBRDO4Y6.js";
|
|
29
|
+
import "./chunk-W6ROKCY5.js";
|
|
30
|
+
import "./chunk-RUQXGZ35.js";
|
|
31
|
+
import "./chunk-TCLMLVUQ.js";
|
|
32
|
+
import "./chunk-VD5NXQP7.js";
|
|
33
|
+
import "./chunk-QZZC53HF.js";
|
|
34
|
+
import "./chunk-D746VR3B.js";
|
|
35
|
+
export {
|
|
36
|
+
createGithubClient,
|
|
37
|
+
createGraphqlClient,
|
|
38
|
+
createSafeCliCommandRunner,
|
|
39
|
+
executeTask,
|
|
40
|
+
getOperationCard,
|
|
41
|
+
listOperationCards
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/constants.ts"],"sourcesContent":["export const projectName = \"ghx\"\n"],"mappings":";AAAO,IAAM,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/utils.ts"],"sourcesContent":["export function isObject(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n}\n"],"mappings":";AAAO,SAAS,SAAS,OAAkD;AACzE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E;","names":[]}
|