@roo-code/types 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -873,6 +873,33 @@ var geminiModels = {
873
873
  }
874
874
  ]
875
875
  },
876
+ "gemini-2.5-pro-preview-06-05": {
877
+ maxTokens: 65535,
878
+ contextWindow: 1048576,
879
+ supportsImages: true,
880
+ supportsPromptCache: true,
881
+ inputPrice: 2.5,
882
+ // This is the pricing for prompts above 200k tokens.
883
+ outputPrice: 15,
884
+ cacheReadsPrice: 0.625,
885
+ cacheWritesPrice: 4.5,
886
+ maxThinkingTokens: 32768,
887
+ supportsReasoningBudget: true,
888
+ tiers: [
889
+ {
890
+ contextWindow: 2e5,
891
+ inputPrice: 1.25,
892
+ outputPrice: 10,
893
+ cacheReadsPrice: 0.31
894
+ },
895
+ {
896
+ contextWindow: Infinity,
897
+ inputPrice: 2.5,
898
+ outputPrice: 15,
899
+ cacheReadsPrice: 0.625
900
+ }
901
+ ]
902
+ },
876
903
  "gemini-2.0-flash-001": {
877
904
  maxTokens: 8192,
878
905
  contextWindow: 1048576,
@@ -1212,9 +1239,9 @@ var openAiNativeModels = {
1212
1239
  contextWindow: 2e5,
1213
1240
  supportsImages: true,
1214
1241
  supportsPromptCache: true,
1215
- inputPrice: 10,
1216
- outputPrice: 40,
1217
- cacheReadsPrice: 2.5,
1242
+ inputPrice: 2,
1243
+ outputPrice: 8,
1244
+ cacheReadsPrice: 0.5,
1218
1245
  supportsReasoningEffort: true,
1219
1246
  reasoningEffort: "medium"
1220
1247
  },
@@ -1223,9 +1250,9 @@ var openAiNativeModels = {
1223
1250
  contextWindow: 2e5,
1224
1251
  supportsImages: true,
1225
1252
  supportsPromptCache: true,
1226
- inputPrice: 10,
1227
- outputPrice: 40,
1228
- cacheReadsPrice: 2.5,
1253
+ inputPrice: 2,
1254
+ outputPrice: 8,
1255
+ cacheReadsPrice: 0.5,
1229
1256
  reasoningEffort: "high"
1230
1257
  },
1231
1258
  "o3-low": {
@@ -1233,9 +1260,9 @@ var openAiNativeModels = {
1233
1260
  contextWindow: 2e5,
1234
1261
  supportsImages: true,
1235
1262
  supportsPromptCache: true,
1236
- inputPrice: 10,
1237
- outputPrice: 40,
1238
- cacheReadsPrice: 2.5,
1263
+ inputPrice: 2,
1264
+ outputPrice: 8,
1265
+ cacheReadsPrice: 0.5,
1239
1266
  reasoningEffort: "low"
1240
1267
  },
1241
1268
  "o4-mini": {
@@ -1402,7 +1429,6 @@ var OPEN_ROUTER_PROMPT_CACHING_MODELS = /* @__PURE__ */ new Set([
1402
1429
  "anthropic/claude-3.7-sonnet:thinking",
1403
1430
  "anthropic/claude-sonnet-4",
1404
1431
  "anthropic/claude-opus-4",
1405
- "google/gemini-2.5-pro-preview",
1406
1432
  "google/gemini-2.5-flash-preview",
1407
1433
  "google/gemini-2.5-flash-preview:thinking",
1408
1434
  "google/gemini-2.5-flash-preview-05-20",
@@ -1420,15 +1446,18 @@ var OPEN_ROUTER_COMPUTER_USE_MODELS = /* @__PURE__ */ new Set([
1420
1446
  "anthropic/claude-sonnet-4",
1421
1447
  "anthropic/claude-opus-4"
1422
1448
  ]);
1449
+ var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1450
+ "anthropic/claude-3.7-sonnet:thinking",
1451
+ "google/gemini-2.5-flash-preview-05-20:thinking"
1452
+ ]);
1423
1453
  var OPEN_ROUTER_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1424
1454
  "anthropic/claude-3.7-sonnet:beta",
1425
- "anthropic/claude-3.7-sonnet:thinking",
1426
1455
  "anthropic/claude-opus-4",
1427
1456
  "anthropic/claude-sonnet-4",
1457
+ "google/gemini-2.5-pro-preview",
1428
1458
  "google/gemini-2.5-flash-preview-05-20",
1429
- "google/gemini-2.5-flash-preview-05-20:thinking"
1430
- ]);
1431
- var OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS = /* @__PURE__ */ new Set([
1459
+ // Also include the models that require the reasoning budget to be enabled
1460
+ // even though `OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS` takes precedence.
1432
1461
  "anthropic/claude-3.7-sonnet:thinking",
1433
1462
  "google/gemini-2.5-flash-preview-05-20:thinking"
1434
1463
  ]);
@@ -1518,6 +1547,16 @@ var vertexModels = {
1518
1547
  inputPrice: 2.5,
1519
1548
  outputPrice: 15
1520
1549
  },
1550
+ "gemini-2.5-pro-preview-06-05": {
1551
+ maxTokens: 65535,
1552
+ contextWindow: 1048576,
1553
+ supportsImages: true,
1554
+ supportsPromptCache: true,
1555
+ inputPrice: 2.5,
1556
+ outputPrice: 15,
1557
+ maxThinkingTokens: 32768,
1558
+ supportsReasoningBudget: true
1559
+ },
1521
1560
  "gemini-2.5-pro-exp-03-25": {
1522
1561
  maxTokens: 65535,
1523
1562
  contextWindow: 1048576,
@@ -1674,6 +1713,7 @@ var vertexModels = {
1674
1713
  }
1675
1714
  };
1676
1715
  var VERTEX_REGIONS = [
1716
+ { value: "global", label: "global" },
1677
1717
  { value: "us-east5", label: "us-east5" },
1678
1718
  { value: "us-central1", label: "us-central1" },
1679
1719
  { value: "europe-west1", label: "europe-west1" },
@@ -1988,17 +2028,21 @@ import { z } from "zod";
1988
2028
  var codebaseIndexConfigSchema = z.object({
1989
2029
  codebaseIndexEnabled: z.boolean().optional(),
1990
2030
  codebaseIndexQdrantUrl: z.string().optional(),
1991
- codebaseIndexEmbedderProvider: z.enum(["openai", "ollama"]).optional(),
2031
+ codebaseIndexEmbedderProvider: z.enum(["openai", "ollama", "openai-compatible"]).optional(),
1992
2032
  codebaseIndexEmbedderBaseUrl: z.string().optional(),
1993
2033
  codebaseIndexEmbedderModelId: z.string().optional()
1994
2034
  });
1995
2035
  var codebaseIndexModelsSchema = z.object({
1996
2036
  openai: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
1997
- ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional()
2037
+ ollama: z.record(z.string(), z.object({ dimension: z.number() })).optional(),
2038
+ "openai-compatible": z.record(z.string(), z.object({ dimension: z.number() })).optional()
1998
2039
  });
1999
2040
  var codebaseIndexProviderSchema = z.object({
2000
2041
  codeIndexOpenAiKey: z.string().optional(),
2001
- codeIndexQdrantApiKey: z.string().optional()
2042
+ codeIndexQdrantApiKey: z.string().optional(),
2043
+ codebaseIndexOpenAiCompatibleBaseUrl: z.string().optional(),
2044
+ codebaseIndexOpenAiCompatibleApiKey: z.string().optional(),
2045
+ codebaseIndexOpenAiCompatibleModelDimension: z.number().optional()
2002
2046
  });
2003
2047
 
2004
2048
  // src/cloud.ts
@@ -2337,6 +2381,9 @@ var PROVIDER_SETTINGS_KEYS = keysOf()([
2337
2381
  // Code Index
2338
2382
  "codeIndexOpenAiKey",
2339
2383
  "codeIndexQdrantApiKey",
2384
+ "codebaseIndexOpenAiCompatibleBaseUrl",
2385
+ "codebaseIndexOpenAiCompatibleApiKey",
2386
+ "codebaseIndexOpenAiCompatibleModelDimension",
2340
2387
  // Reasoning
2341
2388
  "enableReasoningEffort",
2342
2389
  "reasoningEffort",
@@ -2361,6 +2408,22 @@ var PROVIDER_SETTINGS_KEYS = keysOf()([
2361
2408
  "litellmApiKey",
2362
2409
  "litellmModelId"
2363
2410
  ]);
2411
+ var MODEL_ID_KEYS = [
2412
+ "apiModelId",
2413
+ "glamaModelId",
2414
+ "openRouterModelId",
2415
+ "openAiModelId",
2416
+ "ollamaModelId",
2417
+ "lmStudioModelId",
2418
+ "lmStudioDraftModelId",
2419
+ "unboundModelId",
2420
+ "requestyModelId",
2421
+ "litellmModelId"
2422
+ ];
2423
+ var getModelId = (settings) => {
2424
+ const modelIdKey = MODEL_ID_KEYS.find((key) => settings[key]);
2425
+ return modelIdKey ? settings[modelIdKey] : void 0;
2426
+ };
2364
2427
 
2365
2428
  // src/history.ts
2366
2429
  import { z as z4 } from "zod";
@@ -2380,11 +2443,18 @@ var historyItemSchema = z4.object({
2380
2443
 
2381
2444
  // src/experiment.ts
2382
2445
  import { z as z5 } from "zod";
2383
- var experimentIds = ["powerSteering", "concurrentFileReads"];
2446
+ var experimentIds = [
2447
+ "powerSteering",
2448
+ "marketplace",
2449
+ "concurrentFileReads",
2450
+ "disableCompletionCommand"
2451
+ ];
2384
2452
  var experimentIdsSchema = z5.enum(experimentIds);
2385
2453
  var experimentsSchema = z5.object({
2386
2454
  powerSteering: z5.boolean(),
2387
- concurrentFileReads: z5.boolean()
2455
+ marketplace: z5.boolean(),
2456
+ concurrentFileReads: z5.boolean(),
2457
+ disableCompletionCommand: z5.boolean()
2388
2458
  });
2389
2459
 
2390
2460
  // src/telemetry.ts
@@ -2488,6 +2558,8 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
2488
2558
  TelemetryEventName2["PROMPT_ENHANCED"] = "Prompt Enhanced";
2489
2559
  TelemetryEventName2["TITLE_BUTTON_CLICKED"] = "Title Button Clicked";
2490
2560
  TelemetryEventName2["AUTHENTICATION_INITIATED"] = "Authentication Initiated";
2561
+ TelemetryEventName2["MARKETPLACE_ITEM_INSTALLED"] = "Marketplace Item Installed";
2562
+ TelemetryEventName2["MARKETPLACE_ITEM_REMOVED"] = "Marketplace Item Removed";
2491
2563
  TelemetryEventName2["SCHEMA_VALIDATION_ERROR"] = "Schema Validation Error";
2492
2564
  TelemetryEventName2["DIFF_APPLICATION_ERROR"] = "Diff Application Error";
2493
2565
  TelemetryEventName2["SHELL_INTEGRATION_ERROR"] = "Shell Integration Error";
@@ -2530,6 +2602,8 @@ var rooCodeTelemetryEventSchema = z7.discriminatedUnion("type", [
2530
2602
  "Prompt Enhanced" /* PROMPT_ENHANCED */,
2531
2603
  "Title Button Clicked" /* TITLE_BUTTON_CLICKED */,
2532
2604
  "Authentication Initiated" /* AUTHENTICATION_INITIATED */,
2605
+ "Marketplace Item Installed" /* MARKETPLACE_ITEM_INSTALLED */,
2606
+ "Marketplace Item Removed" /* MARKETPLACE_ITEM_REMOVED */,
2533
2607
  "Schema Validation Error" /* SCHEMA_VALIDATION_ERROR */,
2534
2608
  "Diff Application Error" /* DIFF_APPLICATION_ERROR */,
2535
2609
  "Shell Integration Error" /* SHELL_INTEGRATION_ERROR */,
@@ -2673,6 +2747,7 @@ var commandIds = [
2673
2747
  "promptsButtonClicked",
2674
2748
  "mcpButtonClicked",
2675
2749
  "historyButtonClicked",
2750
+ "marketplaceButtonClicked",
2676
2751
  "popoutButtonClicked",
2677
2752
  "accountButtonClicked",
2678
2753
  "settingsButtonClicked",
@@ -2869,13 +2944,67 @@ var SECRET_STATE_KEYS = keysOf()([
2869
2944
  "chutesApiKey",
2870
2945
  "litellmApiKey",
2871
2946
  "codeIndexOpenAiKey",
2872
- "codeIndexQdrantApiKey"
2947
+ "codeIndexQdrantApiKey",
2948
+ "codebaseIndexOpenAiCompatibleApiKey"
2873
2949
  ]);
2874
2950
  var isSecretStateKey = (key) => SECRET_STATE_KEYS.includes(key);
2875
2951
  var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].filter(
2876
2952
  (key) => !SECRET_STATE_KEYS.includes(key)
2877
2953
  );
2878
2954
  var isGlobalStateKey = (key) => GLOBAL_STATE_KEYS.includes(key);
2955
+ var EVALS_SETTINGS = {
2956
+ apiProvider: "openrouter",
2957
+ openRouterUseMiddleOutTransform: false,
2958
+ lastShownAnnouncementId: "may-29-2025-3-19",
2959
+ pinnedApiConfigs: {},
2960
+ autoApprovalEnabled: true,
2961
+ alwaysAllowReadOnly: true,
2962
+ alwaysAllowReadOnlyOutsideWorkspace: false,
2963
+ alwaysAllowWrite: true,
2964
+ alwaysAllowWriteOutsideWorkspace: false,
2965
+ writeDelayMs: 1e3,
2966
+ alwaysAllowBrowser: true,
2967
+ alwaysApproveResubmit: true,
2968
+ requestDelaySeconds: 10,
2969
+ alwaysAllowMcp: true,
2970
+ alwaysAllowModeSwitch: true,
2971
+ alwaysAllowSubtasks: true,
2972
+ alwaysAllowExecute: true,
2973
+ allowedCommands: ["*"],
2974
+ browserToolEnabled: false,
2975
+ browserViewportSize: "900x600",
2976
+ screenshotQuality: 75,
2977
+ remoteBrowserEnabled: false,
2978
+ ttsEnabled: false,
2979
+ ttsSpeed: 1,
2980
+ soundEnabled: false,
2981
+ soundVolume: 0.5,
2982
+ terminalOutputLineLimit: 500,
2983
+ terminalShellIntegrationTimeout: 3e4,
2984
+ terminalCommandDelay: 0,
2985
+ terminalPowershellCounter: false,
2986
+ terminalZshOhMy: true,
2987
+ terminalZshClearEolMark: true,
2988
+ terminalZshP10k: false,
2989
+ terminalZdotdir: true,
2990
+ terminalCompressProgressBar: true,
2991
+ terminalShellIntegrationDisabled: true,
2992
+ diffEnabled: true,
2993
+ fuzzyMatchThreshold: 1,
2994
+ enableCheckpoints: false,
2995
+ rateLimitSeconds: 0,
2996
+ maxOpenTabsContext: 20,
2997
+ maxWorkspaceFiles: 200,
2998
+ showRooIgnoredFiles: true,
2999
+ maxReadFileLine: -1,
3000
+ // -1 to enable full file reading.
3001
+ language: "en",
3002
+ telemetrySetting: "enabled",
3003
+ mcpEnabled: false,
3004
+ mode: "code",
3005
+ customModes: []
3006
+ };
3007
+ var EVALS_TIMEOUT = 5 * 60 * 1e3;
2879
3008
 
2880
3009
  // src/cloud.ts
2881
3010
  var organizationAllowListSchema = z12.object({
@@ -2934,6 +3063,11 @@ var ORGANIZATION_DEFAULT = {
2934
3063
  defaultSettings: {},
2935
3064
  allowList: ORGANIZATION_ALLOW_ALL
2936
3065
  };
3066
+ var shareResponseSchema = z12.object({
3067
+ success: z12.boolean(),
3068
+ shareUrl: z12.string().optional(),
3069
+ error: z12.string().optional()
3070
+ });
2937
3071
 
2938
3072
  // src/ipc.ts
2939
3073
  import { z as z13 } from "zod";
@@ -3141,6 +3275,8 @@ export {
3141
3275
  BEDROCK_REGIONS,
3142
3276
  BEDROCK_REGION_INFO,
3143
3277
  DEEP_SEEK_DEFAULT_TEMPERATURE,
3278
+ EVALS_SETTINGS,
3279
+ EVALS_TIMEOUT,
3144
3280
  GLAMA_DEFAULT_TEMPERATURE,
3145
3281
  GLOBAL_SETTINGS_KEYS,
3146
3282
  GLOBAL_STATE_KEYS,
@@ -3149,6 +3285,7 @@ export {
3149
3285
  LITELLM_COMPUTER_USE_MODELS,
3150
3286
  LMSTUDIO_DEFAULT_TEMPERATURE,
3151
3287
  MISTRAL_DEFAULT_TEMPERATURE,
3288
+ MODEL_ID_KEYS,
3152
3289
  OPENAI_AZURE_AI_INFERENCE_PATH,
3153
3290
  OPENAI_NATIVE_DEFAULT_TEMPERATURE,
3154
3291
  OPENROUTER_DEFAULT_PROVIDER_NAME,
@@ -3196,6 +3333,7 @@ export {
3196
3333
  experimentsSchema,
3197
3334
  geminiDefaultModelId,
3198
3335
  geminiModels,
3336
+ getModelId,
3199
3337
  glamaDefaultModelId,
3200
3338
  glamaDefaultModelInfo,
3201
3339
  globalSettingsSchema,
@@ -3242,6 +3380,7 @@ export {
3242
3380
  rooCodeEventsSchema,
3243
3381
  rooCodeSettingsSchema,
3244
3382
  rooCodeTelemetryEventSchema,
3383
+ shareResponseSchema,
3245
3384
  taskCommandSchema,
3246
3385
  taskEventSchema,
3247
3386
  taskPropertiesSchema,