@githits/mcp 0.11.5 → 0.12.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 +52 -47
- package/dist/client.js +1 -1
- package/dist/index.d.ts +12 -7
- package/dist/index.js +33 -27
- package/dist/shared/chunk-8s2r83es.js +16 -0
- package/dist/shared/chunk-p5xxvkdz.js +1371 -0
- package/dist/shared/chunk-q07qg1z9.js +2 -0
- package/dist/smoke-test.js +1 -1
- package/dist/tools.js +1 -1
- package/package.json +1 -1
- package/dist/shared/chunk-51x6tx02.js +0 -2
- package/dist/shared/chunk-gcryn04g.js +0 -1323
- package/dist/shared/chunk-vr56r2ja.js +0 -16
package/dist/client.d.ts
CHANGED
|
@@ -1,44 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Registry taxonomy shared by code-navigation and package-intelligence
|
|
3
|
-
* services. Single source of truth for:
|
|
4
|
-
*
|
|
5
|
-
* - `PkgseerRegistry` — the uppercase backend enum (what GraphQL expects).
|
|
6
|
-
* - `PkgseerRegistryArg` — the lowercase surface value (CLI + MCP input).
|
|
7
|
-
* - Lowercase ↔ uppercase conversion.
|
|
8
|
-
*
|
|
9
|
-
* Back-compat: `src/shared/code-navigation.ts` re-exports these under
|
|
10
|
-
* the existing `CodeNavigationRegistry*` names.
|
|
11
|
-
*/
|
|
12
|
-
declare const PKGSEER_REGISTRY_ARGS: readonly ["npm", "pypi", "hex", "crates", "nuget", "maven", "zig", "vcpkg", "packagist", "rubygems", "go", "swift"];
|
|
13
|
-
type PkgseerRegistryArg = (typeof PKGSEER_REGISTRY_ARGS)[number];
|
|
14
|
-
declare const registryMap: {
|
|
15
|
-
readonly npm: "NPM";
|
|
16
|
-
readonly pypi: "PYPI";
|
|
17
|
-
readonly hex: "HEX";
|
|
18
|
-
readonly crates: "CRATES";
|
|
19
|
-
readonly nuget: "NUGET";
|
|
20
|
-
readonly maven: "MAVEN";
|
|
21
|
-
readonly zig: "ZIG";
|
|
22
|
-
readonly vcpkg: "VCPKG";
|
|
23
|
-
readonly packagist: "PACKAGIST";
|
|
24
|
-
readonly rubygems: "RUBYGEMS";
|
|
25
|
-
readonly go: "GO";
|
|
26
|
-
readonly swift: "SWIFT";
|
|
27
|
-
};
|
|
28
|
-
type PkgseerRegistry = (typeof registryMap)[keyof typeof registryMap];
|
|
29
|
-
declare const PKGSEER_REGISTRY_LIST: string;
|
|
30
|
-
/**
|
|
31
|
-
* Lowercase surface value → uppercase backend enum. Exhaustive over
|
|
32
|
-
* the surface union; callers that pass arbitrary strings should
|
|
33
|
-
* validate via {@link isKnownPkgseerRegistryArg} first.
|
|
34
|
-
*/
|
|
35
|
-
declare function toPkgseerRegistry(registry: PkgseerRegistryArg): PkgseerRegistry;
|
|
36
|
-
/**
|
|
37
|
-
* Uppercase backend enum → lowercase surface value. Used when
|
|
38
|
-
* lowering a response field for user display.
|
|
39
|
-
*/
|
|
40
|
-
declare function toPkgseerRegistryLowercase(registry: PkgseerRegistry): PkgseerRegistryArg;
|
|
41
|
-
/**
|
|
42
2
|
* Agent identity: the tool/IDE driving the CLI.
|
|
43
3
|
*/
|
|
44
4
|
interface AgentInfo {
|
|
@@ -91,6 +51,46 @@ interface TokenProvider {
|
|
|
91
51
|
}
|
|
92
52
|
declare function createStaticTokenProvider(token: string): TokenProvider;
|
|
93
53
|
/**
|
|
54
|
+
* Registry taxonomy shared by code-navigation and package-intelligence
|
|
55
|
+
* services. Single source of truth for:
|
|
56
|
+
*
|
|
57
|
+
* - `PkgseerRegistry` — the uppercase backend enum (what GraphQL expects).
|
|
58
|
+
* - `PkgseerRegistryArg` — the lowercase surface value (CLI + MCP input).
|
|
59
|
+
* - Lowercase ↔ uppercase conversion.
|
|
60
|
+
*
|
|
61
|
+
* Back-compat: `src/shared/code-navigation.ts` re-exports these under
|
|
62
|
+
* the existing `CodeNavigationRegistry*` names.
|
|
63
|
+
*/
|
|
64
|
+
declare const PKGSEER_REGISTRY_ARGS: readonly ["npm", "pypi", "hex", "crates", "nuget", "maven", "zig", "vcpkg", "packagist", "rubygems", "go", "swift"];
|
|
65
|
+
type PkgseerRegistryArg = (typeof PKGSEER_REGISTRY_ARGS)[number];
|
|
66
|
+
declare const registryMap: {
|
|
67
|
+
readonly npm: "NPM";
|
|
68
|
+
readonly pypi: "PYPI";
|
|
69
|
+
readonly hex: "HEX";
|
|
70
|
+
readonly crates: "CRATES";
|
|
71
|
+
readonly nuget: "NUGET";
|
|
72
|
+
readonly maven: "MAVEN";
|
|
73
|
+
readonly zig: "ZIG";
|
|
74
|
+
readonly vcpkg: "VCPKG";
|
|
75
|
+
readonly packagist: "PACKAGIST";
|
|
76
|
+
readonly rubygems: "RUBYGEMS";
|
|
77
|
+
readonly go: "GO";
|
|
78
|
+
readonly swift: "SWIFT";
|
|
79
|
+
};
|
|
80
|
+
type PkgseerRegistry = (typeof registryMap)[keyof typeof registryMap];
|
|
81
|
+
declare const PKGSEER_REGISTRY_LIST: string;
|
|
82
|
+
/**
|
|
83
|
+
* Lowercase surface value → uppercase backend enum. Exhaustive over
|
|
84
|
+
* the surface union; callers that pass arbitrary strings should
|
|
85
|
+
* validate via {@link isKnownPkgseerRegistryArg} first.
|
|
86
|
+
*/
|
|
87
|
+
declare function toPkgseerRegistry(registry: PkgseerRegistryArg): PkgseerRegistry;
|
|
88
|
+
/**
|
|
89
|
+
* Uppercase backend enum → lowercase surface value. Used when
|
|
90
|
+
* lowering a response field for user display.
|
|
91
|
+
*/
|
|
92
|
+
declare function toPkgseerRegistryLowercase(registry: PkgseerRegistry): PkgseerRegistryArg;
|
|
93
|
+
/**
|
|
94
94
|
* Back-compat alias — the canonical registry union now lives in
|
|
95
95
|
* `src/shared/pkgseer-registry.ts`. Re-exported here so existing
|
|
96
96
|
* consumers of `CodeNavigationRegistry` compile unchanged.
|
|
@@ -601,6 +601,9 @@ interface GrepRepoPathSelector {
|
|
|
601
601
|
kind: GrepPathSelectorKind;
|
|
602
602
|
value: string;
|
|
603
603
|
}
|
|
604
|
+
/** Symbol metadata that PkgSeer repository grep can hydrate on each match. */
|
|
605
|
+
declare const GREP_REPO_SYMBOL_FIELDS: readonly ["symbol_ref", "name", "qualified_path", "kind", "category", "arity", "is_public", "file_path", "start_line", "end_line", "content_hash", "parent_path"];
|
|
606
|
+
type GrepRepoSymbolField = (typeof GREP_REPO_SYMBOL_FIELDS)[number];
|
|
604
607
|
interface GrepRepoParams {
|
|
605
608
|
target: CodeNavigationTarget;
|
|
606
609
|
pattern: string;
|
|
@@ -616,7 +619,7 @@ interface GrepRepoParams {
|
|
|
616
619
|
maxMatches?: number;
|
|
617
620
|
maxMatchesPerFile?: number;
|
|
618
621
|
cursor?: string;
|
|
619
|
-
symbolFields?:
|
|
622
|
+
symbolFields?: GrepRepoSymbolField[];
|
|
620
623
|
waitTimeoutMs?: number;
|
|
621
624
|
}
|
|
622
625
|
interface NavigationSymbol {
|
|
@@ -630,10 +633,7 @@ interface NavigationSymbol {
|
|
|
630
633
|
filePath?: string;
|
|
631
634
|
startLine?: number;
|
|
632
635
|
endLine?: number;
|
|
633
|
-
code?: string;
|
|
634
|
-
callerCount?: number;
|
|
635
636
|
contentHash?: string;
|
|
636
|
-
parentSymbolRef?: string;
|
|
637
637
|
parentPath?: string;
|
|
638
638
|
}
|
|
639
639
|
interface GrepRepoMatch {
|
|
@@ -859,6 +859,8 @@ interface PackageIdentity {
|
|
|
859
859
|
license?: string;
|
|
860
860
|
downloadsLastMonth?: number;
|
|
861
861
|
downloadsTotal?: number;
|
|
862
|
+
versionCount?: number;
|
|
863
|
+
downloadsRefreshedAt?: string;
|
|
862
864
|
githubRepository?: GithubRepository;
|
|
863
865
|
}
|
|
864
866
|
interface GithubRepository {
|
|
@@ -878,6 +880,7 @@ interface VulnerabilityOverview {
|
|
|
878
880
|
}
|
|
879
881
|
interface PackageSecurityOverview {
|
|
880
882
|
vulnerabilityCount?: number;
|
|
883
|
+
allVulnerabilityCount: number;
|
|
881
884
|
hasCurrentVulnerabilities?: boolean;
|
|
882
885
|
recentVulnerabilities?: VulnerabilityOverview[];
|
|
883
886
|
}
|
|
@@ -953,10 +956,12 @@ interface PackageDependenciesParams {
|
|
|
953
956
|
includeTransitiveDetails?: boolean;
|
|
954
957
|
/** Include dependency group metadata. */
|
|
955
958
|
includeGroups?: boolean;
|
|
959
|
+
/** Include transitive dependency issue analysis. */
|
|
960
|
+
includeDependencyIssues?: boolean;
|
|
956
961
|
/**
|
|
957
|
-
* Optional transitive-traversal depth (1–10). Omit for the backend
|
|
958
|
-
*
|
|
959
|
-
*
|
|
962
|
+
* Optional transitive-traversal depth (1–10). Omit for the backend's full
|
|
963
|
+
* graph default. Normal direct-only CLI/MCP calls send depth 1 explicitly;
|
|
964
|
+
* issue-only calls omit depth for full analysis unless the caller bounds it.
|
|
960
965
|
*/
|
|
961
966
|
maxDepth?: number;
|
|
962
967
|
/**
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,PackageIntelligenceServiceImpl2,RefreshingGitHitsService2,createStaticTokenProvider2,createClientHeaderBuilder2}from"./shared/chunk-p5xxvkdz.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
|
@@ -395,6 +395,9 @@ interface GrepRepoPathSelector {
|
|
|
395
395
|
kind: GrepPathSelectorKind;
|
|
396
396
|
value: string;
|
|
397
397
|
}
|
|
398
|
+
/** Symbol metadata that PkgSeer repository grep can hydrate on each match. */
|
|
399
|
+
declare const GREP_REPO_SYMBOL_FIELDS: readonly ["symbol_ref", "name", "qualified_path", "kind", "category", "arity", "is_public", "file_path", "start_line", "end_line", "content_hash", "parent_path"];
|
|
400
|
+
type GrepRepoSymbolField = (typeof GREP_REPO_SYMBOL_FIELDS)[number];
|
|
398
401
|
interface GrepRepoParams {
|
|
399
402
|
target: CodeNavigationTarget;
|
|
400
403
|
pattern: string;
|
|
@@ -410,7 +413,7 @@ interface GrepRepoParams {
|
|
|
410
413
|
maxMatches?: number;
|
|
411
414
|
maxMatchesPerFile?: number;
|
|
412
415
|
cursor?: string;
|
|
413
|
-
symbolFields?:
|
|
416
|
+
symbolFields?: GrepRepoSymbolField[];
|
|
414
417
|
waitTimeoutMs?: number;
|
|
415
418
|
}
|
|
416
419
|
interface NavigationSymbol {
|
|
@@ -424,10 +427,7 @@ interface NavigationSymbol {
|
|
|
424
427
|
filePath?: string;
|
|
425
428
|
startLine?: number;
|
|
426
429
|
endLine?: number;
|
|
427
|
-
code?: string;
|
|
428
|
-
callerCount?: number;
|
|
429
430
|
contentHash?: string;
|
|
430
|
-
parentSymbolRef?: string;
|
|
431
431
|
parentPath?: string;
|
|
432
432
|
}
|
|
433
433
|
interface GrepRepoMatch {
|
|
@@ -543,6 +543,8 @@ interface PackageIdentity {
|
|
|
543
543
|
license?: string;
|
|
544
544
|
downloadsLastMonth?: number;
|
|
545
545
|
downloadsTotal?: number;
|
|
546
|
+
versionCount?: number;
|
|
547
|
+
downloadsRefreshedAt?: string;
|
|
546
548
|
githubRepository?: GithubRepository;
|
|
547
549
|
}
|
|
548
550
|
interface GithubRepository {
|
|
@@ -562,6 +564,7 @@ interface VulnerabilityOverview {
|
|
|
562
564
|
}
|
|
563
565
|
interface PackageSecurityOverview {
|
|
564
566
|
vulnerabilityCount?: number;
|
|
567
|
+
allVulnerabilityCount: number;
|
|
565
568
|
hasCurrentVulnerabilities?: boolean;
|
|
566
569
|
recentVulnerabilities?: VulnerabilityOverview[];
|
|
567
570
|
}
|
|
@@ -637,10 +640,12 @@ interface PackageDependenciesParams {
|
|
|
637
640
|
includeTransitiveDetails?: boolean;
|
|
638
641
|
/** Include dependency group metadata. */
|
|
639
642
|
includeGroups?: boolean;
|
|
643
|
+
/** Include transitive dependency issue analysis. */
|
|
644
|
+
includeDependencyIssues?: boolean;
|
|
640
645
|
/**
|
|
641
|
-
* Optional transitive-traversal depth (1–10). Omit for the backend
|
|
642
|
-
*
|
|
643
|
-
*
|
|
646
|
+
* Optional transitive-traversal depth (1–10). Omit for the backend's full
|
|
647
|
+
* graph default. Normal direct-only CLI/MCP calls send depth 1 explicitly;
|
|
648
|
+
* issue-only calls omit depth for full analysis unless the caller bounds it.
|
|
644
649
|
*/
|
|
645
650
|
maxDepth?: number;
|
|
646
651
|
/**
|