@octocodeai/octocode-tools-core 16.2.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/dist/commands/BaseCommandBuilder.d.ts +14 -0
- package/dist/commands/FindCommandBuilder.d.ts +23 -0
- package/dist/commands/LsCommandBuilder.d.ts +15 -0
- package/dist/commands/RipgrepCommandBuilder.d.ts +27 -0
- package/dist/config.d.ts +16 -0
- package/dist/direct.d.ts +3 -0
- package/dist/direct.js +53 -0
- package/dist/errors/ToolError.d.ts +21 -0
- package/dist/errors/domainErrors.d.ts +310 -0
- package/dist/errors/errorFactories.d.ts +12 -0
- package/dist/errors/localToolErrors.d.ts +29 -0
- package/dist/errors/pathUtils.d.ts +1 -0
- package/dist/github/client.d.ts +12 -0
- package/dist/github/codeSearch.d.ts +8 -0
- package/dist/github/directoryFetch.d.ts +5 -0
- package/dist/github/errorConstants.d.ts +81 -0
- package/dist/github/errors.d.ts +3 -0
- package/dist/github/fileContent.d.ts +4 -0
- package/dist/github/fileContentProcess.d.ts +11 -0
- package/dist/github/fileContentRaw.d.ts +12 -0
- package/dist/github/githubAPI.d.ts +237 -0
- package/dist/github/history.d.ts +16 -0
- package/dist/github/prByNumber.d.ts +5 -0
- package/dist/github/prContentFetcher.d.ts +5 -0
- package/dist/github/prTransformation.d.ts +109 -0
- package/dist/github/pullRequestSearch.d.ts +4 -0
- package/dist/github/queryBuilders.d.ts +12 -0
- package/dist/github/repoSearch.d.ts +25 -0
- package/dist/github/repoStructure.d.ts +7 -0
- package/dist/github/repoStructurePagination.d.ts +6 -0
- package/dist/github/repoStructureRecursive.d.ts +3 -0
- package/dist/github/responseHeaders.d.ts +1 -0
- package/dist/hints/dynamic.d.ts +6 -0
- package/dist/hints/index.d.ts +2 -0
- package/dist/hints/types.d.ts +1 -0
- package/dist/index.d.ts +187 -0
- package/dist/index.js +64 -0
- package/dist/providers/capabilities.d.ts +2 -0
- package/dist/providers/factory.d.ts +9 -0
- package/dist/providers/github/GitHubProvider.d.ts +14 -0
- package/dist/providers/github/githubContent.d.ts +9 -0
- package/dist/providers/github/githubPullRequests.d.ts +12 -0
- package/dist/providers/github/githubSearch.d.ts +12 -0
- package/dist/providers/github/githubStructure.d.ts +9 -0
- package/dist/providers/github/utils.d.ts +10 -0
- package/dist/providers/providerQueries.d.ts +111 -0
- package/dist/providers/providerResults.d.ts +175 -0
- package/dist/providers/types.d.ts +48 -0
- package/dist/responses.d.ts +47 -0
- package/dist/scheme/coreSchemas.d.ts +10 -0
- package/dist/scheme/fields.d.ts +13 -0
- package/dist/scheme/responseEnvelope.d.ts +16 -0
- package/dist/security/bridge.d.ts +10 -0
- package/dist/serverConfig.d.ts +23 -0
- package/dist/session.d.ts +25 -0
- package/dist/tools/directToolCatalog.d.ts +56 -0
- package/dist/tools/executionGuard.d.ts +14 -0
- package/dist/tools/github_clone_repo/cache.d.ts +21 -0
- package/dist/tools/github_clone_repo/cloneRepo.d.ts +6 -0
- package/dist/tools/github_clone_repo/execution.d.ts +8 -0
- package/dist/tools/github_clone_repo/hints.d.ts +2 -0
- package/dist/tools/github_clone_repo/scheme.d.ts +50 -0
- package/dist/tools/github_clone_repo/types.d.ts +19 -0
- package/dist/tools/github_fetch_content/execution.d.ts +7 -0
- package/dist/tools/github_fetch_content/finalizer.d.ts +10 -0
- package/dist/tools/github_fetch_content/hints.d.ts +2 -0
- package/dist/tools/github_fetch_content/scheme.d.ts +120 -0
- package/dist/tools/github_fetch_content/types.d.ts +66 -0
- package/dist/tools/github_search_code/execution.d.ts +8 -0
- package/dist/tools/github_search_code/finalizer.d.ts +6 -0
- package/dist/tools/github_search_code/hints.d.ts +2 -0
- package/dist/tools/github_search_code/scheme.d.ts +88 -0
- package/dist/tools/github_search_pull_requests/contentRequest.d.ts +52 -0
- package/dist/tools/github_search_pull_requests/contentResponse.d.ts +18 -0
- package/dist/tools/github_search_pull_requests/execution.d.ts +17 -0
- package/dist/tools/github_search_pull_requests/hints.d.ts +2 -0
- package/dist/tools/github_search_pull_requests/scheme.d.ts +224 -0
- package/dist/tools/github_search_pull_requests/types.d.ts +120 -0
- package/dist/tools/github_search_repos/execution.d.ts +17 -0
- package/dist/tools/github_search_repos/hints.d.ts +2 -0
- package/dist/tools/github_search_repos/scheme.d.ts +96 -0
- package/dist/tools/github_view_repo_structure/constants.d.ts +4 -0
- package/dist/tools/github_view_repo_structure/execution.d.ts +20 -0
- package/dist/tools/github_view_repo_structure/hints.d.ts +2 -0
- package/dist/tools/github_view_repo_structure/scheme.d.ts +81 -0
- package/dist/tools/github_view_repo_structure/types.d.ts +39 -0
- package/dist/tools/local_binary_inspect/archiveOps.d.ts +22 -0
- package/dist/tools/local_binary_inspect/binaryInspector.d.ts +49 -0
- package/dist/tools/local_binary_inspect/binaryOps.d.ts +18 -0
- package/dist/tools/local_binary_inspect/decompressOps.d.ts +16 -0
- package/dist/tools/local_binary_inspect/execution.d.ts +4 -0
- package/dist/tools/local_binary_inspect/scheme.d.ts +44 -0
- package/dist/tools/local_fetch_content/contentExtractor.d.ts +9 -0
- package/dist/tools/local_fetch_content/execution.d.ts +5 -0
- package/dist/tools/local_fetch_content/fetchContent.d.ts +4 -0
- package/dist/tools/local_fetch_content/hints.d.ts +2 -0
- package/dist/tools/local_fetch_content/scheme.d.ts +31 -0
- package/dist/tools/local_find_files/execution.d.ts +5 -0
- package/dist/tools/local_find_files/findFiles.d.ts +11 -0
- package/dist/tools/local_find_files/hints.d.ts +2 -0
- package/dist/tools/local_find_files/scheme.d.ts +9 -0
- package/dist/tools/local_ripgrep/execution.d.ts +5 -0
- package/dist/tools/local_ripgrep/grepFallbackExecutor.d.ts +3 -0
- package/dist/tools/local_ripgrep/hints.d.ts +2 -0
- package/dist/tools/local_ripgrep/patternValidation.d.ts +12 -0
- package/dist/tools/local_ripgrep/ripgrepExecutor.d.ts +3 -0
- package/dist/tools/local_ripgrep/ripgrepParser.d.ts +9 -0
- package/dist/tools/local_ripgrep/ripgrepResultBuilder.d.ts +9 -0
- package/dist/tools/local_ripgrep/scheme.d.ts +55 -0
- package/dist/tools/local_ripgrep/searchContentRipgrep.d.ts +5 -0
- package/dist/tools/local_ripgrep/structuralSearch.d.ts +9 -0
- package/dist/tools/local_view_structure/execution.d.ts +5 -0
- package/dist/tools/local_view_structure/hints.d.ts +2 -0
- package/dist/tools/local_view_structure/local_view_structure.d.ts +7 -0
- package/dist/tools/local_view_structure/scheme.d.ts +33 -0
- package/dist/tools/local_view_structure/structureFilters.d.ts +33 -0
- package/dist/tools/local_view_structure/structureParser.d.ts +3 -0
- package/dist/tools/local_view_structure/structureResponse.d.ts +32 -0
- package/dist/tools/local_view_structure/structureWalker.d.ts +24 -0
- package/dist/tools/lsp/semantic_content/execution.d.ts +4 -0
- package/dist/tools/lsp/semantic_content/hints.d.ts +4 -0
- package/dist/tools/lsp/semantic_content/index.d.ts +2 -0
- package/dist/tools/lsp/semantic_content/scheme.d.ts +509 -0
- package/dist/tools/lsp/shared/callHierarchyTraversal.d.ts +11 -0
- package/dist/tools/lsp/shared/resolveSymbolAnchor.d.ts +20 -0
- package/dist/tools/lsp/shared/semanticTypes.d.ts +134 -0
- package/dist/tools/package_search/execution.d.ts +7 -0
- package/dist/tools/package_search/hints.d.ts +2 -0
- package/dist/tools/package_search/scheme.d.ts +51 -0
- package/dist/tools/providerExecution.d.ts +51 -0
- package/dist/tools/providerMappers.d.ts +277 -0
- package/dist/tools/toolConfig.d.ts +41 -0
- package/dist/tools/toolMetadata/baseSchema.d.ts +2 -0
- package/dist/tools/toolMetadata/descriptions.d.ts +1 -0
- package/dist/tools/toolMetadata/gateway.d.ts +7 -0
- package/dist/tools/toolMetadata/metadataPresence.d.ts +1 -0
- package/dist/tools/toolMetadata/names.d.ts +2 -0
- package/dist/tools/toolMetadata/proxies.d.ts +10 -0
- package/dist/tools/toolMetadata/state.d.ts +5 -0
- package/dist/tools/toolMetadata/types.d.ts +2 -0
- package/dist/tools/toolNames.d.ts +2 -0
- package/dist/tools/utils.d.ts +27 -0
- package/dist/types/bulk.d.ts +41 -0
- package/dist/types/execution.d.ts +11 -0
- package/dist/types/metadata.d.ts +69 -0
- package/dist/types/promise.d.ts +12 -0
- package/dist/types/responseTypes.d.ts +57 -0
- package/dist/types/server.d.ts +15 -0
- package/dist/types/session.d.ts +29 -0
- package/dist/types/toolResults.d.ts +62 -0
- package/dist/utils/contextUtils.d.ts +31 -0
- package/dist/utils/core/bestEffort.d.ts +2 -0
- package/dist/utils/core/compare.d.ts +1 -0
- package/dist/utils/core/constants.d.ts +47 -0
- package/dist/utils/core/promise.d.ts +2 -0
- package/dist/utils/core/safeRegex.d.ts +5 -0
- package/dist/utils/core/types.d.ts +50 -0
- package/dist/utils/environment/environmentDetection.d.ts +5 -0
- package/dist/utils/exec/commandAvailability.d.ts +19 -0
- package/dist/utils/exec/npm.d.ts +16 -0
- package/dist/utils/exec/ripgrepBinary.d.ts +3 -0
- package/dist/utils/exec/safe.d.ts +2 -0
- package/dist/utils/exec/spawn.d.ts +34 -0
- package/dist/utils/file/byteOffset.d.ts +12 -0
- package/dist/utils/file/filters.d.ts +11 -0
- package/dist/utils/file/size.d.ts +2 -0
- package/dist/utils/file/toolHelpers.d.ts +28 -0
- package/dist/utils/http/cache.d.ts +16 -0
- package/dist/utils/http/circuitBreaker.d.ts +17 -0
- package/dist/utils/http/fetch.d.ts +13 -0
- package/dist/utils/package/common.d.ts +5 -0
- package/dist/utils/package/npm.d.ts +8 -0
- package/dist/utils/package/schemas.d.ts +60 -0
- package/dist/utils/package/types.d.ts +55 -0
- package/dist/utils/pagination/boundary.d.ts +11 -0
- package/dist/utils/pagination/charLimit.d.ts +3 -0
- package/dist/utils/pagination/core.d.ts +15 -0
- package/dist/utils/pagination/hints.d.ts +3 -0
- package/dist/utils/pagination/outputSizeLimit.d.ts +16 -0
- package/dist/utils/pagination/types.d.ts +43 -0
- package/dist/utils/parsers/diff.d.ts +2 -0
- package/dist/utils/parsers/ripgrep.d.ts +11 -0
- package/dist/utils/parsers/schemas.d.ts +72 -0
- package/dist/utils/response/bulk.d.ts +5 -0
- package/dist/utils/response/callToolResult.d.ts +3 -0
- package/dist/utils/response/charSavings.d.ts +3 -0
- package/dist/utils/response/error.d.ts +20 -0
- package/dist/utils/response/groupedFinalizer.d.ts +37 -0
- package/dist/utils/response/pathRelativize.d.ts +9 -0
- package/dist/utils/response/structuredPagination.d.ts +9 -0
- package/dist/zod.d.ts +1 -0
- package/dist/zod.js +8 -0
- package/package.json +66 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import type { components } from '@octokit/openapi-types';
|
|
2
|
+
import type { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods';
|
|
3
|
+
export type Repository = components['schemas']['full-repository'];
|
|
4
|
+
export type ContentDirectoryEntry = components['schemas']['content-directory'][number];
|
|
5
|
+
export type CodeSearchResultItem = components['schemas']['code-search-result-item'];
|
|
6
|
+
export type RepoSearchResultItem = components['schemas']['repo-search-result-item'];
|
|
7
|
+
export type IssueSearchResultItem = components['schemas']['issue-search-result-item'];
|
|
8
|
+
export type DiffEntry = components['schemas']['diff-entry'];
|
|
9
|
+
export type PullRequestItem = components['schemas']['pull-request'];
|
|
10
|
+
export type PullRequestSimple = components['schemas']['pull-request-simple'];
|
|
11
|
+
export type IssueComment = components['schemas']['issue-comment'];
|
|
12
|
+
export interface PRReviewInfo {
|
|
13
|
+
id: string;
|
|
14
|
+
user: string;
|
|
15
|
+
state: string;
|
|
16
|
+
body: string;
|
|
17
|
+
submitted_at?: string;
|
|
18
|
+
commit_id?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CommitFileInfo {
|
|
21
|
+
filename: string;
|
|
22
|
+
status: string;
|
|
23
|
+
additions: number;
|
|
24
|
+
deletions: number;
|
|
25
|
+
changes?: number;
|
|
26
|
+
patch?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CommitInfo {
|
|
29
|
+
sha: string;
|
|
30
|
+
message: string;
|
|
31
|
+
author: string;
|
|
32
|
+
date: string;
|
|
33
|
+
files: CommitFileInfo[];
|
|
34
|
+
}
|
|
35
|
+
export interface HistoryCommitFile {
|
|
36
|
+
filename: string;
|
|
37
|
+
status: string;
|
|
38
|
+
additions: number;
|
|
39
|
+
deletions: number;
|
|
40
|
+
patch?: string;
|
|
41
|
+
previousFilename?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface HistoryCommit {
|
|
44
|
+
sha: string;
|
|
45
|
+
date: string;
|
|
46
|
+
message: string;
|
|
47
|
+
messageHeadline: string;
|
|
48
|
+
url: string;
|
|
49
|
+
author: {
|
|
50
|
+
name: string;
|
|
51
|
+
email: string;
|
|
52
|
+
login?: string;
|
|
53
|
+
};
|
|
54
|
+
committer?: {
|
|
55
|
+
name: string;
|
|
56
|
+
email: string;
|
|
57
|
+
login?: string;
|
|
58
|
+
};
|
|
59
|
+
additions?: number;
|
|
60
|
+
deletions?: number;
|
|
61
|
+
status?: string;
|
|
62
|
+
patch?: string;
|
|
63
|
+
previousFilename?: string;
|
|
64
|
+
files?: HistoryCommitFile[];
|
|
65
|
+
}
|
|
66
|
+
export interface HistoryResult {
|
|
67
|
+
type: 'file' | 'repo';
|
|
68
|
+
owner: string;
|
|
69
|
+
repo: string;
|
|
70
|
+
path?: string;
|
|
71
|
+
commits: HistoryCommit[];
|
|
72
|
+
pagination: {
|
|
73
|
+
page: number;
|
|
74
|
+
perPage: number;
|
|
75
|
+
hasMore: boolean;
|
|
76
|
+
nextPage?: number;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export type GetContentParameters = RestEndpointMethodTypes['repos']['getContent']['parameters'];
|
|
80
|
+
export type SearchCodeParameters = RestEndpointMethodTypes['search']['code']['parameters'];
|
|
81
|
+
export type SearchCodeResponse = RestEndpointMethodTypes['search']['code']['response'];
|
|
82
|
+
export type SearchReposParameters = RestEndpointMethodTypes['search']['repos']['parameters'];
|
|
83
|
+
export interface GitHubAPIError {
|
|
84
|
+
error: string;
|
|
85
|
+
status?: number;
|
|
86
|
+
type: 'http' | 'graphql' | 'network' | 'unknown';
|
|
87
|
+
scopesSuggestion?: string;
|
|
88
|
+
rateLimitRemaining?: number;
|
|
89
|
+
rateLimitReset?: number;
|
|
90
|
+
retryAfter?: number;
|
|
91
|
+
hints?: string[];
|
|
92
|
+
}
|
|
93
|
+
export interface GitHubAPISuccess<T> {
|
|
94
|
+
data: T;
|
|
95
|
+
status: number;
|
|
96
|
+
headers?: Record<string, string>;
|
|
97
|
+
rawResponseChars?: number;
|
|
98
|
+
}
|
|
99
|
+
export type GitHubAPIResponse<T> = GitHubAPISuccess<T> | GitHubAPIError;
|
|
100
|
+
export type OptimizedCodeSearchResult = {
|
|
101
|
+
items: Array<Pick<CodeSearchResultItem, 'path' | 'url'> & {
|
|
102
|
+
matches: Array<{
|
|
103
|
+
context: string;
|
|
104
|
+
positions: [number, number][];
|
|
105
|
+
}>;
|
|
106
|
+
repository: {
|
|
107
|
+
nameWithOwner: string;
|
|
108
|
+
url: string;
|
|
109
|
+
pushedAt?: string;
|
|
110
|
+
};
|
|
111
|
+
minificationType?: string;
|
|
112
|
+
lastModifiedAt?: string;
|
|
113
|
+
}>;
|
|
114
|
+
total_count: number;
|
|
115
|
+
repository?: {
|
|
116
|
+
name: string;
|
|
117
|
+
url: string;
|
|
118
|
+
createdAt?: string;
|
|
119
|
+
updatedAt?: string;
|
|
120
|
+
pushedAt?: string;
|
|
121
|
+
};
|
|
122
|
+
matchLocations?: string[];
|
|
123
|
+
minified?: boolean;
|
|
124
|
+
minificationFailed?: boolean;
|
|
125
|
+
minificationTypes?: string[];
|
|
126
|
+
_researchContext?: {
|
|
127
|
+
uniqueFileCount: number;
|
|
128
|
+
repositoryContext?: {
|
|
129
|
+
owner: string;
|
|
130
|
+
repo: string;
|
|
131
|
+
branch?: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
pagination?: {
|
|
135
|
+
currentPage: number;
|
|
136
|
+
totalPages: number;
|
|
137
|
+
perPage: number;
|
|
138
|
+
totalMatches?: number;
|
|
139
|
+
reportedTotalMatches?: number;
|
|
140
|
+
reachableTotalMatches?: number;
|
|
141
|
+
totalMatchesKind?: 'exact' | 'reported' | 'lowerBound';
|
|
142
|
+
totalMatchesCapped?: boolean;
|
|
143
|
+
hasMore: boolean;
|
|
144
|
+
uniqueFileCount?: number;
|
|
145
|
+
};
|
|
146
|
+
nonExistentScope?: boolean;
|
|
147
|
+
};
|
|
148
|
+
export interface PRCommentItem {
|
|
149
|
+
id: string;
|
|
150
|
+
user: string;
|
|
151
|
+
body: string;
|
|
152
|
+
created_at: string;
|
|
153
|
+
updated_at: string;
|
|
154
|
+
commentType?: 'discussion' | 'review_inline';
|
|
155
|
+
path?: string;
|
|
156
|
+
line?: number;
|
|
157
|
+
in_reply_to_id?: number | null;
|
|
158
|
+
}
|
|
159
|
+
export type GitHubPullRequestItem = Pick<IssueSearchResultItem, 'number' | 'title' | 'body' | 'state' | 'created_at' | 'updated_at' | 'closed_at' | 'url' | 'draft'> & {
|
|
160
|
+
author: string;
|
|
161
|
+
labels: string[];
|
|
162
|
+
merged_at?: string;
|
|
163
|
+
comments?: PRCommentItem[];
|
|
164
|
+
total_comment_count?: number;
|
|
165
|
+
reactions: number;
|
|
166
|
+
head?: string;
|
|
167
|
+
base?: string;
|
|
168
|
+
head_sha?: string;
|
|
169
|
+
base_sha?: string;
|
|
170
|
+
additions?: number;
|
|
171
|
+
deletions?: number;
|
|
172
|
+
file_changes?: {
|
|
173
|
+
total_count: number;
|
|
174
|
+
files: DiffEntry[];
|
|
175
|
+
};
|
|
176
|
+
commits?: CommitInfo[];
|
|
177
|
+
reviews?: PRReviewInfo[];
|
|
178
|
+
_sanitization_warnings?: string[];
|
|
179
|
+
};
|
|
180
|
+
export interface GitHubPullRequestsSearchParams {
|
|
181
|
+
query?: string;
|
|
182
|
+
owner?: string | string[];
|
|
183
|
+
repo?: string | string[];
|
|
184
|
+
prNumber?: number;
|
|
185
|
+
state?: 'open' | 'closed' | 'merged';
|
|
186
|
+
draft?: boolean;
|
|
187
|
+
merged?: boolean;
|
|
188
|
+
author?: string;
|
|
189
|
+
assignee?: string;
|
|
190
|
+
mentions?: string;
|
|
191
|
+
commenter?: string;
|
|
192
|
+
involves?: string;
|
|
193
|
+
'reviewed-by'?: string;
|
|
194
|
+
'review-requested'?: string;
|
|
195
|
+
head?: string;
|
|
196
|
+
base?: string;
|
|
197
|
+
created?: string;
|
|
198
|
+
updated?: string;
|
|
199
|
+
'merged-at'?: string;
|
|
200
|
+
closed?: string;
|
|
201
|
+
comments?: number | string;
|
|
202
|
+
reactions?: number | string;
|
|
203
|
+
interactions?: number | string;
|
|
204
|
+
label?: string | string[];
|
|
205
|
+
milestone?: string;
|
|
206
|
+
language?: string;
|
|
207
|
+
checks?: 'pending' | 'success' | 'failure';
|
|
208
|
+
review?: 'none' | 'required' | 'approved' | 'changes_requested';
|
|
209
|
+
locked?: boolean;
|
|
210
|
+
visibility?: 'public' | 'private';
|
|
211
|
+
'team-mentions'?: string;
|
|
212
|
+
project?: string;
|
|
213
|
+
'no-assignee'?: boolean;
|
|
214
|
+
'no-label'?: boolean;
|
|
215
|
+
'no-milestone'?: boolean;
|
|
216
|
+
'no-project'?: boolean;
|
|
217
|
+
match?: ('title' | 'body' | 'comments')[];
|
|
218
|
+
archived?: boolean;
|
|
219
|
+
sort?: 'created' | 'updated' | 'best-match' | 'comments' | 'reactions';
|
|
220
|
+
order?: 'asc' | 'desc';
|
|
221
|
+
limit?: number;
|
|
222
|
+
exhaustive?: boolean;
|
|
223
|
+
maxPages?: number;
|
|
224
|
+
pageSize?: number;
|
|
225
|
+
page?: number;
|
|
226
|
+
charOffset?: number;
|
|
227
|
+
charLength?: number;
|
|
228
|
+
content?: unknown;
|
|
229
|
+
reviewMode?: 'summary' | 'full';
|
|
230
|
+
filePage?: number;
|
|
231
|
+
commentPage?: number;
|
|
232
|
+
commitPage?: number;
|
|
233
|
+
itemsPerPage?: number;
|
|
234
|
+
}
|
|
235
|
+
export declare function isGitHubAPIError(obj: unknown): obj is GitHubAPIError;
|
|
236
|
+
export declare function isGitHubAPISuccess<T>(obj: unknown): obj is GitHubAPISuccess<T>;
|
|
237
|
+
export declare function isRepository(obj: unknown): obj is Repository;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
|
|
2
|
+
import type { GitHubAPIResponse, HistoryResult } from './githubAPI.js';
|
|
3
|
+
export declare function fetchHistory(params: {
|
|
4
|
+
type: 'file' | 'repo';
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
path?: string;
|
|
8
|
+
branch?: string;
|
|
9
|
+
since?: string;
|
|
10
|
+
until?: string;
|
|
11
|
+
author?: string;
|
|
12
|
+
page: number;
|
|
13
|
+
perPage: number;
|
|
14
|
+
includeDiff: boolean;
|
|
15
|
+
charLength?: number;
|
|
16
|
+
}, authInfo?: AuthInfo): Promise<GitHubAPIResponse<HistoryResult>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GitHubPullRequestsSearchParams } from './githubAPI.js';
|
|
2
|
+
import type { GitHubPullRequestSearchApiResult } from '../tools/github_search_pull_requests/types.js';
|
|
3
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
|
|
4
|
+
export declare function fetchGitHubPullRequestByNumberAPI(params: GitHubPullRequestsSearchParams, authInfo?: AuthInfo, sessionId?: string): Promise<GitHubPullRequestSearchApiResult>;
|
|
5
|
+
export declare function fetchGitHubPullRequestByNumberAPIInternal(params: GitHubPullRequestsSearchParams, authInfo?: AuthInfo): Promise<GitHubPullRequestSearchApiResult>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GitHubPullRequestsSearchParams, GitHubPullRequestItem, IssueSearchResultItem, PullRequestSimple, PullRequestItem } from './githubAPI.js';
|
|
2
|
+
import { OctokitWithThrottling } from './client.js';
|
|
3
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
|
|
4
|
+
export declare function transformPullRequestItemFromSearch(item: IssueSearchResultItem, params: GitHubPullRequestsSearchParams, octokit: InstanceType<typeof OctokitWithThrottling>): Promise<GitHubPullRequestItem>;
|
|
5
|
+
export declare function transformPullRequestItemFromREST(item: PullRequestSimple | PullRequestItem, params: GitHubPullRequestsSearchParams, octokit: InstanceType<typeof OctokitWithThrottling>, authInfo?: AuthInfo): Promise<GitHubPullRequestItem>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { GitHubPullRequestsSearchParams, GitHubPullRequestItem, DiffEntry, CommitFileInfo } from './githubAPI.js';
|
|
2
|
+
interface RawPRData {
|
|
3
|
+
number: number;
|
|
4
|
+
title?: string | null;
|
|
5
|
+
body?: string | null;
|
|
6
|
+
state?: string | null;
|
|
7
|
+
user?: {
|
|
8
|
+
login: string;
|
|
9
|
+
} | null;
|
|
10
|
+
labels?: (string | {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
})[] | null;
|
|
13
|
+
created_at?: string | null;
|
|
14
|
+
updated_at?: string | null;
|
|
15
|
+
closed_at?: string | null;
|
|
16
|
+
html_url: string;
|
|
17
|
+
draft?: boolean | null;
|
|
18
|
+
merged_at?: string | null;
|
|
19
|
+
head?: {
|
|
20
|
+
ref?: string;
|
|
21
|
+
sha?: string;
|
|
22
|
+
};
|
|
23
|
+
base?: {
|
|
24
|
+
ref?: string;
|
|
25
|
+
sha?: string;
|
|
26
|
+
};
|
|
27
|
+
comments?: number | null;
|
|
28
|
+
}
|
|
29
|
+
export declare function createBasePRTransformation(item: RawPRData): {
|
|
30
|
+
prData: GitHubPullRequestItem;
|
|
31
|
+
sanitizationWarnings: Set<string>;
|
|
32
|
+
};
|
|
33
|
+
interface PRResponseFormatOptions {
|
|
34
|
+
includeFullBody?: boolean;
|
|
35
|
+
includeFullCommentDetails?: boolean;
|
|
36
|
+
charOffset?: number;
|
|
37
|
+
charLength?: number;
|
|
38
|
+
}
|
|
39
|
+
interface TextPaginationInfo {
|
|
40
|
+
charOffset: number;
|
|
41
|
+
charLength: number;
|
|
42
|
+
totalChars: number;
|
|
43
|
+
hasMore: boolean;
|
|
44
|
+
nextCharOffset?: number;
|
|
45
|
+
}
|
|
46
|
+
export declare function formatPRForResponse(pr: GitHubPullRequestItem, options?: PRResponseFormatOptions): {
|
|
47
|
+
_sanitization_warnings: string[];
|
|
48
|
+
comment_details_paginated?: boolean;
|
|
49
|
+
comment_details: {
|
|
50
|
+
body_pagination?: TextPaginationInfo;
|
|
51
|
+
body: string;
|
|
52
|
+
id: string;
|
|
53
|
+
user: string;
|
|
54
|
+
created_at: string;
|
|
55
|
+
updated_at: string;
|
|
56
|
+
commentType?: "discussion" | "review_inline";
|
|
57
|
+
path?: string;
|
|
58
|
+
line?: number;
|
|
59
|
+
in_reply_to_id?: number | null;
|
|
60
|
+
}[];
|
|
61
|
+
comment_details_shown: number;
|
|
62
|
+
comment_details_total: number;
|
|
63
|
+
commit_details: import("./githubAPI.js").CommitInfo[];
|
|
64
|
+
reviews: import("./githubAPI.js").PRReviewInfo[];
|
|
65
|
+
file_changes: {
|
|
66
|
+
filename: string;
|
|
67
|
+
status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
|
|
68
|
+
additions: number;
|
|
69
|
+
deletions: number;
|
|
70
|
+
patch: string;
|
|
71
|
+
}[];
|
|
72
|
+
commits: number;
|
|
73
|
+
additions: number;
|
|
74
|
+
deletions: number;
|
|
75
|
+
changed_files: number;
|
|
76
|
+
comment_details_breakdown: {
|
|
77
|
+
inline_review: number;
|
|
78
|
+
discussion: number;
|
|
79
|
+
};
|
|
80
|
+
comments: number;
|
|
81
|
+
body_pagination?: TextPaginationInfo;
|
|
82
|
+
body: string;
|
|
83
|
+
base_sha?: string;
|
|
84
|
+
base_ref: string;
|
|
85
|
+
head_sha?: string;
|
|
86
|
+
head_ref: string;
|
|
87
|
+
labels?: {
|
|
88
|
+
id: number;
|
|
89
|
+
name: string;
|
|
90
|
+
color: string;
|
|
91
|
+
}[];
|
|
92
|
+
number: number;
|
|
93
|
+
title: string;
|
|
94
|
+
url: string;
|
|
95
|
+
state: "open" | "closed";
|
|
96
|
+
draft: boolean;
|
|
97
|
+
merged: boolean;
|
|
98
|
+
created_at: string;
|
|
99
|
+
updated_at: string;
|
|
100
|
+
closed_at: string;
|
|
101
|
+
merged_at: string;
|
|
102
|
+
author: string;
|
|
103
|
+
};
|
|
104
|
+
export declare function normalizeOwnerRepo(params: GitHubPullRequestsSearchParams): {
|
|
105
|
+
owner: string | undefined;
|
|
106
|
+
repo: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
export declare function applyPartialContentFilter(files: (DiffEntry | CommitFileInfo)[], params: GitHubPullRequestsSearchParams): (DiffEntry | CommitFileInfo)[];
|
|
109
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GitHubPullRequestsSearchParams } from './githubAPI.js';
|
|
2
|
+
import type { GitHubPullRequestSearchApiResult } from '../tools/github_search_pull_requests/types.js';
|
|
3
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
|
|
4
|
+
export declare function searchGitHubPullRequestsAPI(params: GitHubPullRequestsSearchParams, authInfo?: AuthInfo, sessionId?: string): Promise<GitHubPullRequestSearchApiResult>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { GitHubCodeSearchQuerySchema, GitHubReposSearchSingleQuerySchema } from '@octocodeai/octocode-core/schemas';
|
|
3
|
+
type GitHubCodeSearchQuery = z.infer<typeof GitHubCodeSearchQuerySchema>;
|
|
4
|
+
type GitHubReposSearchSingleQuery = z.infer<typeof GitHubReposSearchSingleQuerySchema>;
|
|
5
|
+
import type { WithOptionalMeta } from '../types/execution.js';
|
|
6
|
+
import { GitHubPullRequestsSearchParams } from './githubAPI.js';
|
|
7
|
+
export declare function getOwnerQualifier(owner: string): string;
|
|
8
|
+
export declare function buildCodeSearchQuery(params: WithOptionalMeta<GitHubCodeSearchQuery>): string;
|
|
9
|
+
export declare function buildRepoSearchQuery(params: WithOptionalMeta<GitHubReposSearchSingleQuery>): string;
|
|
10
|
+
export declare function buildPullRequestSearchQuery(params: GitHubPullRequestsSearchParams): string;
|
|
11
|
+
export declare function shouldUseSearchForPRs(params: GitHubPullRequestsSearchParams): boolean;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { GitHubAPIResponse } from './githubAPI.js';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { GitHubReposSearchSingleQuerySchema } from '@octocodeai/octocode-core/schemas';
|
|
4
|
+
import type { GitHubRepositoryOutput } from '@octocodeai/octocode-core/extra-types';
|
|
5
|
+
type GitHubReposSearchSingleQuery = z.infer<typeof GitHubReposSearchSingleQuerySchema>;
|
|
6
|
+
import type { WithOptionalMeta } from '../types/execution.js';
|
|
7
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
|
|
8
|
+
interface RepoSearchPagination {
|
|
9
|
+
currentPage: number;
|
|
10
|
+
totalPages: number;
|
|
11
|
+
perPage: number;
|
|
12
|
+
totalMatches: number;
|
|
13
|
+
reportedTotalMatches?: number;
|
|
14
|
+
reachableTotalMatches?: number;
|
|
15
|
+
totalMatchesKind?: 'exact' | 'reported' | 'lowerBound';
|
|
16
|
+
totalMatchesCapped?: boolean;
|
|
17
|
+
hasMore: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface RepoSearchAPIData {
|
|
20
|
+
repositories: GitHubRepositoryOutput[];
|
|
21
|
+
pagination?: RepoSearchPagination;
|
|
22
|
+
nonExistentScope?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function searchGitHubReposAPI(params: WithOptionalMeta<GitHubReposSearchSingleQuery>, authInfo?: AuthInfo, sessionId?: string): Promise<GitHubAPIResponse<RepoSearchAPIData>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { GitHubViewRepoStructureQuerySchema } from '@octocodeai/octocode-core/schemas';
|
|
3
|
+
type GitHubViewRepoStructureQuery = z.infer<typeof GitHubViewRepoStructureQuerySchema>;
|
|
4
|
+
import type { GitHubRepositoryStructureResult, GitHubRepositoryStructureError } from '../tools/github_view_repo_structure/types.js';
|
|
5
|
+
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
|
|
6
|
+
export declare function viewGitHubRepositoryStructureAPI(params: GitHubViewRepoStructureQuery, authInfo?: AuthInfo, sessionId?: string): Promise<GitHubRepositoryStructureResult | GitHubRepositoryStructureError>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { GitHubViewRepoStructureQuerySchema } from '@octocodeai/octocode-core/schemas';
|
|
3
|
+
type GitHubViewRepoStructureQuery = z.infer<typeof GitHubViewRepoStructureQuerySchema>;
|
|
4
|
+
import type { GitHubRepositoryStructureResult } from '../tools/github_view_repo_structure/types.js';
|
|
5
|
+
export declare function applyStructurePagination(cachedResult: GitHubRepositoryStructureResult, params: GitHubViewRepoStructureQuery): GitHubRepositoryStructureResult;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { GitHubApiFileItem } from '../tools/github_view_repo_structure/types.js';
|
|
2
|
+
import { OctokitWithThrottling } from './client.js';
|
|
3
|
+
export declare function fetchDirectoryContentsRecursivelyAPI(octokit: InstanceType<typeof OctokitWithThrottling>, owner: string, repo: string, branch: string, path: string, currentDepth: number, maxDepth: number, visitedPaths?: Set<string>): Promise<GitHubApiFileItem[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeResponseHeaders(headers: unknown): Record<string, string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HintContext, HintStatus, ToolHintGenerators } from './types.js';
|
|
2
|
+
export declare const HINTS: Record<string, ToolHintGenerators>;
|
|
3
|
+
type DynamicToolName = keyof typeof HINTS;
|
|
4
|
+
export declare function hasDynamicHints(toolName: string): toolName is DynamicToolName;
|
|
5
|
+
export declare function getDynamicHints(toolName: string, status: HintStatus, context?: HintContext): string[];
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { HintContext, HintStatus, ToolHintGenerators, } from '../types/metadata.js';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
export * from './security/bridge.js';
|
|
2
|
+
export * from './commands/BaseCommandBuilder.js';
|
|
3
|
+
export * from './commands/RipgrepCommandBuilder.js';
|
|
4
|
+
export * from './config.js';
|
|
5
|
+
export * from './errors/domainErrors.js';
|
|
6
|
+
export * from './errors/errorFactories.js';
|
|
7
|
+
export * from './errors/localToolErrors.js';
|
|
8
|
+
export * from './errors/pathUtils.js';
|
|
9
|
+
export * from './errors/ToolError.js';
|
|
10
|
+
export * from './github/client.js';
|
|
11
|
+
export * from './github/codeSearch.js';
|
|
12
|
+
export * from './github/directoryFetch.js';
|
|
13
|
+
export * from './github/errorConstants.js';
|
|
14
|
+
export * from './github/errors.js';
|
|
15
|
+
export * from './github/fileContent.js';
|
|
16
|
+
export * from './github/fileContentProcess.js';
|
|
17
|
+
export * from './github/fileContentRaw.js';
|
|
18
|
+
export * from './github/prByNumber.js';
|
|
19
|
+
export * from './github/prContentFetcher.js';
|
|
20
|
+
export * from './github/prTransformation.js';
|
|
21
|
+
export * from './github/pullRequestSearch.js';
|
|
22
|
+
export * from './github/history.js';
|
|
23
|
+
export * from './github/queryBuilders.js';
|
|
24
|
+
export * from './github/repoSearch.js';
|
|
25
|
+
export * from './github/repoStructure.js';
|
|
26
|
+
export * from './github/repoStructurePagination.js';
|
|
27
|
+
export * from './github/repoStructureRecursive.js';
|
|
28
|
+
export * from './github/responseHeaders.js';
|
|
29
|
+
export * from './hints/types.js';
|
|
30
|
+
export * from './providers/capabilities.js';
|
|
31
|
+
export * from './providers/factory.js';
|
|
32
|
+
export * from './providers/github/githubContent.js';
|
|
33
|
+
export * from './providers/github/GitHubProvider.js';
|
|
34
|
+
export * from './providers/github/githubPullRequests.js';
|
|
35
|
+
export * from './providers/github/githubSearch.js';
|
|
36
|
+
export * from './providers/github/githubStructure.js';
|
|
37
|
+
export * from './providers/github/utils.js';
|
|
38
|
+
export * from './providers/providerQueries.js';
|
|
39
|
+
export * from './responses.js';
|
|
40
|
+
export * from './scheme/fields.js';
|
|
41
|
+
export * from './scheme/responseEnvelope.js';
|
|
42
|
+
export * from './serverConfig.js';
|
|
43
|
+
export * from './session.js';
|
|
44
|
+
export * from './tools/executionGuard.js';
|
|
45
|
+
export * from './tools/github_clone_repo/cache.js';
|
|
46
|
+
export * from './tools/github_clone_repo/cloneRepo.js';
|
|
47
|
+
export * from './tools/github_clone_repo/execution.js';
|
|
48
|
+
export * from './tools/github_clone_repo/scheme.js';
|
|
49
|
+
export * from './tools/github_clone_repo/types.js';
|
|
50
|
+
export * from './tools/github_fetch_content/execution.js';
|
|
51
|
+
export * from './tools/github_fetch_content/finalizer.js';
|
|
52
|
+
export * from './tools/github_fetch_content/scheme.js';
|
|
53
|
+
export * from './tools/github_fetch_content/types.js';
|
|
54
|
+
export * from './tools/github_search_code/execution.js';
|
|
55
|
+
export * from './tools/github_search_code/finalizer.js';
|
|
56
|
+
export * from './tools/github_search_code/scheme.js';
|
|
57
|
+
export * from './tools/github_search_pull_requests/contentRequest.js';
|
|
58
|
+
export * from './tools/github_search_pull_requests/contentResponse.js';
|
|
59
|
+
export * from './tools/github_search_pull_requests/execution.js';
|
|
60
|
+
export * from './tools/github_search_pull_requests/scheme.js';
|
|
61
|
+
export * from './tools/github_search_pull_requests/types.js';
|
|
62
|
+
export * from './tools/github_search_repos/execution.js';
|
|
63
|
+
export * from './tools/github_search_repos/scheme.js';
|
|
64
|
+
export * from './tools/github_view_repo_structure/constants.js';
|
|
65
|
+
export * from './tools/github_view_repo_structure/execution.js';
|
|
66
|
+
export * from './tools/github_view_repo_structure/scheme.js';
|
|
67
|
+
export * from './tools/github_view_repo_structure/types.js';
|
|
68
|
+
export * from './tools/local_binary_inspect/execution.js';
|
|
69
|
+
export * from './tools/local_binary_inspect/scheme.js';
|
|
70
|
+
export * from './tools/local_fetch_content/contentExtractor.js';
|
|
71
|
+
export * from './tools/local_fetch_content/execution.js';
|
|
72
|
+
export * from './tools/local_fetch_content/fetchContent.js';
|
|
73
|
+
export * from './tools/local_fetch_content/scheme.js';
|
|
74
|
+
export * from './tools/local_find_files/execution.js';
|
|
75
|
+
export * from './tools/local_find_files/findFiles.js';
|
|
76
|
+
export * from './tools/local_find_files/scheme.js';
|
|
77
|
+
export * from './tools/local_ripgrep/execution.js';
|
|
78
|
+
export * from './tools/local_ripgrep/grepFallbackExecutor.js';
|
|
79
|
+
export * from './tools/local_ripgrep/patternValidation.js';
|
|
80
|
+
export * from './tools/local_ripgrep/ripgrepExecutor.js';
|
|
81
|
+
export * from './tools/local_ripgrep/ripgrepParser.js';
|
|
82
|
+
export * from './tools/local_ripgrep/ripgrepResultBuilder.js';
|
|
83
|
+
export * from './tools/local_ripgrep/scheme.js';
|
|
84
|
+
export * from './tools/local_ripgrep/searchContentRipgrep.js';
|
|
85
|
+
export * from './tools/local_view_structure/execution.js';
|
|
86
|
+
export * from './tools/local_view_structure/local_view_structure.js';
|
|
87
|
+
export * from './tools/local_view_structure/scheme.js';
|
|
88
|
+
export * from './tools/local_view_structure/structureFilters.js';
|
|
89
|
+
export * from './tools/lsp/semantic_content/execution.js';
|
|
90
|
+
export * from './tools/lsp/semantic_content/index.js';
|
|
91
|
+
export * from './tools/lsp/semantic_content/scheme.js';
|
|
92
|
+
export * from './tools/lsp/shared/callHierarchyTraversal.js';
|
|
93
|
+
export * from './tools/lsp/shared/resolveSymbolAnchor.js';
|
|
94
|
+
export * from './tools/lsp/shared/semanticTypes.js';
|
|
95
|
+
export * from './tools/package_search/execution.js';
|
|
96
|
+
export * from './tools/package_search/scheme.js';
|
|
97
|
+
export * from './tools/providerExecution.js';
|
|
98
|
+
export * from './tools/providerMappers.js';
|
|
99
|
+
export * from './tools/toolConfig.js';
|
|
100
|
+
export * from './tools/toolMetadata/baseSchema.js';
|
|
101
|
+
export * from './tools/toolMetadata/descriptions.js';
|
|
102
|
+
export * from './tools/toolMetadata/gateway.js';
|
|
103
|
+
export * from './tools/toolMetadata/metadataPresence.js';
|
|
104
|
+
export * from './tools/toolMetadata/names.js';
|
|
105
|
+
export * from './tools/toolMetadata/proxies.js';
|
|
106
|
+
export * from './tools/toolMetadata/state.js';
|
|
107
|
+
export * from './tools/toolMetadata/types.js';
|
|
108
|
+
export * from './tools/directToolCatalog.js';
|
|
109
|
+
export * from './tools/toolNames.js';
|
|
110
|
+
export * from './tools/utils.js';
|
|
111
|
+
export * from './types/bulk.js';
|
|
112
|
+
export * from './types/execution.js';
|
|
113
|
+
export * from './types/metadata.js';
|
|
114
|
+
export * from './types/promise.js';
|
|
115
|
+
export * from './types/responseTypes.js';
|
|
116
|
+
export * from './types/server.js';
|
|
117
|
+
export * from './types/session.js';
|
|
118
|
+
export * from './types/toolResults.js';
|
|
119
|
+
export * from './utils/core/bestEffort.js';
|
|
120
|
+
export * from './utils/core/compare.js';
|
|
121
|
+
export * from './utils/core/constants.js';
|
|
122
|
+
export * from './utils/core/promise.js';
|
|
123
|
+
export * from './utils/core/safeRegex.js';
|
|
124
|
+
export * from './utils/environment/environmentDetection.js';
|
|
125
|
+
export * from './utils/exec/commandAvailability.js';
|
|
126
|
+
export * from './utils/exec/npm.js';
|
|
127
|
+
export * from './utils/exec/ripgrepBinary.js';
|
|
128
|
+
export * from './utils/exec/safe.js';
|
|
129
|
+
export * from './utils/exec/spawn.js';
|
|
130
|
+
export * from './utils/file/byteOffset.js';
|
|
131
|
+
export * from './utils/file/filters.js';
|
|
132
|
+
export * from './utils/file/size.js';
|
|
133
|
+
export * from './utils/file/toolHelpers.js';
|
|
134
|
+
export * from './utils/http/cache.js';
|
|
135
|
+
export * from './utils/http/circuitBreaker.js';
|
|
136
|
+
export * from './utils/http/fetch.js';
|
|
137
|
+
export * from './utils/package/common.js';
|
|
138
|
+
export * from './utils/package/npm.js';
|
|
139
|
+
export * from './utils/package/schemas.js';
|
|
140
|
+
export * from './utils/package/types.js';
|
|
141
|
+
export * from './utils/pagination/boundary.js';
|
|
142
|
+
export * from './utils/pagination/charLimit.js';
|
|
143
|
+
export * from './utils/pagination/core.js';
|
|
144
|
+
export * from './utils/pagination/hints.js';
|
|
145
|
+
export * from './utils/pagination/outputSizeLimit.js';
|
|
146
|
+
export * from './utils/pagination/types.js';
|
|
147
|
+
export * from './utils/parsers/diff.js';
|
|
148
|
+
export * from './utils/parsers/ripgrep.js';
|
|
149
|
+
export * from './utils/parsers/schemas.js';
|
|
150
|
+
export * from './utils/response/bulk.js';
|
|
151
|
+
export * from './utils/response/callToolResult.js';
|
|
152
|
+
export * from './utils/response/charSavings.js';
|
|
153
|
+
export * from './utils/response/error.js';
|
|
154
|
+
export * from './utils/response/groupedFinalizer.js';
|
|
155
|
+
export * from './utils/response/pathRelativize.js';
|
|
156
|
+
export * from './utils/response/structuredPagination.js';
|
|
157
|
+
export type { GitHubPullRequestItem, Repository } from './github/githubAPI.js';
|
|
158
|
+
export { isGitHubAPIError, isGitHubAPISuccess, isRepository, } from './github/githubAPI.js';
|
|
159
|
+
export type { ProviderType, ProviderConfig, ProviderCapabilities, ProviderResponse, ICodeHostProvider, } from './providers/types.js';
|
|
160
|
+
export type { CodeSearchQuery, FileContentQuery, RepoSearchQuery, PullRequestQuery, RepoStructureQuery, } from './providers/types.js';
|
|
161
|
+
export type { UnifiedRepository, CodeSearchItem, CodeSearchResult, FileContentResult, RepoSearchResult, PullRequestSearchResult, RepoStructureResult, } from './providers/types.js';
|
|
162
|
+
export { isProviderSuccess, isProviderError } from './providers/types.js';
|
|
163
|
+
export type { GitHubAPIError, GitHubAPISuccess, OptimizedCodeSearchResult, DiffEntry, PullRequestSimple, GitHubPullRequestsSearchParams, ContentDirectoryEntry, CodeSearchResultItem, RepoSearchResultItem, IssueSearchResultItem, IssueComment, PRReviewInfo, CommitFileInfo, CommitInfo, PRCommentItem, GetContentParameters, SearchCodeParameters, SearchCodeResponse, SearchReposParameters, GitHubAPIResponse, } from './github/githubAPI.js';
|
|
164
|
+
export { HINTS, hasDynamicHints } from './hints/dynamic.js';
|
|
165
|
+
export { summarizeEntries, paginateEntries, buildEntryPaginationHints, buildWalkWarnings, } from './tools/local_view_structure/structureResponse.js';
|
|
166
|
+
export type { ExecResult } from './utils/core/types.js';
|
|
167
|
+
export { getHints } from './hints/index.js';
|
|
168
|
+
export { hints as ghSearchCodeHints } from './tools/github_search_code/hints.js';
|
|
169
|
+
export { hints as githubFetchContentHints } from './tools/github_fetch_content/hints.js';
|
|
170
|
+
export { hints as ghViewRepoStructureHints } from './tools/github_view_repo_structure/hints.js';
|
|
171
|
+
export { hints as githubSearchReposHints } from './tools/github_search_repos/hints.js';
|
|
172
|
+
export { hints as ghSearchPRsHints } from './tools/github_search_pull_requests/hints.js';
|
|
173
|
+
export { hints as ghCloneRepoHints } from './tools/github_clone_repo/hints.js';
|
|
174
|
+
export { hints as localRipgrepHints } from './tools/local_ripgrep/hints.js';
|
|
175
|
+
export { hints as localViewStructureHints } from './tools/local_view_structure/hints.js';
|
|
176
|
+
export { hints as localFindFilesHints } from './tools/local_find_files/hints.js';
|
|
177
|
+
export { hints as localFetchContentHints } from './tools/local_fetch_content/hints.js';
|
|
178
|
+
export { hints as lspSemanticContentHints } from './tools/lsp/semantic_content/hints.js';
|
|
179
|
+
export { hints as npmSearchHints } from './tools/package_search/hints.js';
|
|
180
|
+
export { getDynamicHints as getDynamicToolHints } from './hints/dynamic.js';
|
|
181
|
+
export { securityRegistry, ContentSanitizer } from 'octocode-security';
|
|
182
|
+
export { maskSensitiveData } from 'octocode-security/mask';
|
|
183
|
+
export { configureSecurity } from 'octocode-security/withSecurityValidation';
|
|
184
|
+
export { getOctocodeDir, paths, getDirectorySizeBytes, formatBytes, isWindows, isMac, HOME, getAppDataPath, storeCredentials, getCredentials, getCredentialsSync, deleteCredentials, isTokenExpired, isRefreshTokenExpired, getCredentialsFilePath, getEnvTokenSource, hasEnvToken, resolveTokenFull, refreshAuthToken, getTokenWithRefresh, getGhCliToken, } from 'octocode-shared';
|
|
185
|
+
export type { OAuthToken, StoredCredentials } from 'octocode-shared';
|
|
186
|
+
export { completeMetadata } from '@octocodeai/octocode-core';
|
|
187
|
+
export { z } from 'zod';
|