octocode-mcp 9.0.0 → 9.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.
Files changed (137) hide show
  1. package/README.md +14 -135
  2. package/dist/index.js +29 -7
  3. package/package.json +34 -15
  4. package/dist/src/errorCodes.d.ts +0 -353
  5. package/dist/src/github/client.d.ts +0 -4
  6. package/dist/src/github/codeSearch.d.ts +0 -4
  7. package/dist/src/github/errorConstants.d.ts +0 -173
  8. package/dist/src/github/errors.d.ts +0 -4
  9. package/dist/src/github/fileOperations.d.ts +0 -6
  10. package/dist/src/github/githubAPI.d.ts +0 -164
  11. package/dist/src/github/index.d.ts +0 -10
  12. package/dist/src/github/pullRequestSearch.d.ts +0 -7
  13. package/dist/src/github/queryBuilders.d.ts +0 -7
  14. package/dist/src/github/repoSearch.d.ts +0 -6
  15. package/dist/src/index.d.ts +0 -2
  16. package/dist/src/prompts/prompts.d.ts +0 -7
  17. package/dist/src/responses.d.ts +0 -8
  18. package/dist/src/scheme/baseSchema.d.ts +0 -21
  19. package/dist/src/scheme/github_fetch_content.d.ts +0 -203
  20. package/dist/src/scheme/github_search_code.d.ts +0 -131
  21. package/dist/src/scheme/github_search_pull_requests.d.ts +0 -390
  22. package/dist/src/scheme/github_search_repos.d.ts +0 -79
  23. package/dist/src/scheme/github_view_repo_structure.d.ts +0 -148
  24. package/dist/src/scheme/package_search.d.ts +0 -196
  25. package/dist/src/security/contentSanitizer.d.ts +0 -6
  26. package/dist/src/security/mask.d.ts +0 -1
  27. package/dist/src/security/regexes.d.ts +0 -2
  28. package/dist/src/security/withSecurityValidation.d.ts +0 -86
  29. package/dist/src/serverConfig.d.ts +0 -12
  30. package/dist/src/session.d.ts +0 -22
  31. package/dist/src/tools/github_fetch_content.d.ts +0 -3
  32. package/dist/src/tools/github_search_code.d.ts +0 -3
  33. package/dist/src/tools/github_search_pull_requests.d.ts +0 -3
  34. package/dist/src/tools/github_search_repos.d.ts +0 -3
  35. package/dist/src/tools/github_view_repo_structure.d.ts +0 -3
  36. package/dist/src/tools/package_search.d.ts +0 -3
  37. package/dist/src/tools/toolConfig.d.ts +0 -16
  38. package/dist/src/tools/toolMetadata.d.ts +0 -207
  39. package/dist/src/tools/toolsManager.d.ts +0 -6
  40. package/dist/src/tools/utils.d.ts +0 -23
  41. package/dist/src/types.d.ts +0 -537
  42. package/dist/src/utils/bulkOperations.d.ts +0 -3
  43. package/dist/src/utils/cache.d.ts +0 -22
  44. package/dist/src/utils/diffParser.d.ts +0 -1
  45. package/dist/src/utils/exec.d.ts +0 -25
  46. package/dist/src/utils/fetchWithRetries.d.ts +0 -52
  47. package/dist/src/utils/fileFilters.d.ts +0 -19
  48. package/dist/src/utils/githubRepoFallback.d.ts +0 -17
  49. package/dist/src/utils/logger.d.ts +0 -40
  50. package/dist/src/utils/npmPackage.d.ts +0 -3
  51. package/dist/src/utils/package.d.ts +0 -50
  52. package/dist/src/utils/promiseUtils.d.ts +0 -2
  53. package/dist/src/utils/pythonPackage.d.ts +0 -2
  54. package/dist/tests/errorCodes.test.d.ts +0 -1
  55. package/dist/tests/fixtures/mcp-fixtures.d.ts +0 -24
  56. package/dist/tests/fixtures/mcp-fixtures.test.d.ts +0 -1
  57. package/dist/tests/github/client.test.d.ts +0 -1
  58. package/dist/tests/github/codeSearch.filtering.test.d.ts +0 -1
  59. package/dist/tests/github/codeSearch.security.test.d.ts +0 -1
  60. package/dist/tests/github/errors.test.d.ts +0 -1
  61. package/dist/tests/github/fileOperations.processContent.test.d.ts +0 -1
  62. package/dist/tests/github/fileOperations.recursive.test.d.ts +0 -1
  63. package/dist/tests/github/githubAPI.test.d.ts +0 -1
  64. package/dist/tests/github/index.test.d.ts +0 -1
  65. package/dist/tests/github/pullRequestSearch.coverage.test.d.ts +0 -1
  66. package/dist/tests/github/pullRequestSearch.test.d.ts +0 -1
  67. package/dist/tests/github/queryBuilders.test.d.ts +0 -1
  68. package/dist/tests/github/repoSearch.test.d.ts +0 -1
  69. package/dist/tests/index.logic.test.d.ts +0 -1
  70. package/dist/tests/index.shutdown.test.d.ts +0 -1
  71. package/dist/tests/index.startup.test.d.ts +0 -1
  72. package/dist/tests/index.test.d.ts +0 -1
  73. package/dist/tests/investigate_pr_response.test.d.ts +0 -1
  74. package/dist/tests/prompts/prompts.test.d.ts +0 -1
  75. package/dist/tests/scheme/github_fetch_content.test.d.ts +0 -1
  76. package/dist/tests/security/contentSanitizer.test.d.ts +0 -1
  77. package/dist/tests/security/mask.branches.test.d.ts +0 -1
  78. package/dist/tests/security/mask.test.d.ts +0 -1
  79. package/dist/tests/security/withSecurityValidation.basic.test.d.ts +0 -1
  80. package/dist/tests/security/withSecurityValidation.extractRepoOwner.test.d.ts +0 -1
  81. package/dist/tests/security/withSecurityValidation.extractResearchFields.test.d.ts +0 -1
  82. package/dist/tests/security/withSecurityValidation.logging.test.d.ts +0 -1
  83. package/dist/tests/serverConfig.test.d.ts +0 -1
  84. package/dist/tests/session.edgecases.test.d.ts +0 -1
  85. package/dist/tests/session.logging_control.test.d.ts +0 -1
  86. package/dist/tests/session.test.d.ts +0 -1
  87. package/dist/tests/setup.d.ts +0 -1
  88. package/dist/tests/tools/callback.test.d.ts +0 -1
  89. package/dist/tests/tools/github_fetch_content.test.d.ts +0 -1
  90. package/dist/tests/tools/github_search_code.filtering.test.d.ts +0 -1
  91. package/dist/tests/tools/github_search_code.match_modes.test.d.ts +0 -22
  92. package/dist/tests/tools/github_search_code.test.d.ts +0 -1
  93. package/dist/tests/tools/github_search_code.tool.test.d.ts +0 -1
  94. package/dist/tests/tools/github_search_pull_requests.test.d.ts +0 -1
  95. package/dist/tests/tools/github_search_repos.tool.test.d.ts +0 -1
  96. package/dist/tests/tools/github_search_repos_integration.test.d.ts +0 -1
  97. package/dist/tests/tools/github_search_repos_query_splitting.test.d.ts +0 -1
  98. package/dist/tests/tools/github_view_repo_structure.test.d.ts +0 -1
  99. package/dist/tests/tools/github_view_repo_structure_filters.test.d.ts +0 -1
  100. package/dist/tests/tools/hints.test.d.ts +0 -1
  101. package/dist/tests/tools/package_search.test.d.ts +0 -1
  102. package/dist/tests/tools/response_structure.test.d.ts +0 -12
  103. package/dist/tests/tools/toolConfig.branches.test.d.ts +0 -1
  104. package/dist/tests/tools/toolConfig.test.d.ts +0 -1
  105. package/dist/tests/tools/toolMetadata.branches.test.d.ts +0 -1
  106. package/dist/tests/tools/toolMetadata.edge.test.d.ts +0 -1
  107. package/dist/tests/tools/toolMetadata.final.test.d.ts +0 -1
  108. package/dist/tests/tools/toolMetadata.test.d.ts +0 -1
  109. package/dist/tests/tools/toolsManager.metadata.test.d.ts +0 -1
  110. package/dist/tests/tools/toolsManager.test.d.ts +0 -1
  111. package/dist/tests/tools/tools_logging_integration.test.d.ts +0 -1
  112. package/dist/tests/tools/userContext_authInfo_propagation.test.d.ts +0 -10
  113. package/dist/tests/tools/utils.test.d.ts +0 -5
  114. package/dist/tests/types/github-openapi.test.d.ts +0 -1
  115. package/dist/tests/utils/betaFeatures.test.d.ts +0 -1
  116. package/dist/tests/utils/bulkOperations.instructions.test.d.ts +0 -1
  117. package/dist/tests/utils/bulkOperations.test.d.ts +0 -1
  118. package/dist/tests/utils/cache.collision.test.d.ts +0 -1
  119. package/dist/tests/utils/cache.dataCache.test.d.ts +0 -1
  120. package/dist/tests/utils/diffParser.test.d.ts +0 -1
  121. package/dist/tests/utils/exec.test.d.ts +0 -1
  122. package/dist/tests/utils/fetchWithRetries.additional.test.d.ts +0 -1
  123. package/dist/tests/utils/fetchWithRetries.test.d.ts +0 -1
  124. package/dist/tests/utils/fileFilters.test.d.ts +0 -1
  125. package/dist/tests/utils/github/fileOperations.test.d.ts +0 -1
  126. package/dist/tests/utils/githubAPI.test.d.ts +0 -1
  127. package/dist/tests/utils/githubRepoFallback.test.d.ts +0 -1
  128. package/dist/tests/utils/logger.test.d.ts +0 -1
  129. package/dist/tests/utils/npmPackage.test.d.ts +0 -1
  130. package/dist/tests/utils/promiseUtils.concurrency.test.d.ts +0 -1
  131. package/dist/tests/utils/promiseUtils.edgecases.test.d.ts +0 -1
  132. package/dist/tests/utils/promiseUtils.test.d.ts +0 -1
  133. package/dist/tests/utils/pythonPackage.test.d.ts +0 -1
  134. package/dist/tests/utils/responses.empty_arrays.test.d.ts +0 -4
  135. package/dist/tests/utils/responses.test.d.ts +0 -1
  136. package/dist/tests/utils/sessionCacheTests.test.d.ts +0 -1
  137. package/dist/tests/utils/testHelpers.d.ts +0 -16
