llm-cli-gateway 2.6.0 → 2.7.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.
@@ -0,0 +1,97 @@
1
+ import { type CliInfo } from "./model-registry.js";
2
+ import { type CliType } from "./session-manager.js";
3
+ export interface ProviderToolControl {
4
+ name?: string;
5
+ supported: boolean;
6
+ requestField?: string;
7
+ cliFlag?: string;
8
+ behavior: string;
9
+ }
10
+ export type ProviderCapabilityId = CliType | "grok_api";
11
+ export type ProviderKind = "cli" | "api";
12
+ export type UnsupportedInputBehavior = "reject" | "ignored" | "not_supported" | "approval_tracking_only" | "deprecated";
13
+ export type ProviderToolConfidence = "high" | "medium" | "low";
14
+ export type ProviderToolExtractionReason = "exact-tool-section" | "known-tool-name" | "backtick-heuristic" | "low-confidence";
15
+ export interface ProviderSkillCapability {
16
+ name: string;
17
+ source: "user" | "bundled";
18
+ path?: string;
19
+ description?: string;
20
+ declaredTools: string[];
21
+ declaredToolReasons?: Partial<Record<string, ProviderToolExtractionReason>>;
22
+ }
23
+ export interface ProviderNativeToolCapability {
24
+ name: string;
25
+ source: string;
26
+ skillName?: string;
27
+ path?: string;
28
+ confidence: ProviderToolConfidence;
29
+ reason: ProviderToolExtractionReason;
30
+ }
31
+ export interface ProviderConfigSurface {
32
+ name: string;
33
+ kind: "file" | "directory" | "env" | "gateway" | "provider";
34
+ present: boolean;
35
+ path?: string;
36
+ entries?: string[];
37
+ details?: string;
38
+ }
39
+ export interface ProviderUnsupportedInput {
40
+ input: string;
41
+ behavior: UnsupportedInputBehavior;
42
+ details: string;
43
+ }
44
+ export interface ProviderFeatureCapability {
45
+ supported: boolean;
46
+ details?: string;
47
+ values?: string[];
48
+ }
49
+ export type ProviderFeatureMap = Record<string, ProviderFeatureCapability>;
50
+ export interface ProviderCapabilityControls {
51
+ allowlist: ProviderToolControl;
52
+ denylist: ProviderToolControl;
53
+ mcpServers: ProviderToolControl;
54
+ nativeSkills: ProviderToolControl;
55
+ [name: string]: ProviderToolControl;
56
+ }
57
+ export interface ProviderToolCapabilities {
58
+ schemaVersion: "provider-tool-capabilities.v2";
59
+ generatedAt: string;
60
+ cli: ProviderCapabilityId;
61
+ providerKind: ProviderKind;
62
+ gatewayRequestTools: string[];
63
+ modelInfo: CliInfo | GrokApiModelInfo;
64
+ summary: string;
65
+ controls: ProviderCapabilityControls;
66
+ features: ProviderFeatureMap;
67
+ discoveredSkills: ProviderSkillCapability[];
68
+ discoveredProviderTools: ProviderNativeToolCapability[];
69
+ configSurfaces: ProviderConfigSurface[];
70
+ unsupportedInputs: ProviderUnsupportedInput[];
71
+ warnings: string[];
72
+ metadata: {
73
+ deprecatedFields?: Record<string, string>;
74
+ cacheTtlMs: number;
75
+ };
76
+ gatewayRequestTool: string;
77
+ }
78
+ export interface GrokApiModelInfo {
79
+ description: string;
80
+ models: Record<string, string>;
81
+ defaultModel?: string;
82
+ defaultModelSource?: string;
83
+ warnings?: string[];
84
+ }
85
+ export interface ProviderCapabilityQuery {
86
+ cli?: ProviderCapabilityId;
87
+ includeSkills?: boolean;
88
+ includeProviderTools?: boolean;
89
+ includeUnsupported?: boolean;
90
+ includePaths?: boolean;
91
+ refresh?: boolean;
92
+ }
93
+ export type ProviderToolCapabilitiesMap = Partial<Record<ProviderCapabilityId, ProviderToolCapabilities>>;
94
+ export declare function getProviderToolCapabilities(queryOrCli?: ProviderCapabilityQuery | ProviderCapabilityId): ProviderToolCapabilitiesMap;
95
+ export declare function getOneProviderToolCapabilities(cli: ProviderCapabilityId, queryOrCli?: ProviderCapabilityQuery | ProviderCapabilityId): ProviderToolCapabilities;
96
+ export declare function clearProviderToolCapabilitiesCache(): void;
97
+ export declare function providerCapabilityIds(): readonly ProviderCapabilityId[];