@roo-code/types 1.95.0 → 1.99.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 +11 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +586 -703
- package/dist/index.d.ts +586 -703
- package/dist/index.js +11 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -289,7 +289,6 @@ __export(index_exports, {
|
|
|
289
289
|
serviceTiers: () => serviceTiers,
|
|
290
290
|
shareResponseSchema: () => shareResponseSchema,
|
|
291
291
|
shouldReportApiErrorToTelemetry: () => shouldReportApiErrorToTelemetry,
|
|
292
|
-
shouldUseSingleFileRead: () => shouldUseSingleFileRead,
|
|
293
292
|
staticAppPropertiesSchema: () => staticAppPropertiesSchema,
|
|
294
293
|
suggestionItemSchema: () => suggestionItemSchema,
|
|
295
294
|
taskBridgeCommandSchema: () => taskBridgeCommandSchema,
|
|
@@ -389,6 +388,7 @@ var clineSays = [
|
|
|
389
388
|
"api_req_finished",
|
|
390
389
|
"api_req_retried",
|
|
391
390
|
"api_req_retry_delayed",
|
|
391
|
+
"api_req_rate_limit_wait",
|
|
392
392
|
"api_req_deleted",
|
|
393
393
|
"text",
|
|
394
394
|
"image",
|
|
@@ -498,7 +498,8 @@ var toolNames = [
|
|
|
498
498
|
"codebase_search",
|
|
499
499
|
"update_todo_list",
|
|
500
500
|
"run_slash_command",
|
|
501
|
-
"generate_image"
|
|
501
|
+
"generate_image",
|
|
502
|
+
"custom_tool"
|
|
502
503
|
];
|
|
503
504
|
var toolNamesSchema = import_zod2.z.enum(toolNames);
|
|
504
505
|
var toolUsageSchema = import_zod2.z.record(
|
|
@@ -1855,7 +1856,7 @@ var BEDROCK_SERVICE_TIER_PRICING = {
|
|
|
1855
1856
|
var cerebrasDefaultModelId = "gpt-oss-120b";
|
|
1856
1857
|
var cerebrasModels = {
|
|
1857
1858
|
"zai-glm-4.6": {
|
|
1858
|
-
maxTokens:
|
|
1859
|
+
maxTokens: 16384,
|
|
1859
1860
|
// Conservative default to avoid premature rate limiting (Cerebras reserves quota upfront)
|
|
1860
1861
|
contextWindow: 131072,
|
|
1861
1862
|
supportsImages: false,
|
|
@@ -1867,7 +1868,7 @@ var cerebrasModels = {
|
|
|
1867
1868
|
description: "Highly intelligent general purpose model with up to 1,000 tokens/s"
|
|
1868
1869
|
},
|
|
1869
1870
|
"qwen-3-235b-a22b-instruct-2507": {
|
|
1870
|
-
maxTokens:
|
|
1871
|
+
maxTokens: 16384,
|
|
1871
1872
|
// Conservative default to avoid premature rate limiting
|
|
1872
1873
|
contextWindow: 64e3,
|
|
1873
1874
|
supportsImages: false,
|
|
@@ -1879,7 +1880,7 @@ var cerebrasModels = {
|
|
|
1879
1880
|
description: "Intelligent model with ~1400 tokens/s"
|
|
1880
1881
|
},
|
|
1881
1882
|
"llama-3.3-70b": {
|
|
1882
|
-
maxTokens:
|
|
1883
|
+
maxTokens: 16384,
|
|
1883
1884
|
// Conservative default to avoid premature rate limiting
|
|
1884
1885
|
contextWindow: 64e3,
|
|
1885
1886
|
supportsImages: false,
|
|
@@ -1891,7 +1892,7 @@ var cerebrasModels = {
|
|
|
1891
1892
|
description: "Powerful model with ~2600 tokens/s"
|
|
1892
1893
|
},
|
|
1893
1894
|
"qwen-3-32b": {
|
|
1894
|
-
maxTokens:
|
|
1895
|
+
maxTokens: 16384,
|
|
1895
1896
|
// Conservative default to avoid premature rate limiting
|
|
1896
1897
|
contextWindow: 64e3,
|
|
1897
1898
|
supportsImages: false,
|
|
@@ -1903,7 +1904,7 @@ var cerebrasModels = {
|
|
|
1903
1904
|
description: "SOTA coding performance with ~2500 tokens/s"
|
|
1904
1905
|
},
|
|
1905
1906
|
"gpt-oss-120b": {
|
|
1906
|
-
maxTokens:
|
|
1907
|
+
maxTokens: 16384,
|
|
1907
1908
|
// Conservative default to avoid premature rate limiting
|
|
1908
1909
|
contextWindow: 64e3,
|
|
1909
1910
|
supportsImages: false,
|
|
@@ -5572,7 +5573,6 @@ function getProviderDefaultModelId(provider, options = { isChina: false }) {
|
|
|
5572
5573
|
return vercelAiGatewayDefaultModelId;
|
|
5573
5574
|
case "anthropic":
|
|
5574
5575
|
case "gemini-cli":
|
|
5575
|
-
case "human-relay":
|
|
5576
5576
|
case "fake-ai":
|
|
5577
5577
|
default:
|
|
5578
5578
|
return anthropicDefaultModelId;
|
|
@@ -5600,7 +5600,7 @@ var internalProviders = ["vscode-lm"];
|
|
|
5600
5600
|
var isInternalProvider = (key) => internalProviders.includes(key);
|
|
5601
5601
|
var customProviders = ["openai"];
|
|
5602
5602
|
var isCustomProvider = (key) => customProviders.includes(key);
|
|
5603
|
-
var fauxProviders = ["fake-ai"
|
|
5603
|
+
var fauxProviders = ["fake-ai"];
|
|
5604
5604
|
var isFauxProvider = (key) => fauxProviders.includes(key);
|
|
5605
5605
|
var providerNames = [
|
|
5606
5606
|
...dynamicProviders,
|
|
@@ -5672,8 +5672,7 @@ var openRouterSchema = baseProviderSettingsSchema.extend({
|
|
|
5672
5672
|
openRouterApiKey: import_zod8.z.string().optional(),
|
|
5673
5673
|
openRouterModelId: import_zod8.z.string().optional(),
|
|
5674
5674
|
openRouterBaseUrl: import_zod8.z.string().optional(),
|
|
5675
|
-
openRouterSpecificProvider: import_zod8.z.string().optional()
|
|
5676
|
-
openRouterUseMiddleOutTransform: import_zod8.z.boolean().optional()
|
|
5675
|
+
openRouterSpecificProvider: import_zod8.z.string().optional()
|
|
5677
5676
|
});
|
|
5678
5677
|
var bedrockSchema = apiModelIdProviderModelSchema.extend({
|
|
5679
5678
|
awsAccessKey: import_zod8.z.string().optional(),
|
|
@@ -5792,7 +5791,6 @@ var requestySchema = baseProviderSettingsSchema.extend({
|
|
|
5792
5791
|
requestyApiKey: import_zod8.z.string().optional(),
|
|
5793
5792
|
requestyModelId: import_zod8.z.string().optional()
|
|
5794
5793
|
});
|
|
5795
|
-
var humanRelaySchema = baseProviderSettingsSchema;
|
|
5796
5794
|
var fakeAiSchema = baseProviderSettingsSchema.extend({
|
|
5797
5795
|
fakeAi: import_zod8.z.unknown().optional()
|
|
5798
5796
|
});
|
|
@@ -5874,7 +5872,6 @@ var providerSettingsSchemaDiscriminated = import_zod8.z.discriminatedUnion("apiP
|
|
|
5874
5872
|
minimaxSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("minimax") })),
|
|
5875
5873
|
unboundSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("unbound") })),
|
|
5876
5874
|
requestySchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("requesty") })),
|
|
5877
|
-
humanRelaySchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("human-relay") })),
|
|
5878
5875
|
fakeAiSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("fake-ai") })),
|
|
5879
5876
|
xaiSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("xai") })),
|
|
5880
5877
|
groqSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("groq") })),
|
|
@@ -5915,7 +5912,6 @@ var providerSettingsSchema = import_zod8.z.object({
|
|
|
5915
5912
|
...minimaxSchema.shape,
|
|
5916
5913
|
...unboundSchema.shape,
|
|
5917
5914
|
...requestySchema.shape,
|
|
5918
|
-
...humanRelaySchema.shape,
|
|
5919
5915
|
...fakeAiSchema.shape,
|
|
5920
5916
|
...xaiSchema.shape,
|
|
5921
5917
|
...groqSchema.shape,
|
|
@@ -6584,10 +6580,6 @@ var commandIds = [
|
|
|
6584
6580
|
"cloudButtonClicked",
|
|
6585
6581
|
"settingsButtonClicked",
|
|
6586
6582
|
"openInNewTab",
|
|
6587
|
-
"showHumanRelayDialog",
|
|
6588
|
-
"registerHumanRelayCallback",
|
|
6589
|
-
"unregisterHumanRelayCallback",
|
|
6590
|
-
"handleHumanRelayResponse",
|
|
6591
6583
|
"newTask",
|
|
6592
6584
|
"setCustomStoragePath",
|
|
6593
6585
|
"importSettings",
|
|
@@ -6705,6 +6697,7 @@ var globalSettingsSchema = import_zod14.z.object({
|
|
|
6705
6697
|
maxOpenTabsContext: import_zod14.z.number().optional(),
|
|
6706
6698
|
maxWorkspaceFiles: import_zod14.z.number().optional(),
|
|
6707
6699
|
showRooIgnoredFiles: import_zod14.z.boolean().optional(),
|
|
6700
|
+
enableSubfolderRules: import_zod14.z.boolean().optional(),
|
|
6708
6701
|
maxReadFileLine: import_zod14.z.number().optional(),
|
|
6709
6702
|
maxImageFileSize: import_zod14.z.number().optional(),
|
|
6710
6703
|
maxTotalImageSize: import_zod14.z.number().optional(),
|
|
@@ -6804,7 +6797,6 @@ var GLOBAL_STATE_KEYS = [...GLOBAL_SETTINGS_KEYS, ...PROVIDER_SETTINGS_KEYS].fil
|
|
|
6804
6797
|
var isGlobalStateKey = (key) => GLOBAL_STATE_KEYS.includes(key);
|
|
6805
6798
|
var EVALS_SETTINGS = {
|
|
6806
6799
|
apiProvider: "openrouter",
|
|
6807
|
-
openRouterUseMiddleOutTransform: false,
|
|
6808
6800
|
lastShownAnnouncementId: "jul-09-2025-3-23-0",
|
|
6809
6801
|
pinnedApiConfigs: {},
|
|
6810
6802
|
autoApprovalEnabled: true,
|
|
@@ -7483,11 +7475,6 @@ var mcpExecutionStatusSchema = import_zod19.z.discriminatedUnion("status", [
|
|
|
7483
7475
|
})
|
|
7484
7476
|
]);
|
|
7485
7477
|
|
|
7486
|
-
// src/single-file-read-models.ts
|
|
7487
|
-
function shouldUseSingleFileRead(modelId) {
|
|
7488
|
-
return modelId.includes("grok-code-fast-1") || modelId.includes("code-supernova");
|
|
7489
|
-
}
|
|
7490
|
-
|
|
7491
7478
|
// src/todo.ts
|
|
7492
7479
|
var import_zod20 = require("zod");
|
|
7493
7480
|
var todoStatusSchema = import_zod20.z.enum(["pending", "in_progress", "completed"]);
|
|
@@ -7796,7 +7783,6 @@ var commandExecutionStatusSchema = import_zod21.z.discriminatedUnion("status", [
|
|
|
7796
7783
|
serviceTiers,
|
|
7797
7784
|
shareResponseSchema,
|
|
7798
7785
|
shouldReportApiErrorToTelemetry,
|
|
7799
|
-
shouldUseSingleFileRead,
|
|
7800
7786
|
staticAppPropertiesSchema,
|
|
7801
7787
|
suggestionItemSchema,
|
|
7802
7788
|
taskBridgeCommandSchema,
|