@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.
- package/README.md +19 -19
- package/dist/chunks/direct/chunk-3AA4F3QO.js +10 -0
- package/dist/chunks/direct/chunk-43RVQWTG.js +8 -0
- package/dist/chunks/direct/chunk-7DYE654A.js +8 -0
- package/dist/chunks/direct/chunk-A4WMBDEC.js +8 -0
- package/dist/chunks/direct/chunk-AWZG43MA.js +8 -0
- package/dist/chunks/direct/chunk-BICVXQ5F.js +8 -0
- package/dist/chunks/direct/chunk-BMM5H6QF.js +11 -0
- package/dist/chunks/direct/chunk-C6HFNIDL.js +8 -0
- package/dist/chunks/direct/chunk-CBCZVCTZ.js +8 -0
- package/dist/chunks/direct/chunk-CBIKUVP6.js +11 -0
- package/dist/chunks/direct/chunk-CKB2ME2J.js +8 -0
- package/dist/chunks/direct/chunk-DBI23PBG.js +9 -0
- package/dist/chunks/direct/chunk-DBSQWRFS.js +9 -0
- package/dist/chunks/direct/chunk-DKGYPFGX.js +8 -0
- package/dist/chunks/direct/chunk-EOLHXX5I.js +8 -0
- package/dist/chunks/direct/chunk-IFPXDKUV.js +8 -0
- package/dist/chunks/direct/chunk-J3WYA3IJ.js +8 -0
- package/dist/chunks/direct/chunk-MCMOWPYL.js +8 -0
- package/dist/chunks/direct/chunk-MPTAIBY7.js +8 -0
- package/dist/chunks/direct/chunk-NQRDACK3.js +8 -0
- package/dist/chunks/direct/chunk-O5ETB2W5.js +8 -0
- package/dist/chunks/direct/chunk-OA6NU4KO.js +8 -0
- package/dist/chunks/direct/chunk-QKDE2HIF.js +10 -0
- package/dist/chunks/direct/chunk-RRSY2ZPX.js +13 -0
- package/dist/chunks/direct/chunk-UKQLRZEW.js +8 -0
- package/dist/chunks/direct/chunk-USZL65FN.js +8 -0
- package/dist/chunks/direct/chunk-WH6GL3J2.js +8 -0
- package/dist/chunks/direct/chunk-Y5OCKUQX.js +9 -0
- package/dist/chunks/direct/chunk-ZO44CZN5.js +8 -0
- package/dist/chunks/direct/chunk-ZSXRT7JL.js +12 -0
- package/dist/chunks/direct/chunk-ZUNPQVMO.js +8 -0
- package/dist/chunks/direct/execution-3T4B776P.js +9 -0
- package/dist/chunks/direct/execution-5BJNS7D7.js +8 -0
- package/dist/chunks/direct/execution-5O6QHKBR.js +8 -0
- package/dist/chunks/direct/execution-A4NK3BQO.js +8 -0
- package/dist/chunks/direct/execution-K4UOPXRQ.js +9 -0
- package/dist/chunks/direct/execution-SWWZOOA7.js +13 -0
- package/dist/chunks/direct/execution-X4MUJL4L.js +8 -0
- package/dist/chunks/direct/execution-XA6PXPRB.js +8 -0
- package/dist/chunks/direct/historyExecutions-6F3AA5PY.js +14 -0
- package/dist/direct.d.ts +6 -1
- package/dist/direct.js +2 -46
- package/dist/github/canonicalRepo.d.ts +2 -1
- package/dist/github/client.d.ts +3 -8
- package/dist/github/codeSearch/compactFragment.d.ts +7 -0
- package/dist/github/codeSearch.d.ts +2 -3
- package/dist/github/commit.d.ts +8 -0
- package/dist/github/commitDetail.d.ts +20 -0
- package/dist/github/commitSearch.d.ts +17 -0
- package/dist/github/compare.d.ts +15 -0
- package/dist/github/directoryFetch/cacheMetadata.d.ts +25 -0
- package/dist/github/directoryFetch/helpers.d.ts +1 -3
- package/dist/github/directoryFetch/snapshot.d.ts +10 -0
- package/dist/github/fileContentProcess.d.ts +0 -1
- package/dist/github/fileContentRaw/cache.d.ts +9 -0
- package/dist/github/fileContentRaw/fetch.d.ts +1 -1
- package/dist/github/githubAPI.d.ts +19 -2
- package/dist/github/history/commitFiles.d.ts +12 -0
- package/dist/github/issues/fetchers.d.ts +1 -1
- package/dist/github/issues/types.d.ts +3 -1
- package/dist/github/prContentFetcher/collectionPaging.d.ts +27 -0
- package/dist/github/prContentFetcher/comments.d.ts +7 -5
- package/dist/github/prContentFetcher/commits.d.ts +13 -14
- package/dist/github/prContentFetcher/flags.d.ts +0 -1
- package/dist/github/prContentFetcher/transform.d.ts +1 -1
- package/dist/github/prTransformation.d.ts +3 -1
- package/dist/github/queryBuilders/codeAndRepo.d.ts +2 -1
- package/dist/github/repoSearch.d.ts +2 -1
- package/dist/github/repoStructure/fetchOrchestration.d.ts +1 -1
- package/dist/github/repoStructurePagination.d.ts +1 -1
- package/dist/github/repoStructureTree.d.ts +4 -2
- package/dist/graph/advancedOperations.d.ts +2 -2
- package/dist/graph/buildFileGraph.d.ts +8 -13
- package/dist/graph/coverage.d.ts +6 -0
- package/dist/graph/diagnosticSnapshot.d.ts +10 -0
- package/dist/graph/fileImportLinker.d.ts +28 -0
- package/dist/graph/importResolver.d.ts +1 -1
- package/dist/graph/languageImportResolver.d.ts +5 -0
- package/dist/graph/metadataImports.d.ts +7 -0
- package/dist/graph/packageExportTargets.d.ts +11 -0
- package/dist/graph/rustCargoMetadata.d.ts +31 -0
- package/dist/graph/rustCargoProcess.d.ts +16 -0
- package/dist/graph/rustModules.d.ts +7 -0
- package/dist/graph/rustWorkspace.d.ts +5 -0
- package/dist/graph/types.d.ts +94 -3
- package/dist/graph/workspacePackageResolver.d.ts +7 -2
- package/dist/index.d.ts +46 -19
- package/dist/index.js +36 -45
- package/dist/providers/github/GitHubProvider.d.ts +3 -1
- package/dist/providers/github/githubContent.d.ts +3 -2
- package/dist/providers/github/githubPullRequests.d.ts +3 -2
- package/dist/providers/github/githubSearch.d.ts +6 -3
- package/dist/providers/github/githubStructure.d.ts +3 -2
- package/dist/providers/providerQueries.d.ts +4 -0
- package/dist/providers/providerResults.d.ts +29 -1
- package/dist/providers/types.d.ts +0 -2
- package/dist/schema.d.ts +9 -3
- package/dist/schema.js +4 -12
- package/dist/scheme/fields.d.ts +8 -8
- package/dist/scheme/pagination.d.ts +1 -0
- package/dist/serverConfig.d.ts +1 -1
- package/dist/shared/session/index.d.ts +1 -1
- package/dist/shared/session/index.js +1 -1
- package/dist/shared/session/storage.d.ts +0 -1
- package/dist/toolContract/descriptions.d.ts +6 -6
- package/dist/toolContract/input/resources/tools/ghSearch.d.ts +21 -20
- package/dist/toolContract/input/resources/tools/githubHistorySchema.d.ts +14 -6
- package/dist/toolContract/input/resources/tools/githubRepositoriesOperation.d.ts +3 -3
- package/dist/toolContract/input/resources/tools/githubTreeOperation.d.ts +4 -2
- package/dist/toolContract/input/resources/tools/historyCommitInput.d.ts +9 -0
- package/dist/toolContract/input/resources/tools/historyIssueInput.d.ts +4 -4
- package/dist/toolContract/input/resources/tools/historyPullRequestInput.d.ts +13 -5
- package/dist/toolContract/input/resources/tools/localAnalyzeGraph.d.ts +74 -32
- package/dist/toolContract/input/resources/tools/localFilesOperation.d.ts +1 -1
- package/dist/toolContract/input/resources/tools/localSearch.d.ts +43 -43
- package/dist/toolContract/input/resources/tools/localTextOperation.d.ts +1 -1
- package/dist/toolContract/input/resources/tools/localTreeOperation.d.ts +2 -2
- package/dist/toolContract/input/resources/tools/lspGetSemantics.d.ts +11 -2
- package/dist/toolContract/input/resources/tools/npmSearch.d.ts +2 -1
- package/dist/toolContract/metadata.d.ts +1 -1
- package/dist/toolContract/runtime.d.ts +1 -1
- package/dist/toolContract/types.d.ts +0 -1
- package/dist/tools/directToolCatalog/toolCatalogDefinitions.d.ts +2 -4
- package/dist/tools/directToolCatalog/toolInputPreparation.d.ts +2 -5
- package/dist/tools/directToolCatalog.exec.d.ts +10 -7
- package/dist/tools/github_clone_repo/cache.d.ts +0 -2
- package/dist/tools/github_clone_repo/cacheArtifacts.d.ts +3 -1
- package/dist/tools/github_clone_repo/cachePaths.d.ts +3 -2
- package/dist/tools/github_clone_repo/gitCheckout.d.ts +5 -0
- package/dist/tools/github_clone_repo/scheme.d.ts +3 -3
- package/dist/tools/github_clone_repo/types.d.ts +6 -1
- package/dist/tools/github_fetch_content/finalizer/types.d.ts +10 -2
- package/dist/tools/github_fetch_content/scheme.d.ts +3 -4
- package/dist/tools/github_fetch_content/types.d.ts +4 -3
- package/dist/tools/github_search/scheme.d.ts +24 -23
- package/dist/tools/github_search_code/execution.d.ts +1 -1
- package/dist/tools/github_search_code/finalizer/groups.d.ts +1 -1
- package/dist/tools/github_search_code/finalizer/ranking.d.ts +1 -1
- package/dist/tools/github_search_code/scheme.d.ts +3 -3
- package/dist/tools/github_search_pull_requests/contentResponse/commentsShaping.d.ts +4 -1
- package/dist/tools/github_search_pull_requests/contentResponse/contentView.d.ts +3 -0
- package/dist/tools/github_search_pull_requests/contentResponse/fileSurfaces.d.ts +30 -2
- package/dist/tools/github_search_pull_requests/contentResponse/nextCalls.d.ts +1 -7
- package/dist/tools/github_search_pull_requests/contentResponse/pagination.d.ts +14 -2
- package/dist/tools/github_search_pull_requests/historyContinuations.d.ts +1 -1
- package/dist/tools/github_search_pull_requests/historyDiffContinuations.d.ts +2 -0
- package/dist/tools/github_search_pull_requests/historySchemes.d.ts +23 -22
- package/dist/tools/github_search_pull_requests/scheme.d.ts +17 -9
- package/dist/tools/github_search_pull_requests/splitSchemes.d.ts +35 -26
- package/dist/tools/github_search_pull_requests/types.d.ts +5 -0
- package/dist/tools/github_search_repos/execution/pagination.d.ts +0 -17
- package/dist/tools/github_search_repos/execution/queryVariants.d.ts +1 -23
- package/dist/tools/github_search_repos/execution.d.ts +0 -1
- package/dist/tools/github_search_repos/scheme.d.ts +6 -6
- package/dist/tools/github_view_repo_structure/execution.d.ts +1 -1
- package/dist/tools/github_view_repo_structure/scheme.d.ts +6 -5
- package/dist/tools/local_analyze_graph/analysisTypes.d.ts +16 -3
- package/dist/tools/local_analyze_graph/analyzeGraph.d.ts +1 -1
- package/dist/tools/local_analyze_graph/completeness.d.ts +3 -0
- package/dist/tools/local_analyze_graph/deadCodeScan.d.ts +9 -5
- package/dist/tools/local_analyze_graph/rootInference.d.ts +2 -0
- package/dist/tools/local_analyze_graph/scheme.d.ts +13 -25
- package/dist/tools/local_fetch_content/fetchContent/pagination.d.ts +7 -0
- package/dist/tools/local_fetch_content/scheme.d.ts +3 -3
- package/dist/tools/local_find_files/findFiles.d.ts +1 -1
- package/dist/tools/local_find_files/scheme.d.ts +4 -4
- package/dist/tools/local_ripgrep/execution.d.ts +0 -1
- package/dist/tools/local_ripgrep/rankingProfile/rankingProfiles.d.ts +1 -2
- package/dist/tools/local_ripgrep/rankingProfile/rankingResults.d.ts +2 -2
- package/dist/tools/local_ripgrep/rankingProfile/rankingScoring.d.ts +1 -3
- package/dist/tools/local_ripgrep/ripgrepResultBuilder/buildResult.d.ts +0 -4
- package/dist/tools/local_ripgrep/ripgrepResultBuilder/searchNext.d.ts +1 -0
- package/dist/tools/local_ripgrep/scheme.d.ts +13 -5
- package/dist/tools/local_ripgrep/structuralCompleteness.d.ts +9 -0
- package/dist/tools/local_search/execution.d.ts +0 -1
- package/dist/tools/local_search/scheme.d.ts +46 -46
- package/dist/tools/local_view_structure/scheme.d.ts +5 -5
- package/dist/tools/lsp/semantic_content/scheme.d.ts +29 -7
- package/dist/tools/lsp/semantic_content/semanticAnchored.d.ts +2 -9
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/callEnvelopes.d.ts +2 -2
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/envelopeHelpers.d.ts +2 -1
- package/dist/tools/lsp/semantic_content/semanticEnvelopes/locationEnvelopes.d.ts +2 -3
- package/dist/tools/lsp/semantic_content/semanticFileOps/anchor.d.ts +0 -1
- package/dist/tools/lsp/semantic_content/semanticPresentation.d.ts +1 -0
- package/dist/tools/lsp/semantic_content/semanticSnapshot.d.ts +16 -0
- package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +2 -1
- package/dist/tools/lsp/shared/semanticTypes.d.ts +19 -10
- package/dist/tools/package_search/execution.d.ts +3 -4
- package/dist/tools/package_search/pagination.d.ts +1 -0
- package/dist/tools/package_search/scheme.d.ts +5 -4
- package/dist/tools/providerMappers/codeSearch.d.ts +2 -9
- package/dist/tools/providerMappers/fileContent.d.ts +1 -1
- package/dist/tools/providerMappers/pullRequests.d.ts +24 -4
- package/dist/tools/providerMappers/repoSearch.d.ts +4 -4
- package/dist/tools/providerMappers/repoStructure.d.ts +4 -3
- package/dist/tools/toolAvailability.d.ts +19 -0
- package/dist/tools/toolConfig.d.ts +1 -3
- package/dist/types/toolResults.d.ts +1 -0
- package/dist/utils/contextUtils.d.ts +1 -1
- package/dist/utils/core/types.d.ts +0 -2
- package/dist/utils/exec/npm.d.ts +2 -0
- package/dist/utils/file/byteOffset.d.ts +1 -1
- package/dist/utils/package/common.d.ts +0 -3
- package/dist/utils/package/npm/npmDeprecation.d.ts +1 -2
- package/dist/utils/package/npm/npmDetailsFetchers.d.ts +3 -15
- package/dist/utils/package/npm/npmMappers.d.ts +0 -4
- package/dist/utils/package/npm/npmRegistry.d.ts +9 -1
- package/dist/utils/package/npm/npmSearchStrategies.d.ts +2 -5
- package/dist/utils/package/types.d.ts +3 -0
- package/dist/utils/pagination/types.d.ts +1 -0
- package/dist/utils/response/callToolResult.d.ts +3 -1
- package/package.json +19 -15
- package/dist/errors/pathUtils.d.ts +0 -1
- package/dist/github/directoryFetch.d.ts +0 -3
- package/dist/github/fileContentRaw.d.ts +0 -2
- package/dist/github/issues.d.ts +0 -3
- package/dist/github/prContentFetcher.d.ts +0 -2
- package/dist/github/queryBuilders.d.ts +0 -4
- package/dist/github/repoStructure.d.ts +0 -1
- package/dist/shared/index.d.ts +0 -6
- package/dist/shared/languageSelectors.d.ts +0 -3
- package/dist/toolContract/schemas.d.ts +0 -31
- package/dist/tools/directToolCatalog.d.ts +0 -15
- package/dist/tools/directToolCatalog.meta.d.ts +0 -28
- package/dist/tools/github_search_code/finalizer.d.ts +0 -2
- package/dist/tools/github_search_repos/execution/ranking.d.ts +0 -4
- package/dist/tools/local_ripgrep/rankingProfile.d.ts +0 -35
- package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +0 -2
- package/dist/tools/lsp/semantic_content/index.d.ts +0 -3
- package/dist/tools/lsp/semantic_content/semanticEnvelopes.d.ts +0 -3
- package/dist/tools/lsp/semantic_content/semanticFileOps.d.ts +0 -8
- package/dist/tools/providerMappers.d.ts +0 -11
- package/dist/tools/toolMetadata/baseSchema.d.ts +0 -1
- package/dist/tools/toolMetadata/descriptions.d.ts +0 -1
- package/dist/tools/toolMetadata/proxies.d.ts +0 -4
- package/dist/tools/toolSchemaImports.d.ts +0 -16
- package/dist/utils/exec/spawn.d.ts +0 -2
- package/dist/utils/file/filters.d.ts +0 -2
- package/dist/utils/http/cache.d.ts +0 -5
- package/dist/utils/package/npm.d.ts +0 -2
- package/dist/utils/response/bulk.d.ts +0 -2
|
@@ -2,7 +2,16 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { ToolSpec } from '../../types/index.js';
|
|
3
3
|
export declare const localSearch: ToolSpec;
|
|
4
4
|
export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
6
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
5
7
|
path: z.ZodString;
|
|
8
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
regex: z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
fixed: "fixed";
|
|
12
|
+
smart: "smart";
|
|
13
|
+
perl: "perl";
|
|
14
|
+
}>>;
|
|
6
15
|
sort: z.ZodDefault<z.ZodEnum<{
|
|
7
16
|
path: "path";
|
|
8
17
|
created: "created";
|
|
@@ -11,18 +20,10 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
11
20
|
modified: "modified";
|
|
12
21
|
accessed: "accessed";
|
|
13
22
|
}>>;
|
|
14
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
15
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
16
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
17
23
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
18
24
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
regex: z.ZodDefault<z.ZodEnum<{
|
|
22
|
-
fixed: "fixed";
|
|
23
|
-
smart: "smart";
|
|
24
|
-
perl: "perl";
|
|
25
|
-
}>>;
|
|
25
|
+
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
26
27
|
caseMode: z.ZodDefault<z.ZodEnum<{
|
|
27
28
|
smart: "smart";
|
|
28
29
|
sensitive: "sensitive";
|
|
@@ -31,20 +32,18 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
31
32
|
wholeWord: z.ZodOptional<z.ZodBoolean>;
|
|
32
33
|
invertMatch: z.ZodOptional<z.ZodBoolean>;
|
|
33
34
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
35
|
noIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
36
36
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
matchContentLength: z.ZodDefault<z.ZodNumber>;
|
|
38
38
|
maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
|
|
39
|
-
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
40
39
|
multiline: z.ZodDefault<z.ZodEnum<{
|
|
41
40
|
off: "off";
|
|
42
41
|
on: "on";
|
|
43
42
|
dotall: "dotall";
|
|
44
43
|
}>>;
|
|
45
44
|
rankingProfile: z.ZodDefault<z.ZodEnum<{
|
|
46
|
-
typescript: "typescript";
|
|
47
45
|
auto: "auto";
|
|
46
|
+
typescript: "typescript";
|
|
48
47
|
javascript: "javascript";
|
|
49
48
|
rust: "rust";
|
|
50
49
|
python: "python";
|
|
@@ -56,15 +55,16 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
56
55
|
yaml: "yaml";
|
|
57
56
|
generic: "generic";
|
|
58
57
|
}>>;
|
|
58
|
+
langType: z.ZodOptional<z.ZodString>;
|
|
59
59
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
60
60
|
operation: z.ZodLiteral<"text">;
|
|
61
61
|
searchText: z.ZodString;
|
|
62
62
|
resultView: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
63
63
|
content: "content";
|
|
64
|
-
files: "files";
|
|
65
64
|
paginated: "paginated";
|
|
66
65
|
discovery: "discovery";
|
|
67
66
|
detailed: "detailed";
|
|
67
|
+
files: "files";
|
|
68
68
|
filesWithout: "filesWithout";
|
|
69
69
|
countLines: "countLines";
|
|
70
70
|
countMatches: "countMatches";
|
|
@@ -79,7 +79,11 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
79
79
|
}>>;
|
|
80
80
|
matchWindow: z.ZodOptional<z.ZodNumber>;
|
|
81
81
|
}, z.core.$strict>, z.ZodObject<{
|
|
82
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
83
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
82
84
|
path: z.ZodString;
|
|
85
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
86
|
+
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
83
87
|
sort: z.ZodDefault<z.ZodEnum<{
|
|
84
88
|
path: "path";
|
|
85
89
|
created: "created";
|
|
@@ -88,23 +92,18 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
88
92
|
modified: "modified";
|
|
89
93
|
accessed: "accessed";
|
|
90
94
|
}>>;
|
|
91
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
92
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
93
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
94
95
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
95
96
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
-
langType: z.ZodOptional<z.ZodString>;
|
|
97
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
98
|
-
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
97
|
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
100
|
noIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
101
101
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
102
102
|
matchContentLength: z.ZodDefault<z.ZodNumber>;
|
|
103
103
|
maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
105
104
|
rankingProfile: z.ZodDefault<z.ZodEnum<{
|
|
106
|
-
typescript: "typescript";
|
|
107
105
|
auto: "auto";
|
|
106
|
+
typescript: "typescript";
|
|
108
107
|
javascript: "javascript";
|
|
109
108
|
rust: "rust";
|
|
110
109
|
python: "python";
|
|
@@ -116,6 +115,7 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
116
115
|
yaml: "yaml";
|
|
117
116
|
generic: "generic";
|
|
118
117
|
}>>;
|
|
118
|
+
langType: z.ZodOptional<z.ZodString>;
|
|
119
119
|
captureText: z.ZodOptional<z.ZodBoolean>;
|
|
120
120
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
121
121
|
operation: z.ZodLiteral<"structural">;
|
|
@@ -130,7 +130,11 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
130
130
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
131
131
|
pattern: z.ZodString;
|
|
132
132
|
}, z.core.$strict>, z.ZodObject<{
|
|
133
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
134
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
133
135
|
path: z.ZodString;
|
|
136
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
137
|
+
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
134
138
|
sort: z.ZodDefault<z.ZodEnum<{
|
|
135
139
|
path: "path";
|
|
136
140
|
created: "created";
|
|
@@ -139,23 +143,18 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
139
143
|
modified: "modified";
|
|
140
144
|
accessed: "accessed";
|
|
141
145
|
}>>;
|
|
142
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
143
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
144
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
145
146
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
146
147
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
147
|
-
langType: z.ZodOptional<z.ZodString>;
|
|
148
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
149
|
-
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
148
|
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
151
151
|
noIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
152
152
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
153
153
|
matchContentLength: z.ZodDefault<z.ZodNumber>;
|
|
154
154
|
maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
156
155
|
rankingProfile: z.ZodDefault<z.ZodEnum<{
|
|
157
|
-
typescript: "typescript";
|
|
158
156
|
auto: "auto";
|
|
157
|
+
typescript: "typescript";
|
|
159
158
|
javascript: "javascript";
|
|
160
159
|
rust: "rust";
|
|
161
160
|
python: "python";
|
|
@@ -167,6 +166,7 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
167
166
|
yaml: "yaml";
|
|
168
167
|
generic: "generic";
|
|
169
168
|
}>>;
|
|
169
|
+
langType: z.ZodOptional<z.ZodString>;
|
|
170
170
|
captureText: z.ZodOptional<z.ZodBoolean>;
|
|
171
171
|
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
172
172
|
operation: z.ZodLiteral<"structural">;
|
|
@@ -181,25 +181,25 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
181
181
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
182
182
|
rule: z.ZodString;
|
|
183
183
|
}, z.core.$strict>, z.ZodObject<{
|
|
184
|
-
path: z.ZodString;
|
|
185
|
-
empty: z.ZodOptional<z.ZodBoolean>;
|
|
186
184
|
goal: z.ZodOptional<z.ZodString>;
|
|
187
185
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
186
|
+
path: z.ZodString;
|
|
188
187
|
page: z.ZodDefault<z.ZodNumber>;
|
|
188
|
+
time: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
modifiedWithin: z.ZodOptional<z.ZodString>;
|
|
190
|
+
modifiedBefore: z.ZodOptional<z.ZodString>;
|
|
191
|
+
accessedWithin: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
empty: z.ZodOptional<z.ZodBoolean>;
|
|
189
194
|
size: z.ZodOptional<z.ZodObject<{
|
|
190
195
|
greater: z.ZodOptional<z.ZodString>;
|
|
191
196
|
less: z.ZodOptional<z.ZodString>;
|
|
192
197
|
}, z.core.$strip>>;
|
|
193
198
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
194
|
-
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
195
199
|
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
196
200
|
minDepth: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
197
202
|
pathPattern: z.ZodOptional<z.ZodString>;
|
|
198
|
-
time: z.ZodOptional<z.ZodObject<{
|
|
199
|
-
modifiedWithin: z.ZodOptional<z.ZodString>;
|
|
200
|
-
modifiedBefore: z.ZodOptional<z.ZodString>;
|
|
201
|
-
accessedWithin: z.ZodOptional<z.ZodString>;
|
|
202
|
-
}, z.core.$strip>>;
|
|
203
203
|
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
204
|
entryType: z.ZodOptional<z.ZodEnum<{
|
|
205
205
|
f: "f";
|
|
@@ -212,9 +212,9 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
212
212
|
writable: "writable";
|
|
213
213
|
}>>;
|
|
214
214
|
detail: z.ZodDefault<z.ZodEnum<{
|
|
215
|
-
full: "full";
|
|
216
215
|
modified: "modified";
|
|
217
216
|
basic: "basic";
|
|
217
|
+
full: "full";
|
|
218
218
|
}>>;
|
|
219
219
|
operation: z.ZodLiteral<"files">;
|
|
220
220
|
pathRegex: z.ZodOptional<z.ZodString>;
|
|
@@ -227,11 +227,11 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
227
227
|
}>>;
|
|
228
228
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
229
229
|
}, z.core.$strict>, z.ZodObject<{
|
|
230
|
-
path: z.ZodString;
|
|
231
|
-
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
232
230
|
goal: z.ZodOptional<z.ZodString>;
|
|
233
231
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
232
|
+
path: z.ZodString;
|
|
234
233
|
page: z.ZodDefault<z.ZodNumber>;
|
|
234
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
235
235
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
236
236
|
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
237
237
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -241,18 +241,18 @@ export declare const LocalSearchQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
241
241
|
d: "d";
|
|
242
242
|
}>>;
|
|
243
243
|
detail: z.ZodDefault<z.ZodEnum<{
|
|
244
|
-
full: "full";
|
|
245
244
|
modified: "modified";
|
|
246
245
|
basic: "basic";
|
|
246
|
+
full: "full";
|
|
247
247
|
}>>;
|
|
248
248
|
operation: z.ZodLiteral<"tree">;
|
|
249
249
|
namePattern: z.ZodOptional<z.ZodString>;
|
|
250
250
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
251
251
|
sort: z.ZodDefault<z.ZodEnum<{
|
|
252
|
+
time: "time";
|
|
252
253
|
name: "name";
|
|
253
254
|
extension: "extension";
|
|
254
255
|
size: "size";
|
|
255
|
-
time: "time";
|
|
256
256
|
}>>;
|
|
257
257
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
258
258
|
}, z.core.$strict>]>;
|
|
@@ -76,8 +76,8 @@ export declare const RipgrepQuerySchema: z.ZodObject<{
|
|
|
76
76
|
}>>;
|
|
77
77
|
sortReverse: z.ZodOptional<z.ZodBoolean>;
|
|
78
78
|
rankingProfile: z.ZodDefault<z.ZodEnum<{
|
|
79
|
-
typescript: "typescript";
|
|
80
79
|
auto: "auto";
|
|
80
|
+
typescript: "typescript";
|
|
81
81
|
javascript: "javascript";
|
|
82
82
|
rust: "rust";
|
|
83
83
|
python: "python";
|
|
@@ -15,16 +15,16 @@ export declare const localTreeOperationDescriptions: {
|
|
|
15
15
|
export declare const ViewStructureQuerySchema: z.ZodObject<{
|
|
16
16
|
path: z.ZodString;
|
|
17
17
|
detail: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
full: "full";
|
|
19
18
|
modified: "modified";
|
|
20
19
|
basic: "basic";
|
|
20
|
+
full: "full";
|
|
21
21
|
}>>;
|
|
22
22
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
24
|
+
time: "time";
|
|
24
25
|
name: "name";
|
|
25
26
|
extension: "extension";
|
|
26
27
|
size: "size";
|
|
27
|
-
time: "time";
|
|
28
28
|
}>>;
|
|
29
29
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
pattern: z.ZodOptional<z.ZodString>;
|
|
@@ -5,15 +5,15 @@ export declare const LspGetSemanticsQuerySchema: z.ZodObject<{
|
|
|
5
5
|
uri: z.ZodOptional<z.ZodString>;
|
|
6
6
|
type: z.ZodDefault<z.ZodEnum<{
|
|
7
7
|
definition: "definition";
|
|
8
|
-
documentSymbols: "documentSymbols";
|
|
9
|
-
workspaceSymbol: "workspaceSymbol";
|
|
10
8
|
references: "references";
|
|
11
9
|
callers: "callers";
|
|
12
10
|
callees: "callees";
|
|
13
11
|
callHierarchy: "callHierarchy";
|
|
14
12
|
hover: "hover";
|
|
13
|
+
documentSymbols: "documentSymbols";
|
|
15
14
|
typeDefinition: "typeDefinition";
|
|
16
15
|
implementation: "implementation";
|
|
16
|
+
workspaceSymbol: "workspaceSymbol";
|
|
17
17
|
supertypes: "supertypes";
|
|
18
18
|
subtypes: "subtypes";
|
|
19
19
|
diagnostic: "diagnostic";
|
|
@@ -26,12 +26,21 @@ export declare const LspGetSemanticsQuerySchema: z.ZodObject<{
|
|
|
26
26
|
groupByFile: z.ZodOptional<z.ZodBoolean>;
|
|
27
27
|
page: z.ZodDefault<z.ZodNumber>;
|
|
28
28
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
29
30
|
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
30
31
|
format: z.ZodDefault<z.ZodEnum<{
|
|
31
32
|
structured: "structured";
|
|
32
33
|
compact: "compact";
|
|
33
34
|
}>>;
|
|
34
35
|
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
36
|
+
rustContext: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
features: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
|
|
38
|
+
noDefaultFeatures: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
target: z.ZodOptional<z.ZodString>;
|
|
40
|
+
cfgs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
|
+
buildScripts: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
procMacros: z.ZodDefault<z.ZodBoolean>;
|
|
43
|
+
}, z.core.$strict>>;
|
|
35
44
|
goal: z.ZodOptional<z.ZodString>;
|
|
36
45
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
37
46
|
}, z.core.$strip>;
|
|
@@ -4,7 +4,8 @@ export declare const npmSearch: ToolSpec;
|
|
|
4
4
|
export declare const NpmPackageQuerySchema: z.ZodObject<{
|
|
5
5
|
packageName: z.ZodOptional<z.ZodString>;
|
|
6
6
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
-
page: z.
|
|
7
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
8
9
|
goal: z.ZodOptional<z.ZodString>;
|
|
9
10
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
10
11
|
}, z.core.$strip>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Shared prompt plus the canonical tools-core-owned executable catalog. */
|
|
2
2
|
export declare const localCompleteMetadata: {
|
|
3
3
|
systemPrompt: string;
|
|
4
|
-
toolNames: import("./types.js").ToolNames;
|
|
4
|
+
toolNames: import("./input/types/index.js").ToolNames;
|
|
5
5
|
baseSchema: Record<"goal" | "reasoning", string>;
|
|
6
6
|
tools: {
|
|
7
7
|
[k: string]: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import { RipgrepQuerySchema } from './
|
|
2
|
+
import { RipgrepQuerySchema } from './input/resources/tools/localTextOperation.js';
|
|
3
3
|
type RuntimeRipgrepQuery = z.infer<typeof RipgrepQuerySchema>;
|
|
4
4
|
export interface RipgrepValidationResult {
|
|
5
5
|
isValid: boolean;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Engine-free
|
|
3
|
-
*
|
|
4
|
-
* of `directToolCatalog.meta.ts` (still the public barrel) — see that file's
|
|
5
|
-
* header comment for the full P3 engine-free rationale.
|
|
2
|
+
* Engine-free registry of tool definitions, schemas, categories, and output fields.
|
|
3
|
+
* Public schema consumers import @octocodeai/octocode-tools-core/schema.
|
|
6
4
|
*/
|
|
7
5
|
import { z } from 'zod';
|
|
8
6
|
export type DirectToolInput = Record<string, unknown> & {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* detection (with did-you-mean suggestions). Split
|
|
5
|
-
* out of `directToolCatalog.meta.ts` (still the public barrel) — see that
|
|
6
|
-
* file's header comment for the full P3 rationale.
|
|
2
|
+
* Engine-free input preparation: JSON parsing, envelopes, default fields,
|
|
3
|
+
* and unknown-field validation with spelling suggestions.
|
|
7
4
|
*/
|
|
8
5
|
import { z } from 'zod';
|
|
9
6
|
import { type DirectToolInput, type PrepareDirectToolInputOptions } from './toolCatalogDefinitions.js';
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Direct-tool EXECUTION path (P3).
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* Direct-tool EXECUTION path (P3). Shared runtime and security imports load the
|
|
3
|
+
* native addon here; `ALL_TOOLS` loads each execution handler only when called.
|
|
4
|
+
* This entry is reached only when a tool actually runs. Schema, help, and
|
|
5
|
+
* context use the engine-free
|
|
6
|
+
* `@octocodeai/octocode-tools-core/schema` entry point.
|
|
7
7
|
*/
|
|
8
8
|
import type { CallToolResult } from '@modelcontextprotocol/server';
|
|
9
|
-
import {
|
|
9
|
+
import { type CallToolResultProjection } from '../utils/response/callToolResult.js';
|
|
10
|
+
import { DirectToolInputError } from './directToolCatalog/toolCatalogDefinitions.js';
|
|
10
11
|
type InitializeFn = () => Promise<void>;
|
|
11
12
|
/** @internal — test use only; not part of the public API. */
|
|
12
13
|
export declare function _overrideInitialize(fn: InitializeFn): void;
|
|
13
14
|
/** @internal — test use only; not part of the public API. */
|
|
14
15
|
export declare function _resetInitialize(): void;
|
|
15
|
-
export declare function executeDirectTool(name: string, input: unknown
|
|
16
|
+
export declare function executeDirectTool(name: string, input: unknown, options?: {
|
|
17
|
+
resultProjection?: CallToolResultProjection;
|
|
18
|
+
}): Promise<CallToolResult>;
|
|
16
19
|
export { DirectToolInputError };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { CloneCacheMeta, CacheSource } from './types.js';
|
|
2
|
-
export { cleanupStaleCloneArtifacts, tryRecoverStaleCloneLock, writeCloneLockMeta, } from './cacheArtifacts.js';
|
|
3
|
-
export { getReposBaseDir, getCloneBaseDir, getTreeBaseDir, getCloneDir, getTreeDir, } from './cachePaths.js';
|
|
4
2
|
export declare function readCacheMeta(cloneDir: string): CloneCacheMeta | null;
|
|
5
3
|
export declare function writeCacheMeta(cloneDir: string, meta: CloneCacheMeta): void;
|
|
6
4
|
export declare function isCacheValid(meta: CloneCacheMeta): boolean;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Nonblocking exclusive acquisition shared by cache eviction and writers. */
|
|
2
|
+
export declare function tryAcquireMaterializationLock(lockDir: string): (() => void) | undefined;
|
|
1
3
|
export declare function writeCloneLockMeta(lockDir: string, pid?: number, createdAt?: number): void;
|
|
2
4
|
export declare function tryRecoverStaleCloneLock(lockDir: string, now?: number): boolean;
|
|
3
|
-
export declare function
|
|
5
|
+
export declare function cleanupStaleMaterializationArtifacts(octocodeDir: string, now?: number): number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare function getReposBaseDir(octocodeDir: string): string;
|
|
2
1
|
export declare function getCloneBaseDir(octocodeDir: string): string;
|
|
3
2
|
export declare function getTreeBaseDir(octocodeDir: string): string;
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function getTreeLockDir(octocodeDir: string, cacheRoot: string): string;
|
|
4
|
+
export declare function getCloneLockDir(octocodeDir: string, cacheRoot: string): string;
|
|
5
|
+
export declare function getCloneDir(octocodeDir: string, owner: string, repo: string, branch: string, sparsePath?: string, endpoint?: string): string;
|
|
5
6
|
export declare function getTreeDir(octocodeDir: string, owner: string, repo: string, commitSha: string): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function readHeadCommit(directory: string): Promise<string>;
|
|
2
|
+
export declare function executeCommitClone(commit: string, targetDir: string, sparsePath: string | undefined, url: string, token?: string): Promise<void>;
|
|
3
|
+
export declare function executeFullClone(owner: string, repo: string, branch: string, targetDir: string, url: string, token?: string): Promise<void>;
|
|
4
|
+
export declare function executeSparseClone(owner: string, repo: string, branch: string, targetDir: string, sparsePath: string, url: string, token?: string): Promise<void>;
|
|
5
|
+
export declare function assertGitAvailable(): Promise<void>;
|
|
@@ -9,9 +9,9 @@ export declare const CloneRepoQueryLocalSchema: import("zod").ZodObject<{
|
|
|
9
9
|
reasoning: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
10
|
}, import("zod/v4/core").$strip>;
|
|
11
11
|
export declare const BulkCloneRepoLocalSchema: import("zod").ZodObject<{
|
|
12
|
-
responseCharOffset: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
13
|
-
responseCharLength: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber>>;
|
|
14
|
-
queries: import("zod").ZodArray<import("zod").
|
|
12
|
+
responseCharOffset: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber, unknown>>;
|
|
13
|
+
responseCharLength: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodNumber, unknown>>;
|
|
14
|
+
queries: import("zod").ZodArray<import("zod").ZodTypeAny<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
15
15
|
}, import("zod/v4/core").$strict>;
|
|
16
16
|
interface GitHubCloneRepoLocation {
|
|
17
17
|
kind: 'repo' | 'tree';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CacheSource = 'clone' | '
|
|
1
|
+
export type CacheSource = 'clone' | 'treeFetch';
|
|
2
2
|
export interface CloneCacheMeta {
|
|
3
3
|
clonedAt: string;
|
|
4
4
|
expiresAt: string;
|
|
@@ -10,10 +10,15 @@ export interface CloneCacheMeta {
|
|
|
10
10
|
sparsePath?: string;
|
|
11
11
|
source: CacheSource;
|
|
12
12
|
sizeBytes?: number;
|
|
13
|
+
/** Immutable materialization generation selected by this atomic cache record. */
|
|
14
|
+
snapshotId?: string;
|
|
13
15
|
}
|
|
14
16
|
export interface CloneRepoResult {
|
|
15
17
|
localPath: string;
|
|
16
18
|
cached: boolean;
|
|
19
|
+
commitSha: string;
|
|
20
|
+
/** Fresh checkout verification; cached working-tree contents are not reverified. */
|
|
21
|
+
verified: boolean;
|
|
17
22
|
owner: string;
|
|
18
23
|
repo: string;
|
|
19
24
|
branch: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import type { FileContentQuerySchema } from '../../../toolContract/
|
|
2
|
+
import type { FileContentQuerySchema } from '../../../toolContract/input/resources/tools/ghGetFileContent.js';
|
|
3
3
|
type FileContentQuery = z.infer<typeof FileContentQuerySchema>;
|
|
4
4
|
import type { PaginationInfo } from '../../../types/toolResults.js';
|
|
5
5
|
import type { QueryWithPagination } from '../../../utils/response/groupedFinalizer.js';
|
|
@@ -19,6 +19,9 @@ export type FileEntry = {
|
|
|
19
19
|
commitSha?: string;
|
|
20
20
|
pagination?: PaginationInfo;
|
|
21
21
|
isPartial?: boolean;
|
|
22
|
+
errorCode?: 'contentSecurityLimit';
|
|
23
|
+
terminalLimit?: boolean;
|
|
24
|
+
partialReasons?: Array<'security-selected-view-size-limit'>;
|
|
22
25
|
startLine?: number;
|
|
23
26
|
endLine?: number;
|
|
24
27
|
matchRanges?: Array<{
|
|
@@ -36,6 +39,12 @@ export type FileEntry = {
|
|
|
36
39
|
next?: FileContentNextMap;
|
|
37
40
|
};
|
|
38
41
|
export type FileContentNextMap = {
|
|
42
|
+
readBoundedLines?: {
|
|
43
|
+
tool: 'ghGetFileContent';
|
|
44
|
+
query: Record<string, unknown>;
|
|
45
|
+
why: string;
|
|
46
|
+
confidence: 'exact';
|
|
47
|
+
};
|
|
39
48
|
continueChars?: {
|
|
40
49
|
tool: 'ghGetFileContent';
|
|
41
50
|
query: Record<string, unknown>;
|
|
@@ -76,7 +85,6 @@ export type DirectoryEntry = {
|
|
|
76
85
|
savedFileCount?: number;
|
|
77
86
|
skipped?: {
|
|
78
87
|
nonFile: number;
|
|
79
|
-
missingDownloadUrl: number;
|
|
80
88
|
oversized: number;
|
|
81
89
|
binary: number;
|
|
82
90
|
fileLimit: number;
|
|
@@ -32,9 +32,9 @@ export declare const FileContentQueryLocalSchema: z.ZodObject<{
|
|
|
32
32
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
export declare const FileContentBulkQueryLocalSchema: z.ZodObject<{
|
|
35
|
-
responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
36
|
-
responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber>>;
|
|
37
|
-
queries: z.ZodArray<z.
|
|
35
|
+
responseCharOffset: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
|
|
36
|
+
responseCharLength: z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>;
|
|
37
|
+
queries: z.ZodArray<z.ZodTypeAny<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
38
38
|
}, z.core.$strict>;
|
|
39
39
|
export type GitHubFetchFilePagination = (CharPagination & {
|
|
40
40
|
nextPage?: number;
|
|
@@ -86,7 +86,6 @@ export interface GitHubFetchDirectoryEntry {
|
|
|
86
86
|
savedFileCount?: number;
|
|
87
87
|
skipped?: {
|
|
88
88
|
nonFile: number;
|
|
89
|
-
missingDownloadUrl: number;
|
|
90
89
|
oversized: number;
|
|
91
90
|
binary: number;
|
|
92
91
|
fileLimit: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import type { FileContentQuerySchema } from '../../toolContract/
|
|
2
|
+
import type { FileContentQuerySchema } from '../../toolContract/input/resources/tools/ghGetFileContent.js';
|
|
3
3
|
import type { MinifyMode } from '../../scheme/fields.js';
|
|
4
4
|
type FileContentQuery = z.infer<typeof FileContentQuerySchema>;
|
|
5
5
|
import type { PaginationInfo } from '../../types/toolResults.js';
|
|
@@ -23,6 +23,9 @@ export interface GitHubFileContentApiData {
|
|
|
23
23
|
startLine?: number;
|
|
24
24
|
endLine?: number;
|
|
25
25
|
isPartial?: boolean;
|
|
26
|
+
errorCode?: 'contentSecurityLimit';
|
|
27
|
+
terminalLimit?: boolean;
|
|
28
|
+
partialReasons?: Array<'security-selected-view-size-limit'>;
|
|
26
29
|
totalLines?: number;
|
|
27
30
|
sourceChars?: number;
|
|
28
31
|
matchRanges?: Array<{
|
|
@@ -39,7 +42,6 @@ export interface GitHubFileContentApiData {
|
|
|
39
42
|
cached?: boolean;
|
|
40
43
|
matchNotFound?: boolean;
|
|
41
44
|
searchedFor?: string;
|
|
42
|
-
signaturesExtracted?: boolean;
|
|
43
45
|
}
|
|
44
46
|
interface GitHubFileContentApiResultBase {
|
|
45
47
|
error?: string;
|
|
@@ -70,7 +72,6 @@ export interface DirectoryFetchResult {
|
|
|
70
72
|
savedFileCount: number;
|
|
71
73
|
skipped: {
|
|
72
74
|
nonFile: number;
|
|
73
|
-
missingDownloadUrl: number;
|
|
74
75
|
oversized: number;
|
|
75
76
|
binary: number;
|
|
76
77
|
fileLimit: number;
|