claw-subagent-service 0.0.0 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +2 -0
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -15,6 +15,7 @@
15
15
  const { spawn, exec } = require('child_process');
16
16
  const path = require('path');
17
17
  const fs = require('fs');
18
+ const os = require('os');
18
19
 
19
20
  const DAEMON_PATH = path.join(__dirname, 'service', 'daemon.js');
20
21
  const SERVICE_NAME = 'claw-subagent-service';
@@ -57,6 +58,7 @@ function installService() {
57
58
  name: SERVICE_NAME,
58
59
  description: 'OpenClaw Guard CLI Client',
59
60
  script: DAEMON_PATH,
61
+ cwd: os.homedir(),
60
62
  nodeOptions: ['--harmony', '--max_old_space_size=4096']
61
63
  });
62
64
  svc.on('install', () => { console.log('[CLI] 服务安装成功'); svc.start(); });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "claw-subagent-service",
3
- "version": "0.0.0",
4
- "description": "claw-subagent-service 静默后台服务,开机自启,崩溃自动恢复,支持自动更新和融云消息监听",
3
+ "version": "0.0.2",
4
+ "description": "虾说静态服务",
5
5
  "main": "cli.js",
6
6
  "bin": {
7
7
  "claw-subagent-service": "cli.js"
@@ -34,4 +34,4 @@
34
34
  "node": ">=14.0.0"
35
35
  },
36
36
  "license": "MIT"
37
- }
37
+ }