@cline/core 0.0.61 → 0.0.62
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/extensions/tools/team/delegated-agent.d.ts +1 -1
- package/dist/hub/daemon/entry.js +155 -155
- package/dist/hub/index.js +153 -153
- package/dist/index.d.ts +1 -0
- package/dist/index.js +153 -153
- package/dist/services/providers/local-provider-registry.d.ts +56 -9
- package/dist/types/config.d.ts +4 -0
- package/package.json +4 -4
|
@@ -5,9 +5,9 @@ import type { ProviderSettingsManager } from "../storage/provider-settings-manag
|
|
|
5
5
|
export declare const StoredModelEntrySchema: z.ZodObject<{
|
|
6
6
|
id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
8
|
-
maxTokens: z.ZodOptional<z.ZodNumber
|
|
9
|
-
contextWindow: z.ZodOptional<z.ZodNumber
|
|
10
|
-
maxInputTokens: z.ZodOptional<z.ZodNumber
|
|
8
|
+
maxTokens: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
+
contextWindow: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
maxInputTokens: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
11
11
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
12
|
images: "images";
|
|
13
13
|
tools: "tools";
|
|
@@ -24,6 +24,17 @@ export declare const StoredModelEntrySchema: z.ZodObject<{
|
|
|
24
24
|
supportsVision: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
supportsAttachments: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
supportsReasoning: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
inputPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
28
|
+
outputPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
29
|
+
cacheReadsPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
30
|
+
cacheWritesPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
31
|
+
temperature: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
default: "default";
|
|
34
|
+
"openai-responses": "openai-responses";
|
|
35
|
+
r1: "r1";
|
|
36
|
+
}>>;
|
|
37
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
38
|
}, z.core.$loose>;
|
|
28
39
|
export type StoredModelEntry = z.infer<typeof StoredModelEntrySchema>;
|
|
29
40
|
export declare const StoredProviderMetadataSchema: z.ZodObject<{
|
|
@@ -112,9 +123,9 @@ export declare const StoredProviderEntrySchema: z.ZodObject<{
|
|
|
112
123
|
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
113
124
|
id: z.ZodOptional<z.ZodString>;
|
|
114
125
|
name: z.ZodOptional<z.ZodString>;
|
|
115
|
-
maxTokens: z.ZodOptional<z.ZodNumber
|
|
116
|
-
contextWindow: z.ZodOptional<z.ZodNumber
|
|
117
|
-
maxInputTokens: z.ZodOptional<z.ZodNumber
|
|
126
|
+
maxTokens: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
127
|
+
contextWindow: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
128
|
+
maxInputTokens: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
118
129
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
119
130
|
images: "images";
|
|
120
131
|
tools: "tools";
|
|
@@ -131,6 +142,17 @@ export declare const StoredProviderEntrySchema: z.ZodObject<{
|
|
|
131
142
|
supportsVision: z.ZodOptional<z.ZodBoolean>;
|
|
132
143
|
supportsAttachments: z.ZodOptional<z.ZodBoolean>;
|
|
133
144
|
supportsReasoning: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
inputPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
146
|
+
outputPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
147
|
+
cacheReadsPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
148
|
+
cacheWritesPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
149
|
+
temperature: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
150
|
+
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
default: "default";
|
|
152
|
+
"openai-responses": "openai-responses";
|
|
153
|
+
r1: "r1";
|
|
154
|
+
}>>;
|
|
155
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
134
156
|
}, z.core.$loose>>>;
|
|
135
157
|
}, z.core.$loose>;
|
|
136
158
|
export type StoredProviderEntry = z.infer<typeof StoredProviderEntrySchema>;
|
|
@@ -181,9 +203,9 @@ export declare const StoredModelsFileSchema: z.ZodObject<{
|
|
|
181
203
|
models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
182
204
|
id: z.ZodOptional<z.ZodString>;
|
|
183
205
|
name: z.ZodOptional<z.ZodString>;
|
|
184
|
-
maxTokens: z.ZodOptional<z.ZodNumber
|
|
185
|
-
contextWindow: z.ZodOptional<z.ZodNumber
|
|
186
|
-
maxInputTokens: z.ZodOptional<z.ZodNumber
|
|
206
|
+
maxTokens: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
207
|
+
contextWindow: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
208
|
+
maxInputTokens: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
187
209
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
188
210
|
images: "images";
|
|
189
211
|
tools: "tools";
|
|
@@ -200,6 +222,17 @@ export declare const StoredModelsFileSchema: z.ZodObject<{
|
|
|
200
222
|
supportsVision: z.ZodOptional<z.ZodBoolean>;
|
|
201
223
|
supportsAttachments: z.ZodOptional<z.ZodBoolean>;
|
|
202
224
|
supportsReasoning: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
inputPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
226
|
+
outputPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
227
|
+
cacheReadsPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
228
|
+
cacheWritesPrice: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
229
|
+
temperature: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
|
|
230
|
+
apiFormat: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
default: "default";
|
|
232
|
+
"openai-responses": "openai-responses";
|
|
233
|
+
r1: "r1";
|
|
234
|
+
}>>;
|
|
235
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
203
236
|
}, z.core.$loose>>>;
|
|
204
237
|
}, z.core.$loose>>;
|
|
205
238
|
}, z.core.$strip>;
|
|
@@ -226,5 +259,19 @@ export declare function registerConfiguredProvidersFromSettings(state: StoredPro
|
|
|
226
259
|
* registry file and to register providers with the LlmsModels system.
|
|
227
260
|
*/
|
|
228
261
|
export declare function registerCustomProvider(providerId: string, entry: StoredProviderEntry): void;
|
|
262
|
+
/**
|
|
263
|
+
* Apply a single provider's updated models.json entry to the live @cline/llms
|
|
264
|
+
* registry. Unlike {@link ensureCustomProvidersLoadedSync}, which loads a
|
|
265
|
+
* models.json path at most once per process, this applies on every call so
|
|
266
|
+
* writes made after startup are reflected immediately: models removed from the
|
|
267
|
+
* entry are unregistered, and the remaining entry is (re-)registered.
|
|
268
|
+
*/
|
|
269
|
+
export declare function syncStoredProviderRegistration(providerId: string, previous: StoredProviderEntry | undefined, next: StoredProviderEntry | undefined): void;
|
|
270
|
+
/**
|
|
271
|
+
* Load models.json into the @cline/llms registry at most once per path per
|
|
272
|
+
* process; subsequent calls are no-ops. It does NOT re-read the file after
|
|
273
|
+
* writes — use {@link syncStoredProviderRegistration} to reflect a write in
|
|
274
|
+
* the live registry.
|
|
275
|
+
*/
|
|
229
276
|
export declare function ensureCustomProvidersLoadedSync(manager: ProviderSettingsManager): void;
|
|
230
277
|
export declare function ensureCustomProvidersLoaded(manager: ProviderSettingsManager): Promise<void>;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ export interface CoreModelConfig {
|
|
|
28
28
|
* Maximum output tokens per API call.
|
|
29
29
|
*/
|
|
30
30
|
maxTokensPerTurn?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Sampling temperature per API call.
|
|
33
|
+
*/
|
|
34
|
+
temperature?: number;
|
|
31
35
|
}
|
|
32
36
|
export interface CoreRuntimeFeatures {
|
|
33
37
|
enableTools: boolean;
|
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.
|
|
4
|
+
"version": "0.0.62",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/cline/cline",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"test:watch": "vitest --config vitest.config.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@cline/agents": "0.0.
|
|
52
|
-
"@cline/shared": "0.0.
|
|
53
|
-
"@cline/llms": "0.0.
|
|
51
|
+
"@cline/agents": "0.0.62",
|
|
52
|
+
"@cline/shared": "0.0.62",
|
|
53
|
+
"@cline/llms": "0.0.62",
|
|
54
54
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
55
55
|
"@opentelemetry/api": "^1.9.0",
|
|
56
56
|
"@opentelemetry/api-logs": "^0.214.0",
|