@roo-code/types 1.34.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
@@ -3905,6 +3905,7 @@ 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
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
3908
3909
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3909
3910
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
3910
3911
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -4178,6 +4179,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4178
4179
  allowedCommands?: string[] | undefined;
4179
4180
  deniedCommands?: string[] | undefined;
4180
4181
  commandExecutionTimeout?: number | undefined;
4182
+ preventCompletionWithOpenTodos?: boolean | undefined;
4181
4183
  allowedMaxRequests?: number | null | undefined;
4182
4184
  autoCondenseContext?: boolean | undefined;
4183
4185
  autoCondenseContextPercent?: number | undefined;
@@ -4317,6 +4319,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4317
4319
  allowedCommands?: string[] | undefined;
4318
4320
  deniedCommands?: string[] | undefined;
4319
4321
  commandExecutionTimeout?: number | undefined;
4322
+ preventCompletionWithOpenTodos?: boolean | undefined;
4320
4323
  allowedMaxRequests?: number | null | undefined;
4321
4324
  autoCondenseContext?: boolean | undefined;
4322
4325
  autoCondenseContextPercent?: number | undefined;
@@ -4395,7 +4398,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4395
4398
  lastModeImportPath?: string | undefined;
4396
4399
  }>;
4397
4400
  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"];
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"];
4399
4402
  /**
4400
4403
  * RooCodeSettings
4401
4404
  */
@@ -4667,6 +4670,7 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
4667
4670
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4668
4671
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4669
4672
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
4673
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
4670
4674
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4671
4675
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
4672
4676
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -5054,6 +5058,7 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5054
5058
  allowedCommands?: string[] | undefined;
5055
5059
  deniedCommands?: string[] | undefined;
5056
5060
  commandExecutionTimeout?: number | undefined;
5061
+ preventCompletionWithOpenTodos?: boolean | undefined;
5057
5062
  allowedMaxRequests?: number | null | undefined;
5058
5063
  autoCondenseContext?: boolean | undefined;
5059
5064
  autoCondenseContextPercent?: number | undefined;
@@ -5307,6 +5312,7 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5307
5312
  allowedCommands?: string[] | undefined;
5308
5313
  deniedCommands?: string[] | undefined;
5309
5314
  commandExecutionTimeout?: number | undefined;
5315
+ preventCompletionWithOpenTodos?: boolean | undefined;
5310
5316
  allowedMaxRequests?: number | null | undefined;
5311
5317
  autoCondenseContext?: boolean | undefined;
5312
5318
  autoCondenseContextPercent?: number | undefined;
@@ -6306,6 +6312,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6306
6312
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6307
6313
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6308
6314
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
6315
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
6309
6316
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6310
6317
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
6311
6318
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -6693,6 +6700,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6693
6700
  allowedCommands?: string[] | undefined;
6694
6701
  deniedCommands?: string[] | undefined;
6695
6702
  commandExecutionTimeout?: number | undefined;
6703
+ preventCompletionWithOpenTodos?: boolean | undefined;
6696
6704
  allowedMaxRequests?: number | null | undefined;
6697
6705
  autoCondenseContext?: boolean | undefined;
6698
6706
  autoCondenseContextPercent?: number | undefined;
@@ -6946,6 +6954,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6946
6954
  allowedCommands?: string[] | undefined;
6947
6955
  deniedCommands?: string[] | undefined;
6948
6956
  commandExecutionTimeout?: number | undefined;
6957
+ preventCompletionWithOpenTodos?: boolean | undefined;
6949
6958
  allowedMaxRequests?: number | null | undefined;
6950
6959
  autoCondenseContext?: boolean | undefined;
6951
6960
  autoCondenseContextPercent?: number | undefined;
@@ -7205,6 +7214,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7205
7214
  allowedCommands?: string[] | undefined;
7206
7215
  deniedCommands?: string[] | undefined;
7207
7216
  commandExecutionTimeout?: number | undefined;
7217
+ preventCompletionWithOpenTodos?: boolean | undefined;
7208
7218
  allowedMaxRequests?: number | null | undefined;
7209
7219
  autoCondenseContext?: boolean | undefined;
