@githits/mcp 0.24.0 → 0.25.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/client.d.ts +164 -1
- package/dist/client.js +1 -1
- package/dist/index.d.ts +126 -0
- package/dist/index.js +35 -32
- package/dist/shared/{chunk-1tvgyfva.js → chunk-6qfkds1b.js} +60 -10
- package/dist/smoke-test.d.ts +1 -1
- package/dist/smoke-test.js +3 -3
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -904,6 +904,169 @@ declare class GitHitsServiceImpl implements GitHitsService {
|
|
|
904
904
|
private request;
|
|
905
905
|
private createError;
|
|
906
906
|
}
|
|
907
|
+
type GrepCorpus = "SOURCE" | "DOCUMENTATION" | "ALL";
|
|
908
|
+
type GrepTraversal = "COMPLETE" | "RESUMABLE_LIMIT" | "NON_RESUMABLE_PARTIAL" | "FAILED" | "CURSOR_EXPIRED";
|
|
909
|
+
/** Observed readiness; UNSPECIFIED denotes a scope not yet visited in this page. */
|
|
910
|
+
type GrepReadiness = "UNSPECIFIED" | "CURRENT" | "STALE" | "NOT_AVAILABLE" | "MISSING_REF" | "READER_OPEN_FAILED" | "INCOMPLETE" | "RESOURCE_LIMIT" | "VERSION_UNSUPPORTED" | "READ_FAILED";
|
|
911
|
+
interface GrepPathSelector {
|
|
912
|
+
kind: "EXACT" | "PREFIX" | "GLOB";
|
|
913
|
+
value: string;
|
|
914
|
+
}
|
|
915
|
+
interface GrepTarget {
|
|
916
|
+
target: string;
|
|
917
|
+
corpus?: GrepCorpus;
|
|
918
|
+
pathSelectors?: GrepPathSelector[];
|
|
919
|
+
allowUnscoped?: boolean;
|
|
920
|
+
}
|
|
921
|
+
interface GrepParams {
|
|
922
|
+
targets: GrepTarget[];
|
|
923
|
+
pattern: string;
|
|
924
|
+
patternType: "REGEX" | "LITERAL";
|
|
925
|
+
caseSensitive: boolean;
|
|
926
|
+
contextLinesBefore: number;
|
|
927
|
+
contextLinesAfter: number;
|
|
928
|
+
maxMatches?: number;
|
|
929
|
+
cursor?: string;
|
|
930
|
+
waitTimeoutMs?: number;
|
|
931
|
+
includeDetailedFields: boolean;
|
|
932
|
+
}
|
|
933
|
+
interface GrepLineSlice {
|
|
934
|
+
content: string;
|
|
935
|
+
startByte: number;
|
|
936
|
+
endByte: number;
|
|
937
|
+
originalLineBytes: number;
|
|
938
|
+
}
|
|
939
|
+
interface GrepContentSafety {
|
|
940
|
+
filtered: boolean;
|
|
941
|
+
modifications?: ContentModification[];
|
|
942
|
+
}
|
|
943
|
+
interface GrepReadAction {
|
|
944
|
+
target: string;
|
|
945
|
+
path: string | null;
|
|
946
|
+
startLine: number;
|
|
947
|
+
endLine: number;
|
|
948
|
+
}
|
|
949
|
+
interface GrepHitBase {
|
|
950
|
+
targetIndex: number;
|
|
951
|
+
line: number;
|
|
952
|
+
lineSlice: GrepLineSlice;
|
|
953
|
+
contextBeforeSlices: GrepLineSlice[];
|
|
954
|
+
contextAfterSlices: GrepLineSlice[];
|
|
955
|
+
read: GrepReadAction;
|
|
956
|
+
contentSafety: GrepContentSafety;
|
|
957
|
+
lineContent?: string;
|
|
958
|
+
matchStartByte: number;
|
|
959
|
+
matchEndByte: number;
|
|
960
|
+
sourceMatchStartByte?: number;
|
|
961
|
+
sourceMatchEndByte?: number;
|
|
962
|
+
}
|
|
963
|
+
interface GrepRepositoryHit extends GrepHitBase {
|
|
964
|
+
__typename: "GrepRepositoryHit";
|
|
965
|
+
read: GrepReadAction & {
|
|
966
|
+
path: string;
|
|
967
|
+
};
|
|
968
|
+
filePath: string;
|
|
969
|
+
repoUrl?: string;
|
|
970
|
+
commitSha?: string;
|
|
971
|
+
repositoryFilePath?: string;
|
|
972
|
+
}
|
|
973
|
+
interface GrepSiteHit extends GrepHitBase {
|
|
974
|
+
__typename: "GrepSiteHit";
|
|
975
|
+
read: GrepReadAction & {
|
|
976
|
+
path: null;
|
|
977
|
+
};
|
|
978
|
+
pageUrl: string;
|
|
979
|
+
}
|
|
980
|
+
type GrepHit = GrepRepositoryHit | GrepSiteHit;
|
|
981
|
+
interface GrepFileIssue {
|
|
982
|
+
filePath: string;
|
|
983
|
+
code: string;
|
|
984
|
+
line: number;
|
|
985
|
+
contentSafety: GrepContentSafety;
|
|
986
|
+
lineBytes?: number;
|
|
987
|
+
matchStartByte?: number | null;
|
|
988
|
+
matchEndByte?: number | null;
|
|
989
|
+
}
|
|
990
|
+
interface GrepTargetStatus {
|
|
991
|
+
targetIndex: number;
|
|
992
|
+
requestedInputIndices: number[];
|
|
993
|
+
kind: "REPOSITORY" | "SITE";
|
|
994
|
+
target: string;
|
|
995
|
+
traversal: GrepTraversal;
|
|
996
|
+
readiness: GrepReadiness;
|
|
997
|
+
errorCode: string | null;
|
|
998
|
+
retryable: boolean;
|
|
999
|
+
publicMessage: string | null;
|
|
1000
|
+
requestedRef: string | null;
|
|
1001
|
+
commitSha: string | null;
|
|
1002
|
+
corpus: GrepCorpus | null;
|
|
1003
|
+
filesScanned: number | null;
|
|
1004
|
+
filesInScope: number | null;
|
|
1005
|
+
binaryFilesSkipped: number | null;
|
|
1006
|
+
filesTooLargeSkipped: number | null;
|
|
1007
|
+
fileIssues: GrepFileIssue[] | null;
|
|
1008
|
+
fileIssuesOmitted: number | null;
|
|
1009
|
+
repoUrl: string | null;
|
|
1010
|
+
canonicalSite: string | null;
|
|
1011
|
+
urlPrefixes?: string[];
|
|
1012
|
+
}
|
|
1013
|
+
interface GrepUnavailableTarget {
|
|
1014
|
+
inputIndex: number;
|
|
1015
|
+
target: string;
|
|
1016
|
+
reason: string;
|
|
1017
|
+
retryable: boolean;
|
|
1018
|
+
progressRef: string | null;
|
|
1019
|
+
suggestedSiteTargets: string[] | null;
|
|
1020
|
+
}
|
|
1021
|
+
interface GrepResult {
|
|
1022
|
+
hits: GrepHit[];
|
|
1023
|
+
targets: GrepTargetStatus[];
|
|
1024
|
+
unavailableTargets: GrepUnavailableTarget[];
|
|
1025
|
+
traversal: GrepTraversal;
|
|
1026
|
+
nextCursor: string | null;
|
|
1027
|
+
totalMatches: number;
|
|
1028
|
+
}
|
|
1029
|
+
interface GrepService {
|
|
1030
|
+
grep(params: GrepParams): Promise<GrepResult>;
|
|
1031
|
+
}
|
|
1032
|
+
interface GrepServiceRuntime {
|
|
1033
|
+
clientHeaders?: ClientHeaderBuilder;
|
|
1034
|
+
userAgent?: string;
|
|
1035
|
+
clientVersion?: string;
|
|
1036
|
+
diagnostics?: ServiceDiagnostics;
|
|
1037
|
+
}
|
|
1038
|
+
/** Public backend error details, retained without interpreting message text. */
|
|
1039
|
+
declare class GrepGraphQLError extends Error {
|
|
1040
|
+
readonly extensions: Record<string, unknown>;
|
|
1041
|
+
constructor(message: string, extensions?: Record<string, unknown>);
|
|
1042
|
+
}
|
|
1043
|
+
declare class GrepBackendError extends Error {
|
|
1044
|
+
readonly status?: number | undefined;
|
|
1045
|
+
readonly graphqlCode?: string | undefined;
|
|
1046
|
+
readonly retryable?: boolean | undefined;
|
|
1047
|
+
constructor(message: string, status?: number | undefined, graphqlCode?: string | undefined, retryable?: boolean | undefined);
|
|
1048
|
+
}
|
|
1049
|
+
declare class GrepAccessError extends Error {
|
|
1050
|
+
constructor(message: string);
|
|
1051
|
+
}
|
|
1052
|
+
declare class GrepNetworkError extends Error {
|
|
1053
|
+
constructor(message: string, options?: {
|
|
1054
|
+
cause?: unknown;
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
declare class MalformedGrepResponseError extends Error {
|
|
1058
|
+
constructor();
|
|
1059
|
+
}
|
|
1060
|
+
/** One transport-neutral request for a mixed-source grep page. */
|
|
1061
|
+
declare class GrepServiceImpl implements GrepService {
|
|
1062
|
+
private readonly endpointUrl;
|
|
1063
|
+
private readonly tokenProvider;
|
|
1064
|
+
private readonly fetchFn;
|
|
1065
|
+
private readonly runtime;
|
|
1066
|
+
constructor(endpointUrl: string, tokenProvider: TokenProvider, fetchFn?: typeof fetch, runtime?: GrepServiceRuntime);
|
|
1067
|
+
grep(params: GrepParams): Promise<GrepResult>;
|
|
1068
|
+
private executeGrep;
|
|
1069
|
+
}
|
|
907
1070
|
type ListFileIntent = "PRODUCTION" | "TEST" | "BENCHMARK" | "EXAMPLE" | "GENERATED" | "FIXTURE" | "BUILD" | "VENDOR";
|
|
908
1071
|
interface ListParams {
|
|
909
1072
|
target: string;
|
|
@@ -1870,4 +2033,4 @@ declare class RefreshingGitHitsService implements GitHitsService {
|
|
|
1870
2033
|
*/
|
|
1871
2034
|
private withTokenRefresh;
|
|
1872
2035
|
}
|
|
1873
|
-
export { AgentInfo, CodeDiffError, CodeDiffErrorDetails, CodeDiffErrorRef, CodeDiffMode, CodeDiffOptions, CodeDiffPackageInfo, CodeDiffPackageTarget, CodeDiffParams, CodeDiffPartialResult, CodeDiffRefKind, CodeDiffRefResolution, CodeDiffRepositoryTarget, CodeDiffResult, CodeDiffService, CodeDiffTarget, CodeDiffVersionSource, CodeNavigationService, CodeNavigationServiceImpl, CodeSymbolCandidate, CodeSymbolResolution, CodeSymbolSuggestion, ContentModification, ContentSafety, DEFAULT_API_URL, DEFAULT_CODE_NAV_URL, DEFAULT_MCP_URL, GitHitsService, GitHitsServiceImpl, ListAccessError, ListAction, ListAvailableVersion, ListBackendError, ListBrowseAction, ListEntry, ListEntryKind, ListFileIntent, ListGraphQLError, ListIndexingEstimate, ListInventoryKind, ListNetworkError, ListParams, ListReadAction, ListResolution, ListResult, ListService, ListServiceImpl, ListSiteJob, ListSitePreparation, ListSiteWait, ListSiteWaitOutcome, ListTargetIdentity, ListTargetResolution, MalformedListResponseError, PKGSEER_REGISTRY_LIST, PackageIntelligenceService, PackageIntelligenceServiceImpl, RawCodeDiff, RawCodeDiffContentCoverage, RawCodeDiffContentFailure, RawCodeDiffFile, RawCodeDiffFileContentStatus, RawCodeDiffFileStatus, RawCodeDiffPathEncoding, RawCodeDiffScope, RawCodeDiffScopeStatus, RawCodeDiffSummary, ReadCodeResult, ReadDocsResult, ReadParams, ReadResult, ReadService, ReadServiceImpl, ReadSymbolResolutionResult, ReadTarget, RefreshingGitHitsService, ServiceDiagnostics, TokenProvider, createClientHeaderBuilder, createStaticTokenProvider, getApiUrl, getCodeNavigationUrl, getEnvApiToken, getMcpUrl, toPkgseerRegistry, toPkgseerRegistryLowercase };
|
|
2036
|
+
export { AgentInfo, CodeDiffError, CodeDiffErrorDetails, CodeDiffErrorRef, CodeDiffMode, CodeDiffOptions, CodeDiffPackageInfo, CodeDiffPackageTarget, CodeDiffParams, CodeDiffPartialResult, CodeDiffRefKind, CodeDiffRefResolution, CodeDiffRepositoryTarget, CodeDiffResult, CodeDiffService, CodeDiffTarget, CodeDiffVersionSource, CodeNavigationService, CodeNavigationServiceImpl, CodeSymbolCandidate, CodeSymbolResolution, CodeSymbolSuggestion, ContentModification, ContentSafety, DEFAULT_API_URL, DEFAULT_CODE_NAV_URL, DEFAULT_MCP_URL, GitHitsService, GitHitsServiceImpl, GrepAccessError, GrepBackendError, GrepContentSafety, GrepCorpus, GrepFileIssue, GrepGraphQLError, GrepHit, GrepLineSlice, GrepNetworkError, GrepParams, GrepPathSelector, GrepReadAction, GrepReadiness, GrepRepositoryHit, GrepResult, GrepService, GrepServiceImpl, GrepSiteHit, GrepTarget, GrepTargetStatus, GrepTraversal, GrepUnavailableTarget, ListAccessError, ListAction, ListAvailableVersion, ListBackendError, ListBrowseAction, ListEntry, ListEntryKind, ListFileIntent, ListGraphQLError, ListIndexingEstimate, ListInventoryKind, ListNetworkError, ListParams, ListReadAction, ListResolution, ListResult, ListService, ListServiceImpl, ListSiteJob, ListSitePreparation, ListSiteWait, ListSiteWaitOutcome, ListTargetIdentity, ListTargetResolution, MalformedGrepResponseError, MalformedListResponseError, PKGSEER_REGISTRY_LIST, PackageIntelligenceService, PackageIntelligenceServiceImpl, RawCodeDiff, RawCodeDiffContentCoverage, RawCodeDiffContentFailure, RawCodeDiffFile, RawCodeDiffFileContentStatus, RawCodeDiffFileStatus, RawCodeDiffPathEncoding, RawCodeDiffScope, RawCodeDiffScopeStatus, RawCodeDiffSummary, ReadCodeResult, ReadDocsResult, ReadParams, ReadResult, ReadService, ReadServiceImpl, ReadSymbolResolutionResult, ReadTarget, RefreshingGitHitsService, ServiceDiagnostics, TokenProvider, createClientHeaderBuilder, createStaticTokenProvider, getApiUrl, getCodeNavigationUrl, getEnvApiToken, getMcpUrl, toPkgseerRegistry, toPkgseerRegistryLowercase };
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,ListAccessError2,ListGraphQLError2,ListBackendError2,ListNetworkError2,MalformedListResponseError2,ListServiceImpl2,PackageIntelligenceServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,createStaticTokenProvider2,createClientHeaderBuilder2}from"./shared/chunk-
|
|
1
|
+
import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,GrepGraphQLError2,GrepBackendError2,GrepAccessError2,GrepNetworkError2,MalformedGrepResponseError2,GrepServiceImpl2,ListAccessError2,ListGraphQLError2,ListBackendError2,ListNetworkError2,MalformedListResponseError2,ListServiceImpl2,PackageIntelligenceServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,createStaticTokenProvider2,createClientHeaderBuilder2}from"./shared/chunk-6qfkds1b.js";export{CodeDiffError2 as CodeDiffError,CodeNavigationServiceImpl2 as CodeNavigationServiceImpl,DEFAULT_API_URL2 as DEFAULT_API_URL,DEFAULT_CODE_NAV_URL2 as DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL2 as DEFAULT_MCP_URL,GitHitsServiceImpl2 as GitHitsServiceImpl,GrepAccessError2 as GrepAccessError,GrepBackendError2 as GrepBackendError,GrepGraphQLError2 as GrepGraphQLError,GrepNetworkError2 as GrepNetworkError,GrepServiceImpl2 as GrepServiceImpl,ListAccessError2 as ListAccessError,ListBackendError2 as ListBackendError,ListGraphQLError2 as ListGraphQLError,ListNetworkError2 as ListNetworkError,ListServiceImpl2 as ListServiceImpl,MalformedGrepResponseError2 as MalformedGrepResponseError,MalformedListResponseError2 as MalformedListResponseError,PKGSEER_REGISTRY_LIST2 as PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl2 as PackageIntelligenceServiceImpl,ReadServiceImpl2 as ReadServiceImpl,RefreshingGitHitsService2 as RefreshingGitHitsService,createClientHeaderBuilder2 as createClientHeaderBuilder,createStaticTokenProvider2 as createStaticTokenProvider,getApiUrl2 as getApiUrl,getCodeNavigationUrl2 as getCodeNavigationUrl,getEnvApiToken2 as getEnvApiToken,getMcpUrl2 as getMcpUrl,toPkgseerRegistry2 as toPkgseerRegistry,toPkgseerRegistryLowercase2 as toPkgseerRegistryLowercase};
|
package/dist/index.d.ts
CHANGED
|
@@ -634,6 +634,131 @@ interface GitHitsService {
|
|
|
634
634
|
/** Search for code examples. Returns markdown-formatted result. */
|
|
635
635
|
search(params: SearchParams, options?: GitHitsServiceRequestOptions): Promise<string>;
|
|
636
636
|
}
|
|
637
|
+
type GrepCorpus = "SOURCE" | "DOCUMENTATION" | "ALL";
|
|
638
|
+
type GrepTraversal = "COMPLETE" | "RESUMABLE_LIMIT" | "NON_RESUMABLE_PARTIAL" | "FAILED" | "CURSOR_EXPIRED";
|
|
639
|
+
/** Observed readiness; UNSPECIFIED denotes a scope not yet visited in this page. */
|
|
640
|
+
type GrepReadiness = "UNSPECIFIED" | "CURRENT" | "STALE" | "NOT_AVAILABLE" | "MISSING_REF" | "READER_OPEN_FAILED" | "INCOMPLETE" | "RESOURCE_LIMIT" | "VERSION_UNSUPPORTED" | "READ_FAILED";
|
|
641
|
+
interface GrepPathSelector {
|
|
642
|
+
kind: "EXACT" | "PREFIX" | "GLOB";
|
|
643
|
+
value: string;
|
|
644
|
+
}
|
|
645
|
+
interface GrepTarget {
|
|
646
|
+
target: string;
|
|
647
|
+
corpus?: GrepCorpus;
|
|
648
|
+
pathSelectors?: GrepPathSelector[];
|
|
649
|
+
allowUnscoped?: boolean;
|
|
650
|
+
}
|
|
651
|
+
interface GrepParams {
|
|
652
|
+
targets: GrepTarget[];
|
|
653
|
+
pattern: string;
|
|
654
|
+
patternType: "REGEX" | "LITERAL";
|
|
655
|
+
caseSensitive: boolean;
|
|
656
|
+
contextLinesBefore: number;
|
|
657
|
+
contextLinesAfter: number;
|
|
658
|
+
maxMatches?: number;
|
|
659
|
+
cursor?: string;
|
|
660
|
+
waitTimeoutMs?: number;
|
|
661
|
+
includeDetailedFields: boolean;
|
|
662
|
+
}
|
|
663
|
+
interface GrepLineSlice {
|
|
664
|
+
content: string;
|
|
665
|
+
startByte: number;
|
|
666
|
+
endByte: number;
|
|
667
|
+
originalLineBytes: number;
|
|
668
|
+
}
|
|
669
|
+
interface GrepContentSafety {
|
|
670
|
+
filtered: boolean;
|
|
671
|
+
modifications?: ContentModification[];
|
|
672
|
+
}
|
|
673
|
+
interface GrepReadAction {
|
|
674
|
+
target: string;
|
|
675
|
+
path: string | null;
|
|
676
|
+
startLine: number;
|
|
677
|
+
endLine: number;
|
|
678
|
+
}
|
|
679
|
+
interface GrepHitBase {
|
|
680
|
+
targetIndex: number;
|
|
681
|
+
line: number;
|
|
682
|
+
lineSlice: GrepLineSlice;
|
|
683
|
+
contextBeforeSlices: GrepLineSlice[];
|
|
684
|
+
contextAfterSlices: GrepLineSlice[];
|
|
685
|
+
read: GrepReadAction;
|
|
686
|
+
contentSafety: GrepContentSafety;
|
|
687
|
+
lineContent?: string;
|
|
688
|
+
matchStartByte: number;
|
|
689
|
+
matchEndByte: number;
|
|
690
|
+
sourceMatchStartByte?: number;
|
|
691
|
+
sourceMatchEndByte?: number;
|
|
692
|
+
}
|
|
693
|
+
interface GrepRepositoryHit extends GrepHitBase {
|
|
694
|
+
__typename: "GrepRepositoryHit";
|
|
695
|
+
read: GrepReadAction & {
|
|
696
|
+
path: string;
|
|
697
|
+
};
|
|
698
|
+
filePath: string;
|
|
699
|
+
repoUrl?: string;
|
|
700
|
+
commitSha?: string;
|
|
701
|
+
repositoryFilePath?: string;
|
|
702
|
+
}
|
|
703
|
+
interface GrepSiteHit extends GrepHitBase {
|
|
704
|
+
__typename: "GrepSiteHit";
|
|
705
|
+
read: GrepReadAction & {
|
|
706
|
+
path: null;
|
|
707
|
+
};
|
|
708
|
+
pageUrl: string;
|
|
709
|
+
}
|
|
710
|
+
type GrepHit = GrepRepositoryHit | GrepSiteHit;
|
|
711
|
+
interface GrepFileIssue {
|
|
712
|
+
filePath: string;
|
|
713
|
+
code: string;
|
|
714
|
+
line: number;
|
|
715
|
+
contentSafety: GrepContentSafety;
|
|
716
|
+
lineBytes?: number;
|
|
717
|
+
matchStartByte?: number | null;
|
|
718
|
+
matchEndByte?: number | null;
|
|
719
|
+
}
|
|
720
|
+
interface GrepTargetStatus {
|
|
721
|
+
targetIndex: number;
|
|
722
|
+
requestedInputIndices: number[];
|
|
723
|
+
kind: "REPOSITORY" | "SITE";
|
|
724
|
+
target: string;
|
|
725
|
+
traversal: GrepTraversal;
|
|
726
|
+
readiness: GrepReadiness;
|
|
727
|
+
errorCode: string | null;
|
|
728
|
+
retryable: boolean;
|
|
729
|
+
publicMessage: string | null;
|
|
730
|
+
requestedRef: string | null;
|
|
731
|
+
commitSha: string | null;
|
|
732
|
+
corpus: GrepCorpus | null;
|
|
733
|
+
filesScanned: number | null;
|
|
734
|
+
filesInScope: number | null;
|
|
735
|
+
binaryFilesSkipped: number | null;
|
|
736
|
+
filesTooLargeSkipped: number | null;
|
|
737
|
+
fileIssues: GrepFileIssue[] | null;
|
|
738
|
+
fileIssuesOmitted: number | null;
|
|
739
|
+
repoUrl: string | null;
|
|
740
|
+
canonicalSite: string | null;
|
|
741
|
+
urlPrefixes?: string[];
|
|
742
|
+
}
|
|
743
|
+
interface GrepUnavailableTarget {
|
|
744
|
+
inputIndex: number;
|
|
745
|
+
target: string;
|
|
746
|
+
reason: string;
|
|
747
|
+
retryable: boolean;
|
|
748
|
+
progressRef: string | null;
|
|
749
|
+
suggestedSiteTargets: string[] | null;
|
|
750
|
+
}
|
|
751
|
+
interface GrepResult {
|
|
752
|
+
hits: GrepHit[];
|
|
753
|
+
targets: GrepTargetStatus[];
|
|
754
|
+
unavailableTargets: GrepUnavailableTarget[];
|
|
755
|
+
traversal: GrepTraversal;
|
|
756
|
+
nextCursor: string | null;
|
|
757
|
+
totalMatches: number;
|
|
758
|
+
}
|
|
759
|
+
interface GrepService {
|
|
760
|
+
grep(params: GrepParams): Promise<GrepResult>;
|
|
761
|
+
}
|
|
637
762
|
type ListFileIntent = "PRODUCTION" | "TEST" | "BENCHMARK" | "EXAMPLE" | "GENERATED" | "FIXTURE" | "BUILD" | "VENDOR";
|
|
638
763
|
interface ListParams {
|
|
639
764
|
target: string;
|
|
@@ -1485,6 +1610,7 @@ interface McpToolServices {
|
|
|
1485
1610
|
packageIntelligenceService: PackageIntelligenceService;
|
|
1486
1611
|
listService: ListService;
|
|
1487
1612
|
readService: ReadService;
|
|
1613
|
+
grepService: GrepService;
|
|
1488
1614
|
}
|
|
1489
1615
|
interface McpServerMetadata {
|
|
1490
1616
|
name: string;
|