@githits/mcp 0.23.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 +363 -29
- package/dist/client.js +1 -1
- package/dist/index.d.ts +255 -0
- package/dist/index.js +67 -54
- package/dist/shared/chunk-3e51d758.js +16 -0
- package/dist/shared/chunk-6qfkds1b.js +1778 -0
- package/dist/smoke-test.d.ts +1 -1
- package/dist/smoke-test.js +4 -2
- package/dist/tools.js +1 -1
- package/package.json +1 -1
- package/dist/shared/chunk-a5wp03h1.js +0 -1593
- package/dist/shared/chunk-p2k4j8je.js +0 -16
package/dist/client.d.ts
CHANGED
|
@@ -22,6 +22,35 @@ interface CreateClientHeaderBuilderOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
declare function createClientHeaderBuilder(options: CreateClientHeaderBuilderOptions): ClientHeaderBuilder;
|
|
24
24
|
/**
|
|
25
|
+
* Host-supplied diagnostics for transport-neutral service clients.
|
|
26
|
+
*
|
|
27
|
+
* Implementations may record operation timings or debug events in whatever
|
|
28
|
+
* way is appropriate for their host. Core does not provide a default and
|
|
29
|
+
* remains silent when diagnostics are omitted. Core callers gate every debug
|
|
30
|
+
* event through `isEnabled(area)`; when it returns `false`, the corresponding
|
|
31
|
+
* debug call is suppressed entirely. Returning `true` is therefore both a log
|
|
32
|
+
* filter and a content-disclosure decision for the host.
|
|
33
|
+
*
|
|
34
|
+
* In particular, the `code-nav-wire` area may carry the exact GraphQL document
|
|
35
|
+
* and request variables, including caller query text, so it requires separate
|
|
36
|
+
* explicit opt-in. The `code-nav` and `pkg-graphql` schema-mismatch paths may
|
|
37
|
+
* carry raw backend error text, and an enabled area may select that raw error
|
|
38
|
+
* content instead of the sanitized message. These areas are not PII-safe;
|
|
39
|
+
* hosts own their privacy and retention policy for any enabled diagnostics.
|
|
40
|
+
*/
|
|
41
|
+
interface ServiceDiagnostics {
|
|
42
|
+
withOperation<T>(name: string, operation: () => Promise<T>): Promise<T>;
|
|
43
|
+
isEnabled(area: string): boolean;
|
|
44
|
+
debug(area: string, event: Record<string, unknown>): void;
|
|
45
|
+
}
|
|
46
|
+
interface TokenProvider {
|
|
47
|
+
/** Get a valid token, refreshing proactively or reactively as needed. */
|
|
48
|
+
getToken(): Promise<string | undefined>;
|
|
49
|
+
/** Force a refresh, usually after an authentication failure. */
|
|
50
|
+
forceRefresh(): Promise<string | undefined>;
|
|
51
|
+
}
|
|
52
|
+
declare function createStaticTokenProvider(token: string): TokenProvider;
|
|
53
|
+
/**
|
|
25
54
|
* Registry taxonomy shared by code-navigation and package-intelligence
|
|
26
55
|
* services. Single source of truth for:
|
|
27
56
|
*
|
|
@@ -61,35 +90,14 @@ declare function toPkgseerRegistry(registry: PkgseerRegistryArg): PkgseerRegistr
|
|
|
61
90
|
* lowering a response field for user display.
|
|
62
91
|
*/
|
|
63
92
|
declare function toPkgseerRegistryLowercase(registry: PkgseerRegistry): PkgseerRegistryArg;
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
* debug call is suppressed entirely. Returning `true` is therefore both a log
|
|
72
|
-
* filter and a content-disclosure decision for the host.
|
|
73
|
-
*
|
|
74
|
-
* In particular, the `code-nav-wire` area may carry the exact GraphQL document
|
|
75
|
-
* and request variables, including caller query text, so it requires separate
|
|
76
|
-
* explicit opt-in. The `code-nav` and `pkg-graphql` schema-mismatch paths may
|
|
77
|
-
* carry raw backend error text, and an enabled area may select that raw error
|
|
78
|
-
* content instead of the sanitized message. These areas are not PII-safe;
|
|
79
|
-
* hosts own their privacy and retention policy for any enabled diagnostics.
|
|
80
|
-
*/
|
|
81
|
-
interface ServiceDiagnostics {
|
|
82
|
-
withOperation<T>(name: string, operation: () => Promise<T>): Promise<T>;
|
|
83
|
-
isEnabled(area: string): boolean;
|
|
84
|
-
debug(area: string, event: Record<string, unknown>): void;
|
|
85
|
-
}
|
|
86
|
-
interface TokenProvider {
|
|
87
|
-
/** Get a valid token, refreshing proactively or reactively as needed. */
|
|
88
|
-
getToken(): Promise<string | undefined>;
|
|
89
|
-
/** Force a refresh, usually after an authentication failure. */
|
|
90
|
-
forceRefresh(): Promise<string | undefined>;
|
|
93
|
+
/** A backend-selected address for a code or documentation read. */
|
|
94
|
+
interface ReadTarget {
|
|
95
|
+
target: string;
|
|
96
|
+
path?: string;
|
|
97
|
+
selector?: string;
|
|
98
|
+
startLine?: number;
|
|
99
|
+
endLine?: number;
|
|
91
100
|
}
|
|
92
|
-
declare function createStaticTokenProvider(token: string): TokenProvider;
|
|
93
101
|
/**
|
|
94
102
|
* Back-compat alias — the canonical registry union now lives in
|
|
95
103
|
* `src/shared/pkgseer-registry.ts`. Re-exported here so existing
|
|
@@ -329,6 +337,8 @@ interface UnifiedSearchLocator {
|
|
|
329
337
|
language?: string;
|
|
330
338
|
}
|
|
331
339
|
interface UnifiedSearchHit {
|
|
340
|
+
/** Backend-selected action; absent only for older custom providers. */
|
|
341
|
+
readTarget?: ReadTarget | null;
|
|
332
342
|
id: string;
|
|
333
343
|
resultType: UnifiedSearchResultType;
|
|
334
344
|
targetLabel: string;
|
|
@@ -523,6 +533,8 @@ interface ReadFileParams {
|
|
|
523
533
|
waitTimeoutMs?: number;
|
|
524
534
|
}
|
|
525
535
|
interface ReadFileResult {
|
|
536
|
+
/** Served action selected by unified read; legacy readers may omit it. */
|
|
537
|
+
readTarget?: ReadTarget | null;
|
|
526
538
|
filePath?: string;
|
|
527
539
|
language?: string;
|
|
528
540
|
totalLines?: number;
|
|
@@ -892,6 +904,326 @@ declare class GitHitsServiceImpl implements GitHitsService {
|
|
|
892
904
|
private request;
|
|
893
905
|
private createError;
|
|
894
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
|
+
}
|
|
1070
|
+
type ListFileIntent = "PRODUCTION" | "TEST" | "BENCHMARK" | "EXAMPLE" | "GENERATED" | "FIXTURE" | "BUILD" | "VENDOR";
|
|
1071
|
+
interface ListParams {
|
|
1072
|
+
target: string;
|
|
1073
|
+
paths?: string[];
|
|
1074
|
+
recursive?: boolean;
|
|
1075
|
+
fileTypes?: string[];
|
|
1076
|
+
languages?: string[];
|
|
1077
|
+
intents?: ListFileIntent[];
|
|
1078
|
+
limit?: number;
|
|
1079
|
+
after?: string;
|
|
1080
|
+
waitTimeoutMs?: number;
|
|
1081
|
+
includeDetailedFields: boolean;
|
|
1082
|
+
/** Select exact read actions for compact site text; detailed fields always include them. */
|
|
1083
|
+
includeReadActions?: boolean;
|
|
1084
|
+
}
|
|
1085
|
+
type ListInventoryKind = "SOURCE" | "SITE";
|
|
1086
|
+
type ListEntryKind = "FILE" | "PAGE" | "DIRECTORY";
|
|
1087
|
+
type ListSiteWaitOutcome = "COMPLETED" | "DISCARDED" | "CANCELLED" | "TIMEOUT";
|
|
1088
|
+
interface ListReadAction {
|
|
1089
|
+
target: string;
|
|
1090
|
+
path: string | null;
|
|
1091
|
+
}
|
|
1092
|
+
interface ListBrowseAction {
|
|
1093
|
+
target: string;
|
|
1094
|
+
paths: string[] | null;
|
|
1095
|
+
}
|
|
1096
|
+
type ListAction = ListReadAction | ListBrowseAction;
|
|
1097
|
+
interface ListEntry {
|
|
1098
|
+
kind: ListEntryKind;
|
|
1099
|
+
path: string;
|
|
1100
|
+
title?: string | null;
|
|
1101
|
+
language?: string | null;
|
|
1102
|
+
fileType?: string | null;
|
|
1103
|
+
intent?: string | null;
|
|
1104
|
+
byteSize?: number | null;
|
|
1105
|
+
lineCount?: number | null;
|
|
1106
|
+
contentHash?: string | null;
|
|
1107
|
+
read?: ListReadAction | null;
|
|
1108
|
+
browse?: ListBrowseAction | null;
|
|
1109
|
+
}
|
|
1110
|
+
interface ListAvailableVersion {
|
|
1111
|
+
version: string | null;
|
|
1112
|
+
ref: string;
|
|
1113
|
+
}
|
|
1114
|
+
interface ListResolution {
|
|
1115
|
+
requestedVersion: string | null;
|
|
1116
|
+
requestedRef: string | null;
|
|
1117
|
+
resolvedRef: string | null;
|
|
1118
|
+
commitSha: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
interface ListTargetIdentity {
|
|
1121
|
+
kind: string | null;
|
|
1122
|
+
registry: string | null;
|
|
1123
|
+
packageName: string | null;
|
|
1124
|
+
version: string | null;
|
|
1125
|
+
repoUrl: string | null;
|
|
1126
|
+
gitRef: string | null;
|
|
1127
|
+
commitSha: string | null;
|
|
1128
|
+
}
|
|
1129
|
+
interface ListTargetResolution {
|
|
1130
|
+
requested: ListTargetIdentity | null;
|
|
1131
|
+
resolvedRequested: ListTargetIdentity | null;
|
|
1132
|
+
served: ListTargetIdentity | null;
|
|
1133
|
+
freshness: string | null;
|
|
1134
|
+
freshnessReason: string | null;
|
|
1135
|
+
indexingRef: string | null;
|
|
1136
|
+
availableVersions: ListAvailableVersion[] | null;
|
|
1137
|
+
availableRefs: ListAvailableVersion[] | null;
|
|
1138
|
+
suggestedRefs: ListAvailableVersion[] | null;
|
|
1139
|
+
}
|
|
1140
|
+
interface ListIndexingEstimate {
|
|
1141
|
+
lowerSeconds: number | null;
|
|
1142
|
+
upperSeconds: number | null;
|
|
1143
|
+
elapsedSeconds: number | null;
|
|
1144
|
+
sampleCount: number | null;
|
|
1145
|
+
source: string | null;
|
|
1146
|
+
}
|
|
1147
|
+
interface ListSiteJob {
|
|
1148
|
+
mode: string | null;
|
|
1149
|
+
state: string;
|
|
1150
|
+
}
|
|
1151
|
+
interface ListSiteWait {
|
|
1152
|
+
mode: string | null;
|
|
1153
|
+
outcome: ListSiteWaitOutcome;
|
|
1154
|
+
}
|
|
1155
|
+
interface ListSitePreparation {
|
|
1156
|
+
selected: number;
|
|
1157
|
+
enqueued: number;
|
|
1158
|
+
activeJobs: ListSiteJob[];
|
|
1159
|
+
awaited: ListSiteWait[];
|
|
1160
|
+
}
|
|
1161
|
+
interface ListResult {
|
|
1162
|
+
inventoryKind: ListInventoryKind;
|
|
1163
|
+
requestedTarget: string;
|
|
1164
|
+
canonicalTarget: string | null;
|
|
1165
|
+
entries: ListEntry[];
|
|
1166
|
+
hasMore: boolean;
|
|
1167
|
+
nextCursor: string | null;
|
|
1168
|
+
indexedVersion: string | null;
|
|
1169
|
+
resolution?: ListResolution | null;
|
|
1170
|
+
targetResolution?: ListTargetResolution | null;
|
|
1171
|
+
codeIndexState: string | null;
|
|
1172
|
+
indexingStatus: string | null;
|
|
1173
|
+
indexingRef: string | null;
|
|
1174
|
+
availableVersions?: ListAvailableVersion[] | null;
|
|
1175
|
+
indexingEstimate?: ListIndexingEstimate | null;
|
|
1176
|
+
inventoryState: "AVAILABLE" | "EMPTY" | null;
|
|
1177
|
+
crawlStatus: "IDLE" | "RUNNING" | "COMPLETE" | "FAILED" | null;
|
|
1178
|
+
coverageState: "NONE" | "PARTIAL" | "CAPPED" | "COMPLETE" | null;
|
|
1179
|
+
coverageReason: string | null;
|
|
1180
|
+
preparation: ListSitePreparation | null;
|
|
1181
|
+
}
|
|
1182
|
+
interface ListService {
|
|
1183
|
+
list(params: ListParams): Promise<ListResult>;
|
|
1184
|
+
}
|
|
1185
|
+
interface ListServiceRuntime {
|
|
1186
|
+
clientHeaders?: ClientHeaderBuilder;
|
|
1187
|
+
userAgent?: string;
|
|
1188
|
+
clientVersion?: string;
|
|
1189
|
+
diagnostics?: ServiceDiagnostics;
|
|
1190
|
+
}
|
|
1191
|
+
declare class ListAccessError extends Error {
|
|
1192
|
+
constructor(message: string);
|
|
1193
|
+
}
|
|
1194
|
+
declare class ListGraphQLError extends Error {
|
|
1195
|
+
readonly code?: string | undefined;
|
|
1196
|
+
readonly retryable?: boolean | undefined;
|
|
1197
|
+
readonly repoUrl?: string | undefined;
|
|
1198
|
+
readonly commitSha?: string | undefined;
|
|
1199
|
+
readonly indexingRef?: string | undefined;
|
|
1200
|
+
readonly hint?: string | undefined;
|
|
1201
|
+
constructor(message: string, code?: string | undefined, retryable?: boolean | undefined, repoUrl?: string | undefined, commitSha?: string | undefined, indexingRef?: string | undefined, hint?: string | undefined);
|
|
1202
|
+
}
|
|
1203
|
+
declare class ListBackendError extends Error {
|
|
1204
|
+
readonly status?: number | undefined;
|
|
1205
|
+
readonly graphqlCode?: string | undefined;
|
|
1206
|
+
readonly retryable?: boolean | undefined;
|
|
1207
|
+
constructor(message: string, status?: number | undefined, graphqlCode?: string | undefined, retryable?: boolean | undefined);
|
|
1208
|
+
}
|
|
1209
|
+
declare class ListNetworkError extends Error {
|
|
1210
|
+
constructor(message: string, options?: {
|
|
1211
|
+
cause?: unknown;
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
declare class MalformedListResponseError extends Error {
|
|
1215
|
+
constructor(message?: string);
|
|
1216
|
+
}
|
|
1217
|
+
/** Client for the backend's unified package, repository, and site inventory. */
|
|
1218
|
+
declare class ListServiceImpl implements ListService {
|
|
1219
|
+
private readonly endpointUrl;
|
|
1220
|
+
private readonly tokenProvider;
|
|
1221
|
+
private readonly fetchFn;
|
|
1222
|
+
private readonly runtime;
|
|
1223
|
+
constructor(endpointUrl: string, tokenProvider: TokenProvider, fetchFn?: typeof fetch, runtime?: ListServiceRuntime);
|
|
1224
|
+
list(params: ListParams): Promise<ListResult>;
|
|
1225
|
+
private executeList;
|
|
1226
|
+
}
|
|
895
1227
|
interface PackageSummaryParams {
|
|
896
1228
|
registry: PkgseerRegistry;
|
|
897
1229
|
packageName: string;
|
|
@@ -1547,6 +1879,8 @@ interface PackageDocContentRange {
|
|
|
1547
1879
|
anchor?: string;
|
|
1548
1880
|
}
|
|
1549
1881
|
interface PackageDocResult {
|
|
1882
|
+
/** Enclosing served selection; legacy readers may omit it. */
|
|
1883
|
+
readTarget?: ReadTarget;
|
|
1550
1884
|
registry?: string;
|
|
1551
1885
|
packageName?: string;
|
|
1552
1886
|
version?: string;
|
|
@@ -1699,4 +2033,4 @@ declare class RefreshingGitHitsService implements GitHitsService {
|
|
|
1699
2033
|
*/
|
|
1700
2034
|
private withTokenRefresh;
|
|
1701
2035
|
}
|
|
1702
|
-
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, PKGSEER_REGISTRY_LIST, PackageIntelligenceService, PackageIntelligenceServiceImpl, RawCodeDiff, RawCodeDiffContentCoverage, RawCodeDiffContentFailure, RawCodeDiffFile, RawCodeDiffFileContentStatus, RawCodeDiffFileStatus, RawCodeDiffPathEncoding, RawCodeDiffScope, RawCodeDiffScopeStatus, RawCodeDiffSummary, ReadCodeResult, ReadDocsResult, ReadParams, ReadResult, ReadService, ReadServiceImpl, ReadSymbolResolutionResult, 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,
|
|
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};
|