@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.
@@ -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
  }
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",