7210
7220
  autoCondenseContextPercent?: number | undefined;
@@ -7463,6 +7473,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7463
7473
  allowedCommands?: string[] | undefined;
7464
7474
  deniedCommands?: string[] | undefined;
7465
7475
  commandExecutionTimeout?: number | undefined;
7476
+ preventCompletionWithOpenTodos?: boolean | undefined;
7466
7477
  allowedMaxRequests?: number | null | undefined;
7467
7478
  autoCondenseContext?: boolean | undefined;
7468
7479
  autoCondenseContextPercent?: number | undefined;
@@ -7724,6 +7735,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7724
7735
  allowedCommands?: string[] | undefined;
7725
7736
  deniedCommands?: string[] | undefined;
7726
7737
  commandExecutionTimeout?: number | undefined;
7738
+ preventCompletionWithOpenTodos?: boolean | undefined;
7727
7739
  allowedMaxRequests?: number | null | undefined;
7728
7740
  autoCondenseContext?: boolean | undefined;
7729
7741
  autoCondenseContextPercent?: number | undefined;
@@ -7985,6 +7997,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7985
7997
  allowedCommands?: string[] | undefined;
7986
7998
  deniedCommands?: string[] | undefined;
7987
7999
  commandExecutionTimeout?: number | undefined;
8000
+ preventCompletionWithOpenTodos?: boolean | undefined;
7988
8001
  allowedMaxRequests?: number | null | undefined;
7989
8002
  autoCondenseContext?: boolean | undefined;
7990
8003
  autoCondenseContextPercent?: number | undefined;
@@ -8871,6 +8884,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8871
8884
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8872
8885
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8873
8886
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
8887
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
8874
8888
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8875
8889
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
8876
8890
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -9258,6 +9272,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9258
9272
  allowedCommands?: string[] | undefined;
9259
9273
  deniedCommands?: string[] | undefined;
9260
9274
  commandExecutionTimeout?: number | undefined;
9275
+ preventCompletionWithOpenTodos?: boolean | undefined;
9261
9276
  allowedMaxRequests?: number | null | undefined;
9262
9277
  autoCondenseContext?: boolean | undefined;
9263
9278
  autoCondenseContextPercent?: number | undefined;
@@ -9511,6 +9526,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9511
9526
  allowedCommands?: string[] | undefined;
9512
9527
  deniedCommands?: string[] | undefined;
9513
9528
  commandExecutionTimeout?: number | undefined;
9529
+ preventCompletionWithOpenTodos?: boolean | undefined;
9514
9530
  allowedMaxRequests?: number | null | undefined;
9515
9531
  autoCondenseContext?: boolean | undefined;
9516
9532
  autoCondenseContextPercent?: number | undefined;
@@ -9770,6 +9786,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9770
9786
  allowedCommands?: string[] | undefined;
9771
9787
  deniedCommands?: string[] | undefined;
9772
9788
  commandExecutionTimeout?: number | undefined;
9789
+ preventCompletionWithOpenTodos?: boolean | undefined;
9773
9790
  allowedMaxRequests?: number | null | undefined;
9774
9791
  autoCondenseContext?: boolean | undefined;
9775
9792
  autoCondenseContextPercent?: number | undefined;
@@ -10028,6 +10045,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10028
10045
  allowedCommands?: string[] | undefined;
10029
10046
  deniedCommands?: string[] | undefined;
10030
10047
  commandExecutionTimeout?: number | undefined;
10048
+ preventCompletionWithOpenTodos?: boolean | undefined;
10031
10049
  allowedMaxRequests?: number | null | undefined;
10032
10050
  autoCondenseContext?: boolean | undefined;
10033
10051
  autoCondenseContextPercent?: number | undefined;
@@ -10289,6 +10307,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10289
10307
  allowedCommands?: string[] | undefined;
10290
10308
  deniedCommands?: string[] | undefined;
10291
10309
  commandExecutionTimeout?: number | undefined;
10310
+ preventCompletionWithOpenTodos?: boolean | undefined;
10292
10311
  allowedMaxRequests?: number | null | undefined;
10293
10312
  autoCondenseContext?: boolean | undefined;
10294
10313
  autoCondenseContextPercent?: number | undefined;
