@octocodeai/octocode-tools-core 18.3.0 → 19.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.
Files changed (242) hide show
  1. package/README.md +19 -19
  2. package/dist/chunks/direct/chunk-3AA4F3QO.js +10 -0
  3. package/dist/chunks/direct/chunk-43RVQWTG.js +8 -0
  4. package/dist/chunks/direct/chunk-7DYE654A.js +8 -0
  5. package/dist/chunks/direct/chunk-A4WMBDEC.js +8 -0
  6. package/dist/chunks/direct/chunk-AWZG43MA.js +8 -0
  7. package/dist/chunks/direct/chunk-BICVXQ5F.js +8 -0
  8. package/dist/chunks/direct/chunk-BMM5H6QF.js +11 -0
  9. package/dist/chunks/direct/chunk-C6HFNIDL.js +8 -0
  10. package/dist/chunks/direct/chunk-CBCZVCTZ.js +8 -0
  11. package/dist/chunks/direct/chunk-CBIKUVP6.js +11 -0
  12. package/dist/chunks/direct/chunk-CKB2ME2J.js +8 -0
  13. package/dist/chunks/direct/chunk-DBI23PBG.js +9 -0
  14. package/dist/chunks/direct/chunk-DBSQWRFS.js +9 -0
  15. package/dist/chunks/direct/chunk-DKGYPFGX.js +8 -0
  16. package/dist/chunks/direct/chunk-EOLHXX5I.js +8 -0
  17. package/dist/chunks/direct/chunk-IFPXDKUV.js +8 -0
  18. package/dist/chunks/direct/chunk-J3WYA3IJ.js +8 -0
  19. package/dist/chunks/direct/chunk-MCMOWPYL.js +8 -0
  20. package/dist/chunks/direct/chunk-MPTAIBY7.js +8 -0
  21. package/dist/chunks/direct/chunk-NQRDACK3.js +8 -0
  22. package/dist/chunks/direct/chunk-O5ETB2W5.js +8 -0
  23. package/dist/chunks/direct/chunk-OA6NU4KO.js +8 -0
  24. package/dist/chunks/direct/chunk-QKDE2HIF.js +10 -0
  25. package/dist/chunks/direct/chunk-RRSY2ZPX.js +13 -0
  26. package/dist/chunks/direct/chunk-UKQLRZEW.js +8 -0
  27. package/dist/chunks/direct/chunk-USZL65FN.js +8 -0
  28. package/dist/chunks/direct/chunk-WH6GL3J2.js +8 -0
  29. package/dist/chunks/direct/chunk-Y5OCKUQX.js +9 -0
  30. package/dist/chunks/direct/chunk-ZO44CZN5.js +8 -0
  31. package/dist/chunks/direct/chunk-ZSXRT7JL.js +12 -0
  32. package/dist/chunks/direct/chunk-ZUNPQVMO.js +8 -0
  33. package/dist/chunks/direct/execution-3T4B776P.js +9 -0
  34. package/dist/chunks/direct/execution-5BJNS7D7.js +8 -0
  35. package/dist/chunks/direct/execution-5O6QHKBR.js +8 -0
  36. package/dist/chunks/direct/execution-A4NK3BQO.js +8 -0
  37. package/dist/chunks/direct/execution-K4UOPXRQ.js +9 -0
  38. package/dist/chunks/direct/execution-SWWZOOA7.js +13 -0
  39. package/dist/chunks/direct/execution-X4MUJL4L.js +8 -0
  40. package/dist/chunks/direct/execution-XA6PXPRB.js +8 -0
  41. package/dist/chunks/direct/historyExecutions-6F3AA5PY.js +14 -0
  42. package/dist/direct.d.ts +6 -1
  43. package/dist/direct.js +2 -46
  44. package/dist/github/canonicalRepo.d.ts +2 -1
  45. package/dist/github/client.d.ts +3 -8
  46. package/dist/github/codeSearch/compactFragment.d.ts +7 -0
  47. package/dist/github/codeSearch.d.ts +2 -3
  48. package/dist/github/commit.d.ts +8 -0
  49. package/dist/github/commitDetail.d.ts +20 -0
  50. package/dist/github/commitSearch.d.ts +17 -0
  51. package/dist/github/compare.d.ts +15 -0
  52. package/dist/github/directoryFetch/cacheMetadata.d.ts +25 -0
  53. package/dist/github/directoryFetch/helpers.d.ts +1 -3
  54. package/dist/github/directoryFetch/snapshot.d.ts +10 -0
  55. package/dist/github/fileContentProcess.d.ts +0 -1
  56. package/dist/github/fileContentRaw/cache.d.ts +9 -0
  57. package/dist/github/fileContentRaw/fetch.d.ts +1 -1
  58. package/dist/github/githubAPI.d.ts +19 -2
  59. package/dist/github/history/commitFiles.d.ts +12 -0
  60. package/dist/github/issues/fetchers.d.ts +1 -1
  61. package/dist/github/issues/types.d.ts +3 -1
  62. package/dist/github/prContentFetcher/collectionPaging.d.ts +27 -0
  63. package/dist/github/prContentFetcher/comments.d.ts +7 -5
  64. package/dist/github/prContentFetcher/commits.d.ts +13 -14
  65. package/dist/github/prContentFetcher/flags.d.ts +0 -1
  66. package/dist/github/prContentFetcher/transform.d.ts +1 -1
  67. package/dist/github/prTransformation.d.ts +3 -1
  68. package/dist/github/queryBuilders/codeAndRepo.d.ts +2 -1
  69. package/dist/github/repoSearch.d.ts +2 -1
  70. package/dist/github/repoStructure/fetchOrchestration.d.ts +1 -1
  71. package/dist/github/repoStructurePagination.d.ts +1 -1
  72. package/dist/github/repoStructureTree.d.ts +4 -2
  73. package/dist/graph/advancedOperations.d.ts +2 -2
  74. package/dist/graph/buildFileGraph.d.ts +8 -13
  75. package/dist/graph/coverage.d.ts +6 -0
  76. package/dist/graph/diagnosticSnapshot.d.ts +10 -0
  77. package/dist/graph/fileImportLinker.d.ts +28 -0
  78. package/dist/graph/importResolver.d.ts +1 -1
  79. package/dist/graph/languageImportResolver.d.ts +5 -0
  80. package/dist/graph/metadataImports.d.ts +7 -0
  81. package/dist/graph/packageExportTargets.d.ts +11 -0
  82. package/dist/graph/rustCargoMetadata.d.ts +31 -0
  83. package/dist/graph/rustCargoProcess.d.ts +16 -0
  84. package/dist/graph/rustModules.d.ts +7 -0
  85. package/dist/graph/rustWorkspace.d.ts +5 -0
  86. package/dist/graph/types.d.ts +94 -3
  87. package/dist/graph/workspacePackageResolver.d.ts +7 -2
  88. package/dist/index.d.ts +46 -19
  89. package/dist/index.js +36 -45
  90. package/dist/providers/github/GitHubProvider.d.ts +3 -1
  91. package/dist/providers/github/githubContent.d.ts +3 -2
  92. package/dist/providers/github/githubPullRequests.d.ts +3 -2
  93. package/dist/providers/github/githubSearch.d.ts +6 -3
  94. package/dist/providers/github/githubStructure.d.ts +3 -2
  95. package/dist/providers/providerQueries.d.ts +4 -0
  96. package/dist/providers/providerResults.d.ts +29 -1
  97. package/dist/providers/types.d.ts +0 -2
  98. package/dist/schema.d.ts +9 -3
  99. package/dist/schema.js +4 -12
  100. package/dist/scheme/fields.d.ts +8 -8
  101. package/dist/scheme/pagination.d.ts +1 -0
  102. package/dist/serverConfig.d.ts +1 -1
  103. package/dist/shared/session/index.d.ts +1 -1
  104. package/dist/shared/session/index.js +1 -1
  105. package/dist/shared/session/storage.d.ts +0 -1
  106. package/dist/toolContract/descriptions.d.ts +6 -6
  107. package/dist/toolContract/input/resources/tools/ghSearch.d.ts +21 -20
  108. package/dist/toolContract/input/resources/tools/githubHistorySchema.d.ts +14 -6
  109. package/dist/toolContract/input/resources/tools/githubRepositoriesOperation.d.ts +3 -3
  110. package/dist/toolContract/input/resources/tools/githubTreeOperation.d.ts +4 -2
  111. package/dist/toolContract/input/resources/tools/historyCommitInput.d.ts +9 -0
  112. package/dist/toolContract/input/resources/tools/historyIssueInput.d.ts +4 -4
  113. package/dist/toolContract/input/resources/tools/historyPullRequestInput.d.ts +13 -5
  114. package/dist/toolContract/input/resources/tools/localAnalyzeGraph.d.ts +74 -32
  115. package/dist/toolContract/input/resources/tools/localFilesOperation.d.ts +1 -1
  116. package/dist/toolContract/input/resources/tools/localSearch.d.ts +43 -43
  117. package/dist/toolContract/input/resources/tools/localTextOperation.d.ts +1 -1
  118. package/dist/toolContract/input/resources/tools/localTreeOperation.d.ts +2 -2
  119. package/dist/toolContract/input/resources/tools/lspGetSemantics.d.ts +11 -2
  120. package/dist/toolContract/input/resources/tools/npmSearch.d.ts +2 -1
  121. package/dist/toolContract/metadata.d.ts +1 -1
  122. package/dist/toolContract/runtime.d.ts +1 -1
  123. package/dist/toolContract/types.d.ts +0 -1
  124. package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +2 -4
  125. package/dist/tools/directToolCatalog/toolInputPreparation.d.ts +2 -5
  126. package/dist/tools/directToolCatalog.exec.d.ts +10 -7
  127. package/dist/tools/github_clone_repo/cache.d.ts +0 -2
  128. package/dist/tools/github_clone_repo/cacheArtifacts.d.ts +3 -1
  129. package/dist/tools/github_clone_repo/cachePaths.d.ts +3 -2
  130. package/dist/tools/github_clone_repo/gitCheckout.d.ts +5 -0
  131. package/dist/tools/github_clone_repo/scheme.d.ts +3 -3
  132. package/dist/tools/github_clone_repo/types.d.ts +6 -1
  133. package/dist/tools/github_fetch_content/finalizer/types.d.ts +10 -2
  134. package/dist/tools/github_fetch_content/scheme.d.ts +3 -4
  135. package/dist/tools/github_fetch_content/types.d.ts +4 -3
  136. package/dist/tools/github_search/scheme.d.ts +24 -23
  137. package/dist/tools/github_search_code/execution.d.ts +1 -1
  138. package/dist/tools/github_search_code/finalizer/groups.d.ts +1 -1
  139. package/dist/tools/github_search_code/finalizer/ranking.d.ts +1 -1
  140. package/dist/tools/github_search_code/scheme.d.ts +3 -3
  141. package/dist/tools/github_search_pull_requests/contentResponse/commentsShaping.d.ts +4 -1
  142. package/dist/tools/github_search_pull_requests/contentResponse/contentView.d.ts +3 -0
  143. package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +30 -2
  144. package/dist/tools/github_search_pull_requests/contentResponse/nextCalls.d.ts +1 -7
  145. package/dist/tools/github_search_pull_requests/contentResponse/pagination.d.ts +14 -2
  146. package/dist/tools/github_search_pull_requests/historyContinuations.d.ts +1 -1
  147. package/dist/tools/github_search_pull_requests/historyDiffContinuations.d.ts +2 -0
  148. package/dist/tools/github_search_pull_requests/historySchemes.d.ts +23 -22
  149. package/dist/tools/github_search_pull_requests/scheme.d.ts +17 -9
  150. package/dist/tools/github_search_pull_requests/splitSchemes.d.ts +35 -26
  151. package/dist/tools/github_search_pull_requests/types.d.ts +5 -0
  152. package/dist/tools/github_search_repos/execution/pagination.d.ts +0 -17
  153. package/dist/tools/github_search_repos/execution/queryVariants.d.ts +1 -23
  154. package/dist/tools/github_search_repos/execution.d.ts +0 -1
  155. package/dist/tools/github_search_repos/scheme.d.ts +6 -6
  156. package/dist/tools/github_view_repo_structure/execution.d.ts +1 -1
  157. package/dist/tools/github_view_repo_structure/scheme.d.ts +6 -5
  158. package/dist/tools/local_analyze_graph/analysisTypes.d.ts +16 -3
  159. package/dist/tools/local_analyze_graph/analyzeGraph.d.ts +1 -1
  160. package/dist/tools/local_analyze_graph/completeness.d.ts +3 -0
  161. package/dist/tools/local_analyze_graph/deadCodeScan.d.ts +9 -5
  162. package/dist/tools/local_analyze_graph/rootInference.d.ts +2 -0
  163. package/dist/tools/local_analyze_graph/scheme.d.ts +13 -25
  164. package/dist/tools/local_fetch_content/fetchContent/pagination.d.ts +7 -0
  165. package/dist/tools/local_fetch_content/scheme.d.ts +3 -3
  166. package/dist/tools/local_find_files/findFiles.d.ts +1 -1
  167. package/dist/tools/local_find_files/scheme.d.ts +4 -4
  168. package/dist/tools/local_ripgrep/execution.d.ts +0 -1
  169. package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +1 -2
  170. package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +2 -2
  171. package/dist/tools/local_ripgrep/rankingProfile/rankingScoring.d.ts +1 -3
  172. package/dist/tools/local_ripgrep/ripgrepResultBuilder/buildResult.d.ts +0 -4
  173. package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +1 -0
  174. package/dist/tools/local_ripgrep/scheme.d.ts +13 -5
  175. package/dist/tools/local_ripgrep/structuralCompleteness.d.ts +9 -0
  176. package/dist/tools/local_search/execution.d.ts +0 -1
  177. package/dist/tools/local_search/scheme.d.ts +46 -46
  178. package/dist/tools/local_view_structure/scheme.d.ts +5 -5
  179. package/dist/tools/lsp/semantic_content/scheme.d.ts +29 -7
  180. package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +2 -9
  181. package/dist/tools/lsp/semantic_content/semanticEnvelopes/callEnvelopes.d.ts +2 -2
  182. package/dist/tools/lsp/semantic_content/semanticEnvelopes/envelopeHelpers.d.ts +2 -1
  183. package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +2 -3
  184. package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +0 -1
  185. package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +1 -0
  186. package/dist/tools/lsp/semantic_content/semanticSnapshot.d.ts +16 -0
  187. package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +2 -1
  188. package/dist/tools/lsp/shared/semanticTypes.d.ts +19 -10
  189. package/dist/tools/package_search/execution.d.ts +3 -4
  190. package/dist/tools/package_search/pagination.d.ts +1 -0
  191. package/dist/tools/package_search/scheme.d.ts +5 -4
  192. package/dist/tools/providerMappers/codeSearch.d.ts +2 -9
  193. package/dist/tools/providerMappers/fileContent.d.ts +1 -1
  194. package/dist/tools/providerMappers/pullRequests.d.ts +24 -4
  195. package/dist/tools/providerMappers/repoSearch.d.ts +4 -4
  196. package/dist/tools/providerMappers/repoStructure.d.ts +4 -3
  197. package/dist/tools/toolAvailability.d.ts +19 -0
  198. package/dist/tools/toolConfig.d.ts +1 -3
  199. package/dist/types/toolResults.d.ts +1 -0
  200. package/dist/utils/contextUtils.d.ts +1 -1
  201. package/dist/utils/core/types.d.ts +0 -2
  202. package/dist/utils/exec/npm.d.ts +2 -0
  203. package/dist/utils/file/byteOffset.d.ts +1 -1
  204. package/dist/utils/package/common.d.ts +0 -3
  205. package/dist/utils/package/npm/npmDeprecation.d.ts +1 -2
  206. package/dist/utils/package/npm/npmDetailsFetchers.d.ts +3 -15
  207. package/dist/utils/package/npm/npmMappers.d.ts +0 -4
  208. package/dist/utils/package/npm/npmRegistry.d.ts +9 -1
  209. package/dist/utils/package/npm/npmSearchStrategies.d.ts +2 -5
  210. package/dist/utils/package/types.d.ts +3 -0
  211. package/dist/utils/pagination/types.d.ts +1 -0
  212. package/dist/utils/response/callToolResult.d.ts +3 -1
  213. package/package.json +19 -15
  214. package/dist/errors/pathUtils.d.ts +0 -1
  215. package/dist/github/directoryFetch.d.ts +0 -3
  216. package/dist/github/fileContentRaw.d.ts +0 -2
  217. package/dist/github/issues.d.ts +0 -3
  218. package/dist/github/prContentFetcher.d.ts +0 -2
  219. package/dist/github/queryBuilders.d.ts +0 -4
  220. package/dist/github/repoStructure.d.ts +0 -1
  221. package/dist/shared/index.d.ts +0 -6
  222. package/dist/shared/languageSelectors.d.ts +0 -3
  223. package/dist/toolContract/schemas.d.ts +0 -31
  224. package/dist/tools/directToolCatalog.d.ts +0 -15
  225. package/dist/tools/directToolCatalog.meta.d.ts +0 -28
  226. package/dist/tools/github_search_code/finalizer.d.ts +0 -2
  227. package/dist/tools/github_search_repos/execution/ranking.d.ts +0 -4
  228. package/dist/tools/local_ripgrep/rankingProfile.d.ts +0 -35
  229. package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +0 -2
  230. package/dist/tools/lsp/semantic_content/index.d.ts +0 -3
  231. package/dist/tools/lsp/semantic_content/semanticEnvelopes.d.ts +0 -3
  232. package/dist/tools/lsp/semantic_content/semanticFileOps.d.ts +0 -8
  233. package/dist/tools/providerMappers.d.ts +0 -11
  234. package/dist/tools/toolMetadata/baseSchema.d.ts +0 -1
  235. package/dist/tools/toolMetadata/descriptions.d.ts +0 -1
  236. package/dist/tools/toolMetadata/proxies.d.ts +0 -4
  237. package/dist/tools/toolSchemaImports.d.ts +0 -16
  238. package/dist/utils/exec/spawn.d.ts +0 -2
  239. package/dist/utils/file/filters.d.ts +0 -2
  240. package/dist/utils/http/cache.d.ts +0 -5
  241. package/dist/utils/package/npm.d.ts +0 -2
  242. package/dist/utils/response/bulk.d.ts +0 -2
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GitHubSearchQuerySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
- path: z.ZodOptional<z.ZodString>;
4
3
  owner: z.ZodOptional<z.ZodString>;
