claw-subagent-service 0.0.1 → 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 +2 -2
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,6 +1,6 @@
1
1
  {
2
2
  "name": "claw-subagent-service",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "虾说静态服务",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -34,4 +34,4 @@
34
34
  "node": ">=14.0.0"
35
35
  },
36
36
  "license": "MIT"
37
- }
37
+ }