@@ -10550,6 +10569,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10550
10569
  allowedCommands?: string[] | undefined;
10551
10570
  deniedCommands?: string[] | undefined;
10552
10571
  commandExecutionTimeout?: number | undefined;
10572
+ preventCompletionWithOpenTodos?: boolean | undefined;
10553
10573
  allowedMaxRequests?: number | null | undefined;
10554
10574
  autoCondenseContext?: boolean | undefined;
10555
10575
  autoCondenseContextPercent?: number | undefined;
@@ -10833,6 +10853,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10833
10853
  allowedCommands?: string[] | undefined;
10834
10854
  deniedCommands?: string[] | undefined;
10835
10855
  commandExecutionTimeout?: number | undefined;
10856
+ preventCompletionWithOpenTodos?: boolean | undefined;
10836
10857
  allowedMaxRequests?: number | null | undefined;
10837
10858
  autoCondenseContext?: boolean | undefined;
10838
10859
  autoCondenseContextPercent?: number | undefined;
@@ -11105,6 +11126,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11105
11126
  allowedCommands?: string[] | undefined;
11106
11127
  deniedCommands?: string[] | undefined;
11107
11128
  commandExecutionTimeout?: number | undefined;
11129
+ preventCompletionWithOpenTodos?: boolean | undefined;
11108
11130
  allowedMaxRequests?: number | null | undefined;
11109
11131
  autoCondenseContext?: boolean | undefined;
11110
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
@@ -3905,6 +3905,7 @@ 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
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
3908
3909
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3909
3910
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
3910
3911
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -4178,6 +4179,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4178
4179
  allowedCommands?: string[] | undefined;
4179
4180
  deniedCommands?: string[] | undefined;
4180
4181
  commandExecutionTimeout?: number | undefined;
4182
+ preventCompletionWithOpenTodos?: boolean | undefined;
4181
4183
  allowedMaxRequests?: number | null | undefined;
4182
4184
  autoCondenseContext?: boolean | undefined;
4183
4185
  autoCondenseContextPercent?: number | undefined;
@@ -4317,6 +4319,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4317
4319
  allowedCommands?: string[] | undefined;
4318
4320
  deniedCommands?: string[] | undefined;
4319
4321
  commandExecutionTimeout?: number | undefined;
4322
+ preventCompletionWithOpenTodos?: boolean | undefined;
4320
4323
  allowedMaxRequests?: number | null | undefined;
4321
4324
  autoCondenseContext?: boolean | undefined;
4322
4325
  autoCondenseContextPercent?: number | undefined;
@@ -4395,7 +4398,7 @@ declare const globalSettingsSchema: z.ZodObject<{
4395
4398
  lastModeImportPath?: string | undefined;
4396
4399
  }>;
4397
4400
  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"];
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"];
4399
4402
  /**
4400
4403
  * RooCodeSettings
4401
4404
  */
@@ -4667,6 +4670,7 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
4667
4670
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4668
4671
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4669
4672
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
4673
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
4670
4674
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4671
4675
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
4672
4676
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -5054,6 +5058,7 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5054
5058
  allowedCommands?: string[] | undefined;
5055
5059
  deniedCommands?: string[] | undefined;
5056
5060
  commandExecutionTimeout?: number | undefined;
5061
+ preventCompletionWithOpenTodos?: boolean | undefined;
5057
5062
  allowedMaxRequests?: number | null | undefined;
5058
5063
  autoCondenseContext?: boolean | undefined;
5059
5064
  autoCondenseContextPercent?: number | undefined;
