@roo-code/types 1.33.0 → 1.35.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
@@ -3904,6 +3904,8 @@ declare const globalSettingsSchema: z.ZodObject<{
3904
3904
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
3905
3905
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3906
3906
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3907
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
3908
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
3907
3909
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3908
3910
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
3909
3911
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -4176,6 +4178,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4176
4178
  alwaysAllowUpdateTodoList?: boolean | undefined;
4177
4179
  allowedCommands?: string[] | undefined;
4178
4180
  deniedCommands?: string[] | undefined;
4181
+ commandExecutionTimeout?: number | undefined;
4182
+ preventCompletionWithOpenTodos?: boolean | undefined;
4179
4183
  allowedMaxRequests?: number | null | undefined;
4180
4184
  autoCondenseContext?: boolean | undefined;
4181
4185
  autoCondenseContextPercent?: number | undefined;
@@ -4314,6 +4318,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4314
4318
  alwaysAllowUpdateTodoList?: boolean | undefined;
4315
4319
  allowedCommands?: string[] | undefined;
4316
4320
  deniedCommands?: string[] | undefined;
4321
+ commandExecutionTimeout?: number | undefined;
4322
+ preventCompletionWithOpenTodos?: boolean | undefined;
4317
4323
  allowedMaxRequests?: number | null | undefined;
4318
4324
  autoCondenseContext?: boolean | undefined;
4319
4325
  autoCondenseContextPercent?: number | undefined;
@@ -4392,7 +4398,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4392
4398
  lastModeImportPath?: string | undefined;
4393
4399
  }>;
4394
4400
  type GlobalSettings = z.infer<typeof globalSettingsSchema>;
4395
- 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", "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"];
4401
+ 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", "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"];
4396
4402
  /**
4397
4403
  * RooCodeSettings
4398
4404
  */
@@ -4663,6 +4669,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
4663
4669
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
4664
4670
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4665
4671
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4672
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
4673
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
4666
4674
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4667
4675
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
4668
4676
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -5049,6 +5057,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5049
5057
  alwaysAllowUpdateTodoList?: boolean | undefined;
5050
5058
  allowedCommands?: string[] | undefined;
5051
5059
  deniedCommands?: string[] | undefined;
5060
+ commandExecutionTimeout?: number | undefined;
5061
+ preventCompletionWithOpenTodos?: boolean | undefined;
5052
5062
  allowedMaxRequests?: number | null | undefined;
5053
5063
  autoCondenseContext?: boolean | undefined;
5054
5064
  autoCondenseContextPercent?: number | undefined;
@@ -5301,6 +5311,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5301
5311
  alwaysAllowUpdateTodoList?: boolean | undefined;
5302
5312
  allowedCommands?: string[] | undefined;
5303
5313
  deniedCommands?: string[] | undefined;
5314
+ commandExecutionTimeout?: number | undefined;
5315
+ preventCompletionWithOpenTodos?: boolean | undefined;
5304
5316
  allowedMaxRequests?: number | null | undefined;
5305
5317
  autoCondenseContext?: boolean | undefined;
5306
5318
  autoCondenseContextPercent?: number | undefined;
@@ -6299,6 +6311,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6299
6311
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
6300
6312
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6301
6313
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6314
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
6315
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
6302
6316
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6303
6317
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
6304
6318
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -6685,6 +6699,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6685
6699
  alwaysAllowUpdateTodoList?: boolean | undefined;
6686
6700
  allowedCommands?: string[] | undefined;
6687
6701
  deniedCommands?: string[] | undefined;
6702
+ commandExecutionTimeout?: number | undefined;
6703
+ preventCompletionWithOpenTodos?: boolean | undefined;
6688
6704
  allowedMaxRequests?: number | null | undefined;
6689
6705
  autoCondenseContext?: boolean | undefined;
6690
6706
  autoCondenseContextPercent?: number | undefined;
@@ -6937,6 +6953,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6937
6953
  alwaysAllowUpdateTodoList?: boolean | undefined;
6938
6954
  allowedCommands?: string[] | undefined;
