@githits/mcp 0.11.4 → 0.12.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
@@ -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?: string[];
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 {
package/dist/client.js CHANGED
@@ -1 +1 @@
1
- import{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,toPkgseerRegistryLowercase}from"./shared/chunk-gcryn04g.js";import"./shared/chunk-51x6tx02.js";export{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,toPkgseerRegistryLowercase};
1
+ import{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,toPkgseerRegistryLowercase}from"./shared/chunk-sn4ej4cx.js";import"./shared/chunk-51x6tx02.js";export{CodeDiffError,CodeNavigationServiceImpl,DEFAULT_API_URL,DEFAULT_CODE_NAV_URL,DEFAULT_MCP_URL,GitHitsServiceImpl,PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl,RefreshingGitHitsService,createClientHeaderBuilder,createStaticTokenProvider,getApiUrl,getCodeNavigationUrl,getEnvApiToken,getMcpUrl,toPkgseerRegistry,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?: string[];
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 {