@sctg/cline-shared 3.84.0-beta.20260524130712
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/README.md +47 -0
- package/dist/agent.d.ts +388 -0
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/types.d.ts +967 -0
- package/dist/automation/index.d.ts +3 -0
- package/dist/automation/index.js +65 -0
- package/dist/automation/schemas.d.ts +89 -0
- package/dist/automation/types.d.ts +151 -0
- package/dist/connectors/events.d.ts +93 -0
- package/dist/connectors/options.d.ts +174 -0
- package/dist/cron/cron-spec-types.d.ts +94 -0
- package/dist/cron/index.d.ts +1 -0
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.js +80 -0
- package/dist/db/sqlite-db.d.ts +24 -0
- package/dist/dispose.d.ts +13 -0
- package/dist/extensions/context.d.ts +76 -0
- package/dist/extensions/contribution-registry.d.ts +195 -0
- package/dist/extensions/plugin.d.ts +1 -0
- package/dist/hooks/contracts.d.ts +9 -0
- package/dist/hooks/events.d.ts +194 -0
- package/dist/hub.d.ts +470 -0
- package/dist/index.browser.d.ts +61 -0
- package/dist/index.browser.js +76 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.js +163 -0
- package/dist/llms/ai-sdk-format.d.ts +55 -0
- package/dist/llms/gateway.d.ts +145 -0
- package/dist/llms/messages.d.ts +149 -0
- package/dist/llms/model-info.d.ts +120 -0
- package/dist/llms/reasoning-effort.d.ts +21 -0
- package/dist/llms/requests.d.ts +2 -0
- package/dist/llms/tokens.d.ts +7 -0
- package/dist/llms/tools.d.ts +86 -0
- package/dist/logging/logger.d.ts +37 -0
- package/dist/parse/error.d.ts +2 -0
- package/dist/parse/headers/utils.d.ts +1 -0
- package/dist/parse/json.d.ts +3 -0
- package/dist/parse/shell.d.ts +2 -0
- package/dist/parse/string.d.ts +4 -0
- package/dist/parse/time.d.ts +9 -0
- package/dist/parse/zod.d.ts +12 -0
- package/dist/prompt/cline.d.ts +24 -0
- package/dist/prompt/format.d.ts +11 -0
- package/dist/prompt/system.d.ts +2 -0
- package/dist/remote-config/artifact-store.d.ts +13 -0
- package/dist/remote-config/blob-storage.d.ts +47 -0
- package/dist/remote-config/bundle.d.ts +136 -0
- package/dist/remote-config/constants.d.ts +5 -0
- package/dist/remote-config/index.d.ts +9 -0
- package/dist/remote-config/index.js +76 -0
- package/dist/remote-config/materializer.d.ts +4 -0
- package/dist/remote-config/paths.d.ts +10 -0
- package/dist/remote-config/runtime.d.ts +20 -0
- package/dist/remote-config/schema.d.ts +408 -0
- package/dist/remote-config/telemetry.d.ts +9 -0
- package/dist/rpc/index.d.ts +5 -0
- package/dist/rpc/runtime.d.ts +322 -0
- package/dist/rpc/team-progress.d.ts +53 -0
- package/dist/runtime/build-env.d.ts +13 -0
- package/dist/runtime/cline-environment.d.ts +17 -0
- package/dist/runtime/hub-daemon-env.d.ts +2 -0
- package/dist/services/telemetry-config.d.ts +6 -0
- package/dist/services/telemetry.d.ts +133 -0
- package/dist/session/hook-context.d.ts +12 -0
- package/dist/session/index.d.ts +1 -0
- package/dist/session/records.d.ts +31 -0
- package/dist/session/runtime-config.d.ts +26 -0
- package/dist/session/runtime-env.d.ts +8 -0
- package/dist/session/workspace.d.ts +28 -0
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/index.js +1 -0
- package/dist/storage/path-resolution.d.ts +11 -0
- package/dist/storage/paths.d.ts +86 -0
- package/dist/team/index.d.ts +2 -0
- package/dist/team/schema.d.ts +411 -0
- package/dist/team/types.d.ts +196 -0
- package/dist/tools/create.d.ts +22 -0
- package/dist/types/auth.d.ts +20 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/vcr.d.ts +14 -0
- package/dist/vcr.d.ts +41 -0
- package/package.json +63 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RemoteConfigMaterializationInput, RemoteConfigMaterializationResult, RemoteConfigPolicyMaterializer } from "./bundle";
|
|
2
|
+
export declare class FileSystemRemoteConfigPolicyMaterializer implements RemoteConfigPolicyMaterializer {
|
|
3
|
+
materialize(input: RemoteConfigMaterializationInput): Promise<RemoteConfigMaterializationResult>;
|
|
4
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RemoteConfigManagedPaths } from "./bundle";
|
|
2
|
+
export declare const DEFAULT_REMOTE_CONFIG_PLUGIN_NAME = "remote-config";
|
|
3
|
+
export declare function resolveRemoteConfigPaths(input: {
|
|
4
|
+
workspacePath: string;
|
|
5
|
+
pluginName?: string;
|
|
6
|
+
}): RemoteConfigManagedPaths;
|
|
7
|
+
export declare function getRemoteConfigCommandDirectories(paths: RemoteConfigManagedPaths): {
|
|
8
|
+
workflowsDirectories: readonly string[];
|
|
9
|
+
skillsDirectories: readonly string[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AgentExtension } from "../agents/types";
|
|
2
|
+
import type { PreparedRemoteConfigRuntime, PrepareRemoteConfigRuntimeOptions, RemoteConfigBundle, RemoteConfigProjectContext, RemoteConfigSyncResult, RemoteConfigSyncServiceOptions } from "./bundle";
|
|
3
|
+
export declare function withRemoteConfigBundlePaths<T extends RemoteConfigBundle>(bundle: T, paths: RemoteConfigSyncResult["materialized"]["paths"]): T;
|
|
4
|
+
export declare class RemoteConfigSyncService {
|
|
5
|
+
private readonly options;
|
|
6
|
+
constructor(options: RemoteConfigSyncServiceOptions);
|
|
7
|
+
sync(input: {
|
|
8
|
+
workspacePath: string;
|
|
9
|
+
rootPath?: string;
|
|
10
|
+
context?: RemoteConfigProjectContext;
|
|
11
|
+
paths: RemoteConfigSyncResult["materialized"]["paths"];
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
now?: number;
|
|
14
|
+
}): Promise<RemoteConfigSyncResult>;
|
|
15
|
+
}
|
|
16
|
+
export declare function createRemoteConfigPluginDefinition(options?: {
|
|
17
|
+
name?: string;
|
|
18
|
+
setup?: AgentExtension["setup"];
|
|
19
|
+
}): AgentExtension;
|
|
20
|
+
export declare function prepareRemoteConfigRuntime(options: PrepareRemoteConfigRuntimeOptions): Promise<PreparedRemoteConfigRuntime>;
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ═══════════════════════════════════════════════════════════════════════════
|
|
3
|
+
* ⚠️ CRITICAL WARNING ⚠️
|
|
4
|
+
* ═══════════════════════════════════════════════════════════════════════════
|
|
5
|
+
*
|
|
6
|
+
* THE API SERVER MUST BE RE-DEPLOYED WHENEVER THIS SCHEMA IS UPDATED!
|
|
7
|
+
*
|
|
8
|
+
* This schema is used by both the extension and the API server for validation.
|
|
9
|
+
* Any changes here require a coordinated deployment to avoid validation errors.
|
|
10
|
+
*
|
|
11
|
+
* ═══════════════════════════════════════════════════════════════════════════
|
|
12
|
+
*/
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
export declare const OpenAiCompatibleModelSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const OpenAiCompatibleSchema: z.ZodObject<{
|
|
25
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
openAiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
36
|
+
openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
|
+
azureApiVersion: z.ZodOptional<z.ZodString>;
|
|
38
|
+
azureIdentity: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export declare const AwsBedrockModelSchema: z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export declare const AwsBedrockCustomModelSchema: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
baseModelId: z.ZodString;
|
|
47
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const AwsBedrockSettingsSchema: z.ZodObject<{
|
|
50
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
baseModelId: z.ZodString;
|
|
57
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
awsRegion: z.ZodOptional<z.ZodString>;
|
|
60
|
+
awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
awsBedrockUsePromptCache: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const ClineModelSchema: z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export declare const ClineSettingsSchema: z.ZodObject<{
|
|
69
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export declare const VertexModelSchema: z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const VertexSettingsSchema: z.ZodObject<{
|
|
78
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
vertexProjectId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
vertexRegion: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const LiteLLMModelSchema: z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
promptCachingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const LiteLLMSchema: z.ZodObject<{
|
|
91
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
promptCachingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const AnthropicModelSchema: z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export declare const AnthropicSchema: z.ZodObject<{
|
|
103
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
declare const ProviderSettingsSchema: z.ZodObject<{
|
|
110
|
+
OpenAiCompatible: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
}, z.core.$strip>>>;
|
|
121
|
+
openAiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
122
|
+
openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
123
|
+
azureApiVersion: z.ZodOptional<z.ZodString>;
|
|
124
|
+
azureIdentity: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
AwsBedrock: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
131
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
name: z.ZodString;
|
|
133
|
+
baseModelId: z.ZodString;
|
|
134
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strip>>>;
|
|
136
|
+
awsRegion: z.ZodOptional<z.ZodString>;
|
|
137
|
+
awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
awsBedrockUsePromptCache: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
Cline: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
}, z.core.$strip>>>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
Vertex: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
}, z.core.$strip>>>;
|
|
152
|
+
vertexProjectId: z.ZodOptional<z.ZodString>;
|
|
153
|
+
vertexRegion: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
LiteLLM: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
promptCachingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
}, z.core.$strip>>>;
|
|
161
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
Anthropic: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
}, z.core.$strip>>>;
|
|
168
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const AllowedMCPServerSchema: z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
export declare const RemoteMCPServerSchema: z.ZodObject<{
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
url: z.ZodString;
|
|
177
|
+
alwaysEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export declare const GlobalInstructionsFileSchema: z.ZodObject<{
|
|
181
|
+
alwaysEnabled: z.ZodBoolean;
|
|
182
|
+
name: z.ZodString;
|
|
183
|
+
contents: z.ZodString;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export declare const S3AccessKeySettingsSchema: z.ZodObject<{
|
|
186
|
+
bucket: z.ZodString;
|
|
187
|
+
accessKeyId: z.ZodString;
|
|
188
|
+
secretAccessKey: z.ZodString;
|
|
189
|
+
region: z.ZodOptional<z.ZodString>;
|
|
190
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
191
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
export declare const PromptUploadingSchema: z.ZodObject<{
|
|
194
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"s3_access_keys">, z.ZodLiteral<"r2_access_keys">, z.ZodLiteral<"azure_access_keys">]>>;
|
|
196
|
+
s3AccessSettings: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
bucket: z.ZodString;
|
|
198
|
+
accessKeyId: z.ZodString;
|
|
199
|
+
secretAccessKey: z.ZodString;
|
|
200
|
+
region: z.ZodOptional<z.ZodString>;
|
|
201
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
202
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>>;
|
|
204
|
+
r2AccessSettings: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
bucket: z.ZodString;
|
|
206
|
+
accessKeyId: z.ZodString;
|
|
207
|
+
secretAccessKey: z.ZodString;
|
|
208
|
+
region: z.ZodOptional<z.ZodString>;
|
|
209
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
210
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
azureAccessSettings: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
bucket: z.ZodString;
|
|
214
|
+
accessKeyId: z.ZodString;
|
|
215
|
+
secretAccessKey: z.ZodString;
|
|
216
|
+
region: z.ZodOptional<z.ZodString>;
|
|
217
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
218
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export declare const EnterpriseTelemetrySchema: z.ZodObject<{
|
|
222
|
+
promptUploading: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"s3_access_keys">, z.ZodLiteral<"r2_access_keys">, z.ZodLiteral<"azure_access_keys">]>>;
|
|
225
|
+
s3AccessSettings: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
bucket: z.ZodString;
|
|
227
|
+
accessKeyId: z.ZodString;
|
|
228
|
+
secretAccessKey: z.ZodString;
|
|
229
|
+
region: z.ZodOptional<z.ZodString>;
|
|
230
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
231
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
r2AccessSettings: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
bucket: z.ZodString;
|
|
235
|
+
accessKeyId: z.ZodString;
|
|
236
|
+
secretAccessKey: z.ZodString;
|
|
237
|
+
region: z.ZodOptional<z.ZodString>;
|
|
238
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
239
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
azureAccessSettings: z.ZodOptional<z.ZodObject<{
|
|
242
|
+
bucket: z.ZodString;
|
|
243
|
+
accessKeyId: z.ZodString;
|
|
244
|
+
secretAccessKey: z.ZodString;
|
|
245
|
+
region: z.ZodOptional<z.ZodString>;
|
|
246
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
247
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export declare const RemoteConfigSchema: z.ZodObject<{
|
|
252
|
+
version: z.ZodString;
|
|
253
|
+
providerSettings: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
OpenAiCompatible: z.ZodOptional<z.ZodObject<{
|
|
255
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
256
|
+
id: z.ZodString;
|
|
257
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
isR1FormatRequired: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
inputPrice: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
outputPrice: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
supportsImages: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
+
}, z.core.$strip>>>;
|
|
265
|
+
openAiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
266
|
+
openAiHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
267
|
+
azureApiVersion: z.ZodOptional<z.ZodString>;
|
|
268
|
+
azureIdentity: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
}, z.core.$strip>>;
|
|
270
|
+
AwsBedrock: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
}, z.core.$strip>>>;
|
|
275
|
+
customModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
276
|
+
name: z.ZodString;
|
|
277
|
+
baseModelId: z.ZodString;
|
|
278
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
}, z.core.$strip>>>;
|
|
280
|
+
awsRegion: z.ZodOptional<z.ZodString>;
|
|
281
|
+
awsUseCrossRegionInference: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
awsUseGlobalInference: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
awsBedrockUsePromptCache: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
awsBedrockEndpoint: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>>;
|
|
286
|
+
Cline: z.ZodOptional<z.ZodObject<{
|
|
287
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
Vertex: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
}, z.core.$strip>>>;
|
|
296
|
+
vertexProjectId: z.ZodOptional<z.ZodString>;
|
|
297
|
+
vertexRegion: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
LiteLLM: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
promptCachingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$strip>>>;
|
|
305
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
Anthropic: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
thinkingBudgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
}, z.core.$strip>>>;
|
|
312
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, z.core.$strip>>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
telemetryEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
kanbanEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
mcpMarketplaceEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
318
|
+
allowedMCPServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
}, z.core.$strip>>>;
|
|
321
|
+
remoteMCPServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
url: z.ZodString;
|
|
324
|
+
alwaysEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
326
|
+
}, z.core.$strip>>>;
|
|
327
|
+
blockPersonalRemoteMCPServers: z.ZodOptional<z.ZodBoolean>;
|
|
328
|
+
yoloModeAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
329
|
+
openTelemetryEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
openTelemetryMetricsExporter: z.ZodOptional<z.ZodString>;
|
|
331
|
+
openTelemetryLogsExporter: z.ZodOptional<z.ZodString>;
|
|
332
|
+
openTelemetryOtlpProtocol: z.ZodOptional<z.ZodString>;
|
|
333
|
+
openTelemetryOtlpEndpoint: z.ZodOptional<z.ZodString>;
|
|
334
|
+
openTelemetryOtlpHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
335
|
+
openTelemetryOtlpMetricsProtocol: z.ZodOptional<z.ZodString>;
|
|
336
|
+
openTelemetryOtlpMetricsEndpoint: z.ZodOptional<z.ZodString>;
|
|
337
|
+
openTelemetryOtlpMetricsHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
338
|
+
openTelemetryOtlpLogsProtocol: z.ZodOptional<z.ZodString>;
|
|
339
|
+
openTelemetryOtlpLogsEndpoint: z.ZodOptional<z.ZodString>;
|
|
340
|
+
openTelemetryOtlpLogsHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
341
|
+
openTelemetryMetricExportInterval: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
openTelemetryOtlpInsecure: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
openTelemetryLogBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
openTelemetryLogBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
openTelemetryLogMaxQueueSize: z.ZodOptional<z.ZodNumber>;
|
|
346
|
+
enterpriseTelemetry: z.ZodOptional<z.ZodObject<{
|
|
347
|
+
promptUploading: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"s3_access_keys">, z.ZodLiteral<"r2_access_keys">, z.ZodLiteral<"azure_access_keys">]>>;
|
|
350
|
+
s3AccessSettings: z.ZodOptional<z.ZodObject<{
|
|
351
|
+
bucket: z.ZodString;
|
|
352
|
+
accessKeyId: z.ZodString;
|
|
353
|
+
secretAccessKey: z.ZodString;
|
|
354
|
+
region: z.ZodOptional<z.ZodString>;
|
|
355
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
356
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.core.$strip>>;
|
|
358
|
+
r2AccessSettings: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
bucket: z.ZodString;
|
|
360
|
+
accessKeyId: z.ZodString;
|
|
361
|
+
secretAccessKey: z.ZodString;
|
|
362
|
+
region: z.ZodOptional<z.ZodString>;
|
|
363
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
364
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
azureAccessSettings: z.ZodOptional<z.ZodObject<{
|
|
367
|
+
bucket: z.ZodString;
|
|
368
|
+
accessKeyId: z.ZodString;
|
|
369
|
+
secretAccessKey: z.ZodString;
|
|
370
|
+
region: z.ZodOptional<z.ZodString>;
|
|
371
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
372
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
}, z.core.$strip>>;
|
|
376
|
+
globalRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
377
|
+
alwaysEnabled: z.ZodBoolean;
|
|
378
|
+
name: z.ZodString;
|
|
379
|
+
contents: z.ZodString;
|
|
380
|
+
}, z.core.$strip>>>;
|
|
381
|
+
globalWorkflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
|
+
alwaysEnabled: z.ZodBoolean;
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
contents: z.ZodString;
|
|
385
|
+
}, z.core.$strip>>>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
export declare const APIKeySchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
388
|
+
export type RemoteConfig = z.infer<typeof RemoteConfigSchema>;
|
|
389
|
+
export type MCPServer = z.infer<typeof AllowedMCPServerSchema>;
|
|
390
|
+
export type RemoteMCPServer = z.infer<typeof RemoteMCPServerSchema>;
|
|
391
|
+
export type GlobalInstructionsFile = z.infer<typeof GlobalInstructionsFileSchema>;
|
|
392
|
+
export type ProviderSettings = z.infer<typeof ProviderSettingsSchema>;
|
|
393
|
+
export type OpenAiCompatible = z.infer<typeof OpenAiCompatibleSchema>;
|
|
394
|
+
export type OpenAiCompatibleModel = z.infer<typeof OpenAiCompatibleModelSchema>;
|
|
395
|
+
export type AwsBedrockSettings = z.infer<typeof AwsBedrockSettingsSchema>;
|
|
396
|
+
export type AwsBedrockModel = z.infer<typeof AwsBedrockModelSchema>;
|
|
397
|
+
export type AwsBedrockCustomModel = z.infer<typeof AwsBedrockCustomModelSchema>;
|
|
398
|
+
export type VertexSettings = z.infer<typeof VertexSettingsSchema>;
|
|
399
|
+
export type VertexModel = z.infer<typeof VertexModelSchema>;
|
|
400
|
+
export type LiteLLMSettings = z.infer<typeof LiteLLMSchema>;
|
|
401
|
+
export type LiteLLMModel = z.infer<typeof LiteLLMModelSchema>;
|
|
402
|
+
export type AnthropicSettings = z.infer<typeof AnthropicSchema>;
|
|
403
|
+
export type AnthropicModel = z.infer<typeof AnthropicModelSchema>;
|
|
404
|
+
export type APIKeySettings = z.infer<typeof APIKeySchema>;
|
|
405
|
+
export type EnterpriseTelemetry = z.infer<typeof EnterpriseTelemetrySchema>;
|
|
406
|
+
export type PromptUploading = z.infer<typeof PromptUploadingSchema>;
|
|
407
|
+
export type S3AccessKeySettings = z.infer<typeof S3AccessKeySettingsSchema>;
|
|
408
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenTelemetryClientConfig } from "../services/telemetry";
|
|
2
|
+
import type { RemoteConfigBundle, RemoteConfigSyncContext, RemoteConfigTelemetryAdapter } from "./bundle";
|
|
3
|
+
import type { RemoteConfig } from "./schema";
|
|
4
|
+
export declare function resolveOpenTelemetryConfigFromRemoteConfig(remoteConfig: RemoteConfig | undefined): Partial<OpenTelemetryClientConfig> | undefined;
|
|
5
|
+
export declare function normalizeBundleTelemetry(telemetry: Record<string, unknown> | undefined): Partial<OpenTelemetryClientConfig> | undefined;
|
|
6
|
+
export declare class DefaultRemoteConfigTelemetryAdapter implements RemoteConfigTelemetryAdapter {
|
|
7
|
+
name: string;
|
|
8
|
+
resolveTelemetry(bundle: RemoteConfigBundle, _context: RemoteConfigSyncContext): Partial<OpenTelemetryClientConfig> | undefined;
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const CLINE_HUB_PORT = 25463;
|
|
2
|
+
export declare const CLINE_HUB_DEV_PORT = 25466;
|
|
3
|
+
export declare const CLINE_DEFAULT_RPC_PORT = 4317;
|
|
4
|
+
export declare const RPC_ADDRESS_BASE = "127.0.0.1";
|
|
5
|
+
export declare const CLINE_DEFAULT_RPC_ADDRESS = "127.0.0.1:4317";
|