@octocodeai/octocode-tools-core 16.6.3 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/README.md +22 -50
  2. package/dist/direct.js +33 -38
  3. package/dist/github/botFilter.d.ts +1 -0
  4. package/dist/github/client.d.ts +6 -0
  5. package/dist/github/directoryFetch/fetchDirectoryContents.d.ts +3 -0
  6. package/dist/github/directoryFetch/fetchFileContentToDisk.d.ts +3 -0
  7. package/dist/github/directoryFetch/helpers.d.ts +35 -0
  8. package/dist/github/directoryFetch.d.ts +3 -6
  9. package/dist/github/fileContentPagination.d.ts +9 -0
  10. package/dist/github/fileContentProcess.d.ts +1 -8
  11. package/dist/github/fileContentRaw/fetch.d.ts +20 -0
  12. package/dist/github/fileContentRaw/pathSuggestions.d.ts +3 -0
  13. package/dist/github/fileContentRaw.d.ts +2 -12
  14. package/dist/github/githubAPI.d.ts +4 -1
  15. package/dist/github/history.d.ts +6 -2
  16. package/dist/github/issues/fetchers.d.ts +7 -0
  17. package/dist/github/issues/helpers.d.ts +32 -0
  18. package/dist/github/issues/orchestrator.d.ts +4 -0
  19. package/dist/github/issues/types.d.ts +72 -0
  20. package/dist/github/issues.d.ts +3 -0
  21. package/dist/github/prContentFetcher/comments.d.ts +11 -0
  22. package/dist/github/prContentFetcher/commits.d.ts +27 -0
  23. package/dist/github/prContentFetcher/flags.d.ts +21 -0
  24. package/dist/github/prContentFetcher/transform.d.ts +5 -0
  25. package/dist/github/prContentFetcher.d.ts +2 -5
  26. package/dist/github/pullRequestSearch/restSearch.d.ts +6 -0
  27. package/dist/github/pullRequestSearch.d.ts +1 -1
  28. package/dist/github/queryBuilders/base.d.ts +25 -0
  29. package/dist/github/queryBuilders/codeAndRepo.d.ts +20 -0
  30. package/dist/github/queryBuilders/issues.d.ts +42 -0
  31. package/dist/github/queryBuilders/pullRequests.d.ts +13 -0
  32. package/dist/github/queryBuilders.d.ts +4 -12
  33. package/dist/github/releases.d.ts +37 -0
  34. package/dist/github/repoStructure/contentResolution.d.ts +12 -0
  35. package/dist/github/repoStructure/fetchOrchestration.d.ts +7 -0
  36. package/dist/github/repoStructure/resultBuilder.d.ts +22 -0
  37. package/dist/github/repoStructure.d.ts +1 -7
  38. package/dist/github/repoStructureTree.d.ts +38 -0
  39. package/dist/github/responseHeaders.d.ts +2 -0
  40. package/dist/github/searchKeyword.d.ts +2 -0
  41. package/dist/index.d.ts +1 -4
  42. package/dist/index.js +35 -40
  43. package/dist/oql/adapters/github/execute.d.ts +16 -0
  44. package/dist/oql/adapters/github/provider-diagnostics.d.ts +14 -0
  45. package/dist/oql/adapters/github/shared.d.ts +75 -0
  46. package/dist/oql/adapters/github.d.ts +11 -0
  47. package/dist/oql/adapters/graphView/filters.d.ts +25 -0
  48. package/dist/oql/adapters/graphView/nativeEdges.d.ts +5 -0
  49. package/dist/oql/adapters/graphView.d.ts +17 -16
  50. package/dist/oql/adapters/local/code.d.ts +3 -0
  51. package/dist/oql/adapters/local/codeBoolean.d.ts +3 -0
  52. package/dist/oql/adapters/local/fileRowOps.d.ts +11 -0
  53. package/dist/oql/adapters/local/files.d.ts +3 -0
  54. package/dist/oql/adapters/local/filesBoolean.d.ts +10 -0
  55. package/dist/oql/adapters/local/filesContentLeaf.d.ts +12 -0
  56. package/dist/oql/adapters/local/filesUniverse.d.ts +6 -0
  57. package/dist/oql/adapters/local/findToolType.d.ts +10 -0
  58. package/dist/oql/adapters/local/predicates.d.ts +18 -0
  59. package/dist/oql/adapters/local/scope.d.ts +14 -0
  60. package/dist/oql/adapters/local/searchToolType.d.ts +7 -0
  61. package/dist/oql/adapters/local/structureContent.d.ts +6 -0
  62. package/dist/oql/adapters/local/types.d.ts +34 -0
  63. package/dist/oql/adapters/local.d.ts +3 -7
  64. package/dist/oql/adapters/researchTargets/diff.d.ts +16 -0
  65. package/dist/oql/adapters/researchTargets/graph.d.ts +3 -0
  66. package/dist/oql/adapters/researchTargets/history.d.ts +20 -0
  67. package/dist/oql/adapters/researchTargets/pagination.d.ts +54 -0
  68. package/dist/oql/adapters/researchTargets/repositories.d.ts +4 -0
  69. package/dist/oql/adapters/researchTargets/research.d.ts +3 -0
  70. package/dist/oql/adapters/researchTargets/rows.d.ts +16 -0
  71. package/dist/oql/adapters/researchTargets/semantics.d.ts +3 -0
  72. package/dist/oql/adapters/researchTargets/shared.d.ts +11 -0
  73. package/dist/oql/adapters/researchTargets.d.ts +4 -46
  74. package/dist/oql/defaults.d.ts +1 -1
  75. package/dist/oql/index.js +34 -39
  76. package/dist/oql/normalize/batch.d.ts +2 -0
  77. package/dist/oql/normalize/materialize.d.ts +2 -0
  78. package/dist/oql/normalize/params.d.ts +2 -0
  79. package/dist/oql/normalize/query.d.ts +2 -0
  80. package/dist/oql/normalize/scope.d.ts +2 -0
  81. package/dist/oql/normalize/shared.d.ts +7 -0
  82. package/dist/oql/normalize/source.d.ts +2 -0
  83. package/dist/oql/normalize/where.d.ts +2 -0
  84. package/dist/oql/normalize.d.ts +19 -4
  85. package/dist/oql/planner/planDiagnostics.d.ts +13 -0
  86. package/dist/oql/planner/predicateRouting.d.ts +35 -0
  87. package/dist/oql/predicateUtils.d.ts +3 -0
  88. package/dist/oql/research/analyze/manifest-scan.d.ts +4 -0
  89. package/dist/oql/research/analyze/source-graph.d.ts +7 -0
  90. package/dist/oql/research/analyze/symbol-scoring.d.ts +4 -0
  91. package/dist/oql/research/analyze/types.d.ts +163 -0
  92. package/dist/oql/research/analyze/utils.d.ts +16 -0
  93. package/dist/oql/research/analyze.d.ts +2 -133
  94. package/dist/oql/research/packets/builders.d.ts +4 -0
  95. package/dist/oql/research/packets/types.d.ts +91 -0
  96. package/dist/oql/research/packets.d.ts +21 -80
  97. package/dist/oql/run/batch.d.ts +3 -0
  98. package/dist/oql/run/continuations/records.d.ts +19 -0
  99. package/dist/oql/run/continuations/registry.d.ts +22 -0
  100. package/dist/oql/run/continuations/semantics.d.ts +3 -0
  101. package/dist/oql/run/continuations/types.d.ts +12 -0
  102. package/dist/oql/run/dryRun.d.ts +11 -0
  103. package/dist/oql/run/paths.d.ts +15 -0
  104. package/dist/oql/run/proofGrades.d.ts +8 -0
  105. package/dist/oql/run/select.d.ts +10 -0
  106. package/dist/oql/run/single.d.ts +22 -0
  107. package/dist/oql/run.d.ts +4 -31
  108. package/dist/oql/schema/predicates.d.ts +12 -0
  109. package/dist/oql/schema.d.ts +50 -35
  110. package/dist/oql/schemeText.d.ts +10 -13
  111. package/dist/oql/shorthand/predicates.d.ts +15 -0
  112. package/dist/oql/shorthand/query-controls.d.ts +18 -0
  113. package/dist/oql/shorthand/target-params.d.ts +9 -0
  114. package/dist/oql/shorthand/types.d.ts +159 -0
  115. package/dist/oql/shorthand/utils.d.ts +7 -0
  116. package/dist/oql/shorthand.d.ts +2 -171
  117. package/dist/oql/targetParams.d.ts +0 -13
  118. package/dist/oql/transformers/github/code.d.ts +1 -9
  119. package/dist/oql/types/diagnostics.d.ts +22 -0
  120. package/dist/oql/types/envelope.d.ts +78 -0
  121. package/dist/oql/types/guards.d.ts +9 -0
  122. package/dist/oql/types/planner.d.ts +46 -0
  123. package/dist/oql/types/predicates.d.ts +93 -0
  124. package/dist/oql/types/query.d.ts +143 -0
  125. package/dist/oql/types/recordData.d.ts +127 -0
  126. package/dist/oql/types/recordRows.d.ts +48 -0
  127. package/dist/oql/types/results.d.ts +118 -0
  128. package/dist/oql/types/targets.d.ts +22 -0
  129. package/dist/oql/types.d.ts +17 -640
  130. package/dist/providers/github/paginationMetadata.d.ts +12 -0
  131. package/dist/providers/providerResults.d.ts +0 -1
  132. package/dist/schema.js +2 -2
  133. package/dist/scheme/pagination.d.ts +65 -0
  134. package/dist/shared/config/index.js +1 -1
  135. package/dist/shared/credentials/index.js +2 -2
  136. package/dist/shared/credentials/testing.js +1 -1
  137. package/dist/shared/languageSelectors/classify.d.ts +15 -0
  138. package/dist/shared/languageSelectors/data.d.ts +12 -0
  139. package/dist/shared/languageSelectors.d.ts +3 -23
  140. package/dist/shared/paths.d.ts +0 -4
  141. package/dist/shared/paths.js +1 -1
  142. package/dist/shared/session/index.js +1 -1
  143. package/dist/shared/session/statsDefaults.d.ts +1 -2
  144. package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +68 -0
  145. package/dist/tools/directToolCatalog/toolCommandPatternQueries.d.ts +4 -0
  146. package/dist/tools/directToolCatalog/toolCommandPatterns.d.ts +4 -0
  147. package/dist/tools/directToolCatalog/toolInputPreparation.d.ts +12 -0
  148. package/dist/tools/directToolCatalog/toolSchemaIntrospection.d.ts +19 -0
  149. package/dist/tools/directToolCatalog.meta.d.ts +10 -67
  150. package/dist/tools/github_clone_repo/cache.d.ts +1 -5
  151. package/dist/tools/github_clone_repo/cachePaths.d.ts +5 -0
  152. package/dist/tools/github_fetch_content/finalizer/entryParsers.d.ts +9 -0
  153. package/dist/tools/github_fetch_content/finalizer/types.d.ts +101 -0
  154. package/dist/tools/github_fetch_content/finalizer.d.ts +1 -7
  155. package/dist/tools/github_fetch_content/scheme.d.ts +39 -4
  156. package/dist/tools/github_fetch_content/types.d.ts +1 -2
  157. package/dist/tools/github_search_code/execution.d.ts +9 -0
  158. package/dist/tools/github_search_code/finalizer/build.d.ts +4 -0
  159. package/dist/tools/github_search_code/finalizer/groups.d.ts +23 -0
  160. package/dist/tools/github_search_code/finalizer/ranking.d.ts +12 -0
  161. package/dist/tools/github_search_code/finalizer.d.ts +2 -6
  162. package/dist/tools/github_search_code/scheme.d.ts +29 -2
  163. package/dist/tools/github_search_pull_requests/contentResponse/commentsShaping.d.ts +68 -0
  164. package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +52 -0
  165. package/dist/tools/github_search_pull_requests/contentResponse/nextCalls.d.ts +17 -0
  166. package/dist/tools/github_search_pull_requests/contentResponse/pagination.d.ts +63 -0
  167. package/dist/tools/github_search_pull_requests/contentResponse.d.ts +1 -15
  168. package/dist/tools/github_search_pull_requests/execution/commitsMode.d.ts +4 -0
  169. package/dist/tools/github_search_pull_requests/execution/issuesMode.d.ts +4 -0
  170. package/dist/tools/github_search_pull_requests/execution/pullRequestsMode.d.ts +4 -0
  171. package/dist/tools/github_search_pull_requests/execution/releasesMode.d.ts +4 -0
  172. package/dist/tools/github_search_pull_requests/execution/types.d.ts +6 -0
  173. package/dist/tools/github_search_pull_requests/execution.d.ts +1 -4
  174. package/dist/tools/github_search_pull_requests/scheme.d.ts +11 -1
  175. package/dist/tools/github_search_repos/execution/pagination.d.ts +39 -0
  176. package/dist/tools/github_search_repos/execution/queryVariants.d.ts +38 -0
  177. package/dist/tools/github_search_repos/execution/ranking.d.ts +4 -0
  178. package/dist/tools/github_search_repos/execution.d.ts +3 -71
  179. package/dist/tools/github_search_repos/scheme.d.ts +8 -0
  180. package/dist/tools/github_view_repo_structure/types.d.ts +2 -0
  181. package/dist/tools/local_fetch_content/fetchContent/extraction.d.ts +15 -0
  182. package/dist/tools/local_fetch_content/fetchContent/pagination.d.ts +38 -0
  183. package/dist/tools/local_fetch_content/fetchContent/validation.d.ts +26 -0
  184. package/dist/tools/local_fetch_content/fetchContent.d.ts +2 -0
  185. package/dist/tools/local_fetch_content/scheme.d.ts +25 -1
  186. package/dist/tools/local_find_files/scheme.d.ts +32 -0
  187. package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +70 -0
  188. package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +47 -0
  189. package/dist/tools/local_ripgrep/rankingProfile/rankingScoring.d.ts +41 -0
  190. package/dist/tools/local_ripgrep/rankingProfile.d.ts +16 -95
  191. package/dist/tools/local_ripgrep/ripgrepResultBuilder/buildResult.d.ts +10 -0
  192. package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +46 -0
  193. package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +2 -18
  194. package/dist/tools/local_ripgrep/scheme.d.ts +95 -0
  195. package/dist/tools/local_view_structure/scheme.d.ts +31 -0
  196. package/dist/tools/lsp/semantic_content/scheme.d.ts +48 -0
  197. package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +7 -0
  198. package/dist/tools/lsp/semantic_content/semanticEnvelopes/callEnvelopes.d.ts +5 -0
  199. package/dist/tools/lsp/semantic_content/semanticEnvelopes/envelopeHelpers.d.ts +20 -0
  200. package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +13 -0
  201. package/dist/tools/lsp/semantic_content/semanticEnvelopes.d.ts +3 -0
  202. package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +24 -0
  203. package/dist/tools/lsp/semantic_content/semanticFileOps/documentSymbols.d.ts +27 -0
  204. package/dist/tools/lsp/semantic_content/semanticFileOps/workspaceSymbolsAndDiagnostics.d.ts +20 -0
  205. package/dist/tools/lsp/semantic_content/semanticFileOps.d.ts +8 -0
  206. package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +53 -0
  207. package/dist/tools/lsp/shared/semanticTypes.d.ts +6 -0
  208. package/dist/tools/package_search/execution.d.ts +8 -0
  209. package/dist/tools/package_search/scheme.d.ts +43 -2
  210. package/dist/tools/providerMappers/codeSearch.d.ts +66 -0
  211. package/dist/tools/providerMappers/fileContent.d.ts +28 -0
  212. package/dist/tools/providerMappers/pullRequests.d.ts +158 -0
  213. package/dist/tools/providerMappers/repoSearch.d.ts +30 -0
  214. package/dist/tools/providerMappers/repoStructure.d.ts +20 -0
  215. package/dist/tools/providerMappers/shared.d.ts +23 -0
  216. package/dist/tools/providerMappers.d.ts +9 -294
  217. package/dist/tools/toolConfig.d.ts +0 -2
  218. package/dist/tools/toolMetadata/descriptionOverrides.d.ts +4 -0
  219. package/dist/tools/toolSchemaImports.d.ts +13 -0
  220. package/dist/utils/contextUtils.d.ts +5 -16
  221. package/dist/utils/core/types.d.ts +2 -24
  222. package/dist/utils/exec/spawn/env.d.ts +5 -0
  223. package/dist/utils/exec/spawn/wrappers.d.ts +29 -0
  224. package/dist/utils/exec/spawn.d.ts +2 -34
  225. package/dist/utils/http/cache/conditional.d.ts +21 -0
  226. package/dist/utils/http/cache/dataCache.d.ts +6 -0
  227. package/dist/utils/http/cache/key.d.ts +1 -0
  228. package/dist/utils/http/cache/management.d.ts +9 -0
  229. package/dist/utils/http/cache/store.d.ts +28 -0
  230. package/dist/utils/http/cache.d.ts +4 -16
  231. package/dist/utils/markdownOutline.d.ts +0 -2
  232. package/dist/utils/package/npm/npmDeprecation.d.ts +5 -0
  233. package/dist/utils/package/npm/npmDetailsFetchers.d.ts +15 -0
  234. package/dist/utils/package/npm/npmMappers.d.ts +12 -0
  235. package/dist/utils/package/npm/npmRegistry.d.ts +79 -0
  236. package/dist/utils/package/npm/npmSearchStrategies.d.ts +6 -0
  237. package/dist/utils/package/npm.d.ts +2 -8
  238. package/dist/utils/pagination/boundary.d.ts +5 -5
  239. package/dist/utils/response/bulk/pagination.d.ts +6 -0
  240. package/dist/utils/response/bulk/queries.d.ts +19 -0
  241. package/dist/utils/response/bulk/response.d.ts +4 -0
  242. package/dist/utils/response/bulk.d.ts +2 -6
  243. package/package.json +9 -3
  244. package/dist/tools/local_binary_inspect/archiveOps.d.ts +0 -24
  245. package/dist/tools/local_binary_inspect/binaryInspector.d.ts +0 -86
  246. package/dist/tools/local_binary_inspect/binaryOps.d.ts +0 -27
  247. package/dist/tools/local_binary_inspect/decompressOps.d.ts +0 -16
  248. package/dist/tools/local_binary_inspect/execution.d.ts +0 -4
  249. package/dist/tools/local_binary_inspect/scheme.d.ts +0 -144
  250. package/dist/tools/local_ripgrep/lspBoost.d.ts +0 -54
  251. package/dist/utils/parsers/ripgrep.d.ts +0 -11
