mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-08-30 17:11:12 +08:00
add lib export
This commit is contained in:
@@ -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
@@ -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";
|
||||
|
||||
@@ -53,6 +53,7 @@ export function isServiceRunning(): boolean {
|
||||
return false;
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
// 读取文件失败
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user