add lib export

This commit is contained in:
musistudio
2025-10-04 18:10:45 +08:00
parent 3dda01e184
commit 2c9ef87502
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@
"bin": {
"ccr": "dist/cli.js"
},
"main": "dist/index.js",
"scripts": {
"build": "node scripts/build.js",
"release": "npm run build && npm publish"
+1 -1
View File
@@ -40,7 +40,7 @@ export async function getServer(options: RunOptions = {}) {
await initializeClaudeConfig();
await initDir();
// Clean up old log files, keeping only the 10 most recent ones
await cleanupLogFiles();
await cleanupLogFiles(4);
const config = await initConfig();
let HOST = config.HOST || "127.0.0.1";
+1
View File
@@ -53,6 +53,7 @@ export function isServiceRunning(): boolean {
return false;
}
} catch (e) {
console.log(e);
// 读取文件失败
return false;
}