feat: initial clawd implementation - WebSocket daemon for claw box
Made-with: Cursor
This commit is contained in:
11
bin/clawd.js
Normal file
11
bin/clawd.js
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
|
||||
const { ClawClient } = require('../lib/client');
|
||||
|
||||
const client = new ClawClient();
|
||||
client.start();
|
||||
|
||||
// 优雅退出
|
||||
process.on('SIGINT', () => { client.stop(); process.exit(0); });
|
||||
process.on('SIGTERM', () => { client.stop(); process.exit(0); });
|
||||
Reference in New Issue
Block a user