@roo-code/types 1.19.0 → 1.21.0
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/index.cjs +476 -441
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +334 -2
- package/dist/index.d.ts +334 -2
- package/dist/index.js +473 -441
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
GLOBAL_STATE_KEYS: () => GLOBAL_STATE_KEYS,
|
|
25
25
|
IpcMessageType: () => IpcMessageType,
|
|
26
26
|
IpcOrigin: () => IpcOrigin,
|
|
27
|
+
ORGANIZATION_ALLOW_ALL: () => ORGANIZATION_ALLOW_ALL,
|
|
27
28
|
PROVIDER_SETTINGS_KEYS: () => PROVIDER_SETTINGS_KEYS,
|
|
28
29
|
RooCodeEventName: () => RooCodeEventName,
|
|
29
30
|
SECRET_STATE_KEYS: () => SECRET_STATE_KEYS,
|
|
@@ -65,6 +66,8 @@ __export(index_exports, {
|
|
|
65
66
|
modelInfoSchema: () => modelInfoSchema,
|
|
66
67
|
modelParameters: () => modelParameters,
|
|
67
68
|
modelParametersSchema: () => modelParametersSchema,
|
|
69
|
+
organizationAllowListSchema: () => organizationAllowListSchema,
|
|
70
|
+
organizationSettingsSchema: () => organizationSettingsSchema,
|
|
68
71
|
promptComponentSchema: () => promptComponentSchema,
|
|
69
72
|
providerNames: () => providerNames,
|
|
70
73
|
providerNamesSchema: () => providerNamesSchema,
|
|
@@ -111,17 +114,45 @@ var codebaseIndexProviderSchema = import_zod.z.object({
|
|
|
111
114
|
codeIndexQdrantApiKey: import_zod.z.string().optional()
|
|
112
115
|
});
|
|
113
116
|
|
|
114
|
-
// src/
|
|
117
|
+
// src/cloud.ts
|
|
115
118
|
var import_zod2 = require("zod");
|
|
119
|
+
var organizationAllowListSchema = import_zod2.z.object({
|
|
120
|
+
allowAll: import_zod2.z.boolean(),
|
|
121
|
+
providers: import_zod2.z.record(
|
|
122
|
+
import_zod2.z.object({
|
|
123
|
+
allowAll: import_zod2.z.boolean(),
|
|
124
|
+
models: import_zod2.z.array(import_zod2.z.string()).optional()
|
|
125
|
+
})
|
|
126
|
+
)
|
|
127
|
+
});
|
|
128
|
+
var ORGANIZATION_ALLOW_ALL = {
|
|
129
|
+
allowAll: true,
|
|
130
|
+
providers: {}
|
|
131
|
+
};
|
|
132
|
+
var organizationSettingsSchema = import_zod2.z.object({
|
|
133
|
+
version: import_zod2.z.number(),
|
|
134
|
+
defaultSettings: import_zod2.z.object({
|
|
135
|
+
enableCheckpoints: import_zod2.z.boolean().optional(),
|
|
136
|
+
maxOpenTabsContext: import_zod2.z.number().optional(),
|
|
137
|
+
maxWorkspaceFiles: import_zod2.z.number().optional(),
|
|
138
|
+
showRooIgnoredFiles: import_zod2.z.boolean().optional(),
|
|
139
|
+
maxReadFileLine: import_zod2.z.number().optional(),
|
|
140
|
+
fuzzyMatchThreshold: import_zod2.z.number().optional()
|
|
141
|
+
}).optional(),
|
|
142
|
+
allowList: organizationAllowListSchema
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// src/experiment.ts
|
|
146
|
+
var import_zod3 = require("zod");
|
|
116
147
|
var experimentIds = ["autoCondenseContext", "powerSteering"];
|
|
117
|
-
var experimentIdsSchema =
|
|
118
|
-
var experimentsSchema =
|
|
119
|
-
autoCondenseContext:
|
|
120
|
-
powerSteering:
|
|
148
|
+
var experimentIdsSchema = import_zod3.z.enum(experimentIds);
|
|
149
|
+
var experimentsSchema = import_zod3.z.object({
|
|
150
|
+
autoCondenseContext: import_zod3.z.boolean(),
|
|
151
|
+
powerSteering: import_zod3.z.boolean()
|
|
121
152
|
});
|
|
122
153
|
|
|
123
154
|
// src/global-settings.ts
|
|
124
|
-
var
|
|
155
|
+
var import_zod12 = require("zod");
|
|
125
156
|
|
|
126
157
|
// src/type-fu.ts
|
|
127
158
|
function keysOf() {
|
|
@@ -129,42 +160,42 @@ function keysOf() {
|
|
|
129
160
|
}
|
|
130
161
|
|
|
131
162
|
// src/provider-settings.ts
|
|
132
|
-
var
|
|
163
|
+
var import_zod5 = require("zod");
|
|
133
164
|
|
|
134
165
|
// src/model.ts
|
|
135
|
-
var
|
|
166
|
+
var import_zod4 = require("zod");
|
|
136
167
|
var reasoningEfforts = ["low", "medium", "high"];
|
|
137
|
-
var reasoningEffortsSchema =
|
|
168
|
+
var reasoningEffortsSchema = import_zod4.z.enum(reasoningEfforts);
|
|
138
169
|
var modelParameters = ["max_tokens", "temperature", "reasoning", "include_reasoning"];
|
|
139
|
-
var modelParametersSchema =
|
|
170
|
+
var modelParametersSchema = import_zod4.z.enum(modelParameters);
|
|
140
171
|
var isModelParameter = (value) => modelParameters.includes(value);
|
|
141
|
-
var modelInfoSchema =
|
|
142
|
-
maxTokens:
|
|
143
|
-
maxThinkingTokens:
|
|
144
|
-
contextWindow:
|
|
145
|
-
supportsImages:
|
|
146
|
-
supportsComputerUse:
|
|
147
|
-
supportsPromptCache:
|
|
148
|
-
supportsReasoningBudget:
|
|
149
|
-
requiredReasoningBudget:
|
|
150
|
-
supportsReasoningEffort:
|
|
151
|
-
supportedParameters:
|
|
152
|
-
inputPrice:
|
|
153
|
-
outputPrice:
|
|
154
|
-
cacheWritesPrice:
|
|
155
|
-
cacheReadsPrice:
|
|
156
|
-
description:
|
|
172
|
+
var modelInfoSchema = import_zod4.z.object({
|
|
173
|
+
maxTokens: import_zod4.z.number().nullish(),
|
|
174
|
+
maxThinkingTokens: import_zod4.z.number().nullish(),
|
|
175
|
+
contextWindow: import_zod4.z.number(),
|
|
176
|
+
supportsImages: import_zod4.z.boolean().optional(),
|
|
177
|
+
supportsComputerUse: import_zod4.z.boolean().optional(),
|
|
178
|
+
supportsPromptCache: import_zod4.z.boolean(),
|
|
179
|
+
supportsReasoningBudget: import_zod4.z.boolean().optional(),
|
|
180
|
+
requiredReasoningBudget: import_zod4.z.boolean().optional(),
|
|
181
|
+
supportsReasoningEffort: import_zod4.z.boolean().optional(),
|
|
182
|
+
supportedParameters: import_zod4.z.array(modelParametersSchema).optional(),
|
|
183
|
+
inputPrice: import_zod4.z.number().optional(),
|
|
184
|
+
outputPrice: import_zod4.z.number().optional(),
|
|
185
|
+
cacheWritesPrice: import_zod4.z.number().optional(),
|
|
186
|
+
cacheReadsPrice: import_zod4.z.number().optional(),
|
|
187
|
+
description: import_zod4.z.string().optional(),
|
|
157
188
|
reasoningEffort: reasoningEffortsSchema.optional(),
|
|
158
|
-
minTokensPerCachePoint:
|
|
159
|
-
maxCachePoints:
|
|
160
|
-
cachableFields:
|
|
161
|
-
tiers:
|
|
162
|
-
|
|
163
|
-
contextWindow:
|
|
164
|
-
inputPrice:
|
|
165
|
-
outputPrice:
|
|
166
|
-
cacheWritesPrice:
|
|
167
|
-
cacheReadsPrice:
|
|
189
|
+
minTokensPerCachePoint: import_zod4.z.number().optional(),
|
|
190
|
+
maxCachePoints: import_zod4.z.number().optional(),
|
|
191
|
+
cachableFields: import_zod4.z.array(import_zod4.z.string()).optional(),
|
|
192
|
+
tiers: import_zod4.z.array(
|
|
193
|
+
import_zod4.z.object({
|
|
194
|
+
contextWindow: import_zod4.z.number(),
|
|
195
|
+
inputPrice: import_zod4.z.number().optional(),
|
|
196
|
+
outputPrice: import_zod4.z.number().optional(),
|
|
197
|
+
cacheWritesPrice: import_zod4.z.number().optional(),
|
|
198
|
+
cacheReadsPrice: import_zod4.z.number().optional()
|
|
168
199
|
})
|
|
169
200
|
).optional()
|
|
170
201
|
});
|
|
@@ -193,162 +224,162 @@ var providerNames = [
|
|
|
193
224
|
"chutes",
|
|
194
225
|
"litellm"
|
|
195
226
|
];
|
|
196
|
-
var providerNamesSchema =
|
|
197
|
-
var providerSettingsEntrySchema =
|
|
198
|
-
id:
|
|
199
|
-
name:
|
|
227
|
+
var providerNamesSchema = import_zod5.z.enum(providerNames);
|
|
228
|
+
var providerSettingsEntrySchema = import_zod5.z.object({
|
|
229
|
+
id: import_zod5.z.string(),
|
|
230
|
+
name: import_zod5.z.string(),
|
|
200
231
|
apiProvider: providerNamesSchema.optional()
|
|
201
232
|
});
|
|
202
|
-
var baseProviderSettingsSchema =
|
|
203
|
-
includeMaxTokens:
|
|
204
|
-
diffEnabled:
|
|
205
|
-
fuzzyMatchThreshold:
|
|
206
|
-
modelTemperature:
|
|
207
|
-
rateLimitSeconds:
|
|
233
|
+
var baseProviderSettingsSchema = import_zod5.z.object({
|
|
234
|
+
includeMaxTokens: import_zod5.z.boolean().optional(),
|
|
235
|
+
diffEnabled: import_zod5.z.boolean().optional(),
|
|
236
|
+
fuzzyMatchThreshold: import_zod5.z.number().optional(),
|
|
237
|
+
modelTemperature: import_zod5.z.number().nullish(),
|
|
238
|
+
rateLimitSeconds: import_zod5.z.number().optional(),
|
|
208
239
|
// Model reasoning.
|
|
209
|
-
enableReasoningEffort:
|
|
240
|
+
enableReasoningEffort: import_zod5.z.boolean().optional(),
|
|
210
241
|
reasoningEffort: reasoningEffortsSchema.optional(),
|
|
211
|
-
modelMaxTokens:
|
|
212
|
-
modelMaxThinkingTokens:
|
|
242
|
+
modelMaxTokens: import_zod5.z.number().optional(),
|
|
243
|
+
modelMaxThinkingTokens: import_zod5.z.number().optional()
|
|
213
244
|
});
|
|
214
245
|
var apiModelIdProviderModelSchema = baseProviderSettingsSchema.extend({
|
|
215
|
-
apiModelId:
|
|
246
|
+
apiModelId: import_zod5.z.string().optional()
|
|
216
247
|
});
|
|
217
248
|
var anthropicSchema = apiModelIdProviderModelSchema.extend({
|
|
218
|
-
apiKey:
|
|
219
|
-
anthropicBaseUrl:
|
|
220
|
-
anthropicUseAuthToken:
|
|
249
|
+
apiKey: import_zod5.z.string().optional(),
|
|
250
|
+
anthropicBaseUrl: import_zod5.z.string().optional(),
|
|
251
|
+
anthropicUseAuthToken: import_zod5.z.boolean().optional()
|
|
221
252
|
});
|
|
222
253
|
var glamaSchema = baseProviderSettingsSchema.extend({
|
|
223
|
-
glamaModelId:
|
|
224
|
-
glamaApiKey:
|
|
254
|
+
glamaModelId: import_zod5.z.string().optional(),
|
|
255
|
+
glamaApiKey: import_zod5.z.string().optional()
|
|
225
256
|
});
|
|
226
257
|
var openRouterSchema = baseProviderSettingsSchema.extend({
|
|
227
|
-
openRouterApiKey:
|
|
228
|
-
openRouterModelId:
|
|
229
|
-
openRouterBaseUrl:
|
|
230
|
-
openRouterSpecificProvider:
|
|
231
|
-
openRouterUseMiddleOutTransform:
|
|
258
|
+
openRouterApiKey: import_zod5.z.string().optional(),
|
|
259
|
+
openRouterModelId: import_zod5.z.string().optional(),
|
|
260
|
+
openRouterBaseUrl: import_zod5.z.string().optional(),
|
|
261
|
+
openRouterSpecificProvider: import_zod5.z.string().optional(),
|
|
262
|
+
openRouterUseMiddleOutTransform: import_zod5.z.boolean().optional()
|
|
232
263
|
});
|
|
233
264
|
var bedrockSchema = apiModelIdProviderModelSchema.extend({
|
|
234
|
-
awsAccessKey:
|
|
235
|
-
awsSecretKey:
|
|
236
|
-
awsSessionToken:
|
|
237
|
-
awsRegion:
|
|
238
|
-
awsUseCrossRegionInference:
|
|
239
|
-
awsUsePromptCache:
|
|
240
|
-
awsProfile:
|
|
241
|
-
awsUseProfile:
|
|
242
|
-
awsCustomArn:
|
|
265
|
+
awsAccessKey: import_zod5.z.string().optional(),
|
|
266
|
+
awsSecretKey: import_zod5.z.string().optional(),
|
|
267
|
+
awsSessionToken: import_zod5.z.string().optional(),
|
|
268
|
+
awsRegion: import_zod5.z.string().optional(),
|
|
269
|
+
awsUseCrossRegionInference: import_zod5.z.boolean().optional(),
|
|
270
|
+
awsUsePromptCache: import_zod5.z.boolean().optional(),
|
|
271
|
+
awsProfile: import_zod5.z.string().optional(),
|
|
272
|
+
awsUseProfile: import_zod5.z.boolean().optional(),
|
|
273
|
+
awsCustomArn: import_zod5.z.string().optional()
|
|
243
274
|
});
|
|
244
275
|
var vertexSchema = apiModelIdProviderModelSchema.extend({
|
|
245
|
-
vertexKeyFile:
|
|
246
|
-
vertexJsonCredentials:
|
|
247
|
-
vertexProjectId:
|
|
248
|
-
vertexRegion:
|
|
276
|
+
vertexKeyFile: import_zod5.z.string().optional(),
|
|
277
|
+
vertexJsonCredentials: import_zod5.z.string().optional(),
|
|
278
|
+
vertexProjectId: import_zod5.z.string().optional(),
|
|
279
|
+
vertexRegion: import_zod5.z.string().optional()
|
|
249
280
|
});
|
|
250
281
|
var openAiSchema = baseProviderSettingsSchema.extend({
|
|
251
|
-
openAiBaseUrl:
|
|
252
|
-
openAiApiKey:
|
|
253
|
-
openAiLegacyFormat:
|
|
254
|
-
openAiR1FormatEnabled:
|
|
255
|
-
openAiModelId:
|
|
282
|
+
openAiBaseUrl: import_zod5.z.string().optional(),
|
|
283
|
+
openAiApiKey: import_zod5.z.string().optional(),
|
|
284
|
+
openAiLegacyFormat: import_zod5.z.boolean().optional(),
|
|
285
|
+
openAiR1FormatEnabled: import_zod5.z.boolean().optional(),
|
|
286
|
+
openAiModelId: import_zod5.z.string().optional(),
|
|
256
287
|
openAiCustomModelInfo: modelInfoSchema.nullish(),
|
|
257
|
-
openAiUseAzure:
|
|
258
|
-
azureApiVersion:
|
|
259
|
-
openAiStreamingEnabled:
|
|
260
|
-
openAiHostHeader:
|
|
288
|
+
openAiUseAzure: import_zod5.z.boolean().optional(),
|
|
289
|
+
azureApiVersion: import_zod5.z.string().optional(),
|
|
290
|
+
openAiStreamingEnabled: import_zod5.z.boolean().optional(),
|
|
291
|
+
openAiHostHeader: import_zod5.z.string().optional(),
|
|
261
292
|
// Keep temporarily for backward compatibility during migration.
|
|
262
|
-
openAiHeaders:
|
|
293
|
+
openAiHeaders: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.string()).optional()
|
|
263
294
|
});
|
|
264
295
|
var ollamaSchema = baseProviderSettingsSchema.extend({
|
|
265
|
-
ollamaModelId:
|
|
266
|
-
ollamaBaseUrl:
|
|
296
|
+
ollamaModelId: import_zod5.z.string().optional(),
|
|
297
|
+
ollamaBaseUrl: import_zod5.z.string().optional()
|
|
267
298
|
});
|
|
268
299
|
var vsCodeLmSchema = baseProviderSettingsSchema.extend({
|
|
269
|
-
vsCodeLmModelSelector:
|
|
270
|
-
vendor:
|
|
271
|
-
family:
|
|
272
|
-
version:
|
|
273
|
-
id:
|
|
300
|
+
vsCodeLmModelSelector: import_zod5.z.object({
|
|
301
|
+
vendor: import_zod5.z.string().optional(),
|
|
302
|
+
family: import_zod5.z.string().optional(),
|
|
303
|
+
version: import_zod5.z.string().optional(),
|
|
304
|
+
id: import_zod5.z.string().optional()
|
|
274
305
|
}).optional()
|
|
275
306
|
});
|
|
276
307
|
var lmStudioSchema = baseProviderSettingsSchema.extend({
|
|
277
|
-
lmStudioModelId:
|
|
278
|
-
lmStudioBaseUrl:
|
|
279
|
-
lmStudioDraftModelId:
|
|
280
|
-
lmStudioSpeculativeDecodingEnabled:
|
|
308
|
+
lmStudioModelId: import_zod5.z.string().optional(),
|
|
309
|
+
lmStudioBaseUrl: import_zod5.z.string().optional(),
|
|
310
|
+
lmStudioDraftModelId: import_zod5.z.string().optional(),
|
|
311
|
+
lmStudioSpeculativeDecodingEnabled: import_zod5.z.boolean().optional()
|
|
281
312
|
});
|
|
282
313
|
var geminiSchema = apiModelIdProviderModelSchema.extend({
|
|
283
|
-
geminiApiKey:
|
|
284
|
-
googleGeminiBaseUrl:
|
|
314
|
+
geminiApiKey: import_zod5.z.string().optional(),
|
|
315
|
+
googleGeminiBaseUrl: import_zod5.z.string().optional()
|
|
285
316
|
});
|
|
286
317
|
var openAiNativeSchema = apiModelIdProviderModelSchema.extend({
|
|
287
|
-
openAiNativeApiKey:
|
|
288
|
-
openAiNativeBaseUrl:
|
|
318
|
+
openAiNativeApiKey: import_zod5.z.string().optional(),
|
|
319
|
+
openAiNativeBaseUrl: import_zod5.z.string().optional()
|
|
289
320
|
});
|
|
290
321
|
var mistralSchema = apiModelIdProviderModelSchema.extend({
|
|
291
|
-
mistralApiKey:
|
|
292
|
-
mistralCodestralUrl:
|
|
322
|
+
mistralApiKey: import_zod5.z.string().optional(),
|
|
323
|
+
mistralCodestralUrl: import_zod5.z.string().optional()
|
|
293
324
|
});
|
|
294
325
|
var deepSeekSchema = apiModelIdProviderModelSchema.extend({
|
|
295
|
-
deepSeekBaseUrl:
|
|
296
|
-
deepSeekApiKey:
|
|
326
|
+
deepSeekBaseUrl: import_zod5.z.string().optional(),
|
|
327
|
+
deepSeekApiKey: import_zod5.z.string().optional()
|
|
297
328
|
});
|
|
298
329
|
var unboundSchema = baseProviderSettingsSchema.extend({
|
|
299
|
-
unboundApiKey:
|
|
300
|
-
unboundModelId:
|
|
330
|
+
unboundApiKey: import_zod5.z.string().optional(),
|
|
331
|
+
unboundModelId: import_zod5.z.string().optional()
|
|
301
332
|
});
|
|
302
333
|
var requestySchema = baseProviderSettingsSchema.extend({
|
|
303
|
-
requestyApiKey:
|
|
304
|
-
requestyModelId:
|
|
334
|
+
requestyApiKey: import_zod5.z.string().optional(),
|
|
335
|
+
requestyModelId: import_zod5.z.string().optional()
|
|
305
336
|
});
|
|
306
337
|
var humanRelaySchema = baseProviderSettingsSchema;
|
|
307
338
|
var fakeAiSchema = baseProviderSettingsSchema.extend({
|
|
308
|
-
fakeAi:
|
|
339
|
+
fakeAi: import_zod5.z.unknown().optional()
|
|
309
340
|
});
|
|
310
341
|
var xaiSchema = apiModelIdProviderModelSchema.extend({
|
|
311
|
-
xaiApiKey:
|
|
342
|
+
xaiApiKey: import_zod5.z.string().optional()
|
|
312
343
|
});
|
|
313
344
|
var groqSchema = apiModelIdProviderModelSchema.extend({
|
|
314
|
-
groqApiKey:
|
|
345
|
+
groqApiKey: import_zod5.z.string().optional()
|
|
315
346
|
});
|
|
316
347
|
var chutesSchema = apiModelIdProviderModelSchema.extend({
|
|
317
|
-
chutesApiKey:
|
|
348
|
+
chutesApiKey: import_zod5.z.string().optional()
|
|
318
349
|
});
|
|
319
350
|
var litellmSchema = baseProviderSettingsSchema.extend({
|
|
320
|
-
litellmBaseUrl:
|
|
321
|
-
litellmApiKey:
|
|
322
|
-
litellmModelId:
|
|
351
|
+
litellmBaseUrl: import_zod5.z.string().optional(),
|
|
352
|
+
litellmApiKey: import_zod5.z.string().optional(),
|
|
353
|
+
litellmModelId: import_zod5.z.string().optional()
|
|
323
354
|
});
|
|
324
|
-
var defaultSchema =
|
|
325
|
-
apiProvider:
|
|
355
|
+
var defaultSchema = import_zod5.z.object({
|
|
356
|
+
apiProvider: import_zod5.z.undefined()
|
|
326
357
|
});
|
|
327
|
-
var providerSettingsSchemaDiscriminated =
|
|
328
|
-
anthropicSchema.merge(
|
|
329
|
-
glamaSchema.merge(
|
|
330
|
-
openRouterSchema.merge(
|
|
331
|
-
bedrockSchema.merge(
|
|
332
|
-
vertexSchema.merge(
|
|
333
|
-
openAiSchema.merge(
|
|
334
|
-
ollamaSchema.merge(
|
|
335
|
-
vsCodeLmSchema.merge(
|
|
336
|
-
lmStudioSchema.merge(
|
|
337
|
-
geminiSchema.merge(
|
|
338
|
-
openAiNativeSchema.merge(
|
|
339
|
-
mistralSchema.merge(
|
|
340
|
-
deepSeekSchema.merge(
|
|
341
|
-
unboundSchema.merge(
|
|
342
|
-
requestySchema.merge(
|
|
343
|
-
humanRelaySchema.merge(
|
|
344
|
-
fakeAiSchema.merge(
|
|
345
|
-
xaiSchema.merge(
|
|
346
|
-
groqSchema.merge(
|
|
347
|
-
chutesSchema.merge(
|
|
348
|
-
litellmSchema.merge(
|
|
358
|
+
var providerSettingsSchemaDiscriminated = import_zod5.z.discriminatedUnion("apiProvider", [
|
|
359
|
+
anthropicSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("anthropic") })),
|
|
360
|
+
glamaSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("glama") })),
|
|
361
|
+
openRouterSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("openrouter") })),
|
|
362
|
+
bedrockSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("bedrock") })),
|
|
363
|
+
vertexSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("vertex") })),
|
|
364
|
+
openAiSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("openai") })),
|
|
365
|
+
ollamaSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("ollama") })),
|
|
366
|
+
vsCodeLmSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("vscode-lm") })),
|
|
367
|
+
lmStudioSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("lmstudio") })),
|
|
368
|
+
geminiSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("gemini") })),
|
|
369
|
+
openAiNativeSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("openai-native") })),
|
|
370
|
+
mistralSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("mistral") })),
|
|
371
|
+
deepSeekSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("deepseek") })),
|
|
372
|
+
unboundSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("unbound") })),
|
|
373
|
+
requestySchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("requesty") })),
|
|
374
|
+
humanRelaySchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("human-relay") })),
|
|
375
|
+
fakeAiSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("fake-ai") })),
|
|
376
|
+
xaiSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("xai") })),
|
|
377
|
+
groqSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("groq") })),
|
|
378
|
+
chutesSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("chutes") })),
|
|
379
|
+
litellmSchema.merge(import_zod5.z.object({ apiProvider: import_zod5.z.literal("litellm") })),
|
|
349
380
|
defaultSchema
|
|
350
381
|
]);
|
|
351
|
-
var providerSettingsSchema =
|
|
382
|
+
var providerSettingsSchema = import_zod5.z.object({
|
|
352
383
|
apiProvider: providerNamesSchema.optional(),
|
|
353
384
|
...anthropicSchema.shape,
|
|
354
385
|
...glamaSchema.shape,
|
|
@@ -473,29 +504,108 @@ var PROVIDER_SETTINGS_KEYS = keysOf()([
|
|
|
473
504
|
]);
|
|
474
505
|
|
|
475
506
|
// src/history.ts
|
|
476
|
-
var
|
|
477
|
-
var historyItemSchema =
|
|
478
|
-
id:
|
|
479
|
-
number:
|
|
480
|
-
ts:
|
|
481
|
-
task:
|
|
482
|
-
tokensIn:
|
|
483
|
-
tokensOut:
|
|
484
|
-
cacheWrites:
|
|
485
|
-
cacheReads:
|
|
486
|
-
totalCost:
|
|
487
|
-
size:
|
|
488
|
-
workspace:
|
|
507
|
+
var import_zod6 = require("zod");
|
|
508
|
+
var historyItemSchema = import_zod6.z.object({
|
|
509
|
+
id: import_zod6.z.string(),
|
|
510
|
+
number: import_zod6.z.number(),
|
|
511
|
+
ts: import_zod6.z.number(),
|
|
512
|
+
task: import_zod6.z.string(),
|
|
513
|
+
tokensIn: import_zod6.z.number(),
|
|
514
|
+
tokensOut: import_zod6.z.number(),
|
|
515
|
+
cacheWrites: import_zod6.z.number().optional(),
|
|
516
|
+
cacheReads: import_zod6.z.number().optional(),
|
|
517
|
+
totalCost: import_zod6.z.number(),
|
|
518
|
+
size: import_zod6.z.number().optional(),
|
|
519
|
+
workspace: import_zod6.z.string().optional()
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
// src/telemetry.ts
|
|
523
|
+
var import_zod8 = require("zod");
|
|
524
|
+
|
|
525
|
+
// src/message.ts
|
|
526
|
+
var import_zod7 = require("zod");
|
|
527
|
+
var clineAsks = [
|
|
528
|
+
"followup",
|
|
529
|
+
"command",
|
|
530
|
+
"command_output",
|
|
531
|
+
"completion_result",
|
|
532
|
+
"tool",
|
|
533
|
+
"api_req_failed",
|
|
534
|
+
"resume_task",
|
|
535
|
+
"resume_completed_task",
|
|
536
|
+
"mistake_limit_reached",
|
|
537
|
+
"browser_action_launch",
|
|
538
|
+
"use_mcp_server",
|
|
539
|
+
"auto_approval_max_req_reached"
|
|
540
|
+
];
|
|
541
|
+
var clineAskSchema = import_zod7.z.enum(clineAsks);
|
|
542
|
+
var clineSays = [
|
|
543
|
+
"error",
|
|
544
|
+
"api_req_started",
|
|
545
|
+
"api_req_finished",
|
|
546
|
+
"api_req_retried",
|
|
547
|
+
"api_req_retry_delayed",
|
|
548
|
+
"api_req_deleted",
|
|
549
|
+
"text",
|
|
550
|
+
"reasoning",
|
|
551
|
+
"completion_result",
|
|
552
|
+
"user_feedback",
|
|
553
|
+
"user_feedback_diff",
|
|
554
|
+
"command_output",
|
|
555
|
+
"shell_integration_warning",
|
|
556
|
+
"browser_action",
|
|
557
|
+
"browser_action_result",
|
|
558
|
+
"mcp_server_request_started",
|
|
559
|
+
"mcp_server_response",
|
|
560
|
+
"subtask_result",
|
|
561
|
+
"checkpoint_saved",
|
|
562
|
+
"rooignore_error",
|
|
563
|
+
"diff_error",
|
|
564
|
+
"condense_context",
|
|
565
|
+
"codebase_search_result"
|
|
566
|
+
];
|
|
567
|
+
var clineSaySchema = import_zod7.z.enum(clineSays);
|
|
568
|
+
var toolProgressStatusSchema = import_zod7.z.object({
|
|
569
|
+
icon: import_zod7.z.string().optional(),
|
|
570
|
+
text: import_zod7.z.string().optional()
|
|
571
|
+
});
|
|
572
|
+
var contextCondenseSchema = import_zod7.z.object({
|
|
573
|
+
cost: import_zod7.z.number(),
|
|
574
|
+
prevContextTokens: import_zod7.z.number(),
|
|
575
|
+
newContextTokens: import_zod7.z.number(),
|
|
576
|
+
summary: import_zod7.z.string()
|
|
577
|
+
});
|
|
578
|
+
var clineMessageSchema = import_zod7.z.object({
|
|
579
|
+
ts: import_zod7.z.number(),
|
|
580
|
+
type: import_zod7.z.union([import_zod7.z.literal("ask"), import_zod7.z.literal("say")]),
|
|
581
|
+
ask: clineAskSchema.optional(),
|
|
582
|
+
say: clineSaySchema.optional(),
|
|
583
|
+
text: import_zod7.z.string().optional(),
|
|
584
|
+
images: import_zod7.z.array(import_zod7.z.string()).optional(),
|
|
585
|
+
partial: import_zod7.z.boolean().optional(),
|
|
586
|
+
reasoning: import_zod7.z.string().optional(),
|
|
587
|
+
conversationHistoryIndex: import_zod7.z.number().optional(),
|
|
588
|
+
checkpoint: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()).optional(),
|
|
589
|
+
progressStatus: toolProgressStatusSchema.optional(),
|
|
590
|
+
contextCondense: contextCondenseSchema.optional()
|
|
591
|
+
});
|
|
592
|
+
var tokenUsageSchema = import_zod7.z.object({
|
|
593
|
+
totalTokensIn: import_zod7.z.number(),
|
|
594
|
+
totalTokensOut: import_zod7.z.number(),
|
|
595
|
+
totalCacheWrites: import_zod7.z.number().optional(),
|
|
596
|
+
totalCacheReads: import_zod7.z.number().optional(),
|
|
597
|
+
totalCost: import_zod7.z.number(),
|
|
598
|
+
contextTokens: import_zod7.z.number()
|
|
489
599
|
});
|
|
490
600
|
|
|
491
601
|
// src/telemetry.ts
|
|
492
|
-
var import_zod6 = require("zod");
|
|
493
602
|
var telemetrySettings = ["unset", "enabled", "disabled"];
|
|
494
|
-
var telemetrySettingsSchema =
|
|
603
|
+
var telemetrySettingsSchema = import_zod8.z.enum(telemetrySettings);
|
|
495
604
|
var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
496
605
|
TelemetryEventName2["TASK_CREATED"] = "Task Created";
|
|
497
606
|
TelemetryEventName2["TASK_RESTARTED"] = "Task Reopened";
|
|
498
607
|
TelemetryEventName2["TASK_COMPLETED"] = "Task Completed";
|
|
608
|
+
TelemetryEventName2["TASK_MESSAGE"] = "Task Message";
|
|
499
609
|
TelemetryEventName2["TASK_CONVERSATION_MESSAGE"] = "Conversation Message";
|
|
500
610
|
TelemetryEventName2["LLM_COMPLETION"] = "LLM Completion";
|
|
501
611
|
TelemetryEventName2["MODE_SWITCH"] = "Mode Switched";
|
|
@@ -515,35 +625,28 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
515
625
|
TelemetryEventName2["CONSECUTIVE_MISTAKE_ERROR"] = "Consecutive Mistake Error";
|
|
516
626
|
return TelemetryEventName2;
|
|
517
627
|
})(TelemetryEventName || {});
|
|
518
|
-
var appPropertiesSchema =
|
|
519
|
-
appVersion:
|
|
520
|
-
vscodeVersion:
|
|
521
|
-
platform:
|
|
522
|
-
editorName:
|
|
523
|
-
language:
|
|
524
|
-
mode:
|
|
628
|
+
var appPropertiesSchema = import_zod8.z.object({
|
|
629
|
+
appVersion: import_zod8.z.string(),
|
|
630
|
+
vscodeVersion: import_zod8.z.string(),
|
|
631
|
+
platform: import_zod8.z.string(),
|
|
632
|
+
editorName: import_zod8.z.string(),
|
|
633
|
+
language: import_zod8.z.string(),
|
|
634
|
+
mode: import_zod8.z.string()
|
|
525
635
|
});
|
|
526
|
-
var taskPropertiesSchema =
|
|
527
|
-
taskId:
|
|
528
|
-
apiProvider:
|
|
529
|
-
modelId:
|
|
530
|
-
diffStrategy:
|
|
531
|
-
isSubtask:
|
|
636
|
+
var taskPropertiesSchema = import_zod8.z.object({
|
|
637
|
+
taskId: import_zod8.z.string().optional(),
|
|
638
|
+
apiProvider: import_zod8.z.enum(providerNames).optional(),
|
|
639
|
+
modelId: import_zod8.z.string().optional(),
|
|
640
|
+
diffStrategy: import_zod8.z.string().optional(),
|
|
641
|
+
isSubtask: import_zod8.z.boolean().optional()
|
|
532
642
|
});
|
|
533
|
-
var telemetryPropertiesSchema =
|
|
643
|
+
var telemetryPropertiesSchema = import_zod8.z.object({
|
|
534
644
|
...appPropertiesSchema.shape,
|
|
535
645
|
...taskPropertiesSchema.shape
|
|
536
646
|
});
|
|
537
|
-
var
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
cacheReadTokens: import_zod6.z.number().optional(),
|
|
541
|
-
cacheWriteTokens: import_zod6.z.number().optional(),
|
|
542
|
-
cost: import_zod6.z.number().optional()
|
|
543
|
-
});
|
|
544
|
-
var rooCodeTelemetryEventSchema = import_zod6.z.discriminatedUnion("type", [
|
|
545
|
-
import_zod6.z.object({
|
|
546
|
-
type: import_zod6.z.enum([
|
|
647
|
+
var rooCodeTelemetryEventSchema = import_zod8.z.discriminatedUnion("type", [
|
|
648
|
+
import_zod8.z.object({
|
|
649
|
+
type: import_zod8.z.enum([
|
|
547
650
|
"Task Created" /* TASK_CREATED */,
|
|
548
651
|
"Task Reopened" /* TASK_RESTARTED */,
|
|
549
652
|
"Task Completed" /* TASK_COMPLETED */,
|
|
@@ -562,28 +665,34 @@ var rooCodeTelemetryEventSchema = import_zod6.z.discriminatedUnion("type", [
|
|
|
562
665
|
"Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
|
|
563
666
|
"Consecutive Mistake Error" /* CONSECUTIVE_MISTAKE_ERROR */
|
|
564
667
|
]),
|
|
565
|
-
properties:
|
|
566
|
-
|
|
567
|
-
|
|
668
|
+
properties: telemetryPropertiesSchema
|
|
669
|
+
}),
|
|
670
|
+
import_zod8.z.object({
|
|
671
|
+
type: import_zod8.z.literal("Task Message" /* TASK_MESSAGE */),
|
|
672
|
+
properties: import_zod8.z.object({
|
|
673
|
+
message: clineMessageSchema
|
|
568
674
|
})
|
|
569
675
|
}),
|
|
570
|
-
|
|
571
|
-
type:
|
|
572
|
-
properties:
|
|
573
|
-
...
|
|
574
|
-
|
|
575
|
-
|
|
676
|
+
import_zod8.z.object({
|
|
677
|
+
type: import_zod8.z.literal("LLM Completion" /* LLM_COMPLETION */),
|
|
678
|
+
properties: import_zod8.z.object({
|
|
679
|
+
...telemetryPropertiesSchema.shape,
|
|
680
|
+
inputTokens: import_zod8.z.number(),
|
|
681
|
+
outputTokens: import_zod8.z.number(),
|
|
682
|
+
cacheReadTokens: import_zod8.z.number().optional(),
|
|
683
|
+
cacheWriteTokens: import_zod8.z.number().optional(),
|
|
684
|
+
cost: import_zod8.z.number().optional()
|
|
576
685
|
})
|
|
577
686
|
})
|
|
578
687
|
]);
|
|
579
688
|
|
|
580
689
|
// src/mode.ts
|
|
581
|
-
var
|
|
690
|
+
var import_zod10 = require("zod");
|
|
582
691
|
|
|
583
692
|
// src/tool.ts
|
|
584
|
-
var
|
|
693
|
+
var import_zod9 = require("zod");
|
|
585
694
|
var toolGroups = ["read", "edit", "browser", "command", "mcp", "modes"];
|
|
586
|
-
var toolGroupsSchema =
|
|
695
|
+
var toolGroupsSchema = import_zod9.z.enum(toolGroups);
|
|
587
696
|
var toolNames = [
|
|
588
697
|
"execute_command",
|
|
589
698
|
"read_file",
|
|
@@ -604,18 +713,18 @@ var toolNames = [
|
|
|
604
713
|
"fetch_instructions",
|
|
605
714
|
"codebase_search"
|
|
606
715
|
];
|
|
607
|
-
var toolNamesSchema =
|
|
608
|
-
var toolUsageSchema =
|
|
716
|
+
var toolNamesSchema = import_zod9.z.enum(toolNames);
|
|
717
|
+
var toolUsageSchema = import_zod9.z.record(
|
|
609
718
|
toolNamesSchema,
|
|
610
|
-
|
|
611
|
-
attempts:
|
|
612
|
-
failures:
|
|
719
|
+
import_zod9.z.object({
|
|
720
|
+
attempts: import_zod9.z.number(),
|
|
721
|
+
failures: import_zod9.z.number()
|
|
613
722
|
})
|
|
614
723
|
);
|
|
615
724
|
|
|
616
725
|
// src/mode.ts
|
|
617
|
-
var groupOptionsSchema =
|
|
618
|
-
fileRegex:
|
|
726
|
+
var groupOptionsSchema = import_zod10.z.object({
|
|
727
|
+
fileRegex: import_zod10.z.string().optional().refine(
|
|
619
728
|
(pattern) => {
|
|
620
729
|
if (!pattern) {
|
|
621
730
|
return true;
|
|
@@ -629,10 +738,10 @@ var groupOptionsSchema = import_zod8.z.object({
|
|
|
629
738
|
},
|
|
630
739
|
{ message: "Invalid regular expression pattern" }
|
|
631
740
|
),
|
|
632
|
-
description:
|
|
741
|
+
description: import_zod10.z.string().optional()
|
|
633
742
|
});
|
|
634
|
-
var groupEntrySchema =
|
|
635
|
-
var groupEntryArraySchema =
|
|
743
|
+
var groupEntrySchema = import_zod10.z.union([toolGroupsSchema, import_zod10.z.tuple([toolGroupsSchema, groupOptionsSchema])]);
|
|
744
|
+
var groupEntryArraySchema = import_zod10.z.array(groupEntrySchema).refine(
|
|
636
745
|
(groups) => {
|
|
637
746
|
const seen = /* @__PURE__ */ new Set();
|
|
638
747
|
return groups.every((group) => {
|
|
@@ -646,17 +755,17 @@ var groupEntryArraySchema = import_zod8.z.array(groupEntrySchema).refine(
|
|
|
646
755
|
},
|
|
647
756
|
{ message: "Duplicate groups are not allowed" }
|
|
648
757
|
);
|
|
649
|
-
var modeConfigSchema =
|
|
650
|
-
slug:
|
|
651
|
-
name:
|
|
652
|
-
roleDefinition:
|
|
653
|
-
whenToUse:
|
|
654
|
-
customInstructions:
|
|
758
|
+
var modeConfigSchema = import_zod10.z.object({
|
|
759
|
+
slug: import_zod10.z.string().regex(/^[a-zA-Z0-9-]+$/, "Slug must contain only letters numbers and dashes"),
|
|
760
|
+
name: import_zod10.z.string().min(1, "Name is required"),
|
|
761
|
+
roleDefinition: import_zod10.z.string().min(1, "Role definition is required"),
|
|
762
|
+
whenToUse: import_zod10.z.string().optional(),
|
|
763
|
+
customInstructions: import_zod10.z.string().optional(),
|
|
655
764
|
groups: groupEntryArraySchema,
|
|
656
|
-
source:
|
|
765
|
+
source: import_zod10.z.enum(["global", "project"]).optional()
|
|
657
766
|
});
|
|
658
|
-
var customModesSettingsSchema =
|
|
659
|
-
customModes:
|
|
767
|
+
var customModesSettingsSchema = import_zod10.z.object({
|
|
768
|
+
customModes: import_zod10.z.array(modeConfigSchema).refine(
|
|
660
769
|
(modes) => {
|
|
661
770
|
const slugs = /* @__PURE__ */ new Set();
|
|
662
771
|
return modes.every((mode) => {
|
|
@@ -672,16 +781,16 @@ var customModesSettingsSchema = import_zod8.z.object({
|
|
|
672
781
|
}
|
|
673
782
|
)
|
|
674
783
|
});
|
|
675
|
-
var promptComponentSchema =
|
|
676
|
-
roleDefinition:
|
|
677
|
-
whenToUse:
|
|
678
|
-
customInstructions:
|
|
784
|
+
var promptComponentSchema = import_zod10.z.object({
|
|
785
|
+
roleDefinition: import_zod10.z.string().optional(),
|
|
786
|
+
whenToUse: import_zod10.z.string().optional(),
|
|
787
|
+
customInstructions: import_zod10.z.string().optional()
|
|
679
788
|
});
|
|
680
|
-
var customModePromptsSchema =
|
|
681
|
-
var customSupportPromptsSchema =
|
|
789
|
+
var customModePromptsSchema = import_zod10.z.record(import_zod10.z.string(), promptComponentSchema.optional());
|
|
790
|
+
var customSupportPromptsSchema = import_zod10.z.record(import_zod10.z.string(), import_zod10.z.string().optional());
|
|
682
791
|
|
|
683
792
|
// src/vscode.ts
|
|
684
|
-
var
|
|
793
|
+
var import_zod11 = require("zod");
|
|
685
794
|
var codeActionIds = ["explainCode", "fixCode", "improveCode", "addToContext", "newTask"];
|
|
686
795
|
var terminalActionIds = ["terminalAddToContext", "terminalFixCommand", "terminalExplainCommand"];
|
|
687
796
|
var commandIds = [
|
|
@@ -691,6 +800,7 @@ var commandIds = [
|
|
|
691
800
|
"mcpButtonClicked",
|
|
692
801
|
"historyButtonClicked",
|
|
693
802
|
"popoutButtonClicked",
|
|
803
|
+
"accountButtonClicked",
|
|
694
804
|
"settingsButtonClicked",
|
|
695
805
|
"openInNewTab",
|
|
696
806
|
"showHumanRelayDialog",
|
|
@@ -721,77 +831,77 @@ var languages = [
|
|
|
721
831
|
"zh-CN",
|
|
722
832
|
"zh-TW"
|
|
723
833
|
];
|
|
724
|
-
var languagesSchema =
|
|
834
|
+
var languagesSchema = import_zod11.z.enum(languages);
|
|
725
835
|
var isLanguage = (value) => languages.includes(value);
|
|
726
836
|
|
|
727
837
|
// src/global-settings.ts
|
|
728
|
-
var globalSettingsSchema =
|
|
729
|
-
currentApiConfigName:
|
|
730
|
-
listApiConfigMeta:
|
|
731
|
-
pinnedApiConfigs:
|
|
732
|
-
lastShownAnnouncementId:
|
|
733
|
-
customInstructions:
|
|
734
|
-
taskHistory:
|
|
735
|
-
condensingApiConfigId:
|
|
736
|
-
customCondensingPrompt:
|
|
737
|
-
autoApprovalEnabled:
|
|
738
|
-
alwaysAllowReadOnly:
|
|
739
|
-
alwaysAllowReadOnlyOutsideWorkspace:
|
|
740
|
-
alwaysAllowWrite:
|
|
741
|
-
alwaysAllowWriteOutsideWorkspace:
|
|
742
|
-
writeDelayMs:
|
|
743
|
-
alwaysAllowBrowser:
|
|
744
|
-
alwaysApproveResubmit:
|
|
745
|
-
requestDelaySeconds:
|
|
746
|
-
alwaysAllowMcp:
|
|
747
|
-
alwaysAllowModeSwitch:
|
|
748
|
-
alwaysAllowSubtasks:
|
|
749
|
-
alwaysAllowExecute:
|
|
750
|
-
allowedCommands:
|
|
751
|
-
allowedMaxRequests:
|
|
752
|
-
autoCondenseContextPercent:
|
|
753
|
-
browserToolEnabled:
|
|
754
|
-
browserViewportSize:
|
|
755
|
-
screenshotQuality:
|
|
756
|
-
remoteBrowserEnabled:
|
|
757
|
-
remoteBrowserHost:
|
|
758
|
-
cachedChromeHostUrl:
|
|
759
|
-
enableCheckpoints:
|
|
760
|
-
ttsEnabled:
|
|
761
|
-
ttsSpeed:
|
|
762
|
-
soundEnabled:
|
|
763
|
-
soundVolume:
|
|
764
|
-
maxOpenTabsContext:
|
|
765
|
-
maxWorkspaceFiles:
|
|
766
|
-
showRooIgnoredFiles:
|
|
767
|
-
maxReadFileLine:
|
|
768
|
-
terminalOutputLineLimit:
|
|
769
|
-
terminalShellIntegrationTimeout:
|
|
770
|
-
terminalShellIntegrationDisabled:
|
|
771
|
-
terminalCommandDelay:
|
|
772
|
-
terminalPowershellCounter:
|
|
773
|
-
terminalZshClearEolMark:
|
|
774
|
-
terminalZshOhMy:
|
|
775
|
-
terminalZshP10k:
|
|
776
|
-
terminalZdotdir:
|
|
777
|
-
terminalCompressProgressBar:
|
|
778
|
-
rateLimitSeconds:
|
|
779
|
-
diffEnabled:
|
|
780
|
-
fuzzyMatchThreshold:
|
|
838
|
+
var globalSettingsSchema = import_zod12.z.object({
|
|
839
|
+
currentApiConfigName: import_zod12.z.string().optional(),
|
|
840
|
+
listApiConfigMeta: import_zod12.z.array(providerSettingsEntrySchema).optional(),
|
|
841
|
+
pinnedApiConfigs: import_zod12.z.record(import_zod12.z.string(), import_zod12.z.boolean()).optional(),
|
|
842
|
+
lastShownAnnouncementId: import_zod12.z.string().optional(),
|
|
843
|
+
customInstructions: import_zod12.z.string().optional(),
|
|
844
|
+
taskHistory: import_zod12.z.array(historyItemSchema).optional(),
|
|
845
|
+
condensingApiConfigId: import_zod12.z.string().optional(),
|
|
846
|
+
customCondensingPrompt: import_zod12.z.string().optional(),
|
|
847
|
+
autoApprovalEnabled: import_zod12.z.boolean().optional(),
|
|
848
|
+
alwaysAllowReadOnly: import_zod12.z.boolean().optional(),
|
|
849
|
+
alwaysAllowReadOnlyOutsideWorkspace: import_zod12.z.boolean().optional(),
|
|
850
|
+
alwaysAllowWrite: import_zod12.z.boolean().optional(),
|
|
851
|
+
alwaysAllowWriteOutsideWorkspace: import_zod12.z.boolean().optional(),
|
|
852
|
+
writeDelayMs: import_zod12.z.number().optional(),
|
|
853
|
+
alwaysAllowBrowser: import_zod12.z.boolean().optional(),
|
|
854
|
+
alwaysApproveResubmit: import_zod12.z.boolean().optional(),
|
|
855
|
+
requestDelaySeconds: import_zod12.z.number().optional(),
|
|
856
|
+
alwaysAllowMcp: import_zod12.z.boolean().optional(),
|
|
857
|
+
alwaysAllowModeSwitch: import_zod12.z.boolean().optional(),
|
|
858
|
+
alwaysAllowSubtasks: import_zod12.z.boolean().optional(),
|
|
859
|
+
alwaysAllowExecute: import_zod12.z.boolean().optional(),
|
|
860
|
+
allowedCommands: import_zod12.z.array(import_zod12.z.string()).optional(),
|
|
861
|
+
allowedMaxRequests: import_zod12.z.number().nullish(),
|
|
862
|
+
autoCondenseContextPercent: import_zod12.z.number().optional(),
|
|
863
|
+
browserToolEnabled: import_zod12.z.boolean().optional(),
|
|
864
|
+
browserViewportSize: import_zod12.z.string().optional(),
|
|
865
|
+
screenshotQuality: import_zod12.z.number().optional(),
|
|
866
|
+
remoteBrowserEnabled: import_zod12.z.boolean().optional(),
|
|
867
|
+
remoteBrowserHost: import_zod12.z.string().optional(),
|
|
868
|
+
cachedChromeHostUrl: import_zod12.z.string().optional(),
|
|
869
|
+
enableCheckpoints: import_zod12.z.boolean().optional(),
|
|
870
|
+
ttsEnabled: import_zod12.z.boolean().optional(),
|
|
871
|
+
ttsSpeed: import_zod12.z.number().optional(),
|
|
872
|
+
soundEnabled: import_zod12.z.boolean().optional(),
|
|
873
|
+
soundVolume: import_zod12.z.number().optional(),
|
|
874
|
+
maxOpenTabsContext: import_zod12.z.number().optional(),
|
|
875
|
+
maxWorkspaceFiles: import_zod12.z.number().optional(),
|
|
876
|
+
showRooIgnoredFiles: import_zod12.z.boolean().optional(),
|
|
877
|
+
maxReadFileLine: import_zod12.z.number().optional(),
|
|
878
|
+
terminalOutputLineLimit: import_zod12.z.number().optional(),
|
|
879
|
+
terminalShellIntegrationTimeout: import_zod12.z.number().optional(),
|
|
880
|
+
terminalShellIntegrationDisabled: import_zod12.z.boolean().optional(),
|
|
881
|
+
terminalCommandDelay: import_zod12.z.number().optional(),
|
|
882
|
+
terminalPowershellCounter: import_zod12.z.boolean().optional(),
|
|
883
|
+
terminalZshClearEolMark: import_zod12.z.boolean().optional(),
|
|
884
|
+
terminalZshOhMy: import_zod12.z.boolean().optional(),
|
|
885
|
+
terminalZshP10k: import_zod12.z.boolean().optional(),
|
|
886
|
+
terminalZdotdir: import_zod12.z.boolean().optional(),
|
|
887
|
+
terminalCompressProgressBar: import_zod12.z.boolean().optional(),
|
|
888
|
+
rateLimitSeconds: import_zod12.z.number().optional(),
|
|
889
|
+
diffEnabled: import_zod12.z.boolean().optional(),
|
|
890
|
+
fuzzyMatchThreshold: import_zod12.z.number().optional(),
|
|
781
891
|
experiments: experimentsSchema.optional(),
|
|
782
892
|
codebaseIndexModels: codebaseIndexModelsSchema.optional(),
|
|
783
893
|
codebaseIndexConfig: codebaseIndexConfigSchema.optional(),
|
|
784
894
|
language: languagesSchema.optional(),
|
|
785
895
|
telemetrySetting: telemetrySettingsSchema.optional(),
|
|
786
|
-
mcpEnabled:
|
|
787
|
-
enableMcpServerCreation:
|
|
788
|
-
mode:
|
|
789
|
-
modeApiConfigs:
|
|
790
|
-
customModes:
|
|
896
|
+
mcpEnabled: import_zod12.z.boolean().optional(),
|
|
897
|
+
enableMcpServerCreation: import_zod12.z.boolean().optional(),
|
|
898
|
+
mode: import_zod12.z.string().optional(),
|
|
899
|
+
modeApiConfigs: import_zod12.z.record(import_zod12.z.string(), import_zod12.z.string()).optional(),
|
|
900
|
+
customModes: import_zod12.z.array(modeConfigSchema).optional(),
|
|
791
901
|
customModePrompts: customModePromptsSchema.optional(),
|
|
792
902
|
customSupportPrompts: customSupportPromptsSchema.optional(),
|
|
793
|
-
enhancementApiConfigId:
|
|
794
|
-
historyPreviewCollapsed:
|
|
903
|
+
enhancementApiConfigId: import_zod12.z.string().optional(),
|
|
904
|
+
historyPreviewCollapsed: import_zod12.z.boolean().optional()
|
|
795
905
|
});
|
|
796
906
|
var GLOBAL_SETTINGS_KEYS = keysOf()([
|
|
797
907
|
"currentApiConfigName",
|
|
@@ -890,85 +1000,7 @@ var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].fil
|
|
|
890
1000
|
var isGlobalStateKey = (key) => GLOBAL_STATE_KEYS.includes(key);
|
|
891
1001
|
|
|
892
1002
|
// src/ipc.ts
|
|
893
|
-
var
|
|
894
|
-
|
|
895
|
-
// src/message.ts
|
|
896
|
-
var import_zod11 = require("zod");
|
|
897
|
-
var clineAsks = [
|
|
898
|
-
"followup",
|
|
899
|
-
"command",
|
|
900
|
-
"command_output",
|
|
901
|
-
"completion_result",
|
|
902
|
-
"tool",
|
|
903
|
-
"api_req_failed",
|
|
904
|
-
"resume_task",
|
|
905
|
-
"resume_completed_task",
|
|
906
|
-
"mistake_limit_reached",
|
|
907
|
-
"browser_action_launch",
|
|
908
|
-
"use_mcp_server",
|
|
909
|
-
"auto_approval_max_req_reached"
|
|
910
|
-
];
|
|
911
|
-
var clineAskSchema = import_zod11.z.enum(clineAsks);
|
|
912
|
-
var clineSays = [
|
|
913
|
-
"error",
|
|
914
|
-
"api_req_started",
|
|
915
|
-
"api_req_finished",
|
|
916
|
-
"api_req_retried",
|
|
917
|
-
"api_req_retry_delayed",
|
|
918
|
-
"api_req_deleted",
|
|
919
|
-
"text",
|
|
920
|
-
"reasoning",
|
|
921
|
-
"completion_result",
|
|
922
|
-
"user_feedback",
|
|
923
|
-
"user_feedback_diff",
|
|
924
|
-
"command_output",
|
|
925
|
-
"shell_integration_warning",
|
|
926
|
-
"browser_action",
|
|
927
|
-
"browser_action_result",
|
|
928
|
-
"mcp_server_request_started",
|
|
929
|
-
"mcp_server_response",
|
|
930
|
-
"subtask_result",
|
|
931
|
-
"checkpoint_saved",
|
|
932
|
-
"rooignore_error",
|
|
933
|
-
"diff_error",
|
|
934
|
-
"condense_context",
|
|
935
|
-
"codebase_search_result"
|
|
936
|
-
];
|
|
937
|
-
var clineSaySchema = import_zod11.z.enum(clineSays);
|
|
938
|
-
var toolProgressStatusSchema = import_zod11.z.object({
|
|
939
|
-
icon: import_zod11.z.string().optional(),
|
|
940
|
-
text: import_zod11.z.string().optional()
|
|
941
|
-
});
|
|
942
|
-
var contextCondenseSchema = import_zod11.z.object({
|
|
943
|
-
cost: import_zod11.z.number(),
|
|
944
|
-
prevContextTokens: import_zod11.z.number(),
|
|
945
|
-
newContextTokens: import_zod11.z.number(),
|
|
946
|
-
summary: import_zod11.z.string()
|
|
947
|
-
});
|
|
948
|
-
var clineMessageSchema = import_zod11.z.object({
|
|
949
|
-
ts: import_zod11.z.number(),
|
|
950
|
-
type: import_zod11.z.union([import_zod11.z.literal("ask"), import_zod11.z.literal("say")]),
|
|
951
|
-
ask: clineAskSchema.optional(),
|
|
952
|
-
say: clineSaySchema.optional(),
|
|
953
|
-
text: import_zod11.z.string().optional(),
|
|
954
|
-
images: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
955
|
-
partial: import_zod11.z.boolean().optional(),
|
|
956
|
-
reasoning: import_zod11.z.string().optional(),
|
|
957
|
-
conversationHistoryIndex: import_zod11.z.number().optional(),
|
|
958
|
-
checkpoint: import_zod11.z.record(import_zod11.z.string(), import_zod11.z.unknown()).optional(),
|
|
959
|
-
progressStatus: toolProgressStatusSchema.optional(),
|
|
960
|
-
contextCondense: contextCondenseSchema.optional()
|
|
961
|
-
});
|
|
962
|
-
var tokenUsageSchema = import_zod11.z.object({
|
|
963
|
-
totalTokensIn: import_zod11.z.number(),
|
|
964
|
-
totalTokensOut: import_zod11.z.number(),
|
|
965
|
-
totalCacheWrites: import_zod11.z.number().optional(),
|
|
966
|
-
totalCacheReads: import_zod11.z.number().optional(),
|
|
967
|
-
totalCost: import_zod11.z.number(),
|
|
968
|
-
contextTokens: import_zod11.z.number()
|
|
969
|
-
});
|
|
970
|
-
|
|
971
|
-
// src/ipc.ts
|
|
1003
|
+
var import_zod13 = require("zod");
|
|
972
1004
|
var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
973
1005
|
RooCodeEventName2["Message"] = "message";
|
|
974
1006
|
RooCodeEventName2["TaskCreated"] = "taskCreated";
|
|
@@ -984,30 +1016,30 @@ var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
|
984
1016
|
RooCodeEventName2["TaskToolFailed"] = "taskToolFailed";
|
|
985
1017
|
return RooCodeEventName2;
|
|
986
1018
|
})(RooCodeEventName || {});
|
|
987
|
-
var rooCodeEventsSchema =
|
|
988
|
-
["message" /* Message */]:
|
|
989
|
-
|
|
990
|
-
taskId:
|
|
991
|
-
action:
|
|
1019
|
+
var rooCodeEventsSchema = import_zod13.z.object({
|
|
1020
|
+
["message" /* Message */]: import_zod13.z.tuple([
|
|
1021
|
+
import_zod13.z.object({
|
|
1022
|
+
taskId: import_zod13.z.string(),
|
|
1023
|
+
action: import_zod13.z.union([import_zod13.z.literal("created"), import_zod13.z.literal("updated")]),
|
|
992
1024
|
message: clineMessageSchema
|
|
993
1025
|
})
|
|
994
1026
|
]),
|
|
995
|
-
["taskCreated" /* TaskCreated */]:
|
|
996
|
-
["taskStarted" /* TaskStarted */]:
|
|
997
|
-
["taskModeSwitched" /* TaskModeSwitched */]:
|
|
998
|
-
["taskPaused" /* TaskPaused */]:
|
|
999
|
-
["taskUnpaused" /* TaskUnpaused */]:
|
|
1000
|
-
["taskAskResponded" /* TaskAskResponded */]:
|
|
1001
|
-
["taskAborted" /* TaskAborted */]:
|
|
1002
|
-
["taskSpawned" /* TaskSpawned */]:
|
|
1003
|
-
["taskCompleted" /* TaskCompleted */]:
|
|
1004
|
-
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]:
|
|
1005
|
-
["taskToolFailed" /* TaskToolFailed */]:
|
|
1027
|
+
["taskCreated" /* TaskCreated */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1028
|
+
["taskStarted" /* TaskStarted */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1029
|
+
["taskModeSwitched" /* TaskModeSwitched */]: import_zod13.z.tuple([import_zod13.z.string(), import_zod13.z.string()]),
|
|
1030
|
+
["taskPaused" /* TaskPaused */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1031
|
+
["taskUnpaused" /* TaskUnpaused */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1032
|
+
["taskAskResponded" /* TaskAskResponded */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1033
|
+
["taskAborted" /* TaskAborted */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1034
|
+
["taskSpawned" /* TaskSpawned */]: import_zod13.z.tuple([import_zod13.z.string(), import_zod13.z.string()]),
|
|
1035
|
+
["taskCompleted" /* TaskCompleted */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema, toolUsageSchema]),
|
|
1036
|
+
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema]),
|
|
1037
|
+
["taskToolFailed" /* TaskToolFailed */]: import_zod13.z.tuple([import_zod13.z.string(), toolNamesSchema, import_zod13.z.string()])
|
|
1006
1038
|
});
|
|
1007
|
-
var ackSchema =
|
|
1008
|
-
clientId:
|
|
1009
|
-
pid:
|
|
1010
|
-
ppid:
|
|
1039
|
+
var ackSchema = import_zod13.z.object({
|
|
1040
|
+
clientId: import_zod13.z.string(),
|
|
1041
|
+
pid: import_zod13.z.number(),
|
|
1042
|
+
ppid: import_zod13.z.number()
|
|
1011
1043
|
});
|
|
1012
1044
|
var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
|
|
1013
1045
|
TaskCommandName2["StartNewTask"] = "StartNewTask";
|
|
@@ -1015,68 +1047,68 @@ var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
|
|
|
1015
1047
|
TaskCommandName2["CloseTask"] = "CloseTask";
|
|
1016
1048
|
return TaskCommandName2;
|
|
1017
1049
|
})(TaskCommandName || {});
|
|
1018
|
-
var taskCommandSchema =
|
|
1019
|
-
|
|
1020
|
-
commandName:
|
|
1021
|
-
data:
|
|
1050
|
+
var taskCommandSchema = import_zod13.z.discriminatedUnion("commandName", [
|
|
1051
|
+
import_zod13.z.object({
|
|
1052
|
+
commandName: import_zod13.z.literal("StartNewTask" /* StartNewTask */),
|
|
1053
|
+
data: import_zod13.z.object({
|
|
1022
1054
|
configuration: rooCodeSettingsSchema,
|
|
1023
|
-
text:
|
|
1024
|
-
images:
|
|
1025
|
-
newTab:
|
|
1055
|
+
text: import_zod13.z.string(),
|
|
1056
|
+
images: import_zod13.z.array(import_zod13.z.string()).optional(),
|
|
1057
|
+
newTab: import_zod13.z.boolean().optional()
|
|
1026
1058
|
})
|
|
1027
1059
|
}),
|
|
1028
|
-
|
|
1029
|
-
commandName:
|
|
1030
|
-
data:
|
|
1060
|
+
import_zod13.z.object({
|
|
1061
|
+
commandName: import_zod13.z.literal("CancelTask" /* CancelTask */),
|
|
1062
|
+
data: import_zod13.z.string()
|
|
1031
1063
|
}),
|
|
1032
|
-
|
|
1033
|
-
commandName:
|
|
1034
|
-
data:
|
|
1064
|
+
import_zod13.z.object({
|
|
1065
|
+
commandName: import_zod13.z.literal("CloseTask" /* CloseTask */),
|
|
1066
|
+
data: import_zod13.z.string()
|
|
1035
1067
|
})
|
|
1036
1068
|
]);
|
|
1037
|
-
var taskEventSchema =
|
|
1038
|
-
|
|
1039
|
-
eventName:
|
|
1069
|
+
var taskEventSchema = import_zod13.z.discriminatedUnion("eventName", [
|
|
1070
|
+
import_zod13.z.object({
|
|
1071
|
+
eventName: import_zod13.z.literal("message" /* Message */),
|
|
1040
1072
|
payload: rooCodeEventsSchema.shape["message" /* Message */]
|
|
1041
1073
|
}),
|
|
1042
|
-
|
|
1043
|
-
eventName:
|
|
1074
|
+
import_zod13.z.object({
|
|
1075
|
+
eventName: import_zod13.z.literal("taskCreated" /* TaskCreated */),
|
|
1044
1076
|
payload: rooCodeEventsSchema.shape["taskCreated" /* TaskCreated */]
|
|
1045
1077
|
}),
|
|
1046
|
-
|
|
1047
|
-
eventName:
|
|
1078
|
+
import_zod13.z.object({
|
|
1079
|
+
eventName: import_zod13.z.literal("taskStarted" /* TaskStarted */),
|
|
1048
1080
|
payload: rooCodeEventsSchema.shape["taskStarted" /* TaskStarted */]
|
|
1049
1081
|
}),
|
|
1050
|
-
|
|
1051
|
-
eventName:
|
|
1082
|
+
import_zod13.z.object({
|
|
1083
|
+
eventName: import_zod13.z.literal("taskModeSwitched" /* TaskModeSwitched */),
|
|
1052
1084
|
payload: rooCodeEventsSchema.shape["taskModeSwitched" /* TaskModeSwitched */]
|
|
1053
1085
|
}),
|
|
1054
|
-
|
|
1055
|
-
eventName:
|
|
1086
|
+
import_zod13.z.object({
|
|
1087
|
+
eventName: import_zod13.z.literal("taskPaused" /* TaskPaused */),
|
|
1056
1088
|
payload: rooCodeEventsSchema.shape["taskPaused" /* TaskPaused */]
|
|
1057
1089
|
}),
|
|
1058
|
-
|
|
1059
|
-
eventName:
|
|
1090
|
+
import_zod13.z.object({
|
|
1091
|
+
eventName: import_zod13.z.literal("taskUnpaused" /* TaskUnpaused */),
|
|
1060
1092
|
payload: rooCodeEventsSchema.shape["taskUnpaused" /* TaskUnpaused */]
|
|
1061
1093
|
}),
|
|
1062
|
-
|
|
1063
|
-
eventName:
|
|
1094
|
+
import_zod13.z.object({
|
|
1095
|
+
eventName: import_zod13.z.literal("taskAskResponded" /* TaskAskResponded */),
|
|
1064
1096
|
payload: rooCodeEventsSchema.shape["taskAskResponded" /* TaskAskResponded */]
|
|
1065
1097
|
}),
|
|
1066
|
-
|
|
1067
|
-
eventName:
|
|
1098
|
+
import_zod13.z.object({
|
|
1099
|
+
eventName: import_zod13.z.literal("taskAborted" /* TaskAborted */),
|
|
1068
1100
|
payload: rooCodeEventsSchema.shape["taskAborted" /* TaskAborted */]
|
|
1069
1101
|
}),
|
|
1070
|
-
|
|
1071
|
-
eventName:
|
|
1102
|
+
import_zod13.z.object({
|
|
1103
|
+
eventName: import_zod13.z.literal("taskSpawned" /* TaskSpawned */),
|
|
1072
1104
|
payload: rooCodeEventsSchema.shape["taskSpawned" /* TaskSpawned */]
|
|
1073
1105
|
}),
|
|
1074
|
-
|
|
1075
|
-
eventName:
|
|
1106
|
+
import_zod13.z.object({
|
|
1107
|
+
eventName: import_zod13.z.literal("taskCompleted" /* TaskCompleted */),
|
|
1076
1108
|
payload: rooCodeEventsSchema.shape["taskCompleted" /* TaskCompleted */]
|
|
1077
1109
|
}),
|
|
1078
|
-
|
|
1079
|
-
eventName:
|
|
1110
|
+
import_zod13.z.object({
|
|
1111
|
+
eventName: import_zod13.z.literal("taskTokenUsageUpdated" /* TaskTokenUsageUpdated */),
|
|
1080
1112
|
payload: rooCodeEventsSchema.shape["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]
|
|
1081
1113
|
})
|
|
1082
1114
|
]);
|
|
@@ -1093,48 +1125,48 @@ var IpcOrigin = /* @__PURE__ */ ((IpcOrigin2) => {
|
|
|
1093
1125
|
IpcOrigin2["Server"] = "server";
|
|
1094
1126
|
return IpcOrigin2;
|
|
1095
1127
|
})(IpcOrigin || {});
|
|
1096
|
-
var ipcMessageSchema =
|
|
1097
|
-
|
|
1098
|
-
type:
|
|
1099
|
-
origin:
|
|
1128
|
+
var ipcMessageSchema = import_zod13.z.discriminatedUnion("type", [
|
|
1129
|
+
import_zod13.z.object({
|
|
1130
|
+
type: import_zod13.z.literal("Ack" /* Ack */),
|
|
1131
|
+
origin: import_zod13.z.literal("server" /* Server */),
|
|
1100
1132
|
data: ackSchema
|
|
1101
1133
|
}),
|
|
1102
|
-
|
|
1103
|
-
type:
|
|
1104
|
-
origin:
|
|
1105
|
-
clientId:
|
|
1134
|
+
import_zod13.z.object({
|
|
1135
|
+
type: import_zod13.z.literal("TaskCommand" /* TaskCommand */),
|
|
1136
|
+
origin: import_zod13.z.literal("client" /* Client */),
|
|
1137
|
+
clientId: import_zod13.z.string(),
|
|
1106
1138
|
data: taskCommandSchema
|
|
1107
1139
|
}),
|
|
1108
|
-
|
|
1109
|
-
type:
|
|
1110
|
-
origin:
|
|
1111
|
-
relayClientId:
|
|
1140
|
+
import_zod13.z.object({
|
|
1141
|
+
type: import_zod13.z.literal("TaskEvent" /* TaskEvent */),
|
|
1142
|
+
origin: import_zod13.z.literal("server" /* Server */),
|
|
1143
|
+
relayClientId: import_zod13.z.string().optional(),
|
|
1112
1144
|
data: taskEventSchema
|
|
1113
1145
|
})
|
|
1114
1146
|
]);
|
|
1115
1147
|
|
|
1116
1148
|
// src/terminal.ts
|
|
1117
|
-
var
|
|
1118
|
-
var commandExecutionStatusSchema =
|
|
1119
|
-
|
|
1120
|
-
executionId:
|
|
1121
|
-
status:
|
|
1122
|
-
pid:
|
|
1123
|
-
command:
|
|
1149
|
+
var import_zod14 = require("zod");
|
|
1150
|
+
var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
|
|
1151
|
+
import_zod14.z.object({
|
|
1152
|
+
executionId: import_zod14.z.string(),
|
|
1153
|
+
status: import_zod14.z.literal("started"),
|
|
1154
|
+
pid: import_zod14.z.number().optional(),
|
|
1155
|
+
command: import_zod14.z.string()
|
|
1124
1156
|
}),
|
|
1125
|
-
|
|
1126
|
-
executionId:
|
|
1127
|
-
status:
|
|
1128
|
-
output:
|
|
1157
|
+
import_zod14.z.object({
|
|
1158
|
+
executionId: import_zod14.z.string(),
|
|
1159
|
+
status: import_zod14.z.literal("output"),
|
|
1160
|
+
output: import_zod14.z.string()
|
|
1129
1161
|
}),
|
|
1130
|
-
|
|
1131
|
-
executionId:
|
|
1132
|
-
status:
|
|
1133
|
-
exitCode:
|
|
1162
|
+
import_zod14.z.object({
|
|
1163
|
+
executionId: import_zod14.z.string(),
|
|
1164
|
+
status: import_zod14.z.literal("exited"),
|
|
1165
|
+
exitCode: import_zod14.z.number().optional()
|
|
1134
1166
|
}),
|
|
1135
|
-
|
|
1136
|
-
executionId:
|
|
1137
|
-
status:
|
|
1167
|
+
import_zod14.z.object({
|
|
1168
|
+
executionId: import_zod14.z.string(),
|
|
1169
|
+
status: import_zod14.z.literal("fallback")
|
|
1138
1170
|
})
|
|
1139
1171
|
]);
|
|
1140
1172
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1143,6 +1175,7 @@ var commandExecutionStatusSchema = import_zod13.z.discriminatedUnion("status", [
|
|
|
1143
1175
|
GLOBAL_STATE_KEYS,
|
|
1144
1176
|
IpcMessageType,
|
|
1145
1177
|
IpcOrigin,
|
|
1178
|
+
ORGANIZATION_ALLOW_ALL,
|
|
1146
1179
|
PROVIDER_SETTINGS_KEYS,
|
|
1147
1180
|
RooCodeEventName,
|
|
1148
1181
|
SECRET_STATE_KEYS,
|
|
@@ -1184,6 +1217,8 @@ var commandExecutionStatusSchema = import_zod13.z.discriminatedUnion("status", [
|
|
|
1184
1217
|
modelInfoSchema,
|
|
1185
1218
|
modelParameters,
|
|
1186
1219
|
modelParametersSchema,
|
|
1220
|
+
organizationAllowListSchema,
|
|
1221
|
+
organizationSettingsSchema,
|
|
1187
1222
|
promptComponentSchema,
|
|
1188
1223
|
providerNames,
|
|
1189
1224
|
providerNamesSchema,
|