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.
- package/dist/agent/core/domain/llm/registry.js +2 -2
- package/dist/agent/infra/agent/cipher-agent.js +1 -1
- package/dist/agent/infra/agent/interactive-loop.js +1 -1
- package/dist/agent/infra/agent/service-initializer.js +3 -3
- package/dist/agent/infra/llm/providers/byterover.js +1 -1
- package/dist/server/constants.d.ts +1 -1
- package/dist/server/constants.js +1 -1
- package/dist/server/infra/provider/provider-config-resolver.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -112,7 +112,7 @@ export const LLM_REGISTRY = {
|
|
|
112
112
|
supportedFileTypes: ['image', 'pdf'],
|
|
113
113
|
},
|
|
114
114
|
gemini: {
|
|
115
|
-
defaultModel: 'gemini-3
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
250
|
+
model: llmConfig.model ?? 'gemini-3-flash-preview',
|
|
251
251
|
provider,
|
|
252
252
|
temperature: llmConfig.temperature ?? 0.7,
|
|
253
253
|
verbose: llmConfig.verbose ?? false,
|
|
@@ -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
|
|
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";
|
package/dist/server/constants.js
CHANGED
|
@@ -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
|
|
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
|
}
|
package/oclif.manifest.json
CHANGED