v1.1.0: Skills integration, cross-platform support, bug fixes
This commit is contained in:
11
src/index.ts
11
src/index.ts
@@ -8,8 +8,6 @@ const args = process.argv.slice(2);
|
||||
const command = args[0];
|
||||
|
||||
async function main() {
|
||||
console.log("[QwenClaw] Index.ts - Command:", command);
|
||||
|
||||
if (command === "--stop-all") {
|
||||
await stopAll();
|
||||
} else if (command === "--stop") {
|
||||
@@ -17,9 +15,7 @@ async function main() {
|
||||
} else if (command === "--clear") {
|
||||
await clear();
|
||||
} else if (command === "start") {
|
||||
console.log("[QwenClaw] Calling start function...");
|
||||
await start(args.slice(1));
|
||||
console.log("[QwenClaw] Start function returned");
|
||||
} else if (command === "status") {
|
||||
await status();
|
||||
} else if (command === "telegram") {
|
||||
@@ -27,7 +23,6 @@ async function main() {
|
||||
} else if (command === "send") {
|
||||
await send(args.slice(1));
|
||||
} else {
|
||||
console.log("[QwenClaw] No command, starting default...");
|
||||
await start();
|
||||
}
|
||||
}
|
||||
@@ -36,9 +31,3 @@ main().catch((err) => {
|
||||
console.error("[QwenClaw] Fatal error:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
// Keep process alive
|
||||
process.on('SIGINT', () => {
|
||||
console.log('[QwenClaw] Received SIGINT, shutting down...');
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user