@githits/mcp 0.16.1 → 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 +32 -0
- package/dist/client.js +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/index.js +46 -36
- package/dist/shared/{chunk-9kvwrp49.js → chunk-mee23na1.js} +2 -2
- package/dist/shared/{chunk-kpjbjs3v.js → chunk-nsq99b9j.js} +29 -10
- package/dist/smoke-test.d.ts +1 -1
- package/dist/smoke-test.js +3 -3
- package/dist/tools.js +1 -1
- package/package.json +1 -1
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
|
*/
|
|
@@ -1477,6 +1496,8 @@ interface ListPackageDocsParams {
|
|
|
1477
1496
|
}
|
|
1478
1497
|
interface ReadPackageDocParams {
|
|
1479
1498
|
pageId: string;
|
|
1499
|
+
startLine?: number;
|
|
1500
|
+
endLine?: number;
|
|
1480
1501
|
}
|
|
1481
1502
|
interface PackageDocPageSummary {
|
|
1482
1503
|
id?: string;
|
|
@@ -1531,11 +1552,22 @@ interface PackageDocPage {
|
|
|
1531
1552
|
filePath?: string;
|
|
1532
1553
|
baseUrl?: string;
|
|
1533
1554
|
}
|
|
1555
|
+
interface PackageDocContentRange {
|
|
1556
|
+
/** Inclusive one-based page-relative start; absent only for an empty page. */
|
|
1557
|
+
startLine?: number;
|
|
1558
|
+
/** Inclusive one-based page-relative end; absent only for an empty page. */
|
|
1559
|
+
endLine?: number;
|
|
1560
|
+
/** Whole stored page extent, including a trailing empty line. */
|
|
1561
|
+
totalLines: number;
|
|
1562
|
+
/** Indexed section anchor when a URL fragment resolved successfully. */
|
|
1563
|
+
anchor?: string;
|
|
1564
|
+
}
|
|
1534
1565
|
interface PackageDocResult {
|
|
1535
1566
|
registry?: string;
|
|
1536
1567
|
packageName?: string;
|
|
1537
1568
|
version?: string;
|
|
1538
1569
|
sourceKind?: PackageDocSourceKind;
|
|
1570
|
+
contentRange: PackageDocContentRange;
|
|
1539
1571
|
page?: PackageDocPage;
|
|
1540
1572
|
}
|
|
1541
1573
|
interface PackageIntelligenceService {
|
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-
|
|
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
|
*/
|
|
@@ -1204,6 +1223,8 @@ interface ListPackageDocsParams {
|
|
|
1204
1223
|
}
|
|
1205
1224
|
interface ReadPackageDocParams {
|
|
1206
1225
|
pageId: string;
|
|
1226
|
+
startLine?: number;
|
|
1227
|
+
endLine?: number;
|
|
1207
1228
|
}
|
|
1208
1229
|
interface PackageDocPageSummary {
|
|
1209
1230
|
id?: string;
|
|
@@ -1258,11 +1279,22 @@ interface PackageDocPage {
|
|
|
1258
1279
|
filePath?: string;
|
|
1259
1280
|
baseUrl?: string;
|
|
1260
1281
|
}
|
|
1282
|
+
interface PackageDocContentRange {
|
|
1283
|
+
/** Inclusive one-based page-relative start; absent only for an empty page. */
|
|
1284
|
+
startLine?: number;
|
|
1285
|
+
/** Inclusive one-based page-relative end; absent only for an empty page. */
|
|
1286
|
+
endLine?: number;
|
|
1287
|
+
/** Whole stored page extent, including a trailing empty line. */
|
|
1288
|
+
totalLines: number;
|
|
1289
|
+
/** Indexed section anchor when a URL fragment resolved successfully. */
|
|
1290
|
+
anchor?: string;
|
|
1291
|
+
}
|
|
1261
1292
|
interface PackageDocResult {
|
|
1262
1293
|
registry?: string;
|
|
1263
1294
|
packageName?: string;
|
|
1264
1295
|
version?: string;
|
|
1265
1296
|
sourceKind?: PackageDocSourceKind;
|
|
1297
|
+
contentRange: PackageDocContentRange;
|
|
1266
1298
|
page?: PackageDocPage;
|
|
1267
1299
|
}
|
|
1268
1300
|
interface PackageIntelligenceService {
|