@githits/mcp 0.35.0 → 0.36.1
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 +30 -1
- package/dist/client.js +1 -1
- package/dist/index.d.ts +34 -3
- package/dist/index.js +18 -16
- package/dist/shared/{chunk-jemh0eym.js → chunk-33zcd460.js} +45 -8
- package/dist/shared/chunk-hwafe365.js +32 -0
- package/dist/shared/{chunk-1bad2znr.js → chunk-jatk4vrs.js} +8 -3
- package/dist/smoke-test.d.ts +1 -0
- package/dist/smoke-test.js +2 -2
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/package.json +1 -1
- package/dist/shared/chunk-660sdzfg.js +0 -31
package/dist/client.d.ts
CHANGED
|
@@ -271,6 +271,8 @@ interface TargetResolutionIdentity {
|
|
|
271
271
|
commitSha?: string;
|
|
272
272
|
/** Verified UTC committer time for this exact repository commit, not freshness. */
|
|
273
273
|
committedAt?: string;
|
|
274
|
+
/** Backend package/source assessment, independent of index freshness. */
|
|
275
|
+
releaseCorrespondence?: string | null;
|
|
274
276
|
site?: string;
|
|
275
277
|
}
|
|
276
278
|
type AvailableRef = AvailableVersion;
|
|
@@ -714,6 +716,8 @@ interface CodeDiffRefResolution {
|
|
|
714
716
|
commitSha: string;
|
|
715
717
|
refKind: CodeDiffRefKind;
|
|
716
718
|
versionSource?: CodeDiffVersionSource;
|
|
719
|
+
/** Backend assessment for this exact comparison side, independent of execution. */
|
|
720
|
+
releaseCorrespondence?: string | null;
|
|
717
721
|
}
|
|
718
722
|
interface RawCodeDiffSummary {
|
|
719
723
|
filesChanged: number;
|
|
@@ -1131,7 +1135,30 @@ interface GrepUnavailableTarget {
|
|
|
1131
1135
|
progressRef: string | null;
|
|
1132
1136
|
suggestedSiteTargets: string[] | null;
|
|
1133
1137
|
}
|
|
1138
|
+
/** An unverified backend-authored alternative; never applied by the client. */
|
|
1139
|
+
interface GrepPathSuggestion {
|
|
1140
|
+
target: string;
|
|
1141
|
+
path: string;
|
|
1142
|
+
}
|
|
1143
|
+
/** Snapshot-backed path diagnosis, independent of matches and coverage failures. */
|
|
1144
|
+
interface GrepPathWarning {
|
|
1145
|
+
requestedInputIndices: number[];
|
|
1146
|
+
target: string;
|
|
1147
|
+
path: string;
|
|
1148
|
+
repositorySubpath: string;
|
|
1149
|
+
message: string;
|
|
1150
|
+
suggestions: GrepPathSuggestion[];
|
|
1151
|
+
}
|
|
1152
|
+
/** Canonical source provenance for one known original package/repository input. */
|
|
1153
|
+
interface GrepInputTargetResolution {
|
|
1154
|
+
inputIndex: number;
|
|
1155
|
+
target: string;
|
|
1156
|
+
targetResolution: TargetResolution;
|
|
1157
|
+
}
|
|
1134
1158
|
interface GrepResult {
|
|
1159
|
+
/** Required on wire results; optional for existing injected service providers. */
|
|
1160
|
+
targetResolutions?: GrepInputTargetResolution[];
|
|
1161
|
+
pathWarnings: GrepPathWarning[];
|
|
1135
1162
|
indexingEstimates?: DiscoveryIndexingEstimate[];
|
|
1136
1163
|
hits: GrepHit[];
|
|
1137
1164
|
targets: GrepTargetStatus[];
|
|
@@ -1241,6 +1268,8 @@ interface ListTargetIdentity {
|
|
|
1241
1268
|
gitRef: string | null;
|
|
1242
1269
|
commitSha?: string | null;
|
|
1243
1270
|
committedAt?: string | null;
|
|
1271
|
+
/** Backend package/source assessment, independent of index freshness. */
|
|
1272
|
+
releaseCorrespondence?: string | null;
|
|
1244
1273
|
}
|
|
1245
1274
|
interface ListTargetResolution {
|
|
1246
1275
|
requested: ListTargetIdentity | null;
|
|
@@ -2349,4 +2378,4 @@ declare class ResolveTargetServiceImpl implements ResolveTargetService {
|
|
|
2349
2378
|
resolveTarget(params: ResolveTargetParams, options?: ServiceRequestOptions): Promise<ResolveTargetResult>;
|
|
2350
2379
|
private executeResolveTarget;
|
|
2351
2380
|
}
|
|
2352
|
-
export { AGENTIC_ASK_REQUEST_TIMEOUT_MS, AgentInfo, AgenticAskRateLimitScope, AgenticAskRequest, AgenticAskRequestOptions, AgenticAskResponse, AgenticAskService, AgenticAskServiceImpl, AgenticAskServiceRuntimeOptions, 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, DiscoveryIndexingEstimate, GitHitsService, GitHitsServiceImpl, GrepAccessError, GrepBackendError, GrepContentSafety, GrepCorpus, GrepFileIssue, GrepGraphQLError, GrepHit, GrepLineSlice, GrepNetworkError, GrepParams, GrepPathSelector, GrepReadAction, GrepReadiness, GrepRepositoryHit, GrepResult, GrepService, GrepServiceImpl, GrepSiteHit, GrepTarget, GrepTargetStatus, GrepTraversal, GrepUnavailableTarget, IndexingDurationEstimate, KnownLatestVersionMaliciousStatus, KnownMaliciousAdvisoryClassificationReason, LatestVersionMaliciousStatus, 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, MaliciousAdvisoryClassificationReason, PKGSEER_REGISTRY_LIST, PackageIntelligenceService, PackageIntelligenceServiceImpl, RawCodeDiff, RawCodeDiffContentCoverage, RawCodeDiffContentFailure, RawCodeDiffFile, RawCodeDiffFileContentStatus, RawCodeDiffFileStatus, RawCodeDiffPathEncoding, RawCodeDiffScope, RawCodeDiffScopeStatus, RawCodeDiffSummary, ReadCodeResult, ReadDocsResult, ReadParams, ReadResult, ReadService, ReadServiceImpl, ReadSymbolResolutionResult, ReadTarget, RefreshingGitHitsService, RegistryRepository, ResolveTargetKind, ResolveTargetLatestVersionMaliciousAdvisory, ResolveTargetLatestVersionMaliciousEvidence, ResolveTargetMatch, ResolveTargetParams, ResolveTargetReference, ResolveTargetResult, ResolveTargetService, ResolveTargetServiceImpl, ResolveTargetTarget, ServiceDiagnostics, ServiceRequestOptions, SessionIdConfigError, TokenProvider, createClientHeaderBuilder, createStaticTokenProvider, getApiUrl, getCodeNavigationUrl, getEnvApiToken, getEnvSessionId, getMcpUrl, toPkgseerRegistry, toPkgseerRegistryLowercase };
|
|
2381
|
+
export { AGENTIC_ASK_REQUEST_TIMEOUT_MS, AgentInfo, AgenticAskRateLimitScope, AgenticAskRequest, AgenticAskRequestOptions, AgenticAskResponse, AgenticAskService, AgenticAskServiceImpl, AgenticAskServiceRuntimeOptions, 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, DiscoveryIndexingEstimate, GitHitsService, GitHitsServiceImpl, GrepAccessError, GrepBackendError, GrepContentSafety, GrepCorpus, GrepFileIssue, GrepGraphQLError, GrepHit, GrepInputTargetResolution, GrepLineSlice, GrepNetworkError, GrepParams, GrepPathSelector, GrepPathSuggestion, GrepPathWarning, GrepReadAction, GrepReadiness, GrepRepositoryHit, GrepResult, GrepService, GrepServiceImpl, GrepSiteHit, GrepTarget, GrepTargetStatus, GrepTraversal, GrepUnavailableTarget, IndexingDurationEstimate, KnownLatestVersionMaliciousStatus, KnownMaliciousAdvisoryClassificationReason, LatestVersionMaliciousStatus, 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, MaliciousAdvisoryClassificationReason, PKGSEER_REGISTRY_LIST, PackageIntelligenceService, PackageIntelligenceServiceImpl, RawCodeDiff, RawCodeDiffContentCoverage, RawCodeDiffContentFailure, RawCodeDiffFile, RawCodeDiffFileContentStatus, RawCodeDiffFileStatus, RawCodeDiffPathEncoding, RawCodeDiffScope, RawCodeDiffScopeStatus, RawCodeDiffSummary, ReadCodeResult, ReadDocsResult, ReadParams, ReadResult, ReadService, ReadServiceImpl, ReadSymbolResolutionResult, ReadTarget, RefreshingGitHitsService, RegistryRepository, ResolveTargetKind, ResolveTargetLatestVersionMaliciousAdvisory, ResolveTargetLatestVersionMaliciousEvidence, ResolveTargetMatch, ResolveTargetParams, ResolveTargetReference, ResolveTargetResult, ResolveTargetService, ResolveTargetServiceImpl, ResolveTargetTarget, ServiceDiagnostics, ServiceRequestOptions, SessionIdConfigError, TokenProvider, createClientHeaderBuilder, createStaticTokenProvider, getApiUrl, getCodeNavigationUrl, getEnvApiToken, getEnvSessionId, getMcpUrl, toPkgseerRegistry, toPkgseerRegistryLowercase };
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GrepGraphQLError2,GrepBackendError2,GrepAccessError2,GrepNetworkError2,MalformedGrepResponseError2,GrepServiceImpl2,ListAccessError2,ListGraphQLError2,ListBackendError2,ListNetworkError2,MalformedListResponseError2,ListServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,ResolveTargetServiceImpl2,createStaticTokenProvider2,SessionIdConfigError2,getEnvSessionId2,createClientHeaderBuilder2}from"./shared/chunk-
|
|
1
|
+
import{GrepGraphQLError2,GrepBackendError2,GrepAccessError2,GrepNetworkError2,MalformedGrepResponseError2,GrepServiceImpl2,ListAccessError2,ListGraphQLError2,ListBackendError2,ListNetworkError2,MalformedListResponseError2,ListServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,ResolveTargetServiceImpl2,createStaticTokenProvider2,SessionIdConfigError2,getEnvSessionId2,createClientHeaderBuilder2}from"./shared/chunk-33zcd460.js";import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,AGENTIC_ASK_REQUEST_TIMEOUT_MS2,AgenticAskServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,PackageIntelligenceServiceImpl2}from"./shared/chunk-jatk4vrs.js";export{AGENTIC_ASK_REQUEST_TIMEOUT_MS2 as AGENTIC_ASK_REQUEST_TIMEOUT_MS,AgenticAskServiceImpl2 as AgenticAskServiceImpl,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,ResolveTargetServiceImpl2 as ResolveTargetServiceImpl,SessionIdConfigError2 as SessionIdConfigError,createClientHeaderBuilder2 as createClientHeaderBuilder,createStaticTokenProvider2 as createStaticTokenProvider,getApiUrl2 as getApiUrl,getCodeNavigationUrl2 as getCodeNavigationUrl,getEnvApiToken2 as getEnvApiToken,getEnvSessionId2 as getEnvSessionId,getMcpUrl2 as getMcpUrl,toPkgseerRegistry2 as toPkgseerRegistry,toPkgseerRegistryLowercase2 as toPkgseerRegistryLowercase};
|
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,8 @@ interface TargetResolutionIdentity {
|
|
|
164
164
|
commitSha?: string;
|
|
165
165
|
/** Verified UTC committer time for this exact repository commit, not freshness. */
|
|
166
166
|
committedAt?: string;
|
|
167
|
+
/** Backend package/source assessment, independent of index freshness. */
|
|
168
|
+
releaseCorrespondence?: string | null;
|
|
167
169
|
site?: string;
|
|
168
170
|
}
|
|
169
171
|
type AvailableRef = AvailableVersion;
|
|
@@ -607,6 +609,8 @@ interface CodeDiffRefResolution {
|
|
|
607
609
|
commitSha: string;
|
|
608
610
|
refKind: CodeDiffRefKind;
|
|
609
611
|
versionSource?: CodeDiffVersionSource;
|
|
612
|
+
/** Backend assessment for this exact comparison side, independent of execution. */
|
|
613
|
+
releaseCorrespondence?: string | null;
|
|
610
614
|
}
|
|
611
615
|
interface RawCodeDiffSummary {
|
|
612
616
|
filesChanged: number;
|
|
@@ -890,7 +894,30 @@ interface GrepUnavailableTarget {
|
|
|
890
894
|
progressRef: string | null;
|
|
891
895
|
suggestedSiteTargets: string[] | null;
|
|
892
896
|
}
|
|
897
|
+
/** An unverified backend-authored alternative; never applied by the client. */
|
|
898
|
+
interface GrepPathSuggestion {
|
|
899
|
+
target: string;
|
|
900
|
+
path: string;
|
|
901
|
+
}
|
|
902
|
+
/** Snapshot-backed path diagnosis, independent of matches and coverage failures. */
|
|
903
|
+
interface GrepPathWarning {
|
|
904
|
+
requestedInputIndices: number[];
|
|
905
|
+
target: string;
|
|
906
|
+
path: string;
|
|
907
|
+
repositorySubpath: string;
|
|
908
|
+
message: string;
|
|
909
|
+
suggestions: GrepPathSuggestion[];
|
|
910
|
+
}
|
|
911
|
+
/** Canonical source provenance for one known original package/repository input. */
|
|
912
|
+
interface GrepInputTargetResolution {
|
|
913
|
+
inputIndex: number;
|
|
914
|
+
target: string;
|
|
915
|
+
targetResolution: TargetResolution;
|
|
916
|
+
}
|
|
893
917
|
interface GrepResult {
|
|
918
|
+
/** Required on wire results; optional for existing injected service providers. */
|
|
919
|
+
targetResolutions?: GrepInputTargetResolution[];
|
|
920
|
+
pathWarnings: GrepPathWarning[];
|
|
894
921
|
indexingEstimates?: DiscoveryIndexingEstimate[];
|
|
895
922
|
hits: GrepHit[];
|
|
896
923
|
targets: GrepTargetStatus[];
|
|
@@ -961,6 +988,8 @@ interface ListTargetIdentity {
|
|
|
961
988
|
gitRef: string | null;
|
|
962
989
|
commitSha?: string | null;
|
|
963
990
|
committedAt?: string | null;
|
|
991
|
+
/** Backend package/source assessment, independent of index freshness. */
|
|
992
|
+
releaseCorrespondence?: string | null;
|
|
964
993
|
}
|
|
965
994
|
interface ListTargetResolution {
|
|
966
995
|
requested: ListTargetIdentity | null;
|
|
@@ -2059,7 +2088,9 @@ interface McpProgressAnimationOptions {
|
|
|
2059
2088
|
/** Time between frames. Hosts render each frame as a notification. */
|
|
2060
2089
|
intervalMs?: number;
|
|
2061
2090
|
}
|
|
2062
|
-
|
|
2091
|
+
/** Backend stage covered by the opening message. */
|
|
2092
|
+
declare const OPENING_STAGE = "started";
|
|
2093
|
+
import { z as z4 } from "zod";
|
|
2063
2094
|
/** Annotation fields required by OpenAI's MCP marketplace validation. */
|
|
2064
2095
|
interface CompleteToolAnnotations {
|
|
2065
2096
|
title?: string;
|
|
@@ -2112,7 +2143,7 @@ type ToolResult = {
|
|
|
2112
2143
|
* Zod raw shape type (what MCP SDK expects)
|
|
2113
2144
|
*/
|
|
2114
2145
|
type ZodRawShape = {
|
|
2115
|
-
[k: string]:
|
|
2146
|
+
[k: string]: z4.ZodTypeAny;
|
|
2116
2147
|
};
|
|
2117
2148
|
/**
|
|
2118
2149
|
* Services required to construct the MCP tool surface.
|
|
@@ -2212,4 +2243,4 @@ declare function narrowingFrame(frame: number, options?: NarrowingFrameOptions):
|
|
|
2212
2243
|
declare function narrowingText(frame: number, options?: NarrowingFrameOptions): string;
|
|
2213
2244
|
/** How far a backend progress stage has narrowed the work, for `focus`. */
|
|
2214
2245
|
declare function focusForStage(stage: string | undefined): number;
|
|
2215
|
-
export { BuildMcpInstructionsOptions, BuildMcpQuickStartOptions, CreateMcpServerOptions, McpAuthAction, McpAuthActionContext, McpProgressAnimationOptions, McpProgressHook, McpProgressOperation, McpProgressUpdate, McpRequestContext, McpServerMetadata, McpToolDescriptor, McpToolExecutionHook, McpToolServices, McpToolServicesProvider, NarrowingCell, NarrowingFrameOptions, RelayAuth, RelayReceiver, RelayReceiverOptions, RelaySocket, ToolExecutionContext, ToolTermsRemediation, buildMcpInstructions, buildMcpQuickStart, createMcpServer, focusForStage, getMcpToolDescriptors, narrowingFrame, narrowingText, registerMcpTools };
|
|
2246
|
+
export { BuildMcpInstructionsOptions, BuildMcpQuickStartOptions, CreateMcpServerOptions, McpAuthAction, McpAuthActionContext, McpProgressAnimationOptions, McpProgressHook, McpProgressOperation, McpProgressUpdate, McpRequestContext, McpServerMetadata, McpToolDescriptor, McpToolExecutionHook, McpToolServices, McpToolServicesProvider, NarrowingCell, NarrowingFrameOptions, OPENING_STAGE, RelayAuth, RelayReceiver, RelayReceiverOptions, RelaySocket, ToolExecutionContext, ToolTermsRemediation, buildMcpInstructions, buildMcpQuickStart, createMcpServer, focusForStage, getMcpToolDescriptors, narrowingFrame, narrowingText, registerMcpTools };
|