@@ -5307,6 +5312,7 @@ declare const rooCodeSettingsSchema: z.ZodObject<{
5307
5312
  allowedCommands?: string[] | undefined;
5308
5313
  deniedCommands?: string[] | undefined;
5309
5314
  commandExecutionTimeout?: number | undefined;
5315
+ preventCompletionWithOpenTodos?: boolean | undefined;
5310
5316
  allowedMaxRequests?: number | null | undefined;
5311
5317
  autoCondenseContext?: boolean | undefined;
5312
5318
  autoCondenseContextPercent?: number | undefined;
@@ -6306,6 +6312,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6306
6312
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6307
6313
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6308
6314
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
6315
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
6309
6316
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6310
6317
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
6311
6318
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -6693,6 +6700,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6693
6700
  allowedCommands?: string[] | undefined;
6694
6701
  deniedCommands?: string[] | undefined;
6695
6702
  commandExecutionTimeout?: number | undefined;
6703
+ preventCompletionWithOpenTodos?: boolean | undefined;
6696
6704
  allowedMaxRequests?: number | null | undefined;
6697
6705
  autoCondenseContext?: boolean | undefined;
6698
6706
  autoCondenseContextPercent?: number | undefined;
@@ -6946,6 +6954,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
6946
6954
  allowedCommands?: string[] | undefined;
6947
6955
  deniedCommands?: string[] | undefined;
6948
6956
  commandExecutionTimeout?: number | undefined;
6957
+ preventCompletionWithOpenTodos?: boolean | undefined;
6949
6958
  allowedMaxRequests?: number | null | undefined;
6950
6959
  autoCondenseContext?: boolean | undefined;
6951
6960
  autoCondenseContextPercent?: number | undefined;
@@ -7205,6 +7214,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7205
7214
  allowedCommands?: string[] | undefined;
7206
7215
  deniedCommands?: string[] | undefined;
7207
7216
  commandExecutionTimeout?: number | undefined;
7217
+ preventCompletionWithOpenTodos?: boolean | undefined;
7208
7218
  allowedMaxRequests?: number | null | undefined;
7209
7219
  autoCondenseContext?: boolean | undefined;
7210
7220
  autoCondenseContextPercent?: number | undefined;
@@ -7463,6 +7473,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7463
7473
  allowedCommands?: string[] | undefined;
7464
7474
  deniedCommands?: string[] | undefined;
7465
7475
  commandExecutionTimeout?: number | undefined;
7476
+ preventCompletionWithOpenTodos?: boolean | undefined;
7466
7477
  allowedMaxRequests?: number | null | undefined;
7467
7478
  autoCondenseContext?: boolean | undefined;
7468
7479
  autoCondenseContextPercent?: number | undefined;
@@ -7724,6 +7735,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7724
7735
  allowedCommands?: string[] | undefined;
7725
7736
  deniedCommands?: string[] | undefined;
7726
7737
  commandExecutionTimeout?: number | undefined;
7738
+ preventCompletionWithOpenTodos?: boolean | undefined;
7727
7739
  allowedMaxRequests?: number | null | undefined;
7728
7740
  autoCondenseContext?: boolean | undefined;
7729
7741
  autoCondenseContextPercent?: number | undefined;
@@ -7985,6 +7997,7 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
7985
7997
  allowedCommands?: string[] | undefined;
7986
7998
  deniedCommands?: string[] | undefined;
7987
7999
  commandExecutionTimeout?: number | undefined;
8000
+ preventCompletionWithOpenTodos?: boolean | undefined;
7988
8001
  allowedMaxRequests?: number | null | undefined;
7989
8002
  autoCondenseContext?: boolean | undefined;
7990
8003
  autoCondenseContextPercent?: number | undefined;
@@ -8871,6 +8884,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8871
8884
  allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8872
8885
  deniedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8873
8886
  commandExecutionTimeout: z.ZodOptional<z.ZodNumber>;
8887
+ preventCompletionWithOpenTodos: z.ZodOptional<z.ZodBoolean>;
8874
8888
  allowedMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8875
8889
  autoCondenseContext: z.ZodOptional<z.ZodBoolean>;
8876
8890
  autoCondenseContextPercent: z.ZodOptional<z.ZodNumber>;
@@ -9258,6 +9272,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9258
9272
  allowedCommands?: string[] | undefined;
9259
9273
  deniedCommands?: string[] | undefined;
9260
9274
  commandExecutionTimeout?: number | undefined;
9275
+ preventCompletionWithOpenTodos?: boolean | undefined;
9261
9276
  allowedMaxRequests?: number | null | undefined;
9262
9277
  autoCondenseContext?: boolean | undefined;
9263
9278
  autoCondenseContextPercent?: number | undefined;
@@ -9511,6 +9526,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9511
9526
  allowedCommands?: string[] | undefined;
9512
9527
  deniedCommands?: string[] | undefined;
9513
9528
  commandExecutionTimeout?: number | undefined;
9529
+ preventCompletionWithOpenTodos?: boolean | undefined;
9514
9530
  allowedMaxRequests?: number | null | undefined;
9515
9531
  autoCondenseContext?: boolean | undefined;
9516
9532
  autoCondenseContextPercent?: number | undefined;
@@ -9770,6 +9786,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9770
9786
  allowedCommands?: string[] | undefined;
9771
9787
  deniedCommands?: string[] | undefined;
9772
9788
  commandExecutionTimeout?: number | undefined;
9789
+ preventCompletionWithOpenTodos?: boolean | undefined;
9773
9790
  allowedMaxRequests?: number | null | undefined;
9774
9791
  autoCondenseContext?: boolean | undefined;
9775
9792
  autoCondenseContextPercent?: number | undefined;
@@ -10028,6 +10045,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10028
10045
  allowedCommands?: string[] | undefined;
10029
10046
  deniedCommands?: string[] | undefined;
10030
10047
  commandExecutionTimeout?: number | undefined;
10048
+ preventCompletionWithOpenTodos?: boolean | undefined;
10031
10049
  allowedMaxRequests?: number | null | undefined;
10032
10050
  autoCondenseContext?: boolean | undefined;
10033
10051
  autoCondenseContextPercent?: number | undefined;
@@ -10289,6 +10307,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10289
10307
  allowedCommands?: string[] | undefined;
10290
10308
  deniedCommands?: string[] | undefined;
10291
10309
  commandExecutionTimeout?: number | undefined;
10310
+ preventCompletionWithOpenTodos?: boolean | undefined;
10292
10311
  allowedMaxRequests?: number | null | undefined;
10293
10312
  autoCondenseContext?: boolean | undefined;
10294
10313
  autoCondenseContextPercent?: number | undefined;
@@ -10550,6 +10569,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10550
10569
  allowedCommands?: string[] | undefined;
10551
10570
  deniedCommands?: string[] | undefined;
10552
10571
  commandExecutionTimeout?: number | undefined;
10572
+ preventCompletionWithOpenTodos?: boolean | undefined;
10553
10573
  allowedMaxRequests?: number | null | undefined;
10554
10574
  autoCondenseContext?: boolean | undefined;
10555
10575
  autoCondenseContextPercent?: number | undefined;
@@ -10833,6 +10853,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10833
10853
  allowedCommands?: string[] | undefined;
10834
10854
  deniedCommands?: string[] | undefined;
10835
10855
  commandExecutionTimeout?: number | undefined;
10856
+ preventCompletionWithOpenTodos?: boolean | undefined;
10836
10857
  allowedMaxRequests?: number | null | undefined;
10837
10858
  autoCondenseContext?: boolean | undefined;
10838
10859
  autoCondenseContextPercent?: number | undefined;
@@ -11105,6 +11126,7 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11105
11126
  allowedCommands?: string[] | undefined;
11106
11127
  deniedCommands?: string[] | undefined;
11107
11128
  commandExecutionTimeout?: number | undefined;
11129
+ preventCompletionWithOpenTodos?: boolean | undefined;
11108
11130
  allowedMaxRequests?: number | null | undefined;
11109
11131
  autoCondenseContext?: boolean | undefined;
11110
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
@@ -2960,6 +2966,7 @@ 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
+ preventCompletionWithOpenTodos: z11.boolean().optional(),
2963
2970
  allowedMaxRequests: z11.number().nullish(),
2964
2971
  autoCondenseContext: z11.boolean().optional(),
2965
2972
  autoCondenseContextPercent: z11.number().optional(),
@@ -3065,6 +3072,7 @@ var EVALS_SETTINGS = {
3065
3072
  followupAutoApproveTimeoutMs: 0,
3066
3073
  allowedCommands: ["*"],
3067
3074
  commandExecutionTimeout: 3e4,
3075
+ preventCompletionWithOpenTodos: false,
3068
3076
  browserToolEnabled: false,
3069
3077
  browserViewportSize: "900x600",
3070
3078
  screenshotQuality: 75,