@cline/shared 0.0.44 → 0.0.46

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.
@@ -9,7 +9,7 @@ export type GatewayModelCapability = "text" | "tools" | "reasoning" | "prompt-ca
9
9
  export type GatewayPromptCacheStrategy = "anthropic-automatic";
10
10
  export type GatewayUsageCostDisplay = "show" | "hide";
11
11
  export type GatewayPromptCacheFormat = "anthropic-cache-control";
12
- export type GatewayReasoningFormat = "anthropic-thinking" | "glm-thinking";
12
+ export type GatewayReasoningFormat = "anthropic-thinking" | "glm-thinking" | "minimax-thinking";
13
13
  export type GatewayModelRoute = {
14
14
  matcher: "anthropic-compatible";
15
15
  } | {
@@ -172,7 +172,6 @@ export interface ProviderModelsResponse {
172
172
  providerId: string;
173
173
  models: ProviderModel[];
174
174
  }
175
- import type { OAuthProviderId } from "../types/auth";
176
175
  export declare const ProviderCapabilitySchema: z.ZodEnum<{
177
176
  tools: "tools";
178
177
  streaming: "streaming";
@@ -336,6 +335,6 @@ export type ClineAccountActionRequest = {
336
335
  };
337
336
  export type ProviderActionRequest = ProviderSettingsActionRequest | ClineAccountActionRequest;
338
337
  export interface ProviderOAuthLoginResponse {
339
- provider: OAuthProviderId;
338
+ provider: string;
340
339
  accessToken: string;
341
340
  }
@@ -1,20 +1,10 @@
1
- /**
2
- * Canonical list of OAuth provider IDs managed by the platform.
3
- * Derive sets, types, and guards from this single source of truth.
4
- */
5
- export declare const OAUTH_PROVIDER_IDS: readonly ["cline", "oca", "openai-codex"];
6
- export type OAuthProviderId = (typeof OAUTH_PROVIDER_IDS)[number];
7
- /**
8
- * Check whether a provider ID is a managed OAuth provider.
9
- */
10
- export declare function isOAuthProviderId(providerId: string): providerId is OAuthProviderId;
11
1
  /**
12
2
  * Error‑message sub-strings that indicate an auth / credential failure.
13
- * Used to decide whether a failed API call should trigger an OAuth refresh.
3
+ * Used with provider auth handlers to decide whether a failed API call should
4
+ * trigger an OAuth refresh.
14
5
  */
15
6
  export declare const AUTH_ERROR_PATTERNS: readonly ["401", "403", "unauthorized", "forbidden", "invalid token", "expired token", "authentication"];
16
7
  /**
17
- * Returns `true` when `error` looks like an authentication failure
18
- * *and* the provider is a managed OAuth provider.
8
+ * Returns `true` when `error` looks like an authentication failure.
19
9
  */
20
- export declare function isLikelyAuthError(error: unknown, providerId: string): boolean;
10
+ export declare function isLikelyAuthError(error: unknown): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cline/shared",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "Shared utilities, types, and schemas for Cline packages",
5
5
  "repository": {
6
6
  "type": "git",