@githits/mcp 0.16.2 → 0.17.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 CHANGED
@@ -202,6 +202,8 @@ interface UnifiedSearchParams {
202
202
  waitTimeoutMs?: number;
203
203
  }
204
204
  interface UnifiedSearchReadOptions {
205
+ /** Cancel the discovery request when its caller stops waiting. */
206
+ signal?: AbortSignal;
205
207
  /** Omit compatibility navigation source when the caller renders only matched evidence. */
206
208
  omitFocusedSource?: boolean;
207
209
  }
@@ -421,6 +423,15 @@ interface UnifiedSearchResult {
421
423
  sourceStatus: UnifiedSearchSourceStatus[];
422
424
  evidenceNotice?: string;
423
425
  }
426
+ /** Pending preparation evidence; total execution seconds, never a search ETA. */
427
+ interface DiscoveryIndexingEstimate {
428
+ kind: "REPOSITORY" | "DOCUMENTATION";
429
+ targets: string[];
430
+ repositoryUrl?: string;
431
+ commitSha?: string;
432
+ estimate?: IndexingDurationEstimate;
433
+ unavailableReason?: "NO_HISTORY" | "UNSUPPORTED_WORK";
434
+ }
424
435
  interface UnifiedSearchProgress {
425
436
  searchRef: string;
426
437
  status: UnifiedSearchSessionStatus;
@@ -437,6 +448,7 @@ interface UnifiedSearchProgress {
437
448
  limit?: number;
438
449
  offset?: number;
439
450
  targets?: UnifiedSearchProgressTarget[];
451
+ indexingEstimates?: DiscoveryIndexingEstimate[];
440
452
  expiresAt?: string;
441
453
  }
442
454
  interface UnifiedSearchCompleted {
@@ -458,6 +470,13 @@ interface AvailableVersion {
458
470
  version?: string;
459
471
  ref: string;
460
472
  }
473
+ interface IndexingDurationEstimate {
474
+ lowerSeconds?: number;
475
+ upperSeconds?: number;
476
+ elapsedSeconds?: number;
477
+ sampleCount?: number;
478
+ source?: string;
479
+ }
461
480
  /**
462
481
  * Input for {@link CodeNavigationService.listFiles}.
463
482
  */
package/dist/client.js CHANGED
@@ -1 +1 @@
1
- import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,PackageIntelligenceServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,RefreshingGitHitsService2,createStaticTokenProvider2,createClientHeaderBuilder2}from"./shared/chunk-sk1jp8jv.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,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};
1
+ import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,PackageIntelligenceServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,RefreshingGitHitsService2,createStaticTokenProvider2,createClientHeaderBuilder2}from"./shared/chunk-nsq99b9j.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,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
@@ -187,6 +187,8 @@ interface UnifiedSearchParams {
187
187
  waitTimeoutMs?: number;
188
188
  }
189
189
  interface UnifiedSearchReadOptions {
190
+ /** Cancel the discovery request when its caller stops waiting. */
191
+ signal?: AbortSignal;
190
192
  /** Omit compatibility navigation source when the caller renders only matched evidence. */
191
193
  omitFocusedSource?: boolean;
192
194
  }
@@ -406,6 +408,15 @@ interface UnifiedSearchResult {
406
408
  sourceStatus: UnifiedSearchSourceStatus[];
407
409
  evidenceNotice?: string;
408
410
  }
411
+ /** Pending preparation evidence; total execution seconds, never a search ETA. */
412
+ interface DiscoveryIndexingEstimate {
413
+ kind: "REPOSITORY" | "DOCUMENTATION";
414
+ targets: string[];
415
+ repositoryUrl?: string;
416
+ commitSha?: string;
417
+ estimate?: IndexingDurationEstimate;
418
+ unavailableReason?: "NO_HISTORY" | "UNSUPPORTED_WORK";
419
+ }
409
420
  interface UnifiedSearchProgress {
410
421
  searchRef: string;
411
422
  status: UnifiedSearchSessionStatus;
@@ -422,6 +433,7 @@ interface UnifiedSearchProgress {
422
433
  limit?: number;
423
434
  offset?: number;
424
435
  targets?: UnifiedSearchProgressTarget[];
436
+ indexingEstimates?: DiscoveryIndexingEstimate[];
425
437
  expiresAt?: string;
426
438
  }
427
439
  interface UnifiedSearchCompleted {
@@ -443,6 +455,13 @@ interface AvailableVersion {
443
455
  version?: string;
444
456
  ref: string;
445
457
  }
458
+ interface IndexingDurationEstimate {
459
+ lowerSeconds?: number;
460
+ upperSeconds?: number;
461
+ elapsedSeconds?: number;
462
+ sampleCount?: number;
463
+ source?: string;
464
+ }
446
465
  /**
447
466
  * Input for {@link CodeNavigationService.listFiles}.
448
467
  */