6939
6955
  deniedCommands?: string[] | undefined;
6956
+ commandExecutionTimeout?: number | undefined;
6957
+ preventCompletionWithOpenTodos?: boolean | undefined;
6940
6958
  allowedMaxRequests?: number | null | undefined;
6941
6959
  autoCondenseContext?: boolean | undefined;
6942
6960
  autoCondenseContextPercent?: number | undefined;
@@ -7195,6 +7213,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7195
7213
  alwaysAllowUpdateTodoList?: boolean | undefined;
7196
7214
  allowedCommands?: string[] | undefined;
7197
7215
  deniedCommands?: string[] | undefined;
7216
+ commandExecutionTimeout?: number | undefined;
7217
+ preventCompletionWithOpenTodos?: boolean | undefined;
7198
7218
  allowedMaxRequests?: number | null | undefined;
7199
7219
  autoCondenseContext?: boolean | undefined;
7200
7220
  autoCondenseContextPercent?: number | undefined;
@@ -7452,6 +7472,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7452
7472
  alwaysAllowUpdateTodoList?: boolean | undefined;
7453
7473
  allowedCommands?: string[] | undefined;
7454
7474
  deniedCommands?: string[] | undefined;
7475
+ commandExecutionTimeout?: number | undefined;
7476
+ preventCompletionWithOpenTodos?: boolean | undefined;
7455
7477
  allowedMaxRequests?: number | null | undefined;
7456
7478
  autoCondenseContext?: boolean | undefined;
7457
7479
  autoCondenseContextPercent?: number | undefined;
@@ -7712,6 +7734,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7712
7734
  alwaysAllowUpdateTodoList?: boolean | undefined;
7713
7735
  allowedCommands?: string[] | undefined;
7714
7736
  deniedCommands?: string[] | undefined;
7737
+ commandExecutionTimeout?: number | undefined;
7738
+ preventCompletionWithOpenTodos?: boolean | undefined;
7715
7739
  allowedMaxRequests?: number | null | undefined;
7716
7740
  autoCondenseContext?: boolean | undefined;
7717
7741
  autoCondenseContextPercent?: number | undefined;
@@ -7972,6 +7996,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7972
7996
  alwaysAllowUpdateTodoList?: boolean | undefined;
7973
7997
  allowedCommands?: string[] | undefined;
7974
7998
  deniedCommands?: string[] | undefined;
7999
+ commandExecutionTimeout?: number | undefined;
8000
+ preventCompletionWithOpenTodos?: boolean | undefined;
7975
8001
  allowedMaxRequests?: number | null | undefined;
7976
8002
  autoCondenseContext?: boolean | undefined;
7977
8003
  autoCondenseContextPercent?: number | undefined;
@@ -8857,6 +8883,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8857
8883
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
8858
8884
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8859
8885
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8886
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
8887
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
8860
8888
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8861
8889
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
8862
8890
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -9243,6 +9271,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9243
9271
  alwaysAllowUpdateTodoList?: boolean | undefined;
9244
9272
  allowedCommands?: string[] | undefined;
9245
9273
  deniedCommands?: string[] | undefined;
9274
+ commandExecutionTimeout?: number | undefined;
9275
+ preventCompletionWithOpenTodos?: boolean | undefined;
9246
9276
  allowedMaxRequests?: number | null | undefined;
9247
9277
  autoCondenseContext?: boolean | undefined;
9248
9278
  autoCondenseContextPercent?: number | undefined;
@@ -9495,6 +9525,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9495
9525
  alwaysAllowUpdateTodoList?: boolean | undefined;
9496
9526
  allowedCommands?: string[] | undefined;
9497
9527
  deniedCommands?: string[] | undefined;
9528
+ commandExecutionTimeout?: number | undefined;
9529
+ preventCompletionWithOpenTodos?: boolean | undefined;
9498
9530
  allowedMaxRequests?: number | null | undefined;
9499
9531
  autoCondenseContext?: boolean | undefined;
9500
9532
  autoCondenseContextPercent?: number | undefined;
