@roo-code/types 1.96.0 → 1.100.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 CHANGED
@@ -119,6 +119,8 @@ __export(index_exports, {
119
119
  bedrockModels: () => bedrockModels,
120
120
  cerebrasDefaultModelId: () => cerebrasDefaultModelId,
121
121
  cerebrasModels: () => cerebrasModels,
122
+ checkoutDiffPayloadSchema: () => checkoutDiffPayloadSchema,
123
+ checkoutRestorePayloadSchema: () => checkoutRestorePayloadSchema,
122
124
  chutesDefaultModelId: () => chutesDefaultModelId,
123
125
  chutesDefaultModelInfo: () => chutesDefaultModelInfo,
124
126
  chutesModels: () => chutesModels,
@@ -187,6 +189,7 @@ __export(index_exports, {
187
189
  historyItemSchema: () => historyItemSchema,
188
190
  idleAsks: () => idleAsks,
189
191
  installMarketplaceItemOptionsSchema: () => installMarketplaceItemOptionsSchema,
192
+ installMarketplaceItemWithParametersPayloadSchema: () => installMarketplaceItemWithParametersPayloadSchema,
190
193
  interactiveAsks: () => interactiveAsks,
191
194
  internalProviders: () => internalProviders,
192
195
  internationalZAiDefaultModelId: () => internationalZAiDefaultModelId,
@@ -388,6 +391,7 @@ var clineSays = [
388
391
  "api_req_finished",
389
392
  "api_req_retried",
390
393
  "api_req_retry_delayed",
394
+ "api_req_rate_limit_wait",
391
395
  "api_req_deleted",
392
396
  "text",
393
397
  "image",
@@ -1532,39 +1536,6 @@ var bedrockModels = {
1532
1536
  inputPrice: 0.25,
1533
1537
  outputPrice: 1.25
1534
1538
  },
1535
- "anthropic.claude-2-1-v1:0": {
1536
- maxTokens: 4096,
1537
- contextWindow: 1e5,
1538
- supportsImages: false,
1539
- supportsPromptCache: false,
1540
- supportsNativeTools: true,
1541
- defaultToolProtocol: "native",
1542
- inputPrice: 8,
1543
- outputPrice: 24,
1544
- description: "Claude 2.1"
1545
- },
1546
- "anthropic.claude-2-0-v1:0": {
1547
- maxTokens: 4096,
1548
- contextWindow: 1e5,
1549
- supportsImages: false,
1550
- supportsPromptCache: false,
1551
- supportsNativeTools: true,
1552
- defaultToolProtocol: "native",
1553
- inputPrice: 8,
1554
- outputPrice: 24,
1555
- description: "Claude 2.0"
1556
- },
1557
- "anthropic.claude-instant-v1:0": {
1558
- maxTokens: 4096,
1559
- contextWindow: 1e5,
1560
- supportsImages: false,
1561
- supportsPromptCache: false,
1562
- supportsNativeTools: true,
1563
- defaultToolProtocol: "native",
1564
- inputPrice: 0.8,
1565
- outputPrice: 2.4,
1566
- description: "Claude Instant"
1567
- },
1568
1539
  "deepseek.r1-v1:0": {
1569
1540
  maxTokens: 32768,
1570
1541
  contextWindow: 128e3,
@@ -1864,7 +1835,19 @@ var cerebrasModels = {
1864
1835
  defaultToolProtocol: "native",
1865
1836
  inputPrice: 0,
1866
1837
  outputPrice: 0,
1867
- description: "Highly intelligent general purpose model with up to 1,000 tokens/s"
1838
+ description: "Fast general-purpose model on Cerebras (up to 1,000 tokens/s). To be deprecated soon."
1839
+ },
1840
+ "zai-glm-4.7": {
1841
+ maxTokens: 16384,
1842
+ // Conservative default to avoid premature rate limiting (Cerebras reserves quota upfront)
1843
+ contextWindow: 131072,
1844
+ supportsImages: false,
1845
+ supportsPromptCache: false,
1846
+ supportsNativeTools: true,
1847
+ defaultToolProtocol: "native",
1848
+ inputPrice: 0,
1849
+ outputPrice: 0,
1850
+ description: "Highly capable general-purpose model on Cerebras (up to 1,000 tokens/s), competitive with leading proprietary models on coding tasks."
1868
1851
  },
1869
1852
  "qwen-3-235b-a22b-instruct-2507": {
1870
1853
  maxTokens: 16384,
@@ -2615,6 +2598,20 @@ var fireworksModels = {
2615
2598
  outputPrice: 2.5,
2616
2599
  description: "Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities."
2617
2600
  },
2601
+ "accounts/fireworks/models/kimi-k2-thinking": {
2602
+ maxTokens: 16e3,
2603
+ contextWindow: 256e3,
2604
+ supportsImages: false,
2605
+ supportsPromptCache: true,
2606
+ supportsNativeTools: true,
2607
+ supportsTemperature: true,
2608
+ preserveReasoning: true,
2609
+ defaultTemperature: 1,
2610
+ inputPrice: 0.6,
2611
+ outputPrice: 2.5,
2612
+ cacheReadsPrice: 0.15,
2613
+ description: "The kimi-k2-thinking model is a general-purpose agentic reasoning model developed by Moonshot AI. Thanks to its strength in deep reasoning and multi-turn tool use, it can solve even the hardest problems."
2614
+ },
2618
2615
  "accounts/fireworks/models/minimax-m2": {
2619
2616
  maxTokens: 4096,
2620
2617
  contextWindow: 204800,
@@ -5572,7 +5569,6 @@ function getProviderDefaultModelId(provider, options = { isChina: false }) {
5572
5569
  return vercelAiGatewayDefaultModelId;
5573
5570
  case "anthropic":
5574
5571
  case "gemini-cli":
5575
- case "human-relay":
5576
5572
  case "fake-ai":
5577
5573
  default:
5578
5574
  return anthropicDefaultModelId;
@@ -5600,7 +5596,7 @@ var internalProviders = ["vscode-lm"];
5600
5596
  var isInternalProvider = (key) => internalProviders.includes(key);
5601
5597
  var customProviders = ["openai"];
5602
5598
  var isCustomProvider = (key) => customProviders.includes(key);
5603
- var fauxProviders = ["fake-ai", "human-relay"];
5599
+ var fauxProviders = ["fake-ai"];
5604
5600
  var isFauxProvider = (key) => fauxProviders.includes(key);
5605
5601
  var providerNames = [
5606
5602
  ...dynamicProviders,
@@ -5791,7 +5787,6 @@ var requestySchema = baseProviderSettingsSchema.extend({
5791
5787
  requestyApiKey: import_zod8.z.string().optional(),
5792
5788
  requestyModelId: import_zod8.z.string().optional()
5793
5789
  });
5794
- var humanRelaySchema = baseProviderSettingsSchema;
5795
5790
  var fakeAiSchema = baseProviderSettingsSchema.extend({
5796
5791
  fakeAi: import_zod8.z.unknown().optional()
5797
5792
  });
@@ -5840,7 +5835,8 @@ var qwenCodeSchema = apiModelIdProviderModelSchema.extend({
5840
5835
  qwenCodeOauthPath: import_zod8.z.string().optional()
5841
5836
  });
5842
5837
  var rooSchema = apiModelIdProviderModelSchema.extend({
5843
- // No additional fields needed - uses cloud authentication.
5838
+ // Can use cloud authentication or provide an API key (cli).
5839
+ rooApiKey: import_zod8.z.string().optional()
5844
5840
  });
5845
5841
  var vercelAiGatewaySchema = baseProviderSettingsSchema.extend({
5846
5842
  vercelAiGatewayApiKey: import_zod8.z.string().optional(),
@@ -5873,7 +5869,6 @@ var providerSettingsSchemaDiscriminated = import_zod8.z.discriminatedUnion("apiP
5873
5869
  minimaxSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("minimax") })),
5874
5870
  unboundSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("unbound") })),
5875
5871
  requestySchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("requesty") })),
5876
- humanRelaySchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("human-relay") })),
5877
5872
  fakeAiSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("fake-ai") })),
