@roo-code/types 1.34.0 → 1.36.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.d.cts CHANGED
@@ -3823,7 +3823,7 @@ declare const PROVIDER_SETTINGS_KEYS: ["reasoningEffort", "codebaseIndexOpenAiCo
3823
3823
  declare const MODEL_ID_KEYS: Partial<keyof ProviderSettings>[];
3824
3824
  declare const getModelId: (settings: ProviderSettings) => string | undefined;
3825
3825
  declare const ANTHROPIC_STYLE_PROVIDERS: ProviderName[];
3826
- declare const getApiProtocol: (provider: ProviderName | undefined) => "anthropic" | "openai";
3826
+ declare const getApiProtocol: (provider: ProviderName | undefined, modelId?: string) => "anthropic" | "openai";
3827
3827
 
3828
3828
  /**
3829
3829
  * GlobalSettings
@@ -3905,6 +3905,8 @@ declare const globalSettingsSchema: z.ZodObject<{
3905
3905
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3906
3906
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3907
3907
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
3908
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3909
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
3908
3910
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3909
3911
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
3910
3912
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -4178,6 +4180,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4178
4180
  allowedCommands?: string[] | undefined;
4179
4181
  deniedCommands?: string[] | undefined;
4180
4182
  commandExecutionTimeout?: number | undefined;
4183
+ commandTimeoutAllowlist?: string[] | undefined;
4184
+ preventCompletionWithOpenTodos?: boolean | undefined;
4181
4185
  allowedMaxRequests?: number | null | undefined;
4182
4186
  autoCondenseContext?: boolean | undefined;
4183
4187
  autoCondenseContextPercent?: number | undefined;
@@ -4317,6 +4321,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4317
4321
  allowedCommands?: string[] | undefined;
4318
4322
  deniedCommands?: string[] | undefined;
4319
4323
  commandExecutionTimeout?: number | undefined;
4324
+ commandTimeoutAllowlist?: string[] | undefined;
4325
+ preventCompletionWithOpenTodos?: boolean | undefined;
4320
4326
  allowedMaxRequests?: number | null | undefined;
4321
4327
  autoCondenseContext?: boolean | undefined;
4322
4328
  autoCondenseContextPercent?: number | undefined;
@@ -4395,7 +4401,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4395
4401
  lastModeImportPath?: string | undefined;
4396
4402
  }>;
4397
4403
  type GlobalSettings = z.infer<typeof globalSettingsSchema>;
4398
- declare const GLOBAL_SETTINGS_KEYS: ["diffEnabled", "fuzzyMatchThreshold", "rateLimitSeconds", "language", "mode", "customInstructions", "customModes", "currentApiConfigName", "listApiConfigMeta", "pinnedApiConfigs", "lastShownAnnouncementId", "taskHistory", "condensingApiConfigId", "customCondensingPrompt", "autoApprovalEnabled", "alwaysAllowReadOnly", "alwaysAllowReadOnlyOutsideWorkspace", "alwaysAllowWrite", "alwaysAllowWriteOutsideWorkspace", "alwaysAllowWriteProtected", "writeDelayMs", "alwaysAllowBrowser", "alwaysApproveResubmit", "requestDelaySeconds", "alwaysAllowMcp", "alwaysAllowModeSwitch", "alwaysAllowSubtasks", "alwaysAllowExecute", "alwaysAllowFollowupQuestions", "followupAutoApproveTimeoutMs", "alwaysAllowUpdateTodoList", "allowedCommands", "deniedCommands", "commandExecutionTimeout", "allowedMaxRequests", "autoCondenseContext", "autoCondenseContextPercent", "maxConcurrentFileReads", "browserToolEnabled", "browserViewportSize", "screenshotQuality", "remoteBrowserEnabled", "remoteBrowserHost", "cachedChromeHostUrl", "enableCheckpoints", "ttsEnabled", "ttsSpeed", "soundEnabled", "soundVolume", "maxOpenTabsContext", "maxWorkspaceFiles", "showRooIgnoredFiles", "maxReadFileLine", "terminalOutputLineLimit", "terminalShellIntegrationTimeout", "terminalShellIntegrationDisabled", "terminalCommandDelay", "terminalPowershellCounter", "terminalZshClearEolMark", "terminalZshOhMy", "terminalZshP10k", "terminalZdotdir", "terminalCompressProgressBar", "experiments", "codebaseIndexModels", "codebaseIndexConfig", "telemetrySetting", "mcpEnabled", "enableMcpServerCreation", "modeApiConfigs", "customModePrompts", "customSupportPrompts", "enhancementApiConfigId", "historyPreviewCollapsed", "profileThresholds", "hasOpenedModeSelector", "lastModeExportPath", "lastModeImportPath"];
4404
+ declare const GLOBAL_SETTINGS_KEYS: ["diffEnabled", "fuzzyMatchThreshold", "rateLimitSeconds", "language", "mode", "customInstructions", "customModes", "currentApiConfigName", "listApiConfigMeta", "pinnedApiConfigs", "lastShownAnnouncementId", "taskHistory", "condensingApiConfigId", "customCondensingPrompt", "autoApprovalEnabled", "alwaysAllowReadOnly", "alwaysAllowReadOnlyOutsideWorkspace", "alwaysAllowWrite", "alwaysAllowWriteOutsideWorkspace", "alwaysAllowWriteProtected", "writeDelayMs", "alwaysAllowBrowser", "alwaysApproveResubmit", "requestDelaySeconds", "alwaysAllowMcp", "alwaysAllowModeSwitch", "alwaysAllowSubtasks", "alwaysAllowExecute", "alwaysAllowFollowupQuestions", "followupAutoApproveTimeoutMs", "alwaysAllowUpdateTodoList", "allowedCommands", "deniedCommands", "commandExecutionTimeout", "commandTimeoutAllowlist", "preventCompletionWithOpenTodos", "allowedMaxRequests", "autoCondenseContext", "autoCondenseContextPercent", "maxConcurrentFileReads", "browserToolEnabled", "browserViewportSize", "screenshotQuality", "remoteBrowserEnabled", "remoteBrowserHost", "cachedChromeHostUrl", "enableCheckpoints", "ttsEnabled", "ttsSpeed", "soundEnabled", "soundVolume", "maxOpenTabsContext", "maxWorkspaceFiles", "showRooIgnoredFiles", "maxReadFileLine", "terminalOutputLineLimit", "terminalShellIntegrationTimeout", "terminalShellIntegrationDisabled", "terminalCommandDelay", "terminalPowershellCounter", "terminalZshClearEolMark", "terminalZshOhMy", "terminalZshP10k", "terminalZdotdir", "terminalCompressProgressBar", "experiments", "codebaseIndexModels", "codebaseIndexConfig", "telemetrySetting", "mcpEnabled", "enableMcpServerCreation", "modeApiConfigs", "customModePrompts", "customSupportPrompts", "enhancementApiConfigId", "historyPreviewCollapsed", "profileThresholds", "hasOpenedModeSelector", "lastModeExportPath", "lastModeImportPath"];
4399
4405
  /**
4400
4406
  * RooCodeSettings
4401
4407
  */
@@ -4667,6 +4673,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
4667
4673
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4668
4674
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4669
4675
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
4676
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4677
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
4670
4678
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4671
4679
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
4672
4680
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -5054,6 +5062,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5054
5062
  allowedCommands?: string[] | undefined;
5055
5063
  deniedCommands?: string[] | undefined;
5056
5064
  commandExecutionTimeout?: number | undefined;
5065
+ commandTimeoutAllowlist?: string[] | undefined;
5066
+ preventCompletionWithOpenTodos?: boolean | undefined;
5057
5067
  allowedMaxRequests?: number | null | undefined;
5058
5068
  autoCondenseContext?: boolean | undefined;
5059
5069
  autoCondenseContextPercent?: number | undefined;
@@ -5307,6 +5317,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5307
5317
  allowedCommands?: string[] | undefined;
5308
5318
  deniedCommands?: string[] | undefined;
5309
5319
  commandExecutionTimeout?: number | undefined;
5320
+ commandTimeoutAllowlist?: string[] | undefined;
5321
+ preventCompletionWithOpenTodos?: boolean | undefined;
5310
5322
  allowedMaxRequests?: number | null | undefined;
5311
5323
  autoCondenseContext?: boolean | undefined;
5312
5324
  autoCondenseContextPercent?: number | undefined;
@@ -6306,6 +6318,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6306
6318
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6307
6319
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6308
6320
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
6321
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6322
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
6309
6323
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6310
6324
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
6311
6325
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -6693,6 +6707,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6693
6707
  allowedCommands?: string[] | undefined;
6694
6708
  deniedCommands?: string[] | undefined;
6695
6709
  commandExecutionTimeout?: number | undefined;
6710
+ commandTimeoutAllowlist?: string[] | undefined;
6711
+ preventCompletionWithOpenTodos?: boolean | undefined;
6696
6712
  allowedMaxRequests?: number | null | undefined;
6697
6713
  autoCondenseContext?: boolean | undefined;
6698
6714
  autoCondenseContextPercent?: number | undefined;
@@ -6946,6 +6962,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6946
6962
  allowedCommands?: string[] | undefined;
6947
6963
  deniedCommands?: string[] | undefined;
6948
6964
  commandExecutionTimeout?: number | undefined;
6965
+ commandTimeoutAllowlist?: string[] | undefined;
6966
+ preventCompletionWithOpenTodos?: boolean | undefined;
6949
6967
  allowedMaxRequests?: number | null | undefined;
6950
6968
  autoCondenseContext?: boolean | undefined;
6951
6969
  autoCondenseContextPercent?: number | undefined;
@@ -7205,6 +7223,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7205
7223
  allowedCommands?: string[] | undefined;
7206
7224
  deniedCommands?: string[] | undefined;
7207
7225
  commandExecutionTimeout?: number | undefined;
7226
+ commandTimeoutAllowlist?: string[] | undefined;
7227
+ preventCompletionWithOpenTodos?: boolean | undefined;
7208
7228
  allowedMaxRequests?: number | null | undefined;
7209
7229
  autoCondenseContext?: boolean | undefined;
7210
7230
  autoCondenseContextPercent?: number | undefined;
@@ -7463,6 +7483,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7463
7483
  allowedCommands?: string[] | undefined;
7464
7484
  deniedCommands?: string[] | undefined;
7465
7485
  commandExecutionTimeout?: number | undefined;
7486
+ commandTimeoutAllowlist?: string[] | undefined;
7487
+ preventCompletionWithOpenTodos?: boolean | undefined;
7466
7488
  allowedMaxRequests?: number | null | undefined;
7467
7489
  autoCondenseContext?: boolean | undefined;
7468
7490
  autoCondenseContextPercent?: number | undefined;
@@ -7724,6 +7746,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7724
7746
  allowedCommands?: string[] | undefined;
7725
7747
  deniedCommands?: string[] | undefined;
7726
7748
  commandExecutionTimeout?: number | undefined;
7749
+ commandTimeoutAllowlist?: string[] | undefined;
7750
+ preventCompletionWithOpenTodos?: boolean | undefined;
7727
7751
  allowedMaxRequests?: number | null | undefined;
7728
7752
  autoCondenseContext?: boolean | undefined;
7729
7753
  autoCondenseContextPercent?: number | undefined;
@@ -7985,6 +8009,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7985
8009
  allowedCommands?: string[] | undefined;
7986
8010
  deniedCommands?: string[] | undefined;
7987
8011
  commandExecutionTimeout?: number | undefined;
8012
+ commandTimeoutAllowlist?: string[] | undefined;
8013
+ preventCompletionWithOpenTodos?: boolean | undefined;
7988
8014
  allowedMaxRequests?: number | null | undefined;
7989
8015
  autoCondenseContext?: boolean | undefined;
7990
8016
  autoCondenseContextPercent?: number | undefined;
@@ -8871,6 +8897,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8871
8897
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8872
8898
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8873
8899
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
8900
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8901
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
8874
8902
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8875
8903
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
8876
8904
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -9258,6 +9286,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9258
9286
  allowedCommands?: string[] | undefined;
9259
9287
  deniedCommands?: string[] | undefined;
9260
9288
  commandExecutionTimeout?: number | undefined;
9289
+ commandTimeoutAllowlist?: string[] | undefined;
9290
+ preventCompletionWithOpenTodos?: boolean | undefined;
9261
9291
  allowedMaxRequests?: number | null | undefined;
9262
9292
  autoCondenseContext?: boolean | undefined;
9263
9293
  autoCondenseContextPercent?: number | undefined;
@@ -9511,6 +9541,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9511
9541
  allowedCommands?: string[] | undefined;
9512
9542
  deniedCommands?: string[] | undefined;
9513
9543
  commandExecutionTimeout?: number | undefined;
9544
+ commandTimeoutAllowlist?: string[] | undefined;
9545
+ preventCompletionWithOpenTodos?: boolean | undefined;
9514
9546
  allowedMaxRequests?: number | null | undefined;
9515
9547
  autoCondenseContext?: boolean | undefined;
9516
9548
  autoCondenseContextPercent?: number | undefined;
@@ -9770,6 +9802,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9770
9802
  allowedCommands?: string[] | undefined;
9771
9803
  deniedCommands?: string[] | undefined;
9772
9804
  commandExecutionTimeout?: number | undefined;
9805
+ commandTimeoutAllowlist?: string[] | undefined;
9806
+ preventCompletionWithOpenTodos?: boolean | undefined;
9773
9807
  allowedMaxRequests?: number | null | undefined;
9774
9808
  autoCondenseContext?: boolean | undefined;
9775
9809
  autoCondenseContextPercent?: number | undefined;
@@ -10028,6 +10062,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10028
10062
  allowedCommands?: string[] | undefined;
10029
10063
  deniedCommands?: string[] | undefined;
10030
10064
  commandExecutionTimeout?: number | undefined;
10065
+ commandTimeoutAllowlist?: string[] | undefined;
10066
+ preventCompletionWithOpenTodos?: boolean | undefined;
10031
10067
  allowedMaxRequests?: number | null | undefined;
10032
10068
  autoCondenseContext?: boolean | undefined;
10033
10069
  autoCondenseContextPercent?: number | undefined;
@@ -10289,6 +10325,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10289
10325
  allowedCommands?: string[] | undefined;
10290
10326
  deniedCommands?: string[] | undefined;
10291
10327
  commandExecutionTimeout?: number | undefined;
10328
+ commandTimeoutAllowlist?: string[] | undefined;
10329
+ preventCompletionWithOpenTodos?: boolean | undefined;
10292
10330
  allowedMaxRequests?: number | null | undefined;
10293
10331
  autoCondenseContext?: boolean | undefined;
10294
10332
  autoCondenseContextPercent?: number | undefined;
@@ -10550,6 +10588,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10550
10588
  allowedCommands?: string[] | undefined;
10551
10589
  deniedCommands?: string[] | undefined;
10552
10590
  commandExecutionTimeout?: number | undefined;
10591
+ commandTimeoutAllowlist?: string[] | undefined;
10592
+ preventCompletionWithOpenTodos?: boolean | undefined;
10553
10593
  allowedMaxRequests?: number | null | undefined;
10554
10594
  autoCondenseContext?: boolean | undefined;
10555
10595
  autoCondenseContextPercent?: number | undefined;
@@ -10833,6 +10873,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10833
10873
  allowedCommands?: string[] | undefined;
10834
10874
  deniedCommands?: string[] | undefined;
10835
10875
  commandExecutionTimeout?: number | undefined;
10876
+ commandTimeoutAllowlist?: string[] | undefined;
10877
+ preventCompletionWithOpenTodos?: boolean | undefined;
10836
10878
  allowedMaxRequests?: number | null | undefined;
10837
10879
  autoCondenseContext?: boolean | undefined;
10838
10880
  autoCondenseContextPercent?: number | undefined;
@@ -11105,6 +11147,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11105
11147
  allowedCommands?: string[] | undefined;
11106
11148
  deniedCommands?: string[] | undefined;
11107
11149
  commandExecutionTimeout?: number | undefined;
11150
+ commandTimeoutAllowlist?: string[] | undefined;
11151
+ preventCompletionWithOpenTodos?: boolean | undefined;
11108
11152
  allowedMaxRequests?: number | null | undefined;
11109
11153
  autoCondenseContext?: boolean | undefined;
11110
11154
  autoCondenseContextPercent?: number | undefined;
package/dist/index.d.ts CHANGED
@@ -3823,7 +3823,7 @@ declare const PROVIDER_SETTINGS_KEYS: ["reasoningEffort", "codebaseIndexOpenAiCo
3823
3823
  declare const MODEL_ID_KEYS: Partial<keyof ProviderSettings>[];
3824
3824
  declare const getModelId: (settings: ProviderSettings) => string | undefined;
3825
3825
  declare const ANTHROPIC_STYLE_PROVIDERS: ProviderName[];
3826
- declare const getApiProtocol: (provider: ProviderName | undefined) => "anthropic" | "openai";
3826
+ declare const getApiProtocol: (provider: ProviderName | undefined, modelId?: string) => "anthropic" | "openai";
3827
3827
 
3828
3828
  /**
3829
3829
  * GlobalSettings
@@ -3905,6 +3905,8 @@ declare const globalSettingsSchema: z.ZodObject<{
3905
3905
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3906
3906
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3907
3907
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
3908
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3909
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
3908
3910
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3909
3911
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
3910
3912
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -4178,6 +4180,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4178
4180
  allowedCommands?: string[] | undefined;
4179
4181
  deniedCommands?: string[] | undefined;
4180
4182
  commandExecutionTimeout?: number | undefined;
4183
+ commandTimeoutAllowlist?: string[] | undefined;
4184
+ preventCompletionWithOpenTodos?: boolean | undefined;
4181
4185
  allowedMaxRequests?: number | null | undefined;
4182
4186
  autoCondenseContext?: boolean | undefined;
4183
4187
  autoCondenseContextPercent?: number | undefined;
@@ -4317,6 +4321,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4317
4321
  allowedCommands?: string[] | undefined;
4318
4322
  deniedCommands?: string[] | undefined;
4319
4323
  commandExecutionTimeout?: number | undefined;
4324
+ commandTimeoutAllowlist?: string[] | undefined;
4325
+ preventCompletionWithOpenTodos?: boolean | undefined;
4320
4326
  allowedMaxRequests?: number | null | undefined;
4321
4327
  autoCondenseContext?: boolean | undefined;
4322
4328
  autoCondenseContextPercent?: number | undefined;
@@ -4395,7 +4401,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4395
4401
  lastModeImportPath?: string | undefined;
4396
4402
  }>;
4397
4403
  type GlobalSettings = z.infer<typeof globalSettingsSchema>;
4398
- declare const GLOBAL_SETTINGS_KEYS: ["diffEnabled", "fuzzyMatchThreshold", "rateLimitSeconds", "language", "mode", "customInstructions", "customModes", "currentApiConfigName", "listApiConfigMeta", "pinnedApiConfigs", "lastShownAnnouncementId", "taskHistory", "condensingApiConfigId", "customCondensingPrompt", "autoApprovalEnabled", "alwaysAllowReadOnly", "alwaysAllowReadOnlyOutsideWorkspace", "alwaysAllowWrite", "alwaysAllowWriteOutsideWorkspace", "alwaysAllowWriteProtected", "writeDelayMs", "alwaysAllowBrowser", "alwaysApproveResubmit", "requestDelaySeconds", "alwaysAllowMcp", "alwaysAllowModeSwitch", "alwaysAllowSubtasks", "alwaysAllowExecute", "alwaysAllowFollowupQuestions", "followupAutoApproveTimeoutMs", "alwaysAllowUpdateTodoList", "allowedCommands", "deniedCommands", "commandExecutionTimeout", "allowedMaxRequests", "autoCondenseContext", "autoCondenseContextPercent", "maxConcurrentFileReads", "browserToolEnabled", "browserViewportSize", "screenshotQuality", "remoteBrowserEnabled", "remoteBrowserHost", "cachedChromeHostUrl", "enableCheckpoints", "ttsEnabled", "ttsSpeed", "soundEnabled", "soundVolume", "maxOpenTabsContext", "maxWorkspaceFiles", "showRooIgnoredFiles", "maxReadFileLine", "terminalOutputLineLimit", "terminalShellIntegrationTimeout", "terminalShellIntegrationDisabled", "terminalCommandDelay", "terminalPowershellCounter", "terminalZshClearEolMark", "terminalZshOhMy", "terminalZshP10k", "terminalZdotdir", "terminalCompressProgressBar", "experiments", "codebaseIndexModels", "codebaseIndexConfig", "telemetrySetting", "mcpEnabled", "enableMcpServerCreation", "modeApiConfigs", "customModePrompts", "customSupportPrompts", "enhancementApiConfigId", "historyPreviewCollapsed", "profileThresholds", "hasOpenedModeSelector", "lastModeExportPath", "lastModeImportPath"];
4404
+ declare const GLOBAL_SETTINGS_KEYS: ["diffEnabled", "fuzzyMatchThreshold", "rateLimitSeconds", "language", "mode", "customInstructions", "customModes", "currentApiConfigName", "listApiConfigMeta", "pinnedApiConfigs", "lastShownAnnouncementId", "taskHistory", "condensingApiConfigId", "customCondensingPrompt", "autoApprovalEnabled", "alwaysAllowReadOnly", "alwaysAllowReadOnlyOutsideWorkspace", "alwaysAllowWrite", "alwaysAllowWriteOutsideWorkspace", "alwaysAllowWriteProtected", "writeDelayMs", "alwaysAllowBrowser", "alwaysApproveResubmit", "requestDelaySeconds", "alwaysAllowMcp", "alwaysAllowModeSwitch", "alwaysAllowSubtasks", "alwaysAllowExecute", "alwaysAllowFollowupQuestions", "followupAutoApproveTimeoutMs", "alwaysAllowUpdateTodoList", "allowedCommands", "deniedCommands", "commandExecutionTimeout", "commandTimeoutAllowlist", "preventCompletionWithOpenTodos", "allowedMaxRequests", "autoCondenseContext", "autoCondenseContextPercent", "maxConcurrentFileReads", "browserToolEnabled", "browserViewportSize", "screenshotQuality", "remoteBrowserEnabled", "remoteBrowserHost", "cachedChromeHostUrl", "enableCheckpoints", "ttsEnabled", "ttsSpeed", "soundEnabled", "soundVolume", "maxOpenTabsContext", "maxWorkspaceFiles", "showRooIgnoredFiles", "maxReadFileLine", "terminalOutputLineLimit", "terminalShellIntegrationTimeout", "terminalShellIntegrationDisabled", "terminalCommandDelay", "terminalPowershellCounter", "terminalZshClearEolMark", "terminalZshOhMy", "terminalZshP10k", "terminalZdotdir", "terminalCompressProgressBar", "experiments", "codebaseIndexModels", "codebaseIndexConfig", "telemetrySetting", "mcpEnabled", "enableMcpServerCreation", "modeApiConfigs", "customModePrompts", "customSupportPrompts", "enhancementApiConfigId", "historyPreviewCollapsed", "profileThresholds", "hasOpenedModeSelector", "lastModeExportPath", "lastModeImportPath"];
4399
4405
  /**
4400
4406
  * RooCodeSettings
4401
4407
  */
@@ -4667,6 +4673,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
4667
4673
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4668
4674
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4669
4675
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
4676
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4677
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
4670
4678
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4671
4679
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
4672
4680
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -5054,6 +5062,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5054
5062
  allowedCommands?: string[] | undefined;
5055
5063
  deniedCommands?: string[] | undefined;
5056
5064
  commandExecutionTimeout?: number | undefined;
5065
+ commandTimeoutAllowlist?: string[] | undefined;
5066
+ preventCompletionWithOpenTodos?: boolean | undefined;
5057
5067
  allowedMaxRequests?: number | null | undefined;
5058
5068
  autoCondenseContext?: boolean | undefined;
5059
5069
  autoCondenseContextPercent?: number | undefined;
@@ -5307,6 +5317,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5307
5317
  allowedCommands?: string[] | undefined;
5308
5318
  deniedCommands?: string[] | undefined;
5309
5319
  commandExecutionTimeout?: number | undefined;
5320
+ commandTimeoutAllowlist?: string[] | undefined;
5321
+ preventCompletionWithOpenTodos?: boolean | undefined;
5310
5322
  allowedMaxRequests?: number | null | undefined;
5311
5323
  autoCondenseContext?: boolean | undefined;
5312
5324
  autoCondenseContextPercent?: number | undefined;
@@ -6306,6 +6318,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6306
6318
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6307
6319
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6308
6320
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
6321
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6322
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
6309
6323
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6310
6324
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
6311
6325
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -6693,6 +6707,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6693
6707
  allowedCommands?: string[] | undefined;
6694
6708
  deniedCommands?: string[] | undefined;
6695
6709
  commandExecutionTimeout?: number | undefined;
6710
+ commandTimeoutAllowlist?: string[] | undefined;
6711
+ preventCompletionWithOpenTodos?: boolean | undefined;
6696
6712
  allowedMaxRequests?: number | null | undefined;
6697
6713
  autoCondenseContext?: boolean | undefined;
6698
6714
  autoCondenseContextPercent?: number | undefined;
@@ -6946,6 +6962,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6946
6962
  allowedCommands?: string[] | undefined;
6947
6963
  deniedCommands?: string[] | undefined;
6948
6964
  commandExecutionTimeout?: number | undefined;
6965
+ commandTimeoutAllowlist?: string[] | undefined;
6966
+ preventCompletionWithOpenTodos?: boolean | undefined;
6949
6967
  allowedMaxRequests?: number | null | undefined;
6950
6968
  autoCondenseContext?: boolean | undefined;
6951
6969
  autoCondenseContextPercent?: number | undefined;
@@ -7205,6 +7223,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7205
7223
  allowedCommands?: string[] | undefined;
7206
7224
  deniedCommands?: string[] | undefined;
7207
7225
  commandExecutionTimeout?: number | undefined;
7226
+ commandTimeoutAllowlist?: string[] | undefined;
7227
+ preventCompletionWithOpenTodos?: boolean | undefined;
7208
7228
  allowedMaxRequests?: number | null | undefined;
7209
7229
  autoCondenseContext?: boolean | undefined;
7210
7230
  autoCondenseContextPercent?: number | undefined;
@@ -7463,6 +7483,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7463
7483
  allowedCommands?: string[] | undefined;
7464
7484
  deniedCommands?: string[] | undefined;
7465
7485
  commandExecutionTimeout?: number | undefined;
7486
+ commandTimeoutAllowlist?: string[] | undefined;
7487
+ preventCompletionWithOpenTodos?: boolean | undefined;
7466
7488
  allowedMaxRequests?: number | null | undefined;
7467
7489
  autoCondenseContext?: boolean | undefined;
7468
7490
  autoCondenseContextPercent?: number | undefined;
@@ -7724,6 +7746,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7724
7746
  allowedCommands?: string[] | undefined;
7725
7747
  deniedCommands?: string[] | undefined;
7726
7748
  commandExecutionTimeout?: number | undefined;
7749
+ commandTimeoutAllowlist?: string[] | undefined;
7750
+ preventCompletionWithOpenTodos?: boolean | undefined;
7727
7751
  allowedMaxRequests?: number | null | undefined;
7728
7752
  autoCondenseContext?: boolean | undefined;
7729
7753
  autoCondenseContextPercent?: number | undefined;
@@ -7985,6 +8009,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7985
8009
  allowedCommands?: string[] | undefined;
7986
8010
  deniedCommands?: string[] | undefined;
7987
8011
  commandExecutionTimeout?: number | undefined;
8012
+ commandTimeoutAllowlist?: string[] | undefined;
8013
+ preventCompletionWithOpenTodos?: boolean | undefined;
7988
8014
  allowedMaxRequests?: number | null | undefined;
7989
8015
  autoCondenseContext?: boolean | undefined;
7990
8016
  autoCondenseContextPercent?: number | undefined;
@@ -8871,6 +8897,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8871
8897
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8872
8898
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8873
8899
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
8900
+ commandTimeoutAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8901
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
8874
8902
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8875
8903
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
8876
8904
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -9258,6 +9286,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9258
9286
  allowedCommands?: string[] | undefined;
9259
9287
  deniedCommands?: string[] | undefined;
9260
9288
  commandExecutionTimeout?: number | undefined;
9289
+ commandTimeoutAllowlist?: string[] | undefined;
9290
+ preventCompletionWithOpenTodos?: boolean | undefined;
9261
9291
  allowedMaxRequests?: number | null | undefined;
9262
9292
  autoCondenseContext?: boolean | undefined;
9263
9293
  autoCondenseContextPercent?: number | undefined;
@@ -9511,6 +9541,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9511
9541
  allowedCommands?: string[] | undefined;
9512
9542
  deniedCommands?: string[] | undefined;
9513
9543
  commandExecutionTimeout?: number | undefined;
9544
+ commandTimeoutAllowlist?: string[] | undefined;
9545
+ preventCompletionWithOpenTodos?: boolean | undefined;
9514
9546
  allowedMaxRequests?: number | null | undefined;
9515
9547
  autoCondenseContext?: boolean | undefined;
9516
9548
  autoCondenseContextPercent?: number | undefined;
@@ -9770,6 +9802,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9770
9802
  allowedCommands?: string[] | undefined;
9771
9803
  deniedCommands?: string[] | undefined;
9772
9804
  commandExecutionTimeout?: number | undefined;
9805
+ commandTimeoutAllowlist?: string[] | undefined;
9806
+ preventCompletionWithOpenTodos?: boolean | undefined;
9773
9807
  allowedMaxRequests?: number | null | undefined;
9774
9808
  autoCondenseContext?: boolean | undefined;
9775
9809
  autoCondenseContextPercent?: number | undefined;
@@ -10028,6 +10062,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10028
10062
  allowedCommands?: string[] | undefined;
10029
10063
  deniedCommands?: string[] | undefined;
10030
10064
  commandExecutionTimeout?: number | undefined;
10065
+ commandTimeoutAllowlist?: string[] | undefined;
10066
+ preventCompletionWithOpenTodos?: boolean | undefined;
10031
10067
  allowedMaxRequests?: number | null | undefined;
10032
10068
  autoCondenseContext?: boolean | undefined;
10033
10069
  autoCondenseContextPercent?: number | undefined;
@@ -10289,6 +10325,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10289
10325
  allowedCommands?: string[] | undefined;
10290
10326
  deniedCommands?: string[] | undefined;
10291
10327
  commandExecutionTimeout?: number | undefined;
10328
+ commandTimeoutAllowlist?: string[] | undefined;
10329
+ preventCompletionWithOpenTodos?: boolean | undefined;
10292
10330
  allowedMaxRequests?: number | null | undefined;
10293
10331
  autoCondenseContext?: boolean | undefined;
10294
10332
  autoCondenseContextPercent?: number | undefined;
@@ -10550,6 +10588,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10550
10588
  allowedCommands?: string[] | undefined;
10551
10589
  deniedCommands?: string[] | undefined;
10552
10590
  commandExecutionTimeout?: number | undefined;
10591
+ commandTimeoutAllowlist?: string[] | undefined;
10592
+ preventCompletionWithOpenTodos?: boolean | undefined;
10553
10593
  allowedMaxRequests?: number | null | undefined;
10554
10594
  autoCondenseContext?: boolean | undefined;
10555
10595
  autoCondenseContextPercent?: number | undefined;
@@ -10833,6 +10873,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10833
10873
  allowedCommands?: string[] | undefined;
10834
10874
  deniedCommands?: string[] | undefined;
10835
10875
  commandExecutionTimeout?: number | undefined;
10876
+ commandTimeoutAllowlist?: string[] | undefined;
10877
+ preventCompletionWithOpenTodos?: boolean | undefined;
10836
10878
  allowedMaxRequests?: number | null | undefined;
10837
10879
  autoCondenseContext?: boolean | undefined;
10838
10880
  autoCondenseContextPercent?: number | undefined;
@@ -11105,6 +11147,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11105
11147
  allowedCommands?: string[] | undefined;
11106
11148
  deniedCommands?: string[] | undefined;
11107
11149
  commandExecutionTimeout?: number | undefined;
11150
+ commandTimeoutAllowlist?: string[] | undefined;
11151
+ preventCompletionWithOpenTodos?: boolean | undefined;
11108
11152
  allowedMaxRequests?: number | null | undefined;
11109
11153
  autoCondenseContext?: boolean | undefined;
11110
11154
  autoCondenseContextPercent?: number | undefined;
package/dist/index.js CHANGED
@@ -2523,8 +2523,14 @@ var getModelId = (settings) => {
2523
2523
  return modelIdKey ? settings[modelIdKey] : void 0;
2524
2524
  };
2525
2525
  var ANTHROPIC_STYLE_PROVIDERS = ["anthropic", "claude-code"];
2526
- var getApiProtocol = (provider) => {
2527
- return provider && ANTHROPIC_STYLE_PROVIDERS.includes(provider) ? "anthropic" : "openai";
2526
+ var getApiProtocol = (provider, modelId) => {
2527
+ if (provider && ANTHROPIC_STYLE_PROVIDERS.includes(provider)) {
2528
+ return "anthropic";
2529
+ }
2530
+ if (provider && (provider === "vertex" || provider === "bedrock") && modelId && modelId.toLowerCase().includes("claude")) {
2531
+ return "anthropic";
2532
+ }
2533
+ return "openai";
2528
2534
  };
2529
2535
 
2530
2536
  // src/history.ts
@@ -2960,6 +2966,8 @@ var globalSettingsSchema = z11.object({
2960
2966
  allowedCommands: z11.array(z11.string()).optional(),
2961
2967
  deniedCommands: z11.array(z11.string()).optional(),
2962
2968
  commandExecutionTimeout: z11.number().optional(),
2969
+ commandTimeoutAllowlist: z11.array(z11.string()).optional(),
2970
+ preventCompletionWithOpenTodos: z11.boolean().optional(),
2963
2971
  allowedMaxRequests: z11.number().nullish(),
2964
2972
  autoCondenseContext: z11.boolean().optional(),
2965
2973
  autoCondenseContextPercent: z11.number().optional(),
@@ -3065,6 +3073,8 @@ var EVALS_SETTINGS = {
3065
3073
  followupAutoApproveTimeoutMs: 0,
3066
3074
  allowedCommands: ["*"],
3067
3075
  commandExecutionTimeout: 3e4,
3076
+ commandTimeoutAllowlist: [],
3077
+ preventCompletionWithOpenTodos: false,
3068
3078
  browserToolEnabled: false,
3069
3079
  browserViewportSize: "900x600",
3070
3080
  screenshotQuality: 75,