@@ -9753,6 +9785,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9753
9785
  alwaysAllowUpdateTodoList?: boolean | undefined;
9754
9786
  allowedCommands?: string[] | undefined;
9755
9787
  deniedCommands?: string[] | undefined;
9788
+ commandExecutionTimeout?: number | undefined;
9789
+ preventCompletionWithOpenTodos?: boolean | undefined;
9756
9790
  allowedMaxRequests?: number | null | undefined;
9757
9791
  autoCondenseContext?: boolean | undefined;
9758
9792
  autoCondenseContextPercent?: number | undefined;
@@ -10010,6 +10044,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10010
10044
  alwaysAllowUpdateTodoList?: boolean | undefined;
10011
10045
  allowedCommands?: string[] | undefined;
10012
10046
  deniedCommands?: string[] | undefined;
10047
+ commandExecutionTimeout?: number | undefined;
10048
+ preventCompletionWithOpenTodos?: boolean | undefined;
10013
10049
  allowedMaxRequests?: number | null | undefined;
10014
10050
  autoCondenseContext?: boolean | undefined;
10015
10051
  autoCondenseContextPercent?: number | undefined;
@@ -10270,6 +10306,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10270
10306
  alwaysAllowUpdateTodoList?: boolean | undefined;
10271
10307
  allowedCommands?: string[] | undefined;
10272
10308
  deniedCommands?: string[] | undefined;
10309
+ commandExecutionTimeout?: number | undefined;
10310
+ preventCompletionWithOpenTodos?: boolean | undefined;
10273
10311
  allowedMaxRequests?: number | null | undefined;
10274
10312
  autoCondenseContext?: boolean | undefined;
10275
10313
  autoCondenseContextPercent?: number | undefined;
@@ -10530,6 +10568,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10530
10568
  alwaysAllowUpdateTodoList?: boolean | undefined;
10531
10569
  allowedCommands?: string[] | undefined;
10532
10570
  deniedCommands?: string[] | undefined;
10571
+ commandExecutionTimeout?: number | undefined;
10572
+ preventCompletionWithOpenTodos?: boolean | undefined;
10533
10573
  allowedMaxRequests?: number | null | undefined;
10534
10574
  autoCondenseContext?: boolean | undefined;
10535
10575
  autoCondenseContextPercent?: number | undefined;
@@ -10812,6 +10852,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10812
10852
  alwaysAllowUpdateTodoList?: boolean | undefined;
10813
10853
  allowedCommands?: string[] | undefined;
10814
10854
  deniedCommands?: string[] | undefined;
10855
+ commandExecutionTimeout?: number | undefined;
10856
+ preventCompletionWithOpenTodos?: boolean | undefined;
10815
10857
  allowedMaxRequests?: number | null | undefined;
10816
10858
  autoCondenseContext?: boolean | undefined;
10817
10859
  autoCondenseContextPercent?: number | undefined;
@@ -11083,6 +11125,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11083
11125
  alwaysAllowUpdateTodoList?: boolean | undefined;
11084
11126
  allowedCommands?: string[] | undefined;
11085
11127
  deniedCommands?: string[] | undefined;
11128
+ commandExecutionTimeout?: number | undefined;
11129
+ preventCompletionWithOpenTodos?: boolean | undefined;
11086
11130
  allowedMaxRequests?: number | null | undefined;
11087
11131
  autoCondenseContext?: boolean | undefined;
11088
11132
  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