5
4
  repo: z.ZodOptional<z.ZodString>;
6
- language: z.ZodOptional<z.ZodString>;
7
5
  goal: z.ZodOptional<z.ZodString>;
8
6
  reasoning: z.ZodOptional<z.ZodString>;
7
+ path: z.ZodOptional<z.ZodString>;
8
+ page: z.ZodDefault<z.ZodNumber>;
9
9
  keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
- extension: z.ZodOptional<z.ZodString>;
11
10
  filename: z.ZodOptional<z.ZodString>;
12
- page: z.ZodDefault<z.ZodNumber>;
11
+ extension: z.ZodOptional<z.ZodString>;
12
+ language: z.ZodOptional<z.ZodString>;
13
13
  concise: z.ZodOptional<z.ZodBoolean>;
14
14
  match: z.ZodDefault<z.ZodEnum<{
15
15
  file: "file";
@@ -18,62 +18,63 @@ export declare const GitHubSearchQuerySchema: z.ZodDiscriminatedUnion<[z.ZodObje
18
18
  pageSize: z.ZodDefault<z.ZodNumber>;
19
19
  operation: z.ZodLiteral<"code">;
20
20
  }, z.core.$strict>, z.ZodObject<{
21
+ owner: z.ZodOptional<z.ZodString>;
22
+ goal: z.ZodOptional<z.ZodString>;
23
+ reasoning: z.ZodOptional<z.ZodString>;
24
+ page: z.ZodDefault<z.ZodNumber>;
21
25
  sort: z.ZodDefault<z.ZodEnum<{
22
- updated: "updated";
23
- "best-match": "best-match";
24
26
  stars: "stars";
27
+ updated: "updated";
25
28
  forks: "forks";
26
29
  "help-wanted-issues": "help-wanted-issues";
30
+ "best-match": "best-match";
27
31
  }>>;
28
- owner: z.ZodOptional<z.ZodString>;
29
- language: z.ZodOptional<z.ZodString>;
30
- created: z.ZodOptional<z.ZodString>;
31
- updated: z.ZodOptional<z.ZodString>;
32
- goal: z.ZodOptional<z.ZodString>;
33
- reasoning: z.ZodOptional<z.ZodString>;
34
32
  keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- page: z.ZodDefault<z.ZodNumber>;
36
- concise: z.ZodOptional<z.ZodBoolean>;
33
+ language: z.ZodOptional<z.ZodString>;
37
34
  stars: z.ZodOptional<z.ZodString>;
38
- forks: z.ZodOptional<z.ZodString>;
39
- goodFirstIssues: z.ZodOptional<z.ZodString>;
40
35
  size: z.ZodOptional<z.ZodString>;
36
+ created: z.ZodOptional<z.ZodString>;
37
+ updated: z.ZodOptional<z.ZodString>;
41
38
  archived: z.ZodOptional<z.ZodBoolean>;
42
39
  visibility: z.ZodOptional<z.ZodEnum<{
43
40
  public: "public";
44
41
  private: "private";
45
42
  }>>;
43
+ forks: z.ZodOptional<z.ZodString>;
46
44
  license: z.ZodOptional<z.ZodString>;
45
+ goodFirstIssues: z.ZodOptional<z.ZodString>;
46
+ concise: z.ZodOptional<z.ZodBoolean>;
47
47
  topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
48
  pageSize: z.ZodDefault<z.ZodNumber>;
49
49
  match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
50
- name: "name";
51
50
  description: "description";
51
+ name: "name";
52
52
  readme: "readme";
53
53
  }>>>;
54
54
  operation: z.ZodLiteral<"repositories">;
55
55
  }, z.core.$strict>, z.ZodObject<{
56
- path: z.ZodOptional<z.ZodString>;
57
56
  owner: z.ZodString;
58
57
  repo: z.ZodString;
59
58
  branch: z.ZodOptional<z.ZodString>;
60
59
  goal: z.ZodOptional<z.ZodString>;
61
60
  reasoning: z.ZodOptional<z.ZodString>;
61
+ path: z.ZodOptional<z.ZodString>;
62
62
  page: z.ZodDefault<z.ZodNumber>;
63
+ metadataPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
63
64
  maxDepth: z.ZodOptional<z.ZodNumber>;
64
65
  include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
65
- sizes: "sizes";
66
- languages: "languages";
67
66
  contributors: "contributors";
68
67
  branches: "branches";
69
68
  tags: "tags";
69
+ languages: "languages";
70
+ sizes: "sizes";
70
71
  }>>>;
