@machina.ai/cell-cli-core 1.49.0-rc5 → 1.49.0-rc6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@machina.ai/cell-cli-core",
3
- "version": "1.49.0-rc5",
3
+ "version": "1.49.0-rc6",
4
4
  "description": "Cell CLI Core",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@ import { RipgrepFallbackEvent } from '../telemetry/types.js';
30
30
  import { ToolRegistry } from '../tools/tool-registry.js';
31
31
  import { ACTIVATE_SKILL_TOOL_NAME } from '../tools/tool-names.js';
32
32
  import { DEFAULT_MODEL_CONFIGS } from './defaultModelConfigs.js';
33
- import { DEFAULT_GEMINI_MODEL, PREVIEW_GEMINI_3_1_MODEL, DEFAULT_GEMINI_MODEL_AUTO, PREVIEW_GEMINI_MODEL_AUTO, PREVIEW_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_FLASH_MODEL, } from './models.js';
33
+ import { DEFAULT_GEMINI_MODEL, PREVIEW_GEMINI_3_1_MODEL, DEFAULT_GEMINI_MODEL_AUTO, PREVIEW_GEMINI_MODEL_AUTO, PREVIEW_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_FLASH_MODEL, setFlashModels, } from './models.js';
34
34
  import { Storage } from './storage.js';
35
35
  import { runWithScopedAutoMemoryExtractionWriteAccess, runWithScopedMemoryInboxAccess, } from './scoped-config.js';
36
36
  vi.mock('fs', async (importOriginal) => {
@@ -200,6 +200,7 @@ vi.mock('../code_assist/codeAssist.js');
200
200
  vi.mock('../code_assist/experiments/experiments.js');
201
201
  afterEach(() => {
202
202
  vi.clearAllMocks();
203
+ setFlashModels('gemini-3-flash-preview', 'gemini-2.5-flash');
203
204
  });
204
205
  describe('Server Config (config.ts)', () => {
205
206
  const MODEL = DEFAULT_GEMINI_MODEL;
@@ -775,7 +776,7 @@ describe('Server Config (config.ts)', () => {
775
776
  await config.refreshAuth(AuthType.LOGIN_WITH_GOOGLE);
776
777
  await config.getExperimentsAsync();
777
778
  await vi.waitFor(() => {
778
- expect(config.getModel()).toBe(PREVIEW_GEMINI_FLASH_MODEL);
779
+ expect(config.getModel()).toBe('gemini-3-flash-preview');
779
780
  });
780
781
  });
781
782
  it('should NOT switch to flash model if user has Pro access and model is auto', async () => {
@@ -3413,7 +3414,7 @@ describe('hasGemini35FlashGAAccess model setting', () => {
3413
3414
  expect(DEFAULT_GEMINI_FLASH_MODEL).toBe('gemini-3.5-flash');
3414
3415
  expect(PREVIEW_GEMINI_FLASH_MODEL).toBe('gemini-3-flash-preview');
3415
3416
  });
3416
- it('should set DEFAULT_GEMINI_FLASH_MODEL to gemini-3.5-flash and PREVIEW_GEMINI_FLASH_MODEL to gemini-3-flash-preview if hasGemini35FlashGAAccess returns true and authType is LOGIN_WITH_GOOGLE', () => {
3417
+ it('should set DEFAULT_GEMINI_FLASH_MODEL to gemini-3-flash and PREVIEW_GEMINI_FLASH_MODEL to gemini-3-flash if hasGemini35FlashGAAccess returns true and authType is LOGIN_WITH_GOOGLE', () => {
3417
3418
  const config = new Config(baseParams);
3418
3419
  config['contentGeneratorConfig'] = { authType: AuthType.LOGIN_WITH_GOOGLE };
3419
3420
  // Set experiment to return true for GEMINI_3_5_FLASH_GA_LAUNCHED
@@ -3428,8 +3429,8 @@ describe('hasGemini35FlashGAAccess model setting', () => {
3428
3429
  // Call the method
3429
3430
  const result = config.hasGemini35FlashGAAccess();
3430
3431
  expect(result).toBe(true);
3431
- expect(DEFAULT_GEMINI_FLASH_MODEL).toBe('gemini-3.5-flash');
3432
- expect(PREVIEW_GEMINI_FLASH_MODEL).toBe('gemini-3-flash-preview');
3432
+ expect(DEFAULT_GEMINI_FLASH_MODEL).toBe('gemini-3-flash');
3433
+ expect(PREVIEW_GEMINI_FLASH_MODEL).toBe('gemini-3-flash');
3433
3434
  });
3434
3435
  it('should set DEFAULT_GEMINI_FLASH_MODEL to gemini-3.5-flash and PREVIEW_GEMINI_FLASH_MODEL to gemini-3-flash-preview if hasGemini35FlashGAAccess returns true and authType is KEYCLOAK', () => {
3435
3436
  const config = new Config(baseParams);