@roo-code/types 1.43.0 → 1.44.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.js CHANGED
@@ -116,7 +116,8 @@ var providerNames = [
116
116
  "litellm",
117
117
  "huggingface",
118
118
  "cerebras",
119
- "sambanova"
119
+ "sambanova",
120
+ "zai"
120
121
  ];
121
122
  var providerNamesSchema = z3.enum(providerNames);
122
123
  var providerSettingsEntrySchema = z3.object({
@@ -284,6 +285,10 @@ var cerebrasSchema = apiModelIdProviderModelSchema.extend({
284
285
  var sambaNovaSchema = apiModelIdProviderModelSchema.extend({
285
286
  sambaNovaApiKey: z3.string().optional()
286
287
  });
288
+ var zaiSchema = apiModelIdProviderModelSchema.extend({
289
+ zaiApiKey: z3.string().optional(),
290
+ zaiApiLine: z3.union([z3.literal("china"), z3.literal("international")]).optional()
291
+ });
287
292
  var defaultSchema = z3.object({
288
293
  apiProvider: z3.undefined()
289
294
  });
@@ -316,6 +321,7 @@ var providerSettingsSchemaDiscriminated = z3.discriminatedUnion("apiProvider", [
316
321
  litellmSchema.merge(z3.object({ apiProvider: z3.literal("litellm") })),
317
322
  cerebrasSchema.merge(z3.object({ apiProvider: z3.literal("cerebras") })),
318
323
  sambaNovaSchema.merge(z3.object({ apiProvider: z3.literal("sambanova") })),
324
+ zaiSchema.merge(z3.object({ apiProvider: z3.literal("zai") })),
319
325
  defaultSchema
320
326
  ]);
321
327
  var providerSettingsSchema = z3.object({
@@ -348,6 +354,7 @@ var providerSettingsSchema = z3.object({
348
354
  ...litellmSchema.shape,
349
355
  ...cerebrasSchema.shape,
350
356
  ...sambaNovaSchema.shape,
357
+ ...zaiSchema.shape,
351
358
  ...codebaseIndexProviderSchema.shape
352
359
  });
353
360
  var providerSettingsWithIdSchema = providerSettingsSchema.extend({ id: z3.string().optional() });
@@ -402,12 +409,13 @@ var historyItemSchema = z4.object({
402
409
 
403
410
  // src/experiment.ts
404
411
  import { z as z5 } from "zod";
405
- var experimentIds = ["powerSteering", "multiFileApplyDiff", "preventFocusDisruption"];
412
+ var experimentIds = ["powerSteering", "multiFileApplyDiff", "preventFocusDisruption", "assistantMessageParser"];
406
413
  var experimentIdsSchema = z5.enum(experimentIds);
407
414
  var experimentsSchema = z5.object({
408
415
  powerSteering: z5.boolean().optional(),
409
416
  multiFileApplyDiff: z5.boolean().optional(),
410
- preventFocusDisruption: z5.boolean().optional()
417
+ preventFocusDisruption: z5.boolean().optional(),
418
+ assistantMessageParser: z5.boolean().optional()
411
419
  });
412
420
 
413
421
  // src/telemetry.ts
@@ -934,6 +942,7 @@ var globalSettingsSchema = z11.object({
934
942
  telemetrySetting: telemetrySettingsSchema.optional(),
935
943
  mcpEnabled: z11.boolean().optional(),
936
944
  enableMcpServerCreation: z11.boolean().optional(),
945
+ remoteControlEnabled: z11.boolean().optional(),
937
946
  mode: z11.string().optional(),
938
947
  modeApiConfigs: z11.record(z11.string(), z11.string()).optional(),
939
948
  customModes: z11.array(modeConfigSchema).optional(),
@@ -1043,6 +1052,7 @@ var EVALS_SETTINGS = {
1043
1052
  language: "en",
1044
1053
  telemetrySetting: "enabled",
1045
1054
  mcpEnabled: false,
1055
+ remoteControlEnabled: false,
1046
1056
  mode: "code",
1047
1057
  // "architect",
1048
1058
  customModes: []
@@ -3918,6 +3928,99 @@ var doubaoModels = {
3918
3928
  var doubaoDefaultModelInfo = doubaoModels[doubaoDefaultModelId];
3919
3929
  var DOUBAO_API_BASE_URL = "https://ark.cn-beijing.volces.com/api/v3";
3920
3930
  var DOUBAO_API_CHAT_PATH = "/chat/completions";
3931
+
3932
+ // src/providers/zai.ts
3933
+ var internationalZAiDefaultModelId = "glm-4.5";
3934
+ var internationalZAiModels = {
3935
+ "glm-4.5": {
3936
+ maxTokens: 98304,
3937
+ contextWindow: 131072,
3938
+ supportsImages: false,
3939
+ supportsPromptCache: true,
3940
+ inputPrice: 0.6,
3941
+ outputPrice: 2.2,
3942
+ cacheWritesPrice: 0,
3943
+ cacheReadsPrice: 0.11,
3944
+ description: "GLM-4.5 is Zhipu's latest featured model. Its comprehensive capabilities in reasoning, coding, and agent reach the state-of-the-art (SOTA) level among open-source models, with a context length of up to 128k."
3945
+ },
3946
+ "glm-4.5-air": {
3947
+ maxTokens: 98304,
3948
+ contextWindow: 131072,
3949
+ supportsImages: false,
3950
+ supportsPromptCache: true,
3951
+ inputPrice: 0.2,
3952
+ outputPrice: 1.1,
3953
+ cacheWritesPrice: 0,
3954
+ cacheReadsPrice: 0.03,
3955
+ description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models."
3956
+ }
3957
+ };
3958
+ var mainlandZAiDefaultModelId = "glm-4.5";
3959
+ var mainlandZAiModels = {
3960
+ "glm-4.5": {
3961
+ maxTokens: 98304,
3962
+ contextWindow: 131072,
3963
+ supportsImages: false,
3964
+ supportsPromptCache: true,
3965
+ inputPrice: 0.29,
3966
+ outputPrice: 1.14,
3967
+ cacheWritesPrice: 0,
3968
+ cacheReadsPrice: 0.057,
3969
+ description: "GLM-4.5 is Zhipu's latest featured model. Its comprehensive capabilities in reasoning, coding, and agent reach the state-of-the-art (SOTA) level among open-source models, with a context length of up to 128k.",
3970
+ tiers: [
3971
+ {
3972
+ contextWindow: 32e3,
3973
+ inputPrice: 0.21,
3974
+ outputPrice: 1,
3975
+ cacheReadsPrice: 0.043
3976
+ },
3977
+ {
3978
+ contextWindow: 128e3,
3979
+ inputPrice: 0.29,
3980
+ outputPrice: 1.14,
3981
+ cacheReadsPrice: 0.057
3982
+ },
3983
+ {
3984
+ contextWindow: Infinity,
3985
+ inputPrice: 0.29,
3986
+ outputPrice: 1.14,
3987
+ cacheReadsPrice: 0.057
3988
+ }
3989
+ ]
3990
+ },
3991
+ "glm-4.5-air": {
3992
+ maxTokens: 98304,
3993
+ contextWindow: 131072,
3994
+ supportsImages: false,
3995
+ supportsPromptCache: true,
3996
+ inputPrice: 0.1,
3997
+ outputPrice: 0.6,
3998
+ cacheWritesPrice: 0,
3999
+ cacheReadsPrice: 0.02,
4000
+ description: "GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models.",
4001
+ tiers: [
4002
+ {
4003
+ contextWindow: 32e3,
4004
+ inputPrice: 0.07,
4005
+ outputPrice: 0.4,
4006
+ cacheReadsPrice: 0.014
4007
+ },
4008
+ {
4009
+ contextWindow: 128e3,
4010
+ inputPrice: 0.1,
4011
+ outputPrice: 0.6,
4012
+ cacheReadsPrice: 0.02
4013
+ },
4014
+ {
4015
+ contextWindow: Infinity,
4016
+ inputPrice: 0.1,
4017
+ outputPrice: 0.6,
4018
+ cacheReadsPrice: 0.02
4019
+ }
4020
+ ]
4021
+ }
4022
+ };
4023
+ var ZAI_DEFAULT_TEMPERATURE = 0;
3921
4024
  export {
3922
4025
  ANTHROPIC_DEFAULT_MAX_TOKENS,
3923
4026
  ANTHROPIC_STYLE_PROVIDERS,
@@ -3970,6 +4073,7 @@ export {
3970
4073
  TaskCommandName,
3971
4074
  TelemetryEventName,
3972
4075
  VERTEX_REGIONS,
4076
+ ZAI_DEFAULT_TEMPERATURE,
3973
4077
  ackSchema,
3974
4078
  anthropicDefaultModelId,
3975
4079
  anthropicModels,
@@ -4026,6 +4130,8 @@ export {
4026
4130
  groupOptionsSchema,
4027
4131
  historyItemSchema,
4028
4132
  installMarketplaceItemOptionsSchema,
4133
+ internationalZAiDefaultModelId,
4134
+ internationalZAiModels,
4029
4135
  ipcMessageSchema,
4030
4136
  isBlockingAsk,
4031
4137
  isGlobalStateKey,
@@ -4038,6 +4144,8 @@ export {
4038
4144
  languagesSchema,
4039
4145
  litellmDefaultModelId,
4040
4146
  litellmDefaultModelInfo,
4147
+ mainlandZAiDefaultModelId,
4148
+ mainlandZAiModels,
4041
4149
  marketplaceItemSchema,
4042
4150
  marketplaceItemTypeSchema,
4043
4151
  mcpExecutionStatusSchema,