@githits/mcp 0.14.0 → 0.15.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 +32 -30
- package/dist/client.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +13 -13
- package/dist/shared/chunk-dybf4ebf.js +1508 -0
- package/package.json +1 -1
- package/dist/shared/chunk-zhq9qe0f.js +0 -1507
package/dist/client.d.ts
CHANGED
|
@@ -22,35 +22,6 @@ interface CreateClientHeaderBuilderOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
declare function createClientHeaderBuilder(options: CreateClientHeaderBuilderOptions): ClientHeaderBuilder;
|
|
24
24
|
/**
|
|
25
|
-
* Host-supplied diagnostics for transport-neutral service clients.
|
|
26
|
-
*
|
|
27
|
-
* Implementations may record operation timings or debug events in whatever
|
|
28
|
-
* way is appropriate for their host. Core does not provide a default and
|
|
29
|
-
* remains silent when diagnostics are omitted. Core callers gate every debug
|
|
30
|
-
* event through `isEnabled(area)`; when it returns `false`, the corresponding
|
|
31
|
-
* debug call is suppressed entirely. Returning `true` is therefore both a log
|
|
32
|
-
* filter and a content-disclosure decision for the host.
|
|
33
|
-
*
|
|
34
|
-
* In particular, the `code-nav-wire` area may carry the exact GraphQL document
|
|
35
|
-
* and request variables, including caller query text, so it requires separate
|
|
36
|
-
* explicit opt-in. The `code-nav` and `pkg-graphql` schema-mismatch paths may
|
|
37
|
-
* carry raw backend error text, and an enabled area may select that raw error
|
|
38
|
-
* content instead of the sanitized message. These areas are not PII-safe;
|
|
39
|
-
* hosts own their privacy and retention policy for any enabled diagnostics.
|
|
40
|
-
*/
|
|
41
|
-
interface ServiceDiagnostics {
|
|
42
|
-
withOperation<T>(name: string, operation: () => Promise<T>): Promise<T>;
|
|
43
|
-
isEnabled(area: string): boolean;
|
|
44
|
-
debug(area: string, event: Record<string, unknown>): void;
|
|
45
|
-
}
|
|
46
|
-
interface TokenProvider {
|
|
47
|
-
/** Get a valid token, refreshing proactively or reactively as needed. */
|
|
48
|
-
getToken(): Promise<string | undefined>;
|
|
49
|
-
/** Force a refresh, usually after an authentication failure. */
|
|
50
|
-
forceRefresh(): Promise<string | undefined>;
|
|
51
|
-
}
|
|
52
|
-
declare function createStaticTokenProvider(token: string): TokenProvider;
|
|
53
|
-
/**
|
|
54
25
|
* Registry taxonomy shared by code-navigation and package-intelligence
|
|
55
26
|
* services. Single source of truth for:
|
|
56
27
|
*
|
|
@@ -91,6 +62,35 @@ declare function toPkgseerRegistry(registry: PkgseerRegistryArg): PkgseerRegistr
|
|
|
91
62
|
*/
|
|
92
63
|
declare function toPkgseerRegistryLowercase(registry: PkgseerRegistry): PkgseerRegistryArg;
|
|
93
64
|
/**
|
|
65
|
+
* Host-supplied diagnostics for transport-neutral service clients.
|
|
66
|
+
*
|
|
67
|
+
* Implementations may record operation timings or debug events in whatever
|
|
68
|
+
* way is appropriate for their host. Core does not provide a default and
|
|
69
|
+
* remains silent when diagnostics are omitted. Core callers gate every debug
|
|
70
|
+
* event through `isEnabled(area)`; when it returns `false`, the corresponding
|
|
71
|
+
* debug call is suppressed entirely. Returning `true` is therefore both a log
|
|
72
|
+
* filter and a content-disclosure decision for the host.
|
|
73
|
+
*
|
|
74
|
+
* In particular, the `code-nav-wire` area may carry the exact GraphQL document
|
|
75
|
+
* and request variables, including caller query text, so it requires separate
|
|
76
|
+
* explicit opt-in. The `code-nav` and `pkg-graphql` schema-mismatch paths may
|
|
77
|
+
* carry raw backend error text, and an enabled area may select that raw error
|
|
78
|
+
* content instead of the sanitized message. These areas are not PII-safe;
|
|
79
|
+
* hosts own their privacy and retention policy for any enabled diagnostics.
|
|
80
|
+
*/
|
|
81
|
+
interface ServiceDiagnostics {
|
|
82
|
+
withOperation<T>(name: string, operation: () => Promise<T>): Promise<T>;
|
|
83
|
+
isEnabled(area: string): boolean;
|
|
84
|
+
debug(area: string, event: Record<string, unknown>): void;
|
|
85
|
+
}
|
|
86
|
+
interface TokenProvider {
|
|
87
|
+
/** Get a valid token, refreshing proactively or reactively as needed. */
|
|
88
|
+
getToken(): Promise<string | undefined>;
|
|
89
|
+
/** Force a refresh, usually after an authentication failure. */
|
|
90
|
+
forceRefresh(): Promise<string | undefined>;
|
|
91
|
+
}
|
|
92
|
+
declare function createStaticTokenProvider(token: string): TokenProvider;
|
|
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.
|
|
@@ -165,7 +165,7 @@ type KnownUnifiedSearchSessionStatus = "PENDING" | "INDEXING" | "SEARCHING" | "C
|
|
|
165
165
|
* response.
|
|
166
166
|
*/
|
|
167
167
|
type UnifiedSearchSessionStatus = KnownUnifiedSearchSessionStatus | (string & {});
|
|
168
|
-
type CodeIndexState = "CURRENT" | "INDEXED" | "INDEXING" | "PROVISIONAL" | "STALE" | "FAILED" | "MISSING" | string;
|
|
168
|
+
type CodeIndexState = "CURRENT" | "INDEXED" | "PENDING" | "INDEXING" | "PROVISIONAL" | "STALE" | "FAILED" | "MISSING" | string;
|
|
169
169
|
/** Coverage state of the selected published documentation corpus. */
|
|
170
170
|
type DocCoverageState = "NONE" | "PARTIAL" | "CAPPED" | "COMPLETE" | string;
|
|
171
171
|
/**
|
|
@@ -1529,6 +1529,8 @@ interface PackageDocsList {
|
|
|
1529
1529
|
packageName?: string;
|
|
1530
1530
|
version?: string;
|
|
1531
1531
|
stale?: boolean;
|
|
1532
|
+
/** Backend-owned repository documentation lifecycle state. */
|
|
1533
|
+
codeIndexState?: CodeIndexState;
|
|
1532
1534
|
pages: PackageDocPageSummary[];
|
|
1533
1535
|
pageInfo?: PackageDocsPageInfo;
|
|
1534
1536
|
}
|
package/dist/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEFAULT_MCP_URL2,DEFAULT_API_URL2,DEFAULT_CODE_NAV_URL2,getMcpUrl2,getApiUrl2,getCodeNavigationUrl2,getEnvApiToken2,GitHitsServiceImpl2,PKGSEER_REGISTRY_LIST2,toPkgseerRegistry2,toPkgseerRegistryLowercase2,CodeDiffError2,CodeNavigationServiceImpl2,
|
|
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-dybf4ebf.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
|
@@ -113,7 +113,7 @@ type KnownUnifiedSearchSessionStatus = "PENDING" | "INDEXING" | "SEARCHING" | "C
|
|
|
113
113
|
* response.
|
|
114
114
|
*/
|
|
115
115
|
type UnifiedSearchSessionStatus = KnownUnifiedSearchSessionStatus | (string & {});
|
|
116
|
-
type CodeIndexState = "CURRENT" | "INDEXED" | "INDEXING" | "PROVISIONAL" | "STALE" | "FAILED" | "MISSING" | string;
|
|
116
|
+
type CodeIndexState = "CURRENT" | "INDEXED" | "PENDING" | "INDEXING" | "PROVISIONAL" | "STALE" | "FAILED" | "MISSING" | string;
|
|
117
117
|
/** Coverage state of the selected published documentation corpus. */
|
|
118
118
|
type DocCoverageState = "NONE" | "PARTIAL" | "CAPPED" | "COMPLETE" | string;
|
|
119
119
|
/**
|
|
@@ -1218,6 +1218,8 @@ interface PackageDocsList {
|
|
|
1218
1218
|
packageName?: string;
|
|
1219
1219
|
version?: string;
|
|
1220
1220
|
stale?: boolean;
|
|
1221
|
+
/** Backend-owned repository documentation lifecycle state. */
|
|
1222
|
+
codeIndexState?: CodeIndexState;
|
|
1221
1223
|
pages: PackageDocPageSummary[];
|
|
1222
1224
|
pageInfo?: PackageDocsPageInfo;
|
|
1223
1225
|
}
|