71
72
  operation: z.ZodLiteral<"tree">;
72
73
  pageSize: z.ZodDefault<z.ZodNumber>;
73
74
  }, z.core.$strict>], "operation">;
74
75
  export type GitHubSearchQuery = z.infer<typeof GitHubSearchQuerySchema>;
75
76
  export declare const GitHubSearchBulkQuerySchema: z.ZodObject<{
76
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
77
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
78
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
77
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
78
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
79
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
79
80
  }, z.core.$strict>;
@@ -1,6 +1,6 @@
1
1
  import type { CallToolResult } from '@modelcontextprotocol/server';
2
2
  import type { z } from 'zod';
3
- import type { GitHubCodeSearchQuerySchema } from '../../toolContract/schemas.js';
3
+ import type { GitHubCodeSearchQuerySchema } from '../../toolContract/input/resources/tools/githubCodeOperation.js';
4
4
  type GitHubCodeSearchQuery = z.infer<typeof GitHubCodeSearchQuerySchema>;
5
5
  import type { ToolExecutionArgs, WithOptionalMeta } from '../../types/execution.js';
6
6
  import type { ProcessedBulkResult } from '../../types/toolResults.js';
@@ -1,6 +1,6 @@
1
1
  import { type QueryWithPagination } from '../../../utils/response/groupedFinalizer.js';
