@roo-code/types 1.90.0 → 1.91.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
@@ -152,7 +152,6 @@ var toolNames = [
152
152
  "apply_patch",
153
153
  "search_files",
154
154
  "list_files",
155
- "list_code_definition_names",
156
155
  "browser_action",
157
156
  "use_mcp_tool",
158
157
  "access_mcp_resource",
@@ -2892,7 +2891,7 @@ var ollamaDefaultModelInfo = {
2892
2891
  };
2893
2892
 
2894
2893
  // src/providers/openai.ts
2895
- var openAiNativeDefaultModelId = "gpt-5.1";
2894
+ var openAiNativeDefaultModelId = "gpt-5.1-codex-max";
2896
2895
  var openAiNativeModels = {
2897
2896
  "gpt-5.1-codex-max": {
2898
2897
  maxTokens: 128e3,
@@ -2904,7 +2903,7 @@ var openAiNativeModels = {
2904
2903
  supportsPromptCache: true,
2905
2904
  promptCacheRetention: "24h",
2906
2905
  supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
2907
- reasoningEffort: "medium",
2906
+ reasoningEffort: "xhigh",
2908
2907
  inputPrice: 1.25,
2909
2908
  outputPrice: 10,
2910
2909
  cacheReadsPrice: 0.125,
@@ -2912,6 +2911,41 @@ var openAiNativeModels = {
2912
2911
  tiers: [{ name: "priority", contextWindow: 4e5, inputPrice: 2.5, outputPrice: 20, cacheReadsPrice: 0.25 }],
2913
2912
  description: "GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks"
2914
2913
  },
2914
+ "gpt-5.2": {
2915
+ maxTokens: 128e3,
2916
+ contextWindow: 4e5,
2917
+ supportsNativeTools: true,
2918
+ includedTools: ["apply_patch"],
2919
+ excludedTools: ["apply_diff", "write_to_file"],
2920
+ supportsImages: true,
2921
+ supportsPromptCache: true,
2922
+ promptCacheRetention: "24h",
2923
+ supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"],
2924
+ reasoningEffort: "medium",
2925
+ inputPrice: 1.75,
2926
+ outputPrice: 14,
2927
+ cacheReadsPrice: 0.175,
2928
+ supportsVerbosity: true,
2929
+ supportsTemperature: false,
2930
+ tiers: [
2931
+ { name: "flex", contextWindow: 4e5, inputPrice: 0.875, outputPrice: 7, cacheReadsPrice: 0.0875 },
2932
+ { name: "priority", contextWindow: 4e5, inputPrice: 3.5, outputPrice: 28, cacheReadsPrice: 0.35 }
2933
+ ],
2934
+ description: "GPT-5.2: Our flagship model for coding and agentic tasks across industries"
2935
+ },
2936
+ "gpt-5.2-chat-latest": {
2937
+ maxTokens: 16384,
2938
+ contextWindow: 128e3,
2939
+ supportsNativeTools: true,
2940
+ includedTools: ["apply_patch"],
2941
+ excludedTools: ["apply_diff", "write_to_file"],
2942
+ supportsImages: true,
2943
+ supportsPromptCache: true,
2944
+ inputPrice: 1.75,
2945
+ outputPrice: 14,
2946
+ cacheReadsPrice: 0.175,
2947
+ description: "GPT-5.2 Chat: Optimized for conversational AI and chat use cases"
2948
+ },
2915
2949
  "gpt-5.1": {
2916
2950
  maxTokens: 128e3,
2917
2951
  contextWindow: 4e5,
@@ -4685,14 +4719,24 @@ var mainlandZAiModels = {
4685
4719
  var ZAI_DEFAULT_TEMPERATURE = 0.6;
4686
4720
  var zaiApiLineConfigs = {
4687
4721
  international_coding: {
4688
- name: "International",
4722
+ name: "International Coding",
4689
4723
  baseUrl: "https://api.z.ai/api/coding/paas/v4",
4690
4724
  isChina: false
4691
4725
  },
4692
4726
  china_coding: {
4693
- name: "China",
4727
+ name: "China Coding",
4694
4728
  baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
4695
4729
  isChina: true
4730
+ },
4731
+ international_api: {
4732
+ name: "International API",
4733
+ baseUrl: "https://api.z.ai/api/paas/v4",
4734
+ isChina: false
4735
+ },
4736
+ china_api: {
4737
+ name: "China API",
4738
+ baseUrl: "https://open.bigmodel.cn/api/paas/v4",
4739
+ isChina: true
4696
4740
  }
4697
4741
  };
4698
4742
 
@@ -5067,7 +5111,7 @@ var cerebrasSchema = apiModelIdProviderModelSchema.extend({
5067
5111
  var sambaNovaSchema = apiModelIdProviderModelSchema.extend({
5068
5112
  sambaNovaApiKey: z8.string().optional()
5069
5113
  });
5070
- var zaiApiLineSchema = z8.enum(["international_coding", "china_coding"]);
5114
+ var zaiApiLineSchema = z8.enum(["international_coding", "china_coding", "international_api", "china_api"]);
5071
5115
  var zaiSchema = apiModelIdProviderModelSchema.extend({
5072
5116
  zaiApiKey: z8.string().optional(),
5073
5117
  zaiApiLine: zaiApiLineSchema.optional()
@@ -5916,6 +5960,13 @@ var globalSettingsSchema = z14.object({
5916
5960
  includeTaskHistoryInEnhance: z14.boolean().optional(),
5917
5961
  historyPreviewCollapsed: z14.boolean().optional(),
5918
5962
  reasoningBlockCollapsed: z14.boolean().optional(),
5963
+ /**
5964
+ * Controls the keyboard behavior for sending messages in the chat input.
5965
+ * - "send": Enter sends message, Shift+Enter creates newline (default)
5966
+ * - "newline": Enter creates newline, Shift+Enter/Ctrl+Enter sends message
5967
+ * @default "send"
5968
+ */
5969
+ enterBehavior: z14.enum(["send", "newline"]).optional(),
5919
5970
  profileThresholds: z14.record(z14.string(), z14.number()).optional(),
5920
5971
  hasOpenedModeSelector: z14.boolean().optional(),
5921
5972
  lastModeExportPath: z14.string().optional(),
@@ -6122,11 +6173,13 @@ var organizationDefaultSettingsSchema = globalSettingsSchema.pick({
6122
6173
  terminalShellIntegrationTimeout: z16.number().int().nonnegative().optional()
6123
6174
  })
6124
6175
  );
6176
+ var workspaceTaskVisibilitySchema = z16.enum(["all", "list-only", "full-lockdown"]);
6125
6177
  var organizationCloudSettingsSchema = z16.object({
6126
6178
  recordTaskMessages: z16.boolean().optional(),
6127
6179
  enableTaskSharing: z16.boolean().optional(),
6128
6180
  taskShareExpirationDays: z16.number().int().positive().optional(),
6129
- allowMembersViewAllTasks: z16.boolean().optional()
6181
+ allowMembersViewAllTasks: z16.boolean().optional(),
6182
+ workspaceTaskVisibility: workspaceTaskVisibilitySchema.optional()
6130
6183
  });
6131
6184
  var organizationFeaturesSchema = z16.object({
6132
6185
  roomoteControlEnabled: z16.boolean().optional()