byterover-cli 2.1.3 → 2.1.4

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.
@@ -112,7 +112,7 @@ export const LLM_REGISTRY = {
112
112
  supportedFileTypes: ['image', 'pdf'],
113
113
  },
114
114
  gemini: {
115
- defaultModel: 'gemini-3.1-flash-lite-preview',
115
+ defaultModel: 'gemini-3-flash-preview',
116
116
  models: [
117
117
  // Gemini 3.1 series
118
118
  {
@@ -125,7 +125,6 @@ export const LLM_REGISTRY = {
125
125
  supportsThinking: true,
126
126
  },
127
127
  charsPerToken: 4,
128
- default: true,
129
128
  displayName: 'Gemini 3.1 Flash Lite',
130
129
  maxInputTokens: 1_000_000,
131
130
  maxOutputTokens: 8192,
@@ -144,6 +143,7 @@ export const LLM_REGISTRY = {
144
143
  supportsThinking: true,
145
144
  },
146
145
  charsPerToken: 4,
146
+ default: true,
147
147
  displayName: 'Gemini 3 Flash (Preview)',
148
148
  maxInputTokens: 1_000_000,
149
149
  maxOutputTokens: 8192,
@@ -839,7 +839,7 @@ export class CipherAgent extends BaseAgent {
839
839
  countTokens: (text) => mapGenerator.estimateTokensSync(text),
840
840
  };
841
841
  // Compute registry-clamped maxContextTokens
842
- const mapModel = sessionLLMConfig.model ?? 'gemini-3.1-flash-lite-preview';
842
+ const mapModel = sessionLLMConfig.model ?? 'gemini-3-flash-preview';
843
843
  const mapRegistryProvider = resolveRegistryProvider(mapModel, mapProvider);
844
844
  const effectiveMaxContextTokens = getEffectiveMaxInputTokens(mapRegistryProvider, mapModel, sessionLLMConfig.maxInputTokens);
845
845
  const mapLogger = new EventBasedLogger(this._agentEventBus, 'MapTools');
@@ -270,7 +270,7 @@ async function executePrompt(prompt, agent, state, eventBus) {
270
270
  */
271
271
  export async function startInteractiveLoop(agent, options) {
272
272
  // Display welcome message
273
- displayWelcome(options?.sessionId ?? 'agent-session', options?.model ?? 'gemini-3.1-flash-lite-preview', options?.eventBus);
273
+ displayWelcome(options?.sessionId ?? 'agent-session', options?.model ?? 'gemini-3-flash-preview', options?.eventBus);
274
274
  // Create readline interface
275
275
  const rl = readline.createInterface({
276
276
  input: process.stdin,
@@ -163,7 +163,7 @@ export async function createCipherAgentServices(config, agentEventBus) {
163
163
  const messageStorageService = messageStorage;
164
164
  const historyStorage = new GranularHistoryStorage(messageStorage);
165
165
  // CompactionService for context overflow management
166
- const tokenizer = new GeminiTokenizer(config.model ?? 'gemini-3.1-flash-lite-preview');
166
+ const tokenizer = new GeminiTokenizer(config.model ?? 'gemini-3-flash-preview');
167
167
  const compactionService = new CompactionService(messageStorage, tokenizer, {
168
168
  overflowThreshold: 0.85, // 85% triggers compaction check
169
169
  protectedTurns: 2, // Protect last 2 user turns from pruning
@@ -241,13 +241,13 @@ export function createSessionServices(sessionId, sharedServices, httpConfig, llm
241
241
  });
242
242
  const escalatedStrategy = new EscalatedCompressionStrategy({
243
243
  generator: compactionGenerator,
244
- model: llmConfig.model ?? 'gemini-3.1-flash-lite-preview',
244
+ model: llmConfig.model ?? 'gemini-3-flash-preview',
245
245
  });
246
246
  return new AgentLLMService(sessionId, generator, {
247
247
  maxInputTokens: llmConfig.maxInputTokens,
248
248
  maxIterations: llmConfig.maxIterations ?? 50,
249
249
  maxTokens: llmConfig.maxTokens ?? 8192,
250
- model: llmConfig.model ?? 'gemini-3.1-flash-lite-preview',
250
+ model: llmConfig.model ?? 'gemini-3-flash-preview',
251
251
  provider,
252
252
  temperature: llmConfig.temperature ?? 0.7,
253
253
  verbose: llmConfig.verbose ?? false,
@@ -27,7 +27,7 @@ export const byteroverProvider = {
27
27
  temperature: config.temperature,
28
28
  });
29
29
  },
30
- defaultModel: 'gemini-3.1-flash-lite-preview',
30
+ defaultModel: 'gemini-3-flash-preview',
31
31
  description: 'Internal ByteRover LLM',
32
32
  envVars: [],
33
33
  id: 'byterover',
@@ -31,7 +31,7 @@ export declare const TRANSPORT_RECONNECTION_ATTEMPTS = 30;
31
31
  export declare const TRANSPORT_PING_INTERVAL_MS = 5000;
32
32
  export declare const TRANSPORT_PING_TIMEOUT_MS = 10000;
33
33
  export declare const TRANSPORT_DEFAULT_TRANSPORTS: ('polling' | 'websocket')[];
34
- export declare const DEFAULT_LLM_MODEL = "gemini-3.1-flash-lite-preview";
34
+ export declare const DEFAULT_LLM_MODEL = "gemini-3-flash-preview";
35
35
  export declare const PROJECT_ROOM_PREFIX = "project:";
36
36
  export declare const PROJECT_ROOM_SUFFIX = ":broadcast";
37
37
  export declare const GLOBAL_PROJECTS_DIR = "projects";
@@ -40,7 +40,7 @@ export const TRANSPORT_PING_TIMEOUT_MS = 10_000; // 10s timeout - avoid false di
40
40
  // HTTP polling may be blocked by IDE sandboxes causing "xhr poll error"
41
41
  export const TRANSPORT_DEFAULT_TRANSPORTS = ['websocket'];
42
42
  // LLM Model defaults
43
- export const DEFAULT_LLM_MODEL = 'gemini-3.1-flash-lite-preview';
43
+ export const DEFAULT_LLM_MODEL = 'gemini-3-flash-preview';
44
44
  // Project room naming convention
45
45
  export const PROJECT_ROOM_PREFIX = 'project:';
46
46
  export const PROJECT_ROOM_SUFFIX = ':broadcast';
@@ -81,7 +81,7 @@ export async function resolveProviderConfig(providerConfigStore, providerKeychai
81
81
  provider: activeProvider,
82
82
  providerApiKey: apiKey || undefined,
83
83
  providerBaseUrl: config.getBaseUrl(activeProvider) || undefined,
84
- providerKeyMissing: !apiKey,
84
+ providerKeyMissing: providerRequiresApiKey(activeProvider) && !apiKey,
85
85
  };
86
86
  }
87
87
  case 'openrouter': {
@@ -91,7 +91,7 @@ export async function resolveProviderConfig(providerConfigStore, providerKeychai
91
91
  maxInputTokens,
92
92
  openRouterApiKey: apiKey || undefined,
93
93
  provider: activeProvider,
94
- providerKeyMissing: !apiKey,
94
+ providerKeyMissing: providerRequiresApiKey(activeProvider) && !apiKey,
95
95
  };
96
96
  }
97
97
  default: {
@@ -105,7 +105,7 @@ export async function resolveProviderConfig(providerConfigStore, providerKeychai
105
105
  providerApiKey: apiKey || undefined,
106
106
  providerBaseUrl: providerDef?.baseUrl || undefined,
107
107
  providerHeaders: headers && Object.keys(headers).length > 0 ? { ...headers } : undefined,
108
- providerKeyMissing: !apiKey,
108
+ providerKeyMissing: providerRequiresApiKey(activeProvider) && !apiKey,
109
109
  };
110
110
  }
111
111
  }
@@ -1534,5 +1534,5 @@
1534
1534
  ]
1535
1535
  }
1536
1536
  },
1537
- "version": "2.1.3"
1537
+ "version": "2.1.4"
1538
1538
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "byterover-cli",
3
3
  "description": "ByteRover's CLI",
4
- "version": "2.1.3",
4
+ "version": "2.1.4",
5
5
  "author": "ByteRover",
6
6
  "bin": {
7
7
  "brv": "./bin/run.js"