@githits/mcp 0.22.0 → 0.23.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 +11 -11
- package/dist/client.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/shared/chunk-a5wp03h1.js +1593 -0
- package/dist/smoke-test.js +1 -1
- package/package.json +2 -2
- package/dist/shared/chunk-dc5q5dw3.js +0 -1618
package/dist/client.d.ts
CHANGED
|
@@ -204,8 +204,6 @@ interface UnifiedSearchParams {
|
|
|
204
204
|
interface UnifiedSearchReadOptions {
|
|
205
205
|
/** Cancel the discovery request when its caller stops waiting. */
|
|
206
206
|
signal?: AbortSignal;
|
|
207
|
-
/** Omit compatibility navigation source when the caller renders only matched evidence. */
|
|
208
|
-
omitFocusedSource?: boolean;
|
|
209
207
|
}
|
|
210
208
|
interface UnifiedSearchEvidenceRange {
|
|
211
209
|
startLine: number;
|
|
@@ -296,6 +294,7 @@ interface UnifiedSearchDocumentationPreview {
|
|
|
296
294
|
highlights: Array<readonly [number, number]>;
|
|
297
295
|
}
|
|
298
296
|
interface UnifiedSearchRepositoryEvidence {
|
|
297
|
+
/** Legacy input shape; discovery queries no longer select this field. */
|
|
299
298
|
focusedSource?: UnifiedSearchFocusedSource | null;
|
|
300
299
|
semanticContext: UnifiedSearchSemanticContext | null;
|
|
301
300
|
/** Complete positive-term field list; null means unknown, not no matches. */
|
|
@@ -307,7 +306,7 @@ interface UnifiedSearchLocator {
|
|
|
307
306
|
packageName?: string;
|
|
308
307
|
version?: string;
|
|
309
308
|
pageId?: string;
|
|
310
|
-
/**
|
|
309
|
+
/** Emitted documentation locator accepted by unified read; absent on legacy results. */
|
|
311
310
|
docsReadTarget?: string;
|
|
312
311
|
sourceKind?: string;
|
|
313
312
|
sourceUrl?: string;
|
|
@@ -334,6 +333,7 @@ interface UnifiedSearchHit {
|
|
|
334
333
|
resultType: UnifiedSearchResultType;
|
|
335
334
|
targetLabel: string;
|
|
336
335
|
title?: string;
|
|
336
|
+
/** Legacy input shape; discovery queries no longer select this field. */
|
|
337
337
|
summary?: string;
|
|
338
338
|
score?: number;
|
|
339
339
|
highlights?: {
|
|
@@ -828,24 +828,24 @@ declare class CodeNavigationServiceImpl implements CodeNavigationService, CodeDi
|
|
|
828
828
|
*/
|
|
829
829
|
declare const DEFAULT_MCP_URL = "https://mcp.githits.com";
|
|
830
830
|
declare const DEFAULT_API_URL = "https://api.githits.com";
|
|
831
|
-
declare const DEFAULT_CODE_NAV_URL = "https://
|
|
831
|
+
declare const DEFAULT_CODE_NAV_URL = "https://oss.githits.dev";
|
|
832
832
|
/**
|
|
833
833
|
* Get the MCP server base URL (for OAuth discovery).
|
|
834
834
|
* Override with GITHITS_MCP_URL environment variable.
|
|
835
|
+
* @param env Supplies GITHITS_ENV and URL overrides; defaults to process.env.
|
|
835
836
|
*/
|
|
836
|
-
declare function getMcpUrl(): string;
|
|
837
|
+
declare function getMcpUrl(env?: Record<string, string | undefined>): string;
|
|
837
838
|
/**
|
|
838
839
|
* Get the REST API base URL (for search).
|
|
839
840
|
* Override with GITHITS_API_URL environment variable.
|
|
841
|
+
* @param env Supplies GITHITS_ENV and URL overrides; defaults to process.env.
|
|
840
842
|
*/
|
|
841
|
-
declare function getApiUrl(): string;
|
|
843
|
+
declare function getApiUrl(env?: Record<string, string | undefined>): string;
|
|
842
844
|
/**
|
|
843
|
-
* Get the
|
|
844
|
-
*
|
|
845
|
-
* development parity with older environments but is not publicly
|
|
846
|
-
* documented.
|
|
845
|
+
* Get the OSS package/source backend URL from the preset or GITHITS_CODE_NAV_URL.
|
|
846
|
+
* @param env Supplies GITHITS_ENV and URL overrides; defaults to process.env.
|
|
847
847
|
*/
|
|
848
|
-
declare function getCodeNavigationUrl(): string;
|
|
848
|
+
declare function getCodeNavigationUrl(env?: Record<string, string | undefined>): string;
|
|
849
849
|
/**
|
|
850
850
|
* Get API token from environment variable (for CI/automation).
|
|
851
851
|
*/
|
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,PackageIntelligenceServiceImpl2,CodeDiffError2,CodeNavigationServiceImpl2,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,PackageIntelligenceServiceImpl2,CodeDiffError2,CodeNavigationServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,createStaticTokenProvider2,createClientHeaderBuilder2}from"./shared/chunk-a5wp03h1.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,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
|
@@ -189,8 +189,6 @@ interface UnifiedSearchParams {
|
|
|
189
189
|
interface UnifiedSearchReadOptions {
|
|
190
190
|
/** Cancel the discovery request when its caller stops waiting. */
|
|
191
191
|
signal?: AbortSignal;
|
|
192
|
-
/** Omit compatibility navigation source when the caller renders only matched evidence. */
|
|
193
|
-
omitFocusedSource?: boolean;
|
|
194
192
|
}
|
|
195
193
|
interface UnifiedSearchEvidenceRange {
|
|
196
194
|
startLine: number;
|
|
@@ -281,6 +279,7 @@ interface UnifiedSearchDocumentationPreview {
|
|
|
281
279
|
highlights: Array<readonly [number, number]>;
|
|
282
280
|
}
|
|
283
281
|
interface UnifiedSearchRepositoryEvidence {
|
|
282
|
+
/** Legacy input shape; discovery queries no longer select this field. */
|
|
284
283
|
focusedSource?: UnifiedSearchFocusedSource | null;
|
|
285
284
|
semanticContext: UnifiedSearchSemanticContext | null;
|
|
286
285
|
/** Complete positive-term field list; null means unknown, not no matches. */
|
|
@@ -292,7 +291,7 @@ interface UnifiedSearchLocator {
|
|
|
292
291
|
packageName?: string;
|
|
293
292
|
version?: string;
|
|
294
293
|
pageId?: string;
|
|
295
|
-
/**
|
|
294
|
+
/** Emitted documentation locator accepted by unified read; absent on legacy results. */
|
|
296
295
|
docsReadTarget?: string;
|
|
297
296
|
sourceKind?: string;
|
|
298
297
|
sourceUrl?: string;
|
|
@@ -319,6 +318,7 @@ interface UnifiedSearchHit {
|
|
|
319
318
|
resultType: UnifiedSearchResultType;
|
|
320
319
|
targetLabel: string;
|
|
321
320
|
title?: string;
|
|
321
|
+
/** Legacy input shape; discovery queries no longer select this field. */
|
|
322
322
|
summary?: string;
|
|
323
323
|
score?: number;
|
|
324
324
|
highlights?: {
|