@@ -3904,6 +3904,8 @@ declare const globalSettingsSchema: z.ZodObject<{
3904
3904
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
3905
3905
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3906
3906
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3907
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
3908
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
3907
3909
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3908
3910
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
3909
3911
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -4176,6 +4178,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4176
4178
  alwaysAllowUpdateTodoList?: boolean | undefined;
4177
4179
  allowedCommands?: string[] | undefined;
4178
4180
  deniedCommands?: string[] | undefined;
4181
+ commandExecutionTimeout?: number | undefined;
4182
+ preventCompletionWithOpenTodos?: boolean | undefined;
4179
4183
  allowedMaxRequests?: number | null | undefined;
4180
4184
  autoCondenseContext?: boolean | undefined;
4181
4185
  autoCondenseContextPercent?: number | undefined;
@@ -4314,6 +4318,8 @@ declare const globalSettingsSchema: z.ZodObject<{
4314
4318
  alwaysAllowUpdateTodoList?: boolean | undefined;
4315
4319
  allowedCommands?: string[] | undefined;
4316
4320
  deniedCommands?: string[] | undefined;
4321
+ commandExecutionTimeout?: number | undefined;
4322
+ preventCompletionWithOpenTodos?: boolean | undefined;
4317
4323
  allowedMaxRequests?: number | null | undefined;
4318
4324
  autoCondenseContext?: boolean | undefined;
4319
4325
  autoCondenseContextPercent?: number | undefined;
@@ -4392,7 +4398,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4392
4398
  lastModeImportPath?: string | undefined;
4393
4399
  }>;
4394
4400
  type GlobalSettings = z.infer<typeof globalSettingsSchema>;
4395
- 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", "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"];
4401
+ 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", "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"];
4396
4402
  /**
4397
4403
  * RooCodeSettings
4398
4404
  */
@@ -4663,6 +4669,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
4663
4669
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
4664
4670
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4665
4671
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4672
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
4673
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
4666
4674
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4667
4675
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
4668
4676
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -5049,6 +5057,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5049
5057
  alwaysAllowUpdateTodoList?: boolean | undefined;
5050
5058
  allowedCommands?: string[] | undefined;
5051
5059
  deniedCommands?: string[] | undefined;
5060
+ commandExecutionTimeout?: number | undefined;
5061
+ preventCompletionWithOpenTodos?: boolean | undefined;
5052
5062
  allowedMaxRequests?: number | null | undefined;
5053
5063
  autoCondenseContext?: boolean | undefined;
5054
5064
  autoCondenseContextPercent?: number | undefined;
@@ -5301,6 +5311,8 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5301
5311
  alwaysAllowUpdateTodoList?: boolean | undefined;
5302
5312
  allowedCommands?: string[] | undefined;
5303
5313
  deniedCommands?: string[] | undefined;
5314
+ commandExecutionTimeout?: number | undefined;
5315
+ preventCompletionWithOpenTodos?: boolean | undefined;
5304
5316
  allowedMaxRequests?: number | null | undefined;
5305
5317
  autoCondenseContext?: boolean | undefined;
5306
5318
  autoCondenseContextPercent?: number | undefined;
@@ -6299,6 +6311,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6299
6311
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
6300
6312
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6301
6313
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6314
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
6315
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
6302
6316
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6303
6317
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
6304
6318
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -6685,6 +6699,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6685
6699
  alwaysAllowUpdateTodoList?: boolean | undefined;
6686
6700
  allowedCommands?: string[] | undefined;
6687
6701
  deniedCommands?: string[] | undefined;
6702
+ commandExecutionTimeout?: number | undefined;
6703
+ preventCompletionWithOpenTodos?: boolean | undefined;
6688
6704
  allowedMaxRequests?: number | null | undefined;
6689
6705
  autoCondenseContext?: boolean | undefined;
6690
6706
  autoCondenseContextPercent?: number | undefined;
@@ -6937,6 +6953,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6937
6953
  alwaysAllowUpdateTodoList?: boolean | undefined;
6938
6954
  allowedCommands?: string[] | undefined;
6939
6955
  deniedCommands?: string[] | undefined;
6956
+ commandExecutionTimeout?: number | undefined;
6957
+ preventCompletionWithOpenTodos?: boolean | undefined;
6940
6958
  allowedMaxRequests?: number | null | undefined;
6941
6959
  autoCondenseContext?: boolean | undefined;
6942
6960
  autoCondenseContextPercent?: number | undefined;
@@ -7195,6 +7213,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7195
7213
  alwaysAllowUpdateTodoList?: boolean | undefined;
7196
7214
  allowedCommands?: string[] | undefined;
7197
7215
  deniedCommands?: string[] | undefined;
7216
+ commandExecutionTimeout?: number | undefined;
7217
+ preventCompletionWithOpenTodos?: boolean | undefined;
7198
7218
  allowedMaxRequests?: number | null | undefined;
7199
7219
  autoCondenseContext?: boolean | undefined;
7200
7220
  autoCondenseContextPercent?: number | undefined;
@@ -7452,6 +7472,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7452
7472
  alwaysAllowUpdateTodoList?: boolean | undefined;
7453
7473
  allowedCommands?: string[] | undefined;
7454
7474
  deniedCommands?: string[] | undefined;
7475
+ commandExecutionTimeout?: number | undefined;
7476
+ preventCompletionWithOpenTodos?: boolean | undefined;
7455
7477
  allowedMaxRequests?: number | null | undefined;
7456
7478
  autoCondenseContext?: boolean | undefined;
7457
7479
  autoCondenseContextPercent?: number | undefined;
@@ -7712,6 +7734,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7712
7734
  alwaysAllowUpdateTodoList?: boolean | undefined;
7713
7735
  allowedCommands?: string[] | undefined;
7714
7736
  deniedCommands?: string[] | undefined;
7737
+ commandExecutionTimeout?: number | undefined;
7738
+ preventCompletionWithOpenTodos?: boolean | undefined;
7715
7739
  allowedMaxRequests?: number | null | undefined;
7716
7740
  autoCondenseContext?: boolean | undefined;
7717
7741
  autoCondenseContextPercent?: number | undefined;
@@ -7972,6 +7996,8 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7972
7996
  alwaysAllowUpdateTodoList?: boolean | undefined;
7973
7997
  allowedCommands?: string[] | undefined;
7974
7998
  deniedCommands?: string[] | undefined;
7999
+ commandExecutionTimeout?: number | undefined;
8000
+ preventCompletionWithOpenTodos?: boolean | undefined;
7975
8001
  allowedMaxRequests?: number | null | undefined;
7976
8002
  autoCondenseContext?: boolean | undefined;
7977
8003
  autoCondenseContextPercent?: number | undefined;
@@ -8857,6 +8883,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8857
8883
  alwaysAllowUpdateTodoList: z.ZodOptional<z.ZodBoolean>;
8858
8884
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8859
8885
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8886
+ commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
8887
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
8860
8888
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8861
8889
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
8862
8890
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -9243,6 +9271,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9243
9271
  alwaysAllowUpdateTodoList?: boolean | undefined;
9244
9272
  allowedCommands?: string[] | undefined;
9245
9273
  deniedCommands?: string[] | undefined;
9274
+ commandExecutionTimeout?: number | undefined;
9275
+ preventCompletionWithOpenTodos?: boolean | undefined;
9246
9276
  allowedMaxRequests?: number | null | undefined;
9247
9277
  autoCondenseContext?: boolean | undefined;
9248
9278
  autoCondenseContextPercent?: number | undefined;
@@ -9495,6 +9525,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9495
9525
  alwaysAllowUpdateTodoList?: boolean | undefined;
9496
9526
  allowedCommands?: string[] | undefined;
9497
9527
  deniedCommands?: string[] | undefined;
9528
+ commandExecutionTimeout?: number | undefined;
9529
+ preventCompletionWithOpenTodos?: boolean | undefined;
9498
9530
  allowedMaxRequests?: number | null | undefined;
9499
9531
  autoCondenseContext?: boolean | undefined;
9500
9532
  autoCondenseContextPercent?: number | undefined;
@@ -9753,6 +9785,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9753
9785
  alwaysAllowUpdateTodoList?: boolean | undefined;
9754
9786
  allowedCommands?: string[] | undefined;
9755
9787
  deniedCommands?: string[] | undefined;
9788
+ commandExecutionTimeout?: number | undefined;
9789
+ preventCompletionWithOpenTodos?: boolean | undefined;
9756
9790
  allowedMaxRequests?: number | null | undefined;
9757
9791
  autoCondenseContext?: boolean | undefined;
9758
9792
  autoCondenseContextPercent?: number | undefined;
@@ -10010,6 +10044,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10010
10044
  alwaysAllowUpdateTodoList?: boolean | undefined;
10011
10045
  allowedCommands?: string[] | undefined;
10012
10046
  deniedCommands?: string[] | undefined;
10047
+ commandExecutionTimeout?: number | undefined;
10048
+ preventCompletionWithOpenTodos?: boolean | undefined;
10013
10049
  allowedMaxRequests?: number | null | undefined;
10014
10050
  autoCondenseContext?: boolean | undefined;
10015
10051
  autoCondenseContextPercent?: number | undefined;
@@ -10270,6 +10306,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10270
10306
  alwaysAllowUpdateTodoList?: boolean | undefined;
10271
10307
  allowedCommands?: string[] | undefined;
10272
10308
  deniedCommands?: string[] | undefined;
10309
+ commandExecutionTimeout?: number | undefined;
10310
+ preventCompletionWithOpenTodos?: boolean | undefined;
10273
10311
  allowedMaxRequests?: number | null | undefined;
10274
10312
  autoCondenseContext?: boolean | undefined;
10275
10313
  autoCondenseContextPercent?: number | undefined;
@@ -10530,6 +10568,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10530
10568
  alwaysAllowUpdateTodoList?: boolean | undefined;
10531
10569
  allowedCommands?: string[] | undefined;
10532
10570
  deniedCommands?: string[] | undefined;
10571
+ commandExecutionTimeout?: number | undefined;
10572
+ preventCompletionWithOpenTodos?: boolean | undefined;
10533
10573
  allowedMaxRequests?: number | null | undefined;
10534
10574
  autoCondenseContext?: boolean | undefined;
10535
10575
  autoCondenseContextPercent?: number | undefined;
@@ -10812,6 +10852,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10812
10852
  alwaysAllowUpdateTodoList?: boolean | undefined;
10813
10853
  allowedCommands?: string[] | undefined;
10814
10854
  deniedCommands?: string[] | undefined;
10855
+ commandExecutionTimeout?: number | undefined;
10856
+ preventCompletionWithOpenTodos?: boolean | undefined;
10815
10857
  allowedMaxRequests?: number | null | undefined;
10816
10858
  autoCondenseContext?: boolean | undefined;
10817
10859
  autoCondenseContextPercent?: number | undefined;
@@ -11083,6 +11125,8 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11083
11125
  alwaysAllowUpdateTodoList?: boolean | undefined;
11084
11126
  allowedCommands?: string[] | undefined;
11085
11127
  deniedCommands?: string[] | undefined;
11128
+ commandExecutionTimeout?: number | undefined;
11129
+ preventCompletionWithOpenTodos?: boolean | undefined;
11086
11130
  allowedMaxRequests?: number | null | undefined;
11087
11131
  autoCondenseContext?: boolean | undefined;
11088
11132
  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
@@ -2959,6 +2965,8 @@ var globalSettingsSchema = z11.object({
2959
2965
  alwaysAllowUpdateTodoList: z11.boolean().optional(),
2960
2966
  allowedCommands: z11.array(z11.string()).optional(),
2961
2967
  deniedCommands: z11.array(z11.string()).optional(),
2968
+ commandExecutionTimeout: z11.number().optional(),
2969
+ preventCompletionWithOpenTodos: z11.boolean().optional(),
2962
2970
  allowedMaxRequests: z11.number().nullish(),
2963
2971
  autoCondenseContext: z11.boolean().optional(),
2964
2972
  autoCondenseContextPercent: z11.number().optional(),
@@ -3063,6 +3071,8 @@ var EVALS_SETTINGS = {
3063
3071
  alwaysAllowUpdateTodoList: true,
3064
3072
  followupAutoApproveTimeoutMs: 0,
3065
3073
  allowedCommands: ["*"],
3074
+ commandExecutionTimeout: 3e4,
3075
+ preventCompletionWithOpenTodos: false,
3066
3076
  browserToolEnabled: false,
3067
3077
  browserViewportSize: "900x600",
3068
3078
  screenshotQuality: 75,