@octocodeai/octocode-tools-core 18.2.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 +2 -2
  116. package/dist/toolContract/input/resources/tools/localSearch.d.ts +44 -44
  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 +47 -47
  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 +23 -19
  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,4 +1,6 @@
1
- import type { ICodeHostProvider, ProviderConfig, ProviderResponse, CodeSearchQuery, CodeSearchResult, FileContentQuery, FileContentResult, RepoSearchQuery, RepoSearchResult, PullRequestQuery, PullRequestSearchResult, RepoStructureQuery, RepoStructureResult } from '../types.js';
1
+ import type { ICodeHostProvider, ProviderConfig, ProviderResponse } from '../types.js';
2
+ import type { CodeSearchQuery, FileContentQuery, RepoSearchQuery, PullRequestQuery, RepoStructureQuery } from '../providerQueries.js';
3
+ import type { CodeSearchResult, FileContentResult, RepoSearchResult, PullRequestSearchResult, RepoStructureResult } from '../providerResults.js';
2
4
  export declare class GitHubProvider implements ICodeHostProvider {
3
5
  readonly type: "github";
4
6
  readonly capabilities: import("../types.js").ProviderCapabilities;
@@ -1,7 +1,8 @@
1
1
  import type { AuthInfo } from '@modelcontextprotocol/server';
2
- import type { ProviderResponse, FileContentQuery, FileContentResult } from '../types.js';
2
+ import type { ProviderResponse } from '../types.js';
3
+ import type { FileContentQuery } from '../providerQueries.js';
4
+ import type { FileContentResult } from '../providerResults.js';
3
5
  import type { GitHubFileContentApiData } from '../../tools/github_fetch_content/types.js';
4
- export { parseGitHubProjectId } from './utils.js';
5
6
  export declare function transformFileContentResult(data: GitHubFileContentApiData, query: FileContentQuery): FileContentResult;
6
7
  export declare function getFileContent(query: FileContentQuery, authInfo?: AuthInfo, parseProjectId?: (projectId?: string) => {
7
8
  owner?: string;
@@ -1,8 +1,9 @@
1
1
  import type { AuthInfo } from '@modelcontextprotocol/server';
2
- import type { ProviderResponse, PullRequestQuery, PullRequestSearchResult } from '../types.js';
2
+ import type { ProviderResponse } from '../types.js';
3
+ import type { PullRequestQuery } from '../providerQueries.js';
4
+ import type { PullRequestSearchResult } from '../providerResults.js';
3
5
  import type { GitHubPullRequestsSearchParams } from '../../github/githubAPI.js';
4
6
  import type { GitHubPullRequestSearchApiData } from '../../tools/github_search_pull_requests/types.js';
5
- export { parseGitHubProjectId } from './utils.js';
6
7
  export declare function transformPullRequestResult(data: GitHubPullRequestSearchApiData, query: PullRequestQuery, parseProjectId?: (projectId?: string) => {
7
8
  owner?: string;
8
9
  repo?: string;
@@ -1,10 +1,13 @@
1
1
  import type { AuthInfo } from '@modelcontextprotocol/server';
2
- import type { ProviderResponse, CodeSearchQuery, CodeSearchResult, RepoSearchQuery, RepoSearchResult } from '../types.js';
2
+ import type { ProviderResponse } from '../types.js';
3
+ import type { CodeSearchQuery, RepoSearchQuery } from '../providerQueries.js';
4
+ import type { CodeSearchResult, RepoSearchResult } from '../providerResults.js';
3
5
  import type { GitHubSearchRepositoriesData } from '@octocodeai/octocode-core/extra-types';
4
6
  import type { OptimizedCodeSearchResult } from '../../github/githubAPI.js';
5
- export { parseGitHubProjectId } from './utils.js';
6
7
  export declare function transformCodeSearchResult(data: OptimizedCodeSearchResult): CodeSearchResult;
7
- export declare function transformRepoSearchResult(data: GitHubSearchRepositoriesData): RepoSearchResult;
8
+ export declare function transformRepoSearchResult(data: GitHubSearchRepositoriesData & {
9
+ incompleteResults?: boolean;
10
+ }): RepoSearchResult;
8
11
  export declare function searchCode(query: CodeSearchQuery, authInfo?: AuthInfo, parseProjectId?: (projectId?: string) => {
9
12
  owner?: string;
10
13
  repo?: string;
@@ -1,7 +1,8 @@
1
1
  import type { AuthInfo } from '@modelcontextprotocol/server';
2
- import type { ProviderResponse, RepoStructureQuery, RepoStructureResult } from '../types.js';
2
+ import type { ProviderResponse } from '../types.js';
3
+ import type { RepoStructureQuery } from '../providerQueries.js';
4
+ import type { RepoStructureResult } from '../providerResults.js';
3
5
  import type { GitHubRepositoryStructureResult } from '../../tools/github_view_repo_structure/types.js';
4
- export { parseGitHubProjectId } from './utils.js';
5
6
  export declare function transformRepoStructureResult(data: GitHubRepositoryStructureResult): RepoStructureResult;
6
7
  export declare function getRepoStructure(query: RepoStructureQuery, authInfo?: AuthInfo, parseProjectId?: (projectId?: string) => {
7
8
  owner?: string;
@@ -1,3 +1,4 @@
1
+ import type { CollectionPages } from '../github/prContentFetcher/collectionPaging.js';
1
2
  type ProviderType = 'github';
2
3
  interface BaseProviderQuery {
3
4
  provider?: ProviderType;
@@ -98,6 +99,8 @@ export interface PullRequestQuery extends BaseProviderQuery {
98
99
  filePage?: number;
99
100
  commentPage?: number;
100
101
  commitPage?: number;
102
+ reviewPage?: number;
103
+ collectionPages?: CollectionPages;
101
104
  itemsPerPage?: number;
102
105
  sort?: 'created' | 'updated' | 'best-match' | 'comments' | 'reactions';
103
106
  order?: 'asc' | 'desc';
@@ -119,5 +122,6 @@ export interface RepoStructureQuery extends BaseProviderQuery {
119
122
  includeContributors?: boolean;
120
123
  includeBranches?: boolean;
121
124
  includeTags?: boolean;
125
+ metadataPage?: number;
122
126
  }
123
127
  export {};
@@ -1,4 +1,6 @@
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 UnifiedRepository {
3
5
  id: string;
4
6
  name: string;
@@ -17,6 +19,8 @@ export interface UnifiedRepository {
17
19
  openIssuesCount?: number;
18
20
  archived?: boolean;
19
21
  language?: string;
22
+ license?: string;
23
+ homepage?: string;
20
24
  }
21
25
  export interface CodeSearchItem {
22
26
  path: string;
@@ -54,6 +58,9 @@ export interface FileContentResult {
54
58
  sourceChars?: number;
55
59
  sourceBytes?: number;
56
60
  contentView?: 'none' | 'standard' | 'symbols';
61
+ errorCode?: 'contentSecurityLimit';
62
+ terminalLimit?: boolean;
63
+ partialReasons?: Array<'security-selected-view-size-limit'>;
57
64
  ref: string;
58
65
  lastModified?: string;
59
66
  lastModifiedBy?: string;
@@ -74,11 +81,13 @@ export interface FileContentResult {
74
81
  }
75
82
  export interface RepoSearchResult {
76
83
  repositories: UnifiedRepository[];
84
+ incompleteResults?: boolean;
77
85
  totalCount: number;
78
86
  pagination: PaginationInfo;
79
87
  nonExistentScope?: boolean;
80
88
  }
81
89
  export interface PullRequestItem {
90
+ collectionStates?: CollectionStates;
82
91
  number: number;
83
92
  title: string;
84
93
  body: string | null;
@@ -133,11 +142,21 @@ export interface PullRequestItem {
133
142
  commitId?: string;
134
143
  }>;
135
144
  commits?: Array<{
145
+ filesCollectionState?: import('../github/prContentFetcher/collectionPaging.js').CollectionState;
136
146
  sha: string;
137
147
  message: string;
138
148
  author: string;
139
149
  date: string;
150
+ files?: Array<{
151
+ filename: string;
152
+ status: string;
153
+ additions: number;
154
+ deletions: number;
155
+ changes?: number;
156
+ patch?: string;
157
+ }>;
140
158
  }>;
159
+ providerLimits?: PRProviderLimit[];
141
160
  fileChanges?: Array<{
142
161
  path: string;
143
162
  status: string;
@@ -150,6 +169,7 @@ export interface PullRequestItem {
150
169
  export interface PullRequestSearchResult {
151
170
  items: PullRequestItem[];
152
171
  totalCount: number;
172
+ incompleteResults?: boolean;
153
173
  pagination: PaginationInfo;
154
174
  /**
155
175
  * The exact search-qualifier string sent to the provider's search API
@@ -184,5 +204,13 @@ export interface RepoStructureResult {
184
204
  hints?: string[];
185
205
  isPartial?: boolean;
186
206
  terminalLimit?: boolean;
187
- partialReasons?: Array<'providerTreeTruncated' | 'partialTreeFailures'>;
207
+ partialReasons?: Array<'providerTreeTruncated' | 'partialTreeFailures' | 'metadataPagination' | 'metadataFetchFailed' | 'metadataPageLimit'>;
208
+ metadataPagination?: Partial<Record<'contributors' | 'branches' | 'tags' | 'languages', {
209
+ currentPage: number;
210
+ perPage: number;
211
+ returned: number;
212
+ hasMore: boolean;
213
+ failed?: boolean;
214
+ terminalLimit?: boolean;
215
+ }>>;
188
216
  }
@@ -1,6 +1,4 @@
1
1
  import type { AuthInfo } from '@modelcontextprotocol/server';
2
- export type { CodeSearchQuery, FileContentQuery, RepoSearchQuery, PullRequestQuery, RepoStructureQuery, } from './providerQueries.js';
3
- export type { UnifiedRepository, CodeSearchItem, CodeSearchResult, FileContentResult, RepoSearchResult, PullRequestItem, PullRequestSearchResult, RepoStructureResult, } from './providerResults.js';
4
2
  import type { CodeSearchQuery, FileContentQuery, RepoSearchQuery, PullRequestQuery, RepoStructureQuery } from './providerQueries.js';
5
3
  import type { CodeSearchResult, FileContentResult, RepoSearchResult, PullRequestSearchResult, RepoStructureResult } from './providerResults.js';
6
4
  export type ProviderType = 'github';
package/dist/schema.d.ts CHANGED
@@ -1,14 +1,20 @@
1
1
  /**
2
2
  * `@octocodeai/octocode-tools-core/schema` — the engine-FREE direct-tool schema
3
3
  * surface (P3). Re-exports only the metadata/schema-text/display/input-prep API
4
- * from `directToolCatalog.meta.ts`, with NO transitive `@octocodeai/octocode-engine`
5
- * import. Importing this never loads the native `.node` addon, so consumers that
4
+ * from the directToolCatalog implementation modules, without a transitive
5
+ * `@octocodeai/octocode-engine` import. Importing this never loads the native `.node` addon, so consumers that
6
6
  * only need `--scheme` / help / `context` (e.g. the CLI on engine-less runtimes
7
7
  * like Codex.app Node) can read schemas without the engine.
8
8
  *
9
9
  * For execution, import `executeDirectTool` from `@octocodeai/octocode-tools-core/direct`.
10
10
  */
11
- export * from './tools/directToolCatalog.meta.js';
11
+ export * from './tools/directToolCatalog/toolCatalogDefinitions.js';
12
+ export * from './tools/directToolCatalog/toolCatalogFormatters.js';
13
+ export * from './tools/directToolCatalog/toolSchemaIntrospection.js';
14
+ export * from './tools/directToolCatalog/toolCommandPatterns.js';
15
+ export * from './tools/directToolCatalog/toolInputPreparation.js';
16
+ export * from './tools/directToolCatalog/toolSchemaRelations.js';
12
17
  export * from './toolContract/runtime.js';
13
18
  export { loadToolContent } from './tools/toolMetadata/state.js';
14
19
  export { STATIC_TOOL_NAMES } from './tools/toolNames.js';
20
+ export { getToolAvailability } from './tools/toolAvailability.js';