@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.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -2
- package/dist/index.d.ts +46 -2
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2709,8 +2709,14 @@ var getModelId = (settings) => {
|
|
|
2709
2709
|
return modelIdKey ? settings[modelIdKey] : void 0;
|
|
2710
2710
|
};
|
|
2711
2711
|
var ANTHROPIC_STYLE_PROVIDERS = ["anthropic", "claude-code"];
|
|
2712
|
-
var getApiProtocol = (provider) => {
|
|
2713
|
-
|
|
2712
|
+
var getApiProtocol = (provider, modelId) => {
|
|
2713
|
+
if (provider && ANTHROPIC_STYLE_PROVIDERS.includes(provider)) {
|
|
2714
|
+
return "anthropic";
|
|
2715
|
+
}
|
|
2716
|
+
if (provider && (provider === "vertex" || provider === "bedrock") && modelId && modelId.toLowerCase().includes("claude")) {
|
|
2717
|
+
return "anthropic";
|
|
2718
|
+
}
|
|
2719
|
+
return "openai";
|
|
2714
2720
|
};
|
|
2715
2721
|
|
|
2716
2722
|
// src/history.ts
|
|
@@ -3146,6 +3152,8 @@ var globalSettingsSchema = import_zod11.z.object({
|
|
|
3146
3152
|
allowedCommands: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
3147
3153
|
deniedCommands: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
3148
3154
|
commandExecutionTimeout: import_zod11.z.number().optional(),
|
|
3155
|
+
commandTimeoutAllowlist: import_zod11.z.array(import_zod11.z.string()).optional(),
|
|
3156
|
+
preventCompletionWithOpenTodos: import_zod11.z.boolean().optional(),
|
|
3149
3157
|
allowedMaxRequests: import_zod11.z.number().nullish(),
|
|
3150
3158
|
autoCondenseContext: import_zod11.z.boolean().optional(),
|
|
3151
3159
|
autoCondenseContextPercent: import_zod11.z.number().optional(),
|
|
@@ -3251,6 +3259,8 @@ var EVALS_SETTINGS = {
|
|
|
3251
3259
|
followupAutoApproveTimeoutMs: 0,
|
|
3252
3260
|
allowedCommands: ["*"],
|
|
3253
3261
|
commandExecutionTimeout: 3e4,
|
|
3262
|
+
commandTimeoutAllowlist: [],
|
|
3263
|
+
preventCompletionWithOpenTodos: false,
|
|
3254
3264
|
browserToolEnabled: false,
|
|
3255
3265
|
browserViewportSize: "900x600",
|
|
3256
3266
|
screenshotQuality: 75,
|