mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
Rename server->core (#638)
This commit is contained in:
parent
c81148a0cc
commit
21fba832d1
112 changed files with 150 additions and 129 deletions
|
|
@ -10,7 +10,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|||
import * as os from 'os';
|
||||
import { loadCliConfig } from './config.js';
|
||||
import { Settings } from './settings.js';
|
||||
import * as ServerConfig from '@gemini-code/server';
|
||||
import * as ServerConfig from '@gemini-code/core';
|
||||
|
||||
const MOCK_HOME_DIR = '/mock/home/user';
|
||||
|
||||
|
|
@ -28,10 +28,9 @@ vi.mock('read-package-up', () => ({
|
|||
),
|
||||
}));
|
||||
|
||||
vi.mock('@gemini-code/server', async () => {
|
||||
const actualServer = await vi.importActual<typeof ServerConfig>(
|
||||
'@gemini-code/server',
|
||||
);
|
||||
vi.mock('@gemini-code/core', async () => {
|
||||
const actualServer =
|
||||
await vi.importActual<typeof ServerConfig>('@gemini-code/core');
|
||||
return {
|
||||
...actualServer,
|
||||
loadEnvironment: vi.fn(),
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
createServerConfig,
|
||||
loadServerHierarchicalMemory,
|
||||
ConfigParameters,
|
||||
} from '@gemini-code/server';
|
||||
} from '@gemini-code/core';
|
||||
import { Settings } from './settings.js';
|
||||
import { readPackageUp } from 'read-package-up';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import { homedir } from 'os';
|
||||
import { MCPServerConfig } from '@gemini-code/server/src/config/config.js';
|
||||
import { MCPServerConfig } from '@gemini-code/core/src/config/config.js';
|
||||
import stripJsonComments from 'strip-json-comments';
|
||||
|
||||
export const SETTINGS_DIRECTORY_NAME = '.gemini';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue