feat: initial clawd implementation - WebSocket daemon for claw box

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-14 20:41:26 +08:00
commit 222c38a707
9 changed files with 568 additions and 0 deletions

11
bin/clawd.js Normal file
View 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); });