@cline/shared 0.0.90 → 0.0.91
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/agent.d.ts +3 -3
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -14
- package/dist/llms/gateway.d.ts +9 -0
- package/dist/provider-auth.d.ts +6 -0
- package/package.json +1 -1
package/dist/llms/gateway.d.ts
CHANGED
|
@@ -93,6 +93,15 @@ export interface GatewayProviderMetadata {
|
|
|
93
93
|
* the protocol adapter. `success-data` represents `{ success, data }`.
|
|
94
94
|
*/
|
|
95
95
|
responseEnvelope?: "success-data";
|
|
96
|
+
/**
|
|
97
|
+
* The provider works without an API key: local inference servers
|
|
98
|
+
* (Ollama, LM Studio, OpenAI-compatible endpoints) and providers that
|
|
99
|
+
* authenticate through a cloud credential chain (Vertex ADC, Bedrock
|
|
100
|
+
* profiles). Hosts must not demand a key before starting a session; the
|
|
101
|
+
* endpoint's own auth error is authoritative. See
|
|
102
|
+
* `resolveProviderApiKeyOptional`.
|
|
103
|
+
*/
|
|
104
|
+
apiKeyOptional?: boolean;
|
|
96
105
|
configFields?: readonly ProviderConfigField[];
|
|
97
106
|
[key: string]: JsonValue | GatewayProviderRouting | GatewayStickySessionMetadata | readonly ProviderConfigField[] | undefined;
|
|
98
107
|
}
|
package/dist/provider-auth.d.ts
CHANGED
|
@@ -8,7 +8,13 @@ export interface ProviderAuthInfo {
|
|
|
8
8
|
providerId: string;
|
|
9
9
|
capabilities?: string[];
|
|
10
10
|
localCli?: ProviderLocalCli;
|
|
11
|
+
/** The provider accepts a missing API key (`metadata.apiKeyOptional`). */
|
|
12
|
+
apiKeyOptional?: boolean;
|
|
11
13
|
}
|
|
14
|
+
/** Whether the provider declares its API key optional; callers own provider lookup. */
|
|
15
|
+
export declare function resolveProviderApiKeyOptional(provider: {
|
|
16
|
+
metadata?: Record<string, unknown>;
|
|
17
|
+
} | undefined): boolean;
|
|
12
18
|
/** Extract declared CLI metadata; callers own provider lookup. */
|
|
13
19
|
export declare function resolveProviderLocalCli(provider: {
|
|
14
20
|
metadata?: Record<string, unknown>;
|