@githits/mcp 0.39.0 → 0.40.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
@@ -27,6 +27,51 @@ interface CreateClientHeaderBuilderOptions {
27
27
  * relying on module-level CLI state.
28
28
  */
29
29
  declare function createClientHeaderBuilder(options: CreateClientHeaderBuilderOptions): ClientHeaderBuilder;
30
+ interface OsvCredit {
31
+ name: string;
32
+ contact: string[];
33
+ type: string | null;
34
+ }
35
+ interface OsvSourceMetadata {
36
+ schemaVersion: string;
37
+ relatedIds: string[];
38
+ upstreamIds: string[];
39
+ credits: OsvCredit[];
40
+ }
41
+ interface OsvSourceDetails extends OsvSourceMetadata {
42
+ osvId: string;
43
+ aliases: string[];
44
+ summary: string | null;
45
+ details: string | null;
46
+ sourceUrl: string;
47
+ publishedAt: string | null;
48
+ modifiedAt: string;
49
+ withdrawnAt: string | null;
50
+ severity: Array<{
51
+ type: string;
52
+ score: string;
53
+ source: string | null;
54
+ }>;
55
+ references: Array<{
56
+ type: string;
57
+ url: string | null;
58
+ }>;
59
+ contentSafety: {
60
+ filtered: boolean;
61
+ modifications: string[];
62
+ };
63
+ }
64
+ interface VulnerabilitySourceEntry {
65
+ /** Exact representative ID from one original backend row, before assessment dedup. */
66
+ advisoryId: string | null;
67
+ source: OsvSourceDetails | null;
68
+ error?: {
69
+ code: string;
70
+ message: string;
71
+ retryable: boolean;
72
+ retryAfterSeconds?: number;
73
+ };
74
+ }
30
75
  /**
31
76
  * Host-supplied diagnostics for transport-neutral service clients.
32
77
  *
@@ -1449,6 +1494,8 @@ interface PackageSummary {
1449
1494
  latestChangelogs?: ChangelogEntry[];
1450
1495
  }
1451
1496
  interface PackageVulnerabilitiesParams {
1497
+ /** Opt in to full current OSV explanations on bounded direct advisory pages. */
1498
+ includeSourceDetails?: boolean;
1452
1499
  registry: PkgseerRegistry;
1453
1500
  packageName: string;
1454
1501
  /** Optional — backend defaults to latest when omitted. */
@@ -1505,6 +1552,7 @@ interface VulnerabilitySecurityDetails {
1505
1552
  upgradePaths?: string[];
1506
1553
  }
1507
1554
  interface VulnerabilityReport {
1555
+ sourceDetails?: VulnerabilitySourceEntry[];
1508
1556
  package: PackageVersionIdentity;
1509
1557
  security?: VulnerabilitySecurityDetails;
1510
1558
  transitive?: TransitiveVulnerabilityAudit;
package/dist/client.js CHANGED
@@ -1 +1 @@
1
- import{GrepGraphQLError2,GrepBackendError2,GrepAccessError2,GrepNetworkError2,MalformedGrepResponseError2,GrepServiceImpl2,ListAccessError2,ListGraphQLError2,ListBackendError2,ListNetworkError2,MalformedListResponseError2,ListServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,ResolveTargetServiceImpl2,createStaticTokenProvider2,SessionIdConfigError2,getEnvSessionId2,createClientHeaderBuilder2}from"./shared/chunk-54mxpkxp.js";import{ProviderReauthenticationRequiredError2,DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,AGENTIC_ASK_REQUEST_TIMEOUT_MS2,AgenticAskServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,PackageIntelligenceServiceImpl2}from"./shared/chunk-yv5er0y7.js";export{AGENTIC_ASK_REQUEST_TIMEOUT_MS2 as AGENTIC_ASK_REQUEST_TIMEOUT_MS,AgenticAskServiceImpl2 as AgenticAskServiceImpl,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,GrepAccessError2 as GrepAccessError,GrepBackendError2 as GrepBackendError,GrepGraphQLError2 as GrepGraphQLError,GrepNetworkError2 as GrepNetworkError,GrepServiceImpl2 as GrepServiceImpl,ListAccessError2 as ListAccessError,ListBackendError2 as ListBackendError,ListGraphQLError2 as ListGraphQLError,ListNetworkError2 as ListNetworkError,ListServiceImpl2 as ListServiceImpl,MalformedGrepResponseError2 as MalformedGrepResponseError,MalformedListResponseError2 as MalformedListResponseError,PKGSEER_REGISTRY_LIST2 as PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl2 as PackageIntelligenceServiceImpl,ProviderReauthenticationRequiredError2 as ProviderReauthenticationRequiredError,ReadServiceImpl2 as ReadServiceImpl,RefreshingGitHitsService2 as RefreshingGitHitsService,ResolveTargetServiceImpl2 as ResolveTargetServiceImpl,SessionIdConfigError2 as SessionIdConfigError,createClientHeaderBuilder2 as createClientHeaderBuilder,createStaticTokenProvider2 as createStaticTokenProvider,getApiUrl2 as getApiUrl,getCodeNavigationUrl2 as getCodeNavigationUrl,getEnvApiToken2 as getEnvApiToken,getEnvSessionId2 as getEnvSessionId,getMcpUrl2 as getMcpUrl,toPkgseerRegistry2 as toPkgseerRegistry,toPkgseerRegistryLowercase2 as toPkgseerRegistryLowercase};
1
+ import{GrepGraphQLError2,GrepBackendError2,GrepAccessError2,GrepNetworkError2,MalformedGrepResponseError2,GrepServiceImpl2,ListAccessError2,ListGraphQLError2,ListBackendError2,ListNetworkError2,MalformedListResponseError2,ListServiceImpl2,ReadServiceImpl2,RefreshingGitHitsService2,ResolveTargetServiceImpl2,createStaticTokenProvider2,SessionIdConfigError2,getEnvSessionId2,createClientHeaderBuilder2}from"./shared/chunk-yy4545de.js";import{ProviderReauthenticationRequiredError2,DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,AGENTIC_ASK_REQUEST_TIMEOUT_MS2,AgenticAskServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,PackageIntelligenceServiceImpl2}from"./shared/chunk-38x0tqhy.js";export{AGENTIC_ASK_REQUEST_TIMEOUT_MS2 as AGENTIC_ASK_REQUEST_TIMEOUT_MS,AgenticAskServiceImpl2 as AgenticAskServiceImpl,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,GrepAccessError2 as GrepAccessError,GrepBackendError2 as GrepBackendError,GrepGraphQLError2 as GrepGraphQLError,GrepNetworkError2 as GrepNetworkError,GrepServiceImpl2 as GrepServiceImpl,ListAccessError2 as ListAccessError,ListBackendError2 as ListBackendError,ListGraphQLError2 as ListGraphQLError,ListNetworkError2 as ListNetworkError,ListServiceImpl2 as ListServiceImpl,MalformedGrepResponseError2 as MalformedGrepResponseError,MalformedListResponseError2 as MalformedListResponseError,PKGSEER_REGISTRY_LIST2 as PKGSEER_REGISTRY_LIST,PackageIntelligenceServiceImpl2 as PackageIntelligenceServiceImpl,ProviderReauthenticationRequiredError2 as ProviderReauthenticationRequiredError,ReadServiceImpl2 as ReadServiceImpl,RefreshingGitHitsService2 as RefreshingGitHitsService,ResolveTargetServiceImpl2 as ResolveTargetServiceImpl,SessionIdConfigError2 as SessionIdConfigError,createClientHeaderBuilder2 as createClientHeaderBuilder,createStaticTokenProvider2 as createStaticTokenProvider,getApiUrl2 as getApiUrl,getCodeNavigationUrl2 as getCodeNavigationUrl,getEnvApiToken2 as getEnvApiToken,getEnvSessionId2 as getEnvSessionId,getMcpUrl2 as getMcpUrl,toPkgseerRegistry2 as toPkgseerRegistry,toPkgseerRegistryLowercase2 as toPkgseerRegistryLowercase};
package/dist/index.d.ts CHANGED
@@ -19,6 +19,51 @@ declare function buildMcpQuickStart(options?: BuildMcpQuickStartOptions): string
19
19
  */
20
20
  declare function buildMcpInstructions(options?: BuildMcpInstructionsOptions): string;
21
21
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
22
+ interface OsvCredit {
23
+ name: string;
24
+ contact: string[];
25
+ type: string | null;
26
+ }
27
+ interface OsvSourceMetadata {
28
+ schemaVersion: string;
29
+ relatedIds: string[];
30
+ upstreamIds: string[];
31
+ credits: OsvCredit[];
32
+ }
33
+ interface OsvSourceDetails extends OsvSourceMetadata {
34
+ osvId: string;
35
+ aliases: string[];
36
+ summary: string | null;
37
+ details: string | null;
38
+ sourceUrl: string;
39
+ publishedAt: string | null;
40
+ modifiedAt: string;
41
+ withdrawnAt: string | null;
42
+ severity: Array<{
43
+ type: string;
44
+ score: string;
45
+ source: string | null;
46
+ }>;
47
+ references: Array<{
48
+ type: string;
49
+ url: string | null;
50
+ }>;
51
+ contentSafety: {
52
+ filtered: boolean;
53
+ modifications: string[];
54
+ };
55
+ }
56
+ interface VulnerabilitySourceEntry {
57
+ /** Exact representative ID from one original backend row, before assessment dedup. */
58
+ advisoryId: string | null;
59
+ source: OsvSourceDetails | null;
60
+ error?: {
61
+ code: string;
62
+ message: string;
63
+ retryable: boolean;
64
+ retryAfterSeconds?: number;
65
+ };
66
+ }
22
67
  /**
23
68
  * Optional per-call controls shared by network-backed service methods.
24
69
  *
@@ -1120,6 +1165,8 @@ interface PackageSummary {
1120
1165
  latestChangelogs?: ChangelogEntry[];
1121
1166
  }
1122
1167
  interface PackageVulnerabilitiesParams {
1168
+ /** Opt in to full current OSV explanations on bounded direct advisory pages. */
1169
+ includeSourceDetails?: boolean;
1123
1170
  registry: PkgseerRegistry;
1124
1171
  packageName: string;
1125
1172
  /** Optional — backend defaults to latest when omitted. */
@@ -1176,6 +1223,7 @@ interface VulnerabilitySecurityDetails {
1176
1223
  upgradePaths?: string[];
1177
1224
  }
1178
1225
  interface VulnerabilityReport {
1226
+ sourceDetails?: VulnerabilitySourceEntry[];
1179
1227
  package: PackageVersionIdentity;
1180
1228
  security?: VulnerabilitySecurityDetails;
1181
1229
  transitive?: TransitiveVulnerabilityAudit;
@@ -2120,7 +2168,7 @@ interface McpProgressAnimationOptions {
2120
2168
  }
2121
2169
  /** Backend stage covered by the opening message. */
2122
2170
  declare const OPENING_STAGE = "started";
2123
- import { z as z4 } from "zod";
2171
+ import { z as z5 } from "zod";
2124
2172
  /** Annotation fields required by OpenAI's MCP marketplace validation. */
2125
2173
  interface CompleteToolAnnotations {
2126
2174
  title?: string;
@@ -2173,7 +2221,7 @@ type ToolResult = {
2173
2221
  * Zod raw shape type (what MCP SDK expects)
2174
2222
  */
2175
2223
  type ZodRawShape = {
2176
- [k: string]: z4.ZodTypeAny;
2224
+ [k: string]: z5.ZodTypeAny;
2177
2225
  };
2178
2226
  /**
2179
2227
  * Services required to construct the MCP tool surface.