@cline/core 0.0.67-nightly.1785554076 → 0.0.68

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.
@@ -1,6 +1,8 @@
1
1
  import { ProviderSettingsManager } from "../storage/provider-settings-manager";
2
+ import type { ModelInfo } from "./provider-settings";
2
3
  export interface ClineRecommendedModel {
3
4
  id: string;
5
+ /** Display-ready model name, resolved against the model catalog. */
4
6
  name: string;
5
7
  description: string;
6
8
  tags: string[];
@@ -10,11 +12,18 @@ export interface ClineRecommendedModelsData {
10
12
  free: ClineRecommendedModel[];
11
13
  clinePass: ClineRecommendedModel[];
12
14
  }
15
+ type ModelsCatalog = Record<string, Record<string, ModelInfo>>;
13
16
  export interface FetchClineRecommendedModelsOptions {
14
17
  baseUrl?: string;
15
18
  fetchImpl?: typeof fetch;
16
19
  providerSettingsManager?: Pick<ProviderSettingsManager, "getProviderSettings">;
17
20
  timeoutMs?: number;
21
+ /**
22
+ * Loader for the live models catalog used to resolve display names.
23
+ * Defaults to the shared live-catalog cache; injectable for tests.
24
+ */
25
+ catalogLoader?: () => Promise<ModelsCatalog>;
18
26
  }
19
27
  export declare const FALLBACK_CLINE_RECOMMENDED_MODELS: ClineRecommendedModelsData;
20
28
  export declare function fetchClineRecommendedModels(options?: FetchClineRecommendedModelsOptions): Promise<ClineRecommendedModelsData>;
29
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cline/core",
3
3
  "description": "Cline Core SDK for Node Runtime",
4
- "version": "0.0.67-nightly.1785554076",
4
+ "version": "0.0.68",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/cline/cline",
@@ -49,9 +49,9 @@
49
49
  "test:watch": "vitest --config vitest.config.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@cline/agents": "0.0.67-nightly.1785554076",
53
- "@cline/shared": "0.0.67-nightly.1785554076",
54
- "@cline/llms": "0.0.67-nightly.1785554076",
52
+ "@cline/agents": "0.0.68",
53
+ "@cline/shared": "0.0.68",
54
+ "@cline/llms": "0.0.68",
55
55
  "@modelcontextprotocol/sdk": "^1.29.0",
56
56
  "@opentelemetry/api": "^1.9.0",
57
57
  "@opentelemetry/api-logs": "^0.214.0",