rename GEMINI_DIR to QWEN_DIR

This commit is contained in:
koalazf.99
2025-08-26 20:14:10 +08:00
parent f73d662260
commit 5cd3349773
6 changed files with 14 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ import * as path from 'path';
import * as fs from 'fs/promises';
import * as os from 'os';
import type { ChildProcess } from 'node:child_process';
import { getProjectHash, GEMINI_DIR } from '../utils/paths.js';
import { getProjectHash, QWEN_DIR } from '../utils/paths.js';
const hoistedMockExec = vi.hoisted(() => vi.fn());
vi.mock('node:child_process', () => ({
@@ -157,7 +157,7 @@ describe('GitService', () => {
let gitConfigPath: string;
beforeEach(() => {
repoDir = path.join(homedir, GEMINI_DIR, 'history', hash);
repoDir = path.join(homedir, QWEN_DIR, 'history', hash);
gitConfigPath = path.join(repoDir, '.gitconfig');
});

View File

@@ -10,7 +10,7 @@ import * as os from 'os';
import { isNodeError } from '../utils/errors.js';
import { exec } from 'node:child_process';
import { simpleGit, SimpleGit, CheckRepoActions } from 'simple-git';
import { getProjectHash, GEMINI_DIR } from '../utils/paths.js';
import { getProjectHash, QWEN_DIR } from '../utils/paths.js';
export class GitService {
private projectRoot: string;
@@ -21,7 +21,7 @@ export class GitService {
private getHistoryDir(): string {
const hash = getProjectHash(this.projectRoot);
return path.join(os.homedir(), GEMINI_DIR, 'history', hash);
return path.join(os.homedir(), QWEN_DIR, 'history', hash);
}
async initialize(): Promise<void> {