adapt path and commands for Windows environment

This commit is contained in:
Hayaii
2025-07-13 15:36:59 +08:00
parent 8f8eeacc3d
commit 20e8a8f197
5 changed files with 1562 additions and 39 deletions

View File

@@ -13,8 +13,8 @@ import {
import { CONFIG_FILE } from "./constants";
async function initializeClaudeConfig() {
const homeDir = process.env.HOME;
const configPath = `${homeDir}/.claude.json`;
const homeDir = homedir();
const configPath = join(homeDir, ".claude.json");
if (!existsSync(configPath)) {
const userID = Array.from(
{ length: 64 },