import { CompleteMetadata } from '@octocodeai/octocode-core/types'; export { CompleteMetadata } from '@octocodeai/octocode-core/types'; import { GitHubCodeSearchQuerySchema, GitHubReposSearchSingleQuerySchema, GitHubViewRepoStructureQuerySchema, FindFilesQuerySchema, NpmPackageQuerySchema } from '@octocodeai/octocode-core/schemas'; export { CloneRepoQuerySchema, FetchContentQuerySchema, FileContentQuerySchema, FindFilesQuerySchema, GitHubCodeSearchQuerySchema, GitHubPullRequestSearchQuerySchema, GitHubReposSearchSingleQuerySchema, GitHubViewRepoStructureQuerySchema, NpmPackageQuerySchema as NpmSearchQuerySchema, RipgrepQuerySchema, ViewStructureQuerySchema } from '@octocodeai/octocode-core/schemas'; import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js'; import * as zod_v4_core from 'zod/v4/core'; import * as zod from 'zod'; import { z } from 'zod'; type WithOptionalMeta = Partial; interface ToolExecutionArgs { queries: TQuery[]; responseCharOffset?: number; responseCharLength?: number; authInfo?: AuthInfo; sessionId?: string; signal?: AbortSignal; hintContext?: Record; } type MinifyMode = 'none' | 'standard' | 'symbols'; interface ProviderDiagnostic { provider: string; ok: boolean; error?: string; } declare function initializeProviders(): Promise; declare function initialize(): Promise; declare const CloneRepoQueryLocalSchema: zod.ZodObject<{ owner: zod.ZodString; repo: zod.ZodString; branch: zod.ZodOptional; sparsePath: zod.ZodOptional; forceRefresh: zod.ZodOptional; id: zod.ZodOptional; mainResearchGoal: zod.ZodOptional; researchGoal: zod.ZodOptional; reasoning: zod.ZodOptional; }, zod_v4_core.$strip>; type PartialCloneRepoQuery = WithOptionalMeta; type CloneRepoQuery = z.infer; declare function executeCloneRepo(args: ToolExecutionArgs): Promise; declare const FileContentQueryLocalSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; branch: z.ZodOptional; path: z.ZodString; startLine: z.ZodOptional; endLine: z.ZodOptional; fullContent: z.ZodOptional; matchString: z.ZodOptional; matchStringIsRegex: z.ZodOptional; matchStringCaseSensitive: z.ZodOptional; forceRefresh: z.ZodOptional; type: z.ZodDefault>; contextLines: z.ZodDefault; charOffset: z.ZodOptional; charLength: z.ZodOptional; minify: z.ZodDefault>; id: z.ZodOptional; mainResearchGoal: z.ZodOptional; researchGoal: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>; type FileContentInputQuery = z.input; declare function fetchMultipleGitHubFileContents(args: ToolExecutionArgs): Promise; type GitHubCodeSearchQuery = z.infer; type PartialCodeSearchQuery = WithOptionalMeta; declare function searchMultipleGitHubCode(args: ToolExecutionArgs): Promise; declare const GitHubPullRequestSearchQueryLocalSchema: z.ZodObject<{ type: z.ZodDefault>; since: z.ZodOptional; until: z.ZodOptional; path: z.ZodOptional; branch: z.ZodOptional; includeDiff: z.ZodDefault>; includeAssets: z.ZodOptional; keywordsToSearch: z.ZodOptional>; prNumber: z.ZodOptional; owner: z.ZodOptional; repo: z.ZodOptional; concise: z.ZodOptional; state: z.ZodOptional>; assignee: z.ZodOptional; author: z.ZodOptional; committer: z.ZodOptional; commenter: z.ZodOptional; mentions: z.ZodOptional; "review-requested": z.ZodOptional; "reviewed-by": z.ZodOptional; label: z.ZodOptional]>>; checks: z.ZodOptional>; review: z.ZodOptional>; head: z.ZodOptional; base: z.ZodOptional; created: z.ZodOptional; updated: z.ZodOptional; closed: z.ZodOptional; "merged-at": z.ZodOptional; comments: z.ZodOptional; reactions: z.ZodOptional; draft: z.ZodOptional; match: z.ZodOptional>>; sort: z.ZodOptional>; order: z.ZodOptional>; limit: z.ZodDefault; page: z.ZodDefault; archived: z.ZodOptional; filePage: z.ZodOptional; commentPage: z.ZodOptional; commitPage: z.ZodOptional; itemsPerPage: z.ZodDefault; reviewMode: z.ZodOptional>; content: z.ZodOptional; body: z.ZodOptional; changedFiles: z.ZodOptional; patches: z.ZodOptional>; files: z.ZodOptional>; ranges: z.ZodOptional>; deletions: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>; comments: z.ZodOptional; reviewInline: z.ZodOptional; includeBots: z.ZodDefault; file: z.ZodOptional; }, z.core.$strip>>; reviews: z.ZodOptional; commits: z.ZodOptional; includeFiles: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; matchString: z.ZodOptional; commentBodyOffset: z.ZodOptional; charOffset: z.ZodOptional; charLength: z.ZodOptional; minify: z.ZodDefault>; id: z.ZodOptional; mainResearchGoal: z.ZodOptional; researchGoal: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>; type GitHubPullRequestSearchInput = z.input; declare function searchMultipleGitHubPullRequests(args: ToolExecutionArgs): Promise; type GitHubReposSearchSingleQuery = z.infer; type RepositorySearchExtraFields = { archived?: boolean; visibility?: 'public' | 'private'; forks?: string; license?: string; goodFirstIssues?: string; }; type PartialReposSearchQuery = WithOptionalMeta & RepositorySearchExtraFields; declare function searchMultipleGitHubRepos(args: ToolExecutionArgs): Promise; type GitHubViewRepoStructureQuery = z.infer; type PartialRepoStructureQuery = WithOptionalMeta; declare function exploreMultipleRepositoryStructures(args: ToolExecutionArgs): Promise; declare const LocalFetchContentQuerySchema: z.ZodObject<{ path: z.ZodString; fullContent: z.ZodOptional; matchString: z.ZodOptional; matchStringIsRegex: z.ZodOptional; matchStringCaseSensitive: z.ZodOptional; startLine: z.ZodOptional; endLine: z.ZodOptional; contextLines: z.ZodDefault; charOffset: z.ZodOptional; charLength: z.ZodOptional; minify: z.ZodDefault>; id: z.ZodOptional; mainResearchGoal: z.ZodOptional; researchGoal: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>; type FetchContentQuery = z.infer & { minify?: MinifyMode; }; declare function executeFetchContent(args: ToolExecutionArgs): Promise; type FindFilesQuery = Omit, 'regexType'>; declare function executeFindFiles(args: ToolExecutionArgs): Promise; declare const LocalRipgrepQuerySchema: z.ZodObject<{ searchText: z.ZodOptional; path: z.ZodString; mode: z.ZodDefault>; pattern: z.ZodOptional; rule: z.ZodOptional; regex: z.ZodDefault>; caseMode: z.ZodDefault>; wholeWord: z.ZodOptional; invertMatch: z.ZodOptional; include: z.ZodOptional>; exclude: z.ZodOptional>; excludeDir: z.ZodOptional>; noIgnore: z.ZodOptional; hidden: z.ZodOptional; contextLines: z.ZodOptional; matchContentLength: z.ZodDefault; maxMatchesPerFile: z.ZodOptional; maxFiles: z.ZodOptional; multiline: z.ZodDefault>; sort: z.ZodDefault>; sortReverse: z.ZodOptional; rankingProfile: z.ZodDefault>; langType: z.ZodOptional; captureText: z.ZodOptional; output: z.ZodDefault>; unique: z.ZodDefault>; matchWindow: z.ZodOptional; matchPage: z.ZodOptional; itemsPerPage: z.ZodOptional; page: z.ZodDefault; id: z.ZodOptional; mainResearchGoal: z.ZodOptional; researchGoal: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>; type RipgrepQuery = z.infer; declare function executeRipgrepSearch(args: ToolExecutionArgs): Promise; declare const LocalViewStructureQuerySchema: z.ZodObject<{ path: z.ZodString; detail: z.ZodDefault>; hidden: z.ZodOptional; sortBy: z.ZodDefault>; reverse: z.ZodOptional; pattern: z.ZodOptional; entryType: z.ZodOptional>; recursive: z.ZodOptional; extensions: z.ZodOptional>; maxDepth: z.ZodOptional; limit: z.ZodOptional; page: z.ZodDefault; itemsPerPage: z.ZodOptional; id: z.ZodOptional; mainResearchGoal: z.ZodOptional; researchGoal: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>; type ViewStructureQuery = z.infer; declare function executeViewStructure(args: ToolExecutionArgs): Promise; declare const SEMANTIC_CONTENT_TYPES: readonly ["definition", "references", "callers", "callees", "callHierarchy", "hover", "documentSymbols", "typeDefinition", "implementation", "workspaceSymbol", "supertypes", "subtypes", "diagnostic"]; type SemanticContentType = (typeof SEMANTIC_CONTENT_TYPES)[number]; type SemanticOutputFormat = 'structured' | 'compact'; type SemanticQueryBase = { id?: string; type: SemanticContentType; uri?: string; workspaceRoot?: string; page?: number; itemsPerPage?: number; contextLines?: number; format?: SemanticOutputFormat; mainResearchGoal?: string; researchGoal?: string; reasoning?: string; }; type SymbolAnchoredSemanticQuery = SemanticQueryBase & { type: Exclude; symbolName: string; lineHint: number; orderHint?: number; depth?: number; includeDeclaration?: boolean; groupByFile?: boolean; }; type DocumentSymbolsSemanticQuery = SemanticQueryBase & { type: 'documentSymbols'; }; /** `workspace/symbol`: project-wide fuzzy symbol search. `symbolName` is the query string. */ type WorkspaceSymbolSemanticQuery = SemanticQueryBase & { type: 'workspaceSymbol'; symbolName: string; }; /** `textDocument/diagnostic` (pull): errors/warnings for a file without a position anchor. */ type DiagnosticSemanticQuery = SemanticQueryBase & { type: 'diagnostic'; }; type LspGetSemanticsQuery = SymbolAnchoredSemanticQuery | DocumentSymbolsSemanticQuery | WorkspaceSymbolSemanticQuery | DiagnosticSemanticQuery; declare function executeLspGetSemantics(args: ToolExecutionArgs): Promise; declare const LspGetSemanticsQuerySchema: z.ZodObject<{ uri: z.ZodOptional; type: z.ZodDefault>; symbolName: z.ZodOptional; lineHint: z.ZodOptional; orderHint: z.ZodDefault; depth: z.ZodOptional; includeDeclaration: z.ZodDefault; groupByFile: z.ZodOptional; page: z.ZodDefault; itemsPerPage: z.ZodOptional; contextLines: z.ZodOptional; format: z.ZodDefault>; workspaceRoot: z.ZodOptional; id: z.ZodOptional; mainResearchGoal: z.ZodOptional; researchGoal: z.ZodOptional; reasoning: z.ZodOptional; }, z.core.$strip>; type NpmSearchQuery = z.input; declare function searchPackages(args: ToolExecutionArgs): Promise; declare function loadToolContent(): Promise; export { LspGetSemanticsQuerySchema, executeCloneRepo, executeFetchContent, executeFindFiles, executeLspGetSemantics, executeRipgrepSearch, executeViewStructure, exploreMultipleRepositoryStructures, fetchMultipleGitHubFileContents, initialize, initializeProviders, loadToolContent, searchMultipleGitHubCode, searchMultipleGitHubPullRequests, searchMultipleGitHubRepos, searchPackages };