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

@@ -8,7 +8,7 @@ import path from 'node:path';
import os from 'os';
import * as crypto from 'crypto';
export const GEMINI_DIR = '.qwen';
export const QWEN_DIR = '.qwen';
export const GOOGLE_ACCOUNTS_FILENAME = 'google_accounts.json';
const TMP_DIR_NAME = 'tmp';
const COMMANDS_DIR_NAME = 'commands';
@@ -181,7 +181,7 @@ export function getProjectHash(projectRoot: string): string {
*/
export function getProjectTempDir(projectRoot: string): string {
const hash = getProjectHash(projectRoot);
return path.join(os.homedir(), GEMINI_DIR, TMP_DIR_NAME, hash);
return path.join(os.homedir(), QWEN_DIR, TMP_DIR_NAME, hash);
}
/**
@@ -189,7 +189,7 @@ export function getProjectTempDir(projectRoot: string): string {
* @returns The path to the user's commands directory.
*/
export function getUserCommandsDir(): string {
return path.join(os.homedir(), GEMINI_DIR, COMMANDS_DIR_NAME);
return path.join(os.homedir(), QWEN_DIR, COMMANDS_DIR_NAME);
}
/**
@@ -198,5 +198,5 @@ export function getUserCommandsDir(): string {
* @returns The path to the project's commands directory.
*/
export function getProjectCommandsDir(projectRoot: string): string {
return path.join(projectRoot, GEMINI_DIR, COMMANDS_DIR_NAME);
return path.join(projectRoot, QWEN_DIR, COMMANDS_DIR_NAME);
}