@octocodeai/octocode-tools-core 17.0.2 → 18.1.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/README.md +266 -123
- package/dist/direct.d.ts +1 -1
- package/dist/direct.js +51 -36
- package/dist/github/canonicalRepo.d.ts +14 -0
- package/dist/github/codeSearch/matchPositions.d.ts +11 -0
- package/dist/github/codeSearch.d.ts +2 -1
- package/dist/github/compare.d.ts +51 -0
- package/dist/github/dateWindow.d.ts +4 -0
- package/dist/github/discussions.d.ts +45 -0
- package/dist/github/githubAPI.d.ts +7 -13
- package/dist/github/history/commitFiles.d.ts +39 -0
- package/dist/github/history.d.ts +1 -0
- package/dist/github/issues/types.d.ts +8 -8
- package/dist/github/prTransformation.d.ts +24 -25
- package/dist/github/queryBuilders/base.d.ts +0 -1
- package/dist/github/queryBuilders/issues.d.ts +0 -6
- package/dist/github/releases.d.ts +9 -1
- package/dist/github/responseHeaders.d.ts +6 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js +55 -40
- package/dist/providers/github/githubPullRequests.d.ts +9 -0
- package/dist/providers/github/paginationMetadata.d.ts +6 -5
- package/dist/providers/providerQueries.d.ts +11 -6
- package/dist/providers/providerResults.d.ts +9 -1
- package/dist/schema.d.ts +0 -1
- package/dist/schema.js +1 -2
- package/dist/scheme/pagination.d.ts +5 -13
- package/dist/scheme/responseEnvelope.d.ts +28 -22
- package/dist/security/bridge.d.ts +3 -2
- package/dist/shared/config/index.d.ts +0 -1
- package/dist/shared/config/index.js +1 -1
- package/dist/shared/languageSelectors/classify.d.ts +2 -2
- package/dist/shared/languageSelectors/data.d.ts +4 -4
- package/dist/shared/languageSelectors.d.ts +1 -1
- package/dist/shared/paths.d.ts +1 -4
- package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +10 -11
- package/dist/tools/directToolCatalog/toolCatalogFormatters.d.ts +5 -0
- package/dist/tools/directToolCatalog.meta.d.ts +1 -0
- package/dist/tools/github_clone_repo/contentSize.d.ts +9 -0
- package/dist/tools/github_clone_repo/scheme.d.ts +28 -80
- package/dist/tools/github_fetch_content/finalizer/types.d.ts +4 -3
- package/dist/tools/github_fetch_content/scheme.d.ts +92 -140
- package/dist/tools/github_fetch_content/types.d.ts +2 -1
- package/dist/tools/github_search_code/scheme.d.ts +39 -87
- package/dist/tools/github_search_discussions/execution.d.ts +15 -0
- package/dist/tools/github_search_discussions/scheme.d.ts +16 -0
- package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +3 -18
- package/dist/tools/github_search_pull_requests/scheme.d.ts +97 -119
- package/dist/tools/github_search_pull_requests/splitExecutions.d.ts +8 -0
- package/dist/tools/github_search_pull_requests/splitSchemes.d.ts +219 -0
- package/dist/tools/github_search_pull_requests/types.d.ts +28 -29
- package/dist/tools/github_search_repos/execution.d.ts +0 -2
- package/dist/tools/github_search_repos/scheme.d.ts +36 -64
- package/dist/tools/github_view_repo_structure/scheme.d.ts +37 -66
- package/dist/tools/local_dead_code/deadCodeScan.d.ts +26 -0
- package/dist/tools/local_dead_code/entrypoints.d.ts +16 -0
- package/dist/tools/local_dead_code/execution.d.ts +4 -0
- package/dist/tools/local_dead_code/graphBuilder.d.ts +43 -0
- package/dist/tools/local_dead_code/importResolver.d.ts +6 -0
- package/dist/tools/local_dead_code/local_dead_code.d.ts +5 -0
- package/dist/tools/local_dead_code/reachability.d.ts +21 -0
- package/dist/tools/local_dead_code/retention.d.ts +22 -0
- package/dist/tools/local_dead_code/scheme.d.ts +51 -0
- package/dist/tools/local_dead_code/types.d.ts +56 -0
- package/dist/tools/local_fetch_content/execution.d.ts +0 -1
- package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +6 -0
- package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +9 -1
- package/dist/tools/local_fetch_content/fetchContent.d.ts +0 -1
- package/dist/tools/local_fetch_content/scheme.d.ts +28 -90
- package/dist/tools/local_find_files/execution.d.ts +0 -1
- package/dist/tools/local_find_files/findFiles.d.ts +0 -3
- package/dist/tools/local_find_files/findFilesNext.d.ts +26 -0
- package/dist/tools/local_find_files/pathPatternBraces.d.ts +20 -0
- package/dist/tools/local_find_files/scheme.d.ts +19 -81
- package/dist/tools/local_ripgrep/captureBudget.d.ts +25 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +1 -0
- package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +1 -0
- package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +1 -1
- package/dist/tools/local_ripgrep/scheme.d.ts +89 -190
- package/dist/tools/local_view_structure/execution.d.ts +0 -1
- package/dist/tools/local_view_structure/local_view_structure.d.ts +0 -1
- package/dist/tools/local_view_structure/scheme.d.ts +34 -87
- package/dist/tools/local_view_structure/structureFilters.d.ts +2 -4
- package/dist/tools/local_view_structure/structureResponse.d.ts +1 -0
- package/dist/tools/local_view_structure/viewStructureNext.d.ts +25 -0
- package/dist/tools/lsp/semantic_content/index.d.ts +2 -1
- package/dist/tools/lsp/semantic_content/scheme.d.ts +167 -642
- package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +8 -2
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +2 -1
- package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +17 -1
- package/dist/tools/lsp/semantic_content/semanticNext.d.ts +2 -0
- package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +1 -1
- package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +14 -2
- package/dist/tools/lsp/shared/semanticTypes.d.ts +14 -1
- package/dist/tools/package_search/execution.d.ts +9 -6
- package/dist/tools/package_search/queryHelpers.d.ts +8 -0
- package/dist/tools/package_search/scheme.d.ts +30 -86
- package/dist/tools/providerMappers/codeSearch.d.ts +0 -1
- package/dist/tools/providerMappers/pullRequests.d.ts +0 -13
- package/dist/tools/providerMappers/repoSearch.d.ts +1 -5
- package/dist/tools/providerMappers/repoStructure.d.ts +4 -0
- package/dist/tools/toolCatalogFactory.d.ts +25 -0
- package/dist/tools/toolConfig.d.ts +9 -24
- package/dist/tools/toolNames.d.ts +2 -2
- package/dist/tools/toolSchemaImports.d.ts +3 -1
- package/dist/types/execution.d.ts +1 -0
- package/dist/types/toolOutput.d.ts +38 -0
- package/dist/utils/contextUtils.d.ts +6 -0
- package/dist/utils/core/types.d.ts +4 -0
- package/dist/utils/file/configFiles.d.ts +70 -0
- package/dist/utils/jsSymbolNames.d.ts +6 -0
- package/package.json +4 -8
- package/dist/oql/adapters/compile.d.ts +0 -25
- package/dist/oql/adapters/github/execute.d.ts +0 -16
- package/dist/oql/adapters/github/provider-diagnostics.d.ts +0 -14
- package/dist/oql/adapters/github/shared.d.ts +0 -75
- package/dist/oql/adapters/github.d.ts +0 -14
- package/dist/oql/adapters/graphProof.d.ts +0 -6
- package/dist/oql/adapters/graphView/filters.d.ts +0 -25
- package/dist/oql/adapters/graphView/nativeEdges.d.ts +0 -5
- package/dist/oql/adapters/graphView.d.ts +0 -29
- package/dist/oql/adapters/local/code.d.ts +0 -3
- package/dist/oql/adapters/local/codeBoolean.d.ts +0 -3
- package/dist/oql/adapters/local/fileRowOps.d.ts +0 -11
- package/dist/oql/adapters/local/files.d.ts +0 -3
- package/dist/oql/adapters/local/filesBoolean.d.ts +0 -10
- package/dist/oql/adapters/local/filesContentLeaf.d.ts +0 -12
- package/dist/oql/adapters/local/filesUniverse.d.ts +0 -6
- package/dist/oql/adapters/local/findToolType.d.ts +0 -10
- package/dist/oql/adapters/local/predicates.d.ts +0 -18
- package/dist/oql/adapters/local/scope.d.ts +0 -14
- package/dist/oql/adapters/local/searchToolType.d.ts +0 -7
- package/dist/oql/adapters/local/structureContent.d.ts +0 -6
- package/dist/oql/adapters/local/types.d.ts +0 -34
- package/dist/oql/adapters/local.d.ts +0 -4
- package/dist/oql/adapters/materialize.d.ts +0 -11
- package/dist/oql/adapters/pagination.d.ts +0 -21
- package/dist/oql/adapters/researchTargets/diff.d.ts +0 -16
- package/dist/oql/adapters/researchTargets/graph.d.ts +0 -3
- package/dist/oql/adapters/researchTargets/history.d.ts +0 -20
- package/dist/oql/adapters/researchTargets/pagination.d.ts +0 -54
- package/dist/oql/adapters/researchTargets/repositories.d.ts +0 -4
- package/dist/oql/adapters/researchTargets/research.d.ts +0 -3
- package/dist/oql/adapters/researchTargets/rows.d.ts +0 -16
- package/dist/oql/adapters/researchTargets/semantics.d.ts +0 -3
- package/dist/oql/adapters/researchTargets/shared.d.ts +0 -11
- package/dist/oql/adapters/researchTargets.d.ts +0 -8
- package/dist/oql/adapters/resultMap.d.ts +0 -27
- package/dist/oql/adapters/ruleYaml.d.ts +0 -11
- package/dist/oql/adapters/runner.d.ts +0 -21
- package/dist/oql/capabilities.d.ts +0 -31
- package/dist/oql/defaults.d.ts +0 -26
- package/dist/oql/diagnostics.d.ts +0 -25
- package/dist/oql/diffLanes.d.ts +0 -29
- package/dist/oql/envelope.d.ts +0 -21
- package/dist/oql/features.d.ts +0 -7
- package/dist/oql/index.d.ts +0 -27
- package/dist/oql/index.js +0 -47
- package/dist/oql/normalize/batch.d.ts +0 -2
- package/dist/oql/normalize/materialize.d.ts +0 -2
- package/dist/oql/normalize/params.d.ts +0 -2
- package/dist/oql/normalize/query.d.ts +0 -2
- package/dist/oql/normalize/scope.d.ts +0 -2
- package/dist/oql/normalize/shared.d.ts +0 -7
- package/dist/oql/normalize/source.d.ts +0 -2
- package/dist/oql/normalize/where.d.ts +0 -2
- package/dist/oql/normalize.d.ts +0 -20
- package/dist/oql/planner/planDiagnostics.d.ts +0 -13
- package/dist/oql/planner/predicateRouting.d.ts +0 -35
- package/dist/oql/planner.d.ts +0 -7
- package/dist/oql/predicateUtils.d.ts +0 -3
- package/dist/oql/research/analyze/manifest-scan.d.ts +0 -4
- package/dist/oql/research/analyze/source-graph.d.ts +0 -7
- package/dist/oql/research/analyze/symbol-scoring.d.ts +0 -4
- package/dist/oql/research/analyze/types.d.ts +0 -163
- package/dist/oql/research/analyze/utils.d.ts +0 -16
- package/dist/oql/research/analyze.d.ts +0 -3
- package/dist/oql/research/packets/builders.d.ts +0 -4
- package/dist/oql/research/packets/types.d.ts +0 -91
- package/dist/oql/research/packets.d.ts +0 -21
- package/dist/oql/run/batch.d.ts +0 -3
- package/dist/oql/run/continuations/records.d.ts +0 -19
- package/dist/oql/run/continuations/registry.d.ts +0 -22
- package/dist/oql/run/continuations/semantics.d.ts +0 -3
- package/dist/oql/run/continuations/types.d.ts +0 -12
- package/dist/oql/run/dryRun.d.ts +0 -11
- package/dist/oql/run/paths.d.ts +0 -15
- package/dist/oql/run/proofGrades.d.ts +0 -8
- package/dist/oql/run/select.d.ts +0 -10
- package/dist/oql/run/single.d.ts +0 -22
- package/dist/oql/run.d.ts +0 -5
- package/dist/oql/schema/predicates.d.ts +0 -12
- package/dist/oql/schema.d.ts +0 -1049
- package/dist/oql/schemeText.d.ts +0 -152
- package/dist/oql/shorthand/predicates.d.ts +0 -15
- package/dist/oql/shorthand/query-controls.d.ts +0 -18
- package/dist/oql/shorthand/target-params.d.ts +0 -9
- package/dist/oql/shorthand/types.d.ts +0 -159
- package/dist/oql/shorthand/utils.d.ts +0 -7
- package/dist/oql/shorthand.d.ts +0 -8
- package/dist/oql/targetParams.d.ts +0 -7
- package/dist/oql/transformers/contract.d.ts +0 -19
- package/dist/oql/transformers/github/code.d.ts +0 -9
- package/dist/oql/transformers/github/common.d.ts +0 -14
- package/dist/oql/transformers/language.d.ts +0 -1
- package/dist/oql/transformers/registry.d.ts +0 -16
- package/dist/oql/transformers/types.d.ts +0 -11
- package/dist/oql/types/diagnostics.d.ts +0 -22
- package/dist/oql/types/envelope.d.ts +0 -78
- package/dist/oql/types/guards.d.ts +0 -9
- package/dist/oql/types/planner.d.ts +0 -46
- package/dist/oql/types/predicates.d.ts +0 -93
- package/dist/oql/types/query.d.ts +0 -143
- package/dist/oql/types/recordData.d.ts +0 -127
- package/dist/oql/types/recordRows.d.ts +0 -48
- package/dist/oql/types/results.d.ts +0 -118
- package/dist/oql/types/targets.d.ts +0 -22
- package/dist/oql/types.d.ts +0 -27
- package/dist/tools/oql_search/execution.d.ts +0 -7
- package/dist/tools/toolMetadata/descriptionOverrides.d.ts +0 -4
|
@@ -8,29 +8,14 @@ export declare function shapeFileChange(change: Record<string, unknown>, include
|
|
|
8
8
|
additions: number;
|
|
9
9
|
deletions: number;
|
|
10
10
|
};
|
|
11
|
-
export declare function
|
|
12
|
-
|
|
13
|
-
changedFiles: ({
|
|
11
|
+
export declare function shapeFileSurfaces(pr: Record<string, unknown>, query: QueryLike, request: NormalizedPrContentRequest): {
|
|
12
|
+
changedFiles: {
|
|
14
13
|
patch?: string;
|
|
15
14
|
path: string;
|
|
16
15
|
status: string;
|
|
17
16
|
additions: number;
|
|
18
17
|
deletions: number;
|
|
19
|
-
}
|
|
20
|
-
patchPagination?: {
|
|
21
|
-
nextCharOffset?: number;
|
|
22
|
-
charOffset: number;
|
|
23
|
-
charLength: number;
|
|
24
|
-
totalChars: number;
|
|
25
|
-
hasMore: boolean;
|
|
26
|
-
};
|
|
27
|
-
patch: string;
|
|
28
|
-
diff: import("../../../index.js").DiffPreview;
|
|
29
|
-
path: string;
|
|
30
|
-
status: string;
|
|
31
|
-
additions: number;
|
|
32
|
-
deletions: number;
|
|
33
|
-
})[];
|
|
18
|
+
}[];
|
|
34
19
|
filePagination: import("./pagination.js").Pagination;
|
|
35
20
|
filePathsPreview?: undefined;
|
|
36
21
|
filePathsPagination?: undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { ToolContinuation } from '../../scheme/pagination.js';
|
|
3
|
+
import type { ResponsePaginationInfo } from '../../types/toolOutput.js';
|
|
2
4
|
export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
|
|
3
5
|
type: z.ZodDefault<z.ZodEnum<{
|
|
4
6
|
prs: "prs";
|
|
@@ -8,10 +10,9 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
|
|
|
8
10
|
until: z.ZodOptional<z.ZodString>;
|
|
9
11
|
path: z.ZodOptional<z.ZodString>;
|
|
10
12
|
branch: z.ZodOptional<z.ZodString>;
|
|
11
|
-
perPage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
12
13
|
includeDiff: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
includeAssets: z.ZodOptional<z.ZodBoolean>;
|
|
13
15
|
keywordsToSearch: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
-
query: z.ZodOptional<z.ZodString>;
|
|
15
16
|
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
16
17
|
owner: z.ZodOptional<z.ZodString>;
|
|
17
18
|
repo: z.ZodOptional<z.ZodString>;
|
|
@@ -23,14 +24,12 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
|
|
|
23
24
|
}>>;
|
|
24
25
|
assignee: z.ZodOptional<z.ZodString>;
|
|
25
26
|
author: z.ZodOptional<z.ZodString>;
|
|
27
|
+
committer: z.ZodOptional<z.ZodString>;
|
|
26
28
|
commenter: z.ZodOptional<z.ZodString>;
|
|
27
|
-
involves: z.ZodOptional<z.ZodString>;
|
|
28
29
|
mentions: z.ZodOptional<z.ZodString>;
|
|
29
30
|
"review-requested": z.ZodOptional<z.ZodString>;
|
|
30
31
|
"reviewed-by": z.ZodOptional<z.ZodString>;
|
|
31
32
|
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
32
|
-
milestone: z.ZodOptional<z.ZodString>;
|
|
33
|
-
language: z.ZodOptional<z.ZodString>;
|
|
34
33
|
checks: z.ZodOptional<z.ZodEnum<{
|
|
35
34
|
success: "success";
|
|
36
35
|
failure: "failure";
|
|
@@ -42,17 +41,6 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
|
|
|
42
41
|
changes_requested: "changes_requested";
|
|
43
42
|
required: "required";
|
|
44
43
|
}>>;
|
|
45
|
-
locked: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
public: "public";
|
|
48
|
-
private: "private";
|
|
49
|
-
}>>;
|
|
50
|
-
"team-mentions": z.ZodOptional<z.ZodString>;
|
|
51
|
-
project: z.ZodOptional<z.ZodString>;
|
|
52
|
-
"no-label": z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
"no-milestone": z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
"no-project": z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
"no-assignee": z.ZodOptional<z.ZodBoolean>;
|
|
56
44
|
head: z.ZodOptional<z.ZodString>;
|
|
57
45
|
base: z.ZodOptional<z.ZodString>;
|
|
58
46
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -61,7 +49,6 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
|
|
|
61
49
|
"merged-at": z.ZodOptional<z.ZodString>;
|
|
62
50
|
comments: z.ZodOptional<z.ZodString>;
|
|
63
51
|
reactions: z.ZodOptional<z.ZodString>;
|
|
64
|
-
interactions: z.ZodOptional<z.ZodString>;
|
|
65
52
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
66
53
|
match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
67
54
|
comments: "comments";
|
|
@@ -69,8 +56,8 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
|
|
|
69
56
|
body: "body";
|
|
70
57
|
}>>>;
|
|
71
58
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
created: "created";
|
|
73
59
|
updated: "updated";
|
|
60
|
+
created: "created";
|
|
74
61
|
"best-match": "best-match";
|
|
75
62
|
comments: "comments";
|
|
76
63
|
reactions: "reactions";
|
|
@@ -134,104 +121,95 @@ export declare const GitHubPullRequestSearchBulkQueryLocalSchema: z.ZodObject<{
|
|
|
134
121
|
responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
135
122
|
queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
136
123
|
}, z.core.$strip>;
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
why: z.ZodOptional<z.ZodString>;
|
|
230
|
-
confidence: z.ZodOptional<z.ZodEnum<{
|
|
231
|
-
exact: "exact";
|
|
232
|
-
heuristic: "heuristic";
|
|
233
|
-
}>>;
|
|
234
|
-
}, z.core.$strip>>>;
|
|
235
|
-
}, z.core.$loose>>;
|
|
236
|
-
}, z.core.$loose>>>;
|
|
237
|
-
}, z.core.$loose>;
|
|
124
|
+
export interface PRChangedFile {
|
|
125
|
+
path?: string;
|
|
126
|
+
status?: string;
|
|
127
|
+
additions?: number;
|
|
128
|
+
deletions?: number;
|
|
129
|
+
[key: string]: unknown;
|
|
130
|
+
}
|
|
131
|
+
export interface PRDetailRow {
|
|
132
|
+
number?: number;
|
|
133
|
+
title?: string;
|
|
134
|
+
url?: string;
|
|
135
|
+
state?: string;
|
|
136
|
+
author?: string;
|
|
137
|
+
targetBranch?: string;
|
|
138
|
+
sourceBranch?: string;
|
|
139
|
+
sourceSha?: string;
|
|
140
|
+
createdAt?: string;
|
|
141
|
+
updatedAt?: string;
|
|
142
|
+
closedAt?: string;
|
|
143
|
+
mergedAt?: string;
|
|
144
|
+
changedFilesCount?: number;
|
|
145
|
+
additions?: number;
|
|
146
|
+
deletions?: number;
|
|
147
|
+
changedFiles?: PRChangedFile[];
|
|
148
|
+
next?: Record<string, unknown>;
|
|
149
|
+
contentPagination?: Record<string, unknown>;
|
|
150
|
+
[key: string]: unknown;
|
|
151
|
+
}
|
|
152
|
+
export type ConciseOrDetailRow = string | PRDetailRow;
|
|
153
|
+
export interface HistoryCommit {
|
|
154
|
+
sha?: string;
|
|
155
|
+
date?: string;
|
|
156
|
+
message?: string;
|
|
157
|
+
messageHeadline?: string;
|
|
158
|
+
url?: string;
|
|
159
|
+
author?: {
|
|
160
|
+
name?: string;
|
|
161
|
+
email?: string;
|
|
162
|
+
login?: string;
|
|
163
|
+
[key: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
[key: string]: unknown;
|
|
166
|
+
}
|
|
167
|
+
export interface HistoryRelease {
|
|
168
|
+
tagName?: string;
|
|
169
|
+
name?: string;
|
|
170
|
+
publishedAt?: string;
|
|
171
|
+
prerelease?: boolean;
|
|
172
|
+
latest?: boolean;
|
|
173
|
+
[key: string]: unknown;
|
|
174
|
+
}
|
|
175
|
+
export interface HistoryPagination {
|
|
176
|
+
currentPage?: number;
|
|
177
|
+
totalPages?: number;
|
|
178
|
+
perPage?: number;
|
|
179
|
+
hasMore?: boolean;
|
|
180
|
+
nextPage?: number;
|
|
181
|
+
[key: string]: unknown;
|
|
182
|
+
}
|
|
183
|
+
export interface PullRequestsResultData {
|
|
184
|
+
pullRequests?: ConciseOrDetailRow[];
|
|
185
|
+
issues?: ConciseOrDetailRow[];
|
|
186
|
+
type?: string;
|
|
187
|
+
owner?: string;
|
|
188
|
+
repo?: string;
|
|
189
|
+
path?: string;
|
|
190
|
+
totalCount?: number;
|
|
191
|
+
effectiveQuery?: string;
|
|
192
|
+
commits?: HistoryCommit[];
|
|
193
|
+
releases?: HistoryRelease[];
|
|
194
|
+
latest?: {
|
|
195
|
+
tagName?: string;
|
|
196
|
+
publishedAt?: string;
|
|
197
|
+
[key: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
pagination?: HistoryPagination;
|
|
200
|
+
next?: Record<string, ToolContinuation>;
|
|
201
|
+
[key: string]: unknown;
|
|
202
|
+
}
|
|
203
|
+
export interface GitHubSearchPullRequestsOutputLocal {
|
|
204
|
+
base?: string;
|
|
205
|
+
shared?: Record<string, string | number | boolean>;
|
|
206
|
+
responsePagination?: ResponsePaginationInfo;
|
|
207
|
+
next?: Record<string, ToolContinuation>;
|
|
208
|
+
results?: Array<{
|
|
209
|
+
id?: string;
|
|
210
|
+
status?: string;
|
|
211
|
+
data?: PullRequestsResultData;
|
|
212
|
+
[key: string]: unknown;
|
|
213
|
+
}>;
|
|
214
|
+
[key: string]: unknown;
|
|
215
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { ToolExecutionArgs } from '../../types/execution.js';
|
|
3
|
+
type SplitArgs = ToolExecutionArgs<Record<string, unknown>>;
|
|
4
|
+
export declare function searchMultipleGitHubPullRequestsSplit(args: SplitArgs): Promise<CallToolResult>;
|
|
5
|
+
export declare function searchMultipleGitHubIssues(args: SplitArgs): Promise<CallToolResult>;
|
|
6
|
+
export declare function searchMultipleGitHubCommits(args: SplitArgs): Promise<CallToolResult>;
|
|
7
|
+
export declare function listMultipleGitHubReleases(args: SplitArgs): Promise<CallToolResult>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
export declare const SearchPullRequestsLocalSchema: import("zod").ZodObject<{
|
|
2
|
+
keywordsToSearch: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
3
|
+
prNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4
|
+
owner: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
repo: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
concise: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7
|
+
state: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8
|
+
open: "open";
|
|
9
|
+
closed: "closed";
|
|
10
|
+
merged: "merged";
|
|
11
|
+
}>>;
|
|
12
|
+
assignee: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
author: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
commenter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
mentions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
"review-requested": import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
"reviewed-by": import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
label: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
19
|
+
checks: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
20
|
+
success: "success";
|
|
21
|
+
failure: "failure";
|
|
22
|
+
pending: "pending";
|
|
23
|
+
}>>;
|
|
24
|
+
review: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
25
|
+
none: "none";
|
|
26
|
+
approved: "approved";
|
|
27
|
+
changes_requested: "changes_requested";
|
|
28
|
+
required: "required";
|
|
29
|
+
}>>;
|
|
30
|
+
head: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
base: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
created: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
updated: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
closed: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
"merged-at": import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
comments: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
reactions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
draft: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
39
|
+
match: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
40
|
+
comments: "comments";
|
|
41
|
+
title: "title";
|
|
42
|
+
body: "body";
|
|
43
|
+
}>>>;
|
|
44
|
+
sort: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
45
|
+
updated: "updated";
|
|
46
|
+
created: "created";
|
|
47
|
+
"best-match": "best-match";
|
|
48
|
+
comments: "comments";
|
|
49
|
+
reactions: "reactions";
|
|
50
|
+
}>>;
|
|
51
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
52
|
+
asc: "asc";
|
|
53
|
+
desc: "desc";
|
|
54
|
+
}>>;
|
|
55
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
56
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
57
|
+
archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
58
|
+
filePage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
59
|
+
commentPage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
60
|
+
commitPage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
61
|
+
itemsPerPage: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
62
|
+
reviewMode: import("zod").ZodOptional<import("zod").ZodLiteral<"full">>;
|
|
63
|
+
content: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
64
|
+
metadata: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
65
|
+
body: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
66
|
+
changedFiles: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
67
|
+
patches: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
68
|
+
mode: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
69
|
+
none: "none";
|
|
70
|
+
selected: "selected";
|
|
71
|
+
all: "all";
|
|
72
|
+
}>>;
|
|
73
|
+
files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
74
|
+
ranges: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
75
|
+
file: import("zod").ZodString;
|
|
76
|
+
additions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
77
|
+
deletions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
78
|
+
}, import("zod/v4/core").$strip>>>;
|
|
79
|
+
}, import("zod/v4/core").$strip>>;
|
|
80
|
+
comments: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
81
|
+
discussion: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
82
|
+
reviewInline: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
83
|
+
includeBots: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
84
|
+
file: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
}, import("zod/v4/core").$strip>>;
|
|
86
|
+
reviews: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
87
|
+
commits: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
88
|
+
list: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
89
|
+
includeFiles: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
90
|
+
}, import("zod/v4/core").$strip>>;
|
|
91
|
+
}, import("zod/v4/core").$strip>>;
|
|
92
|
+
matchString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
commentBodyOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
94
|
+
charOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
95
|
+
charLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
+
minify: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
97
|
+
none: "none";
|
|
98
|
+
standard: "standard";
|
|
99
|
+
}>>;
|
|
100
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
mainResearchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
researchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
|
+
}, import("zod/v4/core").$strip>;
|
|
105
|
+
export declare const SearchPullRequestsBulkLocalSchema: import("zod").ZodObject<{
|
|
106
|
+
responseCharOffset: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
107
|
+
responseCharLength: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
108
|
+
queries: import("zod").ZodArray<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
109
|
+
}, import("zod/v4/core").$strip>;
|
|
110
|
+
export declare const SearchIssuesLocalSchema: import("zod").ZodObject<{
|
|
111
|
+
owner: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
|
+
repo: import("zod").ZodOptional<import("zod").ZodString>;
|
|
113
|
+
keywordsToSearch: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
114
|
+
issueNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
115
|
+
concise: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
116
|
+
state: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
117
|
+
open: "open";
|
|
118
|
+
closed: "closed";
|
|
119
|
+
}>>;
|
|
120
|
+
assignee: import("zod").ZodOptional<import("zod").ZodString>;
|
|
121
|
+
author: import("zod").ZodOptional<import("zod").ZodString>;
|
|
122
|
+
commenter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
123
|
+
mentions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
124
|
+
label: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
125
|
+
created: import("zod").ZodOptional<import("zod").ZodString>;
|
|
126
|
+
updated: import("zod").ZodOptional<import("zod").ZodString>;
|
|
127
|
+
closed: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
|
+
comments: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
|
+
reactions: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
|
+
match: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
131
|
+
comments: "comments";
|
|
132
|
+
title: "title";
|
|
133
|
+
body: "body";
|
|
134
|
+
}>>>;
|
|
135
|
+
sort: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
136
|
+
updated: "updated";
|
|
137
|
+
created: "created";
|
|
138
|
+
"best-match": "best-match";
|
|
139
|
+
comments: "comments";
|
|
140
|
+
reactions: "reactions";
|
|
141
|
+
}>>;
|
|
142
|
+
order: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
143
|
+
asc: "asc";
|
|
144
|
+
desc: "desc";
|
|
145
|
+
}>>;
|
|
146
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
147
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
148
|
+
archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
149
|
+
commentPage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
150
|
+
itemsPerPage: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
151
|
+
content: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
152
|
+
metadata: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
153
|
+
body: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
154
|
+
comments: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
155
|
+
discussion: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
156
|
+
includeBots: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
157
|
+
}, import("zod/v4/core").$strip>>;
|
|
158
|
+
}, import("zod/v4/core").$strip>>;
|
|
159
|
+
matchString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
160
|
+
commentBodyOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
161
|
+
charOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
162
|
+
charLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
163
|
+
minify: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
164
|
+
none: "none";
|
|
165
|
+
standard: "standard";
|
|
166
|
+
}>>;
|
|
167
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
168
|
+
mainResearchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
+
researchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
170
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
171
|
+
}, import("zod/v4/core").$strip>;
|
|
172
|
+
export declare const SearchIssuesBulkLocalSchema: import("zod").ZodObject<{
|
|
173
|
+
responseCharOffset: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
174
|
+
responseCharLength: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
175
|
+
queries: import("zod").ZodArray<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
176
|
+
}, import("zod/v4/core").$strip>;
|
|
177
|
+
export declare const SearchCommitsLocalSchema: import("zod").ZodObject<{
|
|
178
|
+
owner: import("zod").ZodString;
|
|
179
|
+
repo: import("zod").ZodString;
|
|
180
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
+
since: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
+
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
+
branch: import("zod").ZodOptional<import("zod").ZodString>;
|
|
184
|
+
author: import("zod").ZodOptional<import("zod").ZodString>;
|
|
185
|
+
committer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
186
|
+
base: import("zod").ZodOptional<import("zod").ZodString>;
|
|
187
|
+
head: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
|
+
itemsPerPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
189
|
+
includeDiff: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
190
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
191
|
+
filePage: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
192
|
+
charOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
193
|
+
charLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
194
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
195
|
+
mainResearchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
196
|
+
researchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
197
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
198
|
+
}, import("zod/v4/core").$strip>;
|
|
199
|
+
export declare const SearchCommitsBulkLocalSchema: import("zod").ZodObject<{
|
|
200
|
+
responseCharOffset: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
201
|
+
responseCharLength: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
202
|
+
queries: import("zod").ZodArray<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
203
|
+
}, import("zod/v4/core").$strip>;
|
|
204
|
+
export declare const ListReleasesLocalSchema: import("zod").ZodObject<{
|
|
205
|
+
owner: import("zod").ZodString;
|
|
206
|
+
repo: import("zod").ZodString;
|
|
207
|
+
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
208
|
+
itemsPerPage: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
209
|
+
includeAssets: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
210
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
211
|
+
mainResearchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
212
|
+
researchGoal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
213
|
+
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
214
|
+
}, import("zod/v4/core").$strip>;
|
|
215
|
+
export declare const ListReleasesBulkLocalSchema: import("zod").ZodObject<{
|
|
216
|
+
responseCharOffset: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
217
|
+
responseCharLength: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
218
|
+
queries: import("zod").ZodArray<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
219
|
+
}, import("zod/v4/core").$strip>;
|
|
@@ -2,14 +2,13 @@ import type { PaginationInfo } from '../../types/toolResults.js';
|
|
|
2
2
|
export interface GitHubPullRequestApiItem {
|
|
3
3
|
number: number;
|
|
4
4
|
title: string;
|
|
5
|
-
url: string;
|
|
6
5
|
state: 'open' | 'closed';
|
|
7
6
|
draft: boolean;
|
|
8
7
|
merged: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
closedAt?: string;
|
|
11
|
+
mergedAt?: string;
|
|
13
12
|
author: string;
|
|
14
13
|
assignees?: string[];
|
|
15
14
|
labels?: Array<{
|
|
@@ -18,12 +17,12 @@ export interface GitHubPullRequestApiItem {
|
|
|
18
17
|
color: string;
|
|
19
18
|
description?: string;
|
|
20
19
|
}>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
headRef: string;
|
|
21
|
+
headSha?: string;
|
|
22
|
+
baseRef: string;
|
|
23
|
+
baseSha?: string;
|
|
25
24
|
body?: string | null;
|
|
26
|
-
|
|
25
|
+
bodyPagination?: {
|
|
27
26
|
charOffset: number;
|
|
28
27
|
charLength: number;
|
|
29
28
|
totalChars: number;
|
|
@@ -31,25 +30,25 @@ export interface GitHubPullRequestApiItem {
|
|
|
31
30
|
nextCharOffset?: number;
|
|
32
31
|
};
|
|
33
32
|
comments?: number;
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
commentDetailsBreakdown?: {
|
|
34
|
+
inlineReview: number;
|
|
36
35
|
discussion: number;
|
|
37
36
|
};
|
|
38
37
|
commits?: number;
|
|
39
38
|
additions?: number;
|
|
40
39
|
deletions?: number;
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
changedFiles?: number;
|
|
41
|
+
commentDetails?: Array<{
|
|
43
42
|
id: string;
|
|
44
43
|
user: string;
|
|
45
44
|
body: string;
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
48
47
|
commentType?: 'discussion' | 'review_inline';
|
|
49
48
|
path?: string;
|
|
50
49
|
line?: number;
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
inReplyToId?: number | null;
|
|
51
|
+
bodyPagination?: {
|
|
53
52
|
charOffset: number;
|
|
54
53
|
charLength: number;
|
|
55
54
|
totalChars: number;
|
|
@@ -57,10 +56,10 @@ export interface GitHubPullRequestApiItem {
|
|
|
57
56
|
nextCharOffset?: number;
|
|
58
57
|
};
|
|
59
58
|
}>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
commentDetailsShown?: number;
|
|
60
|
+
commentDetailsTotal?: number;
|
|
61
|
+
commentDetailsPaginated?: boolean;
|
|
62
|
+
fileChanges?: Array<{
|
|
64
63
|
filename: string;
|
|
65
64
|
status: string;
|
|
66
65
|
additions: number;
|
|
@@ -73,10 +72,10 @@ export interface GitHubPullRequestApiItem {
|
|
|
73
72
|
user: string;
|
|
74
73
|
state: string;
|
|
75
74
|
body: string;
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
submittedAt?: string;
|
|
76
|
+
commitId?: string;
|
|
78
77
|
}>;
|
|
79
|
-
|
|
78
|
+
commitDetails?: Array<{
|
|
80
79
|
sha: string;
|
|
81
80
|
message: string;
|
|
82
81
|
author: string;
|
|
@@ -90,14 +89,14 @@ export interface GitHubPullRequestApiItem {
|
|
|
90
89
|
patch?: string;
|
|
91
90
|
}>;
|
|
92
91
|
}>;
|
|
93
|
-
|
|
92
|
+
sanitizationWarnings?: string[];
|
|
94
93
|
}
|
|
95
94
|
export interface GitHubPullRequestSearchApiData {
|
|
96
95
|
owner?: string;
|
|
97
96
|
repo?: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
pullRequests?: GitHubPullRequestApiItem[];
|
|
98
|
+
totalCount?: number;
|
|
99
|
+
incompleteResults?: boolean;
|
|
101
100
|
effectiveQuery?: string;
|
|
102
101
|
pagination?: PaginationInfo;
|
|
103
102
|
outputPagination?: {
|