2
2
  import type { ToolContinuation } from '../../../scheme/pagination.js';
3
- import { type CodeSearchGroupedMatch, type CodeSearchGroupedResult, type CodeSearchPagination } from '../../providerMappers.js';
3
+ import { type CodeSearchGroupedMatch, type CodeSearchGroupedResult, type CodeSearchPagination } from '../../providerMappers/codeSearch.js';
4
4
  export type PerQueryGroups = {
5
5
  index: number;
6
6
  groups: CodeSearchGroupedResult[];
@@ -1,7 +1,7 @@
1
1
  import type { FlatQueryResult } from '../../../types/toolResults.js';
2
2
  import { type QueryWithPagination } from '../../../utils/response/groupedFinalizer.js';
3
3
  import type { RepoState } from '../execution.js';
4
- import { type CodeSearchFlatResult, type CodeSearchGroupedResult } from '../../providerMappers.js';
4
+ import { type CodeSearchFlatResult, type CodeSearchGroupedResult } from '../../providerMappers/codeSearch.js';
5
5
  export declare function hasScopedGitHubQuery(emptyQueries: readonly {
6
6
  index: number;
7
7
  }[], queries: readonly QueryWithPagination[]): boolean;
@@ -20,9 +20,9 @@ export declare const GitHubCodeSearchQueryLocalSchema: z.ZodObject<{
20
20
  reasoning: z.ZodOptional<z.ZodString>;
21
21
  }, z.core.$strip>;
22
22
  export declare const GitHubCodeSearchBulkQueryLocalSchema: z.ZodObject<{
23
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
24
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
25
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
23
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
24
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
25
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
26
26
  }, z.core.$strict>;
27
27
  export interface CodeSearchPaginationLocal extends ItemPagination {
28
28
  totalMatchesKind?: 'exact' | 'reported' | 'lowerBound';
@@ -37,8 +37,12 @@ export declare function shapeComments(pr: Record<string, unknown>, query: QueryL
37
37
  };
38
38
  };
39
39
  export declare function shapeReviews(pr: Record<string, unknown>, query: QueryLike, request: NormalizedPrContentRequest): {
40
+ contentPagination?: undefined;
40
41
  reviews?: undefined;
41
42
  } | {
43
+ contentPagination: {
44
+ reviews: import("./pagination.js").Pagination;
45
+ };
42
46
  reviews: {
43
47
  submittedAt: unknown;
44
48
  commitId: unknown;
@@ -60,7 +64,6 @@ export declare function shapeCommits(pr: Record<string, unknown>, query: QueryLi
60
64
  contentPagination?: undefined;
61
65
  } | {
62
66
  commits: {
63
- files?: any[];
64
67
  sha: unknown;
65
68
  message: unknown;
66
69
  author: unknown;
@@ -0,0 +1,3 @@
1
+ import type { QueryLike } from './pagination.js';
2
+ export declare function historyBodyView(body: string, query: QueryLike): string;
3
+ export declare function historyPatchView(patch: string, query: QueryLike): string;
@@ -3,19 +3,47 @@ import { type QueryLike } from './pagination.js';
3
3
  export declare function filePathOf(change: Record<string, unknown>): string;
4
4
  export declare function shapeFileChange(change: Record<string, unknown>, includePatch: boolean): {
5
5
  patch?: string;
6
+ isPartial?: undefined;
7
+ terminalLimit?: undefined;
8
+ patchUnavailable?: undefined;
9
+ path: string;
10
+ status: string;
11
+ additions: number;
12
+ deletions: number;
13
+ } | {
14
+ patch?: string;
15
+ isPartial: true;
16
+ terminalLimit: true;
17
+ patchUnavailable: {
18
+ reason: "providerOmittedPatch";
19
+ };
6
20
  path: string;
7
21
  status: string;
8
22
  additions: number;
9
23
  deletions: number;
10
24
  };
11
25
  export declare function shapeFileSurfaces(pr: Record<string, unknown>, query: QueryLike, request: NormalizedPrContentRequest): {
12
- changedFiles: {
26
+ changedFiles: ({
13
27
  patch?: string;
28
+ isPartial?: undefined;
29
+ terminalLimit?: undefined;
30
+ patchUnavailable?: undefined;
31
+ path: string;
32
+ status: string;
33
+ additions: number;
34
+ deletions: number;
35
+ } | {
36
+ patch?: string;
37
+ isPartial: true;
38
+ terminalLimit: true;
39
+ patchUnavailable: {
40
+ reason: "providerOmittedPatch";
41
+ };
14
42
  path: string;
15
43
  status: string;
16
44
  additions: number;
17
45
  deletions: number;
18
- }[];
46
+ })[];
19
47
  contentPagination: {
20
48
  changedFiles: import("./pagination.js").Pagination;
21
49
  filePaths?: undefined;
@@ -5,14 +5,8 @@ export declare function nextCalls(query: QueryLike, prNumber: number, request: N
5
5
  getCommits?: Record<string, unknown>;
6
6
  getReviews?: Record<string, unknown>;
7
7
  getComments?: Record<string, unknown>;
8
- getSelectedPatches?: Record<string, unknown>;
9
8
  getAllPatches?: Record<string, unknown>;
9
+ getSelectedPatches?: Record<string, unknown>;
10
10
  getChangedFiles?: Record<string, unknown>;
11
11
  getBody?: Record<string, unknown>;
12
- target: {
13
- operation: string;
14
- owner: string;
15
- repo: string;
16
- number: number;
17
- };
18
12
  };
@@ -1,3 +1,4 @@
1
+ import type { CollectionPages } from '../../../github/prContentFetcher/collectionPaging.js';
1
2
  export type QueryLike = {
2
3
  owner?: string;
3
4
  repo?: string;
@@ -6,17 +7,23 @@ export type QueryLike = {
6
7
  filePage?: number;
7
8
  commentPage?: number;
8
9
  commitPage?: number;
10
+ reviewPage?: number;
11
+ collectionPages?: CollectionPages;
9
12
  pageSize?: number;
10
13
  charOffset?: number;
11
14
  commentBodyOffset?: number;
12
15
  charLength?: number;
13
16
  matchString?: string;
17
+ minify?: 'none' | 'standard';
14
18
  content?: Record<string, unknown>;
15
19
  type?: string;
16
20
  };
17
21
  export declare function matchStringNeedle(query: QueryLike): string | undefined;
18
22
  export declare function containsNeedle(value: unknown, needle: string): boolean;
19
23
  export type Pagination = {
24
+ collectionPages?: CollectionPages;
25
+ nextCollectionPages?: CollectionPages;
26
+ countScope?: 'providerBatch';
20
27
  currentPage: number;
21
28
  totalPages: number;
22
29
  itemsPerPage: number;
@@ -40,11 +47,16 @@ export type ContentPaginationEntry = Record<string, unknown> & {
40
47
  hasMore: boolean;
41
48
  nextQuery?: Record<string, unknown>;
42
49
  };
43
- export type ContentPagination = Partial<Record<'body' | 'changedFiles' | 'comments' | 'commentBody' | 'commits' | 'patches' | 'filePaths', ContentPaginationEntry>>;
50
+ export type ContentPagination = Partial<Record<'body' | 'changedFiles' | 'comments' | 'commentBody' | 'reviews' | 'reviewBody' | 'commits' | 'patches' | 'filePaths', ContentPaginationEntry>>;
44
51
  export declare function paginateItems<T>(items: T[], page?: number, itemsPerPage?: number): {
45
52
  items: T[];
46
53
  pagination: Pagination;
47
54
  };
55
+ /** Paginate a bounded provider batch, including an executable advance for empty filtered batches. */
56
+ export declare function paginateCollection<T>(items: T[], query: QueryLike, pr: Record<string, unknown>, axis: 'changedFiles' | 'comments' | 'reviews' | 'commits', page?: number): {
57
+ items: T[];
58
+ pagination: Pagination;
59
+ };
48
60
  export declare function paginateText(value: string | undefined, charOffset?: number, charLength?: number): {
49
61
  content: string;
50
62
  pagination: {
@@ -64,7 +76,7 @@ export declare function baseQuery(query: QueryLike, prNumber: number): {
64
76
  };
65
77
  export declare function continuationQuery(query: QueryLike, prNumber: number, patch: Record<string, unknown>): Record<string, unknown>;
66
78
  export declare function textContinuationQuery(query: QueryLike, prNumber: number, content: Record<string, unknown>, pagination: TextPagination, extra?: Record<string, unknown>): Record<string, unknown> | undefined;
67
- export declare function pageContinuationQuery(query: QueryLike, prNumber: number, content: Record<string, unknown>, pageKey: 'filePage' | 'commentPage' | 'commitPage', pagination: Pagination): Record<string, unknown> | undefined;
79
+ export declare function pageContinuationQuery(query: QueryLike, prNumber: number, content: Record<string, unknown>, pageKey: 'filePage' | 'commentPage' | 'commitPage' | 'reviewPage', pagination: Pagination): Record<string, unknown> | undefined;
68
80
  export declare function isRecord(value: unknown): value is Record<string, unknown>;
69
81
  export declare function readPagination(value: unknown): Pagination | undefined;
70
82
  export declare function readTextPagination(value: unknown): TextPagination | undefined;
@@ -8,7 +8,7 @@ export declare function publicCommitContinuationQuery(query: QueryRecord, patch?
8
8
  declare const SEARCH_FIELDS: {
9
9
  readonly pullRequests: readonly ["keywords", "owner", "repo", "concise", "state", "assignee", "author", "commenter", "mentions", "review-requested", "reviewed-by", "label", "checks", "review", "head", "base", "created", "updated", "closed", "merged-at", "comments", "reactions", "draft", "match", "sort", "order", "archived", "minify", "pageSize"];
10
10
  readonly issues: readonly ["owner", "repo", "keywords", "concise", "state", "author", "assignee", "commenter", "mentions", "label", "created", "updated", "closed", "comments", "reactions", "match", "sort", "order", "archived", "minify", "pageSize"];
11
- readonly commits: readonly ["owner", "repo", "path", "since", "until", "branch", "author", "committer", "pageSize"];
11
+ readonly commits: readonly ["keywords", "owner", "repo", "path", "since", "until", "branch", "author", "committer", "pageSize"];
12
12
  };
13
13
  /** Build one runnable next-page query without executor-only transport fields. */
14
14
  export declare function publicSearchContinuationQuery(query: QueryRecord, operation: keyof typeof SEARCH_FIELDS, page: number): QueryRecord;
@@ -0,0 +1,2 @@
1
+ /** Advance file and patch axes independently so finishing one file never skips another. */
2
+ export declare function withDiffContinuations(data: Record<string, unknown>, query: Record<string, unknown>): Record<string, unknown>;
@@ -7,52 +7,53 @@ export declare const GitHubSearchHistoryQueryLocalSchema: z.ZodDiscriminatedUnio
7
7
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
8
8
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
9
9
  operation: z.ZodLiteral<"issues">;
10
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
11
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
10
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
11
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
12
12
  }, z.core.$strict>, z.ZodObject<{
13
13
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
14
14
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
15
15
  operation: z.ZodLiteral<"commits">;
16
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
17
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
16
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
17
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
18
18
  }, z.core.$strict>], "operation">;
19
19
  export declare const GitHubSearchHistoryBulkQueryLocalSchema: z.ZodObject<{
20
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
21
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
22
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
20
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
21
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
22
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
23
23
  }, z.core.$strict>;
24
24
  export declare const GitHubGetHistoryItemQueryLocalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
25
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
26
26
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
27
27
  operation: z.ZodLiteral<"pullRequest">;
28
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
29
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
30
- number: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
28
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
29
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
30
+ number: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
31
31
  }, z.core.$strict>, z.ZodObject<{
32
32
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
33
33
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
34
34
  operation: z.ZodLiteral<"issue">;
35
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
36
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
37
- number: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
35
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
36
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
37
+ number: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
38
38
  }, z.core.$strict>, z.ZodObject<{
39
39
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
40
40
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
41
41
  operation: z.ZodLiteral<"commit">;
42
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
43
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
42
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
43
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
44
44
  ref: z.ZodString;
45
+ fileBatch: z.ZodOptional<z.ZodNumber>;
45
46
  }, z.core.$strict>, z.ZodObject<{
46
47
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
47
48
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
48
- base: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
49
- head: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
49
+ base: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
50
+ head: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
50
51
  operation: z.ZodLiteral<"compare">;
51
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
52
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
52
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
53
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
53
54
  }, z.core.$strict>], "operation">;
54
55
  export declare const GitHubGetHistoryItemBulkQueryLocalSchema: z.ZodObject<{
55
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
56
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
57
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
56
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
57
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
58
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
58
59
  }, z.core.$strict>;
@@ -3,8 +3,8 @@ import type { ToolContinuation } from '../../scheme/pagination.js';
3
3
  import type { ResponsePaginationInfo } from '../../types/toolOutput.js';
4
4
  export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
5
5
  type: z.ZodDefault<z.ZodEnum<{
6
- prs: "prs";
7
6
  commits: "commits";
7
+ prs: "prs";
8
8
  }>>;
9
9
  since: z.ZodOptional<z.ZodString>;
10
10
  until: z.ZodOptional<z.ZodString>;
@@ -19,8 +19,8 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
19
19
  repo: z.ZodOptional<z.ZodString>;
20
20
  concise: z.ZodOptional<z.ZodBoolean>;
21
21
  state: z.ZodOptional<z.ZodEnum<{
22
- open: "open";
23
22
  closed: "closed";
23
+ open: "open";
24
24
  merged: "merged";
25
25
  }>>;
26
26
  assignee: z.ZodOptional<z.ZodString>;
@@ -52,16 +52,16 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
52
52
  reactions: z.ZodOptional<z.ZodString>;
53
53
  draft: z.ZodOptional<z.ZodBoolean>;
54
54
  match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
55
- body: "body";
56
55
  title: "title";
57
56
  comments: "comments";
57
+ body: "body";
58
58
  }>>>;
59
59
  sort: z.ZodOptional<z.ZodEnum<{
60
- comments: "comments";
61
- reactions: "reactions";
62
60
  created: "created";
63
61
  updated: "updated";
64
62
  "best-match": "best-match";
63
+ comments: "comments";
64
+ reactions: "reactions";
65
65
  }>>;
66
66
  order: z.ZodOptional<z.ZodEnum<{
67
67
  asc: "asc";
@@ -73,6 +73,14 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
73
73
  filePage: z.ZodOptional<z.ZodNumber>;
74
74
  commentPage: z.ZodOptional<z.ZodNumber>;
75
75
  commitPage: z.ZodOptional<z.ZodNumber>;
76
+ reviewPage: z.ZodOptional<z.ZodNumber>;
77
+ collectionPages: z.ZodOptional<z.ZodObject<{
78
+ changedFiles: z.ZodOptional<z.ZodNumber>;
79
+ discussion: z.ZodOptional<z.ZodNumber>;
80
+ inline: z.ZodOptional<z.ZodNumber>;
81
+ reviews: z.ZodOptional<z.ZodNumber>;
82
+ commits: z.ZodOptional<z.ZodNumber>;
83
+ }, z.core.$strict>>;
76
84
  reviewMode: z.ZodOptional<z.ZodLiteral<"full">>;
77
85
  content: z.ZodOptional<z.ZodObject<{
78
86
  metadata: z.ZodOptional<z.ZodBoolean>;
@@ -81,8 +89,8 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
81
89
  patches: z.ZodOptional<z.ZodObject<{
82
90
  mode: z.ZodDefault<z.ZodEnum<{
83
91
  none: "none";
84
- selected: "selected";
85
92
  all: "all";
93
+ selected: "selected";
86
94
  }>>;
87
95
  files: z.ZodOptional<z.ZodArray<z.ZodString>>;
88
96
  ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -115,9 +123,9 @@ export declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{
115
123
  reasoning: z.ZodOptional<z.ZodString>;
116
124
  }, z.core.$strip>;
117
125
  export declare const GitHubPullRequestSearchBulkQueryLocalSchema: z.ZodObject<{
118
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
119
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
120
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
126
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
127
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
128
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
121
129
  }, z.core.$strict>;
122
130
  export interface PRChangedFile {
123
131
  path?: string;
@@ -6,8 +6,8 @@ export declare const SearchPullRequestsLocalSchema: z.ZodObject<{
6
6
  repo: z.ZodOptional<z.ZodString>;
7
7
  concise: z.ZodOptional<z.ZodBoolean>;
8
8
  state: z.ZodOptional<z.ZodEnum<{
9
- open: "open";
10
9
  closed: "closed";
10
+ open: "open";
11
11
  merged: "merged";
12
12
  }>>;
13
13
  assignee: z.ZodOptional<z.ZodString>;
@@ -38,16 +38,16 @@ export declare const SearchPullRequestsLocalSchema: z.ZodObject<{
38
38
  reactions: z.ZodOptional<z.ZodString>;
39
39
  draft: z.ZodOptional<z.ZodBoolean>;
40
40
  match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
41
- body: "body";
42
41
  title: "title";
43
42
  comments: "comments";
43
+ body: "body";
44
44
  }>>>;
45
45
  sort: z.ZodOptional<z.ZodEnum<{
46
- comments: "comments";
47
- reactions: "reactions";
48
46
  created: "created";
49
47
  updated: "updated";
50
48
  "best-match": "best-match";
49
+ comments: "comments";
50
+ reactions: "reactions";
51
51
  }>>;
52
52
  order: z.ZodOptional<z.ZodEnum<{
53
53
  asc: "asc";
@@ -59,13 +59,21 @@ export declare const SearchPullRequestsLocalSchema: z.ZodObject<{
59
59
  filePage: z.ZodOptional<z.ZodNumber>;
60
60
  commentPage: z.ZodOptional<z.ZodNumber>;
61
61
  commitPage: z.ZodOptional<z.ZodNumber>;
62
+ reviewPage: z.ZodOptional<z.ZodNumber>;
63
+ collectionPages: z.ZodOptional<z.ZodObject<{
64
+ changedFiles: z.ZodOptional<z.ZodNumber>;
65
+ discussion: z.ZodOptional<z.ZodNumber>;
66
+ inline: z.ZodOptional<z.ZodNumber>;
67
+ reviews: z.ZodOptional<z.ZodNumber>;
68
+ commits: z.ZodOptional<z.ZodNumber>;
69
+ }, z.core.$strict>>;
62
70
  content: z.ZodOptional<z.ZodObject<{
63
71
  body: z.ZodOptional<z.ZodLiteral<true>>;
64
72
  changedFiles: z.ZodOptional<z.ZodLiteral<true>>;
65
73
  patches: z.ZodOptional<z.ZodObject<{
66
74
  mode: z.ZodEnum<{
67
- selected: "selected";
68
75
  all: "all";
76
+ selected: "selected";
69
77
  }>;
70
78
  files: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
79
  ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -103,18 +111,18 @@ export declare const PullRequestListQueryShape: z.ZodObject<{
103
111
  export declare const PullRequestDetailQueryShape: z.ZodObject<{
104
112
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
105
113
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
106
- owner: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
107
- repo: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
108
- prNumber: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
114
+ owner: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
115
+ repo: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
116
+ prNumber: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
109
117
  content: z.ZodOptional<z.ZodObject<{
110
118
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
111
119
  patches: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
112
120
  mode: z.ZodLiteral<"selected">;
113
121
  files: z.ZodArray<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
114
- ranges: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
122
+ ranges: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
115
123
  }, z.core.$strict>, z.ZodObject<{
116
124
  mode: z.ZodLiteral<"selected">;
117
- files: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
125
+ files: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
118
126
  ranges: z.ZodArray<z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
119
127
  }, z.core.$strict>, z.ZodObject<{
120
128
  mode: z.ZodLiteral<"all">;
@@ -122,9 +130,9 @@ export declare const PullRequestDetailQueryShape: z.ZodObject<{
122
130
  }, z.core.$strip>>;
123
131
  }, z.core.$strip>;
124
132
  export declare const SearchPullRequestsBulkLocalSchema: z.ZodObject<{
125
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
126
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
127
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
133
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
134
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
135
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
128
136
  }, z.core.$strict>;
129
137
  export declare const SearchIssuesLocalSchema: z.ZodObject<{
130
138
  owner: z.ZodString;
@@ -133,8 +141,8 @@ export declare const SearchIssuesLocalSchema: z.ZodObject<{
133
141
  issueNumber: z.ZodOptional<z.ZodNumber>;
134
142
  concise: z.ZodOptional<z.ZodBoolean>;
135
143
  state: z.ZodOptional<z.ZodEnum<{
136
- open: "open";
137
144
  closed: "closed";
145
+ open: "open";
138
146
  }>>;
139
147
  assignee: z.ZodOptional<z.ZodString>;
140
148
  author: z.ZodOptional<z.ZodString>;
@@ -147,16 +155,16 @@ export declare const SearchIssuesLocalSchema: z.ZodObject<{
147
155
  comments: z.ZodOptional<z.ZodString>;
148
156
  reactions: z.ZodOptional<z.ZodString>;
149
157
  match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
150
- body: "body";
151
158
  title: "title";
152
159
  comments: "comments";
160
+ body: "body";
153
161
  }>>>;
154
162
  sort: z.ZodOptional<z.ZodEnum<{
155
- comments: "comments";
156
- reactions: "reactions";
157
163
  created: "created";
158
164
  updated: "updated";
159
165
  "best-match": "best-match";
166
+ comments: "comments";
167
+ reactions: "reactions";
160
168
  }>>;
161
169
  order: z.ZodOptional<z.ZodEnum<{
162
170
  asc: "asc";
@@ -191,16 +199,17 @@ export declare const IssueListQueryShape: z.ZodObject<{
191
199
  export declare const IssueDetailQueryShape: z.ZodObject<{
192
200
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
193
201
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
194
- issueNumber: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
202
+ issueNumber: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
195
203
  }, z.core.$strip>;
196
204
  export declare const SearchIssuesBulkLocalSchema: z.ZodObject<{
197
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
198
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
199
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
205
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
206
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
207
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
200
208
  }, z.core.$strict>;
201
209
  export declare const SearchCommitsLocalSchema: z.ZodObject<{
202
210
  owner: z.ZodString;
203
211
  repo: z.ZodString;
212
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
213
  path: z.ZodOptional<z.ZodString>;
205
214
  since: z.ZodOptional<z.ZodString>;
206
215
  until: z.ZodOptional<z.ZodString>;
@@ -225,11 +234,11 @@ export declare const CommitHistoryQueryShape: z.ZodObject<{
225
234
  export declare const CommitCompareQueryShape: z.ZodObject<{
226
235
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
227
236
  readonly [x: number]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
228
- base: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
229
- head: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
237
+ base: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
238
+ head: z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
230
239
  }, z.core.$strip>;
231
240
  export declare const SearchCommitsBulkLocalSchema: z.ZodObject<{
232
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
233
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
234
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
241
+ responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
242
+ responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
243
+ queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
235
244
  }, z.core.$strict>;
@@ -1,5 +1,9 @@
1
+ import type { CollectionStates } from '../../github/prContentFetcher/collectionPaging.js';
1
2
  import type { PaginationInfo } from '../../types/toolResults.js';
3
+ import type { PRProviderLimit } from '../../github/githubAPI.js';
2
4
  export interface GitHubPullRequestApiItem {
5
+ collectionStates?: CollectionStates;
6
+ providerLimits?: PRProviderLimit[];
3
7
  number: number;
4
8
  title: string;
5
9
  state: 'open' | 'closed';
@@ -76,6 +80,7 @@ export interface GitHubPullRequestApiItem {
76
80
  commitId?: string;
77
81
  }>;
78
82
  commitDetails?: Array<{
83
+ filesCollectionState?: import('../../github/prContentFetcher/collectionPaging.js').CollectionState;
79
84
  sha: string;
80
85
  message: string;
81
86
  author: string;