5878
5873
  xaiSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("xai") })),
5879
5874
  groqSchema.merge(import_zod8.z.object({ apiProvider: import_zod8.z.literal("groq") })),
@@ -5914,7 +5909,6 @@ var providerSettingsSchema = import_zod8.z.object({
5914
5909
  ...minimaxSchema.shape,
5915
5910
  ...unboundSchema.shape,
5916
5911
  ...requestySchema.shape,
5917
- ...humanRelaySchema.shape,
5918
5912
  ...fakeAiSchema.shape,
5919
5913
  ...xaiSchema.shape,
5920
5914
  ...groqSchema.shape,
@@ -6131,6 +6125,8 @@ var historyItemSchema = import_zod9.z.object({
6131
6125
  * This ensures task resumption works correctly even when NTC settings change.
6132
6126
  */
6133
6127
  toolProtocol: import_zod9.z.enum(["xml", "native"]).optional(),
6128
+ apiConfigName: import_zod9.z.string().optional(),
6129
+ // Provider profile name for sticky profile feature
6134
6130
  status: import_zod9.z.enum(["active", "completed", "delegated"]).optional(),
6135
6131
  delegatedToId: import_zod9.z.string().optional(),
6136
6132
  // Last child this parent delegated to
@@ -6583,10 +6579,6 @@ var commandIds = [
6583
6579
  "cloudButtonClicked",
6584
6580
  "settingsButtonClicked",
6585
6581
  "openInNewTab",
6586
- "showHumanRelayDialog",
6587
- "registerHumanRelayCallback",
6588
- "unregisterHumanRelayCallback",
6589
- "handleHumanRelayResponse",
6590
6582
  "newTask",
6591
6583
  "setCustomStoragePath",
6592
6584
  "importSettings",
@@ -6704,6 +6696,7 @@ var globalSettingsSchema = import_zod14.z.object({
6704
6696
  maxOpenTabsContext: import_zod14.z.number().optional(),
6705
6697
  maxWorkspaceFiles: import_zod14.z.number().optional(),
6706
6698
  showRooIgnoredFiles: import_zod14.z.boolean().optional(),
6699
+ enableSubfolderRules: import_zod14.z.boolean().optional(),
6707
6700
  maxReadFileLine: import_zod14.z.number().optional(),
6708
6701
  maxImageFileSize: import_zod14.z.number().optional(),
6709
6702
  maxTotalImageSize: import_zod14.z.number().optional(),
@@ -7518,6 +7511,24 @@ var commandExecutionStatusSchema = import_zod21.z.discriminatedUnion("status", [
7518
7511
  status: import_zod21.z.literal("timeout")
7519
7512
  })
7520
7513
  ]);
7514
+
7515
+ // src/vscode-extension-host.ts
7516
+ var import_zod22 = require("zod");
7517
+ var checkoutDiffPayloadSchema = import_zod22.z.object({
7518
+ ts: import_zod22.z.number().optional(),
7519
+ previousCommitHash: import_zod22.z.string().optional(),
7520
+ commitHash: import_zod22.z.string(),
7521
+ mode: import_zod22.z.enum(["full", "checkpoint", "from-init", "to-current"])
7522
+ });
7523
+ var checkoutRestorePayloadSchema = import_zod22.z.object({
7524
+ ts: import_zod22.z.number(),
7525
+ commitHash: import_zod22.z.string(),
7526
+ mode: import_zod22.z.enum(["preview", "restore"])
7527
+ });
7528
+ var installMarketplaceItemWithParametersPayloadSchema = import_zod22.z.object({
7529
+ item: marketplaceItemSchema,
7530
+ parameters: import_zod22.z.record(import_zod22.z.string(), import_zod22.z.any())
7531
+ });
7521
7532
  // Annotate the CommonJS export names for ESM import in node:
7522
7533
  0 && (module.exports = {
7523
7534
  ANTHROPIC_DEFAULT_MAX_TOKENS,
@@ -7619,6 +7630,8 @@ var commandExecutionStatusSchema = import_zod21.z.discriminatedUnion("status", [
7619
7630
  bedrockModels,
7620
7631
  cerebrasDefaultModelId,
7621
7632
  cerebrasModels,
7633
+ checkoutDiffPayloadSchema,
7634
+ checkoutRestorePayloadSchema,
7622
7635
  chutesDefaultModelId,
7623
7636
  chutesDefaultModelInfo,
7624
7637
  chutesModels,
@@ -7687,6 +7700,7 @@ var commandExecutionStatusSchema = import_zod21.z.discriminatedUnion("status", [
7687
7700
  historyItemSchema,
7688
7701
  idleAsks,
7689
7702
  installMarketplaceItemOptionsSchema,
7703
+ installMarketplaceItemWithParametersPayloadSchema,
7690
7704
  interactiveAsks,
7691
7705
  internalProviders,
7692
7706
  internationalZAiDefaultModelId,