@roo-code/types 1.19.0 → 1.20.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 +477 -441
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +389 -2
- package/dist/index.d.ts +389 -2
- package/dist/index.js +474 -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,35 @@ 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
|
+
...telemetryPropertiesSchema.shape,
|
|
674
|
+
message: clineMessageSchema
|
|
568
675
|
})
|
|
569
676
|
}),
|
|
570
|
-
|
|
571
|
-
type:
|
|
572
|
-
properties:
|
|
573
|
-
...
|
|
574
|
-
|
|
575
|
-
|
|
677
|
+
import_zod8.z.object({
|
|
678
|
+
type: import_zod8.z.literal("LLM Completion" /* LLM_COMPLETION */),
|
|
679
|
+
properties: import_zod8.z.object({
|
|
680
|
+
...telemetryPropertiesSchema.shape,
|
|
681
|
+
inputTokens: import_zod8.z.number(),
|
|
682
|
+
outputTokens: import_zod8.z.number(),
|
|
683
|
+
cacheReadTokens: import_zod8.z.number().optional(),
|
|
684
|
+
cacheWriteTokens: import_zod8.z.number().optional(),
|
|
685
|
+
cost: import_zod8.z.number().optional()
|
|
576
686
|
})
|
|
577
687
|
})
|
|
578
688
|
]);
|
|
579
689
|
|
|
580
690
|
// src/mode.ts
|
|
581
|
-
var
|
|
691
|
+
var import_zod10 = require("zod");
|
|
582
692
|
|
|
583
693
|
// src/tool.ts
|
|
584
|
-
var
|
|
694
|
+
var import_zod9 = require("zod");
|
|
585
695
|
var toolGroups = ["read", "edit", "browser", "command", "mcp", "modes"];
|
|
586
|
-
var toolGroupsSchema =
|
|
696
|
+
var toolGroupsSchema = import_zod9.z.enum(toolGroups);
|
|
587
697
|
var toolNames = [
|
|
588
698
|
"execute_command",
|
|
589
699
|
"read_file",
|
|
@@ -604,18 +714,18 @@ var toolNames = [
|
|
|
604
714
|
"fetch_instructions",
|
|
605
715
|
"codebase_search"
|
|
606
716
|
];
|
|
607
|
-
var toolNamesSchema =
|
|
608
|
-
var toolUsageSchema =
|
|
717
|
+
var toolNamesSchema = import_zod9.z.enum(toolNames);
|
|
718
|
+
var toolUsageSchema = import_zod9.z.record(
|
|
609
719
|
toolNamesSchema,
|
|
610
|
-
|
|
611
|
-
attempts:
|
|
612
|
-
failures:
|
|
720
|
+
import_zod9.z.object({
|
|
721
|
+
attempts: import_zod9.z.number(),
|
|
722
|
+
failures: import_zod9.z.number()
|
|
613
723
|
})
|
|
614
724
|
);
|
|
615
725
|
|
|
616
726
|
// src/mode.ts
|
|
617
|
-
var groupOptionsSchema =
|
|
618
|
-
fileRegex:
|
|
727
|
+
var groupOptionsSchema = import_zod10.z.object({
|
|
728
|
+
fileRegex: import_zod10.z.string().optional().refine(
|
|
619
729
|
(pattern) => {
|
|
620
730
|
if (!pattern) {
|
|
621
731
|
return true;
|
|
@@ -629,10 +739,10 @@ var groupOptionsSchema = import_zod8.z.object({
|
|
|
629
739
|
},
|
|
630
740
|
{ message: "Invalid regular expression pattern" }
|
|
631
741
|
),
|
|
632
|
-
description:
|
|
742
|
+
description: import_zod10.z.string().optional()
|
|
633
743
|
});
|
|
634
|
-
var groupEntrySchema =
|
|
635
|
-
var groupEntryArraySchema =
|
|
744
|
+
var groupEntrySchema = import_zod10.z.union([toolGroupsSchema, import_zod10.z.tuple([toolGroupsSchema, groupOptionsSchema])]);
|
|
745
|
+
var groupEntryArraySchema = import_zod10.z.array(groupEntrySchema).refine(
|
|
636
746
|
(groups) => {
|
|
637
747
|
const seen = /* @__PURE__ */ new Set();
|
|
638
748
|
return groups.every((group) => {
|
|
@@ -646,17 +756,17 @@ var groupEntryArraySchema = import_zod8.z.array(groupEntrySchema).refine(
|
|
|
646
756
|
},
|
|
647
757
|
{ message: "Duplicate groups are not allowed" }
|
|
648
758
|
);
|
|
649
|
-
var modeConfigSchema =
|
|
650
|
-
slug:
|
|
651
|
-
name:
|
|
652
|
-
roleDefinition:
|
|
653
|
-
whenToUse:
|
|
654
|
-
customInstructions:
|
|
759
|
+
var modeConfigSchema = import_zod10.z.object({
|
|
760
|
+
slug: import_zod10.z.string().regex(/^[a-zA-Z0-9-]+$/, "Slug must contain only letters numbers and dashes"),
|
|
761
|
+
name: import_zod10.z.string().min(1, "Name is required"),
|
|
762
|
+
roleDefinition: import_zod10.z.string().min(1, "Role definition is required"),
|
|
763
|
+
whenToUse: import_zod10.z.string().optional(),
|
|
764
|
+
customInstructions: import_zod10.z.string().optional(),
|
|
655
765
|
groups: groupEntryArraySchema,
|
|
656
|
-
source:
|
|
766
|
+
source: import_zod10.z.enum(["global", "project"]).optional()
|
|
657
767
|
});
|
|
658
|
-
var customModesSettingsSchema =
|
|
659
|
-
customModes:
|
|
768
|
+
var customModesSettingsSchema = import_zod10.z.object({
|
|
769
|
+
customModes: import_zod10.z.array(modeConfigSchema).refine(
|
|
660
770
|
(modes) => {
|
|
661
771
|
const slugs = /* @__PURE__ */ new Set();
|
|
662
772
|
return modes.every((mode) => {
|
|
@@ -672,16 +782,16 @@ var customModesSettingsSchema = import_zod8.z.object({
|
|
|
672
782
|
}
|
|
673
783
|
)
|
|
674
784
|
});
|
|
675
|
-
var promptComponentSchema =
|
|
676
|
-
roleDefinition:
|
|
677
|
-
whenToUse:
|
|
678
|
-
customInstructions:
|
|
785
|
+
var promptComponentSchema = import_zod10.z.object({
|
|
786
|
+
roleDefinition: import_zod10.z.string().optional(),
|
|
787
|
+
whenToUse: import_zod10.z.string().optional(),
|
|
788
|
+
customInstructions: import_zod10.z.string().optional()
|
|
679
789
|
});
|
|
680
|
-
var customModePromptsSchema =
|
|
681
|
-
var customSupportPromptsSchema =
|
|
790
|
+
var customModePromptsSchema = import_zod10.z.record(import_zod10.z.string(), promptComponentSchema.optional());
|
|
791
|
+
var customSupportPromptsSchema = import_zod10.z.record(import_zod10.z.string(), import_zod10.z.string().optional());
|
|
682
792
|
|
|
683
793
|
// src/vscode.ts
|
|
684
|
-
var
|
|
794
|
+
var import_zod11 = require("zod");
|
|
685
795
|
var codeActionIds = ["explainCode", "fixCode", "improveCode", "addToContext", "newTask"];
|
|
686
796
|
var terminalActionIds = ["terminalAddToContext", "terminalFixCommand", "terminalExplainCommand"];
|
|
687
797
|
var commandIds = [
|
|
@@ -691,6 +801,7 @@ var commandIds = [
|
|
|
691
801
|
"mcpButtonClicked",
|
|
692
802
|
"historyButtonClicked",
|
|
693
803
|
"popoutButtonClicked",
|
|
804
|
+
"accountButtonClicked",
|
|
694
805
|
"settingsButtonClicked",
|
|
695
806
|
"openInNewTab",
|
|
696
807
|
"showHumanRelayDialog",
|
|
@@ -721,77 +832,77 @@ var languages = [
|
|
|
721
832
|
"zh-CN",
|
|
722
833
|
"zh-TW"
|
|
723
834
|
];
|
|
724
|
-
var languagesSchema =
|
|
835
|
+
var languagesSchema = import_zod11.z.enum(languages);
|
|
725
836
|
var isLanguage = (value) => languages.includes(value);
|
|
726
837
|
|
|
727
838
|
// 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:
|
|
839
|
+
var globalSettingsSchema = import_zod12.z.object({
|
|
840
|
+
currentApiConfigName: import_zod12.z.string().optional(),
|
|
841
|
+
listApiConfigMeta: import_zod12.z.array(providerSettingsEntrySchema).optional(),
|
|
842
|
+
pinnedApiConfigs: import_zod12.z.record(import_zod12.z.string(), import_zod12.z.boolean()).optional(),
|
|
843
|
+
lastShownAnnouncementId: import_zod12.z.string().optional(),
|
|
844
|
+
customInstructions: import_zod12.z.string().optional(),
|
|
845
|
+
taskHistory: import_zod12.z.array(historyItemSchema).optional(),
|
|
846
|
+
condensingApiConfigId: import_zod12.z.string().optional(),
|
|
847
|
+
customCondensingPrompt: import_zod12.z.string().optional(),
|
|
848
|
+
autoApprovalEnabled: import_zod12.z.boolean().optional(),
|
|
849
|
+
alwaysAllowReadOnly: import_zod12.z.boolean().optional(),
|
|
850
|
+
alwaysAllowReadOnlyOutsideWorkspace: import_zod12.z.boolean().optional(),
|
|
851
|
+
alwaysAllowWrite: import_zod12.z.boolean().optional(),
|
|
852
|
+
alwaysAllowWriteOutsideWorkspace: import_zod12.z.boolean().optional(),
|
|
853
|
+
writeDelayMs: import_zod12.z.number().optional(),
|
|
854
|
+
alwaysAllowBrowser: import_zod12.z.boolean().optional(),
|
|
855
|
+
alwaysApproveResubmit: import_zod12.z.boolean().optional(),
|
|
856
|
+
requestDelaySeconds: import_zod12.z.number().optional(),
|
|
857
|
+
alwaysAllowMcp: import_zod12.z.boolean().optional(),
|
|
858
|
+
alwaysAllowModeSwitch: import_zod12.z.boolean().optional(),
|
|
859
|
+
alwaysAllowSubtasks: import_zod12.z.boolean().optional(),
|
|
860
|
+
alwaysAllowExecute: import_zod12.z.boolean().optional(),
|
|
861
|
+
allowedCommands: import_zod12.z.array(import_zod12.z.string()).optional(),
|
|
862
|
+
allowedMaxRequests: import_zod12.z.number().nullish(),
|
|
863
|
+
autoCondenseContextPercent: import_zod12.z.number().optional(),
|
|
864
|
+
browserToolEnabled: import_zod12.z.boolean().optional(),
|
|
865
|
+
browserViewportSize: import_zod12.z.string().optional(),
|
|
866
|
+
screenshotQuality: import_zod12.z.number().optional(),
|
|
867
|
+
remoteBrowserEnabled: import_zod12.z.boolean().optional(),
|
|
868
|
+
remoteBrowserHost: import_zod12.z.string().optional(),
|
|
869
|
+
cachedChromeHostUrl: import_zod12.z.string().optional(),
|
|
870
|
+
enableCheckpoints: import_zod12.z.boolean().optional(),
|
|
871
|
+
ttsEnabled: import_zod12.z.boolean().optional(),
|
|
872
|
+
ttsSpeed: import_zod12.z.number().optional(),
|
|
873
|
+
soundEnabled: import_zod12.z.boolean().optional(),
|
|
874
|
+
soundVolume: import_zod12.z.number().optional(),
|
|
875
|
+
maxOpenTabsContext: import_zod12.z.number().optional(),
|
|
876
|
+
maxWorkspaceFiles: import_zod12.z.number().optional(),
|
|
877
|
+
showRooIgnoredFiles: import_zod12.z.boolean().optional(),
|
|
878
|
+
maxReadFileLine: import_zod12.z.number().optional(),
|
|
879
|
+
terminalOutputLineLimit: import_zod12.z.number().optional(),
|
|
880
|
+
terminalShellIntegrationTimeout: import_zod12.z.number().optional(),
|
|
881
|
+
terminalShellIntegrationDisabled: import_zod12.z.boolean().optional(),
|
|
882
|
+
terminalCommandDelay: import_zod12.z.number().optional(),
|
|
883
|
+
terminalPowershellCounter: import_zod12.z.boolean().optional(),
|
|
884
|
+
terminalZshClearEolMark: import_zod12.z.boolean().optional(),
|
|
885
|
+
terminalZshOhMy: import_zod12.z.boolean().optional(),
|
|
886
|
+
terminalZshP10k: import_zod12.z.boolean().optional(),
|
|
887
|
+
terminalZdotdir: import_zod12.z.boolean().optional(),
|
|
888
|
+
terminalCompressProgressBar: import_zod12.z.boolean().optional(),
|
|
889
|
+
rateLimitSeconds: import_zod12.z.number().optional(),
|
|
890
|
+
diffEnabled: import_zod12.z.boolean().optional(),
|
|
891
|
+
fuzzyMatchThreshold: import_zod12.z.number().optional(),
|
|
781
892
|
experiments: experimentsSchema.optional(),
|
|
782
893
|
codebaseIndexModels: codebaseIndexModelsSchema.optional(),
|
|
783
894
|
codebaseIndexConfig: codebaseIndexConfigSchema.optional(),
|
|
784
895
|
language: languagesSchema.optional(),
|
|
785
896
|
telemetrySetting: telemetrySettingsSchema.optional(),
|
|
786
|
-
mcpEnabled:
|
|
787
|
-
enableMcpServerCreation:
|
|
788
|
-
mode:
|
|
789
|
-
modeApiConfigs:
|
|
790
|
-
customModes:
|
|
897
|
+
mcpEnabled: import_zod12.z.boolean().optional(),
|
|
898
|
+
enableMcpServerCreation: import_zod12.z.boolean().optional(),
|
|
899
|
+
mode: import_zod12.z.string().optional(),
|
|
900
|
+
modeApiConfigs: import_zod12.z.record(import_zod12.z.string(), import_zod12.z.string()).optional(),
|
|
901
|
+
customModes: import_zod12.z.array(modeConfigSchema).optional(),
|
|
791
902
|
customModePrompts: customModePromptsSchema.optional(),
|
|
792
903
|
customSupportPrompts: customSupportPromptsSchema.optional(),
|
|
793
|
-
enhancementApiConfigId:
|
|
794
|
-
historyPreviewCollapsed:
|
|
904
|
+
enhancementApiConfigId: import_zod12.z.string().optional(),
|
|
905
|
+
historyPreviewCollapsed: import_zod12.z.boolean().optional()
|
|
795
906
|
});
|
|
796
907
|
var GLOBAL_SETTINGS_KEYS = keysOf()([
|
|
797
908
|
"currentApiConfigName",
|
|
@@ -890,85 +1001,7 @@ var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].fil
|
|
|
890
1001
|
var isGlobalStateKey = (key) => GLOBAL_STATE_KEYS.includes(key);
|
|
891
1002
|
|
|
892
1003
|
// 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
|
|
1004
|
+
var import_zod13 = require("zod");
|
|
972
1005
|
var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
973
1006
|
RooCodeEventName2["Message"] = "message";
|
|
974
1007
|
RooCodeEventName2["TaskCreated"] = "taskCreated";
|
|
@@ -984,30 +1017,30 @@ var RooCodeEventName = /* @__PURE__ */ ((RooCodeEventName2) => {
|
|
|
984
1017
|
RooCodeEventName2["TaskToolFailed"] = "taskToolFailed";
|
|
985
1018
|
return RooCodeEventName2;
|
|
986
1019
|
})(RooCodeEventName || {});
|
|
987
|
-
var rooCodeEventsSchema =
|
|
988
|
-
["message" /* Message */]:
|
|
989
|
-
|
|
990
|
-
taskId:
|
|
991
|
-
action:
|
|
1020
|
+
var rooCodeEventsSchema = import_zod13.z.object({
|
|
1021
|
+
["message" /* Message */]: import_zod13.z.tuple([
|
|
1022
|
+
import_zod13.z.object({
|
|
1023
|
+
taskId: import_zod13.z.string(),
|
|
1024
|
+
action: import_zod13.z.union([import_zod13.z.literal("created"), import_zod13.z.literal("updated")]),
|
|
992
1025
|
message: clineMessageSchema
|
|
993
1026
|
})
|
|
994
1027
|
]),
|
|
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 */]:
|
|
1028
|
+
["taskCreated" /* TaskCreated */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1029
|
+
["taskStarted" /* TaskStarted */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1030
|
+
["taskModeSwitched" /* TaskModeSwitched */]: import_zod13.z.tuple([import_zod13.z.string(), import_zod13.z.string()]),
|
|
1031
|
+
["taskPaused" /* TaskPaused */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1032
|
+
["taskUnpaused" /* TaskUnpaused */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1033
|
+
["taskAskResponded" /* TaskAskResponded */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1034
|
+
["taskAborted" /* TaskAborted */]: import_zod13.z.tuple([import_zod13.z.string()]),
|
|
1035
|
+
["taskSpawned" /* TaskSpawned */]: import_zod13.z.tuple([import_zod13.z.string(), import_zod13.z.string()]),
|
|
1036
|
+
["taskCompleted" /* TaskCompleted */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema, toolUsageSchema]),
|
|
1037
|
+
["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]: import_zod13.z.tuple([import_zod13.z.string(), tokenUsageSchema]),
|
|
1038
|
+
["taskToolFailed" /* TaskToolFailed */]: import_zod13.z.tuple([import_zod13.z.string(), toolNamesSchema, import_zod13.z.string()])
|
|
1006
1039
|
});
|
|
1007
|
-
var ackSchema =
|
|
1008
|
-
clientId:
|
|
1009
|
-
pid:
|
|
1010
|
-
ppid:
|
|
1040
|
+
var ackSchema = import_zod13.z.object({
|
|
1041
|
+
clientId: import_zod13.z.string(),
|
|
1042
|
+
pid: import_zod13.z.number(),
|
|
1043
|
+
ppid: import_zod13.z.number()
|
|
1011
1044
|
});
|
|
1012
1045
|
var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
|
|
1013
1046
|
TaskCommandName2["StartNewTask"] = "StartNewTask";
|
|
@@ -1015,68 +1048,68 @@ var TaskCommandName = /* @__PURE__ */ ((TaskCommandName2) => {
|
|
|
1015
1048
|
TaskCommandName2["CloseTask"] = "CloseTask";
|
|
1016
1049
|
return TaskCommandName2;
|
|
1017
1050
|
})(TaskCommandName || {});
|
|
1018
|
-
var taskCommandSchema =
|
|
1019
|
-
|
|
1020
|
-
commandName:
|
|
1021
|
-
data:
|
|
1051
|
+
var taskCommandSchema = import_zod13.z.discriminatedUnion("commandName", [
|
|
1052
|
+
import_zod13.z.object({
|
|
1053
|
+
commandName: import_zod13.z.literal("StartNewTask" /* StartNewTask */),
|
|
1054
|
+
data: import_zod13.z.object({
|
|
1022
1055
|
configuration: rooCodeSettingsSchema,
|
|
1023
|
-
text:
|
|
1024
|
-
images:
|
|
1025
|
-
newTab:
|
|
1056
|
+
text: import_zod13.z.string(),
|
|
1057
|
+
images: import_zod13.z.array(import_zod13.z.string()).optional(),
|
|
1058
|
+
newTab: import_zod13.z.boolean().optional()
|
|
1026
1059
|
})
|
|
1027
1060
|
}),
|
|
1028
|
-
|
|
1029
|
-
commandName:
|
|
1030
|
-
data:
|
|
1061
|
+
import_zod13.z.object({
|
|
1062
|
+
commandName: import_zod13.z.literal("CancelTask" /* CancelTask */),
|
|
1063
|
+
data: import_zod13.z.string()
|
|
1031
1064
|
}),
|
|
1032
|
-
|
|
1033
|
-
commandName:
|
|
1034
|
-
data:
|
|
1065
|
+
import_zod13.z.object({
|
|
1066
|
+
commandName: import_zod13.z.literal("CloseTask" /* CloseTask */),
|
|
1067
|
+
data: import_zod13.z.string()
|
|
1035
1068
|
})
|
|
1036
1069
|
]);
|
|
1037
|
-
var taskEventSchema =
|
|
1038
|
-
|
|
1039
|
-
eventName:
|
|
1070
|
+
var taskEventSchema = import_zod13.z.discriminatedUnion("eventName", [
|
|
1071
|
+
import_zod13.z.object({
|
|
1072
|
+
eventName: import_zod13.z.literal("message" /* Message */),
|
|
1040
1073
|
payload: rooCodeEventsSchema.shape["message" /* Message */]
|
|
1041
1074
|
}),
|
|
1042
|
-
|
|
1043
|
-
eventName:
|
|
1075
|
+
import_zod13.z.object({
|
|
1076
|
+
eventName: import_zod13.z.literal("taskCreated" /* TaskCreated */),
|
|
1044
1077
|
payload: rooCodeEventsSchema.shape["taskCreated" /* TaskCreated */]
|
|
1045
1078
|
}),
|
|
1046
|
-
|
|
1047
|
-
eventName:
|
|
1079
|
+
import_zod13.z.object({
|
|
1080
|
+
eventName: import_zod13.z.literal("taskStarted" /* TaskStarted */),
|
|
1048
1081
|
payload: rooCodeEventsSchema.shape["taskStarted" /* TaskStarted */]
|
|
1049
1082
|
}),
|
|
1050
|
-
|
|
1051
|
-
eventName:
|
|
1083
|
+
import_zod13.z.object({
|
|
1084
|
+
eventName: import_zod13.z.literal("taskModeSwitched" /* TaskModeSwitched */),
|
|
1052
1085
|
payload: rooCodeEventsSchema.shape["taskModeSwitched" /* TaskModeSwitched */]
|
|
1053
1086
|
}),
|
|
1054
|
-
|
|
1055
|
-
eventName:
|
|
1087
|
+
import_zod13.z.object({
|
|
1088
|
+
eventName: import_zod13.z.literal("taskPaused" /* TaskPaused */),
|
|
1056
1089
|
payload: rooCodeEventsSchema.shape["taskPaused" /* TaskPaused */]
|
|
1057
1090
|
}),
|
|
1058
|
-
|
|
1059
|
-
eventName:
|
|
1091
|
+
import_zod13.z.object({
|
|
1092
|
+
eventName: import_zod13.z.literal("taskUnpaused" /* TaskUnpaused */),
|
|
1060
1093
|
payload: rooCodeEventsSchema.shape["taskUnpaused" /* TaskUnpaused */]
|
|
1061
1094
|
}),
|
|
1062
|
-
|
|
1063
|
-
eventName:
|
|
1095
|
+
import_zod13.z.object({
|
|
1096
|
+
eventName: import_zod13.z.literal("taskAskResponded" /* TaskAskResponded */),
|
|
1064
1097
|
payload: rooCodeEventsSchema.shape["taskAskResponded" /* TaskAskResponded */]
|
|
1065
1098
|
}),
|
|
1066
|
-
|
|
1067
|
-
eventName:
|
|
1099
|
+
import_zod13.z.object({
|
|
1100
|
+
eventName: import_zod13.z.literal("taskAborted" /* TaskAborted */),
|
|
1068
1101
|
payload: rooCodeEventsSchema.shape["taskAborted" /* TaskAborted */]
|
|
1069
1102
|
}),
|
|
1070
|
-
|
|
1071
|
-
eventName:
|
|
1103
|
+
import_zod13.z.object({
|
|
1104
|
+
eventName: import_zod13.z.literal("taskSpawned" /* TaskSpawned */),
|
|
1072
1105
|
payload: rooCodeEventsSchema.shape["taskSpawned" /* TaskSpawned */]
|
|
1073
1106
|
}),
|
|
1074
|
-
|
|
1075
|
-
eventName:
|
|
1107
|
+
import_zod13.z.object({
|
|
1108
|
+
eventName: import_zod13.z.literal("taskCompleted" /* TaskCompleted */),
|
|
1076
1109
|
payload: rooCodeEventsSchema.shape["taskCompleted" /* TaskCompleted */]
|
|
1077
1110
|
}),
|
|
1078
|
-
|
|
1079
|
-
eventName:
|
|
1111
|
+
import_zod13.z.object({
|
|
1112
|
+
eventName: import_zod13.z.literal("taskTokenUsageUpdated" /* TaskTokenUsageUpdated */),
|
|
1080
1113
|
payload: rooCodeEventsSchema.shape["taskTokenUsageUpdated" /* TaskTokenUsageUpdated */]
|
|
1081
1114
|
})
|
|
1082
1115
|
]);
|
|
@@ -1093,48 +1126,48 @@ var IpcOrigin = /* @__PURE__ */ ((IpcOrigin2) => {
|
|
|
1093
1126
|
IpcOrigin2["Server"] = "server";
|
|
1094
1127
|
return IpcOrigin2;
|
|
1095
1128
|
})(IpcOrigin || {});
|
|
1096
|
-
var ipcMessageSchema =
|
|
1097
|
-
|
|
1098
|
-
type:
|
|
1099
|
-
origin:
|
|
1129
|
+
var ipcMessageSchema = import_zod13.z.discriminatedUnion("type", [
|
|
1130
|
+
import_zod13.z.object({
|
|
1131
|
+
type: import_zod13.z.literal("Ack" /* Ack */),
|
|
1132
|
+
origin: import_zod13.z.literal("server" /* Server */),
|
|
1100
1133
|
data: ackSchema
|
|
1101
1134
|
}),
|
|
1102
|
-
|
|
1103
|
-
type:
|
|
1104
|
-
origin:
|
|
1105
|
-
clientId:
|
|
1135
|
+
import_zod13.z.object({
|
|
1136
|
+
type: import_zod13.z.literal("TaskCommand" /* TaskCommand */),
|
|
1137
|
+
origin: import_zod13.z.literal("client" /* Client */),
|
|
1138
|
+
clientId: import_zod13.z.string(),
|
|
1106
1139
|
data: taskCommandSchema
|
|
1107
1140
|
}),
|
|
1108
|
-
|
|
1109
|
-
type:
|
|
1110
|
-
origin:
|
|
1111
|
-
relayClientId:
|
|
1141
|
+
import_zod13.z.object({
|
|
1142
|
+
type: import_zod13.z.literal("TaskEvent" /* TaskEvent */),
|
|
1143
|
+
origin: import_zod13.z.literal("server" /* Server */),
|
|
1144
|
+
relayClientId: import_zod13.z.string().optional(),
|
|
1112
1145
|
data: taskEventSchema
|
|
1113
1146
|
})
|
|
1114
1147
|
]);
|
|
1115
1148
|
|
|
1116
1149
|
// src/terminal.ts
|
|
1117
|
-
var
|
|
1118
|
-
var commandExecutionStatusSchema =
|
|
1119
|
-
|
|
1120
|
-
executionId:
|
|
1121
|
-
status:
|
|
1122
|
-
pid:
|
|
1123
|
-
command:
|
|
1150
|
+
var import_zod14 = require("zod");
|
|
1151
|
+
var commandExecutionStatusSchema = import_zod14.z.discriminatedUnion("status", [
|
|
1152
|
+
import_zod14.z.object({
|
|
1153
|
+
executionId: import_zod14.z.string(),
|
|
1154
|
+
status: import_zod14.z.literal("started"),
|
|
1155
|
+
pid: import_zod14.z.number().optional(),
|
|
1156
|
+
command: import_zod14.z.string()
|
|
1124
1157
|
}),
|
|
1125
|
-
|
|
1126
|
-
executionId:
|
|
1127
|
-
status:
|
|
1128
|
-
output:
|
|
1158
|
+
import_zod14.z.object({
|
|
1159
|
+
executionId: import_zod14.z.string(),
|
|
1160
|
+
status: import_zod14.z.literal("output"),
|
|
1161
|
+
output: import_zod14.z.string()
|
|
1129
1162
|
}),
|
|
1130
|
-
|
|
1131
|
-
executionId:
|
|
1132
|
-
status:
|
|
1133
|
-
exitCode:
|
|
1163
|
+
import_zod14.z.object({
|
|
1164
|
+
executionId: import_zod14.z.string(),
|
|
1165
|
+
status: import_zod14.z.literal("exited"),
|
|
1166
|
+
exitCode: import_zod14.z.number().optional()
|
|
1134
1167
|
}),
|
|
1135
|
-
|
|
1136
|
-
executionId:
|
|
1137
|
-
status:
|
|
1168
|
+
import_zod14.z.object({
|
|
1169
|
+
executionId: import_zod14.z.string(),
|
|
1170
|
+
status: import_zod14.z.literal("fallback")
|
|
1138
1171
|
})
|
|
1139
1172
|
]);
|
|
1140
1173
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1143,6 +1176,7 @@ var commandExecutionStatusSchema = import_zod13.z.discriminatedUnion("status", [
|
|
|
1143
1176
|
GLOBAL_STATE_KEYS,
|
|
1144
1177
|
IpcMessageType,
|
|
1145
1178
|
IpcOrigin,
|
|
1179
|
+
ORGANIZATION_ALLOW_ALL,
|
|
1146
1180
|
PROVIDER_SETTINGS_KEYS,
|
|
1147
1181
|
RooCodeEventName,
|
|
1148
1182
|
SECRET_STATE_KEYS,
|
|
@@ -1184,6 +1218,8 @@ var commandExecutionStatusSchema = import_zod13.z.discriminatedUnion("status", [
|
|
|
1184
1218
|
modelInfoSchema,
|
|
1185
1219
|
modelParameters,
|
|
1186
1220
|
modelParametersSchema,
|
|
1221
|
+
organizationAllowListSchema,
|
|
1222
|
+
organizationSettingsSchema,
|
|
1187
1223
|
promptComponentSchema,
|
|
1188
1224
|
providerNames,
|
|
1189
1225
|
providerNamesSchema,
|