@@ -1,164 +0,0 @@
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 CodeSearchResultItem = components['schemas']['code-search-result-item'];
5
- export type RepoSearchResultItem = components['schemas']['repo-search-result-item'];
6
- export type IssueSearchResultItem = components['schemas']['issue-search-result-item'];
7
- export type DiffEntry = components['schemas']['diff-entry'];
8
- export interface CommitFileItem {
9
- filename: string;
10
- status: string;
11
- additions: number;
12
- deletions: number;
13
- changes: number;
14
- patch?: string;
15
- }
16
- /** Commit file change information */
17
- export interface CommitFileInfo {
18
- filename: string;
19
- status: string;
20
- additions: number;
21
- deletions: number;
22
- changes?: number;
23
- patch?: string;
24
- }
25
- /** Commit information with file changes */
26
- export interface CommitInfo {
27
- sha: string;
28
- message: string;
29
- author: string;
30
- date: string;
31
- files: CommitFileInfo[];
32
- }
33
- export type GetContentParameters = RestEndpointMethodTypes['repos']['getContent']['parameters'];
34
- export type GetRepoResponse = RestEndpointMethodTypes['repos']['get']['response'];
35
- export type SearchCodeParameters = RestEndpointMethodTypes['search']['code']['parameters'];
36
- export type SearchCodeResponse = RestEndpointMethodTypes['search']['code']['response'];
37
- export type SearchReposParameters = RestEndpointMethodTypes['search']['repos']['parameters'];
38
- export interface GitHubAPIError {
39
- error: string;
40
- status?: number;
41
- type: 'http' | 'graphql' | 'network' | 'unknown';
42
- scopesSuggestion?: string;
43
- rateLimitRemaining?: number;
44
- rateLimitReset?: number;
45
- retryAfter?: number;
46
- }
47
- export interface GitHubAPISuccess<T> {
48
- data: T;
49
- status: number;
50
- headers?: Record<string, string>;
51
- }
52
- export type GitHubAPIResponse<T> = GitHubAPISuccess<T> | GitHubAPIError;
53
- export type OptimizedCodeSearchResult = {
54
- items: Array<Pick<CodeSearchResultItem, 'path' | 'url'> & {
55
- matches: Array<{
56
- context: string;
57
- positions: [number, number][];
58
- }>;
59
- repository: {
60
- nameWithOwner: string;
61
- url: string;
62
- };
63
- minificationType?: string;
64
- }>;
65
- total_count: number;
66
- repository?: {
67
- name: string;
68
- url: string;
69
- createdAt?: string;
70
- updatedAt?: string;
71
- pushedAt?: string;
72
- };
73
- securityWarnings?: string[];
74
- minified?: boolean;
75
- minificationFailed?: boolean;
76
- minificationTypes?: string[];
77
- _researchContext?: {
78
- foundPackages: string[];
79
- foundFiles: string[];
80
- repositoryContext?: {
81
- owner: string;
82
- repo: string;
83
- };
84
- };
85
- };
86
- export type GitHubPullRequestItem = Pick<IssueSearchResultItem, 'number' | 'title' | 'body' | 'state' | 'created_at' | 'updated_at' | 'closed_at' | 'url' | 'draft'> & {
87
- author: string;
88
- labels: string[];
89
- merged_at?: string;
90
- comments?: Array<{
91
- id: string;
92
- author: {
93
- login: string;
94
- };
95
- authorAssociation: string;
96
- body: string;
97
- createdAt: string;
98
- includesCreatedEdit: boolean;
99
- isMinimized: boolean;
100
- minimizedReason: string;
101
- reactionGroups: unknown[];
102
- url: string;
103
- viewerDidAuthor: boolean;
104
- }>;
105
- reactions: number;
106
- head?: string;
107
- base?: string;
108
- head_sha?: string;
109
- base_sha?: string;
110
- file_changes?: {
111
- total_count: number;
112
- files: DiffEntry[];
113
- };
114
- commits?: CommitInfo[];
115
- _sanitization_warnings?: string[];
116
- };
117
- export interface GitHubPullRequestsSearchParams {
118
- query?: string;
119
- owner?: string | string[];
120
- repo?: string | string[];
121
- prNumber?: number;
122
- state?: 'open' | 'closed';
123
- draft?: boolean;
124
- merged?: boolean;
125
- author?: string;
126
- assignee?: string;
127
- mentions?: string;
128
- commenter?: string;
129
- involves?: string;
130
- 'reviewed-by'?: string;
131
- 'review-requested'?: string;
132
- head?: string;
133
- base?: string;
134
- created?: string;
135
- updated?: string;
136
- 'merged-at'?: string;
137
- closed?: string;
138
- comments?: number | string;
139
- reactions?: number | string;
140
- interactions?: number | string;
141
- label?: string | string[];
142
- 'no-assignee'?: boolean;
143
- 'no-label'?: boolean;
144
- 'no-milestone'?: boolean;
145
- 'no-project'?: boolean;
146
- match?: ('title' | 'body' | 'comments')[];
147
- sort?: 'created' | 'updated' | 'best-match';
148
- order?: 'asc' | 'desc';
149
- limit?: number;
150
- withComments?: boolean;
151
- withCommits?: boolean;
152
- type?: 'metadata' | 'fullContent' | 'partialContent';
153
- partialContentMetadata?: {
154
- file: string;
155
- additions?: number[];
156
- deletions?: number[];
157
- }[];
158
- exhaustive?: boolean;
159
- maxPages?: number;
160
- pageSize?: number;
161
- }
162
- export declare function isGitHubAPIError(obj: unknown): obj is GitHubAPIError;
163
- export declare function isGitHubAPISuccess<T>(obj: unknown): obj is GitHubAPISuccess<T>;
164
- export declare function isRepository(obj: unknown): obj is Repository;
@@ -1,10 +0,0 @@
1
- export { getOctokit, OctokitWithThrottling, clearCachedToken } from './client';
2
- export { handleGitHubAPIError } from './errors';
3
- export type { GitHubAPIError, GitHubAPIResponse, GitHubAPISuccess, Repository, OptimizedCodeSearchResult, GitHubPullRequestItem, GitHubPullRequestsSearchParams, GetContentParameters, GetRepoResponse, isGitHubAPIError, isGitHubAPISuccess, isRepository, } from './githubAPI';
4
- export type { components } from '@octokit/openapi-types';
5
- export type { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods';
6
- export { buildCodeSearchQuery, buildRepoSearchQuery, buildPullRequestSearchQuery, shouldUseSearchForPRs, } from './queryBuilders';
7
- export { searchGitHubCodeAPI } from './codeSearch';
8
- export { searchGitHubReposAPI } from './repoSearch';
9
- export { searchGitHubPullRequestsAPI, fetchGitHubPullRequestByNumberAPI, transformPullRequestItemFromREST, } from './pullRequestSearch';
10
- export { fetchGitHubFileContentAPI, viewGitHubRepositoryStructureAPI, } from './fileOperations';
@@ -1,7 +0,0 @@
1
- import { GitHubPullRequestsSearchParams, GitHubPullRequestItem } from './githubAPI';
2
- import type { PullRequestSearchResult } from '../types';
3
- import { OctokitWithThrottling } from './client';
4
- import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
5
- export declare function searchGitHubPullRequestsAPI(params: GitHubPullRequestsSearchParams, authInfo?: AuthInfo, sessionId?: string): Promise<PullRequestSearchResult>;
6
- export declare function transformPullRequestItemFromREST(item: Record<string, unknown>, params: GitHubPullRequestsSearchParams, octokit: InstanceType<typeof OctokitWithThrottling>, authInfo?: AuthInfo): Promise<GitHubPullRequestItem>;
7
- export declare function fetchGitHubPullRequestByNumberAPI(params: GitHubPullRequestsSearchParams, authInfo?: AuthInfo, sessionId?: string): Promise<PullRequestSearchResult>;
@@ -1,7 +0,0 @@
1
- import type { GitHubCodeSearchQuery, GitHubReposSearchQuery } from '../types';
2
- import { GitHubPullRequestsSearchParams } from './githubAPI';
3
- export declare function getOwnerQualifier(owner: string): string;
4
- export declare function buildCodeSearchQuery(params: GitHubCodeSearchQuery): string;
5
- export declare function buildRepoSearchQuery(params: GitHubReposSearchQuery): string;
6
- export declare function buildPullRequestSearchQuery(params: GitHubPullRequestsSearchParams): string;
7
- export declare function shouldUseSearchForPRs(params: GitHubPullRequestsSearchParams): boolean;
@@ -1,6 +0,0 @@
1
- import type { GitHubAPIResponse } from './githubAPI';
2
- import type { GitHubReposSearchQuery, SimplifiedRepository } from '../types';
3
- import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types';
4
- export declare function searchGitHubReposAPI(params: GitHubReposSearchQuery, authInfo?: AuthInfo, sessionId?: string): Promise<GitHubAPIResponse<{
5
- repositories: SimplifiedRepository[];
6
- }>>;
@@ -1,2 +0,0 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- export declare function registerAllTools(server: McpServer, _content: import('./tools/toolMetadata.js').CompleteMetadata): Promise<void>;
@@ -1,7 +0,0 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
- import type { CompleteMetadata } from '../tools/toolMetadata.js';
3
- /**
4
- * Register all prompts with the MCP server
5
- * Iterates over the prompts defined in the metadata and registers them dynamically
6
- */
7
- export declare function registerPrompts(server: McpServer, content: CompleteMetadata): void;
@@ -1,8 +0,0 @@
1
- import { CallToolResult } from '@modelcontextprotocol/sdk/types';
2
- import type { ToolResponse } from './types.js';
3
- export declare function createResult(options: {
4
- data: unknown;
5
- instructions?: string;
6
- isError?: boolean;
7
- }): CallToolResult;
8
- export declare function createResponseFormat(responseData: ToolResponse, keysPriority?: string[]): string;
@@ -1,21 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const BaseQuerySchema: z.ZodObject<{
3
- mainResearchGoal: z.ZodString;
4
- researchGoal: z.ZodString;
5
- reasoning: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- mainResearchGoal: string;
8
- researchGoal: string;
9
- reasoning: string;
10
- }, {
11
- mainResearchGoal: string;
12
- researchGoal: string;
13
- reasoning: string;
14
- }>;
15
- export declare function createBulkQuerySchema<T extends z.ZodTypeAny>(toolName: string, singleQuerySchema: T): z.ZodObject<{
16
- queries: z.ZodArray<T, "many">;
17
- }, "strip", z.ZodTypeAny, {
18
- queries: T["_output"][];
19
- }, {
20
- queries: T["_input"][];
21
- }>;
@@ -1,203 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const FileContentQuerySchema: z.ZodEffects<z.ZodObject<{
3
- mainResearchGoal: z.ZodString;
4
- researchGoal: z.ZodString;
5
- reasoning: z.ZodString;
6
- } & {
7
- owner: z.ZodString;
8
- repo: z.ZodString;
9
- minified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
- sanitize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11
- path: z.ZodString;
12
- branch: z.ZodOptional<z.ZodString>;
13
- fullContent: z.ZodDefault<z.ZodBoolean>;
14
- startLine: z.ZodOptional<z.ZodNumber>;
15
- endLine: z.ZodOptional<z.ZodNumber>;
16
- matchString: z.ZodOptional<z.ZodString>;
17
- matchStringContextLines: z.ZodDefault<z.ZodNumber>;
18
- addTimestamp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
19
- }, "strip", z.ZodTypeAny, {
20
- path: string;
21
- fullContent: boolean;
22
- mainResearchGoal: string;
23
- researchGoal: string;
24
- reasoning: string;
25
- owner: string;
26
- repo: string;
27
- sanitize: boolean;
28
- minified: boolean;
29
- matchStringContextLines: number;
30
- addTimestamp: boolean;
31
- branch?: string | undefined;
32
- startLine?: number | undefined;
33
- endLine?: number | undefined;
34
- matchString?: string | undefined;
35
- }, {
36
- path: string;
37
- mainResearchGoal: string;
38
- researchGoal: string;
39
- reasoning: string;
40
- owner: string;
41
- repo: string;
42
- fullContent?: boolean | undefined;
43
- sanitize?: boolean | undefined;
44
- branch?: string | undefined;
45
- startLine?: number | undefined;
46
- endLine?: number | undefined;
47
- minified?: boolean | undefined;
48
- matchString?: string | undefined;
49
- matchStringContextLines?: number | undefined;
50
- addTimestamp?: boolean | undefined;
51
- }>, {
52
- path: string;
53
- fullContent: boolean;
54
- mainResearchGoal: string;
55
- researchGoal: string;
56
- reasoning: string;
57
- owner: string;
58
- repo: string;
59
- sanitize: boolean;
60
- minified: boolean;
61
- matchStringContextLines: number;
62
- addTimestamp: boolean;
63
- branch?: string | undefined;
64
- startLine?: number | undefined;
65
- endLine?: number | undefined;
66
- matchString?: string | undefined;
67
- }, {
68
- path: string;
69
- mainResearchGoal: string;
70
- researchGoal: string;
71
- reasoning: string;
72
- owner: string;
73
- repo: string;
74
- fullContent?: boolean | undefined;
75
- sanitize?: boolean | undefined;
76
- branch?: string | undefined;
77
- startLine?: number | undefined;
78
- endLine?: number | undefined;
79
- minified?: boolean | undefined;
80
- matchString?: string | undefined;
81
- matchStringContextLines?: number | undefined;
82
- addTimestamp?: boolean | undefined;
83
- }>;
84
- export declare const FileContentBulkQuerySchema: z.ZodObject<{
85
- queries: z.ZodArray<z.ZodEffects<z.ZodObject<{
86
- mainResearchGoal: z.ZodString;
87
- researchGoal: z.ZodString;
88
- reasoning: z.ZodString;
89
- } & {
90
- owner: z.ZodString;
91
- repo: z.ZodString;
92
- minified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
93
- sanitize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
94
- path: z.ZodString;
95
- branch: z.ZodOptional<z.ZodString>;
96
- fullContent: z.ZodDefault<z.ZodBoolean>;
97
- startLine: z.ZodOptional<z.ZodNumber>;
98
- endLine: z.ZodOptional<z.ZodNumber>;
99
- matchString: z.ZodOptional<z.ZodString>;
100
- matchStringContextLines: z.ZodDefault<z.ZodNumber>;
101
- addTimestamp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
102
- }, "strip", z.ZodTypeAny, {
103
- path: string;
104
- fullContent: boolean;
105
- mainResearchGoal: string;
106
- researchGoal: string;
107
- reasoning: string;
108
- owner: string;
109
- repo: string;
110
- sanitize: boolean;
111
- minified: boolean;
112
- matchStringContextLines: number;
113
- addTimestamp: boolean;
114
- branch?: string | undefined;
115
- startLine?: number | undefined;
116
- endLine?: number | undefined;
117
- matchString?: string | undefined;
118
- }, {
119
- path: string;
120
- mainResearchGoal: string;
121
- researchGoal: string;
122
- reasoning: string;
123
- owner: string;
124
- repo: string;
125
- fullContent?: boolean | undefined;
126
- sanitize?: boolean | undefined;
127
- branch?: string | undefined;
128
- startLine?: number | undefined;
129
- endLine?: number | undefined;
130
- minified?: boolean | undefined;
131
- matchString?: string | undefined;
132
- matchStringContextLines?: number | undefined;
133
- addTimestamp?: boolean | undefined;
134
- }>, {
135
- path: string;
136
- fullContent: boolean;
137
- mainResearchGoal: string;
138
- researchGoal: string;
139
- reasoning: string;
140
- owner: string;
141
- repo: string;
142
- sanitize: boolean;
143
- minified: boolean;
144
- matchStringContextLines: number;
145
- addTimestamp: boolean;
146
- branch?: string | undefined;
147
- startLine?: number | undefined;
148
- endLine?: number | undefined;
149
- matchString?: string | undefined;
150
- }, {
151
- path: string;
152
- mainResearchGoal: string;
153
- researchGoal: string;
154
- reasoning: string;
155
- owner: string;
156
- repo: string;
157
- fullContent?: boolean | undefined;
158
- sanitize?: boolean | undefined;
159
- branch?: string | undefined;
160
- startLine?: number | undefined;
161
- endLine?: number | undefined;
162
- minified?: boolean | undefined;
163
- matchString?: string | undefined;
164
- matchStringContextLines?: number | undefined;
165
- addTimestamp?: boolean | undefined;
166
- }>, "many">;
167
- }, "strip", z.ZodTypeAny, {
168
- queries: {
169
- path: string;
170
- fullContent: boolean;
171
- mainResearchGoal: string;
172
- researchGoal: string;
173
- reasoning: string;
174
- owner: string;
175
- repo: string;
176
- sanitize: boolean;
177
- minified: boolean;
178
- matchStringContextLines: number;
179
- addTimestamp: boolean;
180
- branch?: string | undefined;
181
- startLine?: number | undefined;
182
- endLine?: number | undefined;
183
- matchString?: string | undefined;
184
- }[];
185
- }, {
186
- queries: {
187
- path: string;
188
- mainResearchGoal: string;
189
- researchGoal: string;
190
- reasoning: string;
191
- owner: string;
192
- repo: string;
193
- fullContent?: boolean | undefined;
194
- sanitize?: boolean | undefined;
195
- branch?: string | undefined;
196
- startLine?: number | undefined;
197
- endLine?: number | undefined;
198
- minified?: boolean | undefined;
199
- matchString?: string | undefined;
200
- matchStringContextLines?: number | undefined;
201
- addTimestamp?: boolean | undefined;
202
- }[];
203
- }>;
@@ -1,131 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const GitHubCodeSearchQuerySchema: z.ZodObject<{
3
- mainResearchGoal: z.ZodString;
4
- researchGoal: z.ZodString;
5
- reasoning: z.ZodString;
6
- } & {
7
- keywordsToSearch: z.ZodArray<z.ZodString, "many">;
8
- owner: z.ZodOptional<z.ZodString>;
9
- repo: z.ZodOptional<z.ZodString>;
10
- extension: z.ZodOptional<z.ZodString>;
11
- stars: z.ZodOptional<z.ZodString>;
12
- filename: z.ZodOptional<z.ZodString>;
13
- path: z.ZodOptional<z.ZodString>;
14
- match: z.ZodOptional<z.ZodEnum<["file", "path"]>>;
15
- limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
16
- minify: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17
- sanitize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18
- }, "strip", z.ZodTypeAny, {
19
- mainResearchGoal: string;
20
- researchGoal: string;
21
- reasoning: string;
22
- keywordsToSearch: string[];
23
- minify: boolean;
24
- sanitize: boolean;
25
- path?: string | undefined;
26
- owner?: string | undefined;
27
- repo?: string | undefined;
28
- stars?: string | undefined;
29
- extension?: string | undefined;
30
- filename?: string | undefined;
31
- match?: "path" | "file" | undefined;
32
- limit?: number | undefined;
33
- }, {
34
- mainResearchGoal: string;
35
- researchGoal: string;
36
- reasoning: string;
37
- keywordsToSearch: string[];
38
- path?: string | undefined;
39
- owner?: string | undefined;
40
- repo?: string | undefined;
41
- stars?: string | undefined;
42
- extension?: string | undefined;
43
- filename?: string | undefined;
44
- match?: "path" | "file" | undefined;
45
- limit?: number | undefined;
46
- minify?: boolean | undefined;
47
- sanitize?: boolean | undefined;
48
- }>;
49
- export declare const GitHubCodeSearchBulkQuerySchema: z.ZodObject<{
50
- queries: z.ZodArray<z.ZodObject<{
51
- mainResearchGoal: z.ZodString;
52
- researchGoal: z.ZodString;
53
- reasoning: z.ZodString;
54
- } & {
55
- keywordsToSearch: z.ZodArray<z.ZodString, "many">;
56
- owner: z.ZodOptional<z.ZodString>;
57
- repo: z.ZodOptional<z.ZodString>;
58
- extension: z.ZodOptional<z.ZodString>;
59
- stars: z.ZodOptional<z.ZodString>;
60
- filename: z.ZodOptional<z.ZodString>;
61
- path: z.ZodOptional<z.ZodString>;
62
- match: z.ZodOptional<z.ZodEnum<["file", "path"]>>;
63
- limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
64
- minify: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
65
- sanitize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
66
- }, "strip", z.ZodTypeAny, {
67
- mainResearchGoal: string;
68
- researchGoal: string;
69
- reasoning: string;
70
- keywordsToSearch: string[];
71
- minify: boolean;
72
- sanitize: boolean;
73
- path?: string | undefined;
74
- owner?: string | undefined;
75
- repo?: string | undefined;
76
- stars?: string | undefined;
77
- extension?: string | undefined;
78
- filename?: string | undefined;
79
- match?: "path" | "file" | undefined;
80
- limit?: number | undefined;
81
- }, {
82
- mainResearchGoal: string;
83
- researchGoal: string;
84
- reasoning: string;
85
- keywordsToSearch: string[];
86
- path?: string | undefined;
87
- owner?: string | undefined;
88
- repo?: string | undefined;
89
- stars?: string | undefined;
90
- extension?: string | undefined;
91
- filename?: string | undefined;
92
- match?: "path" | "file" | undefined;
93
- limit?: number | undefined;
94
- minify?: boolean | undefined;
95
- sanitize?: boolean | undefined;
96
- }>, "many">;
97
- }, "strip", z.ZodTypeAny, {
98
- queries: {
99
- mainResearchGoal: string;
100
- researchGoal: string;
101
- reasoning: string;
102
- keywordsToSearch: string[];
103
- minify: boolean;
104
- sanitize: boolean;
105
- path?: string | undefined;
106
- owner?: string | undefined;
107
- repo?: string | undefined;
108
- stars?: string | undefined;
109
- extension?: string | undefined;
110
- filename?: string | undefined;
111
- match?: "path" | "file" | undefined;
112
- limit?: number | undefined;
113
- }[];
114
- }, {
115
- queries: {
116
- mainResearchGoal: string;
117
- researchGoal: string;
118
- reasoning: string;
119
- keywordsToSearch: string[];
120
- path?: string | undefined;
121
- owner?: string | undefined;
122
- repo?: string | undefined;
123
- stars?: string | undefined;
124
- extension?: string | undefined;
125
- filename?: string | undefined;
126
- match?: "path" | "file" | undefined;
127
- limit?: number | undefined;
128
- minify?: boolean | undefined;
129
- sanitize?: boolean | undefined;
130
- }[];
131
- }>;