@@ -0,0 +1,15 @@
1
+ import type { NpmPackageResult, NpmSearchAPIResult, NpmSearchError } from '../types.js';
2
+ export declare function isNetworkFetchError(error: string | undefined): boolean;
3
+ export declare function fetchLastPublished(packageName: string): Promise<{
4
+ lastPublished?: string;
5
+ rawResponseChars: number;
6
+ }>;
7
+ export type PackageDetailsLookupResult = {
8
+ pkg: NpmPackageResult | null;
9
+ errorDetail?: string;
10
+ rawResponseChars: number;
11
+ };
12
+ export declare function enrichPackageDetails(packageName: string, pkg: NpmPackageResult, rawResponseChars: number): Promise<PackageDetailsLookupResult>;
13
+ export declare function fetchPackageDetailsFromCdn(packageName: string, includeExtendedMetadata: boolean): Promise<PackageDetailsLookupResult>;
14
+ export declare function fetchPackageDetailsWithError(packageName: string, includeExtendedMetadata?: boolean): Promise<PackageDetailsLookupResult>;
15
+ export declare function fetchNpmPackageByView(packageName: string, fetchMetadata: boolean, allowCdnFallback?: boolean): Promise<NpmSearchAPIResult | NpmSearchError>;
@@ -0,0 +1,12 @@
1
+ import type { NpmPackageResult } from '../types.js';
2
+ import type { NpmCliSearchItem, NpmViewResult } from './npmRegistry.js';
3
+ export declare function cleanRepoUrl(url: string): string;
4
+ export declare function countRawPayloadChars(raw: unknown): number;
5
+ export declare function fetchWeeklyDownloads(packageName: string): Promise<{
6
+ downloads?: number;
7
+ rawResponseChars: number;
8
+ }>;
9
+ export declare function mapToResult(data: NpmViewResult, includeExtendedMetadata?: boolean, source?: 'cli' | 'registry' | 'cdn'): NpmPackageResult;
10
+ export declare function mapSearchItemToResult(item: NpmCliSearchItem): NpmPackageResult | null;
11
+ export declare function encodeRegistryPackageName(packageName: string): string;
12
+ export declare function parseRegistrySearchTotal(total: string | number | undefined, fallback: number): number;
@@ -0,0 +1,79 @@
1
+ export declare const DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
2
+ export declare function getNpmRegistryUrl(): Promise<string>;
3
+ export declare function _resetNpmRegistryUrlCache(): void;
4
+ export declare function checkNpmRegistryReachable(): Promise<boolean>;
5
+ export interface NpmViewResult {
6
+ name: string;
7
+ version: string;
8
+ repository?: string | {
9
+ url?: string;
10
+ type?: string;
11
+ directory?: string;
12
+ };
13
+ main?: string;
14
+ module?: string;
15
+ type?: string;
16
+ exports?: unknown;
17
+ bin?: unknown;
18
+ types?: string;
19
+ typings?: string;
20
+ description?: string;
21
+ keywords?: string[];
22
+ license?: string | {
23
+ type?: string;
24
+ };
25
+ homepage?: string;
26
+ author?: string | {
27
+ name?: string;
28
+ email?: string;
29
+ url?: string;
30
+ };
31
+ maintainers?: Array<{
32
+ name?: string;
33
+ email?: string;
34
+ }>;
35
+ engines?: Record<string, string>;
36
+ dependencies?: Record<string, string>;
37
+ devDependencies?: Record<string, string>;
38
+ peerDependencies?: Record<string, string>;
39
+ time?: {
40
+ modified?: string;
41
+ created?: string;
42
+ [version: string]: string | undefined;
43
+ };
44
+ }
45
+ export interface NpmRegistrySearchItem {
46
+ name: string | null | undefined;
47
+ version: string | null | undefined;
48
+ description?: string | null;
49
+ links?: {
50
+ npm?: string | null;
51
+ homepage?: string | null;
52
+ repository?: string | null;
53
+ };
54
+ }
55
+ export interface NpmCliSearchItem {
56
+ name?: string;
57
+ version?: string;
58
+ description?: string;
59
+ keywords?: string[];
60
+ date?: string;
61
+ links?: {
62
+ npm?: string;
63
+ homepage?: string;
64
+ repository?: string;
65
+ bugs?: string;
66
+ };
67
+ repository?: string | {
68
+ url?: string;
69
+ type?: string;
70
+ };
71
+ score?: {
72
+ final?: number;
73
+ detail?: {
74
+ quality?: number;
75
+ popularity?: number;
76
+ maintenance?: number;
77
+ };
78
+ };
79
+ }
@@ -0,0 +1,6 @@
1
+ import type { NpmSearchAPIResult, NpmSearchError } from '../types.js';
2
+ export declare function searchNpmPackageViaCliSearch(keywords: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
3
+ export declare function searchNpmPackageViaRegistrySearch(keywords: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
4
+ export declare function searchNpmPackageViaWebSearch(packageName: string, limit: number): Promise<NpmSearchAPIResult | NpmSearchError>;
5
+ export declare function searchNpmPackageViaSearch(keywords: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
6
+ export declare function enrichTopSearchResult(result: NpmSearchAPIResult): Promise<NpmSearchAPIResult>;
@@ -1,8 +1,2 @@
1
- import type { NpmSearchAPIResult, NpmSearchError, DeprecationInfo } from './types.js';
2
- export declare function getNpmRegistryUrl(): Promise<string>;
3
- export declare function _resetNpmRegistryUrlCache(): void;
4
- export declare function checkNpmRegistryReachable(): Promise<boolean>;
5
- export declare function isExactPackageName(query: string): boolean;
6
- export declare function _packageNameToSearchKeywords(packageName: string): string;
7
- export declare function searchNpmPackage(packageName: string, limit: number, fetchMetadata: boolean, from?: number): Promise<NpmSearchAPIResult | NpmSearchError>;
8
- export declare function checkNpmDeprecation(packageName: string): Promise<DeprecationInfo | null>;
1
+ export { getNpmRegistryUrl, _resetNpmRegistryUrlCache, checkNpmRegistryReachable, } from './npm/npmRegistry.js';
2
+ export { isExactPackageName, _packageNameToSearchKeywords, searchNpmPackage, checkNpmDeprecation, } from './npm/npmDeprecation.js';
@@ -1,11 +1,11 @@
1
1
  export declare function isMidBlockCut(paginatedContent: string): boolean;
2
- export declare function findNextBlockBoundary(content: string, fromChar: number, filePath?: string): number | undefined;
3
- export declare function buildBlockBoundaryHint(paginatedContent: string, fullContent: string, cutPos: number, currentCharLength: number, filePath?: string): {
2
+ export declare function findNextBlockBoundary(content: string, fromChar: number, filePath?: string): Promise<number | undefined>;
3
+ export declare function buildBlockBoundaryHint(paginatedContent: string, fullContent: string, cutPos: number, currentCharLength: number, filePath?: string): Promise<{
4
4
  nextBlockChar: number;
5
5
  hint: string;
6
- } | undefined;
6
+ } | undefined>;
7
7
  export type ChunkMode = 'semantic' | 'char-limit';
8
- export declare function snapToSemanticBoundary(content: string, charOffset: number, charLength: number, filePath?: string): {
8
+ export declare function snapToSemanticBoundary(content: string, charOffset: number, charLength: number, filePath?: string): Promise<{
9
9
  length: number;
10
10
  chunkMode: ChunkMode;
11
- };
11
+ }>;
@@ -0,0 +1,6 @@
1
+ import type { BulkToolResponse, BulkResponsePagination } from '../../../types/bulk.js';
2
+ export declare function paginateBulkText(text: string, pagination?: BulkResponsePagination): {
3
+ text: string;
4
+ pagination?: NonNullable<BulkToolResponse['responsePagination']>;
5
+ };
6
+ export declare function appendResponsePagination<T extends Record<string, unknown>>(structuredContent: T, pagination?: NonNullable<BulkToolResponse['responsePagination']>): T;
@@ -0,0 +1,19 @@
1
+ import type { ProcessedBulkResult, QueryError } from '../../../types/toolResults.js';
2
+ export declare function computeQueryTimeout(queryCount: number, concurrency: number, minTimeoutMs?: number): number;
3
+ export declare function processBulkQueries<TQuery extends object>(queries: Array<TQuery>, processor: (query: TQuery, index: number) => Promise<ProcessedBulkResult>, concurrency: number, minQueryTimeoutMs?: number): Promise<{
4
+ results: Array<{
5
+ result: ProcessedBulkResult;
6
+ queryIndex: number;
7
+ originalQuery: TQuery;
8
+ }>;
9
+ errors: QueryError[];
10
+ }>;
11
+ export declare function resolveQueryId<TQuery extends object>(originalQuery: TQuery, queryIndex: number): string;
12
+ /**
13
+ * Resolve one id per query, guaranteed unique within the batch. Everything
14
+ * downstream (finalizer grouping, per-query pagination maps) keys off these
15
+ * ids, so two queries submitted with the same explicit `id` would otherwise
16
+ * silently merge and the second query's pagination would overwrite the first.
17
+ * Collisions get a `#2`, `#3`… suffix in submission order.
18
+ */
19
+ export declare function resolveUniqueQueryIds<TQuery extends object>(queries: readonly TQuery[]): string[];
@@ -0,0 +1,4 @@
1
+ import { CallToolResult } from '@modelcontextprotocol/sdk/types';
2
+ import type { ProcessedBulkResult } from '../../../types/toolResults.js';
3
+ import type { BulkResponseConfig, BulkResponsePagination } from '../../../types/bulk.js';
4
+ export declare function executeBulkOperation<TQuery extends object, TOutput extends Record<string, unknown> = Record<string, unknown>>(queries: Array<TQuery>, processor: (query: TQuery, index: number) => Promise<ProcessedBulkResult>, config: BulkResponseConfig<TQuery, TOutput>, pagination?: BulkResponsePagination): Promise<CallToolResult>;
@@ -1,6 +1,2 @@
1
- import { CallToolResult } from '@modelcontextprotocol/sdk/types';
2
- import type { ProcessedBulkResult } from '../../types/toolResults.js';
3
- import type { BulkResponseConfig, BulkResponsePagination } from '../../types/bulk.js';
4
- export declare function computeQueryTimeout(queryCount: number, concurrency: number, minTimeoutMs?: number): number;
5
- export declare function executeBulkOperation<TQuery extends object, TOutput extends Record<string, unknown> = Record<string, unknown>>(queries: Array<TQuery>, processor: (query: TQuery, index: number) => Promise<ProcessedBulkResult>, config: BulkResponseConfig<TQuery, TOutput>, pagination?: BulkResponsePagination): Promise<CallToolResult>;
6
- export declare function resolveQueryId<TQuery extends object>(originalQuery: TQuery, queryIndex: number): string;
1
+ export { computeQueryTimeout, resolveQueryId, resolveUniqueQueryIds, } from './bulk/queries.js';
2
+ export { executeBulkOperation } from './bulk/response.js';
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@octocodeai/octocode-tools-core",
3
- "version": "16.6.3",
3
+ "version": "17.0.1",
4
4
  "description": "Core tool implementations for Octocode: GitHub, local filesystem, LSP, and package search tools.",
5
5
  "author": "Guy Bary <bgauryy@octocodeai.com>",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/bgauryy/octocode.git",
9
+ "directory": "packages/octocode-tools-core"
10
+ },
11
+ "bugs": "https://github.com/bgauryy/octocode/issues",
6
12
  "license": "MIT",
7
13
  "type": "module",
8
14
  "publishConfig": {
@@ -83,8 +89,9 @@
83
89
  },
84
90
  "dependencies": {
85
91
  "@modelcontextprotocol/sdk": "^1.29.0",
92
+ "@octocodeai/config": "^17.0.1",
86
93
  "@octocodeai/octocode-core": "^16.6.3",
87
- "@octocodeai/octocode-engine": "^16.7.0",
94
+ "@octocodeai/octocode-engine": "^17.0.1",
88
95
  "@octokit/oauth-methods": "^6.0.2",
89
96
  "@octokit/plugin-throttling": "^11.0.3",
90
97
  "@octokit/request": "^10.0.10",
@@ -93,7 +100,6 @@
93
100
  "zod": "^4.4.3"
94
101
  },
95
102
  "devDependencies": {
96
- "@octocodeai/config": "workspace:*",
97
103
  "@octokit/core": "^7.0.6",
98
104
  "@octokit/openapi-types": "^27.0.0",
99
105
  "@octokit/plugin-rest-endpoint-methods": "^17.0.0",
@@ -1,24 +0,0 @@
1
- /**
2
- * Archive list/extract operations.
3
- * Backs mode="list" and mode="extract" in localBinaryInspect.
4
- *
5
- * Backend selection (falls through on missing CLI):
6
- * .aar/.yaa → aa only
7
- * .dmg/.rar/.cpgz → 7z → 7zz → bsdtar
8
- * .7z/.iso/.cab/… → bsdtar → 7z → 7zz
9
- * .tar.* → tar → bsdtar → 7z
10
- * default (zip-fam.) → unzip → tar → bsdtar → 7z
11
- */
12
- export interface ArchiveChainResult {
13
- success: boolean;
14
- stdout: string;
15
- stderr: string;
16
- commandUsed?: string;
17
- missingCommands?: string[];
18
- }
19
- export declare function listArchiveEntries(path: string, verbose: boolean): Promise<ArchiveChainResult & {
20
- entries?: string[];
21
- }>;
22
- export declare function extractArchiveEntry(path: string, entry: string): Promise<ArchiveChainResult>;
23
- /** Extracts the whole archive into destDir (which must already exist). */
24
- export declare function extractArchiveToDir(path: string, destDir: string): Promise<ArchiveChainResult>;
@@ -1,86 +0,0 @@
1
- import type { BinaryInspectQuery } from './scheme.js';
2
- interface ContentCharPagination {
3
- currentPage: number;
4
- totalPages: number;
5
- hasMore: boolean;
6
- charOffset: number;
7
- charLength: number;
8
- totalChars: number;
9
- nextCharOffset?: number;
10
- }
11
- export declare function inspectBinary(query: BinaryInspectQuery): Promise<import("../../index.js").UnifiedErrorResult | {
12
- warnings?: string[];
13
- truncated?: boolean;
14
- detailed?: boolean;
15
- libraries?: string[];
16
- sections?: string[];
17
- exports?: string[];
18
- imports?: string[];
19
- symbols?: string[];
20
- symbolCount: number;
21
- importCount: number;
22
- exportCount: number;
23
- entry?: string;
24
- stripped?: boolean;
25
- endianness?: string;
26
- bits?: number;
27
- arch?: string;
28
- status: "success";
29
- mode: "inspect";
30
- path: string;
31
- format: string;
32
- description: string;
33
- magicBytes: string;
34
- } | {
35
- pagination: {
36
- currentPage: number;
37
- totalPages: number;
38
- hasMore: boolean;
39
- entriesPerPage: number;
40
- };
41
- status: "success";
42
- mode: "list";
43
- path: string;
44
- backend: string;
45
- totalEntries: number;
46
- entries: string[];
47
- } | {
48
- pagination?: ContentCharPagination;
49
- status: "success";
50
- mode: "extract";
51
- path: string;
52
- archiveFile: string;
53
- backend: string;
54
- localPath: string;
55
- content: string;
56
- isPartial: boolean;
57
- } | {
58
- pagination?: ContentCharPagination;
59
- status: "success";
60
- mode: "decompress";
61
- path: string;
62
- format: "gzip" | "bzip2" | "xz" | "lzma" | "zstd" | "lz4" | "brotli" | "lzfse";
63
- backend: string;
64
- localPath: string;
65
- content: string;
66
- isPartial: boolean;
67
- } | {
68
- nextScanOffset?: number;
69
- scanOffset: number;
70
- pagination?: ContentCharPagination;
71
- totalFound: number;
72
- isPartial: boolean;
73
- localPath?: string;
74
- status: "success";
75
- mode: "strings";
76
- path: string;
77
- content: string;
78
- } | {
79
- status: "success";
80
- mode: "unpack";
81
- path: string;
82
- localPath: string;
83
- cached: boolean;
84
- topLevelEntries: number;
85
- }>;
86
- export {};
@@ -1,27 +0,0 @@
1
- /**
2
- * Binary file inspection (format lane) — native, via octocode-engine.
3
- * Backs mode="inspect" and mode="strings" in localBinaryInspect.
4
- *
5
- * No GNU binutils/coreutils dependency: `goblin`-backed parsing and a native
6
- * string scanner replace the old `file` / `xxd` / `strings` shell-outs, so this
7
- * lane works on Windows and on distroless/Alpine Linux, returns parser-stable
8
- * structured data, and recovers UTF-16 strings GNU `strings -a` misses.
9
- */
10
- import type { BinaryInspectInfo } from '@octocodeai/octocode-engine';
11
- export interface InspectResult {
12
- success: boolean;
13
- info?: BinaryInspectInfo;
14
- error?: string;
15
- }
16
- export declare function inspectBinaryFile(path: string): InspectResult;
17
- export interface StringsResult {
18
- success: boolean;
19
- strings?: string[];
20
- totalFound?: number;
21
- /** True when more of the file remains to scan beyond this window (follow nextScanOffset). */
22
- truncated?: boolean;
23
- /** Absolute byte offset for the next scan window, or undefined at EOF. */
24
- nextScanOffset?: number;
25
- error?: string;
26
- }
27
- export declare function extractStrings(path: string, minLength: number, includeOffsets: boolean, scanOffset?: number): StringsResult;
@@ -1,16 +0,0 @@
1
- /**
2
- * Single-stream decompression.
3
- * Backs mode="decompress" in localBinaryInspect.
4
- *
5
- * Handles: .gz .bz2 .xz .lzma .zst .lz4 .br .lzfse
6
- * Does NOT handle multi-entry archives (.tar.gz, .zip etc.) — those belong to archiveOps.
7
- */
8
- export type DecompressFormat = 'auto' | 'gzip' | 'bzip2' | 'xz' | 'lzma' | 'zstd' | 'lz4' | 'brotli' | 'lzfse';
9
- export interface DecompressResult {
10
- success: boolean;
11
- content?: string;
12
- format?: Exclude<DecompressFormat, 'auto'>;
13
- backend?: string;
14
- error?: string;
15
- }
16
- export declare function decompressFile(path: string, format: DecompressFormat): Promise<DecompressResult>;
@@ -1,4 +0,0 @@
1
- import { type CallToolResult } from '@modelcontextprotocol/sdk/types.js';
2
- import { type BinaryInspectQuery } from './scheme.js';
3
- import type { ToolExecutionArgs } from '../../types/execution.js';
4
- export declare function executeInspectBinary(args: ToolExecutionArgs<BinaryInspectQuery>): Promise<CallToolResult>;
@@ -1,144 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const LocalBinaryInspectQuerySchema: z.ZodObject<{
3
- entryPageNumber: z.ZodDefault<z.ZodDefault<z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>>>;
4
- matchStringContextLines: z.ZodDefault<z.ZodPreprocess<z.ZodNumber>>;
5
- charLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
6
- page: z.ZodDefault<z.ZodDefault<z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>>>;
7
- detailed: z.ZodOptional<z.ZodBoolean>;
8
- path: z.ZodString;
9
- mode: z.ZodEnum<{
10
- list: "list";
11
- inspect: "inspect";
12
- extract: "extract";
13
- decompress: "decompress";
14
- strings: "strings";
15
- unpack: "unpack";
16
- }>;
17
- verbose: z.ZodOptional<z.ZodBoolean>;
18
- maxEntries: z.ZodDefault<z.ZodNumber>;
19
- entriesPerPage: z.ZodOptional<z.ZodNumber>;
20
- archiveFile: z.ZodOptional<z.ZodString>;
21
- matchString: z.ZodOptional<z.ZodString>;
22
- charOffset: z.ZodOptional<z.ZodNumber>;
23
- format: z.ZodDefault<z.ZodEnum<{
24
- auto: "auto";
25
- gzip: "gzip";
26
- bzip2: "bzip2";
27
- xz: "xz";
28
- lzma: "lzma";
29
- zstd: "zstd";
30
- lz4: "lz4";
31
- brotli: "brotli";
32
- lzfse: "lzfse";
33
- }>>;
34
- minLength: z.ZodDefault<z.ZodNumber>;
35
- includeOffsets: z.ZodOptional<z.ZodBoolean>;
36
- scanOffset: z.ZodOptional<z.ZodNumber>;
37
- id: z.ZodOptional<z.ZodString>;
38
- mainResearchGoal: z.ZodOptional<z.ZodString>;
39
- researchGoal: z.ZodOptional<z.ZodString>;
40
- reasoning: z.ZodOptional<z.ZodString>;
41
- }, z.core.$strict>;
42
- export type BinaryInspectQuery = z.infer<typeof LocalBinaryInspectQuerySchema>;
43
- export declare const LocalBinaryInspectBulkQuerySchema: z.ZodObject<{
44
- responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
45
- responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
46
- queries: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
47
- }, z.core.$strip>;
48
- export declare const LocalBinaryInspectOutputSchema: z.ZodObject<{
49
- results: z.ZodArray<z.ZodObject<{
50
- id: z.ZodString;
51
- status: z.ZodOptional<z.ZodEnum<{
52
- empty: "empty";
53
- error: "error";
54
- success: "success";
55
- }>>;
56
- data: z.ZodUnion<readonly [z.ZodObject<{
57
- path: z.ZodString;
58
- mode: z.ZodLiteral<"inspect">;
59
- format: z.ZodOptional<z.ZodString>;
60
- size: z.ZodOptional<z.ZodNumber>;
61
- isText: z.ZodOptional<z.ZodBoolean>;
62
- encoding: z.ZodOptional<z.ZodString>;
63
- symbols: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
- imports: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
- exports: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
- sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
- }, z.core.$strip>, z.ZodObject<{
69
- path: z.ZodString;
70
- mode: z.ZodLiteral<"list">;
71
- entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
- name: z.ZodString;
73
- size: z.ZodOptional<z.ZodNumber>;
74
- compressedSize: z.ZodOptional<z.ZodNumber>;
75
- isDir: z.ZodOptional<z.ZodBoolean>;
76
- modified: z.ZodOptional<z.ZodString>;
77
- }, z.core.$strip>>>;
78
- pagination: z.ZodOptional<z.ZodObject<{
79
- currentPage: z.ZodNumber;
80
- totalPages: z.ZodNumber;
81
- hasMore: z.ZodBoolean;
82
- nextPage: z.ZodOptional<z.ZodNumber>;
83
- pageSize: z.ZodOptional<z.ZodNumber>;
84
- totalItems: z.ZodOptional<z.ZodNumber>;
85
- }, z.core.$strip>>;
86
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- }, z.core.$strip>, z.ZodObject<{
88
- path: z.ZodString;
89
- mode: z.ZodEnum<{
90
- extract: "extract";
91
- decompress: "decompress";
92
- }>;
93
- archiveFile: z.ZodOptional<z.ZodString>;
94
- content: z.ZodOptional<z.ZodString>;
95
- isPartial: z.ZodOptional<z.ZodBoolean>;
96
- pagination: z.ZodOptional<z.ZodObject<{
97
- charOffset: z.ZodNumber;
98
- charLength: z.ZodNumber;
99
- totalChars: z.ZodNumber;
100
- hasMore: z.ZodBoolean;
101
- nextCharOffset: z.ZodOptional<z.ZodNumber>;
102
- currentPage: z.ZodOptional<z.ZodNumber>;
103
- totalPages: z.ZodOptional<z.ZodNumber>;
104
- chunkMode: z.ZodOptional<z.ZodEnum<{
105
- semantic: "semantic";
106
- "char-limit": "char-limit";
107
- }>>;
108
- }, z.core.$strip>>;
109
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
- }, z.core.$strip>, z.ZodObject<{
111
- path: z.ZodString;
112
- mode: z.ZodLiteral<"strings">;
113
- strings: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
- value: z.ZodString;
115
- offset: z.ZodOptional<z.ZodNumber>;
116
- }, z.core.$strip>>>;
117
- content: z.ZodOptional<z.ZodString>;
118
- totalStrings: z.ZodOptional<z.ZodNumber>;
119
- scanOffset: z.ZodOptional<z.ZodNumber>;
120
- nextScanOffset: z.ZodOptional<z.ZodNumber>;
121
- hasMore: z.ZodOptional<z.ZodBoolean>;
122
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
- }, z.core.$strip>, z.ZodObject<{
124
- path: z.ZodString;
125
- mode: z.ZodLiteral<"unpack">;
126
- localPath: z.ZodOptional<z.ZodString>;
127
- fileCount: z.ZodOptional<z.ZodNumber>;
128
- totalSize: z.ZodOptional<z.ZodNumber>;
129
- warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
- }, z.core.$strip>]>;
131
- }, z.core.$strip>>;
132
- base: z.ZodOptional<z.ZodString>;
133
- shared: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
134
- responsePagination: z.ZodOptional<z.ZodObject<{
135
- currentPage: z.ZodNumber;
136
- totalPages: z.ZodNumber;
137
- hasMore: z.ZodBoolean;
138
- charOffset: z.ZodNumber;
139
- charLength: z.ZodNumber;
140
- totalChars: z.ZodNumber;
141
- nextCharOffset: z.ZodOptional<z.ZodNumber>;
142
- }, z.core.$strip>>;
143
- }, z.core.$strip>;
144
- export type LocalBinaryInspectOutput = z.infer<typeof LocalBinaryInspectOutputSchema>;
@@ -1,54 +0,0 @@
1
- /**
2
- * Tier 1 Phase 3 — optional, bounded LSP semantic boost for relevance ranking.
3
- *
4
- * Runs only for `sort:"relevance"` + `semanticRanking:true`, and only over the
5
- * top-N relevance candidates already produced by the text/AST scorer. LSP
6
- * enriches; it never gates. Rules (see RANKING-ARCHITECTURE.md):
7
- * 1. LSP never adds or removes a result — only reorders the top-N.
8
- * 2. Failure/timeout degrades to the existing text/AST order (graceful).
9
- * 3. Boosts are capped and deterministic given the resolver's output.
10
- * 4. An LSP boost never outweighs a strong exact declaration on its own.
11
- */
12
- import type { LocalSearchCodeFile } from '@octocodeai/octocode-core/types';
13
- import type { FileScore } from './rankingProfile.js';
14
- /** What LSP can tell us about a candidate's anchor symbol. */
15
- export interface LspSignal {
16
- isDefinition?: boolean;
17
- isExportedOrPublic?: boolean;
18
- hasCallers?: boolean;
19
- isImplementationOrType?: boolean;
20
- /** Resolver couldn't anchor / server unavailable — treated as no boost. */
21
- unavailable?: boolean;
22
- }
23
- /** Capped additive boosts. Sum is bounded by LSP_BOOST_CAP. */
24
- export declare const LSP_BOOST: {
25
- readonly definition: 3;
26
- readonly exportedOrPublic: 2;
27
- readonly hasCallers: 1;
28
- readonly implementationOrType: 1;
29
- readonly cap: 5;
30
- };
31
- export declare function lspBoostScore(signal: LspSignal | null | undefined): {
32
- delta: number;
33
- reasons: string[];
34
- };
35
- export type LspResolver = (file: LocalSearchCodeFile) => Promise<LspSignal | null>;
36
- export interface SemanticBoostResult {
37
- files: LocalSearchCodeFile[];
38
- /** Updated debug scores (boost folded in) keyed by path, when debug is on. */
39
- debug?: Map<string, FileScore>;
40
- /** True if any candidate was enriched; false means full graceful degrade. */
41
- enriched: boolean;
42
- }
43
- /**
44
- * Apply a bounded LSP boost to the top-N already-relevance-ranked files.
45
- *
46
- * `baseScores` is the Tier 1 score per path (when available). The resolver is
47
- * injected so this is unit-testable and the live wiring (lspGetSemantics) stays
48
- * out of the pure scoring path. Any resolver rejection degrades that one
49
- * candidate to its base order; the call never throws.
50
- */
51
- export declare function applySemanticBoost(rankedFiles: LocalSearchCodeFile[], resolve: LspResolver, opts?: {
52
- topN?: number;
53
- baseScores?: Map<string, FileScore>;
54
- }): Promise<SemanticBoostResult>;
@@ -1,11 +0,0 @@
1
- import type { LocalSearchCodeFile } from '@octocodeai/octocode-core/types';
2
- import type { SearchStats } from '../core/types.js';
3
- interface RipgrepParserQuery {
4
- contextLines?: number;
5
- matchContentLength?: number;
6
- }
7
- export declare function parseRipgrepJson(jsonOutput: string, query: RipgrepParserQuery): {
8
- files: LocalSearchCodeFile[];
9
- stats: SearchStats;
10
- };
11
- export {};